Debian Codegraph @

stripe/params/_token_create_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 TokenCreateParams(RequestOptions):
9 account: NotRequired["TokenCreateParamsAccount"]
10 """
11 Information for the account this token represents.
12 """
13 bank_account: NotRequired["TokenCreateParamsBankAccount"]
14 """
15 The bank account this token will represent.
16 """
17 card: NotRequired["TokenCreateParamsCard|str"]
18 """
19 The card this token will represent. If you also pass in a customer, the card must be the ID of a card belonging to the customer. Otherwise, if you do not pass in a customer, this is a dictionary containing a user's credit card details, with the options described below.
20 """
21 customer: NotRequired[str]
22 """
23 Create a token for the customer, which is owned by the application's account. You can only use this with an [OAuth access token](https://docs.stripe.com/connect/standard-accounts) or [Stripe-Account header](https://docs.stripe.com/connect/authentication). Learn more about [cloning saved payment methods](https://docs.stripe.com/connect/cloning-saved-payment-methods).
24 """
25 cvc_update: NotRequired["TokenCreateParamsCvcUpdate"]
26 """
27 The updated CVC value this token represents.
28 """
29 expand: NotRequired[List[str]]
30 """
31 Specifies which fields in the response should be expanded.
32 """
33 person: NotRequired["TokenCreateParamsPerson"]
34 """
35 Information for the person this token represents.
36 """
37 pii: NotRequired["TokenCreateParamsPii"]
38 """
39 The PII this token represents.
40 """
41
42
43 class TokenCreateParamsAccount(TypedDict):
44 business_type: NotRequired[
45 Literal["company", "government_entity", "individual", "non_profit"]
46 ]
47 """
48 The business type.
49 """
50 company: NotRequired["TokenCreateParamsAccountCompany"]
51 """
52 Information about the company or business.
53 """
54 individual: NotRequired["TokenCreateParamsAccountIndividual"]
55 """
56 Information about the person represented by the account.
57 """
58 tos_shown_and_accepted: NotRequired[bool]
59 """
60 Whether the user described by the data in the token has been shown [the Stripe Connected Account Agreement](https://docs.stripe.com/connect/account-tokens#stripe-connected-account-agreement). When creating an account token to create a new Connect account, this value must be `true`.
61 """
62
63
64 class TokenCreateParamsAccountCompany(TypedDict):
65 address: NotRequired["TokenCreateParamsAccountCompanyAddress"]
66 """
67 The company's primary address.
68 """
69 address_kana: NotRequired["TokenCreateParamsAccountCompanyAddressKana"]
70 """
71 The Kana variation of the company's primary address (Japan only).
72 """
73 address_kanji: NotRequired["TokenCreateParamsAccountCompanyAddressKanji"]
74 """
75 The Kanji variation of the company's primary address (Japan only).
76 """
77 directors_provided: NotRequired[bool]
78 """
79 Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
80 """
81 directorship_declaration: NotRequired[
82 "TokenCreateParamsAccountCompanyDirectorshipDeclaration"
83 ]
84 """
85 This hash is used to attest that the directors information provided to Stripe is both current and correct.
86 """
87 executives_provided: NotRequired[bool]
88 """
89 Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.executive` requirement.
90 """
91 export_license_id: NotRequired[str]
92 """
93 The export license ID number of the company, also referred as Import Export Code (India only).
94 """
95 export_purpose_code: NotRequired[str]
96 """
97 The purpose code to use for export transactions (India only).
98 """
99 name: NotRequired[str]
100 """
101 The company's legal name.
102 """
103 name_kana: NotRequired[str]
104 """
105 The Kana variation of the company's legal name (Japan only).
106 """
107 name_kanji: NotRequired[str]
108 """
109 The Kanji variation of the company's legal name (Japan only).
110 """
111 owners_provided: NotRequired[bool]
112 """
113 Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.owner` requirement.
114 """
115 ownership_declaration: NotRequired[
116 "TokenCreateParamsAccountCompanyOwnershipDeclaration"
117 ]
118 """
119 This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
120 """
121 ownership_declaration_shown_and_signed: NotRequired[bool]
122 """
123 Whether the user described by the data in the token has been shown the Ownership Declaration and indicated that it is correct.
124 """
125 ownership_exemption_reason: NotRequired[
126 "Literal['']|Literal['qualified_entity_exceeds_ownership_threshold', 'qualifies_as_financial_institution']"
127 ]
128 """
129 This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
130 """
131 phone: NotRequired[str]
132 """
133 The company's phone number (used for verification).
134 """
135 registration_date: NotRequired[
136 "Literal['']|TokenCreateParamsAccountCompanyRegistrationDate"
137 ]
138 """
139 When the business was incorporated or registered.
140 """
141 registration_number: NotRequired[str]
142 """
143 The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
144 """
145 representative_declaration: NotRequired[
146 "TokenCreateParamsAccountCompanyRepresentativeDeclaration"
147 ]
148 """
149 This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
150 """
151 structure: NotRequired[
152 "Literal['']|Literal['free_zone_establishment', 'free_zone_llc', 'government_instrumentality', 'governmental_unit', 'incorporated_non_profit', 'incorporated_partnership', 'limited_liability_partnership', 'llc', 'multi_member_llc', 'private_company', 'private_corporation', 'private_partnership', 'public_company', 'public_corporation', 'public_partnership', 'registered_charity', 'single_member_llc', 'sole_establishment', 'sole_proprietorship', 'tax_exempt_government_instrumentality', 'unincorporated_association', 'unincorporated_non_profit', 'unincorporated_partnership']"
153 ]
154 """
155 The category identifying the legal structure of the company or legal entity. See [Business structure](https://docs.stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
156 """
157 tax_id: NotRequired[str]
158 """
159 The business ID number of the company, as appropriate for the company's country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
160 """
161 tax_id_registrar: NotRequired[str]
162 """
163 The jurisdiction in which the `tax_id` is registered (Germany-based companies only).
164 """
165 vat_id: NotRequired[str]
166 """
167 The VAT number of the company.
168 """
169 verification: NotRequired["TokenCreateParamsAccountCompanyVerification"]
170 """
171 Information on the verification state of the company.
172 """
173
174
175 class TokenCreateParamsAccountCompanyAddress(TypedDict):
176 city: NotRequired[str]
177 """
178 City, district, suburb, town, or village.
179 """
180 country: NotRequired[str]
181 """
182 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
183 """
184 line1: NotRequired[str]
185 """
186 Address line 1, such as the street, PO Box, or company name.
187 """
188 line2: NotRequired[str]
189 """
190 Address line 2, such as the apartment, suite, unit, or building.
191 """
192 postal_code: NotRequired[str]
193 """
194 ZIP or postal code.
195 """
196 state: NotRequired[str]
197 """
198 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
199 """
200
201
202 class TokenCreateParamsAccountCompanyAddressKana(TypedDict):
203 city: NotRequired[str]
204 """
205 City or ward.
206 """
207 country: NotRequired[str]
208 """
209 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
210 """
211 line1: NotRequired[str]
212 """
213 Block or building number.
214 """
215 line2: NotRequired[str]
216 """
217 Building details.
218 """
219 postal_code: NotRequired[str]
220 """
221 Postal code.
222 """
223 state: NotRequired[str]
224 """
225 Prefecture.
226 """
227 town: NotRequired[str]
228 """
229 Town or cho-me.
230 """
231
232
233 class TokenCreateParamsAccountCompanyAddressKanji(TypedDict):
234 city: NotRequired[str]
235 """
236 City or ward.
237 """
238 country: NotRequired[str]
239 """
240 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
241 """
242 line1: NotRequired[str]
243 """
244 Block or building number.
245 """
246 line2: NotRequired[str]
247 """
248 Building details.
249 """
250 postal_code: NotRequired[str]
251 """
252 Postal code.
253 """
254 state: NotRequired[str]
255 """
256 Prefecture.
257 """
258 town: NotRequired[str]
259 """
260 Town or cho-me.
261 """
262
263
264 class TokenCreateParamsAccountCompanyDirectorshipDeclaration(TypedDict):
265 date: NotRequired[int]
266 """
267 The Unix timestamp marking when the directorship declaration attestation was made.
268 """
269 ip: NotRequired[str]
270 """
271 The IP address from which the directorship declaration attestation was made.
272 """
273 user_agent: NotRequired[str]
274 """
275 The user agent of the browser from which the directorship declaration attestation was made.
276 """
277
278
279 class TokenCreateParamsAccountCompanyOwnershipDeclaration(TypedDict):
280 date: NotRequired[int]
281 """
282 The Unix timestamp marking when the beneficial owner attestation was made.
283 """
284 ip: NotRequired[str]
285 """
286 The IP address from which the beneficial owner attestation was made.
287 """
288 user_agent: NotRequired[str]
289 """
290 The user agent of the browser from which the beneficial owner attestation was made.
291 """
292
293
294 class TokenCreateParamsAccountCompanyRegistrationDate(TypedDict):
295 day: int
296 """
297 The day of registration, between 1 and 31.
298 """
299 month: int
300 """
301 The month of registration, between 1 and 12.
302 """
303 year: int
304 """
305 The four-digit year of registration.
306 """
307
308
309 class TokenCreateParamsAccountCompanyRepresentativeDeclaration(TypedDict):
310 date: NotRequired[int]
311 """
312 The Unix timestamp marking when the representative declaration attestation was made.
313 """
314 ip: NotRequired[str]
315 """
316 The IP address from which the representative declaration attestation was made.
317 """
318 user_agent: NotRequired[str]
319 """
320 The user agent of the browser from which the representative declaration attestation was made.
321 """
322
323
324 class TokenCreateParamsAccountCompanyVerification(TypedDict):
325 document: NotRequired[
326 "TokenCreateParamsAccountCompanyVerificationDocument"
327 ]
328 """
329 A document verifying the business.
330 """
331
332
333 class TokenCreateParamsAccountCompanyVerificationDocument(TypedDict):
334 back: NotRequired[str]
335 """
336 The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. 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.
337 """
338 front: NotRequired[str]
339 """
340 The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. 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.
341 """
342
343
344 class TokenCreateParamsAccountIndividual(TypedDict):
345 address: NotRequired["TokenCreateParamsAccountIndividualAddress"]
346 """
347 The individual's primary address.
348 """
349 address_kana: NotRequired["TokenCreateParamsAccountIndividualAddressKana"]
350 """
351 The Kana variation of the individual's primary address (Japan only).
352 """
353 address_kanji: NotRequired[
354 "TokenCreateParamsAccountIndividualAddressKanji"
355 ]
356 """
357 The Kanji variation of the individual's primary address (Japan only).
358 """
359 dob: NotRequired["Literal['']|TokenCreateParamsAccountIndividualDob"]
360 """
361 The individual's date of birth.
362 """
363 email: NotRequired[str]
364 """
365 The individual's email address.
366 """
367 first_name: NotRequired[str]
368 """
369 The individual's first name.
370 """
371 first_name_kana: NotRequired[str]
372 """
373 The Kana variation of the individual's first name (Japan only).
374 """
375 first_name_kanji: NotRequired[str]
376 """
377 The Kanji variation of the individual's first name (Japan only).
378 """
379 full_name_aliases: NotRequired["Literal['']|List[str]"]
380 """
381 A list of alternate names or aliases that the individual is known by.
382 """
383 gender: NotRequired[str]
384 """
385 The individual's gender
386 """
387 id_number: NotRequired[str]
388 """
389 The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
390 """
391 id_number_secondary: NotRequired[str]
392 """
393 The government-issued secondary ID number of the individual, as appropriate for the representative's 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 created with Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
394 """
395 last_name: NotRequired[str]
396 """
397 The individual's last name.
398 """
399 last_name_kana: NotRequired[str]
400 """
401 The Kana variation of the individual's last name (Japan only).
402 """
403 last_name_kanji: NotRequired[str]
404 """
405 The Kanji variation of the individual's last name (Japan only).
406 """
407 maiden_name: NotRequired[str]
408 """
409 The individual's maiden name.
410 """
411 metadata: NotRequired["Literal['']|Dict[str, str]"]
412 """
413 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`.
414 """
415 phone: NotRequired[str]
416 """
417 The individual's phone number.
418 """
419 political_exposure: NotRequired[Literal["existing", "none"]]
420 """
421 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.
422 """
423 registered_address: NotRequired[
424 "TokenCreateParamsAccountIndividualRegisteredAddress"
425 ]
426 """
427 The individual's registered address.
428 """
429 relationship: NotRequired["TokenCreateParamsAccountIndividualRelationship"]
430 """
431 Describes the person's relationship to the account.
432 """
433 ssn_last_4: NotRequired[str]
434 """
435 The last four digits of the individual's Social Security Number (U.S. only).
436 """
437 verification: NotRequired["TokenCreateParamsAccountIndividualVerification"]
438 """
439 The individual's verification document information.
440 """
441
442
443 class TokenCreateParamsAccountIndividualAddress(TypedDict):
444 city: NotRequired[str]
445 """
446 City, district, suburb, town, or village.
447 """
448 country: NotRequired[str]
449 """
450 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
451 """
452 line1: NotRequired[str]
453 """
454 Address line 1, such as the street, PO Box, or company name.
455 """
456 line2: NotRequired[str]
457 """
458 Address line 2, such as the apartment, suite, unit, or building.
459 """
460 postal_code: NotRequired[str]
461 """
462 ZIP or postal code.
463 """
464 state: NotRequired[str]
465 """
466 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
467 """
468
469
470 class TokenCreateParamsAccountIndividualAddressKana(TypedDict):
471 city: NotRequired[str]
472 """
473 City or ward.
474 """
475 country: NotRequired[str]
476 """
477 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
478 """
479 line1: NotRequired[str]
480 """
481 Block or building number.
482 """
483 line2: NotRequired[str]
484 """
485 Building details.
486 """
487 postal_code: NotRequired[str]
488 """
489 Postal code.
490 """
491 state: NotRequired[str]
492 """
493 Prefecture.
494 """
495 town: NotRequired[str]
496 """
497 Town or cho-me.
498 """
499
500
501 class TokenCreateParamsAccountIndividualAddressKanji(TypedDict):
502 city: NotRequired[str]
503 """
504 City or ward.
505 """
506 country: NotRequired[str]
507 """
508 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
509 """
510 line1: NotRequired[str]
511 """
512 Block or building number.
513 """
514 line2: NotRequired[str]
515 """
516 Building details.
517 """
518 postal_code: NotRequired[str]
519 """
520 Postal code.
521 """
522 state: NotRequired[str]
523 """
524 Prefecture.
525 """
526 town: NotRequired[str]
527 """
528 Town or cho-me.
529 """
530
531
532 class TokenCreateParamsAccountIndividualDob(TypedDict):
533 day: int
534 """
535 The day of birth, between 1 and 31.
536 """
537 month: int
538 """
539 The month of birth, between 1 and 12.
540 """
541 year: int
542 """
543 The four-digit year of birth.
544 """
545
546
547 class TokenCreateParamsAccountIndividualRegisteredAddress(TypedDict):
548 city: NotRequired[str]
549 """
550 City, district, suburb, town, or village.
551 """
552 country: NotRequired[str]
553 """
554 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
555 """
556 line1: NotRequired[str]
557 """
558 Address line 1, such as the street, PO Box, or company name.
559 """
560 line2: NotRequired[str]
561 """
562 Address line 2, such as the apartment, suite, unit, or building.
563 """
564 postal_code: NotRequired[str]
565 """
566 ZIP or postal code.
567 """
568 state: NotRequired[str]
569 """
570 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
571 """
572
573
574 class TokenCreateParamsAccountIndividualRelationship(TypedDict):
575 director: NotRequired[bool]
576 """
577 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.
578 """
579 executive: NotRequired[bool]
580 """
581 Whether the person has significant responsibility to control, manage, or direct the organization.
582 """
583 owner: NotRequired[bool]
584 """
585 Whether the person is an owner of the account's legal entity.
586 """
587 percent_ownership: NotRequired["Literal['']|float"]
588 """
589 The percent owned by the person of the account's legal entity.
590 """
591 title: NotRequired[str]
592 """
593 The person's title (e.g., CEO, Support Engineer).
594 """
595
596
597 class TokenCreateParamsAccountIndividualVerification(TypedDict):
598 additional_document: NotRequired[
599 "TokenCreateParamsAccountIndividualVerificationAdditionalDocument"
600 ]
601 """
602 A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
603 """
604 document: NotRequired[
605 "TokenCreateParamsAccountIndividualVerificationDocument"
606 ]
607 """
608 An identifying document, either a passport or local ID card.
609 """
610
611
612 class TokenCreateParamsAccountIndividualVerificationAdditionalDocument(
613 TypedDict,
614 ):
615 back: NotRequired[str]
616 """
617 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.
618 """
619 front: NotRequired[str]
620 """
621 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.
622 """
623
624
625 class TokenCreateParamsAccountIndividualVerificationDocument(TypedDict):
626 back: NotRequired[str]
627 """
628 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.
629 """
630 front: NotRequired[str]
631 """
632 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.
633 """
634
635
636 class TokenCreateParamsBankAccount(TypedDict):
637 account_holder_name: NotRequired[str]
638 """
639 The name of the person or business that owns the bank account. This field is required when attaching the bank account to a `Customer` object.
640 """
641 account_holder_type: NotRequired[Literal["company", "individual"]]
642 """
643 The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
644 """
645 account_number: str
646 """
647 The account number for the bank account, in string form. Must be a checking account.
648 """
649 account_type: NotRequired[Literal["checking", "futsu", "savings", "toza"]]
650 """
651 The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
652 """
653 country: str
654 """
655 The country in which the bank account is located.
656 """
657 currency: NotRequired[str]
658 """
659 The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](https://docs.stripe.com/payouts)
660 """
661 payment_method: NotRequired[str]
662 """
663 The ID of a Payment Method with a `type` of `us_bank_account`. The Payment Method's bank account information will be copied and returned as a Bank Account Token. This parameter is exclusive with respect to all other parameters in the `bank_account` hash. You must include the top-level `customer` parameter if the Payment Method is attached to a `Customer` object. If the Payment Method is not attached to a `Customer` object, it will be consumed and cannot be used again. You may not use Payment Methods which were created by a Setup Intent with `attach_to_self=true`.
664 """
665 routing_number: NotRequired[str]
666 """
667 The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
668 """
669
670
671 class TokenCreateParamsCard(TypedDict):
672 address_city: NotRequired[str]
673 """
674 City / District / Suburb / Town / Village.
675 """
676 address_country: NotRequired[str]
677 """
678 Billing address country, if provided.
679 """
680 address_line1: NotRequired[str]
681 """
682 Address line 1 (Street address / PO Box / Company name).
683 """
684 address_line2: NotRequired[str]
685 """
686 Address line 2 (Apartment / Suite / Unit / Building).
687 """
688 address_state: NotRequired[str]
689 """
690 State / County / Province / Region.
691 """
692 address_zip: NotRequired[str]
693 """
694 ZIP or postal code.
695 """
696 currency: NotRequired[str]
697 """
698 Required in order to add the card to an account; in all other cases, this parameter is not used. When added to an account, the card (which must be a debit card) can be used as a transfer destination for funds in this currency.
699 """
700 cvc: NotRequired[str]
701 """
702 Card security code. Highly recommended to always include this value.
703 """
704 exp_month: str
705 """
706 Two-digit number representing the card's expiration month.
707 """
708 exp_year: str
709 """
710 Two- or four-digit number representing the card's expiration year.
711 """
712 name: NotRequired[str]
713 """
714 Cardholder's full name.
715 """
716 networks: NotRequired["TokenCreateParamsCardNetworks"]
717 """
718 Contains information about card networks used to process the payment.
719 """
720 number: str
721 """
722 The card number, as a string without any separators.
723 """
724
725
726 class TokenCreateParamsCardNetworks(TypedDict):
727 preferred: NotRequired[Literal["cartes_bancaires", "mastercard", "visa"]]
728 """
729 The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.
730 """
731
732
733 class TokenCreateParamsCvcUpdate(TypedDict):
734 cvc: str
735 """
736 The CVC value, in string form.
737 """
738
739
740 class TokenCreateParamsPerson(TypedDict):
741 additional_tos_acceptances: NotRequired[
742 "TokenCreateParamsPersonAdditionalTosAcceptances"
743 ]
744 """
745 Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
746 """
747 address: NotRequired["TokenCreateParamsPersonAddress"]
748 """
749 The person's address.
750 """
751 address_kana: NotRequired["TokenCreateParamsPersonAddressKana"]
752 """
753 The Kana variation of the person's address (Japan only).
754 """
755 address_kanji: NotRequired["TokenCreateParamsPersonAddressKanji"]
756 """
757 The Kanji variation of the person's address (Japan only).
758 """
759 dob: NotRequired["Literal['']|TokenCreateParamsPersonDob"]
760 """
761 The person's date of birth.
762 """
763 documents: NotRequired["TokenCreateParamsPersonDocuments"]
764 """
765 Documents that may be submitted to satisfy various informational requests.
766 """
767 email: NotRequired[str]
768 """
769 The person's email address.
770 """
771 first_name: NotRequired[str]
772 """
773 The person's first name.
774 """
775 first_name_kana: NotRequired[str]
776 """
777 The Kana variation of the person's first name (Japan only).
778 """
779 first_name_kanji: NotRequired[str]
780 """
781 The Kanji variation of the person's first name (Japan only).
782 """
783 full_name_aliases: NotRequired["Literal['']|List[str]"]
784 """
785 A list of alternate names or aliases that the person is known by.
786 """
787 gender: NotRequired[str]
788 """
789 The person's gender (International regulations require either "male" or "female").
790 """
791 id_number: NotRequired[str]
792 """
793 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).
794 """
795 id_number_secondary: NotRequired[str]
796 """
797 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).
798 """
799 last_name: NotRequired[str]
800 """
801 The person's last name.
802 """
803 last_name_kana: NotRequired[str]
804 """
805 The Kana variation of the person's last name (Japan only).
806 """
807 last_name_kanji: NotRequired[str]
808 """
809 The Kanji variation of the person's last name (Japan only).
810 """
811 maiden_name: NotRequired[str]
812 """
813 The person's maiden name.
814 """
815 metadata: NotRequired["Literal['']|Dict[str, str]"]
816 """
817 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`.
818 """
819 nationality: NotRequired[str]
820 """
821 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.
822 """
823 phone: NotRequired[str]
824 """
825 The person's phone number.
826 """
827 political_exposure: NotRequired[Literal["existing", "none"]]
828 """
829 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.
830 """
831 registered_address: NotRequired["TokenCreateParamsPersonRegisteredAddress"]
832 """
833 The person's registered address.
834 """
835 relationship: NotRequired["TokenCreateParamsPersonRelationship"]
836 """
837 The relationship that this person has with the account's legal entity.
838 """
839 ssn_last_4: NotRequired[str]
840 """
841 The last four digits of the person's Social Security number (U.S. only).
842 """
843 us_cfpb_data: NotRequired["TokenCreateParamsPersonUsCfpbData"]
844 """
845 Demographic data related to the person.
846 """
847 verification: NotRequired["TokenCreateParamsPersonVerification"]
848 """
849 The person's verification status.
850 """
851
852
853 class TokenCreateParamsPersonAdditionalTosAcceptances(TypedDict):
854 account: NotRequired[
855 "TokenCreateParamsPersonAdditionalTosAcceptancesAccount"
856 ]
857 """
858 Details on the legal guardian's acceptance of the main Stripe service agreement.
859 """
860
861
862 class TokenCreateParamsPersonAdditionalTosAcceptancesAccount(TypedDict):
863 date: NotRequired[int]
864 """
865 The Unix timestamp marking when the account representative accepted the service agreement.
866 """
867 ip: NotRequired[str]
868 """
869 The IP address from which the account representative accepted the service agreement.
870 """
871 user_agent: NotRequired["Literal['']|str"]
872 """
873 The user agent of the browser from which the account representative accepted the service agreement.
874 """
875
876
877 class TokenCreateParamsPersonAddress(TypedDict):
878 city: NotRequired[str]
879 """
880 City, district, suburb, town, or village.
881 """
882 country: NotRequired[str]
883 """
884 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
885 """
886 line1: NotRequired[str]
887 """
888 Address line 1, such as the street, PO Box, or company name.
889 """
890 line2: NotRequired[str]
891 """
892 Address line 2, such as the apartment, suite, unit, or building.
893 """
894 postal_code: NotRequired[str]
895 """
896 ZIP or postal code.
897 """
898 state: NotRequired[str]
899 """
900 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
901 """
902
903
904 class TokenCreateParamsPersonAddressKana(TypedDict):
905 city: NotRequired[str]
906 """
907 City or ward.
908 """
909 country: NotRequired[str]
910 """
911 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
912 """
913 line1: NotRequired[str]
914 """
915 Block or building number.
916 """
917 line2: NotRequired[str]
918 """
919 Building details.
920 """
921 postal_code: NotRequired[str]
922 """
923 Postal code.
924 """
925 state: NotRequired[str]
926 """
927 Prefecture.
928 """
929 town: NotRequired[str]
930 """
931 Town or cho-me.
932 """
933
934
935 class TokenCreateParamsPersonAddressKanji(TypedDict):
936 city: NotRequired[str]
937 """
938 City or ward.
939 """
940 country: NotRequired[str]
941 """
942 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
943 """
944 line1: NotRequired[str]
945 """
946 Block or building number.
947 """
948 line2: NotRequired[str]
949 """
950 Building details.
951 """
952 postal_code: NotRequired[str]
953 """
954 Postal code.
955 """
956 state: NotRequired[str]
957 """
958 Prefecture.
959 """
960 town: NotRequired[str]
961 """
962 Town or cho-me.
963 """
964
965
966 class TokenCreateParamsPersonDob(TypedDict):
967 day: int
968 """
969 The day of birth, between 1 and 31.
970 """
971 month: int
972 """
973 The month of birth, between 1 and 12.
974 """
975 year: int
976 """
977 The four-digit year of birth.
978 """
979
980
981 class TokenCreateParamsPersonDocuments(TypedDict):
982 company_authorization: NotRequired[
983 "TokenCreateParamsPersonDocumentsCompanyAuthorization"
984 ]
985 """
986 One or more documents that demonstrate proof that this person is authorized to represent the company.
987 """
988 passport: NotRequired["TokenCreateParamsPersonDocumentsPassport"]
989 """
990 One or more documents showing the person's passport page with photo and personal data.
991 """
992 visa: NotRequired["TokenCreateParamsPersonDocumentsVisa"]
993 """
994 One or more documents showing the person's visa required for living in the country where they are residing.
995 """
996
997
998 class TokenCreateParamsPersonDocumentsCompanyAuthorization(TypedDict):
999 files: NotRequired[List[str]]
1000 """
1001 One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1002 """
1003
1004
1005 class TokenCreateParamsPersonDocumentsPassport(TypedDict):
1006 files: NotRequired[List[str]]
1007 """
1008 One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1009 """
1010
1011
1012 class TokenCreateParamsPersonDocumentsVisa(TypedDict):
1013 files: NotRequired[List[str]]
1014 """
1015 One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
1016 """
1017
1018
1019 class TokenCreateParamsPersonRegisteredAddress(TypedDict):
1020 city: NotRequired[str]
1021 """
1022 City, district, suburb, town, or village.
1023 """
1024 country: NotRequired[str]
1025 """
1026 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1027 """
1028 line1: NotRequired[str]
1029 """
1030 Address line 1, such as the street, PO Box, or company name.
1031 """
1032 line2: NotRequired[str]
1033 """
1034 Address line 2, such as the apartment, suite, unit, or building.
1035 """
1036 postal_code: NotRequired[str]
1037 """
1038 ZIP or postal code.
1039 """
1040 state: NotRequired[str]
1041 """
1042 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1043 """
1044
1045
1046 class TokenCreateParamsPersonRelationship(TypedDict):
1047 authorizer: NotRequired[bool]
1048 """
1049 Whether the person is the authorizer of the account's representative.
1050 """
1051 director: NotRequired[bool]
1052 """
1053 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.
1054 """
1055 executive: NotRequired[bool]
1056 """
1057 Whether the person has significant responsibility to control, manage, or direct the organization.
1058 """
1059 legal_guardian: NotRequired[bool]
1060 """
1061 Whether the person is the legal guardian of the account's representative.
1062 """
1063 owner: NotRequired[bool]
1064 """
1065 Whether the person is an owner of the account's legal entity.
1066 """
1067 percent_ownership: NotRequired["Literal['']|float"]
1068 """
1069 The percent owned by the person of the account's legal entity.
1070 """
1071 representative: NotRequired[bool]
1072 """
1073 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.
1074 """
1075 title: NotRequired[str]
1076 """
1077 The person's title (e.g., CEO, Support Engineer).
1078 """
1079
1080
1081 class TokenCreateParamsPersonUsCfpbData(TypedDict):
1082 ethnicity_details: NotRequired[
1083 "TokenCreateParamsPersonUsCfpbDataEthnicityDetails"
1084 ]
1085 """
1086 The persons ethnicity details
1087 """
1088 race_details: NotRequired["TokenCreateParamsPersonUsCfpbDataRaceDetails"]
1089 """
1090 The persons race details
1091 """
1092 self_identified_gender: NotRequired[str]
1093 """
1094 The persons self-identified gender
1095 """
1096
1097
1098 class TokenCreateParamsPersonUsCfpbDataEthnicityDetails(TypedDict):
1099 ethnicity: NotRequired[
1100 List[
1101 Literal[
1102 "cuban",
1103 "hispanic_or_latino",
1104 "mexican",
1105 "not_hispanic_or_latino",
1106 "other_hispanic_or_latino",
1107 "prefer_not_to_answer",
1108 "puerto_rican",
1109 ]
1110 ]
1111 ]
1112 """
1113 The persons ethnicity
1114 """
1115 ethnicity_other: NotRequired[str]
1116 """
1117 Please specify your origin, when other is selected.
1118 """
1119
1120
1121 class TokenCreateParamsPersonUsCfpbDataRaceDetails(TypedDict):
1122 race: NotRequired[
1123 List[
1124 Literal[
1125 "african_american",
1126 "american_indian_or_alaska_native",
1127 "asian",
1128 "asian_indian",
1129 "black_or_african_american",
1130 "chinese",
1131 "ethiopian",
1132 "filipino",
1133 "guamanian_or_chamorro",
1134 "haitian",
1135 "jamaican",
1136 "japanese",
1137 "korean",
1138 "native_hawaiian",
1139 "native_hawaiian_or_other_pacific_islander",
1140 "nigerian",
1141 "other_asian",
1142 "other_black_or_african_american",
1143 "other_pacific_islander",
1144 "prefer_not_to_answer",
1145 "samoan",
1146 "somali",
1147 "vietnamese",
1148 "white",
1149 ]
1150 ]
1151 ]
1152 """
1153 The persons race.
1154 """
1155 race_other: NotRequired[str]
1156 """
1157 Please specify your race, when other is selected.
1158 """
1159
1160
1161 class TokenCreateParamsPersonVerification(TypedDict):
1162 additional_document: NotRequired[
1163 "TokenCreateParamsPersonVerificationAdditionalDocument"
1164 ]
1165 """
1166 A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
1167 """
1168 document: NotRequired["TokenCreateParamsPersonVerificationDocument"]
1169 """
1170 An identifying document, either a passport or local ID card.
1171 """
1172
1173
1174 class TokenCreateParamsPersonVerificationAdditionalDocument(TypedDict):
1175 back: NotRequired[str]
1176 """
1177 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.
1178 """
1179 front: NotRequired[str]
1180 """
1181 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.
1182 """
1183
1184
1185 class TokenCreateParamsPersonVerificationDocument(TypedDict):
1186 back: NotRequired[str]
1187 """
1188 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.
1189 """
1190 front: NotRequired[str]
1191 """
1192 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.
1193 """
1194
1195
1196 class TokenCreateParamsPii(TypedDict):
1197 id_number: NotRequired[str]
1198 """
1199 The `id_number` for the PII, in string form.
1200 """