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

Examples of pl.com.bottega.ecommerce.sales.domain.offer.OfferItem


    List<OfferItem> unavailableItems = new ArrayList<OfferItem>();
   
    for (ReservationItem item : items) {           
      if (item.getProduct().isAvailabe()){
        Discount discount = discountPolicy.applyDiscount(item.getProduct(), item.getQuantity(), item.getProduct().getPrice());
        OfferItem offerItem = new OfferItem(item.getProduct().generateSnapshot(), item.getQuantity(), discount);
       
        availabeItems.add(offerItem);
      }
      else {
        OfferItem offerItem = new OfferItem(item.getProduct().generateSnapshot(), item.getQuantity());
       
        unavailableItems.add(offerItem);
      }
    }
   
View Full Code Here

TOP

Related Classes of pl.com.bottega.ecommerce.sales.domain.offer.OfferItem

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.