Uses of Class
com.broadleafcommerce.promotion.offer.web.context.info.OfferDiscount
Package
Description
-
Uses of OfferDiscount in com.broadleafcommerce.promotion.offer.service.dto
Modifier and TypeMethodDescriptionCandidateItemOffer.getMaxSavingsDiscounts()
Keep track of the current iteration targets so that the estimated discount can be calculated.Modifier and TypeMethodDescriptionvoid
CandidateItemOffer.setMaxSavingsDiscounts
(Map<LineItemOfferDetail, OfferDiscount> maxSavingsDiscounts) Keep track of the current iteration targets so that the estimated discount can be calculated. -
Uses of OfferDiscount in com.broadleafcommerce.promotion.offer.service.engine.application.processor
Modifier and TypeMethodDescriptionprotected void
DefaultItemOfferProcessor.applyLineItemAdjustment
(@NonNull CandidateItemOffer itemOffer, @NonNull LineItemOfferDetail offerDetail, @NonNull OfferDiscount offerDiscount) Adds anItemOfferAdjustment
to the givenLineItemOfferDetail
.protected javax.money.MonetaryAmount
DefaultItemOfferProcessor.calculatePartialSavingsAmountForDiscount
(CandidateItemOffer itemOffer, OfferDiscount discount) protected com.broadleafcommerce.promotion.offer.client.web.context.info.OfferItemDetail
DefaultItemOfferProcessor.createOfferItemDetailAndDetermineQualifierQuantity
(@NonNull CandidateItemOffer itemOffer, @NonNull EnhancedLineItem lineItem, OfferDiscount offerDiscount, int quantityPerUsage) Creates anOfferItemDetail
based on the given fields.protected List<com.broadleafcommerce.promotion.offer.client.web.context.info.OfferItemDetail>
DefaultItemOfferProcessor.getQualifierDetails
(@NonNull CandidateItemOffer itemOffer, OfferDiscount offerDiscount) Gets a list ofOfferItemDetails
representing qualifiers.protected boolean
DefaultItemOfferProcessor.itemHasQualifierOfferDetails
(@NonNull EnhancedLineItem item, @NonNull CandidateItemOffer itemOffer, OfferDiscount offerDiscount) Determines whether the givenEnhancedLineItem
has anyOfferItemDetails
that has anyOfferQualifiers
matching the givenCandidateItemOffer
. -
Uses of OfferDiscount in com.broadleafcommerce.promotion.offer.web.context.info
Modifier and TypeMethodDescriptionprotected OfferDiscount
LineItemOfferDetail.addNewTargetAndGet
(com.broadleafcommerce.common.extension.TypeFactory offerFactory, CandidateItemOffer itemOffer) OfferDiscount.copy
(com.broadleafcommerce.common.extension.TypeFactory offerFactory) Creates a copy of this offer discount.Modifier and TypeMethodDescriptionLineItemOfferDetail.getOfferDiscounts()
Additional info for all theoffers
treating theLineItemOfferDetail.lineItem
as a target.protected Optional<OfferDiscount>
LineItemOfferDetail.lookupOfferTargetByOffer
(CandidateItemOffer itemOffer) OfferDiscount.split
(com.broadleafcommerce.common.extension.TypeFactory offerFactory, int splitQty) Checks to see that the discount quantities match the target quantities.Modifier and TypeMethodDescriptionprotected LineItemOfferDetail
LineItemOfferDetail.split
(com.broadleafcommerce.common.extension.TypeFactory offerFactory, OfferDiscount offerDiscount) Splits this item into twoLineItemOfferDetails
and returns the newly createdLineItemOfferDetail
.Modifier and TypeMethodDescriptionprotected int
LineItemOfferDetail.getQuantityOfItemsExclusivelyUsedAsTargets
(CandidateItemOffer thisOffer, Set<OfferDiscount> offerDiscounts, boolean isForQualifierQty) Calculates the number oforder items
already exclusively used as targets.void
LineItemOfferDetail.setOfferDiscounts
(Set<OfferDiscount> offerDiscounts) Additional info for all theoffers
treating theLineItemOfferDetail.lineItem
as a target.