Class Source.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()
      The amount (price) for this order item.
      java.lang.String getCurrency()
      This currency of this order item.
      java.lang.String getDescription()
      Human-readable description for this order item.
      java.lang.String getParent()
      The ID of the associated object for this line item.
      java.lang.Long getQuantity()
      The quantity of this order item.
      java.lang.String getType()
      The type of this order item.
      int hashCode()  
      void setAmount​(java.lang.Long amount)
      The amount (price) for this order item.
      void setCurrency​(java.lang.String currency)
      This currency of this order item.
      void setDescription​(java.lang.String description)
      Human-readable description for this order item.
      void setParent​(java.lang.String parent)
      The ID of the associated object for this line item.
      void setQuantity​(java.lang.Long quantity)
      The quantity of this order item.
      void setType​(java.lang.String type)
      The type of this order item.
      • Methods inherited from class java.lang.Object

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

      • OrderItem

        public OrderItem()
    • Method Detail

      • getAmount

        public java.lang.Long getAmount()
        The amount (price) for this order item.
      • getCurrency

        public java.lang.String getCurrency()
        This currency of this order item. Required when amount is present.
      • getDescription

        public java.lang.String getDescription()
        Human-readable description for this order item.
      • getParent

        public java.lang.String getParent()
        The ID of the associated object for this line item. Expandable if not null (e.g., expandable to a SKU).
      • getQuantity

        public java.lang.Long getQuantity()
        The quantity of this order item. When type is sku, this is the number of instances of the SKU to be ordered.
      • getType

        public java.lang.String getType()
        The type of this order item. Must be sku, tax, or shipping.
      • setAmount

        public void setAmount​(java.lang.Long amount)
        The amount (price) for this order item.
      • setCurrency

        public void setCurrency​(java.lang.String currency)
        This currency of this order item. Required when amount is present.
      • setDescription

        public void setDescription​(java.lang.String description)
        Human-readable description for this order item.
      • setParent

        public void setParent​(java.lang.String parent)
        The ID of the associated object for this line item. Expandable if not null (e.g., expandable to a SKU).
      • setQuantity

        public void setQuantity​(java.lang.Long quantity)
        The quantity of this order item. When type is sku, this is the number of instances of the SKU to be ordered.
      • setType

        public void setType​(java.lang.String type)
        The type of this order item. Must be sku, tax, or shipping.
      • 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