public static class InvoiceUpdateParams.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
InvoiceUpdateParams.Builder |
addAllCustomField(java.util.List<InvoiceUpdateParams.CustomField> elements)
Add all elements to `customFields` list.
|
InvoiceUpdateParams.Builder |
addAllDefaultTaxRate(java.util.List<java.lang.String> elements)
Add all elements to `defaultTaxRates` list.
|
InvoiceUpdateParams.Builder |
addAllDiscount(java.util.List<InvoiceUpdateParams.Discount> elements)
Add all elements to `discounts` list.
|
InvoiceUpdateParams.Builder |
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.
|
InvoiceUpdateParams.Builder |
addCustomField(InvoiceUpdateParams.CustomField element)
Add an element to `customFields` list.
|
InvoiceUpdateParams.Builder |
addDefaultTaxRate(java.lang.String element)
Add an element to `defaultTaxRates` list.
|
InvoiceUpdateParams.Builder |
addDiscount(InvoiceUpdateParams.Discount element)
Add an element to `discounts` list.
|
InvoiceUpdateParams.Builder |
addExpand(java.lang.String element)
Add an element to `expand` list.
|
InvoiceUpdateParams |
build()
Finalize and obtain parameter instance from this builder.
|
InvoiceUpdateParams.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
InvoiceUpdateParams.Builder |
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.
|
InvoiceUpdateParams.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
InvoiceUpdateParams.Builder |
putMetadata(java.lang.String key,
java.lang.String value)
Add a key/value pair to `metadata` map.
|
InvoiceUpdateParams.Builder |
setApplicationFeeAmount(java.lang.Long applicationFeeAmount)
A fee in %s that will be applied to the invoice and transferred to the application owner's
Stripe account.
|
InvoiceUpdateParams.Builder |
setAutoAdvance(java.lang.Boolean autoAdvance)
Controls whether Stripe will perform automatic
collection of the invoice.
|
InvoiceUpdateParams.Builder |
setCollectionMethod(InvoiceUpdateParams.CollectionMethod collectionMethod)
Either
charge_automatically or send_invoice. |
InvoiceUpdateParams.Builder |
setCustomFields(EmptyParam customFields)
A list of up to 4 custom fields to be displayed on the invoice.
|
InvoiceUpdateParams.Builder |
setCustomFields(java.util.List<InvoiceUpdateParams.CustomField> customFields)
A list of up to 4 custom fields to be displayed on the invoice.
|
InvoiceUpdateParams.Builder |
setDaysUntilDue(java.lang.Long daysUntilDue)
The number of days from which the invoice is created until it is due.
|
InvoiceUpdateParams.Builder |
setDefaultPaymentMethod(EmptyParam defaultPaymentMethod)
ID of the default payment method for the invoice.
|
InvoiceUpdateParams.Builder |
setDefaultPaymentMethod(java.lang.String defaultPaymentMethod)
ID of the default payment method for the invoice.
|
InvoiceUpdateParams.Builder |
setDefaultSource(EmptyParam defaultSource)
ID of the default payment source for the invoice.
|
InvoiceUpdateParams.Builder |
setDefaultSource(java.lang.String defaultSource)
ID of the default payment source for the invoice.
|
InvoiceUpdateParams.Builder |
setDefaultTaxRates(EmptyParam defaultTaxRates)
The tax rates that will apply to any line item that does not have
tax_rates set. |
InvoiceUpdateParams.Builder |
setDefaultTaxRates(java.util.List<java.lang.String> defaultTaxRates)
The tax rates that will apply to any line item that does not have
tax_rates set. |
InvoiceUpdateParams.Builder |
setDescription(EmptyParam description)
An arbitrary string attached to the object.
|
InvoiceUpdateParams.Builder |
setDescription(java.lang.String description)
An arbitrary string attached to the object.
|
InvoiceUpdateParams.Builder |
setDiscounts(EmptyParam discounts)
The discounts that will apply to the invoice.
|
InvoiceUpdateParams.Builder |
setDiscounts(java.util.List<InvoiceUpdateParams.Discount> discounts)
The discounts that will apply to the invoice.
|
InvoiceUpdateParams.Builder |
setDueDate(java.lang.Long dueDate)
The date on which payment for this invoice is due.
|
InvoiceUpdateParams.Builder |
setFooter(EmptyParam footer)
Footer to be displayed on the invoice.
|
InvoiceUpdateParams.Builder |
setFooter(java.lang.String footer)
Footer to be displayed on the invoice.
|
InvoiceUpdateParams.Builder |
setMetadata(EmptyParam metadata)
Set of key-value pairs that you can attach
to an object.
|
InvoiceUpdateParams.Builder |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach
to an object.
|
InvoiceUpdateParams.Builder |
setStatementDescriptor(EmptyParam statementDescriptor)
Extra information about a charge for the customer's credit card statement.
|
InvoiceUpdateParams.Builder |
setStatementDescriptor(java.lang.String statementDescriptor)
Extra information about a charge for the customer's credit card statement.
|
InvoiceUpdateParams.Builder |
setTaxPercent(java.math.BigDecimal taxPercent)
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.
|
InvoiceUpdateParams.Builder |
setTaxPercent(EmptyParam taxPercent)
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.
|
InvoiceUpdateParams.Builder |
setTransferData(EmptyParam transferData)
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.
|
InvoiceUpdateParams.Builder |
setTransferData(InvoiceUpdateParams.TransferData transferData)
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.
|
public InvoiceUpdateParams build()
public InvoiceUpdateParams.Builder setApplicationFeeAmount(java.lang.Long applicationFeeAmount)
public InvoiceUpdateParams.Builder setAutoAdvance(java.lang.Boolean autoAdvance)
public InvoiceUpdateParams.Builder setCollectionMethod(InvoiceUpdateParams.CollectionMethod collectionMethod)
charge_automatically or send_invoice. This field can be updated only
on draft invoices.public InvoiceUpdateParams.Builder addCustomField(InvoiceUpdateParams.CustomField element)
InvoiceUpdateParams.customFields for the field documentation.public InvoiceUpdateParams.Builder addAllCustomField(java.util.List<InvoiceUpdateParams.CustomField> elements)
InvoiceUpdateParams.customFields for the field documentation.public InvoiceUpdateParams.Builder setCustomFields(EmptyParam customFields)
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 InvoiceUpdateParams.Builder setCustomFields(java.util.List<InvoiceUpdateParams.CustomField> customFields)
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 InvoiceUpdateParams.Builder setDaysUntilDue(java.lang.Long daysUntilDue)
collection_method=send_invoice. This field can only be updated on draft
invoices.public InvoiceUpdateParams.Builder setDefaultPaymentMethod(java.lang.String defaultPaymentMethod)
public InvoiceUpdateParams.Builder setDefaultPaymentMethod(EmptyParam defaultPaymentMethod)
public InvoiceUpdateParams.Builder setDefaultSource(java.lang.String defaultSource)
public InvoiceUpdateParams.Builder setDefaultSource(EmptyParam defaultSource)
public InvoiceUpdateParams.Builder addDefaultTaxRate(java.lang.String element)
InvoiceUpdateParams.defaultTaxRates for the field documentation.public InvoiceUpdateParams.Builder addAllDefaultTaxRate(java.util.List<java.lang.String> elements)
InvoiceUpdateParams.defaultTaxRates for the field documentation.public InvoiceUpdateParams.Builder setDefaultTaxRates(EmptyParam defaultTaxRates)
tax_rates set. Pass
an empty string to remove previously-defined tax rates.public InvoiceUpdateParams.Builder setDefaultTaxRates(java.util.List<java.lang.String> defaultTaxRates)
tax_rates set. Pass
an empty string to remove previously-defined tax rates.public InvoiceUpdateParams.Builder setDescription(java.lang.String description)
public InvoiceUpdateParams.Builder setDescription(EmptyParam description)
public InvoiceUpdateParams.Builder addDiscount(InvoiceUpdateParams.Discount element)
InvoiceUpdateParams.discounts for the field documentation.public InvoiceUpdateParams.Builder addAllDiscount(java.util.List<InvoiceUpdateParams.Discount> elements)
InvoiceUpdateParams.discounts for the field documentation.public InvoiceUpdateParams.Builder setDiscounts(EmptyParam discounts)
public InvoiceUpdateParams.Builder setDiscounts(java.util.List<InvoiceUpdateParams.Discount> discounts)
public InvoiceUpdateParams.Builder setDueDate(java.lang.Long dueDate)
collection_method=send_invoice. This field can only be updated on draft invoices.public InvoiceUpdateParams.Builder addExpand(java.lang.String element)
InvoiceUpdateParams.expand for the field documentation.public InvoiceUpdateParams.Builder addAllExpand(java.util.List<java.lang.String> elements)
InvoiceUpdateParams.expand for the field documentation.public InvoiceUpdateParams.Builder putExtraParam(java.lang.String key, java.lang.Object value)
InvoiceUpdateParams.extraParams for the field documentation.public InvoiceUpdateParams.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
InvoiceUpdateParams.extraParams for the field documentation.public InvoiceUpdateParams.Builder setFooter(java.lang.String footer)
public InvoiceUpdateParams.Builder setFooter(EmptyParam footer)
public InvoiceUpdateParams.Builder putMetadata(java.lang.String key, java.lang.String value)
InvoiceUpdateParams.metadata for the field documentation.public InvoiceUpdateParams.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
InvoiceUpdateParams.metadata for the field documentation.public InvoiceUpdateParams.Builder setMetadata(EmptyParam metadata)
metadata.public InvoiceUpdateParams.Builder setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
metadata.public InvoiceUpdateParams.Builder setStatementDescriptor(java.lang.String statementDescriptor)
statement_descriptor will be set to the first subscription item's product's statement_descriptor.public InvoiceUpdateParams.Builder setStatementDescriptor(EmptyParam statementDescriptor)
statement_descriptor will be set to the first subscription item's product's statement_descriptor.public InvoiceUpdateParams.Builder setTaxPercent(java.math.BigDecimal taxPercent)
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 InvoiceUpdateParams.Builder setTaxPercent(EmptyParam taxPercent)
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 InvoiceUpdateParams.Builder setTransferData(InvoiceUpdateParams.TransferData transferData)
public InvoiceUpdateParams.Builder setTransferData(EmptyParam transferData)