com.ibm.commerce.discount.rules

Class MonetaryDiscount

  • java.lang.Object
    • com.ibm.commerce.discount.rules.MonetaryDiscount


  • public class MonetaryDiscount
    extends java.lang.Object
    This class represents a MonetaryDiscount type. A MonetaryDiscount type object consists of the IDs of the order items to which the discount applies and an adjustment value.
    • Field Summary

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

      Constructors 
      Constructor and Description
      MonetaryDiscount()
      Constructor for MonetaryDiscount.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Long[] getOrderItemIds()
      Get order item IDs of the items to which the discount applies.
      java.math.BigDecimal getValue()
      Get the adjustment value.
      void setOrderItemIds(java.lang.Long[] newOrderItemId)
      Set the order item IDs to which the discount applies.
      void setValue(java.math.BigDecimal newValue)
      Set the adjustment value.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

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

      • MonetaryDiscount

        public MonetaryDiscount()
        Constructor for MonetaryDiscount.
    • Method Detail

      • getOrderItemIds

        public java.lang.Long[] getOrderItemIds()
        Get order item IDs of the items to which the discount applies.
        Returns:
        java.lang.Long
      • getValue

        public java.math.BigDecimal getValue()
        Get the adjustment value.
        Returns:
        java.math.BigDecimal
      • setOrderItemIds

        public void setOrderItemIds(java.lang.Long[] newOrderItemId)
        Set the order item IDs to which the discount applies.
        Parameters:
        newOrderItemId - java.lang.Long
      • setValue

        public void setValue(java.math.BigDecimal newValue)
        Set the adjustment value.
        Parameters:
        newAmount - java.math.BigDecimal