com.ibm.commerce.marketing.commands.elements

Class OrderInfo

  • java.lang.Object
    • com.ibm.commerce.marketing.commands.elements.OrderInfo


  • public class OrderInfo
    extends java.lang.Object
    This class encapsulates the data required when evaluating a user's orders. It can contain information related to orders or to order items.
    • Field Summary

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

      Constructors 
      Constructor and Description
      OrderInfo()
      This method is the default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.math.BigDecimal getAdjustment()
      This method returns the adjustments against the amount of the order or order items.
      java.math.BigDecimal getAmount()
      This method returns the amount of the order or order item.
      java.lang.String getCatentryId()
      This method return the catalog entry ID of the order item.
      java.lang.String getCurrency()
      This method returns the currency of the order or order item.
      java.util.List getParentCategories()
      This method returns the parent categories of the catalog entry in the order item.
      java.lang.Double getQuantity()
      This method returns the quantity of the order item.
      void setAdjustment(java.math.BigDecimal newAdjustment)
      This method sets the adjustments against the amount of the order or order items.
      void setAmount(java.math.BigDecimal newAmount)
      This method sets the amount of the order or order item.
      void setCatentryId(long newCatentryId)
      This method sets the catalog entry ID of the order item.
      void setCurrency(java.lang.String newCurrency)
      This method sets the currency of the order or order item.
      void setParentCategories(java.util.List newParentCategories)
      This method sets the parent categories of the catalog entry in the order item.
      void setQuantity(java.lang.Double newQuantity)
      This method sets the quantity of the order 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

      • OrderInfo

        public OrderInfo()
        This method is the default constructor. It currently performs no actions.
    • Method Detail

      • getCurrency

        public java.lang.String getCurrency()
        This method returns the currency of the order or order item.
        Returns:
        This method returns the currency of order or order item.
      • getAmount

        public java.math.BigDecimal getAmount()
        This method returns the amount of the order or order item.
        Returns:
        This method returns the amount of the order or order item.
      • getAdjustment

        public java.math.BigDecimal getAdjustment()
        This method returns the adjustments against the amount of the order or order items.
        Returns:
        This method returns the adjustments against the amount of the order or order items.
      • getCatentryId

        public java.lang.String getCatentryId()
        This method return the catalog entry ID of the order item.
        Returns:
        This method return the catalog entry ID of the order item.
      • getQuantity

        public java.lang.Double getQuantity()
        This method returns the quantity of the order item.
        Returns:
        This method returns the quantity of the order item.
      • getParentCategories

        public java.util.List getParentCategories()
        This method returns the parent categories of the catalog entry in the order item.
        Returns:
        This method returns a List of strings that contain the parent category IDs of the catalog entry in the order item.
      • setCurrency

        public void setCurrency(java.lang.String newCurrency)
        This method sets the currency of the order or order item.
        Parameters:
        newCurrency - The currency of the order or order item.
      • setAmount

        public void setAmount(java.math.BigDecimal newAmount)
        This method sets the amount of the order or order item.
        Parameters:
        newAmount - The amount of the order or order item.
      • setAdjustment

        public void setAdjustment(java.math.BigDecimal newAdjustment)
        This method sets the adjustments against the amount of the order or order items.
        Parameters:
        newAdjustment - The adjustments against the amount of the order or order items.
      • setCatentryId

        public void setCatentryId(long newCatentryId)
        This method sets the catalog entry ID of the order item.
        Parameters:
        newCatentryId - The catalog entry ID of the order item.
      • setQuantity

        public void setQuantity(java.lang.Double newQuantity)
        This method sets the quantity of the order item.
        Parameters:
        newQuantity - The quantity of the order item.
      • setParentCategories

        public void setParentCategories(java.util.List newParentCategories)
        This method sets the parent categories of the catalog entry in the order item.
        Parameters:
        newParentCategories - A List of strings that contain the parent category IDs of the catalog entry in the order item.