Package com.stripe.param
Class TokenCreateParams.Person.Builder
java.lang.Object
com.stripe.param.TokenCreateParams.Person.Builder
- Enclosing class:
- TokenCreateParams.Person
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllFullNameAlias
(List<String> elements) Add all elements to `fullNameAliases` list.addFullNameAlias
(String element) Add an element to `fullNameAliases` 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.setAdditionalTosAcceptances
(TokenCreateParams.Person.AdditionalTosAcceptances additionalTosAcceptances) Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.The person's address.setAddressKana
(TokenCreateParams.Person.AddressKana addressKana) The Kana variation of the person's address (Japan only).setAddressKanji
(TokenCreateParams.Person.AddressKanji addressKanji) The Kanji variation of the person's address (Japan only).setDob
(EmptyParam dob) The person's date of birth.The person's date of birth.setDocuments
(TokenCreateParams.Person.Documents documents) Documents that may be submitted to satisfy various informational requests.The person's email address.setFirstName
(String firstName) The person's first name.setFirstNameKana
(String firstNameKana) The Kana variation of the person's first name (Japan only).setFirstNameKanji
(String firstNameKanji) The Kanji variation of the person's first name (Japan only).setFullNameAliases
(EmptyParam fullNameAliases) A list of alternate names or aliases that the person is known by.setFullNameAliases
(List<String> fullNameAliases) A list of alternate names or aliases that the person is known by.The person's gender (International regulations require either "male" or "female").setIdNumber
(String idNumber) The person's ID number, as appropriate for their country.setIdNumberSecondary
(String idNumberSecondary) The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks.setLastName
(String lastName) The person's last name.setLastNameKana
(String lastNameKana) The Kana variation of the person's last name (Japan only).setLastNameKanji
(String lastNameKanji) The Kanji variation of the person's last name (Japan only).setMaidenName
(String maidenName) The person's maiden name.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.setNationality
(String nationality) The country where the person is a national.The person's phone number.setPoliticalExposure
(String politicalExposure) Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.setRegisteredAddress
(TokenCreateParams.Person.RegisteredAddress registeredAddress) The person's registered address.setRelationship
(TokenCreateParams.Person.Relationship relationship) The relationship that this person has with the account's legal entity.setSsnLast4
(String ssnLast4) The last four digits of the person's Social Security number (U.S.setVerification
(TokenCreateParams.Person.Verification verification) The person's verification status.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAdditionalTosAcceptances
public TokenCreateParams.Person.Builder setAdditionalTosAcceptances(TokenCreateParams.Person.AdditionalTosAcceptances additionalTosAcceptances) Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements. -
setAddress
The person's address. -
setAddressKana
public TokenCreateParams.Person.Builder setAddressKana(TokenCreateParams.Person.AddressKana addressKana) The Kana variation of the person's address (Japan only). -
setAddressKanji
public TokenCreateParams.Person.Builder setAddressKanji(TokenCreateParams.Person.AddressKanji addressKanji) The Kanji variation of the person's address (Japan only). -
setDob
The person's date of birth. -
setDob
The person's date of birth. -
setDocuments
Documents that may be submitted to satisfy various informational requests. -
setEmail
The person's email address. -
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. SeeTokenCreateParams.Person.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. SeeTokenCreateParams.Person.extraParams
for the field documentation. -
setFirstName
The person's first name. -
setFirstNameKana
The Kana variation of the person's first name (Japan only). -
setFirstNameKanji
The Kanji variation of the person's first name (Japan only). -
addFullNameAlias
Add an element to `fullNameAliases` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeTokenCreateParams.Person.fullNameAliases
for the field documentation. -
addAllFullNameAlias
Add all elements to `fullNameAliases` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeTokenCreateParams.Person.fullNameAliases
for the field documentation. -
setFullNameAliases
A list of alternate names or aliases that the person is known by. -
setFullNameAliases
A list of alternate names or aliases that the person is known by. -
setGender
The person's gender (International regulations require either "male" or "female"). -
setIdNumber
The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a PII token provided by Stripe.js. -
setIdNumberSecondary
The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a PII token provided by Stripe.js. -
setLastName
The person's last name. -
setLastNameKana
The Kana variation of the person's last name (Japan only). -
setLastNameKanji
The Kanji variation of the person's last name (Japan only). -
setMaidenName
The person's maiden name. -
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. SeeTokenCreateParams.Person.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. SeeTokenCreateParams.Person.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
. -
setNationality
The country where the person is a national. Two-letter country code (ISO 3166-1 alpha-2), or "XX" if unavailable. -
setPhone
The person's phone number. -
setPoliticalExposure
Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction. -
setRegisteredAddress
public TokenCreateParams.Person.Builder setRegisteredAddress(TokenCreateParams.Person.RegisteredAddress registeredAddress) The person's registered address. -
setRelationship
public TokenCreateParams.Person.Builder setRelationship(TokenCreateParams.Person.Relationship relationship) The relationship that this person has with the account's legal entity. -
setSsnLast4
The last four digits of the person's Social Security number (U.S. only). -
setVerification
public TokenCreateParams.Person.Builder setVerification(TokenCreateParams.Person.Verification verification) The person's verification status.
-