Orders
Order intake and reads. An order is received with its lines in Received status, and this service immediately attempts allocation-then-release in the SAME call — a caller expresses intent by placing the order, not by separately driving internal saga steps.
Receive a new order — allocates and releases automatically
Intake — the ReceiveOrder use case. Validates every requested line (SKU non-empty, quantity > 0), mints an `OrderId`, and persists the order in `Received` status, publishing `OrderReceived` unconditionally.
Read an order's current state
The GetOrder use case. Returns the order with every line's current status, its reservation reference where allocated, and the promise date once allocation has computed one. The order-level `status` in this response is derived from the line statuses at read time — it is not a stored field.
Cancel an order and revoke its reservations
The CancelOrder use case. Revokes every allocated line's reservation on inventory-storage via `DELETE /reservations/{id}`, then cancels every line. Publishes `OrderCancelled`.