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.
 
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
IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

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
Method Detail

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