| 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 FinancialAccountUpdateParams(TypedDict): |
| 8 |
expand: NotRequired[List[str]] |
| 9 |
""" |
| 10 |
Specifies which fields in the response should be expanded. |
| 11 |
""" |
| 12 |
features: NotRequired["FinancialAccountUpdateParamsFeatures"] |
| 13 |
""" |
| 14 |
Encodes whether a FinancialAccount has access to a particular feature, with a status enum and associated `status_details`. Stripe or the platform may control features via the requested field. |
| 15 |
""" |
| 16 |
forwarding_settings: NotRequired[ |
| 17 |
"FinancialAccountUpdateParamsForwardingSettings" |
| 18 |
] |
| 19 |
""" |
| 20 |
A different bank account where funds can be deposited/debited in order to get the closing FA's balance to $0 |
| 21 |
""" |
| 22 |
metadata: NotRequired[Dict[str, str]] |
| 23 |
""" |
| 24 |
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`. |
| 25 |
""" |
| 26 |
nickname: NotRequired["Literal['']|str"] |
| 27 |
""" |
| 28 |
The nickname for the FinancialAccount. |
| 29 |
""" |
| 30 |
platform_restrictions: NotRequired[ |
| 31 |
"FinancialAccountUpdateParamsPlatformRestrictions" |
| 32 |
] |
| 33 |
""" |
| 34 |
The set of functionalities that the platform can restrict on the FinancialAccount. |
| 35 |
""" |
| 36 |
|
| 37 |
|
| 38 |
class FinancialAccountUpdateParamsFeatures(TypedDict): |
| 39 |
card_issuing: NotRequired[ |
| 40 |
"FinancialAccountUpdateParamsFeaturesCardIssuing" |
| 41 |
] |
| 42 |
""" |
| 43 |
Encodes the FinancialAccount's ability to be used with the Issuing product, including attaching cards to and drawing funds from the FinancialAccount. |
| 44 |
""" |
| 45 |
deposit_insurance: NotRequired[ |
| 46 |
"FinancialAccountUpdateParamsFeaturesDepositInsurance" |
| 47 |
] |
| 48 |
""" |
| 49 |
Represents whether this FinancialAccount is eligible for deposit insurance. Various factors determine the insurance amount. |
| 50 |
""" |
| 51 |
financial_addresses: NotRequired[ |
| 52 |
"FinancialAccountUpdateParamsFeaturesFinancialAddresses" |
| 53 |
] |
| 54 |
""" |
| 55 |
Contains Features that add FinancialAddresses to the FinancialAccount. |
| 56 |
""" |
| 57 |
inbound_transfers: NotRequired[ |
| 58 |
"FinancialAccountUpdateParamsFeaturesInboundTransfers" |
| 59 |
] |
| 60 |
""" |
| 61 |
Contains settings related to adding funds to a FinancialAccount from another Account with the same owner. |
| 62 |
""" |
| 63 |
intra_stripe_flows: NotRequired[ |
| 64 |
"FinancialAccountUpdateParamsFeaturesIntraStripeFlows" |
| 65 |
] |
| 66 |
""" |
| 67 |
Represents the ability for the FinancialAccount to send money to, or receive money from other FinancialAccounts (for example, via OutboundPayment). |
| 68 |
""" |
| 69 |
outbound_payments: NotRequired[ |
| 70 |
"FinancialAccountUpdateParamsFeaturesOutboundPayments" |
| 71 |
] |
| 72 |
""" |
| 73 |
Includes Features related to initiating money movement out of the FinancialAccount to someone else's bucket of money. |
| 74 |
""" |
| 75 |
outbound_transfers: NotRequired[ |
| 76 |
"FinancialAccountUpdateParamsFeaturesOutboundTransfers" |
| 77 |
] |
| 78 |
""" |
| 79 |
Contains a Feature and settings related to moving money out of the FinancialAccount into another Account with the same owner. |
| 80 |
""" |
| 81 |
|
| 82 |
|
| 83 |
class FinancialAccountUpdateParamsFeaturesCardIssuing(TypedDict): |
| 84 |
requested: bool |
| 85 |
""" |
| 86 |
Whether the FinancialAccount should have the Feature. |
| 87 |
""" |
| 88 |
|
| 89 |
|
| 90 |
class FinancialAccountUpdateParamsFeaturesDepositInsurance(TypedDict): |
| 91 |
requested: bool |
| 92 |
""" |
| 93 |
Whether the FinancialAccount should have the Feature. |
| 94 |
""" |
| 95 |
|
| 96 |
|
| 97 |
class FinancialAccountUpdateParamsFeaturesFinancialAddresses(TypedDict): |
| 98 |
aba: NotRequired[ |
| 99 |
"FinancialAccountUpdateParamsFeaturesFinancialAddressesAba" |
| 100 |
] |
| 101 |
""" |
| 102 |
Adds an ABA FinancialAddress to the FinancialAccount. |
| 103 |
""" |
| 104 |
|
| 105 |
|
| 106 |
class FinancialAccountUpdateParamsFeaturesFinancialAddressesAba(TypedDict): |
| 107 |
requested: bool |
| 108 |
""" |
| 109 |
Whether the FinancialAccount should have the Feature. |
| 110 |
""" |
| 111 |
|
| 112 |
|
| 113 |
class FinancialAccountUpdateParamsFeaturesInboundTransfers(TypedDict): |
| 114 |
ach: NotRequired["FinancialAccountUpdateParamsFeaturesInboundTransfersAch"] |
| 115 |
""" |
| 116 |
Enables ACH Debits via the InboundTransfers API. |
| 117 |
""" |
| 118 |
|
| 119 |
|
| 120 |
class FinancialAccountUpdateParamsFeaturesInboundTransfersAch(TypedDict): |
| 121 |
requested: bool |
| 122 |
""" |
| 123 |
Whether the FinancialAccount should have the Feature. |
| 124 |
""" |
| 125 |
|
| 126 |
|
| 127 |
class FinancialAccountUpdateParamsFeaturesIntraStripeFlows(TypedDict): |
| 128 |
requested: bool |
| 129 |
""" |
| 130 |
Whether the FinancialAccount should have the Feature. |
| 131 |
""" |
| 132 |
|
| 133 |
|
| 134 |
class FinancialAccountUpdateParamsFeaturesOutboundPayments(TypedDict): |
| 135 |
ach: NotRequired["FinancialAccountUpdateParamsFeaturesOutboundPaymentsAch"] |
| 136 |
""" |
| 137 |
Enables ACH transfers via the OutboundPayments API. |
| 138 |
""" |
| 139 |
us_domestic_wire: NotRequired[ |
| 140 |
"FinancialAccountUpdateParamsFeaturesOutboundPaymentsUsDomesticWire" |
| 141 |
] |
| 142 |
""" |
| 143 |
Enables US domestic wire transfers via the OutboundPayments API. |
| 144 |
""" |
| 145 |
|
| 146 |
|
| 147 |
class FinancialAccountUpdateParamsFeaturesOutboundPaymentsAch(TypedDict): |
| 148 |
requested: bool |
| 149 |
""" |
| 150 |
Whether the FinancialAccount should have the Feature. |
| 151 |
""" |
| 152 |
|
| 153 |
|
| 154 |
class FinancialAccountUpdateParamsFeaturesOutboundPaymentsUsDomesticWire( |
| 155 |
TypedDict, |
| 156 |
): |
| 157 |
requested: bool |
| 158 |
""" |
| 159 |
Whether the FinancialAccount should have the Feature. |
| 160 |
""" |
| 161 |
|
| 162 |
|
| 163 |
class FinancialAccountUpdateParamsFeaturesOutboundTransfers(TypedDict): |
| 164 |
ach: NotRequired[ |
| 165 |
"FinancialAccountUpdateParamsFeaturesOutboundTransfersAch" |
| 166 |
] |
| 167 |
""" |
| 168 |
Enables ACH transfers via the OutboundTransfers API. |
| 169 |
""" |
| 170 |
us_domestic_wire: NotRequired[ |
| 171 |
"FinancialAccountUpdateParamsFeaturesOutboundTransfersUsDomesticWire" |
| 172 |
] |
| 173 |
""" |
| 174 |
Enables US domestic wire transfers via the OutboundTransfers API. |
| 175 |
""" |
| 176 |
|
| 177 |
|
| 178 |
class FinancialAccountUpdateParamsFeaturesOutboundTransfersAch(TypedDict): |
| 179 |
requested: bool |
| 180 |
""" |
| 181 |
Whether the FinancialAccount should have the Feature. |
| 182 |
""" |
| 183 |
|
| 184 |
|
| 185 |
class FinancialAccountUpdateParamsFeaturesOutboundTransfersUsDomesticWire( |
| 186 |
TypedDict, |
| 187 |
): |
| 188 |
requested: bool |
| 189 |
""" |
| 190 |
Whether the FinancialAccount should have the Feature. |
| 191 |
""" |
| 192 |
|
| 193 |
|
| 194 |
class FinancialAccountUpdateParamsForwardingSettings(TypedDict): |
| 195 |
financial_account: NotRequired[str] |
| 196 |
""" |
| 197 |
The financial_account id |
| 198 |
""" |
| 199 |
payment_method: NotRequired[str] |
| 200 |
""" |
| 201 |
The payment_method or bank account id. This needs to be a verified bank account. |
| 202 |
""" |
| 203 |
type: Literal["financial_account", "payment_method"] |
| 204 |
""" |
| 205 |
The type of the bank account provided. This can be either "financial_account" or "payment_method" |
| 206 |
""" |
| 207 |
|
| 208 |
|
| 209 |
class FinancialAccountUpdateParamsPlatformRestrictions(TypedDict): |
| 210 |
inbound_flows: NotRequired[Literal["restricted", "unrestricted"]] |
| 211 |
""" |
| 212 |
Restricts all inbound money movement. |
| 213 |
""" |
| 214 |
outbound_flows: NotRequired[Literal["restricted", "unrestricted"]] |
| 215 |
""" |
| 216 |
Restricts all outbound money movement. |
| 217 |
""" |