Uses of Class
com.broadleafcommerce.promotion.offer.web.context.EnhancedOrder
Package
Description
-
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service
Modifier and TypeMethodDescriptionprotected EnhancedOrder
DefaultMarketingMessageResolver.buildEnhancedOrderForMarketingMessageRequest
(MarketingMessageRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Build a simple order to use for offer filtering based on customer if neededModifier and TypeMethodDescriptionprotected void
DefaultOfferService.buildCodeResponsesForFilters
(Set<P> all, EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) DefaultOfferService.readAutomaticAndCodeAndCustomerOffersIn
(Iterable<String> offerIdsToFilterOn, Iterable<String> trackingIds, EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferService.readAutomaticAndCodeAndCustomerOffersIn
(Iterable<String> offerIdsToFilterOn, Iterable<String> trackingIds, EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all active offers whereOffer.isAutomaticallyConsidered()
is true or the offers match the passed in offerIds or contain the passed in campaign trackingIds. -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.dto
Modifier and TypeMethodDescriptionCandidateOrderOffer.getOrder()
The order being targeted byBaseCandidateOffer.getOffer()
}.OfferProcessingContext.getOrder()
Modifier and TypeMethodDescriptionvoid
CandidateOffers.initializeCandidateOfferForProcessing
(BaseCandidateOffer offer, EnhancedOrder order) Adds the offer to the relevant collections used by the offer engine.boolean
BaseCandidateOffer.isNotExcludedFromOffer
(EnhancedOrder order, EnhancedLineItem item) Returns true if the passed in item is NOT excluded from this offer.void
CandidateOrderOffer.setOrder
(EnhancedOrder order) The order being targeted byBaseCandidateOffer.getOffer()
}.int
CandidateItemOffer.targetQtyRequired
(EnhancedOrder order) ModifierConstructorDescriptionOfferProcessingContext
(EnhancedOrder order, CandidateOffers offers) -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.engine
Modifier and TypeMethodDescriptionvoid
DefaultOfferEngineService.applyAdjustments
(EnhancedOrder order, OfferProcessingContext processingContext) void
OfferEngineService.applyAdjustments
(EnhancedOrder order, OfferProcessingContext processingContext) Applies the offers to the order in a way that gives the best discount for the customer based on possible permutations.protected void
DefaultOfferEngineService.assertOrderNotNull
(EnhancedOrder order) com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse<P>
DefaultOfferEngineResponseBuilder.build
(@NonNull EnhancedOrder order) com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse<P>
OfferEngineResponseBuilder.build
(EnhancedOrder order) Builds a response object detailing the adjustment information on the provided order.protected void
OfferProcesingUtility.buildCombinedOfferTypePermutations
(EnhancedOrder order, OfferProcessingContext context) Each offer type (e.g.protected com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse
DefaultOfferEngineService.buildResponse
(EnhancedOrder order) com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse
DefaultOfferEngineService.executeOnOrderAndContext
(EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse
OfferEngineService.executeOnOrderAndContext
(EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) For the provided order and context, determines the candidate offers and applies them to the order in the permutation that gives the best discount.protected javax.money.MonetaryAmount
DefaultOfferEngineResponseBuilder.getAdjustedSubtotal
(@NotNull EnhancedOrder order, com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse<P> orderResponse) protected javax.money.MonetaryAmount
DefaultOfferEngineResponseBuilder.getAdjustedTotal
(@NotNull EnhancedOrder order, javax.money.MonetaryAmount adjustedSubtotal) DefaultOfferEngineService.getCandidateOffers
(EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferEngineService.getCandidateOffers
(EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Determines all of the candidate offers that can apply to the provided order for the given context.protected com.broadleafcommerce.promotion.offer.client.web.context.discounts.FulfillmentGroupResponse<P>
DefaultOfferEngineResponseBuilder.getFulfillmentGroupResponse
(@NonNull EnhancedOrder order, @NonNull EnhancedFulfillmentGroup group, @NonNull OfferCodeData offerCodeData) Creates an offer fulfillment group response for a fulfillment group.protected void
DefaultOfferEngineService.initializeCurrency
(EnhancedOrder order) Orders should already have a currency but if one is not present on the order, this method will populate it with the system default.protected boolean
DefaultOfferEngineService.initializeOrder
(EnhancedOrder order) protected OrderTotals
OfferProcesingUtility.initializeOrderTotals
(EnhancedOrder order) com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse
DefaultOfferEngineService.modifyEvaluateOffersResponse
(com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse response, EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse
OfferEngineService.modifyEvaluateOffersResponse
(com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse response, EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hook point to add custom logic for the evaluate offer response.void
DefaultOfferEngineService.populateProratedFulfillmentGroupAdjustments
(EnhancedOrder order) void
OfferEngineService.populateProratedFulfillmentGroupAdjustments
(EnhancedOrder order) Populates all of theEnhancedProratedOfferAdjustments
for anyOffer
that has aDiscount.getTargetType()
ofDiscountTargetType.FULFILLMENT_GROUP
and add them onto the individual discountablefulfillment items
, as well as populatingEnhancedFulfillmentGroup.getProratedFulfillmentAdjustments()
.void
DefaultOfferEngineService.populateProratedItemAdjustments
(EnhancedOrder order, OfferProcessingContext context) void
OfferEngineService.populateProratedItemAdjustments
(EnhancedOrder order, OfferProcessingContext context) For anyOffer
that has aDiscount.prorationType
ofProrationType.TARGET_AND_QUALIFIER
, this will populate all of theProratedItemOfferAdjustments
on theLineItemOfferDetails
mostly for the sake of reporting instruments.void
DefaultOfferEngineService.populateProratedOrderAdjustments
(EnhancedOrder order, OfferProcessingContext context) void
OfferEngineService.populateProratedOrderAdjustments
(EnhancedOrder order, OfferProcessingContext context) Populates all of theEnhancedProratedOfferAdjustments
for anyOffer
that has aDiscount.getTargetType()
ofDiscountTargetType.ORDER
and add them onto the individual discountableorder line items
.DefaultOfferEngineService.prepareOfferProcessingContext
(EnhancedOrder order, CandidateOffers candidateOffers) This method takes in a set of candidate offers.OfferProcesingUtility.prepareOfferProcessingContext
(EnhancedOrder order, CandidateOffers candidateOffers) -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.engine.application
Modifier and TypeMethodDescriptionDefaultOfferApplicationService.applyAdjustments
(OfferProcessingContext context) OfferApplicationService.applyAdjustments
(OfferProcessingContext context) Applies the adjustments to the EnhancedOrder and returns the order with adjustments applied and totals updated. -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.engine.application.processor
Modifier and TypeMethodDescriptionprotected void
DefaultFulfillmentGroupOfferProcessor.addCodeResponseToPermutationResult
(EnhancedOrder order, Offer offer, FulfillmentGroupOfferPermutationResult result, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse codeResponse) Adds theCodeResponse
to theFulfillmentGroupOfferPermutationResult
for the provided offer.protected 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
DefaultOrderOfferProcessor.addCodeResponseToPermutationResult
(EnhancedOrder order, Offer offer, OrderOfferPermutationResult result, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse codeResponse) Adds theCodeResponse
to theOrderOfferPermutationResult
for the provided offer.protected void
DefaultItemOfferProcessor.applyAdjustments
(EnhancedOrder order, CandidateItemOffer itemOffer) protected void
DefaultItemOfferProcessor.applyCandidateOffers
(EnhancedOrder order, List<CandidateItemOffer> candidateOffers) Deprecated.protected void
DefaultItemOfferProcessor.applyCandidateOffers
(EnhancedOrder order, List<CandidateItemOffer> candidateOffers, ItemOfferPermutationResult result) protected void
DefaultItemOfferProcessor.applyFreeGift
(EnhancedOrder order, CandidateItemOffer itemOffer) Builds and adds aFreeGiftItem
togetFreeGiftItems()
based onCandidateItemOffer.getCandidateQualifiersMap()
if the givenitemOffer
is a free gift offer.protected void
DefaultItemOfferProcessor.applyItemOffer
(EnhancedOrder order, CandidateItemOffer itemOffer) protected void
DefaultItemOfferProcessor.applyItemQualifiersAndTargets
(EnhancedOrder order, CandidateItemOffer itemOffer) protected void
DefaultItemOfferProcessor.assertCommonParamsNotNull
(EnhancedOrder order, CandidateOffers candidateOffers) protected com.broadleafcommerce.promotion.offer.client.web.context.info.Adjustment
DefaultItemOfferProcessor.buildAdjustmentForFreeGift
(EnhancedOrder order, CandidateItemOffer itemOffer) Builds anAdjustment
for aFreeGiftItem
.protected com.broadleafcommerce.promotion.offer.client.web.context.info.Voucher
DefaultOrderOfferProcessor.buildVoucher
(CandidateOrderOffer orderOffer, EnhancedOrder order) protected javax.money.MonetaryAmount
DefaultFulfillmentGroupOfferProcessor.calculateFulfillmentGroupItemSubtotal
(EnhancedOrder order, EnhancedFulfillmentGroup group, CandidateFulfillmentGroupOffer groupOffer, CombinedTypesOfferPermutation ctop) void
DefaultFulfillmentGroupOfferProcessor.calculatePotentialSavings
(EnhancedOrder order, List<CandidateFulfillmentGroupOffer> candidateOffers) protected void
DefaultItemOfferProcessor.calculatePotentialSavings
(EnhancedOrder order, List<CandidateItemOffer> candidateItemOffers) protected boolean
DefaultFulfillmentGroupOfferProcessor.canOfferBeApplied
(EnhancedOrder order, EnhancedFulfillmentGroup group, CandidateFulfillmentGroupOffer groupOffer, CombinedTypesOfferPermutation ctop) protected boolean
DefaultFulfillmentGroupOfferProcessor.canOfferBeApplied
(EnhancedOrder order, EnhancedFulfillmentGroup group, CandidateFulfillmentGroupOffer groupOffer, CombinedTypesOfferPermutation ctop, FulfillmentGroupOfferPermutationResult result) protected boolean
DefaultItemOfferProcessor.canOfferBeApplied
(EnhancedOrder order, CandidateItemOffer itemOffer, List<LineItemOfferDetail> itemDetails) 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 boolean
DefaultOrderOfferProcessor.canOfferBeApplied
(EnhancedOrder order, CandidateOrderOffer orderOffer, OrderOfferPermutationResult result) protected boolean
DefaultFulfillmentGroupOfferProcessor.checkFulfillmentGroupTotal
(EnhancedOrder order, EnhancedFulfillmentGroup group, CandidateFulfillmentGroupOffer groupOffer, CombinedTypesOfferPermutation ctop) protected void
DefaultItemOfferProcessor.chooseSaleOrStandardAdjustments
(EnhancedOrder order) SomeOffers
can only apply to theEnhancedLineItem.getStandardPrice()
.protected void
DefaultFulfillmentGroupOfferProcessor.clearStateBetweenPermutations
(EnhancedOrder order, List<CandidateFulfillmentGroupOffer> candidateOffers) protected void
DefaultItemOfferProcessor.clearStateBetweenPermutations
(EnhancedOrder order, List<CandidateItemOffer> candidateOffers) protected boolean
DefaultOrderOfferProcessor.couldOfferApplyToOrder
(EnhancedOrder order, CandidateOrderOffer orderOffer) protected Optional<List<CandidateItemOffer>>
DefaultItemOfferProcessor.findBestPermutation
(EnhancedOrder order, List<List<CandidateItemOffer>> permutations) Determines the best permutation by comparing the resulting total discounts of each permutations.protected javax.money.MonetaryAmount
DefaultItemOfferProcessor.getEstimatedFreeGiftValue
(EnhancedOrder order, Offer offer) protected javax.money.MonetaryAmount
DefaultOrderOfferProcessor.getEstimatedVoucherValue
(EnhancedOrder order, Offer offer) protected void
DefaultFulfillmentGroupOfferProcessor.incrementTotalSavingsPerCandidate
(EnhancedOrder order, CandidateFulfillmentGroupOffer offer, List<CandidateFulfillmentGroup> groups) protected void
DefaultItemOfferProcessor.mergePriceDetails
(EnhancedOrder order) Checks to see if anyLineItemOfferDetails
need to be combined and if so, combines them.void
DefaultItemOfferProcessor.prepareForItemOfferProcessing
(EnhancedOrder order, List<CandidateItemOffer> candidateItemOffers) void
ItemOfferProcessor.prepareForItemOfferProcessing
(EnhancedOrder order, List<CandidateItemOffer> candidateItemOffers) Item offer processing can benefit from setup activities that are used by all of the permutations.protected List<EnhancedOrderLineItem>
DefaultOrderOfferProcessor.relevantSegmentItems
(EnhancedOrder order, CandidateOrderOffer offer) Returns list of order items matching the offers segment and then filters the returned list by calling #shouldFilterItemprotected void
DefaultOrderOfferProcessor.removeLowerValueItemOffersFromConsideration
(EnhancedOrder order, OffersPermutation<CandidateOrderOffer> offerPermutation, CombinedTypesOfferPermutation ctop) When theOffer#isExcludeDiscountedItemsFromTotals()
property is true, we want to check to see if the Order offer would be better than previously applied item offers.protected boolean
DefaultFulfillmentGroupOfferProcessor.shouldIncludeItem
(EnhancedOrder order, EnhancedFulfillmentGroup group, EnhancedFulfillmentLineItem fItem, CandidateFulfillmentGroupOffer groupOffer) protected boolean
DefaultOrderOfferProcessor.shouldIncludeItem
(EnhancedOrderLineItem item, EnhancedOrder order, CandidateOrderOffer offer) protected boolean
DefaultOrderOfferProcessor.shouldIncludeSegmentItem
(EnhancedOrderLineItem item, EnhancedOrder order, CandidateOrderOffer offer) Filters items that are part of the offer being processed.void
DefaultFulfillmentGroupOfferProcessor.updateFulfillmentGroupTotal
(EnhancedOrder order) void
FulfillmentGroupOfferProcessor.updateFulfillmentGroupTotal
(EnhancedOrder order) -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper
Modifier and TypeMethodDescriptionboolean
DefaultOrderAndItemOfferHelper.orderMeetsSubtotalRequirements
(EnhancedOrder order, BaseCandidateOffer candidateOffer) boolean
OrderAndItemOfferHelper.orderMeetsSubtotalRequirements
(EnhancedOrder order, BaseCandidateOffer candidateOffer) As offers are applied, recheck to ensure that the next offer in the collection of candidates can be applied based on the order subtotal. -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper.item
Modifier and TypeMethodDescriptionprotected void
DefaultPotentialSavingsCalculator.assertCommonParamsNotNull
(EnhancedOrder order, CandidateItemOffer candidateOffer) protected void
DefaultQualifierAndTargetMarker.assertCommonParamsNotNull
(EnhancedOrder order, CandidateItemOffer candidateOffer) DefaultPotentialSavingsCalculator.calculatePotentialSavingsForOffer
(EnhancedOrder order, CandidateItemOffer itemOffer, boolean isForFulfillment) PotentialSavingsCalculator.calculatePotentialSavingsForOffer
(EnhancedOrder order, CandidateItemOffer itemOffer, boolean isForFulfillment) Calculates theTotalPotentialSavings
for all of the givengetOrderLineItems()
order's order line items} if the givenCandidateItemOffer
was applied.protected Optional<javax.money.MonetaryAmount>
DefaultQualifierAndTargetMarker.handleMaxItemSavingsPerOrder
(CandidateItemOffer itemOffer, EnhancedOrder order, boolean isForFulfillment, javax.money.MonetaryAmount runningAdjustmentsTotal) Calculates the currentIterationSavings.void
DefaultQualifierAndTargetMarker.markQualifiersAndTargets
(EnhancedOrder order, CandidateItemOffer itemOffer, boolean isForFulfillment) void
QualifierAndTargetMarker.markQualifiersAndTargets
(EnhancedOrder order, CandidateItemOffer itemOffer, boolean isForFulfillment) MarksgetOrderLineItems()
as either targets or qualifiers for a givenCandidateItemOffer
.protected void
DefaultQualifierAndTargetMarker.updateReasonResponses
(EnhancedOrder order, CandidateItemOffer itemOffer, boolean qualifiersFound) -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.engine.candidate
Modifier and TypeMethodDescriptionprotected void
DefaultOfferCandidateService.buildOfferUsablilityCodeResponses
(EnhancedOrder order, List<P> offerList, OffersAndOfferCodesUsabilityInfo usabilityInfo) boolean
DefaultOfferCandidateService.checkOfferActiveAndTimeCriteria
(EnhancedOrder order, P offer) DefaultOfferCandidateService.checkOfferUsability
(Stream<P> offers, EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) DefaultOfferCandidateService.constructCandidateOffer
(Offer offer, EnhancedOrder order) CandidateOfferUtility.createCandidateFulfillmentGroupOffer
(EnhancedOrder order, Offer offer) Creates aCandidateFulfillmentGroupOffer
for the given order and offer.DefaultCandidateOfferUtility.createCandidateFulfillmentGroupOffer
(EnhancedOrder order, Offer offer) CandidateOfferUtility.createCandidateFulfillmentItemOffer
(EnhancedOrder order, Offer offer) Creates aCandidateItemOffer
for the given order and offer.DefaultCandidateOfferUtility.createCandidateFulfillmentItemOffer
(EnhancedOrder order, Offer offer) DefaultOfferCandidateService.createCandidateOffersFromOffers
(@NonNull Stream<P> offerSet, @NonNull EnhancedOrder order) OfferCandidateService.createCandidateOffersFromOffers
(Stream<P> offerSet, EnhancedOrder order) Creates aCandidateOffers
object by converting the providedoffers
into their corresponding DTO object based on theirDiscountTargetType
.CandidateOfferUtility.createCandidateOrderItemOffer
(EnhancedOrder order, Offer offer) Creates aCandidateItemOffer
for the given order and offer.DefaultCandidateOfferUtility.createCandidateOrderItemOffer
(EnhancedOrder order, Offer offer) CandidateOfferUtility.createCandidateOrderOffer
(EnhancedOrder order, Offer offer) Creates aCandidateOrderOffer
for the given order and offer.DefaultCandidateOfferUtility.createCandidateOrderOffer
(EnhancedOrder order, Offer offer) protected boolean
DefaultOfferCandidateService.evaluateFulfillmentItemCriteriaAgainstFulfillmentGroups
(EnhancedOrder order, CandidateFulfillmentGroupOffer candidateOffer) protected boolean
DefaultOfferCandidateService.evaluateFulfillmentItemCriteriaAgainstOrder
(@NonNull EnhancedOrder order, @NonNull Map<ItemCriteriaRule, Collection<EnhancedFulfillmentLineItem>> itemCriteriaMap, String connectiveOperator) protected boolean
DefaultOfferCandidateService.evaluateOfferItemCriteriaAgainstOrder
(@NonNull EnhancedOrder order, @NonNull BaseCandidateOffer offer, @NonNull Map<ItemCriteriaRule, Collection<EnhancedLineItem>> itemCriteriaMap, String connectiveOperator, boolean allowMatchesOnNonDiscountableItems) Evaluates theItemCriteriaRules
from an order or order item targeting offer against theOrder
to determine whether the offer is applicable.protected Set<EnhancedFulfillmentLineItem>
DefaultOfferCandidateService.evaluateOrderForMatchingFulfillmentItems
(EnhancedOrder order, ItemCriteriaRule itemCriteria) protected List<BaseCandidateOffer>
DefaultOfferCandidateService.expandOffersBySegment
(BaseCandidateOffer offer, EnhancedOrder order) It is possible for a single offer to be activated using two separate codes that are restricted to different segments.<T extends BaseCandidateOffer>
List<T>DefaultOfferCandidateService.filterOffersByItemQualifiers
(@NonNull List<T> candidateOffers, @NonNull EnhancedOrder order) <T extends BaseCandidateOffer>
List<T>OfferCandidateService.filterOffersByItemQualifiers
(List<T> offerSet, EnhancedOrder order) Filter the provided offer set based on if the items of the provided order match as qualifiers.DefaultOfferCandidateService.filterOffersByOrderCurrency
(Stream<P> offerSet, EnhancedOrder order) DefaultOfferCandidateService.filterOffersByRequest
(@NonNull Stream<P> offerSet, @NonNull EnhancedOrder order) OfferCandidateService.filterOffersByRequest
(Stream<P> offerSet, EnhancedOrder order) Filter the provided offer set based on information in the given context of the order.DefaultOfferCandidateService.filterOffersByTotalUses
(@NonNull Stream<P> offerSet, @NonNull EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferCandidateService.filterOffersByTotalUses
(Stream<P> offerSet, EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Filter the provided offer set based on thetotal uses
of the offer as well asuser uses
, while also factoring inOffer.getMaxUsesPerUserFrequency()
.DefaultOfferCandidateService.filterOffersByUserTarget
(Stream<P> offerSet, EnhancedOrder order) protected OffersAndOfferCodesUsabilityInfo
DefaultOfferCandidateService.gatherOfferAndOfferCodeUsabilityInfo
(EnhancedOrder order, List<P> offerList, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) DefaultOfferCandidateService.getAutomaticAndCodeAndCustomerOffers
(@NonNull Set<String> offerIdsToFilterOn, @NonNull Set<String> campaignIdsToFilterOn, EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferCandidateService.getAutomaticAndCodeAndCustomerOffers
(Set<String> offerIdsForCodes, Set<String> campaignIdsToFilterOn, EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve offers that are set to automatically be considered or that correspond to the provided offer code(s) or customer specific offers for the provided customer.DefaultOfferCandidateService.getCandidateOfferCodes
(@NonNull EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) DefaultOfferCandidateService.getCandidateOffers
(@NonNull EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferCandidateService.getCandidateOffers
(EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Get the candidate offers for the provided order and context.DefaultOfferCandidateService.getCandidateVoucherOffers
(@NonNull EnhancedOrder order, boolean isPostCheckout, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferCandidateService.getCandidateVoucherOffers
(EnhancedOrder order, boolean isPostCheckout, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Get the candidate voucher offers for the provided order and context.DefaultOfferCandidateService.getOffersForMessaging
(Set<String> offerIds, EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferCandidateService.getOffersForMessaging
(Set<String> offerIds, EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve offers that are automatically applied and applicable for marketing messaging.DefaultOfferCandidateService.getOffersToFilter
(@NonNull EnhancedOrder order, @NonNull Set<String> offerIdsToFilterOn, @NonNull Set<String> campaignIdsToFilterOn, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferCandidateService.getOffersToFilter
(EnhancedOrder order, Set<String> offerIdsForCodes, Set<String> campaignIdsToFilterOn, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Get available offers that need to be filtered to become candidates.void
DefaultOfferCandidateService.initializeWithCodeProperties
(EnhancedOrder order, CandidateOffers candidateOffers, BaseCandidateOffer candidateOffer) protected boolean
DefaultOfferCandidateService.isAnyMatchFoundAcrossAllItems
(@NonNull EnhancedOrder order, @NonNull CandidateFulfillmentGroupOffer candidateOffer, @NonNull Offer offer) protected boolean
DefaultOfferCandidateService.isAnyMatchFoundInAnyFulfillmentGroup
(EnhancedOrder order, CandidateFulfillmentGroupOffer candidateOffer, Offer offer) protected void
DefaultCandidateOfferUtility.populateCandidateOfferCurrency
(@NonNull BaseCandidateOffer candidateOffer, @NonNull EnhancedOrder order, @NonNull Offer offer) DefaultOfferCandidateService.populateOrRemoveByFulfillmentGroupTargets
(@NonNull List<CandidateFulfillmentGroupOffer> candidateOfferList, EnhancedOrder order) OfferCandidateService.populateOrRemoveByFulfillmentGroupTargets
(List<CandidateFulfillmentGroupOffer> candidateOfferSet, EnhancedOrder order) Filter the provided offer set based on if the provided fulfillment groups of the order match as shipping targets.DefaultOfferCandidateService.populateOrRemoveCandidateOffers
(@NonNull Stream<P> offerSet, @NonNull EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferCandidateService.populateOrRemoveCandidateOffers
(Stream<P> offerSet, EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Filter out the provided offer set by matching their configurations against the information on the provided context and order.DefaultOfferCandidateService.populateOrRemoveOffersByFulfillmentGroupQualifiers
(@NonNull List<CandidateFulfillmentGroupOffer> candidateOfferSet, @NonNull EnhancedOrder order) OfferCandidateService.populateOrRemoveOffersByFulfillmentGroupQualifiers
(List<CandidateFulfillmentGroupOffer> candidateOfferSet, EnhancedOrder order) Filter the provided offer set based on if the items of the provided order match as qualifiers.DefaultOfferCandidateService.populateOrRemoveOffersByFulfillmentItemQualifiers
(@NonNull List<CandidateItemOffer> candidateOfferSet, @NonNull EnhancedOrder order) OfferCandidateService.populateOrRemoveOffersByFulfillmentItemQualifiers
(List<CandidateItemOffer> candidateOfferSet, EnhancedOrder order) Filter the provided offer set based on if the fulfillment items of the provided order match as qualifiers.DefaultOfferCandidateService.populateOrRemoveOffersByFulfillmentItemTargets
(@NonNull List<CandidateItemOffer> candidateOfferSet, @NonNull EnhancedOrder order) OfferCandidateService.populateOrRemoveOffersByFulfillmentItemTargets
(List<CandidateItemOffer> candidateOfferSet, EnhancedOrder order) Filter the provided offer set based on if the provided fulfillment items of the order match as shipping targets.DefaultOfferCandidateService.populateOrRemoveOffersByItemTargets
(@NonNull List<CandidateItemOffer> candidateOfferSet, @NonNull EnhancedOrder order) OfferCandidateService.populateOrRemoveOffersByItemTargets
(List<CandidateItemOffer> candidateOfferSet, EnhancedOrder order) Filter the provided offer set based on if the items of the provided order match as targets.protected boolean
DefaultOfferCandidateService.shouldIncludeItem
(EnhancedOrderLineItem item, EnhancedOrder order, BaseCandidateOffer offer) Deprecated, for removal: This API element is subject to removal in a future version.protected boolean
DefaultOfferCandidateService.shouldIncludeItem
(EnhancedOrderLineItem item, EnhancedOrder order, BaseCandidateOffer offer, boolean allowMatchesOnNonDiscountableItems) Whether the givenEnhancedOrderLineItem
should be considered when evaluating anItemCriteriaRule
.protected void
DefaultOfferCandidateService.updateNotFoundCodes
(EnhancedOrder order, List<OfferCode> offerCodes) protected void
DefaultOfferCandidateService.updateReasonResponsesForTargetNotMet
(@NotNull EnhancedOrder order, Offer offer) -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.engine.proration
Modifier and TypeMethodDescriptionDefaultProrationService.calculateProratedItemAdjustments
(EnhancedOrder order) ProrationService.calculateProratedItemAdjustments
(EnhancedOrder order) For anyOffer
that has aDiscount.prorationType
ofProrationType.TARGET_AND_QUALIFIER
, this will populate all of theProratedItemOfferAdjustments
on theLineItemOfferDetails
mostly for the sake of reporting instruments.protected Set<ItemOfferAdjustment>
DefaultProrationService.getAllAdjustments
(EnhancedOrder order) void
DefaultProrationService.populateProratedFulfillmentGroupAdjustments
(EnhancedOrder order) void
ProrationService.populateProratedFulfillmentGroupAdjustments
(EnhancedOrder order) Populates all of theEnhancedProratedOfferAdjustments
for anyOffer
that has aDiscount.getTargetType()
ofDiscountTargetType.FULFILLMENT_GROUP
and add them onto the individual discountablefulfillment items
, as well as populatingEnhancedFulfillmentGroup.getProratedFulfillmentAdjustments()
.void
DefaultProrationService.populateProratedOrderAdjustments
(EnhancedOrder order, OfferProcessingContext context) void
ProrationService.populateProratedOrderAdjustments
(EnhancedOrder order, OfferProcessingContext context) Populates all of theEnhancedProratedOfferAdjustments
for anyOffer
that has aDiscount.getTargetType()
ofDiscountTargetType.ORDER
and add them onto the individual discountablefulfillment items
, as well as populatingEnhancedFulfillmentGroup.getProratedFulfillmentAdjustments()
. -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.validation
Modifier and TypeMethodDescriptioncom.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResult
DefaultVoucherOfferUsageValidator.validateVoucherOfferUsages
(EnhancedOrder order, boolean isPostCheckout, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResult
VoucherOfferUsageValidator.validateVoucherOfferUsages
(EnhancedOrder order, boolean isPostCheckout, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) With the provided order, determine which voucher offers are no longer usable in a given context. -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.web.context.info
-
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.web.endpoint
Modifier and TypeMethodDescriptioncom.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse
OfferEngineEndpoint.applyOffers
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, EnhancedOrder order) com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse
OfferEngineEndpoint.evaluateOffers
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, EnhancedOrder order) com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResult
OfferEngineEndpoint.validateVouchers
(jakarta.servlet.http.HttpServletRequest request, EnhancedOrder order, boolean postCheckout, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
DefaultItemOfferProcessor.applyCandidateOffers(EnhancedOrder, List, ItemOfferPermutationResult)