public static class InvoiceCreateParams.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InvoiceCreateParams.Builder |
addAllCustomField(java.util.List<InvoiceCreateParams.CustomField> elements)
Add all elements to `customFields` list.
|
InvoiceCreateParams.Builder |
addAllDefaultTaxRate(java.util.List<java.lang.String> elements)
Add all elements to `defaultTaxRates` list.
|
InvoiceCreateParams.Builder |
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.
|
InvoiceCreateParams.Builder |
addCustomField(InvoiceCreateParams.CustomField element)
Add an element to `customFields` list.
|
InvoiceCreateParams.Builder |
addDefaultTaxRate(java.lang.String element)
Add an element to `defaultTaxRates` list.
|
InvoiceCreateParams.Builder |
addExpand(java.lang.String element)
Add an element to `expand` list.
|
InvoiceCreateParams |
build()
Finalize and obtain parameter instance from this builder.
|
InvoiceCreateParams.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
InvoiceCreateParams.Builder |
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.
|
InvoiceCreateParams.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
InvoiceCreateParams.Builder |
putMetadata(java.lang.String key,
java.lang.String value)
Add a key/value pair to `metadata` map.
|
InvoiceCreateParams.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.
|
InvoiceCreateParams.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.
|
InvoiceCreateParams.Builder |
setCollectionMethod(InvoiceCreateParams.CollectionMethod collectionMethod)
Either `charge_automatically`, or `send_invoice`.
|
InvoiceCreateParams.Builder |
setCustomer(java.lang.String customer)
The ID of the customer who will be billed.
|
InvoiceCreateParams.Builder |
setCustomFields(EmptyParam customFields)
A list of up to 4 custom fields to be displayed on the invoice.
|
InvoiceCreateParams.Builder |
setCustomFields(java.util.List<InvoiceCreateParams.CustomField> customFields)
A list of up to 4 custom fields to be displayed on the invoice.
|
InvoiceCreateParams.Builder |
setDaysUntilDue(java.lang.Long daysUntilDue)
The number of days from when the invoice is created until it is due.
|
InvoiceCreateParams.Builder |
setDefaultPaymentMethod(java.lang.String defaultPaymentMethod)
ID of the default payment method for the invoice.
|
InvoiceCreateParams.Builder |
setDefaultSource(java.lang.String defaultSource)
ID of the default payment source for the invoice.
|
InvoiceCreateParams.Builder |
setDescription(java.lang.String description)
An arbitrary string attached to the object.
|
InvoiceCreateParams.Builder |
setDueDate(java.lang.Long dueDate)
The date on which payment for this invoice is due.
|
InvoiceCreateParams.Builder |
setFooter(java.lang.String footer)
Footer to be displayed on the invoice.
|
InvoiceCreateParams.Builder |
setStatementDescriptor(java.lang.String statementDescriptor)
Extra information about a charge for the customer's credit card statement.
|
InvoiceCreateParams.Builder |
setSubscription(java.lang.String subscription)
The ID of the subscription to invoice, if any.
|
InvoiceCreateParams.Builder |
setTaxPercent(java.math.BigDecimal taxPercent)
The percent tax rate applied to the invoice, represented as a decimal number.
|
InvoiceCreateParams.Builder |
setTransferData(InvoiceCreateParams.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 InvoiceCreateParams build()
public InvoiceCreateParams.Builder setApplicationFeeAmount(java.lang.Long applicationFeeAmount)
public InvoiceCreateParams.Builder setAutoAdvance(java.lang.Boolean autoAdvance)
public InvoiceCreateParams.Builder setCollectionMethod(InvoiceCreateParams.CollectionMethod collectionMethod)
public InvoiceCreateParams.Builder addCustomField(InvoiceCreateParams.CustomField element)
InvoiceCreateParams.customFields
for the field documentation.public InvoiceCreateParams.Builder addAllCustomField(java.util.List<InvoiceCreateParams.CustomField> elements)
InvoiceCreateParams.customFields
for the field documentation.public InvoiceCreateParams.Builder setCustomFields(EmptyParam customFields)
public InvoiceCreateParams.Builder setCustomFields(java.util.List<InvoiceCreateParams.CustomField> customFields)
public InvoiceCreateParams.Builder setCustomer(java.lang.String customer)
public InvoiceCreateParams.Builder setDaysUntilDue(java.lang.Long daysUntilDue)
public InvoiceCreateParams.Builder setDefaultPaymentMethod(java.lang.String defaultPaymentMethod)
public InvoiceCreateParams.Builder setDefaultSource(java.lang.String defaultSource)
public InvoiceCreateParams.Builder addDefaultTaxRate(java.lang.String element)
InvoiceCreateParams.defaultTaxRates
for the field documentation.public InvoiceCreateParams.Builder addAllDefaultTaxRate(java.util.List<java.lang.String> elements)
InvoiceCreateParams.defaultTaxRates
for the field documentation.public InvoiceCreateParams.Builder setDescription(java.lang.String description)
public InvoiceCreateParams.Builder setDueDate(java.lang.Long dueDate)
public InvoiceCreateParams.Builder addExpand(java.lang.String element)
InvoiceCreateParams.expand
for the field documentation.public InvoiceCreateParams.Builder addAllExpand(java.util.List<java.lang.String> elements)
InvoiceCreateParams.expand
for the field documentation.public InvoiceCreateParams.Builder putExtraParam(java.lang.String key, java.lang.Object value)
InvoiceCreateParams.extraParams
for the field documentation.public InvoiceCreateParams.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
InvoiceCreateParams.extraParams
for the field documentation.public InvoiceCreateParams.Builder setFooter(java.lang.String footer)
public InvoiceCreateParams.Builder putMetadata(java.lang.String key, java.lang.String value)
InvoiceCreateParams.metadata
for the field documentation.public InvoiceCreateParams.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
InvoiceCreateParams.metadata
for the field documentation.public InvoiceCreateParams.Builder setStatementDescriptor(java.lang.String statementDescriptor)
public InvoiceCreateParams.Builder setSubscription(java.lang.String subscription)
public InvoiceCreateParams.Builder setTaxPercent(java.math.BigDecimal taxPercent)
public InvoiceCreateParams.Builder setTransferData(InvoiceCreateParams.TransferData transferData)