Debian Codegraph @

stripe/params/_customer_modify_source_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 CustomerModifySourceParams(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[Literal["company", "individual"]]
14 """
15 The type of entity that holds the account. This can be either `individual` or `company`.
16 """
17 address_city: NotRequired[str]
18 """
19 City/District/Suburb/Town/Village.
20 """
21 address_country: NotRequired[str]
22 """
23 Billing address country, if provided when creating card.
24 """
25 address_line1: NotRequired[str]
26 """
27 Address line 1 (Street address/PO Box/Company name).
28 """
29 address_line2: NotRequired[str]
30 """
31 Address line 2 (Apartment/Suite/Unit/Building).
32 """
33 address_state: NotRequired[str]
34 """
35 State/County/Province/Region.
36 """
37 address_zip: NotRequired[str]
38 """
39 ZIP or postal code.
40 """
41 exp_month: NotRequired[str]
42 """
43 Two digit number representing the card's expiration month.
44 """
45 exp_year: NotRequired[str]
46 """
47 Four digit number representing the card's expiration year.
48 """
49 expand: NotRequired[List[str]]
50 """
51 Specifies which fields in the response should be expanded.
52 """
53 metadata: NotRequired["Literal['']|Dict[str, str]"]
54 """
55 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`.
56 """
57 name: NotRequired[str]
58 """
59 Cardholder name.
60 """
61 owner: NotRequired["CustomerModifySourceParamsOwner"]
62
63
64 class CustomerModifySourceParamsOwner(TypedDict):
65 address: NotRequired["CustomerModifySourceParamsOwnerAddress"]
66 """
67 Owner's address.
68 """
69 email: NotRequired[str]
70 """
71 Owner's email address.
72 """
73 name: NotRequired[str]
74 """
75 Owner's full name.
76 """
77 phone: NotRequired[str]
78 """
79 Owner's phone number.
80 """
81
82
83 class CustomerModifySourceParamsOwnerAddress(TypedDict):
84 city: NotRequired[str]
85 """
86 City, district, suburb, town, or village.
87 """
88 country: NotRequired[str]
89 """
90 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
91 """
92 line1: NotRequired[str]
93 """
94 Address line 1, such as the street, PO Box, or company name.
95 """
96 line2: NotRequired[str]
97 """
98 Address line 2, such as the apartment, suite, unit, or building.
99 """
100 postal_code: NotRequired[str]
101 """
102 ZIP or postal code.
103 """
104 state: NotRequired[str]
105 """
106 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
107 """