Debian Codegraph @

stripe/params/_confirmation_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 ConfirmationTokenCreateParams(RequestOptions):
9 expand: NotRequired[List[str]]
10 """
11 Specifies which fields in the response should be expanded.
12 """
13 payment_method: NotRequired[str]
14 """
15 ID of an existing PaymentMethod.
16 """
17 payment_method_data: NotRequired[
18 "ConfirmationTokenCreateParamsPaymentMethodData"
19 ]
20 """
21 If provided, this hash will be used to create a PaymentMethod.
22 """
23 payment_method_options: NotRequired[
24 "ConfirmationTokenCreateParamsPaymentMethodOptions"
25 ]
26 """
27 Payment-method-specific configuration for this ConfirmationToken.
28 """
29 return_url: NotRequired[str]
30 """
31 Return URL used to confirm the Intent.
32 """
33 setup_future_usage: NotRequired[Literal["off_session", "on_session"]]
34 """
35 Indicates that you intend to make future payments with this ConfirmationToken's payment method.
36
37 The presence of this property will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete.
38 """
39 shipping: NotRequired["ConfirmationTokenCreateParamsShipping"]
40 """
41 Shipping information for this ConfirmationToken.
42 """
43
44
45 class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict):
46 acss_debit: NotRequired[
47 "ConfirmationTokenCreateParamsPaymentMethodDataAcssDebit"
48 ]
49 """
50 If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
51 """
52 affirm: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataAffirm"]
53 """
54 If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
55 """
56 afterpay_clearpay: NotRequired[
57 "ConfirmationTokenCreateParamsPaymentMethodDataAfterpayClearpay"
58 ]
59 """
60 If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
61 """
62 alipay: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataAlipay"]
63 """
64 If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
65 """
66 allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]]
67 """
68 This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
69 """
70 alma: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataAlma"]
71 """
72 If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
73 """
74 amazon_pay: NotRequired[
75 "ConfirmationTokenCreateParamsPaymentMethodDataAmazonPay"
76 ]
77 """
78 If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
79 """
80 au_becs_debit: NotRequired[
81 "ConfirmationTokenCreateParamsPaymentMethodDataAuBecsDebit"
82 ]
83 """
84 If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
85 """
86 bacs_debit: NotRequired[
87 "ConfirmationTokenCreateParamsPaymentMethodDataBacsDebit"
88 ]
89 """
90 If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
91 """
92 bancontact: NotRequired[
93 "ConfirmationTokenCreateParamsPaymentMethodDataBancontact"
94 ]
95 """
96 If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
97 """
98 billie: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBillie"]
99 """
100 If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
101 """
102 billing_details: NotRequired[
103 "ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails"
104 ]
105 """
106 Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
107 """
108 blik: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBlik"]
109 """
110 If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
111 """
112 boleto: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataBoleto"]
113 """
114 If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
115 """
116 cashapp: NotRequired[
117 "ConfirmationTokenCreateParamsPaymentMethodDataCashapp"
118 ]
119 """
120 If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
121 """
122 crypto: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataCrypto"]
123 """
124 If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
125 """
126 customer_balance: NotRequired[
127 "ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance"
128 ]
129 """
130 If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
131 """
132 eps: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataEps"]
133 """
134 If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
135 """
136 fpx: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataFpx"]
137 """
138 If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
139 """
140 giropay: NotRequired[
141 "ConfirmationTokenCreateParamsPaymentMethodDataGiropay"
142 ]
143 """
144 If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
145 """
146 grabpay: NotRequired[
147 "ConfirmationTokenCreateParamsPaymentMethodDataGrabpay"
148 ]
149 """
150 If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
151 """
152 ideal: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataIdeal"]
153 """
154 If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
155 """
156 interac_present: NotRequired[
157 "ConfirmationTokenCreateParamsPaymentMethodDataInteracPresent"
158 ]
159 """
160 If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
161 """
162 kakao_pay: NotRequired[
163 "ConfirmationTokenCreateParamsPaymentMethodDataKakaoPay"
164 ]
165 """
166 If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
167 """
168 klarna: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataKlarna"]
169 """
170 If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
171 """
172 konbini: NotRequired[
173 "ConfirmationTokenCreateParamsPaymentMethodDataKonbini"
174 ]
175 """
176 If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
177 """
178 kr_card: NotRequired[
179 "ConfirmationTokenCreateParamsPaymentMethodDataKrCard"
180 ]
181 """
182 If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
183 """
184 link: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataLink"]
185 """
186 If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
187 """
188 mb_way: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataMbWay"]
189 """
190 If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
191 """
192 metadata: NotRequired[Dict[str, str]]
193 """
194 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`.
195 """
196 mobilepay: NotRequired[
197 "ConfirmationTokenCreateParamsPaymentMethodDataMobilepay"
198 ]
199 """
200 If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
201 """
202 multibanco: NotRequired[
203 "ConfirmationTokenCreateParamsPaymentMethodDataMultibanco"
204 ]
205 """
206 If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
207 """
208 naver_pay: NotRequired[
209 "ConfirmationTokenCreateParamsPaymentMethodDataNaverPay"
210 ]
211 """
212 If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
213 """
214 nz_bank_account: NotRequired[
215 "ConfirmationTokenCreateParamsPaymentMethodDataNzBankAccount"
216 ]
217 """
218 If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
219 """
220 oxxo: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataOxxo"]
221 """
222 If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
223 """
224 p24: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataP24"]
225 """
226 If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
227 """
228 pay_by_bank: NotRequired[
229 "ConfirmationTokenCreateParamsPaymentMethodDataPayByBank"
230 ]
231 """
232 If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
233 """
234 payco: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataPayco"]
235 """
236 If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
237 """
238 paynow: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataPaynow"]
239 """
240 If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
241 """
242 paypal: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataPaypal"]
243 """
244 If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
245 """
246 payto: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataPayto"]
247 """
248 If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
249 """
250 pix: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataPix"]
251 """
252 If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
253 """
254 promptpay: NotRequired[
255 "ConfirmationTokenCreateParamsPaymentMethodDataPromptpay"
256 ]
257 """
258 If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
259 """
260 radar_options: NotRequired[
261 "ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions"
262 ]
263 """
264 Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
265 """
266 revolut_pay: NotRequired[
267 "ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay"
268 ]
269 """
270 If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
271 """
272 samsung_pay: NotRequired[
273 "ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay"
274 ]
275 """
276 If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
277 """
278 satispay: NotRequired[
279 "ConfirmationTokenCreateParamsPaymentMethodDataSatispay"
280 ]
281 """
282 If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
283 """
284 sepa_debit: NotRequired[
285 "ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit"
286 ]
287 """
288 If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
289 """
290 sofort: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSofort"]
291 """
292 If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
293 """
294 swish: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataSwish"]
295 """
296 If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
297 """
298 twint: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataTwint"]
299 """
300 If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
301 """
302 type: Literal[
303 "acss_debit",
304 "affirm",
305 "afterpay_clearpay",
306 "alipay",
307 "alma",
308 "amazon_pay",
309 "au_becs_debit",
310 "bacs_debit",
311 "bancontact",
312 "billie",
313 "blik",
314 "boleto",
315 "cashapp",
316 "crypto",
317 "customer_balance",
318 "eps",
319 "fpx",
320 "giropay",
321 "grabpay",
322 "ideal",
323 "kakao_pay",
324 "klarna",
325 "konbini",
326 "kr_card",
327 "link",
328 "mb_way",
329 "mobilepay",
330 "multibanco",
331 "naver_pay",
332 "nz_bank_account",
333 "oxxo",
334 "p24",
335 "pay_by_bank",
336 "payco",
337 "paynow",
338 "paypal",
339 "payto",
340 "pix",
341 "promptpay",
342 "revolut_pay",
343 "samsung_pay",
344 "satispay",
345 "sepa_debit",
346 "sofort",
347 "swish",
348 "twint",
349 "us_bank_account",
350 "wechat_pay",
351 "zip",
352 ]
353 """
354 The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
355 """
356 us_bank_account: NotRequired[
357 "ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount"
358 ]
359 """
360 If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
361 """
362 wechat_pay: NotRequired[
363 "ConfirmationTokenCreateParamsPaymentMethodDataWechatPay"
364 ]
365 """
366 If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
367 """
368 zip: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataZip"]
369 """
370 If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
371 """
372
373
374 class ConfirmationTokenCreateParamsPaymentMethodDataAcssDebit(TypedDict):
375 account_number: str
376 """
377 Customer's bank account number.
378 """
379 institution_number: str
380 """
381 Institution number of the customer's bank.
382 """
383 transit_number: str
384 """
385 Transit number of the customer's bank.
386 """
387
388
389 class ConfirmationTokenCreateParamsPaymentMethodDataAffirm(TypedDict):
390 pass
391
392
393 class ConfirmationTokenCreateParamsPaymentMethodDataAfterpayClearpay(
394 TypedDict
395 ):
396 pass
397
398
399 class ConfirmationTokenCreateParamsPaymentMethodDataAlipay(TypedDict):
400 pass
401
402
403 class ConfirmationTokenCreateParamsPaymentMethodDataAlma(TypedDict):
404 pass
405
406
407 class ConfirmationTokenCreateParamsPaymentMethodDataAmazonPay(TypedDict):
408 pass
409
410
411 class ConfirmationTokenCreateParamsPaymentMethodDataAuBecsDebit(TypedDict):
412 account_number: str
413 """
414 The account number for the bank account.
415 """
416 bsb_number: str
417 """
418 Bank-State-Branch number of the bank account.
419 """
420
421
422 class ConfirmationTokenCreateParamsPaymentMethodDataBacsDebit(TypedDict):
423 account_number: NotRequired[str]
424 """
425 Account number of the bank account that the funds will be debited from.
426 """
427 sort_code: NotRequired[str]
428 """
429 Sort code of the bank account. (e.g., `10-20-30`)
430 """
431
432
433 class ConfirmationTokenCreateParamsPaymentMethodDataBancontact(TypedDict):
434 pass
435
436
437 class ConfirmationTokenCreateParamsPaymentMethodDataBillie(TypedDict):
438 pass
439
440
441 class ConfirmationTokenCreateParamsPaymentMethodDataBillingDetails(TypedDict):
442 address: NotRequired[
443 "Literal['']|ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress"
444 ]
445 """
446 Billing address.
447 """
448 email: NotRequired["Literal['']|str"]
449 """
450 Email address.
451 """
452 name: NotRequired["Literal['']|str"]
453 """
454 Full name.
455 """
456 phone: NotRequired["Literal['']|str"]
457 """
458 Billing phone number (including extension).
459 """
460 tax_id: NotRequired[str]
461 """
462 Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
463 """
464
465
466 class ConfirmationTokenCreateParamsPaymentMethodDataBillingDetailsAddress(
467 TypedDict,
468 ):
469 city: NotRequired[str]
470 """
471 City, district, suburb, town, or village.
472 """
473 country: NotRequired[str]
474 """
475 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
476 """
477 line1: NotRequired[str]
478 """
479 Address line 1, such as the street, PO Box, or company name.
480 """
481 line2: NotRequired[str]
482 """
483 Address line 2, such as the apartment, suite, unit, or building.
484 """
485 postal_code: NotRequired[str]
486 """
487 ZIP or postal code.
488 """
489 state: NotRequired[str]
490 """
491 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
492 """
493
494
495 class ConfirmationTokenCreateParamsPaymentMethodDataBlik(TypedDict):
496 pass
497
498
499 class ConfirmationTokenCreateParamsPaymentMethodDataBoleto(TypedDict):
500 tax_id: str
501 """
502 The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
503 """
504
505
506 class ConfirmationTokenCreateParamsPaymentMethodDataCashapp(TypedDict):
507 pass
508
509
510 class ConfirmationTokenCreateParamsPaymentMethodDataCrypto(TypedDict):
511 pass
512
513
514 class ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance(TypedDict):
515 pass
516
517
518 class ConfirmationTokenCreateParamsPaymentMethodDataEps(TypedDict):
519 bank: NotRequired[
520 Literal[
521 "arzte_und_apotheker_bank",
522 "austrian_anadi_bank_ag",
523 "bank_austria",
524 "bankhaus_carl_spangler",
525 "bankhaus_schelhammer_und_schattera_ag",
526 "bawag_psk_ag",
527 "bks_bank_ag",
528 "brull_kallmus_bank_ag",
529 "btv_vier_lander_bank",
530 "capital_bank_grawe_gruppe_ag",
531 "deutsche_bank_ag",
532 "dolomitenbank",
533 "easybank_ag",
534 "erste_bank_und_sparkassen",
535 "hypo_alpeadriabank_international_ag",
536 "hypo_bank_burgenland_aktiengesellschaft",
537 "hypo_noe_lb_fur_niederosterreich_u_wien",
538 "hypo_oberosterreich_salzburg_steiermark",
539 "hypo_tirol_bank_ag",
540 "hypo_vorarlberg_bank_ag",
541 "marchfelder_bank",
542 "oberbank_ag",
543 "raiffeisen_bankengruppe_osterreich",
544 "schoellerbank_ag",
545 "sparda_bank_wien",
546 "volksbank_gruppe",
547 "volkskreditbank_ag",
548 "vr_bank_braunau",
549 ]
550 ]
551 """
552 The customer's bank.
553 """
554
555
556 class ConfirmationTokenCreateParamsPaymentMethodDataFpx(TypedDict):
557 account_holder_type: NotRequired[Literal["company", "individual"]]
558 """
559 Account holder type for FPX transaction
560 """
561 bank: Literal[
562 "affin_bank",
563 "agrobank",
564 "alliance_bank",
565 "ambank",
566 "bank_islam",
567 "bank_muamalat",
568 "bank_of_china",
569 "bank_rakyat",
570 "bsn",
571 "cimb",
572 "deutsche_bank",
573 "hong_leong_bank",
574 "hsbc",
575 "kfh",
576 "maybank2e",
577 "maybank2u",
578 "ocbc",
579 "pb_enterprise",
580 "public_bank",
581 "rhb",
582 "standard_chartered",
583 "uob",
584 ]
585 """
586 The customer's bank.
587 """
588
589
590 class ConfirmationTokenCreateParamsPaymentMethodDataGiropay(TypedDict):
591 pass
592
593
594 class ConfirmationTokenCreateParamsPaymentMethodDataGrabpay(TypedDict):
595 pass
596
597
598 class ConfirmationTokenCreateParamsPaymentMethodDataIdeal(TypedDict):
599 bank: NotRequired[
600 Literal[
601 "abn_amro",
602 "adyen",
603 "asn_bank",
604 "bunq",
605 "buut",
606 "finom",
607 "handelsbanken",
608 "ing",
609 "knab",
610 "mollie",
611 "moneyou",
612 "n26",
613 "nn",
614 "rabobank",
615 "regiobank",
616 "revolut",
617 "sns_bank",
618 "triodos_bank",
619 "van_lanschot",
620 "yoursafe",
621 ]
622 ]
623 """
624 The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
625 """
626
627
628 class ConfirmationTokenCreateParamsPaymentMethodDataInteracPresent(TypedDict):
629 pass
630
631
632 class ConfirmationTokenCreateParamsPaymentMethodDataKakaoPay(TypedDict):
633 pass
634
635
636 class ConfirmationTokenCreateParamsPaymentMethodDataKlarna(TypedDict):
637 dob: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataKlarnaDob"]
638 """
639 Customer's date of birth
640 """
641
642
643 class ConfirmationTokenCreateParamsPaymentMethodDataKlarnaDob(TypedDict):
644 day: int
645 """
646 The day of birth, between 1 and 31.
647 """
648 month: int
649 """
650 The month of birth, between 1 and 12.
651 """
652 year: int
653 """
654 The four-digit year of birth.
655 """
656
657
658 class ConfirmationTokenCreateParamsPaymentMethodDataKonbini(TypedDict):
659 pass
660
661
662 class ConfirmationTokenCreateParamsPaymentMethodDataKrCard(TypedDict):
663 pass
664
665
666 class ConfirmationTokenCreateParamsPaymentMethodDataLink(TypedDict):
667 pass
668
669
670 class ConfirmationTokenCreateParamsPaymentMethodDataMbWay(TypedDict):
671 pass
672
673
674 class ConfirmationTokenCreateParamsPaymentMethodDataMobilepay(TypedDict):
675 pass
676
677
678 class ConfirmationTokenCreateParamsPaymentMethodDataMultibanco(TypedDict):
679 pass
680
681
682 class ConfirmationTokenCreateParamsPaymentMethodDataNaverPay(TypedDict):
683 funding: NotRequired[Literal["card", "points"]]
684 """
685 Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
686 """
687
688
689 class ConfirmationTokenCreateParamsPaymentMethodDataNzBankAccount(TypedDict):
690 account_holder_name: NotRequired[str]
691 """
692 The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
693 """
694 account_number: str
695 """
696 The account number for the bank account.
697 """
698 bank_code: str
699 """
700 The numeric code for the bank account's bank.
701 """
702 branch_code: str
703 """
704 The numeric code for the bank account's bank branch.
705 """
706 reference: NotRequired[str]
707 suffix: str
708 """
709 The suffix of the bank account number.
710 """
711
712
713 class ConfirmationTokenCreateParamsPaymentMethodDataOxxo(TypedDict):
714 pass
715
716
717 class ConfirmationTokenCreateParamsPaymentMethodDataP24(TypedDict):
718 bank: NotRequired[
719 Literal[
720 "alior_bank",
721 "bank_millennium",
722 "bank_nowy_bfg_sa",
723 "bank_pekao_sa",
724 "banki_spbdzielcze",
725 "blik",
726 "bnp_paribas",
727 "boz",
728 "citi_handlowy",
729 "credit_agricole",
730 "envelobank",
731 "etransfer_pocztowy24",
732 "getin_bank",
733 "ideabank",
734 "ing",
735 "inteligo",
736 "mbank_mtransfer",
737 "nest_przelew",
738 "noble_pay",
739 "pbac_z_ipko",
740 "plus_bank",
741 "santander_przelew24",
742 "tmobile_usbugi_bankowe",
743 "toyota_bank",
744 "velobank",
745 "volkswagen_bank",
746 ]
747 ]
748 """
749 The customer's bank.
750 """
751
752
753 class ConfirmationTokenCreateParamsPaymentMethodDataPayByBank(TypedDict):
754 pass
755
756
757 class ConfirmationTokenCreateParamsPaymentMethodDataPayco(TypedDict):
758 pass
759
760
761 class ConfirmationTokenCreateParamsPaymentMethodDataPaynow(TypedDict):
762 pass
763
764
765 class ConfirmationTokenCreateParamsPaymentMethodDataPaypal(TypedDict):
766 pass
767
768
769 class ConfirmationTokenCreateParamsPaymentMethodDataPayto(TypedDict):
770 account_number: NotRequired[str]
771 """
772 The account number for the bank account.
773 """
774 bsb_number: NotRequired[str]
775 """
776 Bank-State-Branch number of the bank account.
777 """
778 pay_id: NotRequired[str]
779 """
780 The PayID alias for the bank account.
781 """
782
783
784 class ConfirmationTokenCreateParamsPaymentMethodDataPix(TypedDict):
785 pass
786
787
788 class ConfirmationTokenCreateParamsPaymentMethodDataPromptpay(TypedDict):
789 pass
790
791
792 class ConfirmationTokenCreateParamsPaymentMethodDataRadarOptions(TypedDict):
793 session: NotRequired[str]
794 """
795 A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
796 """
797
798
799 class ConfirmationTokenCreateParamsPaymentMethodDataRevolutPay(TypedDict):
800 pass
801
802
803 class ConfirmationTokenCreateParamsPaymentMethodDataSamsungPay(TypedDict):
804 pass
805
806
807 class ConfirmationTokenCreateParamsPaymentMethodDataSatispay(TypedDict):
808 pass
809
810
811 class ConfirmationTokenCreateParamsPaymentMethodDataSepaDebit(TypedDict):
812 iban: str
813 """
814 IBAN of the bank account.
815 """
816
817
818 class ConfirmationTokenCreateParamsPaymentMethodDataSofort(TypedDict):
819 country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
820 """
821 Two-letter ISO code representing the country the bank account is located in.
822 """
823
824
825 class ConfirmationTokenCreateParamsPaymentMethodDataSwish(TypedDict):
826 pass
827
828
829 class ConfirmationTokenCreateParamsPaymentMethodDataTwint(TypedDict):
830 pass
831
832
833 class ConfirmationTokenCreateParamsPaymentMethodDataUsBankAccount(TypedDict):
834 account_holder_type: NotRequired[Literal["company", "individual"]]
835 """
836 Account holder type: individual or company.
837 """
838 account_number: NotRequired[str]
839 """
840 Account number of the bank account.
841 """
842 account_type: NotRequired[Literal["checking", "savings"]]
843 """
844 Account type: checkings or savings. Defaults to checking if omitted.
845 """
846 financial_connections_account: NotRequired[str]
847 """
848 The ID of a Financial Connections Account to use as a payment method.
849 """
850 routing_number: NotRequired[str]
851 """
852 Routing number of the bank account.
853 """
854
855
856 class ConfirmationTokenCreateParamsPaymentMethodDataWechatPay(TypedDict):
857 pass
858
859
860 class ConfirmationTokenCreateParamsPaymentMethodDataZip(TypedDict):
861 pass
862
863
864 class ConfirmationTokenCreateParamsPaymentMethodOptions(TypedDict):
865 card: NotRequired["ConfirmationTokenCreateParamsPaymentMethodOptionsCard"]
866 """
867 Configuration for any card payments confirmed using this ConfirmationToken.
868 """
869
870
871 class ConfirmationTokenCreateParamsPaymentMethodOptionsCard(TypedDict):
872 installments: NotRequired[
873 "ConfirmationTokenCreateParamsPaymentMethodOptionsCardInstallments"
874 ]
875 """
876 Installment configuration for payments confirmed using this ConfirmationToken.
877 """
878
879
880 class ConfirmationTokenCreateParamsPaymentMethodOptionsCardInstallments(
881 TypedDict,
882 ):
883 plan: (
884 "ConfirmationTokenCreateParamsPaymentMethodOptionsCardInstallmentsPlan"
885 )
886 """
887 The selected installment plan to use for this payment attempt.
888 This parameter can only be provided during confirmation.
889 """
890
891
892 class ConfirmationTokenCreateParamsPaymentMethodOptionsCardInstallmentsPlan(
893 TypedDict,
894 ):
895 count: NotRequired[int]
896 """
897 For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
898 """
899 interval: NotRequired[Literal["month"]]
900 """
901 For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
902 One of `month`.
903 """
904 type: Literal["bonus", "fixed_count", "revolving"]
905 """
906 Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
907 """
908
909
910 class ConfirmationTokenCreateParamsShipping(TypedDict):
911 address: "ConfirmationTokenCreateParamsShippingAddress"
912 """
913 Shipping address
914 """
915 name: str
916 """
917 Recipient name.
918 """
919 phone: NotRequired["Literal['']|str"]
920 """
921 Recipient phone (including extension)
922 """
923
924
925 class ConfirmationTokenCreateParamsShippingAddress(TypedDict):
926 city: NotRequired[str]
927 """
928 City, district, suburb, town, or village.
929 """
930 country: NotRequired[str]
931 """
932 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
933 """
934 line1: NotRequired[str]
935 """
936 Address line 1, such as the street, PO Box, or company name.
937 """
938 line2: NotRequired[str]
939 """
940 Address line 2, such as the apartment, suite, unit, or building.
941 """
942 postal_code: NotRequired[str]
943 """
944 ZIP or postal code.
945 """
946 state: NotRequired[str]
947 """
948 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
949 """