Debian Codegraph @

stripe/params/_account_modify_external_account_params.py

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