com.ibm.commerce.discount.rules

Class FreebieItem

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


  • public class FreebieItem
    extends java.lang.Object
    This class represents the freebie item, which may be given for free with a certain promotion. A freebie item has an ID and quantity associated with it.
    • Field Summary

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Long getItemId()
      Get the item ID.
      java.lang.Double getQuantity()
      Get the quantity of the freebie item.
      void setItemId(java.lang.Long newItemId)
      Set the item ID.
      void setQuantity(java.lang.Double newQuantity)
      Set the quantity of the freebie item.
      • 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

      • FreebieItem

        public FreebieItem()
        Constructor for FreebieItem.
    • Method Detail

      • getItemId

        public java.lang.Long getItemId()
        Get the item ID.
        Returns:
        java.lang.Long
      • getQuantity

        public java.lang.Double getQuantity()
        Get the quantity of the freebie item.
        Returns:
        java.lang.Double
      • setItemId

        public void setItemId(java.lang.Long newItemId)
        Set the item ID.
        Parameters:
        newItemId - java.lang.Long
      • setQuantity

        public void setQuantity(java.lang.Double newQuantity)
        Set the quantity of the freebie item.
        Parameters:
        newQuantity - java.lang.Double