Class OrderItem

    • Constructor Summary

      Constructors 
      Constructor Description
      OrderItem()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.lang.Long getAmount()
      A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the line item.
      java.lang.String getCurrency()
      Three-letter ISO currency code, in lowercase.
      java.lang.String getDescription()
      Description of the line item, meant to be displayable to the user (e.g., "Express shipping").
      java.lang.String getObject()
      String representing the object's type.
      java.lang.String getParent()
      Get ID of expandable parent object.
      Sku getParentObject()
      Get expanded parent.
      java.lang.Long getQuantity()
      A positive integer representing the number of instances of parent that are included in this order item.
      java.lang.String getType()
      The type of line item.
      int hashCode()  
      void setAmount​(java.lang.Long amount)
      A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the line item.
      void setCurrency​(java.lang.String currency)
      Three-letter ISO currency code, in lowercase.
      void setDescription​(java.lang.String description)
      Description of the line item, meant to be displayable to the user (e.g., "Express shipping").
      void setObject​(java.lang.String object)
      String representing the object's type.
      void setParent​(java.lang.String id)  
      void setParentObject​(Sku expandableObject)  
      void setQuantity​(java.lang.Long quantity)
      A positive integer representing the number of instances of parent that are included in this order item.
      void setType​(java.lang.String type)
      The type of line item.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OrderItem

        public OrderItem()
    • Method Detail

      • getParent

        public java.lang.String getParent()
        Get ID of expandable parent object.
      • setParent

        public void setParent​(java.lang.String id)
      • getParentObject

        public Sku getParentObject()
        Get expanded parent.
      • setParentObject

        public void setParentObject​(Sku expandableObject)
      • getAmount

        public java.lang.Long getAmount()
        A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the line item.
      • getDescription

        public java.lang.String getDescription()
        Description of the line item, meant to be displayable to the user (e.g., "Express shipping").
      • getObject

        public java.lang.String getObject()
        String representing the object's type. Objects of the same type share the same value.

        Equal to order_item.

      • getQuantity

        public java.lang.Long getQuantity()
        A positive integer representing the number of instances of parent that are included in this order item. Applicable/present only if type is sku.
      • getType

        public java.lang.String getType()
        The type of line item. One of sku, tax, shipping, or discount.
      • setAmount

        public void setAmount​(java.lang.Long amount)
        A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the line item.
      • setDescription

        public void setDescription​(java.lang.String description)
        Description of the line item, meant to be displayable to the user (e.g., "Express shipping").
      • setObject

        public void setObject​(java.lang.String object)
        String representing the object's type. Objects of the same type share the same value.

        Equal to order_item.

      • setQuantity

        public void setQuantity​(java.lang.Long quantity)
        A positive integer representing the number of instances of parent that are included in this order item. Applicable/present only if type is sku.
      • setType

        public void setType​(java.lang.String type)
        The type of line item. One of sku, tax, shipping, or discount.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object