public static class InvoiceUpcomingParams.InvoiceItem
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
InvoiceUpcomingParams.InvoiceItem.Builder |
static class |
InvoiceUpcomingParams.InvoiceItem.Period |
Modifier and Type | Method and Description |
---|---|
static InvoiceUpcomingParams.InvoiceItem.Builder |
builder() |
java.lang.Long |
getAmount()
The integer amount in %s of previewed invoice item.
|
java.lang.String |
getCurrency()
Three-letter ISO currency
code, in lowercase.
|
java.lang.String |
getDescription()
An arbitrary string which you can attach to the invoice item.
|
java.lang.Boolean |
getDiscountable()
Explicitly controls whether discounts apply to this invoice item.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
java.lang.String |
getInvoiceitem()
The ID of the invoice item to update in preview.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
InvoiceUpcomingParams.InvoiceItem.Period |
getPeriod()
The period associated with this invoice item.
|
java.lang.Long |
getQuantity()
Non-negative integer.
|
java.lang.Object |
getTaxRates() |
java.lang.Long |
getUnitAmount()
The integer unit amount in %s of the charge to be applied to the upcoming
invoice.
|
java.math.BigDecimal |
getUnitAmountDecimal()
Same as
unit_amount , but accepts a decimal string with at most 12 decimal places. |
public static InvoiceUpcomingParams.InvoiceItem.Builder builder()
public java.lang.Long getAmount()
public java.lang.String getCurrency()
public java.lang.String getDescription()
public java.lang.Boolean getDiscountable()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@SerializedName
value. Instead, each
key/value pair is serialized as if the key is a root-level field (serialized) name in this
param object. Effectively, this map is flattened to its parent instance.public java.lang.String getInvoiceitem()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
metadata
.public InvoiceUpcomingParams.InvoiceItem.Period getPeriod()
public java.lang.Long getQuantity()
public java.lang.Object getTaxRates()
public java.lang.Long getUnitAmount()
public java.math.BigDecimal getUnitAmountDecimal()
unit_amount
, but accepts a decimal string with at most 12 decimal places.
Only one of unit_amount
and unit_amount_decimal
can be set.