org.broadleafcommerce.core.offer.service.discount.domain
Class PromotableOfferUtility

java.lang.Object
  extended by org.broadleafcommerce.core.offer.service.discount.domain.PromotableOfferUtility

public class PromotableOfferUtility
extends Object

Provides shared code for the default implementations of PromotableOrderItemPriceDetailAdjustmentImpl and PromotableCandidateItemOfferImpl

Author:
bpolster

Constructor Summary
PromotableOfferUtility()
           
 
Method Summary
static Money computeAdjustmentValue(Money currentPriceDetailValue, BigDecimal offerUnitValue, OfferHolder offerHolder, PromotionRounding rounding)
           
static BigDecimal determineOfferUnitValue(Offer offer, PromotableCandidateItemOffer promotableCandidateItemOffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PromotableOfferUtility

public PromotableOfferUtility()
Method Detail

computeAdjustmentValue

public static Money computeAdjustmentValue(Money currentPriceDetailValue,
                                           BigDecimal offerUnitValue,
                                           OfferHolder offerHolder,
                                           PromotionRounding rounding)

determineOfferUnitValue

public static BigDecimal determineOfferUnitValue(Offer offer,
                                                 PromotableCandidateItemOffer promotableCandidateItemOffer)


Copyright © 2013. All Rights Reserved.