Package com.stripe.param
Class CustomerUpdateParams.InvoiceSettings.Builder
java.lang.Object
com.stripe.param.CustomerUpdateParams.InvoiceSettings.Builder
- Enclosing class:
- CustomerUpdateParams.InvoiceSettings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `customFields` list.Add an element to `customFields` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setCustomFields
(EmptyParam customFields) The list of up to 4 default custom fields to be displayed on invoices for this customer.setCustomFields
(List<CustomerUpdateParams.InvoiceSettings.CustomField> customFields) The list of up to 4 default custom fields to be displayed on invoices for this customer.setDefaultPaymentMethod
(EmptyParam defaultPaymentMethod) ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.setDefaultPaymentMethod
(String defaultPaymentMethod) ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.setFooter
(EmptyParam footer) Default footer to be displayed on invoices for this customer.Default footer to be displayed on invoices for this customer.setRenderingOptions
(EmptyParam renderingOptions) Default options for invoice PDF rendering for this customer.setRenderingOptions
(CustomerUpdateParams.InvoiceSettings.RenderingOptions renderingOptions) Default options for invoice PDF rendering for this customer.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addCustomField
public CustomerUpdateParams.InvoiceSettings.Builder addCustomField(CustomerUpdateParams.InvoiceSettings.CustomField element) 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. SeeCustomerUpdateParams.InvoiceSettings.customFields
for the field documentation. -
addAllCustomField
public CustomerUpdateParams.InvoiceSettings.Builder addAllCustomField(List<CustomerUpdateParams.InvoiceSettings.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. SeeCustomerUpdateParams.InvoiceSettings.customFields
for the field documentation. -
setCustomFields
The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields. -
setCustomFields
public CustomerUpdateParams.InvoiceSettings.Builder setCustomFields(List<CustomerUpdateParams.InvoiceSettings.CustomField> customFields) The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields. -
setDefaultPaymentMethod
public CustomerUpdateParams.InvoiceSettings.Builder setDefaultPaymentMethod(String defaultPaymentMethod) ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices. -
setDefaultPaymentMethod
public CustomerUpdateParams.InvoiceSettings.Builder setDefaultPaymentMethod(EmptyParam defaultPaymentMethod) ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices. -
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. SeeCustomerUpdateParams.InvoiceSettings.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. SeeCustomerUpdateParams.InvoiceSettings.extraParams
for the field documentation. -
setRenderingOptions
public CustomerUpdateParams.InvoiceSettings.Builder setRenderingOptions(CustomerUpdateParams.InvoiceSettings.RenderingOptions renderingOptions) Default options for invoice PDF rendering for this customer. -
setRenderingOptions
public CustomerUpdateParams.InvoiceSettings.Builder setRenderingOptions(EmptyParam renderingOptions) Default options for invoice PDF rendering for this customer.
-