Package com.stripe.param.issuing
Class CardholderCreateParams.Builder
java.lang.Object
com.stripe.param.issuing.CardholderCreateParams.Builder
- Enclosing class:
- CardholderCreateParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand
(List<String> elements) Add all elements to `expand` list.Add all elements to `preferredLocales` list.Add an element to `expand` list.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.setBilling
(CardholderCreateParams.Billing billing) Required. The cardholder's billing address.setCompany
(CardholderCreateParams.Company company) Additional information about acompany
cardholder.The cardholder's email address.setIndividual
(CardholderCreateParams.Individual individual) Additional information about anindividual
cardholder.Required. The cardholder's name.setPhoneNumber
(String phoneNumber) The cardholder's phone number.setSpendingControls
(CardholderCreateParams.SpendingControls spendingControls) Rules that control spending across this cardholder's cards.Specifies whether to permit authorizations on this cardholder's cards.One ofindividual
orcompany
.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setBilling
Required. The cardholder's billing address. -
setCompany
Additional information about acompany
cardholder. -
setEmail
The cardholder's email address. -
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. SeeCardholderCreateParams.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. SeeCardholderCreateParams.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. SeeCardholderCreateParams.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. SeeCardholderCreateParams.extraParams
for the field documentation. -
setIndividual
Additional information about anindividual
cardholder. -
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. SeeCardholderCreateParams.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. SeeCardholderCreateParams.metadata
for the field documentation. -
setName
Required. The cardholder's name. This will be printed on cards issued to them. The maximum length of this field is 24 characters. This field cannot contain any special characters or numbers. -
setPhoneNumber
The cardholder's phone number. This will be transformed to E.164 if it is not provided in that format already. This is required for all cardholders who will be creating EU cards. See the 3D Secure documentation for more details. -
addPreferredLocale
public CardholderCreateParams.Builder addPreferredLocale(CardholderCreateParams.PreferredLocale element) 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. SeeCardholderCreateParams.preferredLocales
for the field documentation. -
addAllPreferredLocale
public CardholderCreateParams.Builder addAllPreferredLocale(List<CardholderCreateParams.PreferredLocale> elements) 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. SeeCardholderCreateParams.preferredLocales
for the field documentation. -
setSpendingControls
public CardholderCreateParams.Builder setSpendingControls(CardholderCreateParams.SpendingControls spendingControls) Rules that control spending across this cardholder's cards. Refer to our documentation for more details. -
setStatus
Specifies whether to permit authorizations on this cardholder's cards. Defaults toactive
. -
setType
-