| 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 AccountExternalAccountUpdateParams(TypedDict): |
| 8 |
account_holder_name: NotRequired[str] |
| 9 |
""" |
| 10 |
The name of the person or business that owns the bank account. |
| 11 |
""" |
| 12 |
account_holder_type: NotRequired[ |
| 13 |
"Literal['']|Literal['company', 'individual']" |
| 14 |
] |
| 15 |
""" |
| 16 |
The type of entity that holds the account. This can be either `individual` or `company`. |
| 17 |
""" |
| 18 |
account_type: NotRequired[Literal["checking", "futsu", "savings", "toza"]] |
| 19 |
""" |
| 20 |
The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`. |
| 21 |
""" |
| 22 |
address_city: NotRequired[str] |
| 23 |
""" |
| 24 |
City/District/Suburb/Town/Village. |
| 25 |
""" |
| 26 |
address_country: NotRequired[str] |
| 27 |
""" |
| 28 |
Billing address country, if provided when creating card. |
| 29 |
""" |
| 30 |
address_line1: NotRequired[str] |
| 31 |
""" |
| 32 |
Address line 1 (Street address/PO Box/Company name). |
| 33 |
""" |
| 34 |
address_line2: NotRequired[str] |
| 35 |
""" |
| 36 |
Address line 2 (Apartment/Suite/Unit/Building). |
| 37 |
""" |
| 38 |
address_state: NotRequired[str] |
| 39 |
""" |
| 40 |
State/County/Province/Region. |
| 41 |
""" |
| 42 |
address_zip: NotRequired[str] |
| 43 |
""" |
| 44 |
ZIP or postal code. |
| 45 |
""" |
| 46 |
default_for_currency: NotRequired[bool] |
| 47 |
""" |
| 48 |
When set to true, this becomes the default external account for its currency. |
| 49 |
""" |
| 50 |
documents: NotRequired["AccountExternalAccountUpdateParamsDocuments"] |
| 51 |
""" |
| 52 |
Documents that may be submitted to satisfy various informational requests. |
| 53 |
""" |
| 54 |
exp_month: NotRequired[str] |
| 55 |
""" |
| 56 |
Two digit number representing the card's expiration month. |
| 57 |
""" |
| 58 |
exp_year: NotRequired[str] |
| 59 |
""" |
| 60 |
Four digit number representing the card's expiration year. |
| 61 |
""" |
| 62 |
expand: NotRequired[List[str]] |
| 63 |
""" |
| 64 |
Specifies which fields in the response should be expanded. |
| 65 |
""" |
| 66 |
metadata: NotRequired["Literal['']|Dict[str, str]"] |
| 67 |
""" |
| 68 |
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`. |
| 69 |
""" |
| 70 |
name: NotRequired[str] |
| 71 |
""" |
| 72 |
Cardholder name. |
| 73 |
""" |
| 74 |
|
| 75 |
|
| 76 |
class AccountExternalAccountUpdateParamsDocuments(TypedDict): |
| 77 |
bank_account_ownership_verification: NotRequired[ |
| 78 |
"AccountExternalAccountUpdateParamsDocumentsBankAccountOwnershipVerification" |
| 79 |
] |
| 80 |
""" |
| 81 |
One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a check. |
| 82 |
""" |
| 83 |
|
| 84 |
|
| 85 |
class AccountExternalAccountUpdateParamsDocumentsBankAccountOwnershipVerification( |
| 86 |
TypedDict, |
| 87 |
): |
| 88 |
files: NotRequired[List[str]] |
| 89 |
""" |
| 90 |
One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`. |
| 91 |
""" |