Debian Codegraph @

stripe/params/_payment_method_modify_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 PaymentMethodModifyParams(RequestOptions):
9 allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]]
10 """
11 This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
12 """
13 billing_details: NotRequired["PaymentMethodModifyParamsBillingDetails"]
14 """
15 Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
16 """
17 card: NotRequired["PaymentMethodModifyParamsCard"]
18 """
19 If this is a `card` PaymentMethod, this hash contains the user's card details.
20 """
21 expand: NotRequired[List[str]]
22 """
23 Specifies which fields in the response should be expanded.
24 """
25 metadata: NotRequired["Literal['']|Dict[str, str]"]
26 """
27 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`.
28 """
29 payto: NotRequired["PaymentMethodModifyParamsPayto"]
30 """
31 If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
32 """
33 us_bank_account: NotRequired["PaymentMethodModifyParamsUsBankAccount"]
34 """
35 If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
36 """
37
38
39 class PaymentMethodModifyParamsBillingDetails(TypedDict):
40 address: NotRequired[
41 "Literal['']|PaymentMethodModifyParamsBillingDetailsAddress"
42 ]
43 """
44 Billing address.
45 """
46 email: NotRequired["Literal['']|str"]
47 """
48 Email address.
49 """
50 name: NotRequired["Literal['']|str"]
51 """
52 Full name.
53 """
54 phone: NotRequired["Literal['']|str"]
55 """
56 Billing phone number (including extension).
57 """
58 tax_id: NotRequired[str]
59 """
60 Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
61 """
62
63
64 class PaymentMethodModifyParamsBillingDetailsAddress(TypedDict):
65 city: NotRequired[str]
66 """
67 City, district, suburb, town, or village.
68 """
69 country: NotRequired[str]
70 """
71 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
72 """
73 line1: NotRequired[str]
74 """
75 Address line 1, such as the street, PO Box, or company name.
76 """
77 line2: NotRequired[str]
78 """
79 Address line 2, such as the apartment, suite, unit, or building.
80 """
81 postal_code: NotRequired[str]
82 """
83 ZIP or postal code.
84 """
85 state: NotRequired[str]
86 """
87 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
88 """
89
90
91 class PaymentMethodModifyParamsCard(TypedDict):
92 exp_month: NotRequired[int]
93 """
94 Two-digit number representing the card's expiration month.
95 """
96 exp_year: NotRequired[int]
97 """
98 Four-digit number representing the card's expiration year.
99 """
100 networks: NotRequired["PaymentMethodModifyParamsCardNetworks"]
101 """
102 Contains information about card networks used to process the payment.
103 """
104
105
106 class PaymentMethodModifyParamsCardNetworks(TypedDict):
107 preferred: NotRequired[
108 "Literal['']|Literal['cartes_bancaires', 'mastercard', 'visa']"
109 ]
110 """
111 The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.
112 """
113
114
115 class PaymentMethodModifyParamsPayto(TypedDict):
116 account_number: NotRequired[str]
117 """
118 The account number for the bank account.
119 """
120 bsb_number: NotRequired[str]
121 """
122 Bank-State-Branch number of the bank account.
123 """
124 pay_id: NotRequired[str]
125 """
126 The PayID alias for the bank account.
127 """
128
129
130 class PaymentMethodModifyParamsUsBankAccount(TypedDict):
131 account_holder_type: NotRequired[Literal["company", "individual"]]
132 """
133 Bank account holder type.
134 """
135 account_type: NotRequired[Literal["checking", "savings"]]
136 """
137 Bank account type.
138 """