Package com.stripe.param
Class CustomerUpdateParams.Builder
java.lang.Object
com.stripe.param.CustomerUpdateParams.Builder
- Enclosing class:
- CustomerUpdateParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand
(List<String> elements) Add all elements to `expand` list.addAllPreferredLocale
(List<String> elements) Add all elements to `preferredLocales` list.Add an element to `expand` list.addPreferredLocale
(String element) Add an element to `preferredLocales` 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.setAddress
(EmptyParam address) The customer's address.setAddress
(CustomerUpdateParams.Address address) The customer's address.setBalance
(Long balance) An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices.setCashBalance
(CustomerUpdateParams.CashBalance cashBalance) Balance information and default balance settings for this customer.setCoupon
(EmptyParam coupon) setDefaultSource
(EmptyParam defaultSource) If you are using payment methods created via the PaymentMethods API, see the invoice_settings.default_payment_method parameter.setDefaultSource
(String defaultSource) If you are using payment methods created via the PaymentMethods API, see the invoice_settings.default_payment_method parameter.setDescription
(EmptyParam description) An arbitrary string that you can attach to a customer object.setDescription
(String description) An arbitrary string that you can attach to a customer object.setEmail
(EmptyParam email) Customer's email address.Customer's email address.setInvoicePrefix
(EmptyParam invoicePrefix) The prefix for the customer used to generate unique invoice numbers.setInvoicePrefix
(String invoicePrefix) The prefix for the customer used to generate unique invoice numbers.setInvoiceSettings
(CustomerUpdateParams.InvoiceSettings invoiceSettings) Default invoice settings for this customer.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.setName
(EmptyParam name) The customer's full name or business name.The customer's full name or business name.setNextInvoiceSequence
(Long nextInvoiceSequence) The sequence to be used on the customer's next invoice.setPhone
(EmptyParam phone) The customer's phone number.The customer's phone number.setPromotionCode
(EmptyParam promotionCode) The ID of a promotion code to apply to the customer.setPromotionCode
(String promotionCode) The ID of a promotion code to apply to the customer.setShipping
(EmptyParam shipping) The customer's shipping information.setShipping
(CustomerUpdateParams.Shipping shipping) The customer's shipping information.setSource
(EmptyParam source) Tax details about the customer.setTaxExempt
(EmptyParam taxExempt) The customer's tax exemption.setTaxExempt
(CustomerUpdateParams.TaxExempt taxExempt) The customer's tax exemption.setValidate
(Boolean validate)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAddress
The customer's address. -
setAddress
The customer's address. -
setBalance
An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice. -
setCashBalance
Balance information and default balance settings for this customer. -
setCoupon
-
setCoupon
-
setDefaultSource
If you are using payment methods created via the PaymentMethods API, see the invoice_settings.default_payment_method parameter.Provide the ID of a payment source already attached to this customer to make it this customer's default payment source.
If you want to add a new payment source and make it the default, see the source property.
-
setDefaultSource
If you are using payment methods created via the PaymentMethods API, see the invoice_settings.default_payment_method parameter.Provide the ID of a payment source already attached to this customer to make it this customer's default payment source.
If you want to add a new payment source and make it the default, see the source property.
-
setDescription
An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard. -
setDescription
An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard. -
setEmail
Customer's email address. It's displayed alongside the customer in your dashboard and can be useful for searching and tracking. This may be up to 512 characters. -
setEmail
Customer's email address. It's displayed alongside the customer in your dashboard and can be useful for searching and tracking. This may be up to 512 characters. -
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. SeeCustomerUpdateParams.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. SeeCustomerUpdateParams.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. SeeCustomerUpdateParams.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.extraParams
for the field documentation. -
setInvoicePrefix
The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers. -
setInvoicePrefix
The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers. -
setInvoiceSettings
public CustomerUpdateParams.Builder setInvoiceSettings(CustomerUpdateParams.InvoiceSettings invoiceSettings) Default invoice settings for this customer. -
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. SeeCustomerUpdateParams.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. SeeCustomerUpdateParams.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
. -
setName
The customer's full name or business name. -
setName
The customer's full name or business name. -
setNextInvoiceSequence
The sequence to be used on the customer's next invoice. Defaults to 1. -
setPhone
The customer's phone number. -
setPhone
The customer's phone number. -
addPreferredLocale
Add an element to `preferredLocales` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCustomerUpdateParams.preferredLocales
for the field documentation. -
addAllPreferredLocale
Add all elements to `preferredLocales` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCustomerUpdateParams.preferredLocales
for the field documentation. -
setPromotionCode
The ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount. -
setPromotionCode
The ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount. -
setShipping
The customer's shipping information. Appears on invoices emailed to this customer. -
setShipping
The customer's shipping information. Appears on invoices emailed to this customer. -
setSource
-
setSource
-
setTax
Tax details about the customer. -
setTaxExempt
The customer's tax exemption. One ofnone
,exempt
, orreverse
. -
setTaxExempt
The customer's tax exemption. One ofnone
,exempt
, orreverse
. -
setValidate
-