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

petshop-00-model.spp

petshop/membership/petshop-00-model.spp

Download original file · Petstore source contents

1domain petshop;23Role Buyer {4    business("Membership account number used to identify the buyer and verify order ownership") String membershipNumber;5    business("Registration number of the linked customer-domain subject") String customerNumber;6    String name;7    String email;8    String address;9    MemberTier tier;10    quantum BigDecimal(19, 2) wallet;11}1213Contract RegistrationAgreement {14    Buyer buyer;15    Cart cart;16    Receipt receipt;17}1819Contract ProfileAgreement {20    Buyer buyer;21    String newName;22    String newEmail;23    String newAddress;24    MemberTier newTier;25    Receipt receipt;26}