S++Core systems, human-reviewable
DEMO SOURCE · SPP / APP / PHYRead the book

petshop-10-services.spp

petshop/returns/petshop-10-services.spp

Download original file · Petstore source contents

1domain petshop;23atomic update returnInventory(StockLine[], ReturnRefundAgreement);4quantum update refundReturnFunds(Buyer, Merchant, ReturnRefundAgreement) {5    merchant.cash -> buyer.wallet : returnRefundAgreement.refundAmount;6}