public class InvoiceItemUpdateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
InvoiceItemUpdateParams.Builder |
static class |
InvoiceItemUpdateParams.Discount |
static class |
InvoiceItemUpdateParams.Period
Add all map key/value pairs to `extraParams` map.
|
static class |
InvoiceItemUpdateParams.PriceData
The start of the period.
|
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static InvoiceItemUpdateParams.Builder |
builder() |
java.lang.Long |
getAmount()
The integer amount in %s of the charge to be applied to the upcoming invoice.
|
java.lang.Object |
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.lang.Object |
getDiscounts()
The coupons & existing discounts which apply to the invoice item or invoice line 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.Object |
getMetadata()
Set of key-value pairs that you can attach
to an object.
|
InvoiceItemUpdateParams.Period |
getPeriod()
The period associated with this invoice item.
|
java.lang.Object |
getPrice()
The ID of the price object.
|
InvoiceItemUpdateParams.PriceData |
getPriceData()
Data used to generate a new Price object
inline.
|
java.lang.Long |
getQuantity()
Non-negative integer.
|
java.lang.Object |
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.lang.Object |
getUnitAmountDecimal()
Same as
unit_amount , but accepts a decimal value with at most 12 decimal places. |
toMap
public static InvoiceItemUpdateParams.Builder builder()
public java.lang.Long getAmount()
public java.lang.Object getDescription()
public java.lang.Boolean getDiscountable()
public java.lang.Object getDiscounts()
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.Object getMetadata()
metadata
.public InvoiceItemUpdateParams.Period getPeriod()
public java.lang.Object getPrice()
public InvoiceItemUpdateParams.PriceData getPriceData()
public java.lang.Long getQuantity()
public java.lang.Object getTaxRates()
default_tax_rates
on the
invoice do not apply to this invoice item. Pass an empty string to remove previously-defined
tax rates.public java.lang.Long getUnitAmount()
public java.lang.Object 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.