public class CreditNoteLineItem extends StripeObject implements HasId
Modifier and Type | Class and Description |
---|---|
static class |
CreditNoteLineItem.DiscountAmount |
PRETTY_PRINT_GSON
Constructor and Description |
---|
CreditNoteLineItem() |
Modifier and Type | Method and 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. |
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.Long getAmount()
public java.lang.String getDescription()
public java.lang.Long getDiscountAmount()
public java.util.List<CreditNoteLineItem.DiscountAmount> getDiscountAmounts()
public java.lang.String getInvoiceLineItem()
public java.lang.Boolean getLivemode()
true
if the object exists in live mode or the value false
if the
object exists in test mode.public java.lang.String getObject()
Equal to credit_note_line_item
.
public java.lang.Long getQuantity()
public java.util.List<CreditNote.TaxAmount> getTaxAmounts()
public java.util.List<TaxRate> getTaxRates()
public java.lang.String getType()
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.public java.lang.Long getUnitAmount()
public java.math.BigDecimal getUnitAmountDecimal()
unit_amount
, but contains a decimal value with at most 12 decimal places.public void setAmount(java.lang.Long amount)
public void setDescription(java.lang.String description)
public void setDiscountAmount(java.lang.Long discountAmount)
public void setDiscountAmounts(java.util.List<CreditNoteLineItem.DiscountAmount> discountAmounts)
public void setId(java.lang.String id)
public void setInvoiceLineItem(java.lang.String invoiceLineItem)
public void setLivemode(java.lang.Boolean livemode)
true
if the object exists in live mode or the value false
if the
object exists in test mode.public void setObject(java.lang.String object)
Equal to credit_note_line_item
.
public void setQuantity(java.lang.Long quantity)
public void setTaxAmounts(java.util.List<CreditNote.TaxAmount> taxAmounts)
public void setTaxRates(java.util.List<TaxRate> taxRates)
public void setType(java.lang.String type)
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.public void setUnitAmount(java.lang.Long unitAmount)
public void setUnitAmountDecimal(java.math.BigDecimal unitAmountDecimal)
unit_amount
, but contains a decimal value with at most 12 decimal places.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object