Package com.stripe.param
Class CustomerUpdateParams.InvoiceSettings.Builder
- java.lang.Object
-
- com.stripe.param.CustomerUpdateParams.InvoiceSettings.Builder
-
- Enclosing class:
- CustomerUpdateParams.InvoiceSettings
public static class CustomerUpdateParams.InvoiceSettings.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomerUpdateParams.InvoiceSettings.Builder
addAllCustomField(java.util.List<CustomerUpdateParams.InvoiceSettings.CustomField> elements)
Add all elements to `customFields` list.CustomerUpdateParams.InvoiceSettings.Builder
addCustomField(CustomerUpdateParams.InvoiceSettings.CustomField element)
Add an element to `customFields` list.CustomerUpdateParams.InvoiceSettings
build()
Finalize and obtain parameter instance from this builder.CustomerUpdateParams.InvoiceSettings.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.CustomerUpdateParams.InvoiceSettings.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.CustomerUpdateParams.InvoiceSettings.Builder
setCustomFields(EmptyParam customFields)
Default custom fields to be displayed on invoices for this customer.CustomerUpdateParams.InvoiceSettings.Builder
setCustomFields(java.util.List<CustomerUpdateParams.InvoiceSettings.CustomField> customFields)
Default custom fields to be displayed on invoices for this customer.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.CustomerUpdateParams.InvoiceSettings.Builder
setDefaultPaymentMethod(java.lang.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.CustomerUpdateParams.InvoiceSettings.Builder
setFooter(EmptyParam footer)
Default footer to be displayed on invoices for this customer.CustomerUpdateParams.InvoiceSettings.Builder
setFooter(java.lang.String footer)
Default footer to be displayed on invoices for this customer.
-
-
-
Method Detail
-
build
public CustomerUpdateParams.InvoiceSettings 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(java.util.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
public CustomerUpdateParams.InvoiceSettings.Builder setCustomFields(EmptyParam customFields)
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(java.util.List<CustomerUpdateParams.InvoiceSettings.CustomField> customFields)
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(java.lang.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
public CustomerUpdateParams.InvoiceSettings.Builder putExtraParam(java.lang.String key, java.lang.Object value)
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
public CustomerUpdateParams.InvoiceSettings.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
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.
-
setFooter
public CustomerUpdateParams.InvoiceSettings.Builder setFooter(java.lang.String footer)
Default footer to be displayed on invoices for this customer.
-
setFooter
public CustomerUpdateParams.InvoiceSettings.Builder setFooter(EmptyParam footer)
Default footer to be displayed on invoices for this customer.
-
-