Uses of Class
com.broadleafcommerce.promotion.offer.service.dto.ItemOfferPermutationResult
Package
Description
-
Uses of ItemOfferPermutationResult in com.broadleafcommerce.promotion.offer.service.dto
Modifier and TypeMethodDescriptionCombinedTypesOfferPermutation.getBestFulfillmentItemOfferPermutation()
CombinedTypesOfferPermutation.getBestItemOfferPermutation()
Modifier and TypeMethodDescriptionboolean
ItemOfferPermutationResult.isEqualTo
(ItemOfferPermutationResult other) boolean
ItemOfferPermutationResult.isLessValueThan
(ItemOfferPermutationResult other) void
CombinedTypesOfferPermutation.updateBestFulfillmentItemPermutation
(ItemOfferPermutationResult permutation) void
CombinedTypesOfferPermutation.updateBestOrderItemPermutation
(ItemOfferPermutationResult permutation) void
CombinedTypesOfferPermutation.updateBestOrderItemPermutation
(ItemOfferPermutationResult oldPermutation, ItemOfferPermutationResult newPermutation) This method is intended to be used to replace an ItemPermutation with another where certain LineItemOfferDetails have been replaced.ModifierConstructorDescriptionItemOfferPermutationResult
(ItemOfferPermutationResult result, OrderTotals initialTotals, String segmentToExclude) ItemOfferPermutationResult
(ItemOfferPermutationResult result, OrderTotals initialTotals, Set<LineItemOfferDetail> detailsToReset, com.broadleafcommerce.common.extension.TypeFactory offerFactory) Clone this ItemOfferPermutationResult and reset the passed in details to remove any adjustments. -
Uses of ItemOfferPermutationResult in com.broadleafcommerce.promotion.offer.service.engine.application.processor
Modifier and TypeMethodDescriptionprotected ItemOfferPermutationResult
DefaultItemOfferProcessor.computeOfferPermutationValue
(OfferProcessingContext context, List<CandidateItemOffer> candidateItemOffers, OrderTotals orderTotals) protected ItemOfferPermutationResult
DefaultItemOfferProcessor.determineBestPermutationGivenEqualAdjustmentValues
(AtomicReference<ItemOfferPermutationResult> bestPermutation, ItemOfferPermutationResult result) Hook point where both permutations offering the same discount, which permutation should be chosen.Modifier and TypeMethodDescriptionprotected void
DefaultItemOfferProcessor.addCodeResponseToPermutationResult
(EnhancedOrder order, Offer offer, ItemOfferPermutationResult result, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse codeResponse) Adds theCodeResponse
to theItemOfferPermutationResult
for the provided offer.protected void
DefaultItemOfferProcessor.addFreeGiftsToResult
(OfferProcessingContext context, ItemOfferPermutationResult result) protected void
DefaultItemOfferProcessor.applyCandidateOffers
(EnhancedOrder order, List<CandidateItemOffer> candidateOffers, ItemOfferPermutationResult result) void
DefaultItemOfferProcessor.applyItemAdjustments
(OfferProcessingContext context, ItemOfferPermutationResult result) void
ItemOfferProcessor.applyItemAdjustments
(OfferProcessingContext context, ItemOfferPermutationResult result) For item processing, the adjustments are stored onLineItemOfferDetail
records.protected boolean
DefaultItemOfferProcessor.canOfferBeApplied
(EnhancedOrder order, CandidateItemOffer itemOffer, List<LineItemOfferDetail> itemDetails, ItemOfferPermutationResult result) Determines whether theOffer
can be applied by making sure it is the order meets the total requirements.protected ItemOfferPermutationResult
DefaultItemOfferProcessor.determineBestPermutationGivenEqualAdjustmentValues
(AtomicReference<ItemOfferPermutationResult> bestPermutation, ItemOfferPermutationResult result) Hook point where both permutations offering the same discount, which permutation should be chosen.protected void
DefaultItemOfferProcessor.updateBestPermutation
(CombinedTypesOfferPermutation ctop, ItemOfferPermutationResult bestPermutation) Modifier and TypeMethodDescriptionprotected ItemOfferPermutationResult
DefaultItemOfferProcessor.determineBestPermutationGivenEqualAdjustmentValues
(AtomicReference<ItemOfferPermutationResult> bestPermutation, ItemOfferPermutationResult result) Hook point where both permutations offering the same discount, which permutation should be chosen. -
Uses of ItemOfferPermutationResult in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper
Modifier and TypeMethodDescriptionjavax.money.MonetaryAmount
DefaultOrderAndItemOfferHelper.calculateFulfillmentItemTotalFromPermutation
(Optional<ItemOfferPermutationResult> itemResult, EnhancedFulfillmentLineItem item, DiscountableItemInfo discountableItemTotal) javax.money.MonetaryAmount
OrderAndItemOfferHelper.calculateFulfillmentItemTotalFromPermutation
(Optional<ItemOfferPermutationResult> itemResult, EnhancedFulfillmentLineItem item, DiscountableItemInfo discountableItemTotal) Uses the passed in results from a permutation result which holds the non-final item and offer adjustments relevant to the permutation.javax.money.MonetaryAmount
DefaultOrderAndItemOfferHelper.calculateItemTotalFromPermutation
(Optional<ItemOfferPermutationResult> itemResult, Optional<OrderOfferPermutationResult> orderResult, EnhancedOrderLineItem item, boolean excludeItemTotalsWithDiscounts, DiscountableItemInfo discountableItemTotal) Uses the passed in results from a permutation which stores the item adjustments and prorated order adjustments for an item.javax.money.MonetaryAmount
OrderAndItemOfferHelper.calculateItemTotalFromPermutation
(Optional<ItemOfferPermutationResult> itemResult, Optional<OrderOfferPermutationResult> orderResult, EnhancedOrderLineItem item, boolean excludeItemTotalsWithDiscounts, DiscountableItemInfo discountableItemTotal) Uses the passed in results from a permutation result which holds the non-final item and offer adjustments relevant to the permutation.