Debian Codegraph @

stripe/params/test_helpers/issuing/_authorization_capture_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from typing import List
4 from typing_extensions import Literal, NotRequired, TypedDict
5
6
7 class AuthorizationCaptureParams(TypedDict):
8 capture_amount: NotRequired[int]
9 """
10 The amount to capture from the authorization. If not provided, the full amount of the authorization will be captured. This amount is in the authorization currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
11 """
12 close_authorization: NotRequired[bool]
13 """
14 Whether to close the authorization after capture. Defaults to true. Set to false to enable multi-capture flows.
15 """
16 expand: NotRequired[List[str]]
17 """
18 Specifies which fields in the response should be expanded.
19 """
20 purchase_details: NotRequired["AuthorizationCaptureParamsPurchaseDetails"]
21 """
22 Additional purchase information that is optionally provided by the merchant.
23 """
24
25
26 class AuthorizationCaptureParamsPurchaseDetails(TypedDict):
27 fleet: NotRequired["AuthorizationCaptureParamsPurchaseDetailsFleet"]
28 """
29 Fleet-specific information for transactions using Fleet cards.
30 """
31 flight: NotRequired["AuthorizationCaptureParamsPurchaseDetailsFlight"]
32 """
33 Information about the flight that was purchased with this transaction.
34 """
35 fuel: NotRequired["AuthorizationCaptureParamsPurchaseDetailsFuel"]
36 """
37 Information about fuel that was purchased with this transaction.
38 """
39 lodging: NotRequired["AuthorizationCaptureParamsPurchaseDetailsLodging"]
40 """
41 Information about lodging that was purchased with this transaction.
42 """
43 receipt: NotRequired[
44 List["AuthorizationCaptureParamsPurchaseDetailsReceipt"]
45 ]
46 """
47 The line items in the purchase.
48 """
49 reference: NotRequired[str]
50 """
51 A merchant-specific order number.
52 """
53
54
55 class AuthorizationCaptureParamsPurchaseDetailsFleet(TypedDict):
56 cardholder_prompt_data: NotRequired[
57 "AuthorizationCaptureParamsPurchaseDetailsFleetCardholderPromptData"
58 ]
59 """
60 Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
61 """
62 purchase_type: NotRequired[
63 Literal[
64 "fuel_and_non_fuel_purchase", "fuel_purchase", "non_fuel_purchase"
65 ]
66 ]
67 """
68 The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
69 """
70 reported_breakdown: NotRequired[
71 "AuthorizationCaptureParamsPurchaseDetailsFleetReportedBreakdown"
72 ]
73 """
74 More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
75 """
76 service_type: NotRequired[
77 Literal["full_service", "non_fuel_transaction", "self_service"]
78 ]
79 """
80 The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
81 """
82
83
84 class AuthorizationCaptureParamsPurchaseDetailsFleetCardholderPromptData(
85 TypedDict,
86 ):
87 driver_id: NotRequired[str]
88 """
89 Driver ID.
90 """
91 odometer: NotRequired[int]
92 """
93 Odometer reading.
94 """
95 unspecified_id: NotRequired[str]
96 """
97 An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
98 """
99 user_id: NotRequired[str]
100 """
101 User ID.
102 """
103 vehicle_number: NotRequired[str]
104 """
105 Vehicle number.
106 """
107
108
109 class AuthorizationCaptureParamsPurchaseDetailsFleetReportedBreakdown(
110 TypedDict,
111 ):
112 fuel: NotRequired[
113 "AuthorizationCaptureParamsPurchaseDetailsFleetReportedBreakdownFuel"
114 ]
115 """
116 Breakdown of fuel portion of the purchase.
117 """
118 non_fuel: NotRequired[
119 "AuthorizationCaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuel"
120 ]
121 """
122 Breakdown of non-fuel portion of the purchase.
123 """
124 tax: NotRequired[
125 "AuthorizationCaptureParamsPurchaseDetailsFleetReportedBreakdownTax"
126 ]
127 """
128 Information about tax included in this transaction.
129 """
130
131
132 class AuthorizationCaptureParamsPurchaseDetailsFleetReportedBreakdownFuel(
133 TypedDict,
134 ):
135 gross_amount_decimal: NotRequired[str]
136 """
137 Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
138 """
139
140
141 class AuthorizationCaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuel(
142 TypedDict,
143 ):
144 gross_amount_decimal: NotRequired[str]
145 """
146 Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
147 """
148
149
150 class AuthorizationCaptureParamsPurchaseDetailsFleetReportedBreakdownTax(
151 TypedDict,
152 ):
153 local_amount_decimal: NotRequired[str]
154 """
155 Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
156 """
157 national_amount_decimal: NotRequired[str]
158 """
159 Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
160 """
161
162
163 class AuthorizationCaptureParamsPurchaseDetailsFlight(TypedDict):
164 departure_at: NotRequired[int]
165 """
166 The time that the flight departed.
167 """
168 passenger_name: NotRequired[str]
169 """
170 The name of the passenger.
171 """
172 refundable: NotRequired[bool]
173 """
174 Whether the ticket is refundable.
175 """
176 segments: NotRequired[
177 List["AuthorizationCaptureParamsPurchaseDetailsFlightSegment"]
178 ]
179 """
180 The legs of the trip.
181 """
182 travel_agency: NotRequired[str]
183 """
184 The travel agency that issued the ticket.
185 """
186
187
188 class AuthorizationCaptureParamsPurchaseDetailsFlightSegment(TypedDict):
189 arrival_airport_code: NotRequired[str]
190 """
191 The three-letter IATA airport code of the flight's destination.
192 """
193 carrier: NotRequired[str]
194 """
195 The airline carrier code.
196 """
197 departure_airport_code: NotRequired[str]
198 """
199 The three-letter IATA airport code that the flight departed from.
200 """
201 flight_number: NotRequired[str]
202 """
203 The flight number.
204 """
205 service_class: NotRequired[str]
206 """
207 The flight's service class.
208 """
209 stopover_allowed: NotRequired[bool]
210 """
211 Whether a stopover is allowed on this flight.
212 """
213
214
215 class AuthorizationCaptureParamsPurchaseDetailsFuel(TypedDict):
216 industry_product_code: NotRequired[str]
217 """
218 [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
219 """
220 quantity_decimal: NotRequired[str]
221 """
222 The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
223 """
224 type: NotRequired[
225 Literal[
226 "diesel",
227 "other",
228 "unleaded_plus",
229 "unleaded_regular",
230 "unleaded_super",
231 ]
232 ]
233 """
234 The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
235 """
236 unit: NotRequired[
237 Literal[
238 "charging_minute",
239 "imperial_gallon",
240 "kilogram",
241 "kilowatt_hour",
242 "liter",
243 "other",
244 "pound",
245 "us_gallon",
246 ]
247 ]
248 """
249 The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
250 """
251 unit_cost_decimal: NotRequired[str]
252 """
253 The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
254 """
255
256
257 class AuthorizationCaptureParamsPurchaseDetailsLodging(TypedDict):
258 check_in_at: NotRequired[int]
259 """
260 The time of checking into the lodging.
261 """
262 nights: NotRequired[int]
263 """
264 The number of nights stayed at the lodging.
265 """
266
267
268 class AuthorizationCaptureParamsPurchaseDetailsReceipt(TypedDict):
269 description: NotRequired[str]
270 quantity: NotRequired[str]
271 total: NotRequired[int]
272 unit_cost: NotRequired[int]