munchies
      Target filter
Search in API
Skip to content
    munchies
order-service/com.munchies.order.infrastructure.adapter.dto.factory/CommandFactory/toCommand

toCommand

fun PlaceOrderRequest.toCommand(): PlaceOrderCommand

Converts a PlaceOrderRequest into a corresponding PlaceOrderCommand. The conversion is based on the order type specified in the request.

Throws

IllegalArgumentException

if required fields for the specific order type are missing.


fun AdvanceOrderStatusRequest.toCommand(): AdvanceOrderStatusCommand

Converts an AdvanceOrderStatusRequest into a corresponding AdvanceOrderStatusCommand.


fun UpdateOrderItemsRequest.toCommand(): UpdateOrderItemsCommand

Converts an UpdateOrderItemsRequest into a corresponding UpdateOrderItemsCommand.


fun UpdateDeliveryOrderRequest.toCommand(): UpdateDeliveryOrderCommand

Converts an UpdateDeliveryOrderRequest into a corresponding UpdateDeliveryOrderCommand.


fun UpdateTakeawayOrderRequest.toCommand(): UpdateTakeawayOrderCommand

Converts an UpdateTakeawayOrderRequest into a corresponding UpdateTakeawayOrderCommand.

Generated by Dokka
© 2026 Copyright