public class InvoiceItemCreateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
InvoiceItemCreateParams.Builder |
static class |
InvoiceItemCreateParams.Period |
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static InvoiceItemCreateParams.Builder |
builder() |
java.lang.Long |
getAmount()
The integer amount in **%s** of the charge to be applied to the upcoming invoice.
|
java.lang.String |
getCurrency()
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
java.lang.String |
getCustomer()
The ID of the customer who will be billed when this invoice item is billed.
|
java.lang.String |
getDescription()
An arbitrary string which you can attach to the invoice item.
|
java.lang.Boolean |
getDiscountable()
Controls whether discounts apply to this invoice item.
|
java.util.List<java.lang.String> |
getExpand()
Specifies which fields in the response should be expanded.
|
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 |
getInvoice()
The ID of an existing invoice to add this invoice item to.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
A set of key-value pairs that you can attach to an invoice item object.
|
InvoiceItemCreateParams.Period |
getPeriod()
The period associated with this invoice item.
|
java.lang.Long |
getQuantity()
Non-negative integer.
|
java.lang.String |
getSubscription()
The ID of a subscription to add this invoice item to.
|
java.util.List<java.lang.String> |
getTaxRates()
The tax rates which apply to the invoice item.
|
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 value with at most 12 decimal places.
|
toMap
public static InvoiceItemCreateParams.Builder builder()
public java.lang.Long getAmount()
public java.lang.String getCurrency()
public java.lang.String getCustomer()
public java.lang.String getDescription()
public java.lang.Boolean getDiscountable()
public java.util.List<java.lang.String> getExpand()
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 getInvoice()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
public InvoiceItemCreateParams.Period getPeriod()
public java.lang.Long getQuantity()
public java.lang.String getSubscription()
public java.util.List<java.lang.String> getTaxRates()
public java.lang.Long getUnitAmount()
public java.math.BigDecimal getUnitAmountDecimal()