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