Debian Codegraph @

stripe/params/_customer_payment_source_update_params.py

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