Atomic Inventory Reservation, Scoped Payment Sessions, and Admin Approval Gates
Added product stock tracking with atomic reservation and restoration to prevent overselling, tightened SePay payment session scoping and late-payment detection, enforced shipment idempotency, and locked sensitive approval and order transitions to admins.
Key changes
- Product inventory tracking with low-stock thresholds, atomic stock decrement, out-of-stock order guards, and automatic restoration on cancellation
- Scoped payment QR sessions to explicit SePay configurations and flagged late payments arriving on canceled orders for manual review
- Idempotent shipment creation under concurrency plus strict admin role enforcement on AI tool approvals and order status updates