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,
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.lang.Object |
getMetadata()
Set of key-value pairs that you can attach to an 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()
amount
will reduce the amount_due
on the invoice.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.lang.Object getMetadata()
metadata
.public InvoiceItemCreateParams.Period getPeriod()
public java.lang.Long getQuantity()
public java.lang.String getSubscription()
public java.util.List<java.lang.String> getTaxRates()
default_tax_rates
on the
invoice do not apply to this invoice item.public java.lang.Long getUnitAmount()
unit_amount
will be multiplied by the quantity to get the full amount.
Passing in a negative unit_amount
will reduce the amount_due
on the invoice.public java.math.BigDecimal getUnitAmountDecimal()
unit_amount
, but accepts a decimal value with at most 12 decimal places. Only
one of unit_amount
and unit_amount_decimal
can be set.