Class PersonCreateParams.Builder
java.lang.Object
com.stripe.param.v2.core.accounts.PersonCreateParams.Builder
- Enclosing class:
- PersonCreateParams
-
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<PersonCreateParams.IdNumber> elements) Add all elements to `idNumbers` list.addAllNationality
(List<PersonCreateParams.Nationality> elements) Add all elements to `nationalities` list.addIdNumber
(PersonCreateParams.IdNumber element) Add an element to `idNumbers` list.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, 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.setAdditionalTermsOfService
(PersonCreateParams.AdditionalTermsOfService additionalTermsOfService) Attestations of accepted terms of service agreements.setAddress
(PersonCreateParams.Address address) The person's residential address.setDateOfBirth
(PersonCreateParams.DateOfBirth dateOfBirth) The person's date of birth.setDocuments
(PersonCreateParams.Documents documents) Documents that may be submitted to satisfy various informational requests.Email.setGivenName
(String givenName) The person's first name.setLegalGender
(PersonCreateParams.LegalGender legalGender) The person's gender (International regulations require either "male" or "female").The phone number for this person.setPoliticalExposure
(PersonCreateParams.PoliticalExposure politicalExposure) The person's political exposure.setRelationship
(PersonCreateParams.Relationship relationship) The relationship that this person has with the Account's business or legal entity.setScriptAddresses
(PersonCreateParams.ScriptAddresses scriptAddresses) The script addresses (e.g., non-Latin characters) associated with the person.setScriptNames
(PersonCreateParams.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 PersonCreateParams.Builder addAdditionalAddress(PersonCreateParams.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. SeePersonCreateParams.additionalAddresses
for the field documentation. -
addAllAdditionalAddress
public PersonCreateParams.Builder addAllAdditionalAddress(List<PersonCreateParams.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. SeePersonCreateParams.additionalAddresses
for the field documentation. -
addAdditionalName
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. SeePersonCreateParams.additionalNames
for the field documentation. -
addAllAdditionalName
public PersonCreateParams.Builder addAllAdditionalName(List<PersonCreateParams.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. SeePersonCreateParams.additionalNames
for the field documentation. -
setAdditionalTermsOfService
public PersonCreateParams.Builder setAdditionalTermsOfService(PersonCreateParams.AdditionalTermsOfService additionalTermsOfService) Attestations of accepted terms of service agreements. -
setAddress
The person's residential address. -
setDateOfBirth
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. SeePersonCreateParams.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. SeePersonCreateParams.extraParams
for 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. SeePersonCreateParams.idNumbers
for the field documentation. -
addAllIdNumber
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. SeePersonCreateParams.idNumbers
for the field documentation. -
setLegalGender
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. SeePersonCreateParams.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. SeePersonCreateParams.metadata
for 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. SeePersonCreateParams.nationalities
for 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. SeePersonCreateParams.nationalities
for the field documentation. -
setPhone
The phone number for this person. -
setPoliticalExposure
public PersonCreateParams.Builder setPoliticalExposure(PersonCreateParams.PoliticalExposure politicalExposure) The person's political exposure. -
setRelationship
The relationship that this person has with the Account's business or legal entity. -
setScriptAddresses
public PersonCreateParams.Builder setScriptAddresses(PersonCreateParams.ScriptAddresses scriptAddresses) The script addresses (e.g., non-Latin characters) associated with the person. -
setScriptNames
The script names (e.g. non-Latin characters) associated with the person. -
setSurname
The person's last name.
-