Overview
TheCreateOrderRequest model is used to submit a new order to the kitchen. It contains the table number and a list of products to be prepared.
Fields
The table number where the order was placed. This is used to identify which table the prepared items should be delivered to.
Array of products included in the order. Each product must specify a name and type.
Validation Rules
- tableNumber: Must be provided and non-null
- products: Must be a non-empty array
- product.name: Must be provided for each product
- product.type: Must be one of the valid ProductType enum values (DRINK, HOT_DISH, COLD_DISH)
The product type is case-sensitive and must match exactly one of the enum values. Invalid types will result in a validation error.
Example
Related Models
- CreateOrderResponse - Response returned after creating an order
- TaskResponse - Individual tasks created from the order