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 classstatic class -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe 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 valuetrueif the object exists in live mode or the valuefalseif 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_itemorcustom_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.inthashCode()voidThe integer amount in cents (or local equivalent) representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.voidsetAmountExcludingTax(Long amountExcludingTax) The integer amount in cents (or local equivalent) representing the amount being credited for this line item, excluding all tax and discounts.voidsetDescription(String description) Description of the item being credited.voidsetDiscountAmount(Long discountAmount) The integer amount in cents (or local equivalent) representing the discount being credited for this line item.voidsetDiscountAmounts(List<CreditNoteLineItem.DiscountAmount> discountAmounts) The amount of discount calculated per discount for this line item.voidUnique identifier for the object.voidsetInvoiceLineItem(String invoiceLineItem) ID of the invoice line item being credited.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidsetQuantity(Long quantity) The number of units of product being credited.voidsetTaxAmounts(List<CreditNoteLineItem.TaxAmount> taxAmounts) The amount of tax calculated per tax rate for this line item.voidsetTaxRates(List<TaxRate> taxRates) The tax rates which apply to the line item.voidThe type of the credit note line item, one ofinvoice_line_itemorcustom_line_item.voidsetUnitAmount(Long unitAmount) The cost of each unit of product being credited.voidsetUnitAmountDecimal(BigDecimal unitAmountDecimal) Same asunit_amount, but contains a decimal value with at most 12 decimal places.voidsetUnitAmountExcludingTax(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 valuetrueif the object exists in live mode or the valuefalseif 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_itemorcustom_line_item. When the type isinvoice_line_itemthere is an additionalinvoice_line_itemproperty 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 valuetrueif the object exists in live mode or the valuefalseif 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_itemorcustom_line_item. When the type isinvoice_line_itemthere is an additionalinvoice_line_itemproperty 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.
-