Debian Codegraph @

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