Debian Codegraph @

stripe/v2/core/_account_person.py

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