Package-level declarations

Types

Link copied to clipboard
data class DeliveryInfoDocument(val estimatedDeliveryTime: Long, val deliveryAddress: String, val bellName: String, val customerPhone: String)

Embedded document representing delivery information for a delivery order.

Link copied to clipboard
@MappedEntity
data class OrderDocument(val id: String, val orderType: String, val restaurantId: String, val customerId: String, val status: String, val items: List<OrderItemDocument>, val deliveryInfo: DeliveryInfoDocument? = null, val tableInfo: TableInfoDocument? = null, val takeawayInfo: TakeawayInfoDocument? = null)

Represents the MongoDB document for storing order information.

Link copied to clipboard
data class OrderItemDocument(val menuItemId: String, val quantity: Int)

Embedded document representing a single item within an order.

Link copied to clipboard
data class TableInfoDocument(val tableNumber: Int, val numberOfGuests: Int)

Embedded document representing table information for a dine-in order.

Link copied to clipboard
data class TakeawayInfoDocument(val pickupTime: Long, val customerName: String)

Embedded document representing takeaway information for a takeaway order.