S++Business systems language
DEMO SOURCE · SPP / APP / PHYRead the book

petshop-00-model.spp

petshop/returns/petshop-00-model.spp

Download original file · Petstore source contents

1domain petshop;23Contract ReturnRequestAgreement {4    Buyer;5    ShopOrder;6    String reason;7    Receipt;8}910Contract ReturnRefundAgreement {11    Buyer buyer;12    Merchant seller;13    ShopOrder order;14    Receipt receipt;15    int returnedQuantity;16    BigDecimal(19, 2) refundAmount;17}