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

petshop-scene-registerShopCustomer.spp

petshop/membership/petshop-scene-registerShopCustomer.spp

Download original file · Petstore source contents

1domain petshop;23Scenario serial registerShopCustomer(Buyer, Cart, RegistrationAgreement) {4    checkBuyerCredential;5    checkCustomerProfile;6    initializeRegistrationAgreement;7    findBuyer;8    checkNewCustomer;9    registerCustomer;10    prepareRegistrationAgreementReceipt;11    transaction {12        insertPerson(buyer);13        insertBuyer;14        insertCart;15        insertReceipt(registrationAgreement.receipt);16    }17}