Package com.stripe.param
Class InvoiceUpdateParams.Builder
java.lang.Object
com.stripe.param.InvoiceUpdateParams.Builder
- Enclosing class:
- InvoiceUpdateParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAccountTaxId
(String element) Add an element to `accountTaxIds` list.addAllAccountTaxId
(List<String> elements) Add all elements to `accountTaxIds` list.addAllCustomField
(List<InvoiceUpdateParams.CustomField> elements) Add all elements to `customFields` list.addAllDefaultTaxRate
(List<String> elements) Add all elements to `defaultTaxRates` list.addAllDiscount
(List<InvoiceUpdateParams.Discount> elements) Add all elements to `discounts` list.addAllExpand
(List<String> elements) Add all elements to `expand` list.Add an element to `customFields` list.addDefaultTaxRate
(String element) Add an element to `defaultTaxRates` list.addDiscount
(InvoiceUpdateParams.Discount element) Add an element to `discounts` list.Add an element to `expand` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata
(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.setAccountTaxIds
(EmptyParam accountTaxIds) The account tax IDs associated with the invoice.setAccountTaxIds
(List<String> accountTaxIds) The account tax IDs associated with the invoice.setApplicationFeeAmount
(Long applicationFeeAmount) A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account.setAutoAdvance
(Boolean autoAdvance) Controls whether Stripe performs automatic collection of the invoice.setAutomaticTax
(InvoiceUpdateParams.AutomaticTax automaticTax) Settings for automatic tax lookup for this invoice.setCollectionMethod
(InvoiceUpdateParams.CollectionMethod collectionMethod) Eithercharge_automatically
orsend_invoice
.setCustomFields
(EmptyParam customFields) A list of up to 4 custom fields to be displayed on the invoice.setCustomFields
(List<InvoiceUpdateParams.CustomField> customFields) A list of up to 4 custom fields to be displayed on the invoice.setDaysUntilDue
(Long daysUntilDue) The number of days from which the invoice is created until it is due.setDefaultPaymentMethod
(EmptyParam defaultPaymentMethod) ID of the default payment method for the invoice.setDefaultPaymentMethod
(String defaultPaymentMethod) ID of the default payment method for the invoice.setDefaultSource
(EmptyParam defaultSource) ID of the default payment source for the invoice.setDefaultSource
(String defaultSource) ID of the default payment source for the invoice.setDefaultTaxRates
(EmptyParam defaultTaxRates) The tax rates that will apply to any line item that does not havetax_rates
set.setDefaultTaxRates
(List<String> defaultTaxRates) The tax rates that will apply to any line item that does not havetax_rates
set.setDescription
(EmptyParam description) An arbitrary string attached to the object.setDescription
(String description) An arbitrary string attached to the object.setDiscounts
(EmptyParam discounts) The discounts that will apply to the invoice.setDiscounts
(List<InvoiceUpdateParams.Discount> discounts) The discounts that will apply to the invoice.setDueDate
(Long dueDate) The date on which payment for this invoice is due.setEffectiveAt
(EmptyParam effectiveAt) The date when this invoice is in effect.setEffectiveAt
(Long effectiveAt) The date when this invoice is in effect.setFooter
(EmptyParam footer) Footer to be displayed on the invoice.Footer to be displayed on the invoice.setIssuer
(InvoiceUpdateParams.Issuer issuer) The connected account that issues the invoice.setMetadata
(EmptyParam metadata) Set of key-value pairs that you can attach to an object.setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.setNumber
(EmptyParam number) Set the number for this invoice.Set the number for this invoice.setOnBehalfOf
(EmptyParam onBehalfOf) The account (if any) for which the funds of the invoice payment are intended.setOnBehalfOf
(String onBehalfOf) The account (if any) for which the funds of the invoice payment are intended.setPaymentSettings
(InvoiceUpdateParams.PaymentSettings paymentSettings) Configuration settings for the PaymentIntent that is generated when the invoice is finalized.setRendering
(InvoiceUpdateParams.Rendering rendering) The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.setShippingCost
(EmptyParam shippingCost) Settings for the cost of shipping for this invoice.setShippingCost
(InvoiceUpdateParams.ShippingCost shippingCost) Settings for the cost of shipping for this invoice.setShippingDetails
(EmptyParam shippingDetails) Shipping details for the invoice.setShippingDetails
(InvoiceUpdateParams.ShippingDetails shippingDetails) Shipping details for the invoice.setStatementDescriptor
(EmptyParam statementDescriptor) Extra information about a charge for the customer's credit card statement.setStatementDescriptor
(String statementDescriptor) Extra information about a charge for the customer's credit card statement.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.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.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addAccountTaxId
Add an element to `accountTaxIds` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpdateParams.accountTaxIds
for the field documentation. -
addAllAccountTaxId
Add all elements to `accountTaxIds` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpdateParams.accountTaxIds
for the field documentation. -
setAccountTaxIds
The account tax IDs associated with the invoice. Only editable when the invoice is a draft. -
setAccountTaxIds
The account tax IDs associated with the invoice. Only editable when the invoice is a draft. -
setApplicationFeeAmount
A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees documentation. -
setAutoAdvance
Controls whether Stripe performs automatic collection of the invoice. -
setAutomaticTax
Settings for automatic tax lookup for this invoice. -
setCollectionMethod
public InvoiceUpdateParams.Builder setCollectionMethod(InvoiceUpdateParams.CollectionMethod collectionMethod) Eithercharge_automatically
orsend_invoice
. This field can be updated only ondraft
invoices. -
addCustomField
Add an element to `customFields` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpdateParams.customFields
for the field documentation. -
addAllCustomField
public InvoiceUpdateParams.Builder addAllCustomField(List<InvoiceUpdateParams.CustomField> elements) Add all elements to `customFields` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpdateParams.customFields
for the field documentation. -
setCustomFields
A list of up to 4 custom fields to be displayed on the invoice. If a value forcustom_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. -
setCustomFields
public InvoiceUpdateParams.Builder setCustomFields(List<InvoiceUpdateParams.CustomField> customFields) A list of up to 4 custom fields to be displayed on the invoice. If a value forcustom_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. -
setDaysUntilDue
The number of days from which the invoice is created until it is due. Only valid for invoices wherecollection_method=send_invoice
. This field can only be updated ondraft
invoices. -
setDefaultPaymentMethod
ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings. -
setDefaultPaymentMethod
ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings. -
setDefaultSource
ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source. -
setDefaultSource
ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source. -
addDefaultTaxRate
Add an element to `defaultTaxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpdateParams.defaultTaxRates
for the field documentation. -
addAllDefaultTaxRate
Add all elements to `defaultTaxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpdateParams.defaultTaxRates
for the field documentation. -
setDefaultTaxRates
The tax rates that will apply to any line item that does not havetax_rates
set. Pass an empty string to remove previously-defined tax rates. -
setDefaultTaxRates
The tax rates that will apply to any line item that does not havetax_rates
set. Pass an empty string to remove previously-defined tax rates. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard. -
addDiscount
Add an element to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpdateParams.discounts
for the field documentation. -
addAllDiscount
Add all elements to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpdateParams.discounts
for the field documentation. -
setDiscounts
The discounts that will apply to the invoice. Pass an empty string to remove previously-defined discounts. -
setDiscounts
The discounts that will apply to the invoice. Pass an empty string to remove previously-defined discounts. -
setDueDate
The date on which payment for this invoice is due. Only valid for invoices wherecollection_method=send_invoice
. This field can only be updated ondraft
invoices. -
setEffectiveAt
The date when this invoice is in effect. Same asfinalized_at
unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt. -
setEffectiveAt
The date when this invoice is in effect. Same asfinalized_at
unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpdateParams.expand
for the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpdateParams.expand
for the field documentation. -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeInvoiceUpdateParams.extraParams
for the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeInvoiceUpdateParams.extraParams
for the field documentation. -
setIssuer
The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. -
putMetadata
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeInvoiceUpdateParams.metadata
for the field documentation. -
putAllMetadata
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeInvoiceUpdateParams.metadata
for the field documentation. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
setNumber
Set the number for this invoice. If no number is present then a number will be assigned automatically when the invoice is finalized. In many markets, regulations require invoices to be unique, sequential and / or gapless. You are responsible for ensuring this is true across all your different invoicing systems in the event that you edit the invoice number using our API. If you use only Stripe for your invoices and do not change invoice numbers, Stripe handles this aspect of compliance for you automatically. -
setNumber
Set the number for this invoice. If no number is present then a number will be assigned automatically when the invoice is finalized. In many markets, regulations require invoices to be unique, sequential and / or gapless. You are responsible for ensuring this is true across all your different invoicing systems in the event that you edit the invoice number using our API. If you use only Stripe for your invoices and do not change invoice numbers, Stripe handles this aspect of compliance for you automatically. -
setOnBehalfOf
The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the Invoices with Connect documentation for details. -
setOnBehalfOf
The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the Invoices with Connect documentation for details. -
setPaymentSettings
public InvoiceUpdateParams.Builder setPaymentSettings(InvoiceUpdateParams.PaymentSettings paymentSettings) Configuration settings for the PaymentIntent that is generated when the invoice is finalized. -
setRendering
The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page. -
setShippingCost
Settings for the cost of shipping for this invoice. -
setShippingCost
Settings for the cost of shipping for this invoice. -
setShippingDetails
public InvoiceUpdateParams.Builder setShippingDetails(InvoiceUpdateParams.ShippingDetails shippingDetails) Shipping details for the invoice. The Invoice PDF will use theshipping_details
value if it is set, otherwise the PDF will render the shipping address from the customer. -
setShippingDetails
Shipping details for the invoice. The Invoice PDF will use theshipping_details
value if it is set, otherwise the PDF will render the shipping address from the customer. -
setStatementDescriptor
Extra information about a charge for the customer's credit card statement. It must contain at least one letter. If not specified and this invoice is part of a subscription, the defaultstatement_descriptor
will be set to the first subscription item's product'sstatement_descriptor
. -
setStatementDescriptor
Extra information about a charge for the customer's credit card statement. It must contain at least one letter. If not specified and this invoice is part of a subscription, the defaultstatement_descriptor
will be set to the first subscription item's product'sstatement_descriptor
. -
setTransferData
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. This will be unset if you POST an empty value. -
setTransferData
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. This will be unset if you POST an empty value.
-