Uses of Class
com.broadleafcommerce.promotion.offer.service.dto.CandidateOrderOffer
Package
Description
-
Uses of CandidateOrderOffer in com.broadleafcommerce.promotion.offer.service.dto
Modifier and TypeMethodDescriptionCandidateOffers.getCandidateOrderOffers()
List of candidate offers targetingorders
.Modifier and TypeMethodDescriptionvoid
CandidateOffers.setCandidateOrderOffers
(List<CandidateOrderOffer> candidateOrderOffers) List of candidate offers targetingorders
. -
Uses of CandidateOrderOffer in com.broadleafcommerce.promotion.offer.service.engine.application.processor
Modifier and TypeMethodDescriptionprotected void
DefaultOrderOfferProcessor.addVoucherToResult
(OfferProcessingContext context, OrderOfferPermutationResult result, CandidateOrderOffer orderOffer) protected com.broadleafcommerce.promotion.offer.client.web.context.info.Voucher
DefaultOrderOfferProcessor.buildVoucher
(CandidateOrderOffer orderOffer, EnhancedOrder order) protected DiscountableItemInfo
DefaultOrderOfferProcessor.calculateDiscountableItemTotal
(List<EnhancedOrderLineItem> relevantItems, CandidateOrderOffer orderOffer, OfferProcessingContext context, CombinedTypesOfferPermutation ctop, OrderOfferPermutationResult orderResult) protected boolean
DefaultOrderOfferProcessor.canOfferBeApplied
(EnhancedOrder order, CandidateOrderOffer orderOffer, OrderOfferPermutationResult result) protected Optional<javax.money.MonetaryAmount>
DefaultOrderOfferProcessor.computeAdjustmentValue
(CandidateOrderOffer orderOffer, DiscountableItemInfo discountableItemInfo) Calculates the value of the adjustment by first getting the current value of the order and then calculating the value of this adjustment.protected boolean
DefaultOrderOfferProcessor.couldOfferApplyToOrder
(EnhancedOrder order, CandidateOrderOffer orderOffer) protected OrderOfferAdjustment
DefaultOrderOfferProcessor.createOrderOfferAdjustment
(OfferProcessingContext context, CandidateOrderOffer orderOffer, javax.money.MonetaryAmount amount) protected Optional<DiscountTier>
DefaultOrderOfferProcessor.findMaxDiscountTier
(CandidateOrderOffer offer, javax.money.MonetaryAmount amount) protected boolean
DefaultOrderOfferProcessor.meetsMinimumSubtotal
(javax.money.MonetaryAmount actualSubtotal, CandidateOrderOffer candidateOffer) 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 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.Modifier and TypeMethodDescriptionprotected OrderOfferPermutationResult
DefaultOrderOfferProcessor.computeOfferPermutationValue
(OfferProcessingContext context, OffersPermutation<CandidateOrderOffer> offerPermutation, CombinedTypesOfferPermutation ctop) protected 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. -
Uses of CandidateOrderOffer in com.broadleafcommerce.promotion.offer.service.engine.candidate
Modifier and TypeMethodDescriptionCandidateOfferUtility.createCandidateOrderOffer
(EnhancedOrder order, Offer offer) Creates aCandidateOrderOffer
for the given order and offer.DefaultCandidateOfferUtility.createCandidateOrderOffer
(EnhancedOrder order, Offer offer) Modifier and TypeMethodDescriptionDefaultOfferCandidateService.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. -
Uses of CandidateOrderOffer in com.broadleafcommerce.promotion.offer.web.context.info
Modifier and TypeMethodDescriptionvoid
OrderOfferAdjustment.setCandidateOrderOffer
(CandidateOrderOffer candidateOrderOffer)