| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from stripe._request_options import RequestOptions |
| 4 |
from typing import List |
| 5 |
from typing_extensions import NotRequired, TypedDict |
| 6 |
|
| 7 |
|
| 8 |
class AccountSessionCreateParams(RequestOptions): |
| 9 |
account: str |
| 10 |
""" |
| 11 |
The identifier of the account to create an Account Session for. |
| 12 |
""" |
| 13 |
components: "AccountSessionCreateParamsComponents" |
| 14 |
""" |
| 15 |
Each key of the dictionary represents an embedded component, and each embedded component maps to its configuration (e.g. whether it has been enabled or not). |
| 16 |
""" |
| 17 |
expand: NotRequired[List[str]] |
| 18 |
""" |
| 19 |
Specifies which fields in the response should be expanded. |
| 20 |
""" |
| 21 |
|
| 22 |
|
| 23 |
class AccountSessionCreateParamsComponents(TypedDict): |
| 24 |
account_management: NotRequired[ |
| 25 |
"AccountSessionCreateParamsComponentsAccountManagement" |
| 26 |
] |
| 27 |
""" |
| 28 |
Configuration for the [account management](https://docs.stripe.com/connect/supported-embedded-components/account-management/) embedded component. |
| 29 |
""" |
| 30 |
account_onboarding: NotRequired[ |
| 31 |
"AccountSessionCreateParamsComponentsAccountOnboarding" |
| 32 |
] |
| 33 |
""" |
| 34 |
Configuration for the [account onboarding](https://docs.stripe.com/connect/supported-embedded-components/account-onboarding/) embedded component. |
| 35 |
""" |
| 36 |
balances: NotRequired["AccountSessionCreateParamsComponentsBalances"] |
| 37 |
""" |
| 38 |
Configuration for the [balances](https://docs.stripe.com/connect/supported-embedded-components/balances/) embedded component. |
| 39 |
""" |
| 40 |
disputes_list: NotRequired[ |
| 41 |
"AccountSessionCreateParamsComponentsDisputesList" |
| 42 |
] |
| 43 |
""" |
| 44 |
Configuration for the [disputes list](https://docs.stripe.com/connect/supported-embedded-components/disputes-list/) embedded component. |
| 45 |
""" |
| 46 |
documents: NotRequired["AccountSessionCreateParamsComponentsDocuments"] |
| 47 |
""" |
| 48 |
Configuration for the [documents](https://docs.stripe.com/connect/supported-embedded-components/documents/) embedded component. |
| 49 |
""" |
| 50 |
financial_account: NotRequired[ |
| 51 |
"AccountSessionCreateParamsComponentsFinancialAccount" |
| 52 |
] |
| 53 |
""" |
| 54 |
Configuration for the [financial account](https://docs.stripe.com/connect/supported-embedded-components/financial-account/) embedded component. |
| 55 |
""" |
| 56 |
financial_account_transactions: NotRequired[ |
| 57 |
"AccountSessionCreateParamsComponentsFinancialAccountTransactions" |
| 58 |
] |
| 59 |
""" |
| 60 |
Configuration for the [financial account transactions](https://docs.stripe.com/connect/supported-embedded-components/financial-account-transactions/) embedded component. |
| 61 |
""" |
| 62 |
instant_payouts_promotion: NotRequired[ |
| 63 |
"AccountSessionCreateParamsComponentsInstantPayoutsPromotion" |
| 64 |
] |
| 65 |
""" |
| 66 |
Configuration for the [instant payouts promotion](https://docs.stripe.com/connect/supported-embedded-components/instant-payouts-promotion/) embedded component. |
| 67 |
""" |
| 68 |
issuing_card: NotRequired[ |
| 69 |
"AccountSessionCreateParamsComponentsIssuingCard" |
| 70 |
] |
| 71 |
""" |
| 72 |
Configuration for the [issuing card](https://docs.stripe.com/connect/supported-embedded-components/issuing-card/) embedded component. |
| 73 |
""" |
| 74 |
issuing_cards_list: NotRequired[ |
| 75 |
"AccountSessionCreateParamsComponentsIssuingCardsList" |
| 76 |
] |
| 77 |
""" |
| 78 |
Configuration for the [issuing cards list](https://docs.stripe.com/connect/supported-embedded-components/issuing-cards-list/) embedded component. |
| 79 |
""" |
| 80 |
notification_banner: NotRequired[ |
| 81 |
"AccountSessionCreateParamsComponentsNotificationBanner" |
| 82 |
] |
| 83 |
""" |
| 84 |
Configuration for the [notification banner](https://docs.stripe.com/connect/supported-embedded-components/notification-banner/) embedded component. |
| 85 |
""" |
| 86 |
payment_details: NotRequired[ |
| 87 |
"AccountSessionCreateParamsComponentsPaymentDetails" |
| 88 |
] |
| 89 |
""" |
| 90 |
Configuration for the [payment details](https://docs.stripe.com/connect/supported-embedded-components/payment-details/) embedded component. |
| 91 |
""" |
| 92 |
payment_disputes: NotRequired[ |
| 93 |
"AccountSessionCreateParamsComponentsPaymentDisputes" |
| 94 |
] |
| 95 |
""" |
| 96 |
Configuration for the [payment disputes](https://docs.stripe.com/connect/supported-embedded-components/payment-disputes/) embedded component. |
| 97 |
""" |
| 98 |
payments: NotRequired["AccountSessionCreateParamsComponentsPayments"] |
| 99 |
""" |
| 100 |
Configuration for the [payments](https://docs.stripe.com/connect/supported-embedded-components/payments/) embedded component. |
| 101 |
""" |
| 102 |
payout_details: NotRequired[ |
| 103 |
"AccountSessionCreateParamsComponentsPayoutDetails" |
| 104 |
] |
| 105 |
""" |
| 106 |
Configuration for the [payout details](https://docs.stripe.com/connect/supported-embedded-components/payout-details/) embedded component. |
| 107 |
""" |
| 108 |
payouts: NotRequired["AccountSessionCreateParamsComponentsPayouts"] |
| 109 |
""" |
| 110 |
Configuration for the [payouts](https://docs.stripe.com/connect/supported-embedded-components/payouts/) embedded component. |
| 111 |
""" |
| 112 |
payouts_list: NotRequired[ |
| 113 |
"AccountSessionCreateParamsComponentsPayoutsList" |
| 114 |
] |
| 115 |
""" |
| 116 |
Configuration for the [payouts list](https://docs.stripe.com/connect/supported-embedded-components/payouts-list/) embedded component. |
| 117 |
""" |
| 118 |
tax_registrations: NotRequired[ |
| 119 |
"AccountSessionCreateParamsComponentsTaxRegistrations" |
| 120 |
] |
| 121 |
""" |
| 122 |
Configuration for the [tax registrations](https://docs.stripe.com/connect/supported-embedded-components/tax-registrations/) embedded component. |
| 123 |
""" |
| 124 |
tax_settings: NotRequired[ |
| 125 |
"AccountSessionCreateParamsComponentsTaxSettings" |
| 126 |
] |
| 127 |
""" |
| 128 |
Configuration for the [tax settings](https://docs.stripe.com/connect/supported-embedded-components/tax-settings/) embedded component. |
| 129 |
""" |
| 130 |
|
| 131 |
|
| 132 |
class AccountSessionCreateParamsComponentsAccountManagement(TypedDict): |
| 133 |
enabled: bool |
| 134 |
""" |
| 135 |
Whether the embedded component is enabled. |
| 136 |
""" |
| 137 |
features: NotRequired[ |
| 138 |
"AccountSessionCreateParamsComponentsAccountManagementFeatures" |
| 139 |
] |
| 140 |
""" |
| 141 |
The list of features enabled in the embedded component. |
| 142 |
""" |
| 143 |
|
| 144 |
|
| 145 |
class AccountSessionCreateParamsComponentsAccountManagementFeatures(TypedDict): |
| 146 |
disable_stripe_user_authentication: NotRequired[bool] |
| 147 |
""" |
| 148 |
Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. |
| 149 |
""" |
| 150 |
external_account_collection: NotRequired[bool] |
| 151 |
""" |
| 152 |
Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. |
| 153 |
""" |
| 154 |
|
| 155 |
|
| 156 |
class AccountSessionCreateParamsComponentsAccountOnboarding(TypedDict): |
| 157 |
enabled: bool |
| 158 |
""" |
| 159 |
Whether the embedded component is enabled. |
| 160 |
""" |
| 161 |
features: NotRequired[ |
| 162 |
"AccountSessionCreateParamsComponentsAccountOnboardingFeatures" |
| 163 |
] |
| 164 |
""" |
| 165 |
The list of features enabled in the embedded component. |
| 166 |
""" |
| 167 |
|
| 168 |
|
| 169 |
class AccountSessionCreateParamsComponentsAccountOnboardingFeatures(TypedDict): |
| 170 |
disable_stripe_user_authentication: NotRequired[bool] |
| 171 |
""" |
| 172 |
Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. |
| 173 |
""" |
| 174 |
external_account_collection: NotRequired[bool] |
| 175 |
""" |
| 176 |
Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. |
| 177 |
""" |
| 178 |
|
| 179 |
|
| 180 |
class AccountSessionCreateParamsComponentsBalances(TypedDict): |
| 181 |
enabled: bool |
| 182 |
""" |
| 183 |
Whether the embedded component is enabled. |
| 184 |
""" |
| 185 |
features: NotRequired[ |
| 186 |
"AccountSessionCreateParamsComponentsBalancesFeatures" |
| 187 |
] |
| 188 |
""" |
| 189 |
The list of features enabled in the embedded component. |
| 190 |
""" |
| 191 |
|
| 192 |
|
| 193 |
class AccountSessionCreateParamsComponentsBalancesFeatures(TypedDict): |
| 194 |
disable_stripe_user_authentication: NotRequired[bool] |
| 195 |
""" |
| 196 |
Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. |
| 197 |
""" |
| 198 |
edit_payout_schedule: NotRequired[bool] |
| 199 |
""" |
| 200 |
Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`. |
| 201 |
""" |
| 202 |
external_account_collection: NotRequired[bool] |
| 203 |
""" |
| 204 |
Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. |
| 205 |
""" |
| 206 |
instant_payouts: NotRequired[bool] |
| 207 |
""" |
| 208 |
Whether instant payouts are enabled for this component. |
| 209 |
""" |
| 210 |
standard_payouts: NotRequired[bool] |
| 211 |
""" |
| 212 |
Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`. |
| 213 |
""" |
| 214 |
|
| 215 |
|
| 216 |
class AccountSessionCreateParamsComponentsDisputesList(TypedDict): |
| 217 |
enabled: bool |
| 218 |
""" |
| 219 |
Whether the embedded component is enabled. |
| 220 |
""" |
| 221 |
features: NotRequired[ |
| 222 |
"AccountSessionCreateParamsComponentsDisputesListFeatures" |
| 223 |
] |
| 224 |
""" |
| 225 |
The list of features enabled in the embedded component. |
| 226 |
""" |
| 227 |
|
| 228 |
|
| 229 |
class AccountSessionCreateParamsComponentsDisputesListFeatures(TypedDict): |
| 230 |
capture_payments: NotRequired[bool] |
| 231 |
""" |
| 232 |
Whether to allow capturing and cancelling payment intents. This is `true` by default. |
| 233 |
""" |
| 234 |
destination_on_behalf_of_charge_management: NotRequired[bool] |
| 235 |
""" |
| 236 |
Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. |
| 237 |
""" |
| 238 |
dispute_management: NotRequired[bool] |
| 239 |
""" |
| 240 |
Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default. |
| 241 |
""" |
| 242 |
refund_management: NotRequired[bool] |
| 243 |
""" |
| 244 |
Whether sending refunds is enabled. This is `true` by default. |
| 245 |
""" |
| 246 |
|
| 247 |
|
| 248 |
class AccountSessionCreateParamsComponentsDocuments(TypedDict): |
| 249 |
enabled: bool |
| 250 |
""" |
| 251 |
Whether the embedded component is enabled. |
| 252 |
""" |
| 253 |
features: NotRequired[ |
| 254 |
"AccountSessionCreateParamsComponentsDocumentsFeatures" |
| 255 |
] |
| 256 |
""" |
| 257 |
An empty list, because this embedded component has no features. |
| 258 |
""" |
| 259 |
|
| 260 |
|
| 261 |
class AccountSessionCreateParamsComponentsDocumentsFeatures(TypedDict): |
| 262 |
pass |
| 263 |
|
| 264 |
|
| 265 |
class AccountSessionCreateParamsComponentsFinancialAccount(TypedDict): |
| 266 |
enabled: bool |
| 267 |
""" |
| 268 |
Whether the embedded component is enabled. |
| 269 |
""" |
| 270 |
features: NotRequired[ |
| 271 |
"AccountSessionCreateParamsComponentsFinancialAccountFeatures" |
| 272 |
] |
| 273 |
""" |
| 274 |
The list of features enabled in the embedded component. |
| 275 |
""" |
| 276 |
|
| 277 |
|
| 278 |
class AccountSessionCreateParamsComponentsFinancialAccountFeatures(TypedDict): |
| 279 |
disable_stripe_user_authentication: NotRequired[bool] |
| 280 |
""" |
| 281 |
Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. |
| 282 |
""" |
| 283 |
external_account_collection: NotRequired[bool] |
| 284 |
""" |
| 285 |
Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. |
| 286 |
""" |
| 287 |
send_money: NotRequired[bool] |
| 288 |
""" |
| 289 |
Whether to allow sending money. |
| 290 |
""" |
| 291 |
transfer_balance: NotRequired[bool] |
| 292 |
""" |
| 293 |
Whether to allow transferring balance. |
| 294 |
""" |
| 295 |
|
| 296 |
|
| 297 |
class AccountSessionCreateParamsComponentsFinancialAccountTransactions( |
| 298 |
TypedDict, |
| 299 |
): |
| 300 |
enabled: bool |
| 301 |
""" |
| 302 |
Whether the embedded component is enabled. |
| 303 |
""" |
| 304 |
features: NotRequired[ |
| 305 |
"AccountSessionCreateParamsComponentsFinancialAccountTransactionsFeatures" |
| 306 |
] |
| 307 |
""" |
| 308 |
The list of features enabled in the embedded component. |
| 309 |
""" |
| 310 |
|
| 311 |
|
| 312 |
class AccountSessionCreateParamsComponentsFinancialAccountTransactionsFeatures( |
| 313 |
TypedDict, |
| 314 |
): |
| 315 |
card_spend_dispute_management: NotRequired[bool] |
| 316 |
""" |
| 317 |
Whether to allow card spend dispute management features. |
| 318 |
""" |
| 319 |
|
| 320 |
|
| 321 |
class AccountSessionCreateParamsComponentsInstantPayoutsPromotion(TypedDict): |
| 322 |
enabled: bool |
| 323 |
""" |
| 324 |
Whether the embedded component is enabled. |
| 325 |
""" |
| 326 |
features: NotRequired[ |
| 327 |
"AccountSessionCreateParamsComponentsInstantPayoutsPromotionFeatures" |
| 328 |
] |
| 329 |
""" |
| 330 |
The list of features enabled in the embedded component. |
| 331 |
""" |
| 332 |
|
| 333 |
|
| 334 |
class AccountSessionCreateParamsComponentsInstantPayoutsPromotionFeatures( |
| 335 |
TypedDict, |
| 336 |
): |
| 337 |
disable_stripe_user_authentication: NotRequired[bool] |
| 338 |
""" |
| 339 |
Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. |
| 340 |
""" |
| 341 |
external_account_collection: NotRequired[bool] |
| 342 |
""" |
| 343 |
Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. |
| 344 |
""" |
| 345 |
instant_payouts: NotRequired[bool] |
| 346 |
""" |
| 347 |
Whether instant payouts are enabled for this component. |
| 348 |
""" |
| 349 |
|
| 350 |
|
| 351 |
class AccountSessionCreateParamsComponentsIssuingCard(TypedDict): |
| 352 |
enabled: bool |
| 353 |
""" |
| 354 |
Whether the embedded component is enabled. |
| 355 |
""" |
| 356 |
features: NotRequired[ |
| 357 |
"AccountSessionCreateParamsComponentsIssuingCardFeatures" |
| 358 |
] |
| 359 |
""" |
| 360 |
The list of features enabled in the embedded component. |
| 361 |
""" |
| 362 |
|
| 363 |
|
| 364 |
class AccountSessionCreateParamsComponentsIssuingCardFeatures(TypedDict): |
| 365 |
card_management: NotRequired[bool] |
| 366 |
""" |
| 367 |
Whether to allow card management features. |
| 368 |
""" |
| 369 |
card_spend_dispute_management: NotRequired[bool] |
| 370 |
""" |
| 371 |
Whether to allow card spend dispute management features. |
| 372 |
""" |
| 373 |
cardholder_management: NotRequired[bool] |
| 374 |
""" |
| 375 |
Whether to allow cardholder management features. |
| 376 |
""" |
| 377 |
spend_control_management: NotRequired[bool] |
| 378 |
""" |
| 379 |
Whether to allow spend control management features. |
| 380 |
""" |
| 381 |
|
| 382 |
|
| 383 |
class AccountSessionCreateParamsComponentsIssuingCardsList(TypedDict): |
| 384 |
enabled: bool |
| 385 |
""" |
| 386 |
Whether the embedded component is enabled. |
| 387 |
""" |
| 388 |
features: NotRequired[ |
| 389 |
"AccountSessionCreateParamsComponentsIssuingCardsListFeatures" |
| 390 |
] |
| 391 |
""" |
| 392 |
The list of features enabled in the embedded component. |
| 393 |
""" |
| 394 |
|
| 395 |
|
| 396 |
class AccountSessionCreateParamsComponentsIssuingCardsListFeatures(TypedDict): |
| 397 |
card_management: NotRequired[bool] |
| 398 |
""" |
| 399 |
Whether to allow card management features. |
| 400 |
""" |
| 401 |
card_spend_dispute_management: NotRequired[bool] |
| 402 |
""" |
| 403 |
Whether to allow card spend dispute management features. |
| 404 |
""" |
| 405 |
cardholder_management: NotRequired[bool] |
| 406 |
""" |
| 407 |
Whether to allow cardholder management features. |
| 408 |
""" |
| 409 |
disable_stripe_user_authentication: NotRequired[bool] |
| 410 |
""" |
| 411 |
Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. |
| 412 |
""" |
| 413 |
spend_control_management: NotRequired[bool] |
| 414 |
""" |
| 415 |
Whether to allow spend control management features. |
| 416 |
""" |
| 417 |
|
| 418 |
|
| 419 |
class AccountSessionCreateParamsComponentsNotificationBanner(TypedDict): |
| 420 |
enabled: bool |
| 421 |
""" |
| 422 |
Whether the embedded component is enabled. |
| 423 |
""" |
| 424 |
features: NotRequired[ |
| 425 |
"AccountSessionCreateParamsComponentsNotificationBannerFeatures" |
| 426 |
] |
| 427 |
""" |
| 428 |
The list of features enabled in the embedded component. |
| 429 |
""" |
| 430 |
|
| 431 |
|
| 432 |
class AccountSessionCreateParamsComponentsNotificationBannerFeatures( |
| 433 |
TypedDict |
| 434 |
): |
| 435 |
disable_stripe_user_authentication: NotRequired[bool] |
| 436 |
""" |
| 437 |
Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. |
| 438 |
""" |
| 439 |
external_account_collection: NotRequired[bool] |
| 440 |
""" |
| 441 |
Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. |
| 442 |
""" |
| 443 |
|
| 444 |
|
| 445 |
class AccountSessionCreateParamsComponentsPaymentDetails(TypedDict): |
| 446 |
enabled: bool |
| 447 |
""" |
| 448 |
Whether the embedded component is enabled. |
| 449 |
""" |
| 450 |
features: NotRequired[ |
| 451 |
"AccountSessionCreateParamsComponentsPaymentDetailsFeatures" |
| 452 |
] |
| 453 |
""" |
| 454 |
The list of features enabled in the embedded component. |
| 455 |
""" |
| 456 |
|
| 457 |
|
| 458 |
class AccountSessionCreateParamsComponentsPaymentDetailsFeatures(TypedDict): |
| 459 |
capture_payments: NotRequired[bool] |
| 460 |
""" |
| 461 |
Whether to allow capturing and cancelling payment intents. This is `true` by default. |
| 462 |
""" |
| 463 |
destination_on_behalf_of_charge_management: NotRequired[bool] |
| 464 |
""" |
| 465 |
Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. |
| 466 |
""" |
| 467 |
dispute_management: NotRequired[bool] |
| 468 |
""" |
| 469 |
Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default. |
| 470 |
""" |
| 471 |
refund_management: NotRequired[bool] |
| 472 |
""" |
| 473 |
Whether sending refunds is enabled. This is `true` by default. |
| 474 |
""" |
| 475 |
|
| 476 |
|
| 477 |
class AccountSessionCreateParamsComponentsPaymentDisputes(TypedDict): |
| 478 |
enabled: bool |
| 479 |
""" |
| 480 |
Whether the embedded component is enabled. |
| 481 |
""" |
| 482 |
features: NotRequired[ |
| 483 |
"AccountSessionCreateParamsComponentsPaymentDisputesFeatures" |
| 484 |
] |
| 485 |
""" |
| 486 |
The list of features enabled in the embedded component. |
| 487 |
""" |
| 488 |
|
| 489 |
|
| 490 |
class AccountSessionCreateParamsComponentsPaymentDisputesFeatures(TypedDict): |
| 491 |
destination_on_behalf_of_charge_management: NotRequired[bool] |
| 492 |
""" |
| 493 |
Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. |
| 494 |
""" |
| 495 |
dispute_management: NotRequired[bool] |
| 496 |
""" |
| 497 |
Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default. |
| 498 |
""" |
| 499 |
refund_management: NotRequired[bool] |
| 500 |
""" |
| 501 |
Whether sending refunds is enabled. This is `true` by default. |
| 502 |
""" |
| 503 |
|
| 504 |
|
| 505 |
class AccountSessionCreateParamsComponentsPayments(TypedDict): |
| 506 |
enabled: bool |
| 507 |
""" |
| 508 |
Whether the embedded component is enabled. |
| 509 |
""" |
| 510 |
features: NotRequired[ |
| 511 |
"AccountSessionCreateParamsComponentsPaymentsFeatures" |
| 512 |
] |
| 513 |
""" |
| 514 |
The list of features enabled in the embedded component. |
| 515 |
""" |
| 516 |
|
| 517 |
|
| 518 |
class AccountSessionCreateParamsComponentsPaymentsFeatures(TypedDict): |
| 519 |
capture_payments: NotRequired[bool] |
| 520 |
""" |
| 521 |
Whether to allow capturing and cancelling payment intents. This is `true` by default. |
| 522 |
""" |
| 523 |
destination_on_behalf_of_charge_management: NotRequired[bool] |
| 524 |
""" |
| 525 |
Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. |
| 526 |
""" |
| 527 |
dispute_management: NotRequired[bool] |
| 528 |
""" |
| 529 |
Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default. |
| 530 |
""" |
| 531 |
refund_management: NotRequired[bool] |
| 532 |
""" |
| 533 |
Whether sending refunds is enabled. This is `true` by default. |
| 534 |
""" |
| 535 |
|
| 536 |
|
| 537 |
class AccountSessionCreateParamsComponentsPayoutDetails(TypedDict): |
| 538 |
enabled: bool |
| 539 |
""" |
| 540 |
Whether the embedded component is enabled. |
| 541 |
""" |
| 542 |
features: NotRequired[ |
| 543 |
"AccountSessionCreateParamsComponentsPayoutDetailsFeatures" |
| 544 |
] |
| 545 |
""" |
| 546 |
An empty list, because this embedded component has no features. |
| 547 |
""" |
| 548 |
|
| 549 |
|
| 550 |
class AccountSessionCreateParamsComponentsPayoutDetailsFeatures(TypedDict): |
| 551 |
pass |
| 552 |
|
| 553 |
|
| 554 |
class AccountSessionCreateParamsComponentsPayouts(TypedDict): |
| 555 |
enabled: bool |
| 556 |
""" |
| 557 |
Whether the embedded component is enabled. |
| 558 |
""" |
| 559 |
features: NotRequired[ |
| 560 |
"AccountSessionCreateParamsComponentsPayoutsFeatures" |
| 561 |
] |
| 562 |
""" |
| 563 |
The list of features enabled in the embedded component. |
| 564 |
""" |
| 565 |
|
| 566 |
|
| 567 |
class AccountSessionCreateParamsComponentsPayoutsFeatures(TypedDict): |
| 568 |
disable_stripe_user_authentication: NotRequired[bool] |
| 569 |
""" |
| 570 |
Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. |
| 571 |
""" |
| 572 |
edit_payout_schedule: NotRequired[bool] |
| 573 |
""" |
| 574 |
Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`. |
| 575 |
""" |
| 576 |
external_account_collection: NotRequired[bool] |
| 577 |
""" |
| 578 |
Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. |
| 579 |
""" |
| 580 |
instant_payouts: NotRequired[bool] |
| 581 |
""" |
| 582 |
Whether instant payouts are enabled for this component. |
| 583 |
""" |
| 584 |
standard_payouts: NotRequired[bool] |
| 585 |
""" |
| 586 |
Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`. |
| 587 |
""" |
| 588 |
|
| 589 |
|
| 590 |
class AccountSessionCreateParamsComponentsPayoutsList(TypedDict): |
| 591 |
enabled: bool |
| 592 |
""" |
| 593 |
Whether the embedded component is enabled. |
| 594 |
""" |
| 595 |
features: NotRequired[ |
| 596 |
"AccountSessionCreateParamsComponentsPayoutsListFeatures" |
| 597 |
] |
| 598 |
""" |
| 599 |
An empty list, because this embedded component has no features. |
| 600 |
""" |
| 601 |
|
| 602 |
|
| 603 |
class AccountSessionCreateParamsComponentsPayoutsListFeatures(TypedDict): |
| 604 |
pass |
| 605 |
|
| 606 |
|
| 607 |
class AccountSessionCreateParamsComponentsTaxRegistrations(TypedDict): |
| 608 |
enabled: bool |
| 609 |
""" |
| 610 |
Whether the embedded component is enabled. |
| 611 |
""" |
| 612 |
features: NotRequired[ |
| 613 |
"AccountSessionCreateParamsComponentsTaxRegistrationsFeatures" |
| 614 |
] |
| 615 |
""" |
| 616 |
An empty list, because this embedded component has no features. |
| 617 |
""" |
| 618 |
|
| 619 |
|
| 620 |
class AccountSessionCreateParamsComponentsTaxRegistrationsFeatures(TypedDict): |
| 621 |
pass |
| 622 |
|
| 623 |
|
| 624 |
class AccountSessionCreateParamsComponentsTaxSettings(TypedDict): |
| 625 |
enabled: bool |
| 626 |
""" |
| 627 |
Whether the embedded component is enabled. |
| 628 |
""" |
| 629 |
features: NotRequired[ |
| 630 |
"AccountSessionCreateParamsComponentsTaxSettingsFeatures" |
| 631 |
] |
| 632 |
""" |
| 633 |
An empty list, because this embedded component has no features. |
| 634 |
""" |
| 635 |
|
| 636 |
|
| 637 |
class AccountSessionCreateParamsComponentsTaxSettingsFeatures(TypedDict): |
| 638 |
pass |