Examples of InvoiceRequest


Examples of pl.com.bottega.ecommerce.sales.domain.invoicing.InvoiceRequest

  @EventListener
  public void handle(OrderSubmittedEvent event){
    Purchase purchase = purchaseRepository.load(event.getOrderId());
   
    Client client = clientRepository.load(purchase.getClientData().getAggregateId());
    InvoiceRequest request  = invoiceRequestFactory.create(client, purchase);
    Invoice invoice = bookKeeper.issuance(request, taxAdvisor.suggestBestTax(client));
   
    invoiceRepository.save(invoice);
  }
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.