Class: Stripe::TokenService::CreateParams::Person
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::TokenService::CreateParams::Person
- Defined in:
- lib/stripe/services/token_service.rb
Defined Under Namespace
Classes: AdditionalTosAcceptances, Address, AddressKana, AddressKanji, Dob, Documents, RegisteredAddress, Relationship, Verification
Instance Attribute Summary collapse
-
#additional_tos_acceptances ⇒ Object
Details on the legal guardian’s or authorizer’s acceptance of the required Stripe agreements.
-
#address ⇒ Object
The person’s address.
-
#address_kana ⇒ Object
The Kana variation of the person’s address (Japan only).
-
#address_kanji ⇒ Object
The Kanji variation of the person’s address (Japan only).
-
#dob ⇒ Object
The person’s date of birth.
-
#documents ⇒ Object
Documents that may be submitted to satisfy various informational requests.
-
#email ⇒ Object
The person’s email address.
-
#first_name ⇒ Object
The person’s first name.
-
#first_name_kana ⇒ Object
The Kana variation of the person’s first name (Japan only).
-
#first_name_kanji ⇒ Object
The Kanji variation of the person’s first name (Japan only).
-
#full_name_aliases ⇒ Object
A list of alternate names or aliases that the person is known by.
-
#gender ⇒ Object
The person’s gender (International regulations require either “male” or “female”).
-
#id_number ⇒ Object
The person’s ID number, as appropriate for their country.
-
#id_number_secondary ⇒ Object
The person’s secondary ID number, as appropriate for their country, will be used for enhanced verification checks.
-
#last_name ⇒ Object
The person’s last name.
-
#last_name_kana ⇒ Object
The Kana variation of the person’s last name (Japan only).
-
#last_name_kanji ⇒ Object
The Kanji variation of the person’s last name (Japan only).
-
#maiden_name ⇒ Object
The person’s maiden name.
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
-
#nationality ⇒ Object
The country where the person is a national.
-
#phone ⇒ Object
The person’s phone number.
-
#political_exposure ⇒ Object
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.
-
#registered_address ⇒ Object
The person’s registered address.
-
#relationship ⇒ Object
The relationship that this person has with the account’s legal entity.
-
#ssn_last_4 ⇒ Object
The last four digits of the person’s Social Security number (U.S. only).
-
#verification ⇒ Object
The person’s verification status.
Instance Method Summary collapse
Methods inherited from RequestParams
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, verification: nil) ⇒ Person
Returns a new instance of Person.
1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 |
# File 'lib/stripe/services/token_service.rb', line 1043 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, 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 @metadata = @nationality = nationality @phone = phone @political_exposure = political_exposure @registered_address = registered_address @relationship = relationship @ssn_last_4 = ssn_last_4 @verification = verification end |
Instance Attribute Details
#additional_tos_acceptances ⇒ Object
Details on the legal guardian’s or authorizer’s acceptance of the required Stripe agreements.
991 992 993 |
# File 'lib/stripe/services/token_service.rb', line 991 def additional_tos_acceptances @additional_tos_acceptances end |
#address ⇒ Object
The person’s address.
993 994 995 |
# File 'lib/stripe/services/token_service.rb', line 993 def address @address end |
#address_kana ⇒ Object
The Kana variation of the person’s address (Japan only).
995 996 997 |
# File 'lib/stripe/services/token_service.rb', line 995 def address_kana @address_kana end |
#address_kanji ⇒ Object
The Kanji variation of the person’s address (Japan only).
997 998 999 |
# File 'lib/stripe/services/token_service.rb', line 997 def address_kanji @address_kanji end |
#dob ⇒ Object
The person’s date of birth.
999 1000 1001 |
# File 'lib/stripe/services/token_service.rb', line 999 def dob @dob end |
#documents ⇒ Object
Documents that may be submitted to satisfy various informational requests.
1001 1002 1003 |
# File 'lib/stripe/services/token_service.rb', line 1001 def documents @documents end |
#email ⇒ Object
The person’s email address.
1003 1004 1005 |
# File 'lib/stripe/services/token_service.rb', line 1003 def email @email end |
#first_name ⇒ Object
The person’s first name.
1005 1006 1007 |
# File 'lib/stripe/services/token_service.rb', line 1005 def first_name @first_name end |
#first_name_kana ⇒ Object
The Kana variation of the person’s first name (Japan only).
1007 1008 1009 |
# File 'lib/stripe/services/token_service.rb', line 1007 def first_name_kana @first_name_kana end |
#first_name_kanji ⇒ Object
The Kanji variation of the person’s first name (Japan only).
1009 1010 1011 |
# File 'lib/stripe/services/token_service.rb', line 1009 def first_name_kanji @first_name_kanji end |
#full_name_aliases ⇒ Object
A list of alternate names or aliases that the person is known by.
1011 1012 1013 |
# File 'lib/stripe/services/token_service.rb', line 1011 def full_name_aliases @full_name_aliases end |
#gender ⇒ Object
The person’s gender (International regulations require either “male” or “female”).
1013 1014 1015 |
# File 'lib/stripe/services/token_service.rb', line 1013 def gender @gender end |
#id_number ⇒ Object
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).
1015 1016 1017 |
# File 'lib/stripe/services/token_service.rb', line 1015 def id_number @id_number end |
#id_number_secondary ⇒ Object
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).
1017 1018 1019 |
# File 'lib/stripe/services/token_service.rb', line 1017 def id_number_secondary @id_number_secondary end |
#last_name ⇒ Object
The person’s last name.
1019 1020 1021 |
# File 'lib/stripe/services/token_service.rb', line 1019 def last_name @last_name end |
#last_name_kana ⇒ Object
The Kana variation of the person’s last name (Japan only).
1021 1022 1023 |
# File 'lib/stripe/services/token_service.rb', line 1021 def last_name_kana @last_name_kana end |
#last_name_kanji ⇒ Object
The Kanji variation of the person’s last name (Japan only).
1023 1024 1025 |
# File 'lib/stripe/services/token_service.rb', line 1023 def last_name_kanji @last_name_kanji end |
#maiden_name ⇒ Object
The person’s maiden name.
1025 1026 1027 |
# File 'lib/stripe/services/token_service.rb', line 1025 def maiden_name @maiden_name end |
#metadata ⇒ Object
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`.
1027 1028 1029 |
# File 'lib/stripe/services/token_service.rb', line 1027 def @metadata end |
#nationality ⇒ Object
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.
1029 1030 1031 |
# File 'lib/stripe/services/token_service.rb', line 1029 def nationality @nationality end |
#phone ⇒ Object
The person’s phone number.
1031 1032 1033 |
# File 'lib/stripe/services/token_service.rb', line 1031 def phone @phone end |
#political_exposure ⇒ Object
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.
1033 1034 1035 |
# File 'lib/stripe/services/token_service.rb', line 1033 def political_exposure @political_exposure end |
#registered_address ⇒ Object
The person’s registered address.
1035 1036 1037 |
# File 'lib/stripe/services/token_service.rb', line 1035 def registered_address @registered_address end |
#relationship ⇒ Object
The relationship that this person has with the account’s legal entity.
1037 1038 1039 |
# File 'lib/stripe/services/token_service.rb', line 1037 def relationship @relationship end |
#ssn_last_4 ⇒ Object
The last four digits of the person’s Social Security number (U.S. only).
1039 1040 1041 |
# File 'lib/stripe/services/token_service.rb', line 1039 def ssn_last_4 @ssn_last_4 end |
#verification ⇒ Object
The person’s verification status.
1041 1042 1043 |
# File 'lib/stripe/services/token_service.rb', line 1041 def verification @verification end |