Debian Codegraph @

stripe/params/_payment_record_report_payment_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 PaymentRecordReportPaymentParams(RequestOptions):
9 amount_requested: "PaymentRecordReportPaymentParamsAmountRequested"
10 """
11 The amount you initially requested for this payment.
12 """
13 customer_details: NotRequired[
14 "PaymentRecordReportPaymentParamsCustomerDetails"
15 ]
16 """
17 Customer information for this payment.
18 """
19 customer_presence: NotRequired[Literal["off_session", "on_session"]]
20 """
21 Indicates whether the customer was present in your checkout flow during this payment.
22 """
23 description: NotRequired[str]
24 """
25 An arbitrary string attached to the object. Often useful for displaying to users.
26 """
27 expand: NotRequired[List[str]]
28 """
29 Specifies which fields in the response should be expanded.
30 """
31 failed: NotRequired["PaymentRecordReportPaymentParamsFailed"]
32 """
33 Information about the payment attempt failure.
34 """
35 guaranteed: NotRequired["PaymentRecordReportPaymentParamsGuaranteed"]
36 """
37 Information about the payment attempt guarantee.
38 """
39 initiated_at: int
40 """
41 When the reported payment was initiated. Measured in seconds since the Unix epoch.
42 """
43 metadata: NotRequired["Literal['']|Dict[str, str]"]
44 """
45 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`.
46 """
47 outcome: NotRequired[Literal["failed", "guaranteed"]]
48 """
49 The outcome of the reported payment.
50 """
51 payment_method_details: (
52 "PaymentRecordReportPaymentParamsPaymentMethodDetails"
53 )
54 """
55 Information about the Payment Method debited for this payment.
56 """
57 processor_details: NotRequired[
58 "PaymentRecordReportPaymentParamsProcessorDetails"
59 ]
60 """
61 Processor information for this payment.
62 """
63 shipping_details: NotRequired[
64 "PaymentRecordReportPaymentParamsShippingDetails"
65 ]
66 """
67 Shipping information for this payment.
68 """
69
70
71 class PaymentRecordReportPaymentParamsAmountRequested(TypedDict):
72 currency: str
73 """
74 Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
75 """
76 value: int
77 """
78 A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
79 """
80
81
82 class PaymentRecordReportPaymentParamsCustomerDetails(TypedDict):
83 customer: NotRequired[str]
84 """
85 The customer who made the payment.
86 """
87 email: NotRequired[str]
88 """
89 The customer's phone number.
90 """
91 name: NotRequired[str]
92 """
93 The customer's name.
94 """
95 phone: NotRequired[str]
96 """
97 The customer's phone number.
98 """
99
100
101 class PaymentRecordReportPaymentParamsFailed(TypedDict):
102 failed_at: int
103 """
104 When the reported payment failed. Measured in seconds since the Unix epoch.
105 """
106
107
108 class PaymentRecordReportPaymentParamsGuaranteed(TypedDict):
109 guaranteed_at: int
110 """
111 When the reported payment was guaranteed. Measured in seconds since the Unix epoch.
112 """
113
114
115 class PaymentRecordReportPaymentParamsPaymentMethodDetails(TypedDict):
116 billing_details: NotRequired[
117 "PaymentRecordReportPaymentParamsPaymentMethodDetailsBillingDetails"
118 ]
119 """
120 The billing details associated with the method of payment.
121 """
122 custom: NotRequired[
123 "PaymentRecordReportPaymentParamsPaymentMethodDetailsCustom"
124 ]
125 """
126 Information about the custom (user-defined) payment method used to make this payment.
127 """
128 payment_method: NotRequired[str]
129 """
130 ID of the Stripe Payment Method used to make this payment.
131 """
132 type: NotRequired[Literal["custom"]]
133 """
134 The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type.
135 """
136
137
138 class PaymentRecordReportPaymentParamsPaymentMethodDetailsBillingDetails(
139 TypedDict,
140 ):
141 address: NotRequired[
142 "PaymentRecordReportPaymentParamsPaymentMethodDetailsBillingDetailsAddress"
143 ]
144 """
145 The billing address associated with the method of payment.
146 """
147 email: NotRequired[str]
148 """
149 The billing email associated with the method of payment.
150 """
151 name: NotRequired[str]
152 """
153 The billing name associated with the method of payment.
154 """
155 phone: NotRequired[str]
156 """
157 The billing phone number associated with the method of payment.
158 """
159
160
161 class PaymentRecordReportPaymentParamsPaymentMethodDetailsBillingDetailsAddress(
162 TypedDict,
163 ):
164 city: NotRequired[str]
165 """
166 City, district, suburb, town, or village.
167 """
168 country: NotRequired[str]
169 """
170 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
171 """
172 line1: NotRequired[str]
173 """
174 Address line 1, such as the street, PO Box, or company name.
175 """
176 line2: NotRequired[str]
177 """
178 Address line 2, such as the apartment, suite, unit, or building.
179 """
180 postal_code: NotRequired[str]
181 """
182 ZIP or postal code.
183 """
184 state: NotRequired[str]
185 """
186 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
187 """
188
189
190 class PaymentRecordReportPaymentParamsPaymentMethodDetailsCustom(TypedDict):
191 display_name: NotRequired[str]
192 """
193 Display name for the custom (user-defined) payment method type used to make this payment.
194 """
195 type: NotRequired[str]
196 """
197 The custom payment method type associated with this payment.
198 """
199
200
201 class PaymentRecordReportPaymentParamsProcessorDetails(TypedDict):
202 custom: NotRequired[
203 "PaymentRecordReportPaymentParamsProcessorDetailsCustom"
204 ]
205 """
206 Information about the custom processor used to make this payment.
207 """
208 type: Literal["custom"]
209 """
210 The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor.
211 """
212
213
214 class PaymentRecordReportPaymentParamsProcessorDetailsCustom(TypedDict):
215 payment_reference: str
216 """
217 An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
218 """
219
220
221 class PaymentRecordReportPaymentParamsShippingDetails(TypedDict):
222 address: NotRequired[
223 "PaymentRecordReportPaymentParamsShippingDetailsAddress"
224 ]
225 """
226 The physical shipping address.
227 """
228 name: NotRequired[str]
229 """
230 The shipping recipient's name.
231 """
232 phone: NotRequired[str]
233 """
234 The shipping recipient's phone number.
235 """
236
237
238 class PaymentRecordReportPaymentParamsShippingDetailsAddress(TypedDict):
239 city: NotRequired[str]
240 """
241 City, district, suburb, town, or village.
242 """
243 country: NotRequired[str]
244 """
245 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
246 """
247 line1: NotRequired[str]
248 """
249 Address line 1, such as the street, PO Box, or company name.
250 """
251 line2: NotRequired[str]
252 """
253 Address line 2, such as the apartment, suite, unit, or building.
254 """
255 postal_code: NotRequired[str]
256 """
257 ZIP or postal code.
258 """
259 state: NotRequired[str]
260 """
261 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
262 """