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

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

Related Classes of pl.com.bottega.ecommerce.sales.domain.invoicing.InvoiceRequest

Copyright © 2018 www.massapicom. 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.