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 TypeMethodDescriptionbooleanItemOfferPermutationResult.isEqualTo(ItemOfferPermutationResult other) booleanItemOfferPermutationResult.isLessValueThan(ItemOfferPermutationResult other) voidCombinedTypesOfferPermutation.updateBestFulfillmentItemPermutation(ItemOfferPermutationResult permutation) voidCombinedTypesOfferPermutation.updateBestOrderItemPermutation(ItemOfferPermutationResult permutation) voidCombinedTypesOfferPermutation.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 ItemOfferPermutationResultDefaultItemOfferProcessor.computeOfferPermutationValue(OfferProcessingContext context, List<CandidateItemOffer> candidateItemOffers, OrderTotals orderTotals) protected ItemOfferPermutationResultDefaultItemOfferProcessor.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 voidDefaultItemOfferProcessor.addCodeResponseToPermutationResult(EnhancedOrder order, Offer offer, ItemOfferPermutationResult result, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse codeResponse) Adds theCodeResponseto theItemOfferPermutationResultfor the provided offer.protected voidDefaultItemOfferProcessor.addFreeGiftsToResult(OfferProcessingContext context, ItemOfferPermutationResult result) protected voidDefaultItemOfferProcessor.applyCandidateOffers(EnhancedOrder order, List<CandidateItemOffer> candidateOffers, ItemOfferPermutationResult result) voidDefaultItemOfferProcessor.applyItemAdjustments(OfferProcessingContext context, ItemOfferPermutationResult result) voidItemOfferProcessor.applyItemAdjustments(OfferProcessingContext context, ItemOfferPermutationResult result) For item processing, the adjustments are stored onLineItemOfferDetailrecords.protected booleanDefaultItemOfferProcessor.canOfferBeApplied(EnhancedOrder order, CandidateItemOffer itemOffer, List<LineItemOfferDetail> itemDetails, ItemOfferPermutationResult result) Determines whether theOffercan be applied by making sure it is the order meets the total requirements.protected ItemOfferPermutationResultDefaultItemOfferProcessor.determineBestPermutationGivenEqualAdjustmentValues(AtomicReference<ItemOfferPermutationResult> bestPermutation, ItemOfferPermutationResult result) Hook point where both permutations offering the same discount, which permutation should be chosen.protected voidDefaultItemOfferProcessor.updateBestPermutation(CombinedTypesOfferPermutation ctop, ItemOfferPermutationResult bestPermutation) Method parameters in com.broadleafcommerce.promotion.offer.service.engine.application.processor with type arguments of type ItemOfferPermutationResultModifier and TypeMethodDescriptionprotected ItemOfferPermutationResultDefaultItemOfferProcessor.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.MonetaryAmountDefaultOrderAndItemOfferHelper.calculateFulfillmentItemTotalFromPermutation(Optional<ItemOfferPermutationResult> itemResult, EnhancedFulfillmentLineItem item, DiscountableItemInfo discountableItemTotal) javax.money.MonetaryAmountOrderAndItemOfferHelper.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.MonetaryAmountDefaultOrderAndItemOfferHelper.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.MonetaryAmountOrderAndItemOfferHelper.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.