OrderDto

@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.

Constructors

Link copied to clipboard
constructor(orderType: OrderType, orderId: String, restaurantId: String, customerId: String, status: String, items: List<OrderItemDto>, estimatedDeliveryTime: String? = null, deliveryAddress: String? = null, bellName: String? = null, customerPhone: String? = null, pickupTime: String? = null, customerName: String? = null, tableNumber: Int? = null, numberOfGuests: Int? = null)

Properties

Link copied to clipboard

The name associated with the doorbell for delivery (applicable for Delivery orders).

Link copied to clipboard

The unique identifier for the customer.

Link copied to clipboard

The name of the customer placing the order (applicable for Takeaway orders).

Link copied to clipboard

The phone number of the customer for contact during delivery (applicable for Delivery orders).

Link copied to clipboard

The address where the order will be delivered (applicable for Delivery orders).

Link copied to clipboard

The estimated time for delivery in milliseconds (applicable for Delivery orders).

Link copied to clipboard

The list of order items.

Link copied to clipboard

The number of guests for the dine-in order (applicable for Dine-In orders).

Link copied to clipboard

The unique identifier for the order.

Link copied to clipboard

The type of the order (e.g. Delivery, DineIn etc.)

Link copied to clipboard

The time when the order will be ready for pickup in milliseconds (applicable for Takeaway orders).

Link copied to clipboard

The unique identifier for the restaurant.

Link copied to clipboard

The current status of the order.

Link copied to clipboard

The table number where the customer will be seated (applicable for Dine-In orders).