Debian Codegraph @

stripe/params/issuing/_authorization_finalize_amount_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 AuthorizationFinalizeAmountParams(RequestOptions):
9 expand: NotRequired[List[str]]
10 """
11 Specifies which fields in the response should be expanded.
12 """
13 final_amount: int
14 """
15 The final authorization amount that will be captured by the merchant. This amount is in the authorization currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
16 """
17 fleet: NotRequired["AuthorizationFinalizeAmountParamsFleet"]
18 """
19 Fleet-specific information for authorizations using Fleet cards.
20 """
21 fuel: NotRequired["AuthorizationFinalizeAmountParamsFuel"]
22 """
23 Information about fuel that was purchased with this transaction.
24 """
25
26
27 class AuthorizationFinalizeAmountParamsFleet(TypedDict):
28 cardholder_prompt_data: NotRequired[
29 "AuthorizationFinalizeAmountParamsFleetCardholderPromptData"
30 ]
31 """
32 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.
33 """
34 purchase_type: NotRequired[
35 Literal[
36 "fuel_and_non_fuel_purchase", "fuel_purchase", "non_fuel_purchase"
37 ]
38 ]
39 """
40 The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
41 """
42 reported_breakdown: NotRequired[
43 "AuthorizationFinalizeAmountParamsFleetReportedBreakdown"
44 ]
45 """
46 More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
47 """
48 service_type: NotRequired[
49 Literal["full_service", "non_fuel_transaction", "self_service"]
50 ]
51 """
52 The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
53 """
54
55
56 class AuthorizationFinalizeAmountParamsFleetCardholderPromptData(TypedDict):
57 driver_id: NotRequired[str]
58 """
59 Driver ID.
60 """
61 odometer: NotRequired[int]
62 """
63 Odometer reading.
64 """
65 unspecified_id: NotRequired[str]
66 """
67 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.
68 """
69 user_id: NotRequired[str]
70 """
71 User ID.
72 """
73 vehicle_number: NotRequired[str]
74 """
75 Vehicle number.
76 """
77
78
79 class AuthorizationFinalizeAmountParamsFleetReportedBreakdown(TypedDict):
80 fuel: NotRequired[
81 "AuthorizationFinalizeAmountParamsFleetReportedBreakdownFuel"
82 ]
83 """
84 Breakdown of fuel portion of the purchase.
85 """
86 non_fuel: NotRequired[
87 "AuthorizationFinalizeAmountParamsFleetReportedBreakdownNonFuel"
88 ]
89 """
90 Breakdown of non-fuel portion of the purchase.
91 """
92 tax: NotRequired[
93 "AuthorizationFinalizeAmountParamsFleetReportedBreakdownTax"
94 ]
95 """
96 Information about tax included in this transaction.
97 """
98
99
100 class AuthorizationFinalizeAmountParamsFleetReportedBreakdownFuel(TypedDict):
101 gross_amount_decimal: NotRequired[str]
102 """
103 Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
104 """
105
106
107 class AuthorizationFinalizeAmountParamsFleetReportedBreakdownNonFuel(
108 TypedDict
109 ):
110 gross_amount_decimal: NotRequired[str]
111 """
112 Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
113 """
114
115
116 class AuthorizationFinalizeAmountParamsFleetReportedBreakdownTax(TypedDict):
117 local_amount_decimal: NotRequired[str]
118 """
119 Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
120 """
121 national_amount_decimal: NotRequired[str]
122 """
123 Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
124 """
125
126
127 class AuthorizationFinalizeAmountParamsFuel(TypedDict):
128 industry_product_code: NotRequired[str]
129 """
130 [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
131 """
132 quantity_decimal: NotRequired[str]
133 """
134 The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
135 """
136 type: NotRequired[
137 Literal[
138 "diesel",
139 "other",
140 "unleaded_plus",
141 "unleaded_regular",
142 "unleaded_super",
143 ]
144 ]
145 """
146 The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
147 """
148 unit: NotRequired[
149 Literal[
150 "charging_minute",
151 "imperial_gallon",
152 "kilogram",
153 "kilowatt_hour",
154 "liter",
155 "other",
156 "pound",
157 "us_gallon",
158 ]
159 ]
160 """
161 The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
162 """
163 unit_cost_decimal: NotRequired[str]
164 """
165 The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
166 """