Class CreditNoteLineItem

    • 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 integer amount in %s representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
      java.lang.String getDescription()
      Description of the item being credited.
      java.lang.Long getDiscountAmount()
      The integer amount in %s representing the discount being credited for this line item.
      java.util.List<CreditNoteLineItem.DiscountAmount> getDiscountAmounts()
      The amount of discount calculated per discount for this line item.
      java.lang.String getId()
      Unique identifier for the object.
      java.lang.String getInvoiceLineItem()
      ID of the invoice line item being credited.
      java.lang.Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      java.lang.String getObject()
      String representing the object's type.
      java.lang.Long getQuantity()
      The number of units of product being credited.
      java.util.List<CreditNote.TaxAmount> getTaxAmounts()
      The amount of tax calculated per tax rate for this line item.
      java.util.List<TaxRate> getTaxRates()
      The tax rates which apply to the line item.
      java.lang.String getType()
      The type of the credit note line item, one of invoice_line_item or custom_line_item.
      java.lang.Long getUnitAmount()
      The cost of each unit of product being credited.
      java.math.BigDecimal getUnitAmountDecimal()
      Same as unit_amount, but contains a decimal value with at most 12 decimal places.
      int hashCode()  
      void setAmount​(java.lang.Long amount)
      The integer amount in %s representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
      void setDescription​(java.lang.String description)
      Description of the item being credited.
      void setDiscountAmount​(java.lang.Long discountAmount)
      The integer amount in %s representing the discount being credited for this line item.
      void setDiscountAmounts​(java.util.List<CreditNoteLineItem.DiscountAmount> discountAmounts)
      The amount of discount calculated per discount for this line item.
      void setId​(java.lang.String id)
      Unique identifier for the object.
      void setInvoiceLineItem​(java.lang.String invoiceLineItem)
      ID of the invoice line item being credited.
      void setLivemode​(java.lang.Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      void setObject​(java.lang.String object)
      String representing the object's type.
      void setQuantity​(java.lang.Long quantity)
      The number of units of product being credited.
      void setTaxAmounts​(java.util.List<CreditNote.TaxAmount> taxAmounts)
      The amount of tax calculated per tax rate for this line item.
      void setTaxRates​(java.util.List<TaxRate> taxRates)
      The tax rates which apply to the line item.
      void setType​(java.lang.String type)
      The type of the credit note line item, one of invoice_line_item or custom_line_item.
      void setUnitAmount​(java.lang.Long unitAmount)
      The cost of each unit of product being credited.
      void setUnitAmountDecimal​(java.math.BigDecimal unitAmountDecimal)
      Same as unit_amount, but contains a decimal value with at most 12 decimal places.
      • Methods inherited from class java.lang.Object

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

      • CreditNoteLineItem

        public CreditNoteLineItem()
    • Method Detail

      • getAmount

        public java.lang.Long getAmount()
        The integer amount in %s representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
      • getDescription

        public java.lang.String getDescription()
        Description of the item being credited.
      • getDiscountAmount

        public java.lang.Long getDiscountAmount()
        The integer amount in %s representing the discount being credited for this line item.
      • getDiscountAmounts

        public java.util.List<CreditNoteLineItem.DiscountAmount> getDiscountAmounts()
        The amount of discount calculated per discount for this line item.
      • getInvoiceLineItem

        public java.lang.String getInvoiceLineItem()
        ID of the invoice line item being credited.
      • getLivemode

        public java.lang.Boolean getLivemode()
        Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      • getObject

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

        Equal to credit_note_line_item.

      • getQuantity

        public java.lang.Long getQuantity()
        The number of units of product being credited.
      • getTaxAmounts

        public java.util.List<CreditNote.TaxAmount> getTaxAmounts()
        The amount of tax calculated per tax rate for this line item.
      • getTaxRates

        public java.util.List<TaxRate> getTaxRates()
        The tax rates which apply to the line item.
      • getType

        public java.lang.String getType()
        The type of the credit note line item, one of invoice_line_item or custom_line_item. When the type is invoice_line_item there is an additional invoice_line_item property on the resource the value of which is the id of the credited line item on the invoice.
      • getUnitAmount

        public java.lang.Long getUnitAmount()
        The cost of each unit of product being credited.
      • getUnitAmountDecimal

        public java.math.BigDecimal getUnitAmountDecimal()
        Same as unit_amount, but contains a decimal value with at most 12 decimal places.
      • setAmount

        public void setAmount​(java.lang.Long amount)
        The integer amount in %s representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
      • setDescription

        public void setDescription​(java.lang.String description)
        Description of the item being credited.
      • setDiscountAmount

        public void setDiscountAmount​(java.lang.Long discountAmount)
        The integer amount in %s representing the discount being credited for this line item.
      • setDiscountAmounts

        public void setDiscountAmounts​(java.util.List<CreditNoteLineItem.DiscountAmount> discountAmounts)
        The amount of discount calculated per discount for this line item.
      • setId

        public void setId​(java.lang.String id)
        Unique identifier for the object.
      • setInvoiceLineItem

        public void setInvoiceLineItem​(java.lang.String invoiceLineItem)
        ID of the invoice line item being credited.
      • setLivemode

        public void setLivemode​(java.lang.Boolean livemode)
        Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      • 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 credit_note_line_item.

      • setQuantity

        public void setQuantity​(java.lang.Long quantity)
        The number of units of product being credited.
      • setTaxAmounts

        public void setTaxAmounts​(java.util.List<CreditNote.TaxAmount> taxAmounts)
        The amount of tax calculated per tax rate for this line item.
      • setTaxRates

        public void setTaxRates​(java.util.List<TaxRate> taxRates)
        The tax rates which apply to the line item.
      • setType

        public void setType​(java.lang.String type)
        The type of the credit note line item, one of invoice_line_item or custom_line_item. When the type is invoice_line_item there is an additional invoice_line_item property on the resource the value of which is the id of the credited line item on the invoice.
      • setUnitAmount

        public void setUnitAmount​(java.lang.Long unitAmount)
        The cost of each unit of product being credited.
      • setUnitAmountDecimal

        public void setUnitAmountDecimal​(java.math.BigDecimal unitAmountDecimal)
        Same as unit_amount, but contains a decimal value with at most 12 decimal places.
      • 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