Uses of Class
com.broadleafcommerce.promotion.offer.web.context.info.LineItemOfferDetail
Packages that use LineItemOfferDetail
Package
Description
-
Uses of LineItemOfferDetail in com.broadleafcommerce.promotion.offer.service.dto
Methods in com.broadleafcommerce.promotion.offer.service.dto that return types with arguments of type LineItemOfferDetailModifier 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.Method parameters in com.broadleafcommerce.promotion.offer.service.dto with type arguments of type LineItemOfferDetailModifier and TypeMethodDescriptionvoidOrderTotals.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.MonetaryAmountItemOfferPermutationResult.calculateTotalAdjustmentsValue(List<LineItemOfferDetail> details) voidItemOfferPermutationResult.populateItemDetailStructures(List<LineItemOfferDetail> itemDetails) voidCandidateItemOffer.setMaxSavingsDiscounts(Map<LineItemOfferDetail, OfferDiscount> maxSavingsDiscounts) Keep track of the current iteration targets so that the estimated discount can be calculated.voidCandidateItemOffer.setMaxSavingsQualifiers(Map<LineItemOfferDetail, OfferQualifier> maxSavingsQualifiers) voidAmountQtyTuple.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.Constructor parameters in com.broadleafcommerce.promotion.offer.service.dto with type arguments of type LineItemOfferDetailModifierConstructorDescriptionItemOfferPermutationResult(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
Methods in com.broadleafcommerce.promotion.offer.service.dto.comparator with parameters of type LineItemOfferDetailModifier and TypeMethodDescriptionintQualifierLineItemOfferDetailComparator.compare(LineItemOfferDetail o1, LineItemOfferDetail o2) Orders by highest amount first.intTargetLineItemOfferDetailComparator.compare(LineItemOfferDetail o1, LineItemOfferDetail o2) Orders by highest amount first. -
Uses of LineItemOfferDetail in com.broadleafcommerce.promotion.offer.service.engine
Methods in com.broadleafcommerce.promotion.offer.service.engine with parameters of type LineItemOfferDetailModifier 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 ItemResponseDetailfor aLineItemOfferDetail. -
Uses of LineItemOfferDetail in com.broadleafcommerce.promotion.offer.service.engine.application.processor
Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor with parameters of type LineItemOfferDetailModifier and TypeMethodDescriptionprotected voidDefaultItemOfferProcessor.applyLineItemAdjustment(@NonNull CandidateItemOffer itemOffer, @NonNull LineItemOfferDetail offerDetail, @NonNull OfferDiscount offerDiscount) Adds anItemOfferAdjustmentto the givenLineItemOfferDetail.protected javax.money.MonetaryAmountDefaultItemOfferProcessor.calculatePriceForBundleRatio(LineItemOfferDetail detail) protected javax.money.MonetaryAmountDefaultItemOfferProcessor.computeSaleAdjustmentValue(CandidateItemOffer itemOffer, LineItemOfferDetail offerDetail) protected javax.money.MonetaryAmountDefaultItemOfferProcessor.computeStandardAdjustmentValue(CandidateItemOffer itemOffer, LineItemOfferDetail offerDetail) protected booleanDefaultItemOfferProcessor.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.Method parameters in com.broadleafcommerce.promotion.offer.service.engine.application.processor with type arguments of type LineItemOfferDetailModifier and TypeMethodDescriptionprotected booleanDefaultItemOfferProcessor.canOfferBeApplied(EnhancedOrder order, CandidateItemOffer itemOffer, List<LineItemOfferDetail> itemDetails) Deprecated.protected booleanDefaultItemOfferProcessor.canOfferBeApplied(EnhancedOrder order, CandidateItemOffer itemOffer, List<LineItemOfferDetail> itemDetails, ItemOfferPermutationResult result) Determines whether theOffercan be applied by making sure it is the order meets the total requirements.protected voidDefaultItemOfferProcessor.splitDetailsIfNecessary(List<LineItemOfferDetail> offerDetails, CandidateItemOffer itemOffer) Checks if the discount quantity matches the detail quantity.protected booleanDefaultOrderOfferProcessor.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
Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper.item that return types with arguments of type LineItemOfferDetailModifier and TypeMethodDescriptionprotected List<LineItemOfferDetail>DefaultQualifierAndTargetMarker.buildOfferDetailList(Collection<? extends EnhancedLineItem> orderLineItems) protected List<LineItemOfferDetail>DefaultQualifierAndTargetMarker.getSortedItemOfferDetails(Offer offer, Collection<? extends EnhancedLineItem> orderLineItems, boolean isForQualifiers) Methods in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper.item with parameters of type LineItemOfferDetailModifier and TypeMethodDescriptionprotected ItemCriteriaRuleDefaultQualifierAndTargetMarker.getPreviousItemCriteria(LineItemOfferDetail detail, Offer offer) protected booleanDefaultQualifierAndTargetMarker.isItemRelatedToQualifier(EnhancedLineItem relatedQualifierRootAncestor, LineItemOfferDetail offerDetail) protected intDefaultQualifierAndTargetMarker.markSingleTargetForItemCriteria(LineItemOfferDetail offerDetail, CandidateItemOffer itemOffer, ItemCriteriaRule targetCriteria, int targetQtyNeeded, boolean checkOnly) Marks a single item as a target of a singleOffer.getTargetItemCriteria()protected voidDefaultQualifierAndTargetMarker.rollbackQualifierMarkageBecauseMissingTarget(OfferQualifier offerQualifier, int qtyToMarkAsQualifier, LineItemOfferDetail detail, ItemCriteriaRule previousQualifierCriteria) Undoes marking qualifiers because there were no matching targets.Method parameters in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper.item with type arguments of type LineItemOfferDetailModifier and TypeMethodDescriptionprotected voidDefaultQualifierAndTargetMarker.clearAllNonFinalizedQuantities(List<LineItemOfferDetail> lineItemOfferDetails) protected voidDefaultQualifierAndTargetMarker.finalizeQuantities(List<LineItemOfferDetail> lineItemOfferDetails) protected voidDefaultQualifierAndTargetMarker.sortOfferDetailsForQualifiers(List<LineItemOfferDetail> offerDetails, boolean useSalePrice) SortsLineItemOfferDetailsin preparation for marking qualifier items for offers.protected voidDefaultQualifierAndTargetMarker.sortOfferDetailsForTargets(List<LineItemOfferDetail> offerDetails, boolean useSalePrice, String targetGroupingStrategy) SortsLineItemOfferDetailsin preparation for marking targets items for offers.protected voidDefaultQualifierAndTargetMarker.storeNonFinalizedQuantities(List<LineItemOfferDetail> lineItemOfferDetails, CandidateItemOffer itemOffer) -
Uses of LineItemOfferDetail in com.broadleafcommerce.promotion.offer.service.engine.proration
Methods in com.broadleafcommerce.promotion.offer.service.engine.proration with parameters of type LineItemOfferDetailModifier and TypeMethodDescriptionprotected EnhancedProratedItemOfferAdjustmentDefaultProrationService.createProratedAdjustment(Offer offer, EnhancedLineItem lineItem, LineItemOfferDetail parentDetail, javax.money.MonetaryAmount proratedAmt, int quantity) -
Uses of LineItemOfferDetail in com.broadleafcommerce.promotion.offer.web.context
Methods in com.broadleafcommerce.promotion.offer.web.context that return LineItemOfferDetailModifier and TypeMethodDescriptionEnhancedLineItem.createNewDetail(com.broadleafcommerce.common.extension.TypeFactory offerFactory, int quantity) Creates a newLineItemOfferDetailfor this item.Methods in com.broadleafcommerce.promotion.offer.web.context that return types with arguments of type LineItemOfferDetailModifier and TypeMethodDescriptionEnhancedFulfillmentGroup.getAllLineItemOfferDetails()EnhancedOrder.getAllLineItemOfferDetails()EnhancedOrder.getLineItemOfferDetails(boolean isForFulfillment) EnhancedLineItem.getOfferDetails()DTOs containing information aboutoffersapplicable to this item.Methods in com.broadleafcommerce.promotion.offer.web.context with parameters of type LineItemOfferDetailModifier and TypeMethodDescriptionprotected voidEnhancedLineItem.mergeDetails(LineItemOfferDetail firstDetail, LineItemOfferDetail secondDetail) Method parameters in com.broadleafcommerce.promotion.offer.web.context with type arguments of type LineItemOfferDetailModifier and TypeMethodDescriptionEnhancedLineItem.calculateTotalWithAdjustments(List<LineItemOfferDetail> details, boolean excludeDiscountedItemsFromTotal) This method can be used to pass in a list of previously computedLineItemOfferDetailsto produce an adjusted total.voidEnhancedLineItem.setOfferDetails(List<LineItemOfferDetail> offerDetails) DTOs containing information aboutoffersapplicable to this item. -
Uses of LineItemOfferDetail in com.broadleafcommerce.promotion.offer.web.context.info
Methods in com.broadleafcommerce.promotion.offer.web.context.info that return LineItemOfferDetailModifier and TypeMethodDescriptionOfferDiscount.getLineItemOfferDetail()EnhancedProratedItemOfferAdjustment.getParentDetail()ItemOfferAdjustment.getParentDetail()protected LineItemOfferDetailLineItemOfferDetail.split(com.broadleafcommerce.common.extension.TypeFactory offerFactory, int discountQty, String offerId, boolean hasQualifiers) Deprecated.since 1.6, in favor ofsplit(TypeFactory, OfferDiscount).protected LineItemOfferDetailLineItemOfferDetail.split(com.broadleafcommerce.common.extension.TypeFactory offerFactory, OfferDiscount offerDiscount) Splits this item into twoLineItemOfferDetailsand returns the newly createdLineItemOfferDetail.Methods in com.broadleafcommerce.promotion.offer.web.context.info that return types with arguments of type LineItemOfferDetailModifier and TypeMethodDescriptionLineItemOfferDetail.splitIfNecessary(com.broadleafcommerce.common.extension.TypeFactory offerFactory) Checks to see that the discount quantities match the target quantities.Methods in com.broadleafcommerce.promotion.offer.web.context.info with parameters of type LineItemOfferDetailModifier and TypeMethodDescriptionprotected voidLineItemOfferDetail.copyDiscountsAndAdjustmentsToNewDetail(com.broadleafcommerce.common.extension.TypeFactory offerFactory, int discountQty, LineItemOfferDetail newDetail) voidOfferDiscount.setLineItemOfferDetail(LineItemOfferDetail lod) voidEnhancedProratedItemOfferAdjustment.setParentDetail(LineItemOfferDetail parentDetail) voidItemOfferAdjustment.setParentDetail(LineItemOfferDetail parentDetail)
DefaultItemOfferProcessor.canOfferBeApplied(EnhancedOrder, CandidateItemOffer, List, ItemOfferPermutationResult)