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

petshop-scene-requestShopReturn.spp

petshop/returns/petshop-scene-requestShopReturn.spp

Download original file · Petstore source contents

1domain petshop;23Scenario serial requestShopReturn(Buyer, ShopOrder, ReturnRequestAgreement) {4    checkReturnRequestAgreementInput;5    initializeReturnRequestAgreement;6    findBuyer;7    identify(buyer);8    findShopOrder;9    identify(shopOrder);10    checkOrderOwner;11    checkReturnRequest;12    prepareReturnRequest;13    prepareReturnRequestReceipt;14    transaction {15        updateShopOrder;16        insertReceipt(returnRequestAgreement.Receipt);17    }18}