public class InvoiceUpdateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
InvoiceUpdateParams.Builder |
static class |
InvoiceUpdateParams.CollectionMethod
Add all map key/value pairs to `extraParams` map.
|
static class |
InvoiceUpdateParams.CustomField |
static class |
InvoiceUpdateParams.TransferData
The value of the custom field.
|
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static InvoiceUpdateParams.Builder |
builder() |
java.lang.Long |
getApplicationFeeAmount()
A fee in %s that will be applied to the invoice and transferred to the application owner's
Stripe account.
|
java.lang.Boolean |
getAutoAdvance()
Controls whether Stripe will perform automatic collection
of the invoice.
|
InvoiceUpdateParams.CollectionMethod |
getCollectionMethod()
Either
charge_automatically or send_invoice . |
java.lang.Object |
getCustomFields()
A list of up to 4 custom fields to be displayed on the invoice.
|
java.lang.Long |
getDaysUntilDue()
The number of days from which the invoice is created until it is due.
|
java.lang.Object |
getDefaultPaymentMethod()
ID of the default payment method for the invoice.
|
java.lang.Object |
getDefaultSource()
ID of the default payment source for the invoice.
|
java.lang.Object |
getDefaultTaxRates()
The tax rates that will apply to any line item that does not have
tax_rates set. |
java.lang.Object |
getDescription()
An arbitrary string attached to the object.
|
java.lang.Long |
getDueDate()
The date on which payment for this invoice is due.
|
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 |
getFooter()
Footer to be displayed on the invoice.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.Object |
getStatementDescriptor()
Extra information about a charge for the customer's credit card statement.
|
java.lang.Object |
getTaxPercent()
The percent tax rate applied to the invoice, represented as a non-negative decimal number (with
at most four decimal places) between 0 and 100.
|
java.lang.Object |
getTransferData()
If specified, the funds from the invoice will be transferred to the destination and the ID of
the resulting transfer will be found on the invoice's charge.
|
toMap
public static InvoiceUpdateParams.Builder builder()
public java.lang.Long getApplicationFeeAmount()
public java.lang.Boolean getAutoAdvance()
public InvoiceUpdateParams.CollectionMethod getCollectionMethod()
charge_automatically
or send_invoice
. This field can be updated only on
draft
invoices.public java.lang.Object getCustomFields()
custom_fields
is specified, the list specified will replace the existing custom field list on
this invoice. Pass an empty string to remove previously-defined fields.public java.lang.Long getDaysUntilDue()
collection_method=send_invoice
. This field can only be updated on draft
invoices.public java.lang.Object getDefaultPaymentMethod()
public java.lang.Object getDefaultSource()
public java.lang.Object getDefaultTaxRates()
tax_rates
set. Pass
an empty string to remove previously-defined tax rates.public java.lang.Object getDescription()
public java.lang.Long getDueDate()
collection_method=send_invoice
. This field can only be updated on draft
invoices.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 getFooter()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
metadata
.public java.lang.Object getStatementDescriptor()
statement_descriptor
will be set to the first subscription item's product's statement_descriptor
.public java.lang.Object getTaxPercent()
draft
invoices. This field has been
deprecated and will be removed in a future API version, for further information view the migration docs for tax_rates
.public java.lang.Object getTransferData()