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