| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# File generated from our OpenAPI spec |
| 3 |
from stripe._stripe_object import StripeObject |
| 4 |
from typing import ClassVar, List, Optional |
| 5 |
from typing_extensions import Literal |
| 6 |
|
| 7 |
|
| 8 |
class FinancialAccountFeatures(StripeObject): |
| 9 |
""" |
| 10 |
Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`. |
| 11 |
Stripe or the platform can control Features via the requested field. |
| 12 |
""" |
| 13 |
|
| 14 |
OBJECT_NAME: ClassVar[Literal["treasury.financial_account_features"]] = ( |
| 15 |
"treasury.financial_account_features" |
| 16 |
) |
| 17 |
|
| 18 |
class CardIssuing(StripeObject): |
| 19 |
class StatusDetail(StripeObject): |
| 20 |
code: Literal[ |
| 21 |
"activating", |
| 22 |
"capability_not_requested", |
| 23 |
"financial_account_closed", |
| 24 |
"rejected_other", |
| 25 |
"rejected_unsupported_business", |
| 26 |
"requirements_past_due", |
| 27 |
"requirements_pending_verification", |
| 28 |
"restricted_by_platform", |
| 29 |
"restricted_other", |
| 30 |
] |
| 31 |
""" |
| 32 |
Represents the reason why the status is `pending` or `restricted`. |
| 33 |
""" |
| 34 |
resolution: Optional[ |
| 35 |
Literal[ |
| 36 |
"contact_stripe", |
| 37 |
"provide_information", |
| 38 |
"remove_restriction", |
| 39 |
] |
| 40 |
] |
| 41 |
""" |
| 42 |
Represents what the user should do, if anything, to activate the Feature. |
| 43 |
""" |
| 44 |
restriction: Optional[Literal["inbound_flows", "outbound_flows"]] |
| 45 |
""" |
| 46 |
The `platform_restrictions` that are restricting this Feature. |
| 47 |
""" |
| 48 |
|
| 49 |
requested: bool |
| 50 |
""" |
| 51 |
Whether the FinancialAccount should have the Feature. |
| 52 |
""" |
| 53 |
status: Literal["active", "pending", "restricted"] |
| 54 |
""" |
| 55 |
Whether the Feature is operational. |
| 56 |
""" |
| 57 |
status_details: List[StatusDetail] |
| 58 |
""" |
| 59 |
Additional details; includes at least one entry when the status is not `active`. |
| 60 |
""" |
| 61 |
_inner_class_types = {"status_details": StatusDetail} |
| 62 |
|
| 63 |
class DepositInsurance(StripeObject): |
| 64 |
class StatusDetail(StripeObject): |
| 65 |
code: Literal[ |
| 66 |
"activating", |
| 67 |
"capability_not_requested", |
| 68 |
"financial_account_closed", |
| 69 |
"rejected_other", |
| 70 |
"rejected_unsupported_business", |
| 71 |
"requirements_past_due", |
| 72 |
"requirements_pending_verification", |
| 73 |
"restricted_by_platform", |
| 74 |
"restricted_other", |
| 75 |
] |
| 76 |
""" |
| 77 |
Represents the reason why the status is `pending` or `restricted`. |
| 78 |
""" |
| 79 |
resolution: Optional[ |
| 80 |
Literal[ |
| 81 |
"contact_stripe", |
| 82 |
"provide_information", |
| 83 |
"remove_restriction", |
| 84 |
] |
| 85 |
] |
| 86 |
""" |
| 87 |
Represents what the user should do, if anything, to activate the Feature. |
| 88 |
""" |
| 89 |
restriction: Optional[Literal["inbound_flows", "outbound_flows"]] |
| 90 |
""" |
| 91 |
The `platform_restrictions` that are restricting this Feature. |
| 92 |
""" |
| 93 |
|
| 94 |
requested: bool |
| 95 |
""" |
| 96 |
Whether the FinancialAccount should have the Feature. |
| 97 |
""" |
| 98 |
status: Literal["active", "pending", "restricted"] |
| 99 |
""" |
| 100 |
Whether the Feature is operational. |
| 101 |
""" |
| 102 |
status_details: List[StatusDetail] |
| 103 |
""" |
| 104 |
Additional details; includes at least one entry when the status is not `active`. |
| 105 |
""" |
| 106 |
_inner_class_types = {"status_details": StatusDetail} |
| 107 |
|
| 108 |
class FinancialAddresses(StripeObject): |
| 109 |
class Aba(StripeObject): |
| 110 |
class StatusDetail(StripeObject): |
| 111 |
code: Literal[ |
| 112 |
"activating", |
| 113 |
"capability_not_requested", |
| 114 |
"financial_account_closed", |
| 115 |
"rejected_other", |
| 116 |
"rejected_unsupported_business", |
| 117 |
"requirements_past_due", |
| 118 |
"requirements_pending_verification", |
| 119 |
"restricted_by_platform", |
| 120 |
"restricted_other", |
| 121 |
] |
| 122 |
""" |
| 123 |
Represents the reason why the status is `pending` or `restricted`. |
| 124 |
""" |
| 125 |
resolution: Optional[ |
| 126 |
Literal[ |
| 127 |
"contact_stripe", |
| 128 |
"provide_information", |
| 129 |
"remove_restriction", |
| 130 |
] |
| 131 |
] |
| 132 |
""" |
| 133 |
Represents what the user should do, if anything, to activate the Feature. |
| 134 |
""" |
| 135 |
restriction: Optional[ |
| 136 |
Literal["inbound_flows", "outbound_flows"] |
| 137 |
] |
| 138 |
""" |
| 139 |
The `platform_restrictions` that are restricting this Feature. |
| 140 |
""" |
| 141 |
|
| 142 |
requested: bool |
| 143 |
""" |
| 144 |
Whether the FinancialAccount should have the Feature. |
| 145 |
""" |
| 146 |
status: Literal["active", "pending", "restricted"] |
| 147 |
""" |
| 148 |
Whether the Feature is operational. |
| 149 |
""" |
| 150 |
status_details: List[StatusDetail] |
| 151 |
""" |
| 152 |
Additional details; includes at least one entry when the status is not `active`. |
| 153 |
""" |
| 154 |
_inner_class_types = {"status_details": StatusDetail} |
| 155 |
|
| 156 |
aba: Optional[Aba] |
| 157 |
""" |
| 158 |
Toggle settings for enabling/disabling the ABA address feature |
| 159 |
""" |
| 160 |
_inner_class_types = {"aba": Aba} |
| 161 |
|
| 162 |
class InboundTransfers(StripeObject): |
| 163 |
class Ach(StripeObject): |
| 164 |
class StatusDetail(StripeObject): |
| 165 |
code: Literal[ |
| 166 |
"activating", |
| 167 |
"capability_not_requested", |
| 168 |
"financial_account_closed", |
| 169 |
"rejected_other", |
| 170 |
"rejected_unsupported_business", |
| 171 |
"requirements_past_due", |
| 172 |
"requirements_pending_verification", |
| 173 |
"restricted_by_platform", |
| 174 |
"restricted_other", |
| 175 |
] |
| 176 |
""" |
| 177 |
Represents the reason why the status is `pending` or `restricted`. |
| 178 |
""" |
| 179 |
resolution: Optional[ |
| 180 |
Literal[ |
| 181 |
"contact_stripe", |
| 182 |
"provide_information", |
| 183 |
"remove_restriction", |
| 184 |
] |
| 185 |
] |
| 186 |
""" |
| 187 |
Represents what the user should do, if anything, to activate the Feature. |
| 188 |
""" |
| 189 |
restriction: Optional[ |
| 190 |
Literal["inbound_flows", "outbound_flows"] |
| 191 |
] |
| 192 |
""" |
| 193 |
The `platform_restrictions` that are restricting this Feature. |
| 194 |
""" |
| 195 |
|
| 196 |
requested: bool |
| 197 |
""" |
| 198 |
Whether the FinancialAccount should have the Feature. |
| 199 |
""" |
| 200 |
status: Literal["active", "pending", "restricted"] |
| 201 |
""" |
| 202 |
Whether the Feature is operational. |
| 203 |
""" |
| 204 |
status_details: List[StatusDetail] |
| 205 |
""" |
| 206 |
Additional details; includes at least one entry when the status is not `active`. |
| 207 |
""" |
| 208 |
_inner_class_types = {"status_details": StatusDetail} |
| 209 |
|
| 210 |
ach: Optional[Ach] |
| 211 |
""" |
| 212 |
Toggle settings for enabling/disabling an inbound ACH specific feature |
| 213 |
""" |
| 214 |
_inner_class_types = {"ach": Ach} |
| 215 |
|
| 216 |
class IntraStripeFlows(StripeObject): |
| 217 |
class StatusDetail(StripeObject): |
| 218 |
code: Literal[ |
| 219 |
"activating", |
| 220 |
"capability_not_requested", |
| 221 |
"financial_account_closed", |
| 222 |
"rejected_other", |
| 223 |
"rejected_unsupported_business", |
| 224 |
"requirements_past_due", |
| 225 |
"requirements_pending_verification", |
| 226 |
"restricted_by_platform", |
| 227 |
"restricted_other", |
| 228 |
] |
| 229 |
""" |
| 230 |
Represents the reason why the status is `pending` or `restricted`. |
| 231 |
""" |
| 232 |
resolution: Optional[ |
| 233 |
Literal[ |
| 234 |
"contact_stripe", |
| 235 |
"provide_information", |
| 236 |
"remove_restriction", |
| 237 |
] |
| 238 |
] |
| 239 |
""" |
| 240 |
Represents what the user should do, if anything, to activate the Feature. |
| 241 |
""" |
| 242 |
restriction: Optional[Literal["inbound_flows", "outbound_flows"]] |
| 243 |
""" |
| 244 |
The `platform_restrictions` that are restricting this Feature. |
| 245 |
""" |
| 246 |
|
| 247 |
requested: bool |
| 248 |
""" |
| 249 |
Whether the FinancialAccount should have the Feature. |
| 250 |
""" |
| 251 |
status: Literal["active", "pending", "restricted"] |
| 252 |
""" |
| 253 |
Whether the Feature is operational. |
| 254 |
""" |
| 255 |
status_details: List[StatusDetail] |
| 256 |
""" |
| 257 |
Additional details; includes at least one entry when the status is not `active`. |
| 258 |
""" |
| 259 |
_inner_class_types = {"status_details": StatusDetail} |
| 260 |
|
| 261 |
class OutboundPayments(StripeObject): |
| 262 |
class Ach(StripeObject): |
| 263 |
class StatusDetail(StripeObject): |
| 264 |
code: Literal[ |
| 265 |
"activating", |
| 266 |
"capability_not_requested", |
| 267 |
"financial_account_closed", |
| 268 |
"rejected_other", |
| 269 |
"rejected_unsupported_business", |
| 270 |
"requirements_past_due", |
| 271 |
"requirements_pending_verification", |
| 272 |
"restricted_by_platform", |
| 273 |
"restricted_other", |
| 274 |
] |
| 275 |
""" |
| 276 |
Represents the reason why the status is `pending` or `restricted`. |
| 277 |
""" |
| 278 |
resolution: Optional[ |
| 279 |
Literal[ |
| 280 |
"contact_stripe", |
| 281 |
"provide_information", |
| 282 |
"remove_restriction", |
| 283 |
] |
| 284 |
] |
| 285 |
""" |
| 286 |
Represents what the user should do, if anything, to activate the Feature. |
| 287 |
""" |
| 288 |
restriction: Optional[ |
| 289 |
Literal["inbound_flows", "outbound_flows"] |
| 290 |
] |
| 291 |
""" |
| 292 |
The `platform_restrictions` that are restricting this Feature. |
| 293 |
""" |
| 294 |
|
| 295 |
requested: bool |
| 296 |
""" |
| 297 |
Whether the FinancialAccount should have the Feature. |
| 298 |
""" |
| 299 |
status: Literal["active", "pending", "restricted"] |
| 300 |
""" |
| 301 |
Whether the Feature is operational. |
| 302 |
""" |
| 303 |
status_details: List[StatusDetail] |
| 304 |
""" |
| 305 |
Additional details; includes at least one entry when the status is not `active`. |
| 306 |
""" |
| 307 |
_inner_class_types = {"status_details": StatusDetail} |
| 308 |
|
| 309 |
class UsDomesticWire(StripeObject): |
| 310 |
class StatusDetail(StripeObject): |
| 311 |
code: Literal[ |
| 312 |
"activating", |
| 313 |
"capability_not_requested", |
| 314 |
"financial_account_closed", |
| 315 |
"rejected_other", |
| 316 |
"rejected_unsupported_business", |
| 317 |
"requirements_past_due", |
| 318 |
"requirements_pending_verification", |
| 319 |
"restricted_by_platform", |
| 320 |
"restricted_other", |
| 321 |
] |
| 322 |
""" |
| 323 |
Represents the reason why the status is `pending` or `restricted`. |
| 324 |
""" |
| 325 |
resolution: Optional[ |
| 326 |
Literal[ |
| 327 |
"contact_stripe", |
| 328 |
"provide_information", |
| 329 |
"remove_restriction", |
| 330 |
] |
| 331 |
] |
| 332 |
""" |
| 333 |
Represents what the user should do, if anything, to activate the Feature. |
| 334 |
""" |
| 335 |
restriction: Optional[ |
| 336 |
Literal["inbound_flows", "outbound_flows"] |
| 337 |
] |
| 338 |
""" |
| 339 |
The `platform_restrictions` that are restricting this Feature. |
| 340 |
""" |
| 341 |
|
| 342 |
requested: bool |
| 343 |
""" |
| 344 |
Whether the FinancialAccount should have the Feature. |
| 345 |
""" |
| 346 |
status: Literal["active", "pending", "restricted"] |
| 347 |
""" |
| 348 |
Whether the Feature is operational. |
| 349 |
""" |
| 350 |
status_details: List[StatusDetail] |
| 351 |
""" |
| 352 |
Additional details; includes at least one entry when the status is not `active`. |
| 353 |
""" |
| 354 |
_inner_class_types = {"status_details": StatusDetail} |
| 355 |
|
| 356 |
ach: Optional[Ach] |
| 357 |
""" |
| 358 |
Toggle settings for enabling/disabling an outbound ACH specific feature |
| 359 |
""" |
| 360 |
us_domestic_wire: Optional[UsDomesticWire] |
| 361 |
""" |
| 362 |
Toggle settings for enabling/disabling a feature |
| 363 |
""" |
| 364 |
_inner_class_types = {"ach": Ach, "us_domestic_wire": UsDomesticWire} |
| 365 |
|
| 366 |
class OutboundTransfers(StripeObject): |
| 367 |
class Ach(StripeObject): |
| 368 |
class StatusDetail(StripeObject): |
| 369 |
code: Literal[ |
| 370 |
"activating", |
| 371 |
"capability_not_requested", |
| 372 |
"financial_account_closed", |
| 373 |
"rejected_other", |
| 374 |
"rejected_unsupported_business", |
| 375 |
"requirements_past_due", |
| 376 |
"requirements_pending_verification", |
| 377 |
"restricted_by_platform", |
| 378 |
"restricted_other", |
| 379 |
] |
| 380 |
""" |
| 381 |
Represents the reason why the status is `pending` or `restricted`. |
| 382 |
""" |
| 383 |
resolution: Optional[ |
| 384 |
Literal[ |
| 385 |
"contact_stripe", |
| 386 |
"provide_information", |
| 387 |
"remove_restriction", |
| 388 |
] |
| 389 |
] |
| 390 |
""" |
| 391 |
Represents what the user should do, if anything, to activate the Feature. |
| 392 |
""" |
| 393 |
restriction: Optional[ |
| 394 |
Literal["inbound_flows", "outbound_flows"] |
| 395 |
] |
| 396 |
""" |
| 397 |
The `platform_restrictions` that are restricting this Feature. |
| 398 |
""" |
| 399 |
|
| 400 |
requested: bool |
| 401 |
""" |
| 402 |
Whether the FinancialAccount should have the Feature. |
| 403 |
""" |
| 404 |
status: Literal["active", "pending", "restricted"] |
| 405 |
""" |
| 406 |
Whether the Feature is operational. |
| 407 |
""" |
| 408 |
status_details: List[StatusDetail] |
| 409 |
""" |
| 410 |
Additional details; includes at least one entry when the status is not `active`. |
| 411 |
""" |
| 412 |
_inner_class_types = {"status_details": StatusDetail} |
| 413 |
|
| 414 |
class UsDomesticWire(StripeObject): |
| 415 |
class StatusDetail(StripeObject): |
| 416 |
code: Literal[ |
| 417 |
"activating", |
| 418 |
"capability_not_requested", |
| 419 |
"financial_account_closed", |
| 420 |
"rejected_other", |
| 421 |
"rejected_unsupported_business", |
| 422 |
"requirements_past_due", |
| 423 |
"requirements_pending_verification", |
| 424 |
"restricted_by_platform", |
| 425 |
"restricted_other", |
| 426 |
] |
| 427 |
""" |
| 428 |
Represents the reason why the status is `pending` or `restricted`. |
| 429 |
""" |
| 430 |
resolution: Optional[ |
| 431 |
Literal[ |
| 432 |
"contact_stripe", |
| 433 |
"provide_information", |
| 434 |
"remove_restriction", |
| 435 |
] |
| 436 |
] |
| 437 |
""" |
| 438 |
Represents what the user should do, if anything, to activate the Feature. |
| 439 |
""" |
| 440 |
restriction: Optional[ |
| 441 |
Literal["inbound_flows", "outbound_flows"] |
| 442 |
] |
| 443 |
""" |
| 444 |
The `platform_restrictions` that are restricting this Feature. |
| 445 |
""" |
| 446 |
|
| 447 |
requested: bool |
| 448 |
""" |
| 449 |
Whether the FinancialAccount should have the Feature. |
| 450 |
""" |
| 451 |
status: Literal["active", "pending", "restricted"] |
| 452 |
""" |
| 453 |
Whether the Feature is operational. |
| 454 |
""" |
| 455 |
status_details: List[StatusDetail] |
| 456 |
""" |
| 457 |
Additional details; includes at least one entry when the status is not `active`. |
| 458 |
""" |
| 459 |
_inner_class_types = {"status_details": StatusDetail} |
| 460 |
|
| 461 |
ach: Optional[Ach] |
| 462 |
""" |
| 463 |
Toggle settings for enabling/disabling an outbound ACH specific feature |
| 464 |
""" |
| 465 |
us_domestic_wire: Optional[UsDomesticWire] |
| 466 |
""" |
| 467 |
Toggle settings for enabling/disabling a feature |
| 468 |
""" |
| 469 |
_inner_class_types = {"ach": Ach, "us_domestic_wire": UsDomesticWire} |
| 470 |
|
| 471 |
card_issuing: Optional[CardIssuing] |
| 472 |
""" |
| 473 |
Toggle settings for enabling/disabling a feature |
| 474 |
""" |
| 475 |
deposit_insurance: Optional[DepositInsurance] |
| 476 |
""" |
| 477 |
Toggle settings for enabling/disabling a feature |
| 478 |
""" |
| 479 |
financial_addresses: Optional[FinancialAddresses] |
| 480 |
""" |
| 481 |
Settings related to Financial Addresses features on a Financial Account |
| 482 |
""" |
| 483 |
inbound_transfers: Optional[InboundTransfers] |
| 484 |
""" |
| 485 |
InboundTransfers contains inbound transfers features for a FinancialAccount. |
| 486 |
""" |
| 487 |
intra_stripe_flows: Optional[IntraStripeFlows] |
| 488 |
""" |
| 489 |
Toggle settings for enabling/disabling a feature |
| 490 |
""" |
| 491 |
object: Literal["treasury.financial_account_features"] |
| 492 |
""" |
| 493 |
String representing the object's type. Objects of the same type share the same value. |
| 494 |
""" |
| 495 |
outbound_payments: Optional[OutboundPayments] |
| 496 |
""" |
| 497 |
Settings related to Outbound Payments features on a Financial Account |
| 498 |
""" |
| 499 |
outbound_transfers: Optional[OutboundTransfers] |
| 500 |
""" |
| 501 |
OutboundTransfers contains outbound transfers features for a FinancialAccount. |
| 502 |
""" |
| 503 |
_inner_class_types = { |
| 504 |
"card_issuing": CardIssuing, |
| 505 |
"deposit_insurance": DepositInsurance, |
| 506 |
"financial_addresses": FinancialAddresses, |
| 507 |
"inbound_transfers": InboundTransfers, |
| 508 |
"intra_stripe_flows": IntraStripeFlows, |
| 509 |
"outbound_payments": OutboundPayments, |
| 510 |
"outbound_transfers": OutboundTransfers, |
| 511 |
} |