com.ibm.commerce.discount.rules

Class MixedDiscount

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


  • public class MixedDiscount
    extends java.lang.Object
    This class represents a mixed discount type. A MixedDiscount type object consists of the IDs of the items to which the discount applies, services 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
      MixedDiscount()
      Constructor for MixedDiscount.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Long[] getItemIds()
      Get item IDs of the order items to which the discount will apply.
      java.lang.String[] getServices()
      Get services associated with this discount.
      java.math.BigDecimal getValue()
      Get the value of the adjustment associated with the discount.
      void setItemIds(java.lang.Long[] newItemIds)
      Set item IDs.
      void setServices(java.lang.String[] newServices)
      Set services associated with this discount.
      void setValue(java.math.BigDecimal newValue)
      Set the adjustment value for this discount.
      • 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

      • MixedDiscount

        public MixedDiscount()
        Constructor for MixedDiscount.
    • Method Detail

      • getItemIds

        public java.lang.Long[] getItemIds()
        Get item IDs of the order items to which the discount will apply.
        Returns:
        java.lang.Long[]
      • getServices

        public java.lang.String[] getServices()
        Get services associated with this discount.
        Returns:
        java.lang.String[]
      • getValue

        public java.math.BigDecimal getValue()
        Get the value of the adjustment associated with the discount.
        Returns:
        java.math.BigDecimal
      • setItemIds

        public void setItemIds(java.lang.Long[] newItemIds)
        Set item IDs.
        Parameters:
        newItemIds - The IDs of the order items to set for this discount.
      • setServices

        public void setServices(java.lang.String[] newServices)
        Set services associated with this discount.
        Parameters:
        newServices - The services to set for this discount object.
      • setValue

        public void setValue(java.math.BigDecimal newValue)
        Set the adjustment value for this discount.
        Parameters:
        newValue - The adjustment value to set for this discount.