class Stripe::PersonTokenSpecs

Included Modules

Defined in:

stripe/models/person_token_specs.cr

Constant Summary

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

Instance Method Summary

Instance methods inherited from module OpenApi::Json

after_initialize after_initialize, clone clone, eql?(o : self) eql?, to_hash : Hash(String, JSON::Any) to_hash, to_json_any : JSON::Any to_json_any

Class methods inherited from module OpenApi::Json

build_from_hash(hash : Hash) build_from_hash, build_from_json_any(json_any : JSON::Any) build_from_json_any

Instance methods inherited from module OpenApi::Validatable

list_invalid_properties : Array(String) list_invalid_properties, list_invalid_properties_for(key : String) : Array(String) list_invalid_properties_for, valid? : Bool valid?, validate : Nil validate

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.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


[View source]

Instance Method Detail

def ==(other : self) #

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


def additional_tos_acceptances : Stripe::PersonAdditionalTosAcceptancesSpecs | Nil #

[View source]
def 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


[View source]

[View source]
def address=(new_value : Stripe::LegalEntityAndKycAddressSpecs | Nil) #

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


[View source]
def address_kana : Stripe::JapanAddressKanaSpecs | Nil #

[View source]
def address_kana=(new_value : Stripe::JapanAddressKanaSpecs | Nil) #

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


[View source]
def address_kanji : Stripe::JapanAddressKanjiSpecs | Nil #

[View source]
def address_kanji=(new_value : Stripe::JapanAddressKanjiSpecs | Nil) #

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


[View source]

[View source]
def dob=(new_value : Stripe::PostAccountsAccountPersonsRequestDob | Nil) #

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


[View source]
def documents : Stripe::PersonDocumentsSpecs | Nil #

[View source]
def documents=(new_value : Stripe::PersonDocumentsSpecs | Nil) #

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


[View source]
def email : String | Nil #

[View source]
def email=(new_value : String | Nil) #

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


[View source]
def first_name : String | Nil #

[View source]
def first_name=(new_value : String | Nil) #

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


[View source]
def first_name_kana : String | Nil #

[View source]
def first_name_kana=(new_value : String | Nil) #

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


[View source]
def first_name_kanji : String | Nil #

[View source]
def first_name_kanji=(new_value : String | Nil) #

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


[View source]

[View source]
def 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


[View source]
def gender : String | Nil #

[View source]
def gender=(new_value : String | Nil) #

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


[View source]
def hash(hasher) #

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


def id_number : String | Nil #

[View source]
def id_number=(new_value : String | Nil) #

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


[View source]
def id_number_secondary : String | Nil #

[View source]
def id_number_secondary=(new_value : String | Nil) #

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


[View source]
def last_name : String | Nil #

[View source]
def last_name=(new_value : String | Nil) #

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


[View source]
def last_name_kana : String | Nil #

[View source]
def last_name_kana=(new_value : String | Nil) #

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


[View source]
def last_name_kanji : String | Nil #

[View source]
def last_name_kanji=(new_value : String | Nil) #

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


[View source]
def list_invalid_properties : Array(String) #

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


[View source]
def maiden_name : String | Nil #

[View source]
def maiden_name=(new_value : String | Nil) #

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


[View source]
def metadata : Stripe::PostAccountsRequestMetadata | Nil #

[View source]
def metadata=(new_value : Stripe::PostAccountsRequestMetadata | Nil) #

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


[View source]
def nationality : String | Nil #

[View source]
def nationality=(new_value : String | Nil) #

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


[View source]
def phone : String | Nil #

[View source]
def phone=(new_value : String | Nil) #

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


[View source]
def political_exposure : String | Nil #

[View source]
def political_exposure=(new_value : String | Nil) #

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


[View source]
def registered_address : Stripe::AddressSpecs | Nil #

[View source]
def registered_address=(new_value : Stripe::AddressSpecs | Nil) #

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


[View source]
def relationship : Stripe::RelationshipSpecs | Nil #

[View source]
def relationship=(new_value : Stripe::RelationshipSpecs | Nil) #

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


[View source]
def ssn_last_4 : String | Nil #

[View source]
def ssn_last_4=(new_value : String | Nil) #

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


[View source]
def valid? : Bool #

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


[View source]
def verification : Stripe::PersonVerificationSpecs | Nil #

[View source]
def verification=(new_value : Stripe::PersonVerificationSpecs | Nil) #

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


[View source]