com.ibm.commerce.marketing.promotion.reward

Class FixedAmountOffInDifferentCurrencyAdjustment

  • All Implemented Interfaces:
    Adjustment, MonetaryAdjustment, XMLizable, java.io.Serializable, java.lang.Cloneable


    public class FixedAmountOffInDifferentCurrencyAdjustment
    extends FixedAmountOffAdjustment
    An Adjustment that offers different fixed amount discounts based on the order currency. The currencies and their corresponding discounts must be saved to the same position in the arrays.

    XML Snippet for the FixedAmountOffInDifferentCurrencyAdjustment:

      <Adjustment impl="com.ibm.commerce.marketing.promotion.reward.FixedAmountOffInDifferentCurrencyAdjustment" >
            <TargetCurrency>
                    <AmountOff>50</AmountOff>
                    <Currency>USD</Currency>
            </TargetCurrency>
            <TargetCurrency>
                    <AmountOff>55</AmountOff>
                    <Currency>CAD</Currency>
            </TargetCurrency>
            <AdjustmentType>IndividualAffectedItems</AdjustmentType>
      </Adjustment>
     
     
    See Also:
    Serialized Form
    • Constructor Detail

      • FixedAmountOffInDifferentCurrencyAdjustment

        public FixedAmountOffInDifferentCurrencyAdjustment()
        Constructor for FixedAmountOffInDifferentCurrencyAdjustment.
    • Method Detail

      • getOffAmounts

        public java.math.BigDecimal[] getOffAmounts()
        Gets the off amounts.
        Returns:
        the off amounts
      • setOffAmounts

        public void setOffAmounts(java.math.BigDecimal[] amountsOff)
        Sets the array of off amounts.
        Parameters:
        amountsOff - the off amounts array to set
      • getCurrencies

        public java.lang.String[] getCurrencies()
        Gets the currencies
        Returns:
        the currencies
      • setCurrencies

        public void setCurrencies(java.lang.String[] currencies)
        Sets the array of currencies.
        Parameters:
        currencies - the currencies to set