Class LineItem

    • Constructor Detail

      • LineItem

        public LineItem()
    • Method Detail

      • getAmountSubtotal

        public java.lang.Long getAmountSubtotal()
        Total before any discounts or taxes are applied.
      • getAmountTotal

        public java.lang.Long getAmountTotal()
        Total after discounts and taxes.
      • getDeleted

        public java.lang.Boolean getDeleted()
        Always true for a deleted object.
      • getDescription

        public java.lang.String getDescription()
        An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.
      • getDiscounts

        public java.util.List<LineItem.Discount> getDiscounts()
        The discounts applied to the line item.
      • getObject

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

        Equal to item.

      • getPrice

        public Price getPrice()
        The price used to generate the line item.
      • getQuantity

        public java.lang.Long getQuantity()
        The quantity of products being purchased.
      • getTaxes

        public java.util.List<LineItem.Tax> getTaxes()
        The taxes applied to the line item.
      • setAmountSubtotal

        public void setAmountSubtotal​(java.lang.Long amountSubtotal)
        Total before any discounts or taxes are applied.
      • setAmountTotal

        public void setAmountTotal​(java.lang.Long amountTotal)
        Total after discounts and taxes.
      • setDeleted

        public void setDeleted​(java.lang.Boolean deleted)
        Always true for a deleted object.
      • setDescription

        public void setDescription​(java.lang.String description)
        An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.
      • setDiscounts

        public void setDiscounts​(java.util.List<LineItem.Discount> discounts)
        The discounts applied to the line item.
      • setId

        public void setId​(java.lang.String id)
        Unique identifier for the object.
      • 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 item.

      • setPrice

        public void setPrice​(Price price)
        The price used to generate the line item.
      • setQuantity

        public void setQuantity​(java.lang.Long quantity)
        The quantity of products being purchased.
      • setTaxes

        public void setTaxes​(java.util.List<LineItem.Tax> taxes)
        The taxes applied to the line item.
      • 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
      • getId

        public java.lang.String getId()
        Unique identifier for the object.
        Specified by:
        getId in interface HasId