Class CreditNoteLineItem

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.CreditNoteLineItem
All Implemented Interfaces:
HasId, StripeObjectInterface

public class CreditNoteLineItem extends StripeObject implements HasId
The credit note line item object.
  • Constructor Details

    • CreditNoteLineItem

      public CreditNoteLineItem()
  • Method Details

    • getAmount

      public Long getAmount()
      The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
    • getAmountExcludingTax

      public Long getAmountExcludingTax()
      The integer amount in cents (or local equivalent) representing the amount being credited for this line item, excluding all tax and discounts.
    • getDescription

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

      public Long getDiscountAmount()
      The integer amount in cents (or local equivalent) representing the discount being credited for this line item.
    • getDiscountAmounts

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

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

      public 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 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 Long getQuantity()
      The number of units of product being credited.
    • getTaxAmounts

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

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

      public 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 Long getUnitAmount()
      The cost of each unit of product being credited.
    • getUnitAmountDecimal

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

      public BigDecimal getUnitAmountExcludingTax()
      The amount in cents (or local equivalent) representing the unit amount being credited for this line item, excluding all tax and discounts.
    • setAmount

      public void setAmount(Long amount)
      The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
    • setAmountExcludingTax

      public void setAmountExcludingTax(Long amountExcludingTax)
      The integer amount in cents (or local equivalent) representing the amount being credited for this line item, excluding all tax and discounts.
    • setDescription

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

      public void setDiscountAmount(Long discountAmount)
      The integer amount in cents (or local equivalent) representing the discount being credited for this line item.
    • setDiscountAmounts

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

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

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

      public void setLivemode(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(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(Long quantity)
      The number of units of product being credited.
    • setTaxAmounts

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

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

      public void setType(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(Long unitAmount)
      The cost of each unit of product being credited.
    • setUnitAmountDecimal

      public void setUnitAmountDecimal(BigDecimal unitAmountDecimal)
      Same as unit_amount, but contains a decimal value with at most 12 decimal places.
    • setUnitAmountExcludingTax

      public void setUnitAmountExcludingTax(BigDecimal unitAmountExcludingTax)
      The amount in cents (or local equivalent) representing the unit amount being credited for this line item, excluding all tax and discounts.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getId

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