Debian Codegraph @

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