Name: Delivering.
delivering
is a pattern for implementing business processes that are associated with creating a delivery order, as well as payment and delivery of the order.
This diagram shows the life cycle of a product or food delivery order:
- makeorder
- makepayment
- requeststore2wh
- store2wh
- confirmstore2wh
- wh2kitchen
- preparemeal
- kitchen2wh
- scanqronorder
- scanbackpack
- deliverorder
When processing an order (order registration, payment, preparation, delivery), the following objects/DTOs are used:
Object | DTO | Notes |
---|---|---|
InitialOrder | InitialOrderDTO | model for placing an order |
DeliveryOrder | DeliveryOrderDTO | model for invoicing control, or delivering products from a store to a warehouse |
DeliveryWh2Kitchen | DeliveryWh2KitchenDTO | model for transferring products from warehouse to kitchen (shipping point, destination, start time, end time, products, ingredients) |
CookingOperation | CookingOperationDTO | model for preparing an order (start time, end time, products, ingredients, recipes) |
DeliveryKitchen2Wh | DeliveryKitchen2WhDTO | model for transferring a finished order from the kitchen to the warehouse (shipping point, destination, start time, end time, products, order number, generated order QR code) |
DeliveryOperation | DeliveryOperationDTO | model for delivery (QR code on the order, QR code on the backpack, departure point, destination, start time, end time, order number) |