Class OrderOfferPermutationResult

java.lang.Object
com.broadleafcommerce.promotion.offer.service.dto.OrderOfferPermutationResult

public class OrderOfferPermutationResult extends Object
DTO containing results of the evaluation of a permutation of order offers.
See Also:
  • Constructor Details

    • OrderOfferPermutationResult

      public OrderOfferPermutationResult()
  • Method Details

    • isLessValueThan

      public boolean isLessValueThan(OrderOfferPermutationResult other)
    • isEqualTo

      public boolean isEqualTo(OrderOfferPermutationResult other)
    • addAdjustment

      public void addAdjustment(OrderOfferAdjustment adjustment)
      Adds the adjustment to this permutation result and prorate it across the relevant items.
      Parameters:
      adjustment -
    • addVoucher

      public void addVoucher(com.broadleafcommerce.promotion.offer.client.web.context.info.Voucher voucher, @Nonnull javax.money.MonetaryAmount estimatedValue)
    • addProratedOfferAdjustments

      public void addProratedOfferAdjustments(Set<EnhancedProratedOfferAdjustment> proratedOfferAdjustments)
    • updateCodeResponse

      public void updateCodeResponse(String code, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse response)
    • updateCodesResponses

      public void updateCodesResponses(Set<OfferCode> offerCodes, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse response)
    • getPermutationTotals

      public OrderTotals getPermutationTotals()
    • setPermutationTotals

      public void setPermutationTotals(OrderTotals permutationTotals)
    • getTotalAdjustments

      public javax.money.MonetaryAmount getTotalAdjustments()
    • getTotalVouchersValue

      public javax.money.MonetaryAmount getTotalVouchersValue()
    • getAppliedOffers

      public List<Offer> getAppliedOffers()
    • setAppliedOffers

      public void setAppliedOffers(List<Offer> appliedOffers)
    • getCodeResponseMap

      public Map<String,com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse> getCodeResponseMap()
    • setCodeResponseMap

      public void setCodeResponseMap(Map<String,com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse> codeResponseMap)
    • getAdjustments

      public List<OrderOfferAdjustment> getAdjustments()
    • getItemIdOrderOfferProrationMap

      public Map<String,List<EnhancedProratedOfferAdjustment>> getItemIdOrderOfferProrationMap()
    • getVouchers

      public List<com.broadleafcommerce.promotion.offer.client.web.context.info.Voucher> getVouchers()