Skip to content

Commit

Permalink
new spec: reservation with repeating product
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullin committed Dec 12, 2022
1 parent 657d2b1 commit 239a633
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions specs/bundle.txt
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,20 @@ THEN:
EVENTS:
Reserved reservation:"00000000-0000-0000-0000-000000000003" code:"sale" items:{product:"00000000-0000-0000-0000-000000000001" quantity:10 location:"00000000-0000-0000-0000-000000000000"}

==========================================
reservation with repeating product
------------------------------------------
GIVEN:
ProductAdded uid:"00000000-0000-0000-0000-000000000001" sku:"GPU"
LocationAdded uid:"00000000-0000-0000-0000-000000000002" name:"Shelf"
InventoryUpdated location:"00000000-0000-0000-0000-000000000002" product:"00000000-0000-0000-0000-000000000001" OnHandChange:10 OnHand:10
WHEN:
ReserveReq reservation:"sale" items:{sku:"GPU" quantity:7} items:{sku:"GPU" quantity:3} location:"00000000-0000-0000-0000-000000000000"
THEN:
ReserveResp reservation:"00000000-0000-0000-0000-000000000003"
EVENTS:
Reserved reservation:"00000000-0000-0000-0000-000000000003" code:"sale" items:{product:"00000000-0000-0000-0000-000000000001" quantity:10 location:"00000000-0000-0000-0000-000000000000"}

==========================================
reserve sale in a specific location
------------------------------------------
Expand Down

0 comments on commit 239a633

Please sign in to comment.