Class OrderOfferPermutationResult
java.lang.Object
com.broadleafcommerce.promotion.offer.service.dto.OrderOfferPermutationResult
DTO containing results of the evaluation of a permutation of order offers.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdjustment
(OrderOfferAdjustment adjustment) Adds the adjustment to this permutation result and prorate it across the relevant items.void
addProratedOfferAdjustments
(Set<EnhancedProratedOfferAdjustment> proratedOfferAdjustments) void
addVoucher
(com.broadleafcommerce.promotion.offer.client.web.context.info.Voucher voucher, javax.money.MonetaryAmount estimatedValue) javax.money.MonetaryAmount
javax.money.MonetaryAmount
List<com.broadleafcommerce.promotion.offer.client.web.context.info.Voucher>
boolean
boolean
void
setAppliedOffers
(List<Offer> appliedOffers) void
setCodeResponseMap
(Map<String, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse> codeResponseMap) void
setPermutationTotals
(OrderTotals permutationTotals) void
updateCodeResponse
(String code, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse response) void
updateCodesResponses
(Set<OfferCode> offerCodes, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse response)
-
Constructor Details
-
OrderOfferPermutationResult
public OrderOfferPermutationResult()
-
-
Method Details
-
isLessValueThan
-
isEqualTo
-
addAdjustment
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
-
getPermutationTotals
-
setPermutationTotals
-
getTotalAdjustments
public javax.money.MonetaryAmount getTotalAdjustments() -
getTotalVouchersValue
public javax.money.MonetaryAmount getTotalVouchersValue() -
getAppliedOffers
-
setAppliedOffers
-
getCodeResponseMap
-
setCodeResponseMap
-
getAdjustments
-
getItemIdOrderOfferProrationMap
-
getVouchers
-