| Modifier and Type | Method and Description |
|---|---|
protected Comparator<PromotableOrderItemPriceDetail> |
OfferServiceUtilitiesImpl.getPromotableItemComparator(boolean applyToSalePrice) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
OfferServiceUtilitiesImpl.adjustmentIsNotGoodEnoughToBeApplied(PromotableCandidateItemOffer itemOffer,
PromotableOrderItemPriceDetail detail)
The adjustment might not be better than the sale price.
|
void |
OfferServiceUtilities.applyOrderItemAdjustment(PromotableCandidateItemOffer itemOffer,
PromotableOrderItemPriceDetail itemPriceDetail)
Used by applyAdjustments to create an OrderItemAdjustment from a CandidateOrderOffer
and associates the OrderItemAdjustment to the OrderItem.
|
void |
OfferServiceUtilitiesImpl.applyOrderItemAdjustment(PromotableCandidateItemOffer itemOffer,
PromotableOrderItemPriceDetail itemPriceDetail) |
void |
OfferServiceUtilities.updatePriceDetail(OrderItemPriceDetail itemDetail,
PromotableOrderItemPriceDetail promotableDetail)
Updates the passed in price detail and its associated adjustments.
|
void |
OfferServiceUtilitiesImpl.updatePriceDetail(OrderItemPriceDetail itemDetail,
PromotableOrderItemPriceDetail promotableDetail) |
| Modifier and Type | Method and Description |
|---|---|
void |
OfferServiceUtilities.applyAdjustmentsForItemPriceDetails(PromotableCandidateItemOffer itemOffer,
List<PromotableOrderItemPriceDetail> itemPriceDetails)
Takes in a list of
PromotableOrderItemPriceDetails and applies adjustments for all of the
discounts that match the passed in offer. |
void |
OfferServiceUtilitiesImpl.applyAdjustmentsForItemPriceDetails(PromotableCandidateItemOffer itemOffer,
List<PromotableOrderItemPriceDetail> itemPriceDetails) |
boolean |
OfferServiceUtilities.itemOfferCanBeApplied(PromotableCandidateItemOffer itemOffer,
List<PromotableOrderItemPriceDetail> details)
Return false if a totalitarian or non-combinable offer has already been applied or if this offer is
totalitarian or non-combinable and this order already has adjustments applied.
|
boolean |
OfferServiceUtilitiesImpl.itemOfferCanBeApplied(PromotableCandidateItemOffer itemOffer,
List<PromotableOrderItemPriceDetail> details) |
int |
OfferServiceUtilities.markQualifiersForCriteria(PromotableCandidateItemOffer itemOffer,
OfferItemCriteria itemCriteria,
List<PromotableOrderItemPriceDetail> priceDetails)
Returns the number of qualifiers marked for the passed in itemCriteria
|
int |
OfferServiceUtilitiesImpl.markQualifiersForCriteria(PromotableCandidateItemOffer itemOffer,
OfferItemCriteria itemCriteria,
List<PromotableOrderItemPriceDetail> priceDetails) |
int |
OfferServiceUtilities.markRelatedQualifiersAndTargetsForItemCriteria(PromotableCandidateItemOffer itemOffer,
PromotableOrder order,
OrderItemHolder orderItemHolder,
OfferItemCriteria itemCriteria,
List<PromotableOrderItemPriceDetail> priceDetails,
ItemOfferMarkTargets itemOfferMarkTargets)
Returns the number of targets marked for the passed in itemCriteria
|
int |
OfferServiceUtilitiesImpl.markRelatedQualifiersAndTargetsForItemCriteria(PromotableCandidateItemOffer itemOffer,
PromotableOrder order,
OrderItemHolder orderItemHolder,
OfferItemCriteria itemCriteria,
List<PromotableOrderItemPriceDetail> priceDetails,
ItemOfferMarkTargets itemOfferMarkTargets) |
int |
OfferServiceUtilities.markTargetsForCriteria(PromotableCandidateItemOffer itemOffer,
OrderItem relatedQualifier,
boolean checkOnly,
Offer promotion,
OrderItem relatedQualifierRoot,
OfferItemCriteria itemCriteria,
List<PromotableOrderItemPriceDetail> priceDetails,
int targetQtyNeeded)
Returns the number of targets marked for the passed in itemCriteria
|
int |
OfferServiceUtilitiesImpl.markTargetsForCriteria(PromotableCandidateItemOffer itemOffer,
OrderItem relatedQualifier,
boolean checkOnly,
Offer promotion,
OrderItem relatedQualifierRoot,
OfferItemCriteria itemCriteria,
List<PromotableOrderItemPriceDetail> priceDetails,
int targetQtyNeeded) |
void |
OfferServiceUtilities.sortQualifierItemDetails(List<PromotableOrderItemPriceDetail> itemPriceDetails,
boolean applyToSalePrice)
Used in
ItemOfferProcessorImpl.applyItemQualifiersAndTargets(PromotableCandidateItemOffer, PromotableOrder)
Allow for customized sorting for which qualifier items should be attempted to be used first for a promotion. |
void |
OfferServiceUtilitiesImpl.sortQualifierItemDetails(List<PromotableOrderItemPriceDetail> itemPriceDetails,
boolean applyToSalePrice) |
void |
OfferServiceUtilities.sortTargetItemDetails(List<PromotableOrderItemPriceDetail> itemPriceDetails,
boolean applyToSalePrice)
Used in
ItemOfferProcessorImpl.applyItemQualifiersAndTargets(PromotableCandidateItemOffer, PromotableOrder)
Allow for customized sorting for which qualifier items should be attempted to be used first for a promotion. |
void |
OfferServiceUtilitiesImpl.sortTargetItemDetails(List<PromotableOrderItemPriceDetail> itemPriceDetails,
boolean applyToSalePrice) |
| Modifier and Type | Class and Description |
|---|---|
class |
PromotableOrderItemPriceDetailImpl |
class |
PromotableOrderItemPriceDetailWrapper
Modules that extend offer engine behavior can benefit from a wrapped PromotableOrderItemPriceDetail.
|
| Modifier and Type | Field and Description |
|---|---|
protected PromotableOrderItemPriceDetail |
PromotableOrderItemPriceDetailAdjustmentImpl.promotableOrderItemPriceDetail |
| Modifier and Type | Field and Description |
|---|---|
protected List<PromotableOrderItemPriceDetail> |
PromotableOrderItemImpl.itemPriceDetails |
| Modifier and Type | Method and Description |
|---|---|
PromotableOrderItemPriceDetail |
PromotableOrderItemPriceDetailImpl.copyWithFinalizedData() |
PromotableOrderItemPriceDetail |
PromotableOrderItemPriceDetailWrapper.copyWithFinalizedData() |
PromotableOrderItemPriceDetail |
PromotableOrderItemPriceDetail.copyWithFinalizedData()
Copies the
PromotableOrderItemPriceDetail with all Finalized Qualifiers, Discounts, and Adjustments |
PromotableOrderItemPriceDetail |
PromotableOrderItem.createNewDetail(int quantity)
Creates a new detail with the associated quantity.
|
PromotableOrderItemPriceDetail |
PromotableOrderItemImpl.createNewDetail(int quantity) |
PromotableOrderItemPriceDetail |
PromotableItemFactory.createPromotableOrderItemPriceDetail(PromotableOrderItem promotableOrderItem,
int quantity) |
PromotableOrderItemPriceDetail |
PromotableItemFactoryImpl.createPromotableOrderItemPriceDetail(PromotableOrderItem promotableOrderItem,
int quantity) |
PromotableOrderItemPriceDetail |
PromotableOrderItemPriceDetailAdjustment.getPromotableOrderItemPriceDetail()
Returns the associated promotableOrderItemPriceDetail
|
PromotableOrderItemPriceDetail |
PromotableOrderItemPriceDetailAdjustmentImpl.getPromotableOrderItemPriceDetail() |
PromotableOrderItemPriceDetail |
PromotableOrderItemPriceDetailImpl.shallowCopy() |
PromotableOrderItemPriceDetail |
PromotableOrderItemPriceDetailWrapper.shallowCopy() |
PromotableOrderItemPriceDetail |
PromotableOrderItemPriceDetail.shallowCopy()
Copies the
PromotableOrderItemPriceDetail without Qualifiers, Discounts, or Adjustments |
protected PromotableOrderItemPriceDetail |
PromotableOrderItemPriceDetailImpl.split(int discountQty,
Long offerId,
boolean hasQualifiers) |
PromotableOrderItemPriceDetail |
PromotableOrderItemPriceDetailImpl.splitIfNecessary() |
PromotableOrderItemPriceDetail |
PromotableOrderItemPriceDetailWrapper.splitIfNecessary() |
PromotableOrderItemPriceDetail |
PromotableOrderItemPriceDetail.splitIfNecessary()
Checks to see that the discount quantities match the target quantities.
|
| Modifier and Type | Method and Description |
|---|---|
List<PromotableOrderItemPriceDetail> |
PromotableOrderImpl.getAllPromotableOrderItemPriceDetails() |
List<PromotableOrderItemPriceDetail> |
PromotableOrder.getAllPromotableOrderItemPriceDetails()
Returns all of the price detail items for this order.
|
List<PromotableOrderItemPriceDetail> |
PromotableOrderItem.getPromotableOrderItemPriceDetails()
Returns the list of priceDetails associated with this item.
|
List<PromotableOrderItemPriceDetail> |
PromotableOrderItemImpl.getPromotableOrderItemPriceDetails() |
| Modifier and Type | Method and Description |
|---|---|
PromotableOrderItemPriceDetailAdjustment |
PromotableItemFactory.createPromotableOrderItemPriceDetailAdjustment(PromotableCandidateItemOffer promotableCandidateItemOffer,
PromotableOrderItemPriceDetail promotableOrderItemPriceDetail) |
PromotableOrderItemPriceDetailAdjustment |
PromotableItemFactoryImpl.createPromotableOrderItemPriceDetailAdjustment(PromotableCandidateItemOffer promotableCandidateItemOffer,
PromotableOrderItemPriceDetail orderItemPriceDetail) |
protected void |
PromotableOrderItemImpl.mergeDetails(PromotableOrderItemPriceDetail firstDetail,
PromotableOrderItemPriceDetail secondDetail) |
| Constructor and Description |
|---|
PromotableOrderItemPriceDetailAdjustmentImpl(OrderItemPriceDetailAdjustment itemAdjustment,
PromotableOrderItemPriceDetail orderItemPriceDetail) |
PromotableOrderItemPriceDetailAdjustmentImpl(PromotableCandidateItemOffer promotableCandidateItemOffer,
PromotableOrderItemPriceDetail orderItemPriceDetail) |
PromotableOrderItemPriceDetailWrapper(PromotableOrderItemPriceDetail wrappedDetail) |
| Modifier and Type | Method and Description |
|---|---|
protected List<PromotableOrderItemPriceDetail> |
ItemOfferProcessorImpl.buildPriceDetailListFromOrderItems(List<PromotableOrderItem> items) |
protected Map<String,PromotableOrderItemPriceDetail> |
OrderOfferProcessorImpl.buildPromotableDetailsMap(PromotableOrderItem item) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
OrderOfferProcessorImpl.processMatchingDetails(OrderItemPriceDetail itemDetail,
PromotableOrderItemPriceDetail promotableItemDetail) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractBaseProcessor.clearAllNonFinalizedQuantities(List<PromotableOrderItemPriceDetail> priceDetails)
We were not able to meet all of the ItemCriteria for a promotion, but some of the items were
marked as qualifiers or targets.
|
protected void |
AbstractBaseProcessor.finalizeQuantities(List<PromotableOrderItemPriceDetail> priceDetails)
Updates the finalQuanties for the PromotionDiscounts and PromotionQualifiers.
|
protected void |
AbstractBaseProcessor.splitDetailsIfNecessary(List<PromotableOrderItemPriceDetail> priceDetails)
Checks to see if the discountQty matches the detailQty.
|
Copyright © 2014. All Rights Reserved.