© 2002 BEA Systems, Inc.


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

All Known Implementing Classes:
AbstractDiscountCalculator

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.


Field Summary
static java.lang.String calcMethod
           
 
Method Summary
 void calcNewPrice(DiscountModifier modifier, AdjustmentType type, QualificationDiscountId discountID, java.lang.String reason, java.util.List items)
          List of PoolObject(s).
 void calcNewPrice(DiscountModifier modifier, AdjustmentType type, QualificationDiscountId discountID, java.lang.String reason, PoolObject item)
           
 

Field Detail

calcMethod

public static final java.lang.String calcMethod
Method Detail

calcNewPrice

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

calcNewPrice

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

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved