Debian Codegraph @

stripe/params/_setup_intent_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 SetupIntentCreateParams(RequestOptions):
9 attach_to_self: NotRequired[bool]
10 """
11 If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.
12
13 It can only be used for this Stripe Account's own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
14 """
15 automatic_payment_methods: NotRequired[
16 "SetupIntentCreateParamsAutomaticPaymentMethods"
17 ]
18 """
19 When you enable this parameter, this SetupIntent accepts payment methods that you enable in the Dashboard and that are compatible with its other parameters.
20 """
21 confirm: NotRequired[bool]
22 """
23 Set to `true` to attempt to confirm this SetupIntent immediately. This parameter defaults to `false`. If a card is the attached payment method, you can provide a `return_url` in case further authentication is necessary.
24 """
25 confirmation_token: NotRequired[str]
26 """
27 ID of the ConfirmationToken used to confirm this SetupIntent.
28
29 If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence.
30 """
31 customer: NotRequired[str]
32 """
33 ID of the Customer this SetupIntent belongs to, if one exists.
34
35 If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.
36 """
37 customer_account: NotRequired[str]
38 """
39 ID of the Account this SetupIntent belongs to, if one exists.
40
41 If present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent.
42 """
43 description: NotRequired[str]
44 """
45 An arbitrary string attached to the object. Often useful for displaying to users.
46 """
47 excluded_payment_method_types: NotRequired[
48 List[
49 Literal[
50 "acss_debit",
51 "affirm",
52 "afterpay_clearpay",
53 "alipay",
54 "alma",
55 "amazon_pay",
56 "au_becs_debit",
57 "bacs_debit",
58 "bancontact",
59 "billie",
60 "blik",
61 "boleto",
62 "card",
63 "cashapp",
64 "crypto",
65 "customer_balance",
66 "eps",
67 "fpx",
68 "giropay",
69 "grabpay",
70 "ideal",
71 "kakao_pay",
72 "klarna",
73 "konbini",
74 "kr_card",
75 "mb_way",
76 "mobilepay",
77 "multibanco",
78 "naver_pay",
79 "nz_bank_account",
80 "oxxo",
81 "p24",
82 "pay_by_bank",
83 "payco",
84 "paynow",
85 "paypal",
86 "payto",
87 "pix",
88 "promptpay",
89 "revolut_pay",
90 "samsung_pay",
91 "satispay",
92 "sepa_debit",
93 "sofort",
94 "swish",
95 "twint",
96 "us_bank_account",
97 "wechat_pay",
98 "zip",
99 ]
100 ]
101 ]
102 """
103 The list of payment method types to exclude from use with this SetupIntent.
104 """
105 expand: NotRequired[List[str]]
106 """
107 Specifies which fields in the response should be expanded.
108 """
109 flow_directions: NotRequired[List[Literal["inbound", "outbound"]]]
110 """
111 Indicates the directions of money movement for which this payment method is intended to be used.
112
113 Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.
114 """
115 mandate_data: NotRequired["Literal['']|SetupIntentCreateParamsMandateData"]
116 """
117 This hash contains details about the mandate to create. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/setup_intents/create#create_setup_intent-confirm).
118 """
119 metadata: NotRequired[Dict[str, str]]
120 """
121 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`.
122 """
123 on_behalf_of: NotRequired[str]
124 """
125 The Stripe account ID created for this SetupIntent.
126 """
127 payment_method: NotRequired[str]
128 """
129 ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
130 """
131 payment_method_configuration: NotRequired[str]
132 """
133 The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this SetupIntent.
134 """
135 payment_method_data: NotRequired[
136 "SetupIntentCreateParamsPaymentMethodData"
137 ]
138 """
139 When included, this hash creates a PaymentMethod that is set as the [`payment_method`](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-payment_method)
140 value in the SetupIntent.
141 """
142 payment_method_options: NotRequired[
143 "SetupIntentCreateParamsPaymentMethodOptions"
144 ]
145 """
146 Payment method-specific configuration for this SetupIntent.
147 """
148 payment_method_types: NotRequired[List[str]]
149 """
150 The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
151 """
152 return_url: NotRequired[str]
153 """
154 The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. To redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/setup_intents/create#create_setup_intent-confirm).
155 """
156 single_use: NotRequired["SetupIntentCreateParamsSingleUse"]
157 """
158 If you populate this hash, this SetupIntent generates a `single_use` mandate after successful completion.
159
160 Single-use mandates are only valid for the following payment methods: `acss_debit`, `alipay`, `au_becs_debit`, `bacs_debit`, `bancontact`, `boleto`, `ideal`, `link`, `sepa_debit`, and `us_bank_account`.
161 """
162 usage: NotRequired[Literal["off_session", "on_session"]]
163 """
164 Indicates how the payment method is intended to be used in the future. If not provided, this value defaults to `off_session`.
165 """
166 use_stripe_sdk: NotRequired[bool]
167 """
168 Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
169 """
170
171
172 class SetupIntentCreateParamsAutomaticPaymentMethods(TypedDict):
173 allow_redirects: NotRequired[Literal["always", "never"]]
174 """
175 Controls whether this SetupIntent will accept redirect-based payment methods.
176
177 Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/setup_intents/confirm) this SetupIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the setup.
178 """
179 enabled: bool
180 """
181 Whether this feature is enabled.
182 """
183
184
185 class SetupIntentCreateParamsMandateData(TypedDict):
186 customer_acceptance: "SetupIntentCreateParamsMandateDataCustomerAcceptance"
187 """
188 This hash contains details about the customer acceptance of the Mandate.
189 """
190
191
192 class SetupIntentCreateParamsMandateDataCustomerAcceptance(TypedDict):
193 accepted_at: NotRequired[int]
194 """
195 The time at which the customer accepted the Mandate.
196 """
197 offline: NotRequired[
198 "SetupIntentCreateParamsMandateDataCustomerAcceptanceOffline"
199 ]
200 """
201 If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
202 """
203 online: NotRequired[
204 "SetupIntentCreateParamsMandateDataCustomerAcceptanceOnline"
205 ]
206 """
207 If this is a Mandate accepted online, this hash contains details about the online acceptance.
208 """
209 type: Literal["offline", "online"]
210 """
211 The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
212 """
213
214
215 class SetupIntentCreateParamsMandateDataCustomerAcceptanceOffline(TypedDict):
216 pass
217
218
219 class SetupIntentCreateParamsMandateDataCustomerAcceptanceOnline(TypedDict):
220 ip_address: str
221 """
222 The IP address from which the Mandate was accepted by the customer.
223 """
224 user_agent: str
225 """
226 The user agent of the browser from which the Mandate was accepted by the customer.
227 """
228
229
230 class SetupIntentCreateParamsPaymentMethodData(TypedDict):
231 acss_debit: NotRequired[
232 "SetupIntentCreateParamsPaymentMethodDataAcssDebit"
233 ]
234 """
235 If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
236 """
237 affirm: NotRequired["SetupIntentCreateParamsPaymentMethodDataAffirm"]
238 """
239 If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
240 """
241 afterpay_clearpay: NotRequired[
242 "SetupIntentCreateParamsPaymentMethodDataAfterpayClearpay"
243 ]
244 """
245 If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
246 """
247 alipay: NotRequired["SetupIntentCreateParamsPaymentMethodDataAlipay"]
248 """
249 If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
250 """
251 allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]]
252 """
253 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`.
254 """
255 alma: NotRequired["SetupIntentCreateParamsPaymentMethodDataAlma"]
256 """
257 If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
258 """
259 amazon_pay: NotRequired[
260 "SetupIntentCreateParamsPaymentMethodDataAmazonPay"
261 ]
262 """
263 If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
264 """
265 au_becs_debit: NotRequired[
266 "SetupIntentCreateParamsPaymentMethodDataAuBecsDebit"
267 ]
268 """
269 If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
270 """
271 bacs_debit: NotRequired[
272 "SetupIntentCreateParamsPaymentMethodDataBacsDebit"
273 ]
274 """
275 If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
276 """
277 bancontact: NotRequired[
278 "SetupIntentCreateParamsPaymentMethodDataBancontact"
279 ]
280 """
281 If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
282 """
283 billie: NotRequired["SetupIntentCreateParamsPaymentMethodDataBillie"]
284 """
285 If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
286 """
287 billing_details: NotRequired[
288 "SetupIntentCreateParamsPaymentMethodDataBillingDetails"
289 ]
290 """
291 Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
292 """
293 blik: NotRequired["SetupIntentCreateParamsPaymentMethodDataBlik"]
294 """
295 If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
296 """
297 boleto: NotRequired["SetupIntentCreateParamsPaymentMethodDataBoleto"]
298 """
299 If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
300 """
301 cashapp: NotRequired["SetupIntentCreateParamsPaymentMethodDataCashapp"]
302 """
303 If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
304 """
305 crypto: NotRequired["SetupIntentCreateParamsPaymentMethodDataCrypto"]
306 """
307 If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
308 """
309 customer_balance: NotRequired[
310 "SetupIntentCreateParamsPaymentMethodDataCustomerBalance"
311 ]
312 """
313 If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
314 """
315 eps: NotRequired["SetupIntentCreateParamsPaymentMethodDataEps"]
316 """
317 If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
318 """
319 fpx: NotRequired["SetupIntentCreateParamsPaymentMethodDataFpx"]
320 """
321 If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
322 """
323 giropay: NotRequired["SetupIntentCreateParamsPaymentMethodDataGiropay"]
324 """
325 If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
326 """
327 grabpay: NotRequired["SetupIntentCreateParamsPaymentMethodDataGrabpay"]
328 """
329 If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
330 """
331 ideal: NotRequired["SetupIntentCreateParamsPaymentMethodDataIdeal"]
332 """
333 If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
334 """
335 interac_present: NotRequired[
336 "SetupIntentCreateParamsPaymentMethodDataInteracPresent"
337 ]
338 """
339 If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
340 """
341 kakao_pay: NotRequired["SetupIntentCreateParamsPaymentMethodDataKakaoPay"]
342 """
343 If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
344 """
345 klarna: NotRequired["SetupIntentCreateParamsPaymentMethodDataKlarna"]
346 """
347 If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
348 """
349 konbini: NotRequired["SetupIntentCreateParamsPaymentMethodDataKonbini"]
350 """
351 If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
352 """
353 kr_card: NotRequired["SetupIntentCreateParamsPaymentMethodDataKrCard"]
354 """
355 If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
356 """
357 link: NotRequired["SetupIntentCreateParamsPaymentMethodDataLink"]
358 """
359 If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
360 """
361 mb_way: NotRequired["SetupIntentCreateParamsPaymentMethodDataMbWay"]
362 """
363 If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
364 """
365 metadata: NotRequired[Dict[str, str]]
366 """
367 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`.
368 """
369 mobilepay: NotRequired["SetupIntentCreateParamsPaymentMethodDataMobilepay"]
370 """
371 If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
372 """
373 multibanco: NotRequired[
374 "SetupIntentCreateParamsPaymentMethodDataMultibanco"
375 ]
376 """
377 If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
378 """
379 naver_pay: NotRequired["SetupIntentCreateParamsPaymentMethodDataNaverPay"]
380 """
381 If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
382 """
383 nz_bank_account: NotRequired[
384 "SetupIntentCreateParamsPaymentMethodDataNzBankAccount"
385 ]
386 """
387 If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
388 """
389 oxxo: NotRequired["SetupIntentCreateParamsPaymentMethodDataOxxo"]
390 """
391 If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
392 """
393 p24: NotRequired["SetupIntentCreateParamsPaymentMethodDataP24"]
394 """
395 If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
396 """
397 pay_by_bank: NotRequired[
398 "SetupIntentCreateParamsPaymentMethodDataPayByBank"
399 ]
400 """
401 If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
402 """
403 payco: NotRequired["SetupIntentCreateParamsPaymentMethodDataPayco"]
404 """
405 If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
406 """
407 paynow: NotRequired["SetupIntentCreateParamsPaymentMethodDataPaynow"]
408 """
409 If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
410 """
411 paypal: NotRequired["SetupIntentCreateParamsPaymentMethodDataPaypal"]
412 """
413 If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
414 """
415 payto: NotRequired["SetupIntentCreateParamsPaymentMethodDataPayto"]
416 """
417 If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
418 """
419 pix: NotRequired["SetupIntentCreateParamsPaymentMethodDataPix"]
420 """
421 If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
422 """
423 promptpay: NotRequired["SetupIntentCreateParamsPaymentMethodDataPromptpay"]
424 """
425 If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
426 """
427 radar_options: NotRequired[
428 "SetupIntentCreateParamsPaymentMethodDataRadarOptions"
429 ]
430 """
431 Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
432 """
433 revolut_pay: NotRequired[
434 "SetupIntentCreateParamsPaymentMethodDataRevolutPay"
435 ]
436 """
437 If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
438 """
439 samsung_pay: NotRequired[
440 "SetupIntentCreateParamsPaymentMethodDataSamsungPay"
441 ]
442 """
443 If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
444 """
445 satispay: NotRequired["SetupIntentCreateParamsPaymentMethodDataSatispay"]
446 """
447 If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
448 """
449 sepa_debit: NotRequired[
450 "SetupIntentCreateParamsPaymentMethodDataSepaDebit"
451 ]
452 """
453 If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
454 """
455 sofort: NotRequired["SetupIntentCreateParamsPaymentMethodDataSofort"]
456 """
457 If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
458 """
459 swish: NotRequired["SetupIntentCreateParamsPaymentMethodDataSwish"]
460 """
461 If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
462 """
463 twint: NotRequired["SetupIntentCreateParamsPaymentMethodDataTwint"]
464 """
465 If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
466 """
467 type: Literal[
468 "acss_debit",
469 "affirm",
470 "afterpay_clearpay",
471 "alipay",
472 "alma",
473 "amazon_pay",
474 "au_becs_debit",
475 "bacs_debit",
476 "bancontact",
477 "billie",
478 "blik",
479 "boleto",
480 "cashapp",
481 "crypto",
482 "customer_balance",
483 "eps",
484 "fpx",
485 "giropay",
486 "grabpay",
487 "ideal",
488 "kakao_pay",
489 "klarna",
490 "konbini",
491 "kr_card",
492 "link",
493 "mb_way",
494 "mobilepay",
495 "multibanco",
496 "naver_pay",
497 "nz_bank_account",
498 "oxxo",
499 "p24",
500 "pay_by_bank",
501 "payco",
502 "paynow",
503 "paypal",
504 "payto",
505 "pix",
506 "promptpay",
507 "revolut_pay",
508 "samsung_pay",
509 "satispay",
510 "sepa_debit",
511 "sofort",
512 "swish",
513 "twint",
514 "us_bank_account",
515 "wechat_pay",
516 "zip",
517 ]
518 """
519 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.
520 """
521 us_bank_account: NotRequired[
522 "SetupIntentCreateParamsPaymentMethodDataUsBankAccount"
523 ]
524 """
525 If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
526 """
527 wechat_pay: NotRequired[
528 "SetupIntentCreateParamsPaymentMethodDataWechatPay"
529 ]
530 """
531 If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
532 """
533 zip: NotRequired["SetupIntentCreateParamsPaymentMethodDataZip"]
534 """
535 If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
536 """
537
538
539 class SetupIntentCreateParamsPaymentMethodDataAcssDebit(TypedDict):
540 account_number: str
541 """
542 Customer's bank account number.
543 """
544 institution_number: str
545 """
546 Institution number of the customer's bank.
547 """
548 transit_number: str
549 """
550 Transit number of the customer's bank.
551 """
552
553
554 class SetupIntentCreateParamsPaymentMethodDataAffirm(TypedDict):
555 pass
556
557
558 class SetupIntentCreateParamsPaymentMethodDataAfterpayClearpay(TypedDict):
559 pass
560
561
562 class SetupIntentCreateParamsPaymentMethodDataAlipay(TypedDict):
563 pass
564
565
566 class SetupIntentCreateParamsPaymentMethodDataAlma(TypedDict):
567 pass
568
569
570 class SetupIntentCreateParamsPaymentMethodDataAmazonPay(TypedDict):
571 pass
572
573
574 class SetupIntentCreateParamsPaymentMethodDataAuBecsDebit(TypedDict):
575 account_number: str
576 """
577 The account number for the bank account.
578 """
579 bsb_number: str
580 """
581 Bank-State-Branch number of the bank account.
582 """
583
584
585 class SetupIntentCreateParamsPaymentMethodDataBacsDebit(TypedDict):
586 account_number: NotRequired[str]
587 """
588 Account number of the bank account that the funds will be debited from.
589 """
590 sort_code: NotRequired[str]
591 """
592 Sort code of the bank account. (e.g., `10-20-30`)
593 """
594
595
596 class SetupIntentCreateParamsPaymentMethodDataBancontact(TypedDict):
597 pass
598
599
600 class SetupIntentCreateParamsPaymentMethodDataBillie(TypedDict):
601 pass
602
603
604 class SetupIntentCreateParamsPaymentMethodDataBillingDetails(TypedDict):
605 address: NotRequired[
606 "Literal['']|SetupIntentCreateParamsPaymentMethodDataBillingDetailsAddress"
607 ]
608 """
609 Billing address.
610 """
611 email: NotRequired["Literal['']|str"]
612 """
613 Email address.
614 """
615 name: NotRequired["Literal['']|str"]
616 """
617 Full name.
618 """
619 phone: NotRequired["Literal['']|str"]
620 """
621 Billing phone number (including extension).
622 """
623 tax_id: NotRequired[str]
624 """
625 Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
626 """
627
628
629 class SetupIntentCreateParamsPaymentMethodDataBillingDetailsAddress(TypedDict):
630 city: NotRequired[str]
631 """
632 City, district, suburb, town, or village.
633 """
634 country: NotRequired[str]
635 """
636 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
637 """
638 line1: NotRequired[str]
639 """
640 Address line 1, such as the street, PO Box, or company name.
641 """
642 line2: NotRequired[str]
643 """
644 Address line 2, such as the apartment, suite, unit, or building.
645 """
646 postal_code: NotRequired[str]
647 """
648 ZIP or postal code.
649 """
650 state: NotRequired[str]
651 """
652 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
653 """
654
655
656 class SetupIntentCreateParamsPaymentMethodDataBlik(TypedDict):
657 pass
658
659
660 class SetupIntentCreateParamsPaymentMethodDataBoleto(TypedDict):
661 tax_id: str
662 """
663 The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
664 """
665
666
667 class SetupIntentCreateParamsPaymentMethodDataCashapp(TypedDict):
668 pass
669
670
671 class SetupIntentCreateParamsPaymentMethodDataCrypto(TypedDict):
672 pass
673
674
675 class SetupIntentCreateParamsPaymentMethodDataCustomerBalance(TypedDict):
676 pass
677
678
679 class SetupIntentCreateParamsPaymentMethodDataEps(TypedDict):
680 bank: NotRequired[
681 Literal[
682 "arzte_und_apotheker_bank",
683 "austrian_anadi_bank_ag",
684 "bank_austria",
685 "bankhaus_carl_spangler",
686 "bankhaus_schelhammer_und_schattera_ag",
687 "bawag_psk_ag",
688 "bks_bank_ag",
689 "brull_kallmus_bank_ag",
690 "btv_vier_lander_bank",
691 "capital_bank_grawe_gruppe_ag",
692 "deutsche_bank_ag",
693 "dolomitenbank",
694 "easybank_ag",
695 "erste_bank_und_sparkassen",
696 "hypo_alpeadriabank_international_ag",
697 "hypo_bank_burgenland_aktiengesellschaft",
698 "hypo_noe_lb_fur_niederosterreich_u_wien",
699 "hypo_oberosterreich_salzburg_steiermark",
700 "hypo_tirol_bank_ag",
701 "hypo_vorarlberg_bank_ag",
702 "marchfelder_bank",
703 "oberbank_ag",
704 "raiffeisen_bankengruppe_osterreich",
705 "schoellerbank_ag",
706 "sparda_bank_wien",
707 "volksbank_gruppe",
708 "volkskreditbank_ag",
709 "vr_bank_braunau",
710 ]
711 ]
712 """
713 The customer's bank.
714 """
715
716
717 class SetupIntentCreateParamsPaymentMethodDataFpx(TypedDict):
718 account_holder_type: NotRequired[Literal["company", "individual"]]
719 """
720 Account holder type for FPX transaction
721 """
722 bank: Literal[
723 "affin_bank",
724 "agrobank",
725 "alliance_bank",
726 "ambank",
727 "bank_islam",
728 "bank_muamalat",
729 "bank_of_china",
730 "bank_rakyat",
731 "bsn",
732 "cimb",
733 "deutsche_bank",
734 "hong_leong_bank",
735 "hsbc",
736 "kfh",
737 "maybank2e",
738 "maybank2u",
739 "ocbc",
740 "pb_enterprise",
741 "public_bank",
742 "rhb",
743 "standard_chartered",
744 "uob",
745 ]
746 """
747 The customer's bank.
748 """
749
750
751 class SetupIntentCreateParamsPaymentMethodDataGiropay(TypedDict):
752 pass
753
754
755 class SetupIntentCreateParamsPaymentMethodDataGrabpay(TypedDict):
756 pass
757
758
759 class SetupIntentCreateParamsPaymentMethodDataIdeal(TypedDict):
760 bank: NotRequired[
761 Literal[
762 "abn_amro",
763 "adyen",
764 "asn_bank",
765 "bunq",
766 "buut",
767 "finom",
768 "handelsbanken",
769 "ing",
770 "knab",
771 "mollie",
772 "moneyou",
773 "n26",
774 "nn",
775 "rabobank",
776 "regiobank",
777 "revolut",
778 "sns_bank",
779 "triodos_bank",
780 "van_lanschot",
781 "yoursafe",
782 ]
783 ]
784 """
785 The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
786 """
787
788
789 class SetupIntentCreateParamsPaymentMethodDataInteracPresent(TypedDict):
790 pass
791
792
793 class SetupIntentCreateParamsPaymentMethodDataKakaoPay(TypedDict):
794 pass
795
796
797 class SetupIntentCreateParamsPaymentMethodDataKlarna(TypedDict):
798 dob: NotRequired["SetupIntentCreateParamsPaymentMethodDataKlarnaDob"]
799 """
800 Customer's date of birth
801 """
802
803
804 class SetupIntentCreateParamsPaymentMethodDataKlarnaDob(TypedDict):
805 day: int
806 """
807 The day of birth, between 1 and 31.
808 """
809 month: int
810 """
811 The month of birth, between 1 and 12.
812 """
813 year: int
814 """
815 The four-digit year of birth.
816 """
817
818
819 class SetupIntentCreateParamsPaymentMethodDataKonbini(TypedDict):
820 pass
821
822
823 class SetupIntentCreateParamsPaymentMethodDataKrCard(TypedDict):
824 pass
825
826
827 class SetupIntentCreateParamsPaymentMethodDataLink(TypedDict):
828 pass
829
830
831 class SetupIntentCreateParamsPaymentMethodDataMbWay(TypedDict):
832 pass
833
834
835 class SetupIntentCreateParamsPaymentMethodDataMobilepay(TypedDict):
836 pass
837
838
839 class SetupIntentCreateParamsPaymentMethodDataMultibanco(TypedDict):
840 pass
841
842
843 class SetupIntentCreateParamsPaymentMethodDataNaverPay(TypedDict):
844 funding: NotRequired[Literal["card", "points"]]
845 """
846 Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
847 """
848
849
850 class SetupIntentCreateParamsPaymentMethodDataNzBankAccount(TypedDict):
851 account_holder_name: NotRequired[str]
852 """
853 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.
854 """
855 account_number: str
856 """
857 The account number for the bank account.
858 """
859 bank_code: str
860 """
861 The numeric code for the bank account's bank.
862 """
863 branch_code: str
864 """
865 The numeric code for the bank account's bank branch.
866 """
867 reference: NotRequired[str]
868 suffix: str
869 """
870 The suffix of the bank account number.
871 """
872
873
874 class SetupIntentCreateParamsPaymentMethodDataOxxo(TypedDict):
875 pass
876
877
878 class SetupIntentCreateParamsPaymentMethodDataP24(TypedDict):
879 bank: NotRequired[
880 Literal[
881 "alior_bank",
882 "bank_millennium",
883 "bank_nowy_bfg_sa",
884 "bank_pekao_sa",
885 "banki_spbdzielcze",
886 "blik",
887 "bnp_paribas",
888 "boz",
889 "citi_handlowy",
890 "credit_agricole",
891 "envelobank",
892 "etransfer_pocztowy24",
893 "getin_bank",
894 "ideabank",
895 "ing",
896 "inteligo",
897 "mbank_mtransfer",
898 "nest_przelew",
899 "noble_pay",
900 "pbac_z_ipko",
901 "plus_bank",
902 "santander_przelew24",
903 "tmobile_usbugi_bankowe",
904 "toyota_bank",
905 "velobank",
906 "volkswagen_bank",
907 ]
908 ]
909 """
910 The customer's bank.
911 """
912
913
914 class SetupIntentCreateParamsPaymentMethodDataPayByBank(TypedDict):
915 pass
916
917
918 class SetupIntentCreateParamsPaymentMethodDataPayco(TypedDict):
919 pass
920
921
922 class SetupIntentCreateParamsPaymentMethodDataPaynow(TypedDict):
923 pass
924
925
926 class SetupIntentCreateParamsPaymentMethodDataPaypal(TypedDict):
927 pass
928
929
930 class SetupIntentCreateParamsPaymentMethodDataPayto(TypedDict):
931 account_number: NotRequired[str]
932 """
933 The account number for the bank account.
934 """
935 bsb_number: NotRequired[str]
936 """
937 Bank-State-Branch number of the bank account.
938 """
939 pay_id: NotRequired[str]
940 """
941 The PayID alias for the bank account.
942 """
943
944
945 class SetupIntentCreateParamsPaymentMethodDataPix(TypedDict):
946 pass
947
948
949 class SetupIntentCreateParamsPaymentMethodDataPromptpay(TypedDict):
950 pass
951
952
953 class SetupIntentCreateParamsPaymentMethodDataRadarOptions(TypedDict):
954 session: NotRequired[str]
955 """
956 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.
957 """
958
959
960 class SetupIntentCreateParamsPaymentMethodDataRevolutPay(TypedDict):
961 pass
962
963
964 class SetupIntentCreateParamsPaymentMethodDataSamsungPay(TypedDict):
965 pass
966
967
968 class SetupIntentCreateParamsPaymentMethodDataSatispay(TypedDict):
969 pass
970
971
972 class SetupIntentCreateParamsPaymentMethodDataSepaDebit(TypedDict):
973 iban: str
974 """
975 IBAN of the bank account.
976 """
977
978
979 class SetupIntentCreateParamsPaymentMethodDataSofort(TypedDict):
980 country: Literal["AT", "BE", "DE", "ES", "IT", "NL"]
981 """
982 Two-letter ISO code representing the country the bank account is located in.
983 """
984
985
986 class SetupIntentCreateParamsPaymentMethodDataSwish(TypedDict):
987 pass
988
989
990 class SetupIntentCreateParamsPaymentMethodDataTwint(TypedDict):
991 pass
992
993
994 class SetupIntentCreateParamsPaymentMethodDataUsBankAccount(TypedDict):
995 account_holder_type: NotRequired[Literal["company", "individual"]]
996 """
997 Account holder type: individual or company.
998 """
999 account_number: NotRequired[str]
1000 """
1001 Account number of the bank account.
1002 """
1003 account_type: NotRequired[Literal["checking", "savings"]]
1004 """
1005 Account type: checkings or savings. Defaults to checking if omitted.
1006 """
1007 financial_connections_account: NotRequired[str]
1008 """
1009 The ID of a Financial Connections Account to use as a payment method.
1010 """
1011 routing_number: NotRequired[str]
1012 """
1013 Routing number of the bank account.
1014 """
1015
1016
1017 class SetupIntentCreateParamsPaymentMethodDataWechatPay(TypedDict):
1018 pass
1019
1020
1021 class SetupIntentCreateParamsPaymentMethodDataZip(TypedDict):
1022 pass
1023
1024
1025 class SetupIntentCreateParamsPaymentMethodOptions(TypedDict):
1026 acss_debit: NotRequired[
1027 "SetupIntentCreateParamsPaymentMethodOptionsAcssDebit"
1028 ]
1029 """
1030 If this is a `acss_debit` SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.
1031 """
1032 amazon_pay: NotRequired[
1033 "SetupIntentCreateParamsPaymentMethodOptionsAmazonPay"
1034 ]
1035 """
1036 If this is a `amazon_pay` SetupIntent, this sub-hash contains details about the AmazonPay payment method options.
1037 """
1038 bacs_debit: NotRequired[
1039 "SetupIntentCreateParamsPaymentMethodOptionsBacsDebit"
1040 ]
1041 """
1042 If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.
1043 """
1044 card: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsCard"]
1045 """
1046 Configuration for any card setup attempted on this SetupIntent.
1047 """
1048 card_present: NotRequired[
1049 "SetupIntentCreateParamsPaymentMethodOptionsCardPresent"
1050 ]
1051 """
1052 If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
1053 """
1054 klarna: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsKlarna"]
1055 """
1056 If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.
1057 """
1058 link: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsLink"]
1059 """
1060 If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
1061 """
1062 paypal: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsPaypal"]
1063 """
1064 If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
1065 """
1066 payto: NotRequired["SetupIntentCreateParamsPaymentMethodOptionsPayto"]
1067 """
1068 If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
1069 """
1070 sepa_debit: NotRequired[
1071 "SetupIntentCreateParamsPaymentMethodOptionsSepaDebit"
1072 ]
1073 """
1074 If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
1075 """
1076 us_bank_account: NotRequired[
1077 "SetupIntentCreateParamsPaymentMethodOptionsUsBankAccount"
1078 ]
1079 """
1080 If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
1081 """
1082
1083
1084 class SetupIntentCreateParamsPaymentMethodOptionsAcssDebit(TypedDict):
1085 currency: NotRequired[Literal["cad", "usd"]]
1086 """
1087 Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1088 """
1089 mandate_options: NotRequired[
1090 "SetupIntentCreateParamsPaymentMethodOptionsAcssDebitMandateOptions"
1091 ]
1092 """
1093 Additional fields for Mandate creation
1094 """
1095 verification_method: NotRequired[
1096 Literal["automatic", "instant", "microdeposits"]
1097 ]
1098 """
1099 Bank account verification method.
1100 """
1101
1102
1103 class SetupIntentCreateParamsPaymentMethodOptionsAcssDebitMandateOptions(
1104 TypedDict,
1105 ):
1106 custom_mandate_url: NotRequired["Literal['']|str"]
1107 """
1108 A URL for custom mandate text to render during confirmation step.
1109 The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
1110 or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
1111 """
1112 default_for: NotRequired[List[Literal["invoice", "subscription"]]]
1113 """
1114 List of Stripe products where this mandate can be selected automatically.
1115 """
1116 interval_description: NotRequired[str]
1117 """
1118 Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
1119 """
1120 payment_schedule: NotRequired[Literal["combined", "interval", "sporadic"]]
1121 """
1122 Payment schedule for the mandate.
1123 """
1124 transaction_type: NotRequired[Literal["business", "personal"]]
1125 """
1126 Transaction type of the mandate.
1127 """
1128
1129
1130 class SetupIntentCreateParamsPaymentMethodOptionsAmazonPay(TypedDict):
1131 pass
1132
1133
1134 class SetupIntentCreateParamsPaymentMethodOptionsBacsDebit(TypedDict):
1135 mandate_options: NotRequired[
1136 "SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions"
1137 ]
1138 """
1139 Additional fields for Mandate creation
1140 """
1141
1142
1143 class SetupIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions(
1144 TypedDict,
1145 ):
1146 reference_prefix: NotRequired["Literal['']|str"]
1147 """
1148 Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
1149 """
1150
1151
1152 class SetupIntentCreateParamsPaymentMethodOptionsCard(TypedDict):
1153 mandate_options: NotRequired[
1154 "SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions"
1155 ]
1156 """
1157 Configuration options for setting up an eMandate for cards issued in India.
1158 """
1159 moto: NotRequired[bool]
1160 """
1161 When specified, this parameter signals that a card has been collected
1162 as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
1163 parameter can only be provided during confirmation.
1164 """
1165 network: NotRequired[
1166 Literal[
1167 "amex",
1168 "cartes_bancaires",
1169 "diners",
1170 "discover",
1171 "eftpos_au",
1172 "girocard",
1173 "interac",
1174 "jcb",
1175 "link",
1176 "mastercard",
1177 "unionpay",
1178 "unknown",
1179 "visa",
1180 ]
1181 ]
1182 """
1183 Selected network to process this SetupIntent on. Depends on the available networks of the card attached to the SetupIntent. Can be only set confirm-time.
1184 """
1185 request_three_d_secure: NotRequired[
1186 Literal["any", "automatic", "challenge"]
1187 ]
1188 """
1189 We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1190 """
1191 three_d_secure: NotRequired[
1192 "SetupIntentCreateParamsPaymentMethodOptionsCardThreeDSecure"
1193 ]
1194 """
1195 If 3D Secure authentication was performed with a third-party provider,
1196 the authentication details to use for this setup.
1197 """
1198
1199
1200 class SetupIntentCreateParamsPaymentMethodOptionsCardMandateOptions(TypedDict):
1201 amount: int
1202 """
1203 Amount to be charged for future payments.
1204 """
1205 amount_type: Literal["fixed", "maximum"]
1206 """
1207 One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
1208 """
1209 currency: str
1210 """
1211 Currency in which future payments will be charged. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1212 """
1213 description: NotRequired[str]
1214 """
1215 A description of the mandate or subscription that is meant to be displayed to the customer.
1216 """
1217 end_date: NotRequired[int]
1218 """
1219 End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
1220 """
1221 interval: Literal["day", "month", "sporadic", "week", "year"]
1222 """
1223 Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
1224 """
1225 interval_count: NotRequired[int]
1226 """
1227 The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
1228 """
1229 reference: str
1230 """
1231 Unique identifier for the mandate or subscription.
1232 """
1233 start_date: int
1234 """
1235 Start date of the mandate or subscription. Start date should not be lesser than yesterday.
1236 """
1237 supported_types: NotRequired[List[Literal["india"]]]
1238 """
1239 Specifies the type of mandates supported. Possible values are `india`.
1240 """
1241
1242
1243 class SetupIntentCreateParamsPaymentMethodOptionsCardThreeDSecure(TypedDict):
1244 ares_trans_status: NotRequired[Literal["A", "C", "I", "N", "R", "U", "Y"]]
1245 """
1246 The `transStatus` returned from the card Issuer's ACS in the ARes.
1247 """
1248 cryptogram: NotRequired[str]
1249 """
1250 The cryptogram, also known as the "authentication value" (AAV, CAVV or
1251 AEVV). This value is 20 bytes, base64-encoded into a 28-character string.
1252 (Most 3D Secure providers will return the base64-encoded version, which
1253 is what you should specify here.)
1254 """
1255 electronic_commerce_indicator: NotRequired[
1256 Literal["01", "02", "05", "06", "07"]
1257 ]
1258 """
1259 The Electronic Commerce Indicator (ECI) is returned by your 3D Secure
1260 provider and indicates what degree of authentication was performed.
1261 """
1262 network_options: NotRequired[
1263 "SetupIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions"
1264 ]
1265 """
1266 Network specific 3DS fields. Network specific arguments require an
1267 explicit card brand choice. The parameter `payment_method_options.card.network``
1268 must be populated accordingly
1269 """
1270 requestor_challenge_indicator: NotRequired[str]
1271 """
1272 The challenge indicator (`threeDSRequestorChallengeInd`) which was requested in the
1273 AReq sent to the card Issuer's ACS. A string containing 2 digits from 01-99.
1274 """
1275 transaction_id: NotRequired[str]
1276 """
1277 For 3D Secure 1, the XID. For 3D Secure 2, the Directory Server
1278 Transaction ID (dsTransID).
1279 """
1280 version: NotRequired[Literal["1.0.2", "2.1.0", "2.2.0", "2.3.0", "2.3.1"]]
1281 """
1282 The version of 3D Secure that was performed.
1283 """
1284
1285
1286 class SetupIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions(
1287 TypedDict,
1288 ):
1289 cartes_bancaires: NotRequired[
1290 "SetupIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires"
1291 ]
1292 """
1293 Cartes Bancaires-specific 3DS fields.
1294 """
1295
1296
1297 class SetupIntentCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires(
1298 TypedDict,
1299 ):
1300 cb_avalgo: Literal["0", "1", "2", "3", "4", "A"]
1301 """
1302 The cryptogram calculation algorithm used by the card Issuer's ACS
1303 to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
1304 messageExtension: CB-AVALGO
1305 """
1306 cb_exemption: NotRequired[str]
1307 """
1308 The exemption indicator returned from Cartes Bancaires in the ARes.
1309 message extension: CB-EXEMPTION; string (4 characters)
1310 This is a 3 byte bitmap (low significant byte first and most significant
1311 bit first) that has been Base64 encoded
1312 """
1313 cb_score: NotRequired[int]
1314 """
1315 The risk score returned from Cartes Bancaires in the ARes.
1316 message extension: CB-SCORE; numeric value 0-99
1317 """
1318
1319
1320 class SetupIntentCreateParamsPaymentMethodOptionsCardPresent(TypedDict):
1321 pass
1322
1323
1324 class SetupIntentCreateParamsPaymentMethodOptionsKlarna(TypedDict):
1325 currency: NotRequired[str]
1326 """
1327 The currency of the SetupIntent. Three letter ISO currency code.
1328 """
1329 on_demand: NotRequired[
1330 "SetupIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand"
1331 ]
1332 """
1333 On-demand details if setting up a payment method for on-demand payments.
1334 """
1335 preferred_locale: NotRequired[
1336 Literal[
1337 "cs-CZ",
1338 "da-DK",
1339 "de-AT",
1340 "de-CH",
1341 "de-DE",
1342 "el-GR",
1343 "en-AT",
1344 "en-AU",
1345 "en-BE",
1346 "en-CA",
1347 "en-CH",
1348 "en-CZ",
1349 "en-DE",
1350 "en-DK",
1351 "en-ES",
1352 "en-FI",
1353 "en-FR",
1354 "en-GB",
1355 "en-GR",
1356 "en-IE",
1357 "en-IT",
1358 "en-NL",
1359 "en-NO",
1360 "en-NZ",
1361 "en-PL",
1362 "en-PT",
1363 "en-RO",
1364 "en-SE",
1365 "en-US",
1366 "es-ES",
1367 "es-US",
1368 "fi-FI",
1369 "fr-BE",
1370 "fr-CA",
1371 "fr-CH",
1372 "fr-FR",
1373 "it-CH",
1374 "it-IT",
1375 "nb-NO",
1376 "nl-BE",
1377 "nl-NL",
1378 "pl-PL",
1379 "pt-PT",
1380 "ro-RO",
1381 "sv-FI",
1382 "sv-SE",
1383 ]
1384 ]
1385 """
1386 Preferred language of the Klarna authorization page that the customer is redirected to
1387 """
1388 subscriptions: NotRequired[
1389 "Literal['']|List[SetupIntentCreateParamsPaymentMethodOptionsKlarnaSubscription]"
1390 ]
1391 """
1392 Subscription details if setting up or charging a subscription
1393 """
1394
1395
1396 class SetupIntentCreateParamsPaymentMethodOptionsKlarnaOnDemand(TypedDict):
1397 average_amount: NotRequired[int]
1398 """
1399 Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
1400 """
1401 maximum_amount: NotRequired[int]
1402 """
1403 The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
1404 """
1405 minimum_amount: NotRequired[int]
1406 """
1407 The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
1408 """
1409 purchase_interval: NotRequired[Literal["day", "month", "week", "year"]]
1410 """
1411 Interval at which the customer is making purchases
1412 """
1413 purchase_interval_count: NotRequired[int]
1414 """
1415 The number of `purchase_interval` between charges
1416 """
1417
1418
1419 class SetupIntentCreateParamsPaymentMethodOptionsKlarnaSubscription(TypedDict):
1420 interval: Literal["day", "month", "week", "year"]
1421 """
1422 Unit of time between subscription charges.
1423 """
1424 interval_count: NotRequired[int]
1425 """
1426 The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
1427 """
1428 name: NotRequired[str]
1429 """
1430 Name for subscription.
1431 """
1432 next_billing: "SetupIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling"
1433 """
1434 Describes the upcoming charge for this subscription.
1435 """
1436 reference: str
1437 """
1438 A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
1439 """
1440
1441
1442 class SetupIntentCreateParamsPaymentMethodOptionsKlarnaSubscriptionNextBilling(
1443 TypedDict,
1444 ):
1445 amount: int
1446 """
1447 The amount of the next charge for the subscription.
1448 """
1449 date: str
1450 """
1451 The date of the next charge for the subscription in YYYY-MM-DD format.
1452 """
1453
1454
1455 class SetupIntentCreateParamsPaymentMethodOptionsLink(TypedDict):
1456 persistent_token: NotRequired[str]
1457 """
1458 [Deprecated] This is a legacy parameter that no longer has any function.
1459 """
1460
1461
1462 class SetupIntentCreateParamsPaymentMethodOptionsPaypal(TypedDict):
1463 billing_agreement_id: NotRequired[str]
1464 """
1465 The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
1466 """
1467
1468
1469 class SetupIntentCreateParamsPaymentMethodOptionsPayto(TypedDict):
1470 mandate_options: NotRequired[
1471 "SetupIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions"
1472 ]
1473 """
1474 Additional fields for Mandate creation.
1475 """
1476
1477
1478 class SetupIntentCreateParamsPaymentMethodOptionsPaytoMandateOptions(
1479 TypedDict
1480 ):
1481 amount: NotRequired["Literal['']|int"]
1482 """
1483 Amount that will be collected. It is required when `amount_type` is `fixed`.
1484 """
1485 amount_type: NotRequired["Literal['']|Literal['fixed', 'maximum']"]
1486 """
1487 The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
1488 """
1489 end_date: NotRequired["Literal['']|str"]
1490 """
1491 Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1492 """
1493 payment_schedule: NotRequired[
1494 "Literal['']|Literal['adhoc', 'annual', 'daily', 'fortnightly', 'monthly', 'quarterly', 'semi_annual', 'weekly']"
1495 ]
1496 """
1497 The periodicity at which payments will be collected. Defaults to `adhoc`.
1498 """
1499 payments_per_period: NotRequired["Literal['']|int"]
1500 """
1501 The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
1502 """
1503 purpose: NotRequired[
1504 "Literal['']|Literal['dependant_support', 'government', 'loan', 'mortgage', 'other', 'pension', 'personal', 'retail', 'salary', 'tax', 'utility']"
1505 ]
1506 """
1507 The purpose for which payments are made. Has a default value based on your merchant category code.
1508 """
1509 start_date: NotRequired["Literal['']|str"]
1510 """
1511 Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1512 """
1513
1514
1515 class SetupIntentCreateParamsPaymentMethodOptionsSepaDebit(TypedDict):
1516 mandate_options: NotRequired[
1517 "SetupIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions"
1518 ]
1519 """
1520 Additional fields for Mandate creation
1521 """
1522
1523
1524 class SetupIntentCreateParamsPaymentMethodOptionsSepaDebitMandateOptions(
1525 TypedDict,
1526 ):
1527 reference_prefix: NotRequired["Literal['']|str"]
1528 """
1529 Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
1530 """
1531
1532
1533 class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccount(TypedDict):
1534 financial_connections: NotRequired[
1535 "SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections"
1536 ]
1537 """
1538 Additional fields for Financial Connections Session creation
1539 """
1540 mandate_options: NotRequired[
1541 "SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions"
1542 ]
1543 """
1544 Additional fields for Mandate creation
1545 """
1546 networks: NotRequired[
1547 "SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks"
1548 ]
1549 """
1550 Additional fields for network related functions
1551 """
1552 verification_method: NotRequired[
1553 Literal["automatic", "instant", "microdeposits"]
1554 ]
1555 """
1556 Bank account verification method.
1557 """
1558
1559
1560 class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnections(
1561 TypedDict,
1562 ):
1563 filters: NotRequired[
1564 "SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters"
1565 ]
1566 """
1567 Provide filters for the linked accounts that the customer can select for the payment method.
1568 """
1569 permissions: NotRequired[
1570 List[
1571 Literal["balances", "ownership", "payment_method", "transactions"]
1572 ]
1573 ]
1574 """
1575 The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
1576 """
1577 prefetch: NotRequired[
1578 List[Literal["balances", "ownership", "transactions"]]
1579 ]
1580 """
1581 List of data features that you would like to retrieve upon account creation.
1582 """
1583 return_url: NotRequired[str]
1584 """
1585 For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
1586 """
1587
1588
1589 class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
1590 TypedDict,
1591 ):
1592 account_subcategories: NotRequired[List[Literal["checking", "savings"]]]
1593 """
1594 The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1595 """
1596
1597
1598 class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions(
1599 TypedDict,
1600 ):
1601 collection_method: NotRequired["Literal['']|Literal['paper']"]
1602 """
1603 The method used to collect offline mandate customer acceptance.
1604 """
1605
1606
1607 class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks(
1608 TypedDict,
1609 ):
1610 requested: NotRequired[List[Literal["ach", "us_domestic_wire"]]]
1611 """
1612 Triggers validations to run across the selected networks
1613 """
1614
1615
1616 class SetupIntentCreateParamsSingleUse(TypedDict):
1617 amount: int
1618 """
1619 Amount the customer is granting permission to collect later. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
1620 """
1621 currency: str
1622 """
1623 Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1624 """