Uses of Class
com.broadleafcommerce.promotion.offer.web.context.info.EnhancedProratedItemOfferAdjustment
Package
Description
-
Uses of EnhancedProratedItemOfferAdjustment in com.broadleafcommerce.promotion.offer.service.engine
Modifier and TypeClassDescriptionclass
Modifier and TypeMethodDescriptionprotected void
DefaultOfferEngineResponseBuilder.addOfferCodeToProratedItemAdjustmentIfUsed
(@NonNull com.broadleafcommerce.promotion.offer.client.web.context.info.OfferRef offer, @NonNull EnhancedProratedItemOfferAdjustment proratedItemAdjustment, @NonNull OfferCodeData offerCodeData) Adds an offer code to the givenEnhancedProratedItemOfferAdjustment
if it is present on the order. -
Uses of EnhancedProratedItemOfferAdjustment in com.broadleafcommerce.promotion.offer.service.engine.proration
Modifier and TypeMethodDescriptionprotected EnhancedProratedItemOfferAdjustment
DefaultProrationService.calculateProrationItemAdjustment
(ItemOfferAdjustment adjustment) protected EnhancedProratedItemOfferAdjustment
DefaultProrationService.createProratedAdjustment
(Offer offer, EnhancedLineItem lineItem, LineItemOfferDetail parentDetail, javax.money.MonetaryAmount proratedAmt, int quantity) Modifier and TypeMethodDescriptionDefaultProrationService.calculateProratedItemAdjustments
(EnhancedOrder order) ProrationService.calculateProratedItemAdjustments
(EnhancedOrder order) For anyOffer
that has aDiscount.prorationType
ofProrationType.TARGET_AND_QUALIFIER
, this will populate all of theProratedItemOfferAdjustments
on theLineItemOfferDetails
mostly for the sake of reporting instruments.Modifier and TypeMethodDescriptionvoid
DefaultProrationService.addProratedItemOfferAdjustmentsToParentOfferDetails
(Collection<? extends EnhancedProratedItemOfferAdjustment> proratedAdjustments) void
ProrationService.addProratedItemOfferAdjustmentsToParentOfferDetails
(Collection<? extends EnhancedProratedItemOfferAdjustment> proratedAdjustments) Adds theProratedItemOfferAdjustments
to their parentLineItemOfferDetails
-
Uses of EnhancedProratedItemOfferAdjustment in com.broadleafcommerce.promotion.offer.web.context.info
Modifier and TypeMethodDescriptionLineItemOfferDetail.getProratedAdjustments()
TheProratedItemOfferAdjustments
caused byoffers
withDiscount.getProrationType()
orProrationType.TARGET_AND_QUALIFIER
treating bothLineItemOfferDetail.lineItem
as a target and the items that qualify it.Modifier and TypeMethodDescriptionvoid
LineItemOfferDetail.setProratedAdjustments
(Set<EnhancedProratedItemOfferAdjustment> proratedAdjustments) TheProratedItemOfferAdjustments
caused byoffers
withDiscount.getProrationType()
orProrationType.TARGET_AND_QUALIFIER
treating bothLineItemOfferDetail.lineItem
as a target and the items that qualify it.