Uses of Class
com.broadleafcommerce.promotion.offer.web.context.info.OfferDiscount
Packages that use OfferDiscount
Package
Description
-
Uses of OfferDiscount in com.broadleafcommerce.promotion.offer.service.dto
Methods in com.broadleafcommerce.promotion.offer.service.dto that return types with arguments of type OfferDiscountModifier and TypeMethodDescriptionCandidateItemOffer.getMaxSavingsDiscounts()Keep track of the current iteration targets so that the estimated discount can be calculated.Method parameters in com.broadleafcommerce.promotion.offer.service.dto with type arguments of type OfferDiscountModifier and TypeMethodDescriptionvoidCandidateItemOffer.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
Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor with parameters of type OfferDiscountModifier and TypeMethodDescriptionprotected voidDefaultItemOfferProcessor.applyLineItemAdjustment(@NonNull CandidateItemOffer itemOffer, @NonNull LineItemOfferDetail offerDetail, @NonNull OfferDiscount offerDiscount) Adds anItemOfferAdjustmentto the givenLineItemOfferDetail.protected javax.money.MonetaryAmountDefaultItemOfferProcessor.calculatePartialSavingsAmountForDiscount(CandidateItemOffer itemOffer, OfferDiscount discount) protected com.broadleafcommerce.promotion.offer.client.web.context.info.OfferItemDetailDefaultItemOfferProcessor.createOfferItemDetailAndDetermineQualifierQuantity(@NonNull CandidateItemOffer itemOffer, @NonNull EnhancedLineItem lineItem, OfferDiscount offerDiscount, int quantityPerUsage) Creates anOfferItemDetailbased 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 ofOfferItemDetailsrepresenting qualifiers.protected booleanDefaultItemOfferProcessor.itemHasQualifierOfferDetails(@NonNull EnhancedLineItem item, @NonNull CandidateItemOffer itemOffer, OfferDiscount offerDiscount) Determines whether the givenEnhancedLineItemhas anyOfferItemDetailsthat has anyOfferQualifiersmatching the givenCandidateItemOffer. -
Uses of OfferDiscount in com.broadleafcommerce.promotion.offer.web.context.info
Methods in com.broadleafcommerce.promotion.offer.web.context.info that return OfferDiscountModifier and TypeMethodDescriptionprotected OfferDiscountLineItemOfferDetail.addNewTargetAndGet(com.broadleafcommerce.common.extension.TypeFactory offerFactory, CandidateItemOffer itemOffer) OfferDiscount.copy(com.broadleafcommerce.common.extension.TypeFactory offerFactory) Creates a copy of this offer discount.Methods in com.broadleafcommerce.promotion.offer.web.context.info that return types with arguments of type OfferDiscountModifier and TypeMethodDescriptionLineItemOfferDetail.getOfferDiscounts()Additional info for all theofferstreating theLineItemOfferDetail.lineItemas 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.Methods in com.broadleafcommerce.promotion.offer.web.context.info with parameters of type OfferDiscountModifier and TypeMethodDescriptionprotected LineItemOfferDetailLineItemOfferDetail.split(com.broadleafcommerce.common.extension.TypeFactory offerFactory, OfferDiscount offerDiscount) Splits this item into twoLineItemOfferDetailsand returns the newly createdLineItemOfferDetail.Method parameters in com.broadleafcommerce.promotion.offer.web.context.info with type arguments of type OfferDiscountModifier and TypeMethodDescriptionprotected intLineItemOfferDetail.getQuantityOfItemsExclusivelyUsedAsTargets(CandidateItemOffer thisOffer, Set<OfferDiscount> offerDiscounts, boolean isForQualifierQty) Calculates the number oforder itemsalready exclusively used as targets.voidLineItemOfferDetail.setOfferDiscounts(Set<OfferDiscount> offerDiscounts) Additional info for all theofferstreating theLineItemOfferDetail.lineItemas a target.