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
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
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.The integer amount in cents (or local equivalent) representing the amount being credited for this line item, excluding all 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 number of units of product being credited.The amount of tax calculated per tax rate for this 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.The amount in cents (or local equivalent) representing the unit amount being credited for this line item, excluding all tax and discounts.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
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.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
setQuantity
(Long quantity) The number of units of product being credited.void
setTaxAmounts
(List<CreditNoteLineItem.TaxAmount> taxAmounts) The amount of tax calculated per tax rate for this 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.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.Methods inherited from class com.stripe.model.StripeObject
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. -
getAmountExcludingTax
The integer amount in cents (or local equivalent) representing the amount being credited for this line item, excluding all 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
. -
getQuantity
The number of units of product being credited. -
getTaxAmounts
The amount of tax calculated per tax rate for this line item. -
getTaxRates
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
. 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. -
getUnitAmountExcludingTax
The amount in cents (or local equivalent) representing the unit amount being credited for this line item, excluding all tax and discounts. -
setAmount
The integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts. -
setAmountExcludingTax
The integer amount in cents (or local equivalent) representing the amount being credited for this line item, excluding all 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
. -
setQuantity
The number of units of product being credited. -
setTaxAmounts
The amount of tax calculated per tax rate for this line item. -
setTaxRates
The tax rates which apply to 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. -
setUnitAmountExcludingTax
The amount in cents (or local equivalent) representing the unit amount being credited for this line item, excluding all tax and discounts. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-