petshop-20-calculations.spp
petshop/payment/petshop-20-calculations.spp
Download original file · Petstore source contents
1domain petshop;23atomic calculate preparePayment(ShopOrder, PaymentAgreement) {4paymentAgreement.paymentAmount = shopOrder.total;5shopOrder.status = OrderStatus.PAID;6}