Class: Stripe::TokenCreateParams::Person

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/token_create_params.rb

Defined Under Namespace

Classes: AdditionalTosAcceptances, Address, AddressKana, AddressKanji, Dob, Documents, RegisteredAddress, Relationship, UsCfpbData, Verification

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(additional_tos_acceptances: nil, address: nil, address_kana: nil, address_kanji: nil, dob: nil, documents: nil, email: nil, first_name: nil, first_name_kana: nil, first_name_kanji: nil, full_name_aliases: nil, gender: nil, id_number: nil, id_number_secondary: nil, last_name: nil, last_name_kana: nil, last_name_kanji: nil, maiden_name: nil, metadata: nil, nationality: nil, phone: nil, political_exposure: nil, registered_address: nil, relationship: nil, ssn_last_4: nil, us_cfpb_data: nil, verification: nil) ⇒ Person



1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
# File 'lib/stripe/params/token_create_params.rb', line 1106

def initialize(
  additional_tos_acceptances: nil,
  address: nil,
  address_kana: nil,
  address_kanji: nil,
  dob: nil,
  documents: nil,
  email: nil,
  first_name: nil,
  first_name_kana: nil,
  first_name_kanji: nil,
  full_name_aliases: nil,
  gender: nil,
  id_number: nil,
  id_number_secondary: nil,
  last_name: nil,
  last_name_kana: nil,
  last_name_kanji: nil,
  maiden_name: nil,
  metadata: nil,
  nationality: nil,
  phone: nil,
  political_exposure: nil,
  registered_address: nil,
  relationship: nil,
  ssn_last_4: nil,
  us_cfpb_data: nil,
  verification: nil
)
  @additional_tos_acceptances = additional_tos_acceptances
  @address = address
  @address_kana = address_kana
  @address_kanji = address_kanji
  @dob = dob
  @documents = documents
  @email = email
  @first_name = first_name
  @first_name_kana = first_name_kana
  @first_name_kanji = first_name_kanji
  @full_name_aliases = full_name_aliases
  @gender = gender
  @id_number = id_number
  @id_number_secondary = id_number_secondary
  @last_name = last_name
  @last_name_kana = last_name_kana
  @last_name_kanji = last_name_kanji
  @maiden_name = maiden_name
   = 
  @nationality = nationality
  @phone = phone
  @political_exposure = political_exposure
  @registered_address = registered_address
  @relationship = relationship
  @ssn_last_4 = ssn_last_4
  @us_cfpb_data = us_cfpb_data
  @verification = verification
end

Instance Attribute Details

#additional_tos_acceptancesObject

Details on the legal guardian’s or authorizer’s acceptance of the required Stripe agreements.



1052
1053
1054
# File 'lib/stripe/params/token_create_params.rb', line 1052

def additional_tos_acceptances
  @additional_tos_acceptances
end

#addressObject

The person’s address.



1054
1055
1056
# File 'lib/stripe/params/token_create_params.rb', line 1054

def address
  @address
end

#address_kanaObject

The Kana variation of the person’s address (Japan only).



1056
1057
1058
# File 'lib/stripe/params/token_create_params.rb', line 1056

def address_kana
  @address_kana
end

#address_kanjiObject

The Kanji variation of the person’s address (Japan only).



1058
1059
1060
# File 'lib/stripe/params/token_create_params.rb', line 1058

def address_kanji
  @address_kanji
end

#dobObject

The person’s date of birth.



1060
1061
1062
# File 'lib/stripe/params/token_create_params.rb', line 1060

def dob
  @dob
end

#documentsObject

Documents that may be submitted to satisfy various informational requests.



1062
1063
1064
# File 'lib/stripe/params/token_create_params.rb', line 1062

def documents
  @documents
end

#emailObject

The person’s email address.



1064
1065
1066
# File 'lib/stripe/params/token_create_params.rb', line 1064

def email
  @email
end

#first_nameObject

The person’s first name.



1066
1067
1068
# File 'lib/stripe/params/token_create_params.rb', line 1066

def first_name
  @first_name
end

#first_name_kanaObject

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



1068
1069
1070
# File 'lib/stripe/params/token_create_params.rb', line 1068

def first_name_kana
  @first_name_kana
end

#first_name_kanjiObject

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



1070
1071
1072
# File 'lib/stripe/params/token_create_params.rb', line 1070

def first_name_kanji
  @first_name_kanji
end

#full_name_aliasesObject

A list of alternate names or aliases that the person is known by.



1072
1073
1074
# File 'lib/stripe/params/token_create_params.rb', line 1072

def full_name_aliases
  @full_name_aliases
end

#genderObject

The person’s gender (International regulations require either “male” or “female”).



1074
1075
1076
# File 'lib/stripe/params/token_create_params.rb', line 1074

def gender
  @gender
end

#id_numberObject

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](docs.stripe.com/js/tokens/create_token?type=pii).



1076
1077
1078
# File 'lib/stripe/params/token_create_params.rb', line 1076

def id_number
  @id_number
end

#id_number_secondaryObject

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](docs.stripe.com/js/tokens/create_token?type=pii).



1078
1079
1080
# File 'lib/stripe/params/token_create_params.rb', line 1078

def id_number_secondary
  @id_number_secondary
end

#last_nameObject

The person’s last name.



1080
1081
1082
# File 'lib/stripe/params/token_create_params.rb', line 1080

def last_name
  @last_name
end

#last_name_kanaObject

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



1082
1083
1084
# File 'lib/stripe/params/token_create_params.rb', line 1082

def last_name_kana
  @last_name_kana
end

#last_name_kanjiObject

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



1084
1085
1086
# File 'lib/stripe/params/token_create_params.rb', line 1084

def last_name_kanji
  @last_name_kanji
end

#maiden_nameObject

The person’s maiden name.



1086
1087
1088
# File 'lib/stripe/params/token_create_params.rb', line 1086

def maiden_name
  @maiden_name
end

#metadataObject

Set of [key-value pairs](stripe.com/docs/api/metadata) 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 to ‘metadata`.



1088
1089
1090
# File 'lib/stripe/params/token_create_params.rb', line 1088

def 
  
end

#nationalityObject

The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or “XX” if unavailable.



1090
1091
1092
# File 'lib/stripe/params/token_create_params.rb', line 1090

def nationality
  @nationality
end

#phoneObject

The person’s phone number.



1092
1093
1094
# File 'lib/stripe/params/token_create_params.rb', line 1092

def phone
  @phone
end

#political_exposureObject

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.



1094
1095
1096
# File 'lib/stripe/params/token_create_params.rb', line 1094

def political_exposure
  @political_exposure
end

#registered_addressObject

The person’s registered address.



1096
1097
1098
# File 'lib/stripe/params/token_create_params.rb', line 1096

def registered_address
  @registered_address
end

#relationshipObject

The relationship that this person has with the account’s legal entity.



1098
1099
1100
# File 'lib/stripe/params/token_create_params.rb', line 1098

def relationship
  @relationship
end

#ssn_last_4Object

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



1100
1101
1102
# File 'lib/stripe/params/token_create_params.rb', line 1100

def ssn_last_4
  @ssn_last_4
end

#us_cfpb_dataObject

Demographic data related to the person.



1102
1103
1104
# File 'lib/stripe/params/token_create_params.rb', line 1102

def us_cfpb_data
  @us_cfpb_data
end

#verificationObject

The person’s verification status.



1104
1105
1106
# File 'lib/stripe/params/token_create_params.rb', line 1104

def verification
  @verification
end