Package com.stripe.model
Class CreditNoteLineItem
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.CreditNoteLineItem
- All Implemented Interfaces:
HasId
,StripeObjectInterface
The credit note line item object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about DiscountAmount, please refer to the API Reference.static class
For more details about PretaxCreditAmount, please refer to the API Reference.static class
For more details about Tax, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.Description of the item being credited.The integer amount in cents (or local equivalent) representing the discount being credited for this line item.The amount of discount calculated per discount for this line item.getId()
Unique identifier for the object.ID of the invoice line item being credited.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.The pretax credit amounts (ex: discount, credit grants, etc) for this line item.The number of units of product being credited.getTaxes()
The tax information of the line item.The tax rates which apply to the line item.getType()
The type of the credit note line item, one ofinvoice_line_item
orcustom_line_item
.The cost of each unit of product being credited.Same asunit_amount
, but contains a decimal value with at most 12 decimal places.int
hashCode()
void
The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.void
setDescription
(String description) Description of the item being credited.void
setDiscountAmount
(Long discountAmount) The integer amount in cents (or local equivalent) representing the discount being credited for this line item.void
setDiscountAmounts
(List<CreditNoteLineItem.DiscountAmount> discountAmounts) The amount of discount calculated per discount for this line item.void
Unique identifier for the object.void
setInvoiceLineItem
(String invoiceLineItem) ID of the invoice line item being credited.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setPretaxCreditAmounts
(List<CreditNoteLineItem.PretaxCreditAmount> pretaxCreditAmounts) The pretax credit amounts (ex: discount, credit grants, etc) for this line item.void
setQuantity
(Long quantity) The number of units of product being credited.void
setTaxes
(List<CreditNoteLineItem.Tax> taxes) The tax information of the line item.void
setTaxRates
(List<TaxRate> taxRates) The tax rates which apply to the line item.void
The type of the credit note line item, one ofinvoice_line_item
orcustom_line_item
.void
setUnitAmount
(Long unitAmount) The cost of each unit of product being credited.void
setUnitAmountDecimal
(BigDecimal unitAmountDecimal) Same asunit_amount
, but contains a decimal value with at most 12 decimal places.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
CreditNoteLineItem
public CreditNoteLineItem()
-
-
Method Details
-
getAmount
The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts. -
getDescription
Description of the item being credited. -
getDiscountAmount
The integer amount in cents (or local equivalent) representing the discount being credited for this line item. -
getDiscountAmounts
The amount of discount calculated per discount for this line item. -
getInvoiceLineItem
ID of the invoice line item being credited. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
credit_note_line_item
. -
getPretaxCreditAmounts
The pretax credit amounts (ex: discount, credit grants, etc) for this line item. -
getQuantity
The number of units of product being credited. -
getTaxRates
The tax rates which apply to the line item. -
getTaxes
The tax information of the line item. -
getType
The type of the credit note line item, one ofinvoice_line_item
orcustom_line_item
. When the type isinvoice_line_item
there is an additionalinvoice_line_item
property on the resource the value of which is the id of the credited line item on the invoice. -
getUnitAmount
The cost of each unit of product being credited. -
getUnitAmountDecimal
Same asunit_amount
, but contains a decimal value with at most 12 decimal places. -
setAmount
The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts. -
setDescription
Description of the item being credited. -
setDiscountAmount
The integer amount in cents (or local equivalent) representing the discount being credited for this line item. -
setDiscountAmounts
The amount of discount calculated per discount for this line item. -
setId
Unique identifier for the object. -
setInvoiceLineItem
ID of the invoice line item being credited. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
credit_note_line_item
. -
setPretaxCreditAmounts
The pretax credit amounts (ex: discount, credit grants, etc) for this line item. -
setQuantity
The number of units of product being credited. -
setTaxRates
The tax rates which apply to the line item. -
setTaxes
The tax information of the line item. -
setType
The type of the credit note line item, one ofinvoice_line_item
orcustom_line_item
. When the type isinvoice_line_item
there is an additionalinvoice_line_item
property on the resource the value of which is the id of the credited line item on the invoice. -
setUnitAmount
The cost of each unit of product being credited. -
setUnitAmountDecimal
Same asunit_amount
, but contains a decimal value with at most 12 decimal places. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-