com.ibm.commerce.marketing.promotion.dependency

Interface PriceConverter



  • public interface PriceConverter
    PriceConverter interface should be implemented by classes which converts the price between currencies.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.math.BigDecimal convertDiscountCurrency(java.lang.String fromCurrency, java.math.BigDecimal fromAmount, java.lang.String toCurrency)
      Convert an order total amount to a new currency
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Method Detail

      • convertDiscountCurrency

        java.math.BigDecimal convertDiscountCurrency(java.lang.String fromCurrency,
                                                     java.math.BigDecimal fromAmount,
                                                     java.lang.String toCurrency)
        Convert an order total amount to a new currency
        Parameters:
        fromCurrency - java.lang.String
        toCurrency - java.lang.String
        fromAmount - java.math.BigDecimal
        Returns:
        The unit amount with the new currency.