Package pl.com.bottega.ecommerce.sales.domain.purchase

Examples of pl.com.bottega.ecommerce.sales.domain.purchase.Purchase.confirm()


     * Sample model where one aggregate creates another. Client does not manage payment lifecycle, therefore application must manage it.
     */
    Payment payment = client.charge(purchase.getTotalCost());
    paymentRepository.save(payment);
   
    purchase.confirm()
    reservation.close();       
   
    reservationRepository.save(reservation);
    clientRepository.save(client);
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.