@Service(value="blPromotableOfferUtility") public class PromotableOfferUtilityImpl extends Object implements PromotableOfferUtility
| Constructor and Description |
|---|
PromotableOfferUtilityImpl() |
public boolean itemMatchesOfferPriceData(OfferPriceData offerPriceData, PromotableOrderItem promotableOrderItem)
itemMatchesOfferPriceData in interface PromotableOfferUtilitypublic Money computeRetailAdjustmentValue(PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer, PromotableFulfillmentGroup promotableFulfillmentGroup)
computeRetailAdjustmentValue in interface PromotableOfferUtilitypublic Money computeSalesAdjustmentValue(PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer, PromotableFulfillmentGroup promotableFulfillmentGroup)
computeSalesAdjustmentValue in interface PromotableOfferUtilitypublic Money computeAdjustmentValue(PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer, PromotableFulfillmentGroup promotableFulfillmentGroup, boolean allowSalePrice)
computeAdjustmentValue in interface PromotableOfferUtilitypublic Money computeRetailAdjustmentValue(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItemPriceDetail orderItemPriceDetail)
computeRetailAdjustmentValue in interface PromotableOfferUtilitypublic Money computeSalesAdjustmentValue(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItemPriceDetail orderItemPriceDetail)
computeSalesAdjustmentValue in interface PromotableOfferUtilitypublic Money computeAdjustmentValue(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItemPriceDetail orderItemPriceDetail, boolean allowSalePrice)
computeAdjustmentValue in interface PromotableOfferUtilitypublic Money calculateSavingsForOrderItem(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItem promotableOrderItem, int qtyToReceiveSavings)
calculateSavingsForOrderItem in interface PromotableOfferUtilityprotected Tuple<OfferDiscountType,BigDecimal> computeDiscountVariables(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItem promotableOrderItem, int quantity)
promotableCandidateItemOffer - promotableOrderItem - quantity - protected OfferPriceData findMatchingOfferPriceData(PromotableCandidateItemOffer promotableCandidateItemOffer, PromotableOrderItem orderItem)
protected Money computeAdjustmentValue(Money currentPriceDetailValue, BigDecimal offerUnitValue, BroadleafCurrency currency, OfferDiscountType discountType, PromotionRounding rounding)
protected BigDecimal determineOfferUnitValue(Offer offer, Integer quantityForTieredOffer)
Copyright © 2022. All rights reserved.