public static class InvoiceUpdateParams.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InvoiceUpdateParams.Builder |
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` 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](https://stripe.com/docs/billing/invoices/workflow/#auto_advance) 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(java.lang.String defaultPaymentMethod)
ID of the default payment method 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(java.lang.String description) |
InvoiceUpdateParams.Builder |
setDueDate(java.lang.Long dueDate)
The date on which payment for this invoice is due.
|
InvoiceUpdateParams.Builder |
setFooter(java.lang.String footer)
Footer to be displayed on the invoice.
|
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)
public InvoiceUpdateParams.Builder setCustomFields(EmptyParam customFields)
public InvoiceUpdateParams.Builder setCustomFields(java.util.List<InvoiceUpdateParams.CustomField> customFields)
public InvoiceUpdateParams.Builder setDaysUntilDue(java.lang.Long daysUntilDue)
public InvoiceUpdateParams.Builder setDefaultPaymentMethod(java.lang.String defaultPaymentMethod)
public InvoiceUpdateParams.Builder setDefaultSource(java.lang.String defaultSource)
public InvoiceUpdateParams.Builder setDefaultTaxRates(EmptyParam defaultTaxRates)
public InvoiceUpdateParams.Builder setDefaultTaxRates(java.util.List<java.lang.String> defaultTaxRates)
public InvoiceUpdateParams.Builder setDescription(java.lang.String description)
public InvoiceUpdateParams.Builder setDueDate(java.lang.Long dueDate)
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 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 setStatementDescriptor(java.lang.String statementDescriptor)
public InvoiceUpdateParams.Builder setTaxPercent(EmptyParam taxPercent)
public InvoiceUpdateParams.Builder setTaxPercent(java.math.BigDecimal taxPercent)
public InvoiceUpdateParams.Builder setTransferData(InvoiceUpdateParams.TransferData transferData)
public InvoiceUpdateParams.Builder setTransferData(EmptyParam transferData)