java.lang.Object | +--com.ibm.commerce.discount.rules.utils.DiscountCurrencyManager
This currency manager is helping Blaze rule on currency exchange.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Constructor Summary | |
---|---|
DiscountCurrencyManager() Default constructor for DiscountCurrencyManager. | |
DiscountCurrencyManager(
CommandContext aCmdContext) Constructor for DiscountCurrencyManager. |
Method Summary | |
---|---|
java.math.BigDecimal |
convertDiscountCurrency(java.lang.String fromCurrency,
java.math.BigDecimal fromAmount, java.lang.String toCurrency) Convert a orderTotalAmount to a new currency |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public DiscountCurrencyManager()
public DiscountCurrencyManager(CommandContext aCmdContext) throws ECSystemException
aCmdContext
- com.ibm.commerce.command.CommandContext
ECSystemException
Method Detail |
---|
public java.math.BigDecimal convertDiscountCurrency(java.lang.String fromCurrency, java.math.BigDecimal fromAmount, java.lang.String toCurrency) throws ECSystemException
fromCurrency
- java.lang.StringtoCurrency
- java.lang.StringfromAmount
- java.math.BigDecimal
ECSystemException