Uses of Class
com.broadleafcommerce.promotion.offer.web.context.EnhancedOrder
Packages that use EnhancedOrder
Package
Description
-
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service
Methods in com.broadleafcommerce.promotion.offer.service that return EnhancedOrderModifier and TypeMethodDescriptionprotected EnhancedOrderDefaultMarketingMessageResolver.buildEnhancedOrderForMarketingMessageRequest(MarketingMessageRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Build a simple order to use for offer filtering based on customer if neededMethods in com.broadleafcommerce.promotion.offer.service with parameters of type EnhancedOrderModifier and TypeMethodDescriptionprotected voidDefaultOfferService.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
Methods in com.broadleafcommerce.promotion.offer.service.dto that return EnhancedOrderModifier and TypeMethodDescriptionCandidateOrderOffer.getOrder()The order being targeted byBaseCandidateOffer.getOffer()}.OfferProcessingContext.getOrder()Methods in com.broadleafcommerce.promotion.offer.service.dto with parameters of type EnhancedOrderModifier and TypeMethodDescriptionvoidCandidateOffers.initializeCandidateOfferForProcessing(BaseCandidateOffer offer, EnhancedOrder order) Adds the offer to the relevant collections used by the offer engine.booleanBaseCandidateOffer.isNotExcludedFromOffer(EnhancedOrder order, EnhancedLineItem item) Returns true if the passed in item is NOT excluded from this offer.voidCandidateOrderOffer.setOrder(EnhancedOrder order) The order being targeted byBaseCandidateOffer.getOffer()}.intCandidateItemOffer.targetQtyRequired(EnhancedOrder order) Constructors in com.broadleafcommerce.promotion.offer.service.dto with parameters of type EnhancedOrderModifierConstructorDescriptionOfferProcessingContext(EnhancedOrder order, CandidateOffers offers) -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.engine
Methods in com.broadleafcommerce.promotion.offer.service.engine with parameters of type EnhancedOrderModifier and TypeMethodDescriptionvoidDefaultOfferEngineService.applyAdjustments(EnhancedOrder order, OfferProcessingContext processingContext) voidOfferEngineService.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 voidDefaultOfferEngineService.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 voidOfferProcesingUtility.buildCombinedOfferTypePermutations(EnhancedOrder order, OfferProcessingContext context) Each offer type (e.g.protected com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponseDefaultOfferEngineService.buildResponse(EnhancedOrder order) com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponseDefaultOfferEngineService.executeOnOrderAndContext(EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponseOfferEngineService.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.MonetaryAmountDefaultOfferEngineResponseBuilder.getAdjustedSubtotal(@NotNull EnhancedOrder order, com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponse<P> orderResponse) protected javax.money.MonetaryAmountDefaultOfferEngineResponseBuilder.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 voidDefaultOfferEngineService.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 booleanDefaultOfferEngineService.initializeOrder(EnhancedOrder order) protected OrderTotalsOfferProcesingUtility.initializeOrderTotals(EnhancedOrder order) com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponseDefaultOfferEngineService.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.OrderResponseOfferEngineService.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.voidDefaultOfferEngineService.populateProratedFulfillmentGroupAdjustments(EnhancedOrder order) voidOfferEngineService.populateProratedFulfillmentGroupAdjustments(EnhancedOrder order) Populates all of theEnhancedProratedOfferAdjustmentsfor anyOfferthat has aDiscount.getTargetType()ofDiscountTargetType.FULFILLMENT_GROUPand add them onto the individual discountablefulfillment items, as well as populatingEnhancedFulfillmentGroup.getProratedFulfillmentAdjustments().voidDefaultOfferEngineService.populateProratedItemAdjustments(EnhancedOrder order, OfferProcessingContext context) voidOfferEngineService.populateProratedItemAdjustments(EnhancedOrder order, OfferProcessingContext context) For anyOfferthat has aDiscount.prorationTypeofProrationType.TARGET_AND_QUALIFIER, this will populate all of theProratedItemOfferAdjustmentson theLineItemOfferDetailsmostly for the sake of reporting instruments.voidDefaultOfferEngineService.populateProratedOrderAdjustments(EnhancedOrder order, OfferProcessingContext context) voidOfferEngineService.populateProratedOrderAdjustments(EnhancedOrder order, OfferProcessingContext context) Populates all of theEnhancedProratedOfferAdjustmentsfor anyOfferthat has aDiscount.getTargetType()ofDiscountTargetType.ORDERand 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
Methods in com.broadleafcommerce.promotion.offer.service.engine.application that return EnhancedOrderModifier 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
Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor with parameters of type EnhancedOrderModifier and TypeMethodDescriptionprotected voidDefaultFulfillmentGroupOfferProcessor.addCodeResponseToPermutationResult(EnhancedOrder order, Offer offer, FulfillmentGroupOfferPermutationResult result, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse codeResponse) Adds theCodeResponseto theFulfillmentGroupOfferPermutationResultfor the provided offer.protected 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 voidDefaultOrderOfferProcessor.addCodeResponseToPermutationResult(EnhancedOrder order, Offer offer, OrderOfferPermutationResult result, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse codeResponse) Adds theCodeResponseto theOrderOfferPermutationResultfor the provided offer.protected voidDefaultItemOfferProcessor.applyAdjustments(EnhancedOrder order, CandidateItemOffer itemOffer) protected voidDefaultItemOfferProcessor.applyCandidateOffers(EnhancedOrder order, List<CandidateItemOffer> candidateOffers) Deprecated.protected voidDefaultItemOfferProcessor.applyCandidateOffers(EnhancedOrder order, List<CandidateItemOffer> candidateOffers, ItemOfferPermutationResult result) protected voidDefaultItemOfferProcessor.applyFreeGift(EnhancedOrder order, CandidateItemOffer itemOffer) Builds and adds aFreeGiftItemtogetFreeGiftItems()based onCandidateItemOffer.getCandidateQualifiersMap()if the givenitemOfferis a free gift offer.protected voidDefaultItemOfferProcessor.applyItemOffer(EnhancedOrder order, CandidateItemOffer itemOffer) protected voidDefaultItemOfferProcessor.applyItemQualifiersAndTargets(EnhancedOrder order, CandidateItemOffer itemOffer) protected voidDefaultItemOfferProcessor.assertCommonParamsNotNull(EnhancedOrder order, CandidateOffers candidateOffers) protected com.broadleafcommerce.promotion.offer.client.web.context.info.AdjustmentDefaultItemOfferProcessor.buildAdjustmentForFreeGift(EnhancedOrder order, CandidateItemOffer itemOffer) Builds anAdjustmentfor aFreeGiftItem.protected com.broadleafcommerce.promotion.offer.client.web.context.info.VoucherDefaultOrderOfferProcessor.buildVoucher(CandidateOrderOffer orderOffer, EnhancedOrder order) protected javax.money.MonetaryAmountDefaultFulfillmentGroupOfferProcessor.calculateFulfillmentGroupItemSubtotal(EnhancedOrder order, EnhancedFulfillmentGroup group, CandidateFulfillmentGroupOffer groupOffer, CombinedTypesOfferPermutation ctop) voidDefaultFulfillmentGroupOfferProcessor.calculatePotentialSavings(EnhancedOrder order, List<CandidateFulfillmentGroupOffer> candidateOffers) protected voidDefaultItemOfferProcessor.calculatePotentialSavings(EnhancedOrder order, List<CandidateItemOffer> candidateItemOffers) protected booleanDefaultFulfillmentGroupOfferProcessor.canOfferBeApplied(EnhancedOrder order, EnhancedFulfillmentGroup group, CandidateFulfillmentGroupOffer groupOffer, CombinedTypesOfferPermutation ctop) protected booleanDefaultFulfillmentGroupOfferProcessor.canOfferBeApplied(EnhancedOrder order, EnhancedFulfillmentGroup group, CandidateFulfillmentGroupOffer groupOffer, CombinedTypesOfferPermutation ctop, FulfillmentGroupOfferPermutationResult result) protected booleanDefaultItemOfferProcessor.canOfferBeApplied(EnhancedOrder order, CandidateItemOffer itemOffer, List<LineItemOfferDetail> itemDetails) 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 booleanDefaultOrderOfferProcessor.canOfferBeApplied(EnhancedOrder order, CandidateOrderOffer orderOffer, OrderOfferPermutationResult result) protected booleanDefaultFulfillmentGroupOfferProcessor.checkFulfillmentGroupTotal(EnhancedOrder order, EnhancedFulfillmentGroup group, CandidateFulfillmentGroupOffer groupOffer, CombinedTypesOfferPermutation ctop) protected voidDefaultItemOfferProcessor.chooseSaleOrStandardAdjustments(EnhancedOrder order) SomeOfferscan only apply to theEnhancedLineItem.getStandardPrice().protected voidDefaultFulfillmentGroupOfferProcessor.clearStateBetweenPermutations(EnhancedOrder order, List<CandidateFulfillmentGroupOffer> candidateOffers) protected voidDefaultItemOfferProcessor.clearStateBetweenPermutations(EnhancedOrder order, List<CandidateItemOffer> candidateOffers) protected booleanDefaultOrderOfferProcessor.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.MonetaryAmountDefaultItemOfferProcessor.getEstimatedFreeGiftValue(EnhancedOrder order, Offer offer) protected javax.money.MonetaryAmountDefaultOrderOfferProcessor.getEstimatedVoucherValue(EnhancedOrder order, Offer offer) protected voidDefaultFulfillmentGroupOfferProcessor.incrementTotalSavingsPerCandidate(EnhancedOrder order, CandidateFulfillmentGroupOffer offer, List<CandidateFulfillmentGroup> groups) protected voidDefaultItemOfferProcessor.mergePriceDetails(EnhancedOrder order) Checks to see if anyLineItemOfferDetailsneed to be combined and if so, combines them.voidDefaultItemOfferProcessor.prepareForItemOfferProcessing(EnhancedOrder order, List<CandidateItemOffer> candidateItemOffers) voidItemOfferProcessor.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 voidDefaultOrderOfferProcessor.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 booleanDefaultFulfillmentGroupOfferProcessor.shouldIncludeItem(EnhancedOrder order, EnhancedFulfillmentGroup group, EnhancedFulfillmentLineItem fItem, CandidateFulfillmentGroupOffer groupOffer) protected booleanDefaultOrderOfferProcessor.shouldIncludeItem(EnhancedOrderLineItem item, EnhancedOrder order, CandidateOrderOffer offer) protected booleanDefaultOrderOfferProcessor.shouldIncludeSegmentItem(EnhancedOrderLineItem item, EnhancedOrder order, CandidateOrderOffer offer) Filters items that are part of the offer being processed.voidDefaultFulfillmentGroupOfferProcessor.updateFulfillmentGroupTotal(EnhancedOrder order) voidFulfillmentGroupOfferProcessor.updateFulfillmentGroupTotal(EnhancedOrder order) -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper
Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper with parameters of type EnhancedOrderModifier and TypeMethodDescriptionbooleanDefaultOrderAndItemOfferHelper.orderMeetsSubtotalRequirements(EnhancedOrder order, BaseCandidateOffer candidateOffer) booleanOrderAndItemOfferHelper.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
Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper.item with parameters of type EnhancedOrderModifier and TypeMethodDescriptionprotected voidDefaultPotentialSavingsCalculator.assertCommonParamsNotNull(EnhancedOrder order, CandidateItemOffer candidateOffer) protected voidDefaultQualifierAndTargetMarker.assertCommonParamsNotNull(EnhancedOrder order, CandidateItemOffer candidateOffer) DefaultPotentialSavingsCalculator.calculatePotentialSavingsForOffer(EnhancedOrder order, CandidateItemOffer itemOffer, boolean isForFulfillment) PotentialSavingsCalculator.calculatePotentialSavingsForOffer(EnhancedOrder order, CandidateItemOffer itemOffer, boolean isForFulfillment) Calculates theTotalPotentialSavingsfor all of the givengetOrderLineItems()order's order line items} if the givenCandidateItemOfferwas applied.protected Optional<javax.money.MonetaryAmount>DefaultQualifierAndTargetMarker.handleMaxItemSavingsPerOrder(CandidateItemOffer itemOffer, EnhancedOrder order, boolean isForFulfillment, javax.money.MonetaryAmount runningAdjustmentsTotal) Calculates the currentIterationSavings.voidDefaultQualifierAndTargetMarker.markQualifiersAndTargets(EnhancedOrder order, CandidateItemOffer itemOffer, boolean isForFulfillment) voidQualifierAndTargetMarker.markQualifiersAndTargets(EnhancedOrder order, CandidateItemOffer itemOffer, boolean isForFulfillment) MarksgetOrderLineItems()as either targets or qualifiers for a givenCandidateItemOffer.protected voidDefaultQualifierAndTargetMarker.updateReasonResponses(EnhancedOrder order, CandidateItemOffer itemOffer, boolean qualifiersFound) -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.engine.candidate
Methods in com.broadleafcommerce.promotion.offer.service.engine.candidate with parameters of type EnhancedOrderModifier and TypeMethodDescriptionprotected voidDefaultOfferCandidateService.buildOfferUsablilityCodeResponses(EnhancedOrder order, List<P> offerList, OffersAndOfferCodesUsabilityInfo usabilityInfo) booleanDefaultOfferCandidateService.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 aCandidateFulfillmentGroupOfferfor the given order and offer.DefaultCandidateOfferUtility.createCandidateFulfillmentGroupOffer(EnhancedOrder order, Offer offer) CandidateOfferUtility.createCandidateFulfillmentItemOffer(EnhancedOrder order, Offer offer) Creates aCandidateItemOfferfor 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 aCandidateOffersobject by converting the providedoffersinto their corresponding DTO object based on theirDiscountTargetType.CandidateOfferUtility.createCandidateOrderItemOffer(EnhancedOrder order, Offer offer) Creates aCandidateItemOfferfor the given order and offer.DefaultCandidateOfferUtility.createCandidateOrderItemOffer(EnhancedOrder order, Offer offer) CandidateOfferUtility.createCandidateOrderOffer(EnhancedOrder order, Offer offer) Creates aCandidateOrderOfferfor the given order and offer.DefaultCandidateOfferUtility.createCandidateOrderOffer(EnhancedOrder order, Offer offer) protected booleanDefaultOfferCandidateService.evaluateFulfillmentItemCriteriaAgainstFulfillmentGroups(EnhancedOrder order, CandidateFulfillmentGroupOffer candidateOffer) protected booleanDefaultOfferCandidateService.evaluateFulfillmentItemCriteriaAgainstOrder(@NonNull EnhancedOrder order, @NonNull Map<ItemCriteriaRule, Collection<EnhancedFulfillmentLineItem>> itemCriteriaMap, String connectiveOperator) protected booleanDefaultOfferCandidateService.evaluateOfferItemCriteriaAgainstOrder(@NonNull EnhancedOrder order, @NonNull BaseCandidateOffer offer, @NonNull Map<ItemCriteriaRule, Collection<EnhancedLineItem>> itemCriteriaMap, String connectiveOperator, boolean allowMatchesOnNonDiscountableItems) Evaluates theItemCriteriaRulesfrom an order or order item targeting offer against theOrderto 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 usesof the offer as well asuser uses, while also factoring inOffer.getMaxUsesPerUserFrequency().DefaultOfferCandidateService.filterOffersByUserTarget(Stream<P> offerSet, EnhancedOrder order) protected OffersAndOfferCodesUsabilityInfoDefaultOfferCandidateService.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.voidDefaultOfferCandidateService.initializeWithCodeProperties(EnhancedOrder order, CandidateOffers candidateOffers, BaseCandidateOffer candidateOffer) protected booleanDefaultOfferCandidateService.isAnyMatchFoundAcrossAllItems(@NonNull EnhancedOrder order, @NonNull CandidateFulfillmentGroupOffer candidateOffer, @NonNull Offer offer) protected booleanDefaultOfferCandidateService.isAnyMatchFoundInAnyFulfillmentGroup(EnhancedOrder order, CandidateFulfillmentGroupOffer candidateOffer, Offer offer) protected voidDefaultCandidateOfferUtility.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 booleanDefaultOfferCandidateService.shouldIncludeItem(EnhancedOrderLineItem item, EnhancedOrder order, BaseCandidateOffer offer) Deprecated, for removal: This API element is subject to removal in a future version.protected booleanDefaultOfferCandidateService.shouldIncludeItem(EnhancedOrderLineItem item, EnhancedOrder order, BaseCandidateOffer offer, boolean allowMatchesOnNonDiscountableItems) Whether the givenEnhancedOrderLineItemshould be considered when evaluating anItemCriteriaRule.protected voidDefaultOfferCandidateService.updateNotFoundCodes(EnhancedOrder order, List<OfferCode> offerCodes) protected voidDefaultOfferCandidateService.updateReasonResponsesForTargetNotMet(@NotNull EnhancedOrder order, Offer offer) -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.engine.proration
Methods in com.broadleafcommerce.promotion.offer.service.engine.proration with parameters of type EnhancedOrderModifier and TypeMethodDescriptionDefaultProrationService.calculateProratedItemAdjustments(EnhancedOrder order) ProrationService.calculateProratedItemAdjustments(EnhancedOrder order) For anyOfferthat has aDiscount.prorationTypeofProrationType.TARGET_AND_QUALIFIER, this will populate all of theProratedItemOfferAdjustmentson theLineItemOfferDetailsmostly for the sake of reporting instruments.protected Set<ItemOfferAdjustment>DefaultProrationService.getAllAdjustments(EnhancedOrder order) voidDefaultProrationService.populateProratedFulfillmentGroupAdjustments(EnhancedOrder order) voidProrationService.populateProratedFulfillmentGroupAdjustments(EnhancedOrder order) Populates all of theEnhancedProratedOfferAdjustmentsfor anyOfferthat has aDiscount.getTargetType()ofDiscountTargetType.FULFILLMENT_GROUPand add them onto the individual discountablefulfillment items, as well as populatingEnhancedFulfillmentGroup.getProratedFulfillmentAdjustments().voidDefaultProrationService.populateProratedOrderAdjustments(EnhancedOrder order, OfferProcessingContext context) voidProrationService.populateProratedOrderAdjustments(EnhancedOrder order, OfferProcessingContext context) Populates all of theEnhancedProratedOfferAdjustmentsfor anyOfferthat has aDiscount.getTargetType()ofDiscountTargetType.ORDERand add them onto the individual discountablefulfillment items, as well as populatingEnhancedFulfillmentGroup.getProratedFulfillmentAdjustments(). -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.validation
Methods in com.broadleafcommerce.promotion.offer.service.validation with parameters of type EnhancedOrderModifier and TypeMethodDescriptioncom.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResultDefaultVoucherOfferUsageValidator.validateVoucherOfferUsages(EnhancedOrder order, boolean isPostCheckout, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResultVoucherOfferUsageValidator.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
Methods in com.broadleafcommerce.promotion.offer.web.context.info that return EnhancedOrderMethods in com.broadleafcommerce.promotion.offer.web.context.info with parameters of type EnhancedOrder -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.web.endpoint
Methods in com.broadleafcommerce.promotion.offer.web.endpoint with parameters of type EnhancedOrderModifier and TypeMethodDescriptioncom.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponseOfferEngineEndpoint.applyOffers(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, EnhancedOrder order) com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponseOfferEngineEndpoint.evaluateOffers(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, EnhancedOrder order) com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResultOfferEngineEndpoint.validateVouchers(jakarta.servlet.http.HttpServletRequest request, EnhancedOrder order, boolean postCheckout, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
DefaultItemOfferProcessor.applyCandidateOffers(EnhancedOrder, List, ItemOfferPermutationResult)