• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-go / 9687279319

26 Jun 2024 09:54PM UTC coverage: 63.947% (+0.06%) from 63.885%
9687279319

Pull #1877

github

stripe-openapi[bot]
Merge upstream and update generated code for v1102
Pull Request #1877: Update generated code for beta

0 of 3 new or added lines in 1 file covered. (0.0%)

1 existing line in 1 file now uncovered.

6208 of 9708 relevant lines covered (63.95%)

16.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/testhelpersissuing_authorization.go
1
//
2
//
3
// File generated from our OpenAPI spec
4
//
5
//
6

7
package stripe
8

9
// Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
10
type TestHelpersIssuingAuthorizationAmountDetailsParams struct {
11
        // The ATM withdrawal fee.
12
        ATMFee *int64 `form:"atm_fee"`
13
        // The amount of cash requested by the cardholder.
14
        CashbackAmount *int64 `form:"cashback_amount"`
15
}
16

17
// 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.
18
type TestHelpersIssuingAuthorizationFleetCardholderPromptDataParams struct {
19
        // Driver ID.
20
        DriverID *string `form:"driver_id"`
21
        // Odometer reading.
22
        Odometer *int64 `form:"odometer"`
23
        // 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.
24
        UnspecifiedID *string `form:"unspecified_id"`
25
        // User ID.
26
        UserID *string `form:"user_id"`
27
        // Vehicle number.
28
        VehicleNumber *string `form:"vehicle_number"`
29
}
30

31
// Breakdown of fuel portion of the purchase.
32
type TestHelpersIssuingAuthorizationFleetReportedBreakdownFuelParams struct {
33
        // Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
34
        GrossAmountDecimal *float64 `form:"gross_amount_decimal,high_precision"`
35
}
36

37
// Breakdown of non-fuel portion of the purchase.
38
type TestHelpersIssuingAuthorizationFleetReportedBreakdownNonFuelParams struct {
39
        // Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
40
        GrossAmountDecimal *float64 `form:"gross_amount_decimal,high_precision"`
41
}
42

43
// Information about tax included in this transaction.
44
type TestHelpersIssuingAuthorizationFleetReportedBreakdownTaxParams struct {
45
        // Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
46
        LocalAmountDecimal *float64 `form:"local_amount_decimal,high_precision"`
47
        // Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
48
        NationalAmountDecimal *float64 `form:"national_amount_decimal,high_precision"`
49
}
50

51
// More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
52
type TestHelpersIssuingAuthorizationFleetReportedBreakdownParams struct {
53
        // Breakdown of fuel portion of the purchase.
54
        Fuel *TestHelpersIssuingAuthorizationFleetReportedBreakdownFuelParams `form:"fuel"`
55
        // Breakdown of non-fuel portion of the purchase.
56
        NonFuel *TestHelpersIssuingAuthorizationFleetReportedBreakdownNonFuelParams `form:"non_fuel"`
57
        // Information about tax included in this transaction.
58
        Tax *TestHelpersIssuingAuthorizationFleetReportedBreakdownTaxParams `form:"tax"`
59
}
60

61
// Fleet-specific information for authorizations using Fleet cards.
62
type TestHelpersIssuingAuthorizationFleetParams struct {
63
        // 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.
64
        CardholderPromptData *TestHelpersIssuingAuthorizationFleetCardholderPromptDataParams `form:"cardholder_prompt_data"`
65
        // The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
66
        PurchaseType *string `form:"purchase_type"`
67
        // More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
68
        ReportedBreakdown *TestHelpersIssuingAuthorizationFleetReportedBreakdownParams `form:"reported_breakdown"`
69
        // The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
70
        ServiceType *string `form:"service_type"`
71
}
72

73
// Information about fuel that was purchased with this transaction.
74
type TestHelpersIssuingAuthorizationFuelParams struct {
75
        // [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
76
        IndustryProductCode *string `form:"industry_product_code"`
77
        // The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
78
        QuantityDecimal *float64 `form:"quantity_decimal,high_precision"`
79
        // The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
80
        Type *string `form:"type"`
81
        // The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
82
        Unit *string `form:"unit"`
83
        // The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
84
        UnitCostDecimal *float64 `form:"unit_cost_decimal,high_precision"`
85
}
86

87
// Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.
88
type TestHelpersIssuingAuthorizationMerchantDataParams struct {
89
        // A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values.
90
        Category *string `form:"category"`
91
        // City where the seller is located
92
        City *string `form:"city"`
93
        // Country where the seller is located
94
        Country *string `form:"country"`
95
        // Name of the seller
96
        Name *string `form:"name"`
97
        // Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant.
98
        NetworkID *string `form:"network_id"`
99
        // Postal code where the seller is located
100
        PostalCode *string `form:"postal_code"`
101
        // State where the seller is located
102
        State *string `form:"state"`
103
        // An ID assigned by the seller to the location of the sale.
104
        TerminalID *string `form:"terminal_id"`
105
        // URL provided by the merchant on a 3DS request
106
        URL *string `form:"url"`
107
}
108

109
// Details about the authorization, such as identifiers, set by the card network.
110
type TestHelpersIssuingAuthorizationNetworkDataParams struct {
111
        // Identifier assigned to the acquirer by the card network.
112
        AcquiringInstitutionID *string `form:"acquiring_institution_id"`
113
}
114

115
// The exemption applied to this authorization.
116
type TestHelpersIssuingAuthorizationVerificationDataAuthenticationExemptionParams struct {
117
        // The entity that requested the exemption, either the acquiring merchant or the Issuing user.
118
        ClaimedBy *string `form:"claimed_by"`
119
        // The specific exemption claimed for this authorization.
120
        Type *string `form:"type"`
121
}
122

123
// 3D Secure details.
124
type TestHelpersIssuingAuthorizationVerificationDataThreeDSecureParams struct {
125
        // The outcome of the 3D Secure authentication request.
126
        Result *string `form:"result"`
127
}
128

129
// Verifications that Stripe performed on information that the cardholder provided to the merchant.
130
type TestHelpersIssuingAuthorizationVerificationDataParams struct {
131
        // Whether the cardholder provided an address first line and if it matched the cardholder's `billing.address.line1`.
132
        AddressLine1Check *string `form:"address_line1_check"`
133
        // Whether the cardholder provided a postal code and if it matched the cardholder's `billing.address.postal_code`.
134
        AddressPostalCodeCheck *string `form:"address_postal_code_check"`
135
        // The exemption applied to this authorization.
136
        AuthenticationExemption *TestHelpersIssuingAuthorizationVerificationDataAuthenticationExemptionParams `form:"authentication_exemption"`
137
        // Whether the cardholder provided a CVC and if it matched Stripe's record.
138
        CVCCheck *string `form:"cvc_check"`
139
        // Whether the cardholder provided an expiry date and if it matched Stripe's record.
140
        ExpiryCheck *string `form:"expiry_check"`
141
        // 3D Secure details.
142
        ThreeDSecure *TestHelpersIssuingAuthorizationVerificationDataThreeDSecureParams `form:"three_d_secure"`
143
}
144

145
// Create a test-mode authorization.
146
type TestHelpersIssuingAuthorizationParams struct {
147
        Params `form:"*"`
148
        // The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card's currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
149
        Amount *int64 `form:"amount"`
150
        // Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
151
        AmountDetails *TestHelpersIssuingAuthorizationAmountDetailsParams `form:"amount_details"`
152
        // How the card details were provided. Defaults to online.
153
        AuthorizationMethod *string `form:"authorization_method"`
154
        // Card associated with this authorization.
155
        Card *string `form:"card"`
156
        // The currency of the authorization. If not provided, defaults to the currency of the card. 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).
157
        Currency *string `form:"currency"`
158
        // Specifies which fields in the response should be expanded.
159
        Expand []*string `form:"expand"`
160
        // Fleet-specific information for authorizations using Fleet cards.
161
        Fleet *TestHelpersIssuingAuthorizationFleetParams `form:"fleet"`
162
        // Information about fuel that was purchased with this transaction.
163
        Fuel *TestHelpersIssuingAuthorizationFuelParams `form:"fuel"`
164
        // If set `true`, you may provide [amount](https://stripe.com/docs/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.
165
        IsAmountControllable *bool `form:"is_amount_controllable"`
166
        // Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.
167
        MerchantData *TestHelpersIssuingAuthorizationMerchantDataParams `form:"merchant_data"`
168
        // Details about the authorization, such as identifiers, set by the card network.
169
        NetworkData *TestHelpersIssuingAuthorizationNetworkDataParams `form:"network_data"`
170
        // Verifications that Stripe performed on information that the cardholder provided to the merchant.
171
        VerificationData *TestHelpersIssuingAuthorizationVerificationDataParams `form:"verification_data"`
172
        // The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. Will populate as `null` when no digital wallet was utilized.
173
        Wallet *string `form:"wallet"`
174
}
175

176
// AddExpand appends a new field to expand.
177
func (p *TestHelpersIssuingAuthorizationParams) AddExpand(f string) {
×
178
        p.Expand = append(p.Expand, &f)
×
179
}
×
180

181
// 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.
182
type TestHelpersIssuingAuthorizationCapturePurchaseDetailsFleetCardholderPromptDataParams struct {
183
        // Driver ID.
184
        DriverID *string `form:"driver_id"`
185
        // Odometer reading.
186
        Odometer *int64 `form:"odometer"`
187
        // 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.
188
        UnspecifiedID *string `form:"unspecified_id"`
189
        // User ID.
190
        UserID *string `form:"user_id"`
191
        // Vehicle number.
192
        VehicleNumber *string `form:"vehicle_number"`
193
}
194

195
// Breakdown of fuel portion of the purchase.
196
type TestHelpersIssuingAuthorizationCapturePurchaseDetailsFleetReportedBreakdownFuelParams struct {
197
        // Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
198
        GrossAmountDecimal *float64 `form:"gross_amount_decimal,high_precision"`
199
}
200

201
// Breakdown of non-fuel portion of the purchase.
202
type TestHelpersIssuingAuthorizationCapturePurchaseDetailsFleetReportedBreakdownNonFuelParams struct {
203
        // Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
204
        GrossAmountDecimal *float64 `form:"gross_amount_decimal,high_precision"`
205
}
206

207
// Information about tax included in this transaction.
208
type TestHelpersIssuingAuthorizationCapturePurchaseDetailsFleetReportedBreakdownTaxParams struct {
209
        // Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
210
        LocalAmountDecimal *float64 `form:"local_amount_decimal,high_precision"`
211
        // Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
212
        NationalAmountDecimal *float64 `form:"national_amount_decimal,high_precision"`
213
}
214

215
// More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
216
type TestHelpersIssuingAuthorizationCapturePurchaseDetailsFleetReportedBreakdownParams struct {
217
        // Breakdown of fuel portion of the purchase.
218
        Fuel *TestHelpersIssuingAuthorizationCapturePurchaseDetailsFleetReportedBreakdownFuelParams `form:"fuel"`
219
        // Breakdown of non-fuel portion of the purchase.
220
        NonFuel *TestHelpersIssuingAuthorizationCapturePurchaseDetailsFleetReportedBreakdownNonFuelParams `form:"non_fuel"`
221
        // Information about tax included in this transaction.
222
        Tax *TestHelpersIssuingAuthorizationCapturePurchaseDetailsFleetReportedBreakdownTaxParams `form:"tax"`
223
}
224

225
// Fleet-specific information for transactions using Fleet cards.
226
type TestHelpersIssuingAuthorizationCapturePurchaseDetailsFleetParams struct {
227
        // 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.
228
        CardholderPromptData *TestHelpersIssuingAuthorizationCapturePurchaseDetailsFleetCardholderPromptDataParams `form:"cardholder_prompt_data"`
229
        // The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
230
        PurchaseType *string `form:"purchase_type"`
231
        // More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
232
        ReportedBreakdown *TestHelpersIssuingAuthorizationCapturePurchaseDetailsFleetReportedBreakdownParams `form:"reported_breakdown"`
233
        // The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
234
        ServiceType *string `form:"service_type"`
235
}
236

237
// The legs of the trip.
238
type TestHelpersIssuingAuthorizationCapturePurchaseDetailsFlightSegmentParams struct {
239
        // The three-letter IATA airport code of the flight's destination.
240
        ArrivalAirportCode *string `form:"arrival_airport_code"`
241
        // The airline carrier code.
242
        Carrier *string `form:"carrier"`
243
        // The three-letter IATA airport code that the flight departed from.
244
        DepartureAirportCode *string `form:"departure_airport_code"`
245
        // The flight number.
246
        FlightNumber *string `form:"flight_number"`
247
        // The flight's service class.
248
        ServiceClass *string `form:"service_class"`
249
        // Whether a stopover is allowed on this flight.
250
        StopoverAllowed *bool `form:"stopover_allowed"`
251
}
252

253
// Information about the flight that was purchased with this transaction.
254
type TestHelpersIssuingAuthorizationCapturePurchaseDetailsFlightParams struct {
255
        // The time that the flight departed.
256
        DepartureAt *int64 `form:"departure_at"`
257
        // The name of the passenger.
258
        PassengerName *string `form:"passenger_name"`
259
        // Whether the ticket is refundable.
260
        Refundable *bool `form:"refundable"`
261
        // The legs of the trip.
262
        Segments []*TestHelpersIssuingAuthorizationCapturePurchaseDetailsFlightSegmentParams `form:"segments"`
263
        // The travel agency that issued the ticket.
264
        TravelAgency *string `form:"travel_agency"`
265
}
266

267
// Information about fuel that was purchased with this transaction.
268
type TestHelpersIssuingAuthorizationCapturePurchaseDetailsFuelParams struct {
269
        // [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
270
        IndustryProductCode *string `form:"industry_product_code"`
271
        // The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
272
        QuantityDecimal *float64 `form:"quantity_decimal,high_precision"`
273
        // The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
274
        Type *string `form:"type"`
275
        // The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
276
        Unit *string `form:"unit"`
277
        // The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
278
        UnitCostDecimal *float64 `form:"unit_cost_decimal,high_precision"`
279
}
280

281
// Information about lodging that was purchased with this transaction.
282
type TestHelpersIssuingAuthorizationCapturePurchaseDetailsLodgingParams struct {
283
        // The time of checking into the lodging.
284
        CheckInAt *int64 `form:"check_in_at"`
285
        // The number of nights stayed at the lodging.
286
        Nights *int64 `form:"nights"`
287
}
288

289
// The line items in the purchase.
290
type TestHelpersIssuingAuthorizationCapturePurchaseDetailsReceiptParams struct {
291
        Description *string  `form:"description"`
292
        Quantity    *float64 `form:"quantity,high_precision"`
293
        Total       *int64   `form:"total"`
294
        UnitCost    *int64   `form:"unit_cost"`
295
}
296

297
// Additional purchase information that is optionally provided by the merchant.
298
type TestHelpersIssuingAuthorizationCapturePurchaseDetailsParams struct {
299
        // Fleet-specific information for transactions using Fleet cards.
300
        Fleet *TestHelpersIssuingAuthorizationCapturePurchaseDetailsFleetParams `form:"fleet"`
301
        // Information about the flight that was purchased with this transaction.
302
        Flight *TestHelpersIssuingAuthorizationCapturePurchaseDetailsFlightParams `form:"flight"`
303
        // Information about fuel that was purchased with this transaction.
304
        Fuel *TestHelpersIssuingAuthorizationCapturePurchaseDetailsFuelParams `form:"fuel"`
305
        // Information about lodging that was purchased with this transaction.
306
        Lodging *TestHelpersIssuingAuthorizationCapturePurchaseDetailsLodgingParams `form:"lodging"`
307
        // The line items in the purchase.
308
        Receipt []*TestHelpersIssuingAuthorizationCapturePurchaseDetailsReceiptParams `form:"receipt"`
309
        // A merchant-specific order number.
310
        Reference *string `form:"reference"`
311
}
312

313
// Capture a test-mode authorization.
314
type TestHelpersIssuingAuthorizationCaptureParams struct {
315
        Params `form:"*"`
316
        // 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://stripe.com/docs/currencies#zero-decimal).
317
        CaptureAmount *int64 `form:"capture_amount"`
318
        // Whether to close the authorization after capture. Defaults to true. Set to false to enable multi-capture flows.
319
        CloseAuthorization *bool `form:"close_authorization"`
320
        // Specifies which fields in the response should be expanded.
321
        Expand []*string `form:"expand"`
322
        // Additional purchase information that is optionally provided by the merchant.
323
        PurchaseDetails *TestHelpersIssuingAuthorizationCapturePurchaseDetailsParams `form:"purchase_details"`
324
}
325

326
// AddExpand appends a new field to expand.
327
func (p *TestHelpersIssuingAuthorizationCaptureParams) AddExpand(f string) {
×
328
        p.Expand = append(p.Expand, &f)
×
329
}
×
330

331
// Expire a test-mode Authorization.
332
type TestHelpersIssuingAuthorizationExpireParams struct {
333
        Params `form:"*"`
334
        // Specifies which fields in the response should be expanded.
335
        Expand []*string `form:"expand"`
336
}
337

338
// AddExpand appends a new field to expand.
339
func (p *TestHelpersIssuingAuthorizationExpireParams) AddExpand(f string) {
×
340
        p.Expand = append(p.Expand, &f)
×
341
}
×
342

343
// 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.
344
type TestHelpersIssuingAuthorizationFinalizeAmountFleetCardholderPromptDataParams struct {
345
        // Driver ID.
346
        DriverID *string `form:"driver_id"`
347
        // Odometer reading.
348
        Odometer *int64 `form:"odometer"`
349
        // 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.
350
        UnspecifiedID *string `form:"unspecified_id"`
351
        // User ID.
352
        UserID *string `form:"user_id"`
353
        // Vehicle number.
354
        VehicleNumber *string `form:"vehicle_number"`
355
}
356

357
// Breakdown of fuel portion of the purchase.
358
type TestHelpersIssuingAuthorizationFinalizeAmountFleetReportedBreakdownFuelParams struct {
359
        // Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
360
        GrossAmountDecimal *float64 `form:"gross_amount_decimal,high_precision"`
361
}
362

363
// Breakdown of non-fuel portion of the purchase.
364
type TestHelpersIssuingAuthorizationFinalizeAmountFleetReportedBreakdownNonFuelParams struct {
365
        // Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
366
        GrossAmountDecimal *float64 `form:"gross_amount_decimal,high_precision"`
367
}
368

369
// Information about tax included in this transaction.
370
type TestHelpersIssuingAuthorizationFinalizeAmountFleetReportedBreakdownTaxParams struct {
371
        // Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
372
        LocalAmountDecimal *float64 `form:"local_amount_decimal,high_precision"`
373
        // Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
374
        NationalAmountDecimal *float64 `form:"national_amount_decimal,high_precision"`
375
}
376

377
// More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
378
type TestHelpersIssuingAuthorizationFinalizeAmountFleetReportedBreakdownParams struct {
379
        // Breakdown of fuel portion of the purchase.
380
        Fuel *TestHelpersIssuingAuthorizationFinalizeAmountFleetReportedBreakdownFuelParams `form:"fuel"`
381
        // Breakdown of non-fuel portion of the purchase.
382
        NonFuel *TestHelpersIssuingAuthorizationFinalizeAmountFleetReportedBreakdownNonFuelParams `form:"non_fuel"`
383
        // Information about tax included in this transaction.
384
        Tax *TestHelpersIssuingAuthorizationFinalizeAmountFleetReportedBreakdownTaxParams `form:"tax"`
385
}
386

387
// Fleet-specific information for authorizations using Fleet cards.
388
type TestHelpersIssuingAuthorizationFinalizeAmountFleetParams struct {
389
        // 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.
390
        CardholderPromptData *TestHelpersIssuingAuthorizationFinalizeAmountFleetCardholderPromptDataParams `form:"cardholder_prompt_data"`
391
        // The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
392
        PurchaseType *string `form:"purchase_type"`
393
        // More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
394
        ReportedBreakdown *TestHelpersIssuingAuthorizationFinalizeAmountFleetReportedBreakdownParams `form:"reported_breakdown"`
395
        // The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
396
        ServiceType *string `form:"service_type"`
397
}
398

399
// Information about fuel that was purchased with this transaction.
400
type TestHelpersIssuingAuthorizationFinalizeAmountFuelParams struct {
401
        // [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
402
        IndustryProductCode *string `form:"industry_product_code"`
403
        // The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
404
        QuantityDecimal *float64 `form:"quantity_decimal,high_precision"`
405
        // The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
406
        Type *string `form:"type"`
407
        // The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
408
        Unit *string `form:"unit"`
409
        // The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
410
        UnitCostDecimal *float64 `form:"unit_cost_decimal,high_precision"`
411
}
412

413
// Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount.
414
type TestHelpersIssuingAuthorizationFinalizeAmountParams struct {
415
        Params `form:"*"`
416
        // Specifies which fields in the response should be expanded.
417
        Expand []*string `form:"expand"`
418
        // 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://stripe.com/docs/currencies#zero-decimal).
419
        FinalAmount *int64 `form:"final_amount"`
420
        // Fleet-specific information for authorizations using Fleet cards.
421
        Fleet *TestHelpersIssuingAuthorizationFinalizeAmountFleetParams `form:"fleet"`
422
        // Information about fuel that was purchased with this transaction.
423
        Fuel *TestHelpersIssuingAuthorizationFinalizeAmountFuelParams `form:"fuel"`
424
}
425

426
// AddExpand appends a new field to expand.
NEW
427
func (p *TestHelpersIssuingAuthorizationFinalizeAmountParams) AddExpand(f string) {
×
NEW
428
        p.Expand = append(p.Expand, &f)
×
NEW
429
}
×
430

431
// Increment a test-mode Authorization.
432
type TestHelpersIssuingAuthorizationIncrementParams struct {
433
        Params `form:"*"`
434
        // Specifies which fields in the response should be expanded.
435
        Expand []*string `form:"expand"`
436
        // The amount to increment the authorization by. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
437
        IncrementAmount *int64 `form:"increment_amount"`
438
        // If set `true`, you may provide [amount](https://stripe.com/docs/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.
439
        IsAmountControllable *bool `form:"is_amount_controllable"`
440
}
441

442
// AddExpand appends a new field to expand.
443
func (p *TestHelpersIssuingAuthorizationIncrementParams) AddExpand(f string) {
×
444
        p.Expand = append(p.Expand, &f)
×
445
}
×
446

447
// Reverse a test-mode Authorization.
448
type TestHelpersIssuingAuthorizationReverseParams struct {
449
        Params `form:"*"`
450
        // Specifies which fields in the response should be expanded.
451
        Expand []*string `form:"expand"`
452
        // The amount to reverse from the authorization. If not provided, the full amount of the authorization will be reversed. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
453
        ReverseAmount *int64 `form:"reverse_amount"`
454
}
455

456
// AddExpand appends a new field to expand.
457
func (p *TestHelpersIssuingAuthorizationReverseParams) AddExpand(f string) {
×
458
        p.Expand = append(p.Expand, &f)
×
459
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc