DineInOrder
data class DineInOrder(val id: OrderId, val restaurantId: RestaurantId, val customerId: CustomerId, val status: OrderStatus, val items: List<OrderItem>, val tableInfo: TableInfo) : Order
Represents a dine-in order in the system.
Constructors
Link copied to clipboard
constructor(id: OrderId, restaurantId: RestaurantId, customerId: CustomerId, status: OrderStatus, items: List<OrderItem>, tableInfo: TableInfo)
Properties
Functions
Link copied to clipboard
Cancels the order if it is in a cancellable state.
Link copied to clipboard
Advances the status of the order to the next logical state.
Link copied to clipboard
Converts an Order domain model to an OrderDocument for persistence.
Link copied to clipboard
Updates the items in the order after validating them.