Package-level declarations

Types

Link copied to clipboard
@Serializable
@SerialName(value = "OrderDto")
data class OrderDto(val orderType: OrderType, val orderId: String, val restaurantId: String, val customerId: String, val status: String, val items: List<OrderItemDto>, val estimatedDeliveryTime: String? = null, val deliveryAddress: String? = null, val bellName: String? = null, val customerPhone: String? = null, val pickupTime: String? = null, val customerName: String? = null, val tableNumber: Int? = null, val numberOfGuests: Int? = null)

Data class unifying all order types (Delivery, Takeaway, and Dine-In) into a single representation.

Link copied to clipboard
@Serializable
@SerialName(value = "OrderItemDto")
data class OrderItemDto(val menuItemId: String, val quantity: Int)

Data class representing an item in an order.

Link copied to clipboard
@Serializable
enum OrderType : Enum<OrderType>

Enum representing the different types of orders.