class

Stripe::PersonTokenSpecs

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Constants

MAX_LENGTH_FOR_FIRST_NAME = 5000
MAX_LENGTH_FOR_FIRST_NAME_KANA = 5000
MAX_LENGTH_FOR_FIRST_NAME_KANJI = 5000
MAX_LENGTH_FOR_ID_NUMBER = 5000
MAX_LENGTH_FOR_ID_NUMBER_SECONDARY = 5000
MAX_LENGTH_FOR_LAST_NAME = 5000
MAX_LENGTH_FOR_LAST_NAME_KANA = 5000
MAX_LENGTH_FOR_LAST_NAME_KANJI = 5000
MAX_LENGTH_FOR_MAIDEN_NAME = 5000
MAX_LENGTH_FOR_NATIONALITY = 5000
MAX_LENGTH_FOR_POLITICAL_EXPOSURE = 5000

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, additional_tos_acceptances : Stripe::PersonAdditionalTosAcceptancesSpecs | Nil = nil, address : Stripe::LegalEntityAndKycAddressSpecs | Nil = nil, address_kana : Stripe::JapanAddressKanaSpecs | Nil = nil, address_kanji : Stripe::JapanAddressKanjiSpecs | Nil = nil, dob : Stripe::PostAccountsAccountPersonsRequestDob | Nil = nil, documents : Stripe::PersonDocumentsSpecs | Nil = nil, email : String | Nil = nil, first_name : String | Nil = nil, first_name_kana : String | Nil = nil, first_name_kanji : String | Nil = nil, full_name_aliases : Stripe::PostAccountsAccountPersonsRequestFullNameAliases | Nil = nil, gender : String | Nil = nil, id_number : String | Nil = nil, id_number_secondary : String | Nil = nil, last_name : String | Nil = nil, last_name_kana : String | Nil = nil, last_name_kanji : String | Nil = nil, maiden_name : String | Nil = nil, metadata : Stripe::PostAccountsRequestMetadata | Nil = nil, nationality : String | Nil = nil, phone : String | Nil = nil, political_exposure : String | Nil = nil, registered_address : Stripe::AddressSpecs | Nil = nil, relationship : Stripe::RelationshipSpecs | Nil = nil, ssn_last_4 : String | Nil = nil, verification : Stripe::PersonVerificationSpecs | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

additional_tos_acceptances
Source
additional_tos_acceptances=(new_value : Stripe::PersonAdditionalTosAcceptancesSpecs | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] additional_tos_acceptances Object to be assigned

Source
address
Source
address=(new_value : Stripe::LegalEntityAndKycAddressSpecs | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] address Object to be assigned

Source
address_kana
Source
address_kana=(new_value : Stripe::JapanAddressKanaSpecs | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] address_kana Object to be assigned

Source
address_kanji
Source
address_kanji=(new_value : Stripe::JapanAddressKanjiSpecs | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] address_kanji Object to be assigned

Source

Custom attribute writer method checking allowed values (enum). @param [Object] dob Object to be assigned

Source
documents
Source
documents=(new_value : Stripe::PersonDocumentsSpecs | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] documents Object to be assigned

Source
email

The person's email address.

Source
email=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] email Object to be assigned

Source
first_name

The person's first name.

Source
first_name=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] first_name Object to be assigned

Source
first_name_kana

The Kana variation of the person's first name (Japan only).

Source
first_name_kana=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] first_name_kana Object to be assigned

Source
first_name_kanji

The Kanji variation of the person's first name (Japan only).

Source
first_name_kanji=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] first_name_kanji Object to be assigned

Source
full_name_aliases
Source
full_name_aliases=(new_value : Stripe::PostAccountsAccountPersonsRequestFullNameAliases | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] full_name_aliases Object to be assigned

Source
gender

The person's gender (International regulations require either "male" or "female").

Source
gender=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] gender Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

id_number

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.

Source
id_number=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] id_number Object to be assigned

Source
id_number_secondary

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.

Source
id_number_secondary=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] id_number_secondary Object to be assigned

Source
last_name

The person's last name.

Source
last_name=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] last_name Object to be assigned

Source
last_name_kana

The Kana variation of the person's last name (Japan only).

Source
last_name_kana=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] last_name_kana Object to be assigned

Source
last_name_kanji

The Kanji variation of the person's last name (Japan only).

Source
last_name_kanji=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] last_name_kanji Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
maiden_name

The person's maiden name.

Source
maiden_name=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] maiden_name Object to be assigned

Source
metadata
Source
metadata=(new_value : Stripe::PostAccountsRequestMetadata | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned

Source
nationality

The country where the person is a national. Two-letter country code (ISO 3166-1 alpha-2), or "XX" if unavailable.

Source
nationality=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] nationality Object to be assigned

Source
phone

The person's phone number.

Source
phone=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] phone Object to be assigned

Source
political_exposure

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.

Source
political_exposure=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] political_exposure Object to be assigned

Source
registered_address
Source
registered_address=(new_value : Stripe::AddressSpecs | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] registered_address Object to be assigned

Source
relationship
Source
relationship=(new_value : Stripe::RelationshipSpecs | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] relationship Object to be assigned

Source
ssn_last_4

The last four digits of the person's Social Security number (U.S. only).

Source
ssn_last_4=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] ssn_last_4 Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source
verification
Source
verification=(new_value : Stripe::PersonVerificationSpecs | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] verification Object to be assigned

Source