com.ibm.commerce.discount.rules

Class FixedPriceItem

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


  • public class FixedPriceItem
    extends java.lang.Object
    This class represents an order item with a fixed price. A fixed price item has an ID, price 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
      FixedPriceItem()
      Constructor for an order item with fixed price.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.math.BigDecimal getFixedPrice()
      Get the fixed price.
      java.lang.Long getItemId()
      Get the ID of the item.
      java.lang.Double getMaxQuantity()
      Get the maximum quantity.
      void setFixedPrice(java.math.BigDecimal newFixedPrice)
      Set the fixed price of the item.
      void setItemId(java.lang.Long newItemId)
      Set the ID of item.
      void setMaxQuantity(java.lang.Double newMaxQuantity)
      Set the maximum quantity.
      • 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

      • FixedPriceItem

        public FixedPriceItem()
        Constructor for an order item with fixed price.
    • Method Detail

      • getFixedPrice

        public java.math.BigDecimal getFixedPrice()
        Get the fixed price.
        Returns:
        The fixed price.
      • getItemId

        public java.lang.Long getItemId()
        Get the ID of the item.
        Returns:
        The ID of the item.
      • getMaxQuantity

        public java.lang.Double getMaxQuantity()
        Get the maximum quantity.
        Returns:
        The maximum quantity.
      • setFixedPrice

        public void setFixedPrice(java.math.BigDecimal newFixedPrice)
        Set the fixed price of the item.
        Parameters:
        newFixedPrice - The price to set of the item.
      • setItemId

        public void setItemId(java.lang.Long newItemId)
        Set the ID of item.
        Parameters:
        newItemId - The ID of the item to set.
      • setMaxQuantity

        public void setMaxQuantity(java.lang.Double newMaxQuantity)
        Set the maximum quantity.
        Parameters:
        newMaxQuantity - The maximum quantity of the item to set.