Uses of Class
com.broadleafcommerce.promotion.offer.web.context.EnhancedOrderLineItem
Package
Description
-
Uses of EnhancedOrderLineItem in com.broadleafcommerce.promotion.offer.service.engine.application.processor
Modifier and TypeMethodDescriptionprotected List<EnhancedOrderLineItem>
DefaultOrderOfferProcessor.relevantSegmentItems
(EnhancedOrder order, CandidateOrderOffer offer) Returns list of order items matching the offers segment and then filters the returned list by calling #shouldFilterItemModifier and TypeMethodDescriptionprotected boolean
DefaultOrderOfferProcessor.shouldIncludeItem
(EnhancedOrderLineItem item, EnhancedOrder order, CandidateOrderOffer offer) protected boolean
DefaultOrderOfferProcessor.shouldIncludeSegmentItem
(EnhancedOrderLineItem item, EnhancedOrder order, CandidateOrderOffer offer) Filters items that are part of the offer being processed.Modifier and TypeMethodDescriptionprotected DiscountableItemInfo
DefaultOrderOfferProcessor.calculateDiscountableItemTotal
(List<EnhancedOrderLineItem> relevantItems, CandidateOrderOffer orderOffer, OfferProcessingContext context, CombinedTypesOfferPermutation ctop, OrderOfferPermutationResult orderResult) -
Uses of EnhancedOrderLineItem in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper
Modifier and TypeMethodDescriptionjavax.money.MonetaryAmount
DefaultOrderAndItemOfferHelper.calculateItemTotalFromPermutation
(Optional<ItemOfferPermutationResult> itemResult, Optional<OrderOfferPermutationResult> orderResult, EnhancedOrderLineItem item, boolean excludeItemTotalsWithDiscounts, DiscountableItemInfo discountableItemTotal) Uses the passed in results from a permutation which stores the item adjustments and prorated order adjustments for an item.javax.money.MonetaryAmount
OrderAndItemOfferHelper.calculateItemTotalFromPermutation
(Optional<ItemOfferPermutationResult> itemResult, Optional<OrderOfferPermutationResult> orderResult, EnhancedOrderLineItem item, boolean excludeItemTotalsWithDiscounts, DiscountableItemInfo discountableItemTotal) Uses the passed in results from a permutation result which holds the non-final item and offer adjustments relevant to the permutation. -
Uses of EnhancedOrderLineItem in com.broadleafcommerce.promotion.offer.service.engine.candidate
Modifier and TypeMethodDescriptionprotected javax.money.MonetaryAmount
DefaultOfferCandidateService.calculateStandardPriceSavings
(EnhancedOrderLineItem item, CandidateItemOffer itemOffer) protected boolean
DefaultOfferCandidateService.shouldIncludeItem
(EnhancedOrderLineItem item, EnhancedOrder order, BaseCandidateOffer offer) Deprecated, for removal: This API element is subject to removal in a future version.protected boolean
DefaultOfferCandidateService.shouldIncludeItem
(EnhancedOrderLineItem item, EnhancedOrder order, BaseCandidateOffer offer, boolean allowMatchesOnNonDiscountableItems) Whether the givenEnhancedOrderLineItem
should be considered when evaluating anItemCriteriaRule
.protected boolean
DefaultOfferCandidateService.shouldIncludeOnSaleItem
(EnhancedOrderLineItem item, BaseCandidateOffer candidateOffer) Modifier and TypeMethodDescriptionprotected Set<EnhancedLineItem>
DefaultOfferCandidateService.evaluateOrderForMatchingItems
(@NonNull List<EnhancedOrderLineItem> orderLineItems, @NonNull ItemCriteriaRule itemCriteriaRule, boolean allowMatchesOnNonDiscountableItems) Evaluates theItemCriteriaRule
against theOrder's line items
to determine if the order matches. -
Uses of EnhancedOrderLineItem in com.broadleafcommerce.promotion.offer.web.context
Modifier and TypeMethodDescriptionEnhancedFulfillmentLineItem.getOrderLineItem()
The correspondingEnhancedOrderLineItem
for thisEnhancedFulfillmentLineItem
.EnhancedOrderLineItem.getParent()
Not part of the incoming or outgoing payloads but populated at the start of the offer engine in order to provide faster lookup during processing.Modifier and TypeMethodDescriptionEnhancedOrderLineItem.getChildren()
Not part of the incoming or outgoing payloads but populated at the start of the offer engine in order to provide faster lookup during processing.EnhancedOrder.getOrderLineItems()
EnhancedOrder.getOrderLineItemsForOfferSegment
(String segment) EnhancedOrder.getSegmentLineItemsMap()
Modifier and TypeMethodDescriptionprotected void
EnhancedOrder.addChildrenForItem
(EnhancedOrderLineItem parent, Collection<EnhancedOrderLineItem> allPotentialChildren) protected void
EnhancedOrder.buildFulfillmentLineItem
(EnhancedFulfillmentLineItem enhancedFulfillmentLineItem, EnhancedOrderLineItem orderLineItem, int remainingQty) protected int
EnhancedOrder.calculateRemainingQuantity
(EnhancedOrderLineItem orderItem) protected Optional<EnhancedFulfillmentGroup>
EnhancedOrder.determineFulfillmentGroupForOrderItem
(EnhancedOrderLineItem orderItem) boolean
EnhancedOrderLineItem.isAParentOf
(EnhancedOrderLineItem potentialChild) Determines whether this item is a direct parent or general ancestor of the given item.void
EnhancedFulfillmentLineItem.setOrderLineItem
(EnhancedOrderLineItem orderLineItem) The correspondingEnhancedOrderLineItem
for thisEnhancedFulfillmentLineItem
.void
EnhancedOrderLineItem.setParent
(EnhancedOrderLineItem parent) Not part of the incoming or outgoing payloads but populated at the start of the offer engine in order to provide faster lookup during processing.Modifier and TypeMethodDescriptionprotected void
EnhancedOrder.addChildrenForItem
(EnhancedOrderLineItem parent, Collection<EnhancedOrderLineItem> allPotentialChildren) void
EnhancedOrderLineItem.setChildren
(Set<EnhancedOrderLineItem> children) Not part of the incoming or outgoing payloads but populated at the start of the offer engine in order to provide faster lookup during processing.void
EnhancedOrder.setOrderLineItems
(List<EnhancedOrderLineItem> orderLineItems) void
EnhancedOrder.setSegmentLineItemsMap
(Map<String, List<EnhancedOrderLineItem>> segmentLineItemsMap)
DefaultOfferCandidateService.shouldIncludeItem(EnhancedOrderLineItem, EnhancedOrder, BaseCandidateOffer, boolean)
.