class Stripe::Person

Overview

This is an object representing a person associated with a Stripe account. A platform cannot access a person for an account where account.controller.requirement_collection is stripe, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding. See the Standard onboarding or Express onboarding documentation for information about prefilling information and account onboarding steps. Learn more about handling identity verification with the API.

Included Modules

Defined in:

stripe/models/person.cr

Constant Summary

ERROR_MESSAGE_FOR_OBJECT = "invalid value for \"object\", must be one of [person]."
ERROR_MESSAGE_FOR_POLITICAL_EXPOSURE = "invalid value for \"political_exposure\", must be one of [existing, none]."
MAX_LENGTH_FOR_ACCOUNT = 5000
MAX_LENGTH_FOR_EMAIL = 5000
MAX_LENGTH_FOR_FIRST_NAME = 5000
MAX_LENGTH_FOR_FIRST_NAME_KANA = 5000
MAX_LENGTH_FOR_FIRST_NAME_KANJI = 5000
MAX_LENGTH_FOR_ID = 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_PHONE = 5000
VALID_VALUES_FOR_OBJECT = String.static_array("person")
VALID_VALUES_FOR_POLITICAL_EXPOSURE = String.static_array("existing", "none")

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(*, created : Int64 | Nil = nil, id : String | Nil = nil, object : String | Nil = nil, account : String | Nil = nil, additional_tos_acceptances : Stripe::PersonAdditionalTosAcceptances | Nil = nil, address : Stripe::Address | Nil = nil, address_kana : Stripe::PersonAddressKana | Nil = nil, address_kanji : Stripe::PersonAddressKanji | Nil = nil, dob : Stripe::LegalEntityDob | 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 : Array(String) | Nil = nil, future_requirements : Stripe::PersonFutureRequirements1 | Nil = nil, gender : String | Nil = nil, id_number_provided : Bool | Nil = nil, id_number_secondary_provided : Bool | 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 : Hash(String, String) | Nil = nil, nationality : String | Nil = nil, phone : String | Nil = nil, political_exposure : String | Nil = nil, registered_address : Stripe::Address | Nil = nil, relationship : Stripe::PersonRelationship | Nil = nil, requirements : Stripe::PersonRequirements1 | Nil = nil, ssn_last_4_provided : Bool | Nil = nil, verification : Stripe::LegalEntityPersonVerification | 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 account : String | Nil #

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

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


[View source]
def additional_tos_acceptances : Stripe::PersonAdditionalTosAcceptances | Nil #

[View source]
def additional_tos_acceptances=(new_value : Stripe::PersonAdditionalTosAcceptances | Nil) #

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


[View source]
def address : Stripe::Address | Nil #

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

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


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

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

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


[View source]
def address_kana_present=(address_kana_present : Bool) #

[View source]
def address_kana_present? : Bool #

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

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

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


[View source]
def address_kanji_present=(address_kanji_present : Bool) #

[View source]
def address_kanji_present? : Bool #

[View source]
def created : Int64 | Nil #

[View source]
def created=(new_value : Int64 | Nil) #

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


[View source]
def dob : Stripe::LegalEntityDob | Nil #

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

Custom attribute writer method checking allowed values (enum). @param [Object] dob 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 email_present=(email_present : Bool) #

[View source]
def email_present? : Bool #

[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_kana_present=(first_name_kana_present : Bool) #

[View source]
def first_name_kana_present? : Bool #

[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]
def first_name_kanji_present=(first_name_kanji_present : Bool) #

[View source]
def first_name_kanji_present? : Bool #

[View source]
def first_name_present=(first_name_present : Bool) #

[View source]
def first_name_present? : Bool #

[View source]
def full_name_aliases : Array(String) | Nil #

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

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


[View source]
def future_requirements : Stripe::PersonFutureRequirements1 | Nil #

[View source]
def future_requirements=(new_value : Stripe::PersonFutureRequirements1 | Nil) #

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


[View source]
def future_requirements_present=(future_requirements_present : Bool) #

[View source]
def future_requirements_present? : Bool #

[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 gender_present=(gender_present : Bool) #

[View source]
def gender_present? : Bool #

[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 : String | Nil #

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

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


[View source]
def id_number_provided : Bool | Nil #

[View source]
def id_number_provided=(new_value : Bool | Nil) #

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


[View source]
def id_number_secondary_provided : Bool | Nil #

[View source]
def id_number_secondary_provided=(new_value : Bool | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] id_number_secondary_provided 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_kana_present=(last_name_kana_present : Bool) #

[View source]
def last_name_kana_present? : Bool #

[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 last_name_kanji_present=(last_name_kanji_present : Bool) #

[View source]
def last_name_kanji_present? : Bool #

[View source]
def last_name_present=(last_name_present : Bool) #

[View source]
def last_name_present? : Bool #

[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 maiden_name_present=(maiden_name_present : Bool) #

[View source]
def maiden_name_present? : Bool #

[View source]
def metadata : Hash(String, String) | Nil #

[View source]
def metadata=(new_value : Hash(String, String) | 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 nationality_present=(nationality_present : Bool) #

[View source]
def nationality_present? : Bool #

[View source]
def object : String | Nil #

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

Custom attribute writer method checking allowed values (enum). @param [Object] object 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 phone_present=(phone_present : Bool) #

[View source]
def phone_present? : Bool #

[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::Address | Nil #

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

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


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

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

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


[View source]
def requirements : Stripe::PersonRequirements1 | Nil #

[View source]
def requirements=(new_value : Stripe::PersonRequirements1 | Nil) #

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


[View source]
def requirements_present=(requirements_present : Bool) #

[View source]
def requirements_present? : Bool #

[View source]
def ssn_last_4_provided : Bool | Nil #

[View source]
def ssn_last_4_provided=(new_value : Bool | Nil) #

Custom attribute writer method checking allowed values (enum). @param [Object] ssn_last_4_provided 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::LegalEntityPersonVerification | Nil #

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

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


[View source]