Package com.stripe.param
Class CustomerCreateParams.InvoiceSettings.Builder
java.lang.Object
com.stripe.param.CustomerCreateParams.InvoiceSettings.Builder
- Enclosing class:
- CustomerCreateParams.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<CustomerCreateParams.InvoiceSettings.CustomField> customFields) The list of up to 4 default custom fields to be displayed on invoices for this customer.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.Default footer to be displayed on invoices for this customer.setRenderingOptions
(EmptyParam renderingOptions) Default options for invoice PDF rendering for this customer.setRenderingOptions
(CustomerCreateParams.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 CustomerCreateParams.InvoiceSettings.Builder addCustomField(CustomerCreateParams.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. SeeCustomerCreateParams.InvoiceSettings.customFields
for the field documentation. -
addAllCustomField
public CustomerCreateParams.InvoiceSettings.Builder addAllCustomField(List<CustomerCreateParams.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. SeeCustomerCreateParams.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 CustomerCreateParams.InvoiceSettings.Builder setCustomFields(List<CustomerCreateParams.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 CustomerCreateParams.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. -
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. SeeCustomerCreateParams.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. SeeCustomerCreateParams.InvoiceSettings.extraParams
for the field documentation. -
setRenderingOptions
public CustomerCreateParams.InvoiceSettings.Builder setRenderingOptions(CustomerCreateParams.InvoiceSettings.RenderingOptions renderingOptions) Default options for invoice PDF rendering for this customer. -
setRenderingOptions
public CustomerCreateParams.InvoiceSettings.Builder setRenderingOptions(EmptyParam renderingOptions) Default options for invoice PDF rendering for this customer.
-