Package-level declarations

Types

Link copied to clipboard
data class AdvanceOrderStatusCommand(val orderId: OrderId)

Command to advance the status of an order to the next stage in the order processing workflow.

Link copied to clipboard
data class DiscardOrderCommand(val orderId: OrderId)

Command to discard an order. This command is used when a customer wants to cancel their order before it is processed.

Link copied to clipboard
data class GetOrderDetailsCommand(val orderId: OrderId)

Command to retrieve the details of a specific order.

Link copied to clipboard
sealed interface PlaceOrderCommand

Command to place an order in the system.

Link copied to clipboard
data class UpdateDeliveryOrderCommand(val orderId: OrderId, val customerId: CustomerId, val estimatedDeliveryTime: Long, val deliveryAddress: String, val bellName: String, val customerPhone: String)

Command object for updating the details of a delivery order.

Link copied to clipboard
data class UpdateOrderItemsCommand(val orderId: OrderId, val customerId: CustomerId, val items: List<OrderItem>)

Command to update the items of an existing order.

Link copied to clipboard
data class UpdateTakeawayOrderCommand(val orderId: OrderId, val customerId: CustomerId, val pickupTime: Long, val customerName: String)

Command to update an existing takeaway order.