Debian Codegraph @

stripe/params/_account_create_person_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from stripe._request_options import RequestOptions
4 from typing import Dict, List
5 from typing_extensions import Literal, NotRequired, TypedDict
6
7
8 class AccountCreatePersonParams(RequestOptions):
9 additional_tos_acceptances: NotRequired[
10 "AccountCreatePersonParamsAdditionalTosAcceptances"
11 ]
12 """
13 Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
14 """
15 address: NotRequired["AccountCreatePersonParamsAddress"]
16 """
17 The person's address.
18 """
19 address_kana: NotRequired["AccountCreatePersonParamsAddressKana"]
20 """
21 The Kana variation of the person's address (Japan only).
22 """
23 address_kanji: NotRequired["AccountCreatePersonParamsAddressKanji"]
24 """
25 The Kanji variation of the person's address (Japan only).
26 """
27 dob: NotRequired["Literal['']|AccountCreatePersonParamsDob"]
28 """
29 The person's date of birth.
30 """
31 documents: NotRequired["AccountCreatePersonParamsDocuments"]
32 """
33 Documents that may be submitted to satisfy various informational requests.
34 """
35 email: NotRequired[str]
36 """
37 The person's email address.
38 """
39 expand: NotRequired[List[str]]
40 """
41 Specifies which fields in the response should be expanded.
42 """
43 first_name: NotRequired[str]
44 """
45 The person's first name.
46 """
47 first_name_kana: NotRequired[str]
48 """
49 The Kana variation of the person's first name (Japan only).
50 """
51 first_name_kanji: NotRequired[str]
52 """
53 The Kanji variation of the person's first name (Japan only).
54 """
55 full_name_aliases: NotRequired["Literal['']|List[str]"]
56 """
57 A list of alternate names or aliases that the person is known by.
58 """
59 gender: NotRequired[str]
60 """
61 The person's gender (International regulations require either "male" or "female").
62 """
63 id_number: NotRequired[str]
64 """
65 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](https://docs.stripe.com/js/tokens/create_token?type=pii).
66 """
67 id_number_secondary: NotRequired[str]
68 """
69 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](https://docs.stripe.com/js/tokens/create_token?type=pii).
70 """
71 last_name: NotRequired[str]
72 """
73 The person's last name.
74 """
75 last_name_kana: NotRequired[str]
76 """
77 The Kana variation of the person's last name (Japan only).
78 """
79 last_name_kanji: NotRequired[str]
80 """
81 The Kanji variation of the person's last name (Japan only).
82 """
83 maiden_name: NotRequired[str]
84 """
85 The person's maiden name.
86 """
87 metadata: NotRequired["Literal['']|Dict[str, str]"]
88 """
89 Set of [key-value pairs](https://docs.stripe.com/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`.
90 """
91 nationality: NotRequired[str]
92 """
93 The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or "XX" if unavailable.
94 """
95 person_token: NotRequired[str]
96 """
97 A [person token](https://docs.stripe.com/connect/account-tokens), used to securely provide details to the person.
98 """
99 phone: NotRequired[str]
100 """
101 The person's phone number.
102 """
103 political_exposure: NotRequired[Literal["existing", "none"]]
104 """
105 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.
106 """
107 registered_address: NotRequired[
108 "AccountCreatePersonParamsRegisteredAddress"
109 ]
110 """
111 The person's registered address.
112 """
113 relationship: NotRequired["AccountCreatePersonParamsRelationship"]
114 """
115 The relationship that this person has with the account's legal entity.
116 """
117 ssn_last_4: NotRequired[str]
118 """
119 The last four digits of the person's Social Security number (U.S. only).
120 """
121 us_cfpb_data: NotRequired["AccountCreatePersonParamsUsCfpbData"]
122 """
123 Demographic data related to the person.
124 """
125 verification: NotRequired["AccountCreatePersonParamsVerification"]
126 """
127 The person's verification status.
128 """
129
130
131 class AccountCreatePersonParamsAdditionalTosAcceptances(TypedDict):
132 account: NotRequired[
133 "AccountCreatePersonParamsAdditionalTosAcceptancesAccount"
134 ]
135 """
136 Details on the legal guardian's acceptance of the main Stripe service agreement.
137 """
138
139
140 class AccountCreatePersonParamsAdditionalTosAcceptancesAccount(TypedDict):
141 date: NotRequired[int]
142 """
143 The Unix timestamp marking when the account representative accepted the service agreement.
144 """
145 ip: NotRequired[str]
146 """
147 The IP address from which the account representative accepted the service agreement.
148 """
149 user_agent: NotRequired["Literal['']|str"]
150 """
151 The user agent of the browser from which the account representative accepted the service agreement.
152 """
153
154
155 class AccountCreatePersonParamsAddress(TypedDict):
156 city: NotRequired[str]
157 """
158 City, district, suburb, town, or village.
159 """
160 country: NotRequired[str]
161 """
162 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
163 """
164 line1: NotRequired[str]
165 """
166 Address line 1, such as the street, PO Box, or company name.
167 """
168 line2: NotRequired[str]
169 """
170 Address line 2, such as the apartment, suite, unit, or building.
171 """
172 postal_code: NotRequired[str]
173 """
174 ZIP or postal code.
175 """
176 state: NotRequired[str]
177 """
178 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
179 """
180
181
182 class AccountCreatePersonParamsAddressKana(TypedDict):
183 city: NotRequired[str]
184 """
185 City or ward.
186 """
187 country: NotRequired[str]
188 """
189 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
190 """
191 line1: NotRequired[str]
192 """
193 Block or building number.
194 """
195 line2: NotRequired[str]
196 """
197 Building details.
198 """
199 postal_code: NotRequired[str]
200 """
201 Postal code.
202 """
203 state: NotRequired[str]
204 """
205 Prefecture.
206 """
207 town: NotRequired[str]
208 """
209 Town or cho-me.
210 """
211
212
213 class AccountCreatePersonParamsAddressKanji(TypedDict):
214 city: NotRequired[str]
215 """
216 City or ward.
217 """
218 country: NotRequired[str]
219 """
220 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
221 """
222 line1: NotRequired[str]
223 """
224 Block or building number.
225 """
226 line2: NotRequired[str]
227 """
228 Building details.
229 """
230 postal_code: NotRequired[str]
231 """
232 Postal code.
233 """
234 state: NotRequired[str]
235 """
236 Prefecture.
237 """
238 town: NotRequired[str]
239 """
240 Town or cho-me.
241 """
242
243
244 class AccountCreatePersonParamsDob(TypedDict):
245 day: int
246 """
247 The day of birth, between 1 and 31.
248 """
249 month: int
250 """
251 The month of birth, between 1 and 12.
252 """
253 year: int
254 """
255 The four-digit year of birth.
256 """
257
258
259 class AccountCreatePersonParamsDocuments(TypedDict):
260 company_authorization: NotRequired[
261 "AccountCreatePersonParamsDocumentsCompanyAuthorization"
262 ]
263 """
264 One or more documents that demonstrate proof that this person is authorized to represent the company.
265 """
266 passport: NotRequired["AccountCreatePersonParamsDocumentsPassport"]
267 """
268 One or more documents showing the person's passport page with photo and personal data.
269 """
270 visa: NotRequired["AccountCreatePersonParamsDocumentsVisa"]
271 """
272 One or more documents showing the person's visa required for living in the country where they are residing.
273 """
274
275
276 class AccountCreatePersonParamsDocumentsCompanyAuthorization(TypedDict):
277 files: NotRequired[List[str]]
278 """
279 One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
280 """
281
282
283 class AccountCreatePersonParamsDocumentsPassport(TypedDict):
284 files: NotRequired[List[str]]
285 """
286 One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
287 """
288
289
290 class AccountCreatePersonParamsDocumentsVisa(TypedDict):
291 files: NotRequired[List[str]]
292 """
293 One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
294 """
295
296
297 class AccountCreatePersonParamsRegisteredAddress(TypedDict):
298 city: NotRequired[str]
299 """
300 City, district, suburb, town, or village.
301 """
302 country: NotRequired[str]
303 """
304 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
305 """
306 line1: NotRequired[str]
307 """
308 Address line 1, such as the street, PO Box, or company name.
309 """
310 line2: NotRequired[str]
311 """
312 Address line 2, such as the apartment, suite, unit, or building.
313 """
314 postal_code: NotRequired[str]
315 """
316 ZIP or postal code.
317 """
318 state: NotRequired[str]
319 """
320 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
321 """
322
323
324 class AccountCreatePersonParamsRelationship(TypedDict):
325 authorizer: NotRequired[bool]
326 """
327 Whether the person is the authorizer of the account's representative.
328 """
329 director: NotRequired[bool]
330 """
331 Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
332 """
333 executive: NotRequired[bool]
334 """
335 Whether the person has significant responsibility to control, manage, or direct the organization.
336 """
337 legal_guardian: NotRequired[bool]
338 """
339 Whether the person is the legal guardian of the account's representative.
340 """
341 owner: NotRequired[bool]
342 """
343 Whether the person is an owner of the account's legal entity.
344 """
345 percent_ownership: NotRequired["Literal['']|float"]
346 """
347 The percent owned by the person of the account's legal entity.
348 """
349 representative: NotRequired[bool]
350 """
351 Whether the person is authorized as the primary representative of the account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account.
352 """
353 title: NotRequired[str]
354 """
355 The person's title (e.g., CEO, Support Engineer).
356 """
357
358
359 class AccountCreatePersonParamsUsCfpbData(TypedDict):
360 ethnicity_details: NotRequired[
361 "AccountCreatePersonParamsUsCfpbDataEthnicityDetails"
362 ]
363 """
364 The persons ethnicity details
365 """
366 race_details: NotRequired["AccountCreatePersonParamsUsCfpbDataRaceDetails"]
367 """
368 The persons race details
369 """
370 self_identified_gender: NotRequired[str]
371 """
372 The persons self-identified gender
373 """
374
375
376 class AccountCreatePersonParamsUsCfpbDataEthnicityDetails(TypedDict):
377 ethnicity: NotRequired[
378 List[
379 Literal[
380 "cuban",
381 "hispanic_or_latino",
382 "mexican",
383 "not_hispanic_or_latino",
384 "other_hispanic_or_latino",
385 "prefer_not_to_answer",
386 "puerto_rican",
387 ]
388 ]
389 ]
390 """
391 The persons ethnicity
392 """
393 ethnicity_other: NotRequired[str]
394 """
395 Please specify your origin, when other is selected.
396 """
397
398
399 class AccountCreatePersonParamsUsCfpbDataRaceDetails(TypedDict):
400 race: NotRequired[
401 List[
402 Literal[
403 "african_american",
404 "american_indian_or_alaska_native",
405 "asian",
406 "asian_indian",
407 "black_or_african_american",
408 "chinese",
409 "ethiopian",
410 "filipino",
411 "guamanian_or_chamorro",
412 "haitian",
413 "jamaican",
414 "japanese",
415 "korean",
416 "native_hawaiian",
417 "native_hawaiian_or_other_pacific_islander",
418 "nigerian",
419 "other_asian",
420 "other_black_or_african_american",
421 "other_pacific_islander",
422 "prefer_not_to_answer",
423 "samoan",
424 "somali",
425 "vietnamese",
426 "white",
427 ]
428 ]
429 ]
430 """
431 The persons race.
432 """
433 race_other: NotRequired[str]
434 """
435 Please specify your race, when other is selected.
436 """
437
438
439 class AccountCreatePersonParamsVerification(TypedDict):
440 additional_document: NotRequired[
441 "AccountCreatePersonParamsVerificationAdditionalDocument"
442 ]
443 """
444 A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
445 """
446 document: NotRequired["AccountCreatePersonParamsVerificationDocument"]
447 """
448 An identifying document, either a passport or local ID card.
449 """
450
451
452 class AccountCreatePersonParamsVerificationAdditionalDocument(TypedDict):
453 back: NotRequired[str]
454 """
455 The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
456 """
457 front: NotRequired[str]
458 """
459 The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
460 """
461
462
463 class AccountCreatePersonParamsVerificationDocument(TypedDict):
464 back: NotRequired[str]
465 """
466 The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
467 """
468 front: NotRequired[str]
469 """
470 The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
471 """