Takeaway

data class Takeaway(val restaurantId: RestaurantId, val customerId: CustomerId, val items: List<OrderItem>, val pickupTime: Long, val customerName: String) : PlaceOrderCommand

Represents a takeaway order with specific fields for pickup details.

Constructors

Link copied to clipboard
constructor(restaurantId: RestaurantId, customerId: CustomerId, items: List<OrderItem>, pickupTime: Long, customerName: String)

Properties

Link copied to clipboard
open override val customerId: CustomerId
Link copied to clipboard
Link copied to clipboard
open override val items: List<OrderItem>
Link copied to clipboard
Link copied to clipboard
open override val restaurantId: RestaurantId