Debian Codegraph @

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