Uses of Class
com.broadleafcommerce.promotion.offer.web.context.info.LineItemOfferDetail
Package
Description
-
Uses of LineItemOfferDetail in com.broadleafcommerce.promotion.offer.service.dto
Modifier and TypeMethodDescriptionprotected Map<String,
List<LineItemOfferDetail>> ItemOfferPermutationResult.buildItemOfferDetailMap
(List<LineItemOfferDetail> details) ItemOfferPermutationResult.getLineItemDetailMap()
ItemOfferPermutationResult.getLineItemDetails()
CandidateItemOffer.getMaxSavingsDiscounts()
Keep track of the current iteration targets so that the estimated discount can be calculated.CandidateItemOffer.getMaxSavingsQualifiers()
AmountQtyTuple.getRelevantDetails()
When building this object for a LineItem, it is useful to know the specific details that were used to build the amount and qty.Modifier and TypeMethodDescriptionvoid
OrderTotals.adjustTotals
(Map<String, List<LineItemOfferDetail>> lineItemDetailMap, javax.money.MonetaryAmount amount) ItemOfferPermutationResult.buildAppliedItemOffersMap
(List<LineItemOfferDetail> details) protected Map<String,
List<LineItemOfferDetail>> ItemOfferPermutationResult.buildItemOfferDetailMap
(List<LineItemOfferDetail> details) protected javax.money.MonetaryAmount
ItemOfferPermutationResult.calculateTotalAdjustmentsValue
(List<LineItemOfferDetail> details) void
ItemOfferPermutationResult.populateItemDetailStructures
(List<LineItemOfferDetail> itemDetails) void
CandidateItemOffer.setMaxSavingsDiscounts
(Map<LineItemOfferDetail, OfferDiscount> maxSavingsDiscounts) Keep track of the current iteration targets so that the estimated discount can be calculated.void
CandidateItemOffer.setMaxSavingsQualifiers
(Map<LineItemOfferDetail, OfferQualifier> maxSavingsQualifiers) void
AmountQtyTuple.setRelevantDetails
(List<LineItemOfferDetail> relevantDetails) When building this object for a LineItem, it is useful to know the specific details that were used to build the amount and qty.ModifierConstructorDescriptionItemOfferPermutationResult
(ItemOfferPermutationResult result, OrderTotals initialTotals, Set<LineItemOfferDetail> detailsToReset, com.broadleafcommerce.common.extension.TypeFactory offerFactory) Clone this ItemOfferPermutationResult and reset the passed in details to remove any adjustments. -
Uses of LineItemOfferDetail in com.broadleafcommerce.promotion.offer.service.dto.comparator
Modifier and TypeMethodDescriptionint
QualifierLineItemOfferDetailComparator.compare
(LineItemOfferDetail o1, LineItemOfferDetail o2) Orders by highest amount first.int
TargetLineItemOfferDetailComparator.compare
(LineItemOfferDetail o1, LineItemOfferDetail o2) Orders by highest amount first. -
Uses of LineItemOfferDetail in com.broadleafcommerce.promotion.offer.service.engine
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.promotion.offer.client.web.context.discounts.ItemResponseDetail<P>
DefaultOfferEngineResponseBuilder.getItemResponseDetail
(@NonNull javax.money.CurrencyUnit currencyUnit, @NonNull LineItemOfferDetail orderItemOfferDetail, @NonNull OfferCodeData offerCodeData) Creates anOffer ItemResponseDetail
for aLineItemOfferDetail
. -
Uses of LineItemOfferDetail 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.calculatePriceForBundleRatio
(LineItemOfferDetail detail) protected javax.money.MonetaryAmount
DefaultItemOfferProcessor.computeSaleAdjustmentValue
(CandidateItemOffer itemOffer, LineItemOfferDetail offerDetail) protected javax.money.MonetaryAmount
DefaultItemOfferProcessor.computeStandardAdjustmentValue
(CandidateItemOffer itemOffer, LineItemOfferDetail offerDetail) protected boolean
DefaultItemOfferProcessor.isAdjustmentGoodEnough
(CandidateItemOffer itemOffer, LineItemOfferDetail detail) Checking to make sure that an offer's adjustment to an item's price is actually better than the original price, especially if the item is on sale since not all offers can apply to a sale price.Modifier and TypeMethodDescriptionprotected boolean
DefaultItemOfferProcessor.canOfferBeApplied
(EnhancedOrder order, CandidateItemOffer itemOffer, List<LineItemOfferDetail> itemDetails) Deprecated.protected boolean
DefaultItemOfferProcessor.canOfferBeApplied
(EnhancedOrder order, CandidateItemOffer itemOffer, List<LineItemOfferDetail> itemDetails, ItemOfferPermutationResult result) Determines whether theOffer
can be applied by making sure it is the order meets the total requirements.protected void
DefaultItemOfferProcessor.splitDetailsIfNecessary
(List<LineItemOfferDetail> offerDetails, CandidateItemOffer itemOffer) Checks if the discount quantity matches the detail quantity.protected boolean
DefaultOrderOfferProcessor.verifyOkToRemoveLowerValueDetails
(List<LineItemOfferDetail> details) The removeLowerValueOffers process is conservative in its approach. -
Uses of LineItemOfferDetail in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper.item
Modifier and TypeMethodDescriptionprotected List<LineItemOfferDetail>
DefaultQualifierAndTargetMarker.buildOfferDetailList
(Collection<? extends EnhancedLineItem> orderLineItems) protected List<LineItemOfferDetail>
DefaultQualifierAndTargetMarker.getSortedItemOfferDetails
(Offer offer, Collection<? extends EnhancedLineItem> orderLineItems, boolean isForQualifiers) Modifier and TypeMethodDescriptionprotected ItemCriteriaRule
DefaultQualifierAndTargetMarker.getPreviousItemCriteria
(LineItemOfferDetail detail, Offer offer) protected boolean
DefaultQualifierAndTargetMarker.isItemRelatedToQualifier
(EnhancedLineItem relatedQualifierRootAncestor, LineItemOfferDetail offerDetail) protected int
DefaultQualifierAndTargetMarker.markSingleTargetForItemCriteria
(LineItemOfferDetail offerDetail, CandidateItemOffer itemOffer, ItemCriteriaRule targetCriteria, int targetQtyNeeded, boolean checkOnly) Marks a single item as a target of a singleOffer.getTargetItemCriteria()
protected void
DefaultQualifierAndTargetMarker.rollbackQualifierMarkageBecauseMissingTarget
(OfferQualifier offerQualifier, int qtyToMarkAsQualifier, LineItemOfferDetail detail, ItemCriteriaRule previousQualifierCriteria) Undoes marking qualifiers because there were no matching targets.Modifier and TypeMethodDescriptionprotected void
DefaultQualifierAndTargetMarker.clearAllNonFinalizedQuantities
(List<LineItemOfferDetail> lineItemOfferDetails) protected void
DefaultQualifierAndTargetMarker.finalizeQuantities
(List<LineItemOfferDetail> lineItemOfferDetails) protected void
DefaultQualifierAndTargetMarker.sortOfferDetailsForQualifiers
(List<LineItemOfferDetail> offerDetails, boolean useSalePrice) SortsLineItemOfferDetails
in preparation for marking qualifier items for offers.protected void
DefaultQualifierAndTargetMarker.sortOfferDetailsForTargets
(List<LineItemOfferDetail> offerDetails, boolean useSalePrice, String targetGroupingStrategy) SortsLineItemOfferDetails
in preparation for marking targets items for offers.protected void
DefaultQualifierAndTargetMarker.storeNonFinalizedQuantities
(List<LineItemOfferDetail> lineItemOfferDetails, CandidateItemOffer itemOffer) -
Uses of LineItemOfferDetail in com.broadleafcommerce.promotion.offer.service.engine.proration
Modifier and TypeMethodDescriptionprotected EnhancedProratedItemOfferAdjustment
DefaultProrationService.createProratedAdjustment
(Offer offer, EnhancedLineItem lineItem, LineItemOfferDetail parentDetail, javax.money.MonetaryAmount proratedAmt, int quantity) -
Uses of LineItemOfferDetail in com.broadleafcommerce.promotion.offer.web.context
Modifier and TypeMethodDescriptionEnhancedLineItem.createNewDetail
(com.broadleafcommerce.common.extension.TypeFactory offerFactory, int quantity) Creates a newLineItemOfferDetail
for this item.Modifier and TypeMethodDescriptionEnhancedFulfillmentGroup.getAllLineItemOfferDetails()
EnhancedOrder.getAllLineItemOfferDetails()
EnhancedOrder.getLineItemOfferDetails
(boolean isForFulfillment) EnhancedLineItem.getOfferDetails()
DTOs containing information aboutoffers
applicable to this item.Modifier and TypeMethodDescriptionprotected void
EnhancedLineItem.mergeDetails
(LineItemOfferDetail firstDetail, LineItemOfferDetail secondDetail) Modifier and TypeMethodDescriptionEnhancedLineItem.calculateTotalWithAdjustments
(List<LineItemOfferDetail> details, boolean excludeDiscountedItemsFromTotal) This method can be used to pass in a list of previously computedLineItemOfferDetails
to produce an adjusted total.void
EnhancedLineItem.setOfferDetails
(List<LineItemOfferDetail> offerDetails) DTOs containing information aboutoffers
applicable to this item. -
Uses of LineItemOfferDetail in com.broadleafcommerce.promotion.offer.web.context.info
Modifier and TypeMethodDescriptionOfferDiscount.getLineItemOfferDetail()
EnhancedProratedItemOfferAdjustment.getParentDetail()
ItemOfferAdjustment.getParentDetail()
protected LineItemOfferDetail
LineItemOfferDetail.split
(com.broadleafcommerce.common.extension.TypeFactory offerFactory, int discountQty, String offerId, boolean hasQualifiers) Deprecated.since 1.6, in favor ofsplit(TypeFactory, OfferDiscount)
.protected LineItemOfferDetail
LineItemOfferDetail.split
(com.broadleafcommerce.common.extension.TypeFactory offerFactory, OfferDiscount offerDiscount) Splits this item into twoLineItemOfferDetails
and returns the newly createdLineItemOfferDetail
.Modifier and TypeMethodDescriptionLineItemOfferDetail.splitIfNecessary
(com.broadleafcommerce.common.extension.TypeFactory offerFactory) Checks to see that the discount quantities match the target quantities.Modifier and TypeMethodDescriptionprotected void
LineItemOfferDetail.copyDiscountsAndAdjustmentsToNewDetail
(com.broadleafcommerce.common.extension.TypeFactory offerFactory, int discountQty, LineItemOfferDetail newDetail) void
OfferDiscount.setLineItemOfferDetail
(LineItemOfferDetail lod) void
EnhancedProratedItemOfferAdjustment.setParentDetail
(LineItemOfferDetail parentDetail) void
ItemOfferAdjustment.setParentDetail
(LineItemOfferDetail parentDetail)
DefaultItemOfferProcessor.canOfferBeApplied(EnhancedOrder, CandidateItemOffer, List, ItemOfferPermutationResult)