Overview
TheOrderDetailDto provides comprehensive order details including customer information, delivery address, order items, and special instructions. This DTO is used when displaying the full details of a specific order, as opposed to the condensed OrderListDto used in list views.
Type Definition
Fields
Full name of the customer who placed the order
Contact phone number for the customer
Full delivery address where the order should be delivered
Special instructions or notes from the customer (e.g., dietary restrictions, delivery instructions)
Name of the delivery courier assigned to this order
Array of items included in the order
Difference from OrderListDto
OrderDetailDto differs from OrderListDto in several key ways:
| Feature | OrderListDto | OrderDetailDto |
|---|---|---|
| Purpose | Quick overview in lists | Comprehensive order information |
| Customer Info | ❌ Not included | ✅ Full customer details |
| Order Items | ❌ Not included | ✅ Complete item list with pricing |
| Status/Priority | ✅ Included | ❌ Not included |
| Display Number | ✅ Included | ❌ Not included |
| Use Case | Queue views, dashboards | Detail views, order fulfillment |
OrderListDto is optimized for performance in list views where many orders are displayed simultaneously, while OrderDetailDto provides the rich information needed when viewing a single order’s details.
Usage
This DTO is typically used in:- Order detail view screens
- Order preparation interfaces
- Customer information displays
- Order fulfillment workflows
- Receipt generation
Related Types
- OrderListDto - Condensed order information for list views
- RiderDto - Courier/rider information
Source
dtos/OrderDetails.dto.ts