Uses of Class
com.broadleafcommerce.promotion.offer.service.dto.ItemOfferPermutationResult
Packages that use ItemOfferPermutationResult
Package
Description
-
Uses of ItemOfferPermutationResult in com.broadleafcommerce.promotion.offer.service.dto
Methods in com.broadleafcommerce.promotion.offer.service.dto that return types with arguments of type ItemOfferPermutationResultModifier and TypeMethodDescriptionCombinedTypesOfferPermutation.getBestFulfillmentItemOfferPermutation()
CombinedTypesOfferPermutation.getBestItemOfferPermutation()
Methods in com.broadleafcommerce.promotion.offer.service.dto with parameters of type ItemOfferPermutationResultModifier 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.Constructors in com.broadleafcommerce.promotion.offer.service.dto with parameters of type ItemOfferPermutationResultModifierConstructorDescriptionItemOfferPermutationResult
(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
Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor that return ItemOfferPermutationResultModifier 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.Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor with parameters of type ItemOfferPermutationResultModifier 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) Method parameters in com.broadleafcommerce.promotion.offer.service.engine.application.processor with type arguments of type ItemOfferPermutationResultModifier 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
Method parameters in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper with type arguments of type ItemOfferPermutationResultModifier 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.