Class PersonTokenCreateParams.Builder
java.lang.Object
com.stripe.param.v2.core.accounts.PersonTokenCreateParams.Builder
- Enclosing class:
- PersonTokenCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd an element to `additionalAddresses` list.Add an element to `additionalNames` list.Add all elements to `additionalAddresses` list.Add all elements to `additionalNames` list.addAllIdNumber(List<PersonTokenCreateParams.IdNumber> elements) Add all elements to `idNumbers` list.addAllNationality(List<String> elements) Add all elements to `nationalities` list.Add an element to `idNumbers` list.addNationality(String element) Add an element to `nationalities` 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, Object> 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, EmptyParam value) Add a key/value pair to `metadata` map.putMetadata(String key, String value) Add a key/value pair to `metadata` map.setAdditionalTermsOfService(PersonTokenCreateParams.AdditionalTermsOfService additionalTermsOfService) Attestations of accepted terms of service agreements.The person's residential address.setDateOfBirth(PersonTokenCreateParams.DateOfBirth dateOfBirth) The person's date of birth.setDocuments(PersonTokenCreateParams.Documents documents) Documents that may be submitted to satisfy various informational requests.Email.setGivenName(String givenName) The person's first name.setLegalGender(PersonTokenCreateParams.LegalGender legalGender) The person's gender (International regulations require either "male" or "female").The phone number for this person.setPoliticalExposure(PersonTokenCreateParams.PoliticalExposure politicalExposure) The person's political exposure.setRelationship(PersonTokenCreateParams.Relationship relationship) The relationship that this person has with the Account's business or legal entity.setScriptAddresses(PersonTokenCreateParams.ScriptAddresses scriptAddresses) The script addresses (e.g., non-Latin characters) associated with the person.setScriptNames(PersonTokenCreateParams.ScriptNames scriptNames) The script names (e.g.setSurname(String surname) The person's last name.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addAdditionalAddress
public PersonTokenCreateParams.Builder addAdditionalAddress(PersonTokenCreateParams.AdditionalAddress element) Add an element to `additionalAddresses` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePersonTokenCreateParams.additionalAddressesfor the field documentation. -
addAllAdditionalAddress
public PersonTokenCreateParams.Builder addAllAdditionalAddress(List<PersonTokenCreateParams.AdditionalAddress> elements) Add all elements to `additionalAddresses` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePersonTokenCreateParams.additionalAddressesfor the field documentation. -
addAdditionalName
public PersonTokenCreateParams.Builder addAdditionalName(PersonTokenCreateParams.AdditionalName element) Add an element to `additionalNames` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePersonTokenCreateParams.additionalNamesfor the field documentation. -
addAllAdditionalName
public PersonTokenCreateParams.Builder addAllAdditionalName(List<PersonTokenCreateParams.AdditionalName> elements) Add all elements to `additionalNames` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePersonTokenCreateParams.additionalNamesfor the field documentation. -
setAdditionalTermsOfService
public PersonTokenCreateParams.Builder setAdditionalTermsOfService(PersonTokenCreateParams.AdditionalTermsOfService additionalTermsOfService) Attestations of accepted terms of service agreements. -
setAddress
The person's residential address. -
setDateOfBirth
public PersonTokenCreateParams.Builder setDateOfBirth(PersonTokenCreateParams.DateOfBirth dateOfBirth) The person's date of birth. -
setDocuments
Documents that may be submitted to satisfy various informational requests. -
setEmail
Email. -
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. SeePersonTokenCreateParams.extraParamsfor 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. SeePersonTokenCreateParams.extraParamsfor the field documentation. -
setGivenName
The person's first name. -
addIdNumber
Add an element to `idNumbers` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePersonTokenCreateParams.idNumbersfor the field documentation. -
addAllIdNumber
public PersonTokenCreateParams.Builder addAllIdNumber(List<PersonTokenCreateParams.IdNumber> elements) Add all elements to `idNumbers` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePersonTokenCreateParams.idNumbersfor the field documentation. -
setLegalGender
public PersonTokenCreateParams.Builder setLegalGender(PersonTokenCreateParams.LegalGender legalGender) The person's gender (International regulations require either "male" or "female"). -
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. SeePersonTokenCreateParams.metadatafor the field documentation. -
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. SeePersonTokenCreateParams.metadatafor 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. Map values can only be one of the following types: `String`, `EmptyParam`. SeePersonTokenCreateParams.metadatafor the field documentation. -
addNationality
Add an element to `nationalities` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePersonTokenCreateParams.nationalitiesfor the field documentation. -
addAllNationality
Add all elements to `nationalities` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePersonTokenCreateParams.nationalitiesfor the field documentation. -
setPhone
The phone number for this person. -
setPoliticalExposure
public PersonTokenCreateParams.Builder setPoliticalExposure(PersonTokenCreateParams.PoliticalExposure politicalExposure) The person's political exposure. -
setRelationship
public PersonTokenCreateParams.Builder setRelationship(PersonTokenCreateParams.Relationship relationship) The relationship that this person has with the Account's business or legal entity. -
setScriptAddresses
public PersonTokenCreateParams.Builder setScriptAddresses(PersonTokenCreateParams.ScriptAddresses scriptAddresses) The script addresses (e.g., non-Latin characters) associated with the person. -
setScriptNames
public PersonTokenCreateParams.Builder setScriptNames(PersonTokenCreateParams.ScriptNames scriptNames) The script names (e.g. non-Latin characters) associated with the person. -
setSurname
The person's last name.
-