Add food-delivery module: order state table, FIFO dispatcher, nearest / rated / longest-idle rider strategies, atomic stock and kitchen capacity, idempotent placing, seeded simulation (13 test classes, 19 transcripts)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5BMpRV6przXHwuKTz
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
76012dd8c3
commit
3336e2ba15
@@ -0,0 +1,15 @@
|
||||
Bad requests: the exact message for each, and the stock afterwards
|
||||
==================================================================
|
||||
|
||||
blank key InvalidOrder: an idempotency key is required
|
||||
unknown customer NotFound: customer C9 not found
|
||||
unknown restaurant NotFound: restaurant R9 not found
|
||||
empty cart InvalidOrder: the cart is empty
|
||||
item from another menu InvalidOrder: Biryani House has no item p1
|
||||
quantity zero InvalidOrder: quantity for Chicken Biryani must be 1 to 20, got 0
|
||||
quantity 21 InvalidOrder: quantity for Chicken Biryani must be 1 to 20, got 21
|
||||
24 km away InvalidOrder: Pizza Point is 24 km away; we deliver up to 15 km
|
||||
more than the stock OutOfStock: b1: wanted 6, only 5 left
|
||||
closed restaurant Dosa Corner is closed
|
||||
|
||||
two-line cart where the second line is short: Veg Biryani stock still 3
|
||||
Reference in New Issue
Block a user