public static class InvoiceUpcomingParams.InvoiceItem
extends java.lang.Object
InvoiceUpcomingParams.Discount.extraParams for the field documentation.| Modifier and Type | Class and Description |
|---|---|
static class |
InvoiceUpcomingParams.InvoiceItem.Builder |
static class |
InvoiceUpcomingParams.InvoiceItem.Discount |
static class |
InvoiceUpcomingParams.InvoiceItem.Period
Add all map key/value pairs to `extraParams` map.
|
static class |
InvoiceUpcomingParams.InvoiceItem.PriceData
The start of the 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.lang.Object |
getDiscounts()
The coupons to redeem into discounts for the invoice item in the preview.
|
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.lang.Object |
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.String |
getPrice()
The ID of the price object.
|
InvoiceUpcomingParams.InvoiceItem.PriceData |
getPriceData()
Data used to generate a new Price object
inline.
|
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.lang.Object getDiscounts()
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.lang.Object getMetadata()
metadata.public InvoiceUpcomingParams.InvoiceItem.Period getPeriod()
public java.lang.String getPrice()
public InvoiceUpcomingParams.InvoiceItem.PriceData getPriceData()
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.