Class ItemOfferPermutationResult
- java.lang.Object
-
- com.broadleafcommerce.promotion.offer.service.dto.ItemOfferPermutationResult
-
public class ItemOfferPermutationResult extends Object
DTO containing results of the evaluation of a permutation of item offers.- See Also:
OffersPermutation
-
-
Constructor Summary
Constructors Constructor Description ItemOfferPermutationResult(javax.money.CurrencyUnit currency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFreeGiftItem(com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem freeGiftItem, javax.money.MonetaryAmount estimatedValue)List<com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem>getFreeGiftItems()Map<String,List<LineItemOfferDetail>>getLineItemDetailMap()OrderTotalsgetPermutationTotals()javax.money.MonetaryAmountgetTotalAdjustmentValue()javax.money.MonetaryAmountgetTotalFreeGiftsValue()booleanhasDetails()booleanisLessValueThan(ItemOfferPermutationResult other)voidsetPermutationTotals(OrderTotals permutationTotals)voidstoreLineItemDetails(Map<String,List<LineItemOfferDetail>> detailMap)protected javax.money.MonetaryAmounttotalAdjustmentValue()protected voidupdateTotalAdjustmentsValue(List<LineItemOfferDetail> details)
-
-
-
Method Detail
-
isLessValueThan
public boolean isLessValueThan(ItemOfferPermutationResult other)
-
totalAdjustmentValue
protected javax.money.MonetaryAmount totalAdjustmentValue()
-
storeLineItemDetails
public void storeLineItemDetails(Map<String,List<LineItemOfferDetail>> detailMap)
-
updateTotalAdjustmentsValue
protected void updateTotalAdjustmentsValue(List<LineItemOfferDetail> details)
-
hasDetails
public boolean hasDetails()
-
addFreeGiftItem
public void addFreeGiftItem(com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem freeGiftItem, @Nonnull javax.money.MonetaryAmount estimatedValue)
-
getPermutationTotals
public OrderTotals getPermutationTotals()
-
setPermutationTotals
public void setPermutationTotals(OrderTotals permutationTotals)
-
getTotalAdjustmentValue
public javax.money.MonetaryAmount getTotalAdjustmentValue()
-
getTotalFreeGiftsValue
public javax.money.MonetaryAmount getTotalFreeGiftsValue()
-
getLineItemDetailMap
public Map<String,List<LineItemOfferDetail>> getLineItemDetailMap()
-
getFreeGiftItems
public List<com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem> getFreeGiftItems()
-
-