Package com.stripe.param
Class PersonCollectionCreateParams.Builder
- java.lang.Object
-
- com.stripe.param.PersonCollectionCreateParams.Builder
-
- Enclosing class:
- PersonCollectionCreateParams
public static class PersonCollectionCreateParams.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PersonCollectionCreateParams.Builder
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.PersonCollectionCreateParams.Builder
addExpand(java.lang.String element)
Add an element to `expand` list.PersonCollectionCreateParams
build()
Finalize and obtain parameter instance from this builder.PersonCollectionCreateParams.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.PersonCollectionCreateParams.Builder
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.PersonCollectionCreateParams.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.PersonCollectionCreateParams.Builder
putMetadata(java.lang.String key, java.lang.String value)
Add a key/value pair to `metadata` map.PersonCollectionCreateParams.Builder
setAddress(PersonCollectionCreateParams.Address address)
The person's address.PersonCollectionCreateParams.Builder
setAddressKana(PersonCollectionCreateParams.AddressKana addressKana)
The Kana variation of the person's address (Japan only).PersonCollectionCreateParams.Builder
setAddressKanji(PersonCollectionCreateParams.AddressKanji addressKanji)
The Kanji variation of the person's address (Japan only).PersonCollectionCreateParams.Builder
setDob(EmptyParam dob)
The person's date of birth.PersonCollectionCreateParams.Builder
setDob(PersonCollectionCreateParams.Dob dob)
The person's date of birth.PersonCollectionCreateParams.Builder
setEmail(java.lang.String email)
The person's email address.PersonCollectionCreateParams.Builder
setFirstName(java.lang.String firstName)
The person's first name.PersonCollectionCreateParams.Builder
setFirstNameKana(java.lang.String firstNameKana)
The Kana variation of the person's first name (Japan only).PersonCollectionCreateParams.Builder
setFirstNameKanji(java.lang.String firstNameKanji)
The Kanji variation of the person's first name (Japan only).PersonCollectionCreateParams.Builder
setGender(java.lang.String gender)
The person's gender (International regulations require either "male" or "female").PersonCollectionCreateParams.Builder
setIdNumber(java.lang.String idNumber)
The person's ID number, as appropriate for their country.PersonCollectionCreateParams.Builder
setLastName(java.lang.String lastName)
The person's last name.PersonCollectionCreateParams.Builder
setLastNameKana(java.lang.String lastNameKana)
The Kana variation of the person's last name (Japan only).PersonCollectionCreateParams.Builder
setLastNameKanji(java.lang.String lastNameKanji)
The Kanji variation of the person's last name (Japan only).PersonCollectionCreateParams.Builder
setMaidenName(java.lang.String maidenName)
The person's maiden name.PersonCollectionCreateParams.Builder
setMetadata(EmptyParam metadata)
Set of key-value pairs that you can attach to an object.PersonCollectionCreateParams.Builder
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.PersonCollectionCreateParams.Builder
setNationality(java.lang.String nationality)
The country where the person is a national.PersonCollectionCreateParams.Builder
setPersonToken(java.lang.String personToken)
A person token, used to securely provide details to the person.PersonCollectionCreateParams.Builder
setPhone(java.lang.String phone)
The person's phone number.PersonCollectionCreateParams.Builder
setPoliticalExposure(java.lang.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.PersonCollectionCreateParams.Builder
setRelationship(PersonCollectionCreateParams.Relationship relationship)
The relationship that this person has with the account's legal entity.PersonCollectionCreateParams.Builder
setSsnLast4(java.lang.String ssnLast4)
The last four digits of the person's Social Security number (U.S.PersonCollectionCreateParams.Builder
setVerification(PersonCollectionCreateParams.Verification verification)
The person's verification status.
-
-
-
Method Detail
-
build
public PersonCollectionCreateParams build()
Finalize and obtain parameter instance from this builder.
-
setAddress
public PersonCollectionCreateParams.Builder setAddress(PersonCollectionCreateParams.Address address)
The person's address.
-
setAddressKana
public PersonCollectionCreateParams.Builder setAddressKana(PersonCollectionCreateParams.AddressKana addressKana)
The Kana variation of the person's address (Japan only).
-
setAddressKanji
public PersonCollectionCreateParams.Builder setAddressKanji(PersonCollectionCreateParams.AddressKanji addressKanji)
The Kanji variation of the person's address (Japan only).
-
setDob
public PersonCollectionCreateParams.Builder setDob(PersonCollectionCreateParams.Dob dob)
The person's date of birth.
-
setDob
public PersonCollectionCreateParams.Builder setDob(EmptyParam dob)
The person's date of birth.
-
setEmail
public PersonCollectionCreateParams.Builder setEmail(java.lang.String email)
The person's email address.
-
addExpand
public PersonCollectionCreateParams.Builder addExpand(java.lang.String element)
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. SeePersonCollectionCreateParams.expand
for the field documentation.
-
addAllExpand
public PersonCollectionCreateParams.Builder addAllExpand(java.util.List<java.lang.String> elements)
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. SeePersonCollectionCreateParams.expand
for the field documentation.
-
putExtraParam
public PersonCollectionCreateParams.Builder putExtraParam(java.lang.String key, java.lang.Object value)
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. SeePersonCollectionCreateParams.extraParams
for the field documentation.
-
putAllExtraParam
public PersonCollectionCreateParams.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
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. SeePersonCollectionCreateParams.extraParams
for the field documentation.
-
setFirstName
public PersonCollectionCreateParams.Builder setFirstName(java.lang.String firstName)
The person's first name.
-
setFirstNameKana
public PersonCollectionCreateParams.Builder setFirstNameKana(java.lang.String firstNameKana)
The Kana variation of the person's first name (Japan only).
-
setFirstNameKanji
public PersonCollectionCreateParams.Builder setFirstNameKanji(java.lang.String firstNameKanji)
The Kanji variation of the person's first name (Japan only).
-
setGender
public PersonCollectionCreateParams.Builder setGender(java.lang.String gender)
The person's gender (International regulations require either "male" or "female").
-
setIdNumber
public PersonCollectionCreateParams.Builder setIdNumber(java.lang.String idNumber)
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.
-
setLastName
public PersonCollectionCreateParams.Builder setLastName(java.lang.String lastName)
The person's last name.
-
setLastNameKana
public PersonCollectionCreateParams.Builder setLastNameKana(java.lang.String lastNameKana)
The Kana variation of the person's last name (Japan only).
-
setLastNameKanji
public PersonCollectionCreateParams.Builder setLastNameKanji(java.lang.String lastNameKanji)
The Kanji variation of the person's last name (Japan only).
-
setMaidenName
public PersonCollectionCreateParams.Builder setMaidenName(java.lang.String maidenName)
The person's maiden name.
-
putMetadata
public PersonCollectionCreateParams.Builder putMetadata(java.lang.String key, java.lang.String value)
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. SeePersonCollectionCreateParams.metadata
for the field documentation.
-
putAllMetadata
public PersonCollectionCreateParams.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
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. SeePersonCollectionCreateParams.metadata
for the field documentation.
-
setMetadata
public PersonCollectionCreateParams.Builder setMetadata(EmptyParam metadata)
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
public PersonCollectionCreateParams.Builder setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
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
public PersonCollectionCreateParams.Builder setNationality(java.lang.String nationality)
The country where the person is a national. Two-letter country code (ISO 3166-1 alpha-2), or "XX" if unavailable.
-
setPersonToken
public PersonCollectionCreateParams.Builder setPersonToken(java.lang.String personToken)
A person token, used to securely provide details to the person.
-
setPhone
public PersonCollectionCreateParams.Builder setPhone(java.lang.String phone)
The person's phone number.
-
setPoliticalExposure
public PersonCollectionCreateParams.Builder setPoliticalExposure(java.lang.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.
-
setRelationship
public PersonCollectionCreateParams.Builder setRelationship(PersonCollectionCreateParams.Relationship relationship)
The relationship that this person has with the account's legal entity.
-
setSsnLast4
public PersonCollectionCreateParams.Builder setSsnLast4(java.lang.String ssnLast4)
The last four digits of the person's Social Security number (U.S. only).
-
setVerification
public PersonCollectionCreateParams.Builder setVerification(PersonCollectionCreateParams.Verification verification)
The person's verification status.
-
-