What problem does it solve?
This skill defines and enforces a robust, end-to-end order lifecycle for Zonix Eats, ensuring consistent state management, validated transitions, and reliable event emissions across buyer, commerce, delivery, and admin workflows.
Core Features & Use Cases
- State machine enforcement: Only allowed transitions (pending_payment -> paid -> processing -> shipped -> delivered; cancellations allowed from paid or processing) are permitted, preventing invalid status changes.
- Event-driven updates: Emits OrderStatusChanged events after every state change to sync real-time dashboards and external services.
- Payment validation & cancellation rules: Handles manual/payment validations and complex cancellation rules with penalties as defined.
- Comprehensive data model & API coverage: Describes the Order model fields, relationships, and endpoints for buyers, commerce, delivery, and admins.
Quick Start
Integrate the Order lifecycle by enforcing the valid transitions and emitting OrderStatusChanged events after each update.