-
Notifications
You must be signed in to change notification settings - Fork 515
Expand file tree
/
Copy path_external_account_create_params.py
More file actions
83 lines (75 loc) · 3.42 KB
/
_external_account_create_params.py
File metadata and controls
83 lines (75 loc) · 3.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._stripe_object import UntypedStripeObject
from typing import Dict, List, Union
from typing_extensions import Literal, NotRequired, TypedDict
class ExternalAccountCreateParams(TypedDict):
default_for_currency: NotRequired[bool]
"""
When set to true, or if this is the first external account added in this currency, this account becomes the default external account for its currency.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
external_account: Union[
str,
"ExternalAccountCreateParamsCard",
"ExternalAccountCreateParamsBankAccount",
"ExternalAccountCreateParamsCardToken",
]
"""
Either a token, like the ones returned by [Stripe.js](https://docs.stripe.com/js), or a dictionary containing a user's external account details (with the options shown below).
"""
metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"]
"""
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`.
"""
class ExternalAccountCreateParamsCard(TypedDict):
object: Literal["card"]
address_city: NotRequired[str]
address_country: NotRequired[str]
address_line1: NotRequired[str]
address_line2: NotRequired[str]
address_state: NotRequired[str]
address_zip: NotRequired[str]
currency: NotRequired[str]
cvc: NotRequired[str]
exp_month: int
exp_year: int
metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
"""
name: NotRequired[str]
number: str
class ExternalAccountCreateParamsBankAccount(TypedDict):
object: Literal["bank_account"]
account_holder_name: NotRequired[str]
"""
The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
"""
account_holder_type: NotRequired[Literal["company", "individual"]]
"""
The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
"""
account_number: str
"""
The account number for the bank account, in string form. Must be a checking account.
"""
country: str
"""
The country in which the bank account is located.
"""
currency: NotRequired[str]
"""
The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
"""
routing_number: NotRequired[str]
"""
The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
"""
class ExternalAccountCreateParamsCardToken(TypedDict):
object: Literal["card"]
currency: NotRequired[str]
token: str