com.ibm.commerce.discount.rules.utils
Class DiscountCurrencyManager
java.lang.Object
com.ibm.commerce.discount.rules.utils.DiscountCurrencyManager
- public final class DiscountCurrencyManager
- extends java.lang.Object
This currency manager is helping Blaze rule on currency exchange.
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
- Constant Field Values
DiscountCurrencyManager
public DiscountCurrencyManager()
- Default constructor for DiscountCurrencyManager.
DiscountCurrencyManager
public DiscountCurrencyManager(CommandContext aCmdContext)
throws ECSystemException
- Constructor for DiscountCurrencyManager.
- Parameters:
- aCmdContext - com.ibm.commerce.command.CommandContext
- Throws:
- ECSystemException
convertDiscountCurrency
public java.math.BigDecimal convertDiscountCurrency(java.lang.String fromCurrency,
java.math.BigDecimal fromAmount,
java.lang.String toCurrency)
throws ECSystemException
- Convert a orderTotalAmount to a new currency
-
- Parameters:
- fromCurrency - java.lang.String
- toCurrency - java.lang.String
- fromAmount - java.math.BigDecimal
- Returns:
- the new unitAmount java.math.BigDecimal
- Throws:
- ECSystemException
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.