DiscountCalculator Interface

com.bea.commerce.ebusiness.price.engine
DiscountCalculator Interface

public interface DiscountCalculator

The DiscountCalculator will produce the new price of an entity (item, order shipping, ...) given a DiscountModifier instance and an entity. DiscountModifier is used by a DiscountCalculator to determine to what amount an entity should be discounted. This class should be implemented to produce a particular type of calculator. A specific DiscountCalculator implementation will be associated with a particular type or types of DiscountModifier classes at runtime.


All Known Implementing Classes
AbstractDiscountCalculator

Field Summary

public static final String
calcMethod
String
 

Method Summary

public void
calcNewPrice(DiscountModifier modifier, AdjustmentType type, QualificationDiscountId discountID, String reason, PoolObject item)
public void
calcNewPrice(DiscountModifier modifier, AdjustmentType type, QualificationDiscountId discountID, String reason, List items)
List of PoolObject(s).

Field Detail

calcMethod

public static final String calcMethod

 

Method Detail

calcNewPrice(DiscountModifier, AdjustmentType, QualificationDiscountId, String, PoolObject) Method

public void calcNewPrice(DiscountModifier modifier, 
                         AdjustmentType type, 
                         QualificationDiscountId discountID, 
                         String reason, 
                         PoolObject item)

calcNewPrice(DiscountModifier, AdjustmentType, QualificationDiscountId, String, List) Method

public void calcNewPrice(DiscountModifier modifier, 
                         AdjustmentType type, 
                         QualificationDiscountId discountID, 
                         String reason, 
                         List items)
List of PoolObject(s).