Uses of Class
com.broadleafcommerce.promotion.offer.web.context.EnhancedOrder
-
-
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.dto
Methods in com.broadleafcommerce.promotion.offer.service.dto that return EnhancedOrder Modifier and Type Method Description EnhancedOrderCandidateOrderOffer. getOrder()The order being targeted byBaseCandidateOffer.getOffer()}.EnhancedOrderOfferProcessingContext. getOrder()Methods in com.broadleafcommerce.promotion.offer.service.dto with parameters of type EnhancedOrder Modifier and Type Method Description 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 EnhancedOrder Constructor Description OfferProcessingContext(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 EnhancedOrder Modifier and Type Method Description voidDefaultOfferEngineService. 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.CandidateOffersDefaultOfferEngineService. getCandidateOffers(EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)CandidateOffersOfferEngineService. 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 Set<String> allOrderCodes)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)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)voidOfferEngineService. populateProratedItemAdjustments(EnhancedOrder order)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)voidOfferEngineService. populateProratedOrderAdjustments(EnhancedOrder order)Populates all of theEnhancedProratedOfferAdjustmentsfor anyOfferthat has aDiscount.getTargetType()ofDiscountTargetType.ORDERand add them onto the individual discountableorder line items.OfferProcessingContextDefaultOfferEngineService. prepareOfferProcessingContext(EnhancedOrder order, CandidateOffers candidateOffers)This method takes in a set of candidate offers.OfferProcessingContextOfferProcesingUtility. 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 EnhancedOrder Modifier and Type Method Description EnhancedOrderDefaultOfferApplicationService. applyAdjustments(OfferProcessingContext context)EnhancedOrderOfferApplicationService. 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 EnhancedOrder Modifier and Type Method Description protected voidDefaultItemOfferProcessor. applyAdjustments(EnhancedOrder order, CandidateItemOffer itemOffer)protected voidDefaultItemOfferProcessor. applyCandidateOffers(EnhancedOrder order, List<CandidateItemOffer> candidateOffers)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.voidDefaultFulfillmentGroupOfferProcessor. calculatePotentialSavings(EnhancedOrder order, List<CandidateFulfillmentGroupOffer> candidateOffers)protected voidDefaultItemOfferProcessor. calculatePotentialSavings(EnhancedOrder order, List<CandidateItemOffer> candidateItemOffers)protected booleanDefaultItemOfferProcessor. canOfferBeApplied(EnhancedOrder order, CandidateItemOffer itemOffer, List<LineItemOfferDetail> itemDetails)Determines whether theOffercan be applied by making sure it iscombinableand that all other offers applied to anyLineItemsare also combinable by checking theirEnhancedLineItem.offerDetails.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.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 EnhancedOrder Modifier and Type Method Description booleanDefaultOrderAndItemOfferHelper. 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 EnhancedOrder Modifier and Type Method Description protected voidDefaultPotentialSavingsCalculator. assertCommonParamsNotNull(EnhancedOrder order, CandidateItemOffer candidateOffer)protected voidDefaultQualifierAndTargetMarker. assertCommonParamsNotNull(EnhancedOrder order, CandidateItemOffer candidateOffer)TotalPotentialSavingsDefaultPotentialSavingsCalculator. calculatePotentialSavingsForOffer(EnhancedOrder order, CandidateItemOffer itemOffer, boolean isForFulfillment)TotalPotentialSavingsPotentialSavingsCalculator. calculatePotentialSavingsForOffer(EnhancedOrder order, CandidateItemOffer itemOffer, boolean isForFulfillment)Calculates theTotalPotentialSavingsfor all of the givengetOrderLineItems()order's order line items} if the givenCandidateItemOfferwas applied.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. -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.engine.candidate
Methods in com.broadleafcommerce.promotion.offer.service.engine.candidate with parameters of type EnhancedOrder Modifier and Type Method Description CandidateFulfillmentGroupOfferCandidateOfferUtility. createCandidateFulfillmentGroupOffer(EnhancedOrder order, Offer offer)Creates aCandidateFulfillmentGroupOfferfor the given order and offer.CandidateFulfillmentGroupOfferDefaultCandidateOfferUtility. createCandidateFulfillmentGroupOffer(EnhancedOrder order, Offer offer)CandidateItemOfferCandidateOfferUtility. createCandidateFulfillmentItemOffer(EnhancedOrder order, Offer offer)Creates aCandidateItemOfferfor the given order and offer.CandidateItemOfferDefaultCandidateOfferUtility. createCandidateFulfillmentItemOffer(EnhancedOrder order, Offer offer)CandidateOffersDefaultOfferCandidateService. createCandidateOffersFromOffers(@NonNull Stream<P> offerSet, @NonNull EnhancedOrder order)CandidateOffersOfferCandidateService. createCandidateOffersFromOffers(Stream<P> offerSet, EnhancedOrder order)Creates aCandidateOffersobject by converting the providedoffersinto their corresponding DTO object based on theirDiscountTargetType.CandidateItemOfferCandidateOfferUtility. createCandidateOrderItemOffer(EnhancedOrder order, Offer offer)Creates aCandidateItemOfferfor the given order and offer.CandidateItemOfferDefaultCandidateOfferUtility. createCandidateOrderItemOffer(EnhancedOrder order, Offer offer)CandidateOrderOfferCandidateOfferUtility. createCandidateOrderOffer(EnhancedOrder order, Offer offer)Creates aCandidateOrderOfferfor the given order and offer.CandidateOrderOfferDefaultCandidateOfferUtility. createCandidateOrderOffer(EnhancedOrder order, Offer offer)protected booleanDefaultOfferCandidateService. doesOfferHaveUsesLeft(Offer offer, EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)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 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 Set<EnhancedLineItem>DefaultOfferCandidateService. evaluateOrderForMatchingItems(@NonNull EnhancedOrder order, @NonNull ItemCriteriaRule itemCriteriaRule, boolean allowMatchesOnNonDiscountableItems)Evaluates theItemCriteriaRuleagainst theOrder's line itemsto determine if the order matches.<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.Stream<P>DefaultOfferCandidateService. filterOffersByRequest(@NonNull Stream<P> offerSet, @NonNull EnhancedOrder order)Stream<P>OfferCandidateService. filterOffersByRequest(Stream<P> offerSet, EnhancedOrder order)Filter the provided offer set based on information in the given context of the order.Stream<P>DefaultOfferCandidateService. filterOffersByTotalUses(@NonNull Stream<P> offerSet, @NonNull EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Stream<P>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().CandidateOffersDefaultOfferCandidateService. getCandidateOffers(@NonNull EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)CandidateOffersOfferCandidateService. getCandidateOffers(EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Get the candidate offers for the provided order and context.List<CandidateOrderOffer>DefaultOfferCandidateService. getCandidateVoucherOffers(@NonNull EnhancedOrder order, boolean isPostCheckout, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)List<CandidateOrderOffer>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.Stream<P>DefaultOfferCandidateService. getOffersToFilter(@NonNull EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Stream<P>OfferCandidateService. getOffersToFilter(EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Get available offers that need to be filtered to become candidates.protected booleanDefaultOfferCandidateService. isAnyMatchFoundAcrossAllItems(@NonNull EnhancedOrder order, @NonNull CandidateFulfillmentGroupOffer candidateOffer, @NonNull Offer offer)protected booleanDefaultOfferCandidateService. isAnyMatchFoundInAnyFulfillmentGroup(EnhancedOrder order, CandidateFulfillmentGroupOffer candidateOffer, Offer offer)CandidateOffersDefaultOfferCandidateService. populateOrRemoveCandidateOffers(@NonNull Stream<P> offerSet, @NonNull EnhancedOrder order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)CandidateOffersOfferCandidateService. 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.List<CandidateFulfillmentGroupOffer>DefaultOfferCandidateService. populateOrRemoveOffersByFulfillmentGroupQualifiers(@NonNull List<CandidateFulfillmentGroupOffer> candidateOfferSet, @NonNull EnhancedOrder order)List<CandidateFulfillmentGroupOffer>OfferCandidateService. populateOrRemoveOffersByFulfillmentGroupQualifiers(List<CandidateFulfillmentGroupOffer> candidateOfferSet, EnhancedOrder order)Filter the provided offer set based on if the items of the provided order match as qualifiers.List<CandidateItemOffer>DefaultOfferCandidateService. populateOrRemoveOffersByFulfillmentItemQualifiers(@NonNull List<CandidateItemOffer> candidateOfferSet, @NonNull EnhancedOrder order)List<CandidateItemOffer>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.List<CandidateItemOffer>DefaultOfferCandidateService. populateOrRemoveOffersByFulfillmentItemTargets(@NonNull List<CandidateItemOffer> candidateOfferSet, @NonNull EnhancedOrder order)List<CandidateItemOffer>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.List<CandidateItemOffer>DefaultOfferCandidateService. populateOrRemoveOffersByItemTargets(@NonNull List<CandidateItemOffer> candidateOfferSet, @NonNull EnhancedOrder order)List<CandidateItemOffer>OfferCandidateService. populateOrRemoveOffersByItemTargets(List<CandidateItemOffer> candidateOfferSet, EnhancedOrder order)Filter the provided offer set based on if the items of the provided order match as targets. -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.engine.proration
-
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.service.validation
Methods in com.broadleafcommerce.promotion.offer.service.validation with parameters of type EnhancedOrder Modifier and Type Method Description com.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 EnhancedOrder Modifier and Type Method Description EnhancedOrderOrderOfferAdjustment. getOrder()Methods in com.broadleafcommerce.promotion.offer.web.context.info with parameters of type EnhancedOrder Modifier and Type Method Description voidOrderOfferAdjustment. setOrder(EnhancedOrder order)Constructors in com.broadleafcommerce.promotion.offer.web.context.info with parameters of type EnhancedOrder Constructor Description OrderOfferAdjustment(CandidateOrderOffer candidateOrderOffer, EnhancedOrder order, javax.money.MonetaryAmount amount, Offer offer, boolean roundOfferValues, RoundingMode roundingMode, boolean isFutureCredit) -
Uses of EnhancedOrder in com.broadleafcommerce.promotion.offer.web.endpoint
Methods in com.broadleafcommerce.promotion.offer.web.endpoint with parameters of type EnhancedOrder Modifier and Type Method Description com.broadleafcommerce.promotion.offer.client.web.context.discounts.OrderResponseOfferEngineEndpoint. applyOffers(javax.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, EnhancedOrder order)com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResultOfferEngineEndpoint. validateVouchers(javax.servlet.http.HttpServletRequest request, EnhancedOrder order, boolean postCheckout, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
-