Debian Codegraph @

stripe/params/v2/core/accounts/_person_create_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from typing import Dict, List
4 from typing_extensions import Literal, NotRequired, TypedDict
5
6
7 class PersonCreateParams(TypedDict):
8 additional_addresses: NotRequired[
9 List["PersonCreateParamsAdditionalAddress"]
10 ]
11 """
12 Additional addresses associated with the person.
13 """
14 additional_names: NotRequired[List["PersonCreateParamsAdditionalName"]]
15 """
16 Additional names (e.g. aliases) associated with the person.
17 """
18 additional_terms_of_service: NotRequired[
19 "PersonCreateParamsAdditionalTermsOfService"
20 ]
21 """
22 Attestations of accepted terms of service agreements.
23 """
24 address: NotRequired["PersonCreateParamsAddress"]
25 """
26 The person's residential address.
27 """
28 date_of_birth: NotRequired["PersonCreateParamsDateOfBirth"]
29 """
30 The person's date of birth.
31 """
32 documents: NotRequired["PersonCreateParamsDocuments"]
33 """
34 Documents that may be submitted to satisfy various informational requests.
35 """
36 email: NotRequired[str]
37 """
38 Email.
39 """
40 given_name: NotRequired[str]
41 """
42 The person's first name.
43 """
44 id_numbers: NotRequired[List["PersonCreateParamsIdNumber"]]
45 """
46 The identification numbers (e.g., SSN) associated with the person.
47 """
48 legal_gender: NotRequired[Literal["female", "male"]]
49 """
50 The person's gender (International regulations require either "male" or "female").
51 """
52 metadata: NotRequired[Dict[str, str]]
53 """
54 Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
55 """
56 nationalities: NotRequired[List[str]]
57 """
58 The nationalities (countries) this person is associated with.
59 """
60 person_token: NotRequired[str]
61 """
62 The person token generated by the person token api.
63 """
64 phone: NotRequired[str]
65 """
66 The phone number for this person.
67 """
68 political_exposure: NotRequired[Literal["existing", "none"]]
69 """
70 The person's political exposure.
71 """
72 relationship: NotRequired["PersonCreateParamsRelationship"]
73 """
74 The relationship that this person has with the Account's business or legal entity.
75 """
76 script_addresses: NotRequired["PersonCreateParamsScriptAddresses"]
77 """
78 The script addresses (e.g., non-Latin characters) associated with the person.
79 """
80 script_names: NotRequired["PersonCreateParamsScriptNames"]
81 """
82 The script names (e.g. non-Latin characters) associated with the person.
83 """
84 surname: NotRequired[str]
85 """
86 The person's last name.
87 """
88
89
90 class PersonCreateParamsAdditionalAddress(TypedDict):
91 city: NotRequired[str]
92 """
93 City, district, suburb, town, or village.
94 """
95 country: str
96 """
97 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
98 """
99 line1: NotRequired[str]
100 """
101 Address line 1 (e.g., street, PO Box, or company name).
102 """
103 line2: NotRequired[str]
104 """
105 Address line 2 (e.g., apartment, suite, unit, or building).
106 """
107 postal_code: NotRequired[str]
108 """
109 ZIP or postal code.
110 """
111 purpose: Literal["registered"]
112 """
113 Purpose of additional address.
114 """
115 state: NotRequired[str]
116 """
117 State, county, province, or region.
118 """
119 town: NotRequired[str]
120 """
121 Town or district.
122 """
123
124
125 class PersonCreateParamsAdditionalName(TypedDict):
126 full_name: NotRequired[str]
127 """
128 The person's full name.
129 """
130 given_name: NotRequired[str]
131 """
132 The person's first or given name.
133 """
134 purpose: Literal["alias", "maiden"]
135 """
136 The purpose or type of the additional name.
137 """
138 surname: NotRequired[str]
139 """
140 The person's last or family name.
141 """
142
143
144 class PersonCreateParamsAdditionalTermsOfService(TypedDict):
145 account: NotRequired["PersonCreateParamsAdditionalTermsOfServiceAccount"]
146 """
147 Stripe terms of service agreement.
148 """
149
150
151 class PersonCreateParamsAdditionalTermsOfServiceAccount(TypedDict):
152 date: str
153 """
154 The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
155 """
156 ip: str
157 """
158 The IP address from which the Account's representative accepted the terms of service.
159 """
160 user_agent: NotRequired[str]
161 """
162 The user agent of the browser from which the Account's representative accepted the terms of service.
163 """
164
165
166 class PersonCreateParamsAddress(TypedDict):
167 city: NotRequired[str]
168 """
169 City, district, suburb, town, or village.
170 """
171 country: str
172 """
173 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
174 """
175 line1: NotRequired[str]
176 """
177 Address line 1 (e.g., street, PO Box, or company name).
178 """
179 line2: NotRequired[str]
180 """
181 Address line 2 (e.g., apartment, suite, unit, or building).
182 """
183 postal_code: NotRequired[str]
184 """
185 ZIP or postal code.
186 """
187 state: NotRequired[str]
188 """
189 State, county, province, or region.
190 """
191 town: NotRequired[str]
192 """
193 Town or district.
194 """
195
196
197 class PersonCreateParamsDateOfBirth(TypedDict):
198 day: int
199 """
200 The day of birth.
201 """
202 month: int
203 """
204 The month of birth.
205 """
206 year: int
207 """
208 The year of birth.
209 """
210
211
212 class PersonCreateParamsDocuments(TypedDict):
213 company_authorization: NotRequired[
214 "PersonCreateParamsDocumentsCompanyAuthorization"
215 ]
216 """
217 One or more documents that demonstrate proof that this person is authorized to represent the company.
218 """
219 passport: NotRequired["PersonCreateParamsDocumentsPassport"]
220 """
221 One or more documents showing the person's passport page with photo and personal data.
222 """
223 primary_verification: NotRequired[
224 "PersonCreateParamsDocumentsPrimaryVerification"
225 ]
226 """
227 An identifying document showing the person's name, either a passport or local ID card.
228 """
229 secondary_verification: NotRequired[
230 "PersonCreateParamsDocumentsSecondaryVerification"
231 ]
232 """
233 A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
234 """
235 visa: NotRequired["PersonCreateParamsDocumentsVisa"]
236 """
237 One or more documents showing the person's visa required for living in the country where they are residing.
238 """
239
240
241 class PersonCreateParamsDocumentsCompanyAuthorization(TypedDict):
242 files: List[str]
243 """
244 One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
245 """
246 type: Literal["files"]
247 """
248 The format of the document. Currently supports `files` only.
249 """
250
251
252 class PersonCreateParamsDocumentsPassport(TypedDict):
253 files: List[str]
254 """
255 One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
256 """
257 type: Literal["files"]
258 """
259 The format of the document. Currently supports `files` only.
260 """
261
262
263 class PersonCreateParamsDocumentsPrimaryVerification(TypedDict):
264 front_back: "PersonCreateParamsDocumentsPrimaryVerificationFrontBack"
265 """
266 The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
267 """
268 type: Literal["front_back"]
269 """
270 The format of the verification document. Currently supports `front_back` only.
271 """
272
273
274 class PersonCreateParamsDocumentsPrimaryVerificationFrontBack(TypedDict):
275 back: NotRequired[str]
276 """
277 A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be '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.
278 """
279 front: str
280 """
281 A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be '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.
282 """
283
284
285 class PersonCreateParamsDocumentsSecondaryVerification(TypedDict):
286 front_back: "PersonCreateParamsDocumentsSecondaryVerificationFrontBack"
287 """
288 The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
289 """
290 type: Literal["front_back"]
291 """
292 The format of the verification document. Currently supports `front_back` only.
293 """
294
295
296 class PersonCreateParamsDocumentsSecondaryVerificationFrontBack(TypedDict):
297 back: NotRequired[str]
298 """
299 A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be '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.
300 """
301 front: str
302 """
303 A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be '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.
304 """
305
306
307 class PersonCreateParamsDocumentsVisa(TypedDict):
308 files: List[str]
309 """
310 One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
311 """
312 type: Literal["files"]
313 """
314 The format of the document. Currently supports `files` only.
315 """
316
317
318 class PersonCreateParamsIdNumber(TypedDict):
319 type: Literal[
320 "ae_eid",
321 "ao_nif",
322 "ar_cuil",
323 "ar_dni",
324 "at_stn",
325 "az_tin",
326 "bd_brc",
327 "bd_etin",
328 "bd_nid",
329 "be_nrn",
330 "bg_ucn",
331 "bn_nric",
332 "br_cpf",
333 "ca_sin",
334 "ch_oasi",
335 "cl_rut",
336 "cn_pp",
337 "co_nuip",
338 "cr_ci",
339 "cr_cpf",
340 "cr_dimex",
341 "cr_nite",
342 "cy_tic",
343 "cz_rc",
344 "de_stn",
345 "dk_cpr",
346 "do_cie",
347 "do_rcn",
348 "ec_ci",
349 "ee_ik",
350 "es_nif",
351 "fi_hetu",
352 "fr_nir",
353 "gb_nino",
354 "gr_afm",
355 "gt_nit",
356 "hk_id",
357 "hr_oib",
358 "hu_ad",
359 "id_nik",
360 "ie_ppsn",
361 "is_kt",
362 "it_cf",
363 "jp_inc",
364 "ke_pin",
365 "kz_iin",
366 "li_peid",
367 "lt_ak",
368 "lu_nif",
369 "lv_pk",
370 "mx_rfc",
371 "my_nric",
372 "mz_nuit",
373 "ng_nin",
374 "nl_bsn",
375 "no_nin",
376 "nz_ird",
377 "pe_dni",
378 "pk_cnic",
379 "pk_snic",
380 "pl_pesel",
381 "pt_nif",
382 "ro_cnp",
383 "sa_tin",
384 "se_pin",
385 "sg_fin",
386 "sg_nric",
387 "sk_dic",
388 "th_lc",
389 "th_pin",
390 "tr_tin",
391 "us_itin",
392 "us_itin_last_4",
393 "us_ssn",
394 "us_ssn_last_4",
395 "uy_dni",
396 "za_id",
397 ]
398 """
399 The ID number type of an individual.
400 """
401 value: str
402 """
403 The value of the ID number.
404 """
405
406
407 class PersonCreateParamsRelationship(TypedDict):
408 authorizer: NotRequired[bool]
409 """
410 Whether the individual is an authorizer of the Account's identity.
411 """
412 director: NotRequired[bool]
413 """
414 Indicates whether the person is a director of the associated legal entity.
415 """
416 executive: NotRequired[bool]
417 """
418 Indicates whether the person is an executive of the associated legal entity.
419 """
420 legal_guardian: NotRequired[bool]
421 """
422 Indicates whether the person is a legal guardian of the associated legal entity.
423 """
424 owner: NotRequired[bool]
425 """
426 Indicates whether the person is an owner of the associated legal entity.
427 """
428 percent_ownership: NotRequired[str]
429 """
430 The percentage of ownership the person has in the associated legal entity.
431 """
432 representative: NotRequired[bool]
433 """
434 Indicates whether the person is a representative of the associated legal entity.
435 """
436 title: NotRequired[str]
437 """
438 The title or position the person holds in the associated legal entity.
439 """
440
441
442 class PersonCreateParamsScriptAddresses(TypedDict):
443 kana: NotRequired["PersonCreateParamsScriptAddressesKana"]
444 """
445 Kana Address.
446 """
447 kanji: NotRequired["PersonCreateParamsScriptAddressesKanji"]
448 """
449 Kanji Address.
450 """
451
452
453 class PersonCreateParamsScriptAddressesKana(TypedDict):
454 city: NotRequired[str]
455 """
456 City, district, suburb, town, or village.
457 """
458 country: str
459 """
460 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
461 """
462 line1: NotRequired[str]
463 """
464 Address line 1 (e.g., street, PO Box, or company name).
465 """
466 line2: NotRequired[str]
467 """
468 Address line 2 (e.g., apartment, suite, unit, or building).
469 """
470 postal_code: NotRequired[str]
471 """
472 ZIP or postal code.
473 """
474 state: NotRequired[str]
475 """
476 State, county, province, or region.
477 """
478 town: NotRequired[str]
479 """
480 Town or district.
481 """
482
483
484 class PersonCreateParamsScriptAddressesKanji(TypedDict):
485 city: NotRequired[str]
486 """
487 City, district, suburb, town, or village.
488 """
489 country: str
490 """
491 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
492 """
493 line1: NotRequired[str]
494 """
495 Address line 1 (e.g., street, PO Box, or company name).
496 """
497 line2: NotRequired[str]
498 """
499 Address line 2 (e.g., apartment, suite, unit, or building).
500 """
501 postal_code: NotRequired[str]
502 """
503 ZIP or postal code.
504 """
505 state: NotRequired[str]
506 """
507 State, county, province, or region.
508 """
509 town: NotRequired[str]
510 """
511 Town or district.
512 """
513
514
515 class PersonCreateParamsScriptNames(TypedDict):
516 kana: NotRequired["PersonCreateParamsScriptNamesKana"]
517 """
518 Persons name in kana script.
519 """
520 kanji: NotRequired["PersonCreateParamsScriptNamesKanji"]
521 """
522 Persons name in kanji script.
523 """
524
525
526 class PersonCreateParamsScriptNamesKana(TypedDict):
527 given_name: NotRequired[str]
528 """
529 The person's first or given name.
530 """
531 surname: NotRequired[str]
532 """
533 The person's last or family name.
534 """
535
536
537 class PersonCreateParamsScriptNamesKanji(TypedDict):
538 given_name: NotRequired[str]
539 """
540 The person's first or given name.
541 """
542 surname: NotRequired[str]
543 """
544 The person's last or family name.
545 """