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

stripe / stripe-go / 11295426688

11 Oct 2024 03:52PM UTC coverage: 62.991% (-0.02%) from 63.015%
11295426688

Pull #1934

github

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

0 of 8 new or added lines in 2 files covered. (0.0%)

472 existing lines in 21 files now uncovered.

6209 of 9857 relevant lines covered (62.99%)

15.67 hits per line

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

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

7
package stripe
8

9
// Deletes a Configuration object.
10
type TerminalConfigurationParams struct {
11
        Params `form:"*"`
12
        // An object containing device type specific settings for BBPOS WisePOS E readers
13
        BBPOSWisePOSE *TerminalConfigurationBBPOSWisePOSEParams `form:"bbpos_wisepos_e"`
14
        // Specifies which fields in the response should be expanded.
15
        Expand []*string `form:"expand"`
16
        // Name of the configuration
17
        Name *string `form:"name"`
18
        // Configurations for collecting transactions offline.
19
        Offline *TerminalConfigurationOfflineParams `form:"offline"`
20
        // Reboot time settings for readers that support customized reboot time configuration.
21
        RebootWindow *TerminalConfigurationRebootWindowParams `form:"reboot_window"`
22
        // An object containing device type specific settings for Stripe S700 readers
23
        StripeS700 *TerminalConfigurationStripeS700Params `form:"stripe_s700"`
24
        // Tipping configurations for readers supporting on-reader tips
25
        Tipping *TerminalConfigurationTippingParams `form:"tipping"`
26
        // An object containing device type specific settings for Verifone P400 readers
27
        VerifoneP400 *TerminalConfigurationVerifoneP400Params `form:"verifone_p400"`
28
}
29

30
// AddExpand appends a new field to expand.
31
func (p *TerminalConfigurationParams) AddExpand(f string) {
×
32
        p.Expand = append(p.Expand, &f)
×
33
}
×
34

35
// An object containing device type specific settings for BBPOS WisePOS E readers
36
type TerminalConfigurationBBPOSWisePOSEParams struct {
37
        // A File ID representing an image you would like displayed on the reader.
38
        Splashscreen *string `form:"splashscreen"`
39
}
40

41
// Configurations for collecting transactions offline.
42
type TerminalConfigurationOfflineParams struct {
43
        // Determines whether to allow transactions to be collected while reader is offline. Defaults to false.
44
        Enabled *bool `form:"enabled"`
45
}
46

47
// Reboot time settings for readers that support customized reboot time configuration.
48
type TerminalConfigurationRebootWindowParams struct {
49
        // Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
50
        EndHour *int64 `form:"end_hour"`
51
        // Integer between 0 to 23 that represents the start hour of the reboot time window.
52
        StartHour *int64 `form:"start_hour"`
53
}
54

55
// An object containing device type specific settings for Stripe S700 readers
56
type TerminalConfigurationStripeS700Params struct {
57
        // A File ID representing an image you would like displayed on the reader.
58
        Splashscreen *string `form:"splashscreen"`
59
}
60

61
// Tipping configuration for AUD
62
type TerminalConfigurationTippingAUDParams struct {
63
        // Fixed amounts displayed when collecting a tip
64
        FixedAmounts []*int64 `form:"fixed_amounts"`
65
        // Percentages displayed when collecting a tip
66
        Percentages []*int64 `form:"percentages"`
67
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
68
        SmartTipThreshold *int64 `form:"smart_tip_threshold"`
69
}
70

71
// Tipping configuration for CAD
72
type TerminalConfigurationTippingCADParams struct {
73
        // Fixed amounts displayed when collecting a tip
74
        FixedAmounts []*int64 `form:"fixed_amounts"`
75
        // Percentages displayed when collecting a tip
76
        Percentages []*int64 `form:"percentages"`
77
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
78
        SmartTipThreshold *int64 `form:"smart_tip_threshold"`
79
}
80

81
// Tipping configuration for CHF
82
type TerminalConfigurationTippingCHFParams struct {
83
        // Fixed amounts displayed when collecting a tip
84
        FixedAmounts []*int64 `form:"fixed_amounts"`
85
        // Percentages displayed when collecting a tip
86
        Percentages []*int64 `form:"percentages"`
87
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
88
        SmartTipThreshold *int64 `form:"smart_tip_threshold"`
89
}
90

91
// Tipping configuration for CZK
92
type TerminalConfigurationTippingCZKParams struct {
93
        // Fixed amounts displayed when collecting a tip
94
        FixedAmounts []*int64 `form:"fixed_amounts"`
95
        // Percentages displayed when collecting a tip
96
        Percentages []*int64 `form:"percentages"`
97
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
98
        SmartTipThreshold *int64 `form:"smart_tip_threshold"`
99
}
100

101
// Tipping configuration for DKK
102
type TerminalConfigurationTippingDKKParams struct {
103
        // Fixed amounts displayed when collecting a tip
104
        FixedAmounts []*int64 `form:"fixed_amounts"`
105
        // Percentages displayed when collecting a tip
106
        Percentages []*int64 `form:"percentages"`
107
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
108
        SmartTipThreshold *int64 `form:"smart_tip_threshold"`
109
}
110

111
// Tipping configuration for EUR
112
type TerminalConfigurationTippingEURParams struct {
113
        // Fixed amounts displayed when collecting a tip
114
        FixedAmounts []*int64 `form:"fixed_amounts"`
115
        // Percentages displayed when collecting a tip
116
        Percentages []*int64 `form:"percentages"`
117
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
118
        SmartTipThreshold *int64 `form:"smart_tip_threshold"`
119
}
120

121
// Tipping configuration for GBP
122
type TerminalConfigurationTippingGBPParams struct {
123
        // Fixed amounts displayed when collecting a tip
124
        FixedAmounts []*int64 `form:"fixed_amounts"`
125
        // Percentages displayed when collecting a tip
126
        Percentages []*int64 `form:"percentages"`
127
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
128
        SmartTipThreshold *int64 `form:"smart_tip_threshold"`
129
}
130

131
// Tipping configuration for HKD
132
type TerminalConfigurationTippingHKDParams struct {
133
        // Fixed amounts displayed when collecting a tip
134
        FixedAmounts []*int64 `form:"fixed_amounts"`
135
        // Percentages displayed when collecting a tip
136
        Percentages []*int64 `form:"percentages"`
137
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
138
        SmartTipThreshold *int64 `form:"smart_tip_threshold"`
139
}
140

141
// Tipping configuration for MYR
142
type TerminalConfigurationTippingMYRParams struct {
143
        // Fixed amounts displayed when collecting a tip
144
        FixedAmounts []*int64 `form:"fixed_amounts"`
145
        // Percentages displayed when collecting a tip
146
        Percentages []*int64 `form:"percentages"`
147
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
148
        SmartTipThreshold *int64 `form:"smart_tip_threshold"`
149
}
150

151
// Tipping configuration for NOK
152
type TerminalConfigurationTippingNOKParams struct {
153
        // Fixed amounts displayed when collecting a tip
154
        FixedAmounts []*int64 `form:"fixed_amounts"`
155
        // Percentages displayed when collecting a tip
156
        Percentages []*int64 `form:"percentages"`
157
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
158
        SmartTipThreshold *int64 `form:"smart_tip_threshold"`
159
}
160

161
// Tipping configuration for NZD
162
type TerminalConfigurationTippingNZDParams struct {
163
        // Fixed amounts displayed when collecting a tip
164
        FixedAmounts []*int64 `form:"fixed_amounts"`
165
        // Percentages displayed when collecting a tip
166
        Percentages []*int64 `form:"percentages"`
167
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
168
        SmartTipThreshold *int64 `form:"smart_tip_threshold"`
169
}
170

171
// Tipping configuration for SEK
172
type TerminalConfigurationTippingSEKParams struct {
173
        // Fixed amounts displayed when collecting a tip
174
        FixedAmounts []*int64 `form:"fixed_amounts"`
175
        // Percentages displayed when collecting a tip
176
        Percentages []*int64 `form:"percentages"`
177
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
178
        SmartTipThreshold *int64 `form:"smart_tip_threshold"`
179
}
180

181
// Tipping configuration for SGD
182
type TerminalConfigurationTippingSGDParams struct {
183
        // Fixed amounts displayed when collecting a tip
184
        FixedAmounts []*int64 `form:"fixed_amounts"`
185
        // Percentages displayed when collecting a tip
186
        Percentages []*int64 `form:"percentages"`
187
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
188
        SmartTipThreshold *int64 `form:"smart_tip_threshold"`
189
}
190

191
// Tipping configuration for USD
192
type TerminalConfigurationTippingUSDParams struct {
193
        // Fixed amounts displayed when collecting a tip
194
        FixedAmounts []*int64 `form:"fixed_amounts"`
195
        // Percentages displayed when collecting a tip
196
        Percentages []*int64 `form:"percentages"`
197
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
198
        SmartTipThreshold *int64 `form:"smart_tip_threshold"`
199
}
200

201
// Tipping configurations for readers supporting on-reader tips
202
type TerminalConfigurationTippingParams struct {
203
        // Tipping configuration for AUD
204
        AUD *TerminalConfigurationTippingAUDParams `form:"aud"`
205
        // Tipping configuration for CAD
206
        CAD *TerminalConfigurationTippingCADParams `form:"cad"`
207
        // Tipping configuration for CHF
208
        CHF *TerminalConfigurationTippingCHFParams `form:"chf"`
209
        // Tipping configuration for CZK
210
        CZK *TerminalConfigurationTippingCZKParams `form:"czk"`
211
        // Tipping configuration for DKK
212
        DKK *TerminalConfigurationTippingDKKParams `form:"dkk"`
213
        // Tipping configuration for EUR
214
        EUR *TerminalConfigurationTippingEURParams `form:"eur"`
215
        // Tipping configuration for GBP
216
        GBP *TerminalConfigurationTippingGBPParams `form:"gbp"`
217
        // Tipping configuration for HKD
218
        HKD *TerminalConfigurationTippingHKDParams `form:"hkd"`
219
        // Tipping configuration for MYR
220
        MYR *TerminalConfigurationTippingMYRParams `form:"myr"`
221
        // Tipping configuration for NOK
222
        NOK *TerminalConfigurationTippingNOKParams `form:"nok"`
223
        // Tipping configuration for NZD
224
        NZD *TerminalConfigurationTippingNZDParams `form:"nzd"`
225
        // Tipping configuration for SEK
226
        SEK *TerminalConfigurationTippingSEKParams `form:"sek"`
227
        // Tipping configuration for SGD
228
        SGD *TerminalConfigurationTippingSGDParams `form:"sgd"`
229
        // Tipping configuration for USD
230
        USD *TerminalConfigurationTippingUSDParams `form:"usd"`
231
}
232

233
// An object containing device type specific settings for Verifone P400 readers
234
type TerminalConfigurationVerifoneP400Params struct {
235
        // A File ID representing an image you would like displayed on the reader.
236
        Splashscreen *string `form:"splashscreen"`
237
}
238

239
// Returns a list of Configuration objects.
240
type TerminalConfigurationListParams struct {
241
        ListParams `form:"*"`
242
        // Specifies which fields in the response should be expanded.
243
        Expand []*string `form:"expand"`
244
        // if present, only return the account default or non-default configurations.
245
        IsAccountDefault *bool `form:"is_account_default"`
246
}
247

248
// AddExpand appends a new field to expand.
UNCOV
249
func (p *TerminalConfigurationListParams) AddExpand(f string) {
×
UNCOV
250
        p.Expand = append(p.Expand, &f)
×
UNCOV
251
}
×
252

253
type TerminalConfigurationBBPOSWisePOSE struct {
254
        // A File ID representing an image you would like displayed on the reader.
255
        Splashscreen *File `json:"splashscreen"`
256
}
257
type TerminalConfigurationOffline struct {
258
        // Determines whether to allow transactions to be collected while reader is offline. Defaults to false.
259
        Enabled bool `json:"enabled"`
260
}
261
type TerminalConfigurationRebootWindow struct {
262
        // Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
263
        EndHour int64 `json:"end_hour"`
264
        // Integer between 0 to 23 that represents the start hour of the reboot time window.
265
        StartHour int64 `json:"start_hour"`
266
}
267
type TerminalConfigurationStripeS700 struct {
268
        // A File ID representing an image you would like displayed on the reader.
269
        Splashscreen *File `json:"splashscreen"`
270
}
271
type TerminalConfigurationTippingAUD struct {
272
        // Fixed amounts displayed when collecting a tip
273
        FixedAmounts []int64 `json:"fixed_amounts"`
274
        // Percentages displayed when collecting a tip
275
        Percentages []int64 `json:"percentages"`
276
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
277
        SmartTipThreshold int64 `json:"smart_tip_threshold"`
278
}
279
type TerminalConfigurationTippingCAD struct {
280
        // Fixed amounts displayed when collecting a tip
281
        FixedAmounts []int64 `json:"fixed_amounts"`
282
        // Percentages displayed when collecting a tip
283
        Percentages []int64 `json:"percentages"`
284
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
285
        SmartTipThreshold int64 `json:"smart_tip_threshold"`
286
}
287
type TerminalConfigurationTippingCHF struct {
288
        // Fixed amounts displayed when collecting a tip
289
        FixedAmounts []int64 `json:"fixed_amounts"`
290
        // Percentages displayed when collecting a tip
291
        Percentages []int64 `json:"percentages"`
292
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
293
        SmartTipThreshold int64 `json:"smart_tip_threshold"`
294
}
295
type TerminalConfigurationTippingCZK struct {
296
        // Fixed amounts displayed when collecting a tip
297
        FixedAmounts []int64 `json:"fixed_amounts"`
298
        // Percentages displayed when collecting a tip
299
        Percentages []int64 `json:"percentages"`
300
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
301
        SmartTipThreshold int64 `json:"smart_tip_threshold"`
302
}
303
type TerminalConfigurationTippingDKK struct {
304
        // Fixed amounts displayed when collecting a tip
305
        FixedAmounts []int64 `json:"fixed_amounts"`
306
        // Percentages displayed when collecting a tip
307
        Percentages []int64 `json:"percentages"`
308
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
309
        SmartTipThreshold int64 `json:"smart_tip_threshold"`
310
}
311
type TerminalConfigurationTippingEUR struct {
312
        // Fixed amounts displayed when collecting a tip
313
        FixedAmounts []int64 `json:"fixed_amounts"`
314
        // Percentages displayed when collecting a tip
315
        Percentages []int64 `json:"percentages"`
316
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
317
        SmartTipThreshold int64 `json:"smart_tip_threshold"`
318
}
319
type TerminalConfigurationTippingGBP struct {
320
        // Fixed amounts displayed when collecting a tip
321
        FixedAmounts []int64 `json:"fixed_amounts"`
322
        // Percentages displayed when collecting a tip
323
        Percentages []int64 `json:"percentages"`
324
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
325
        SmartTipThreshold int64 `json:"smart_tip_threshold"`
326
}
327
type TerminalConfigurationTippingHKD struct {
328
        // Fixed amounts displayed when collecting a tip
329
        FixedAmounts []int64 `json:"fixed_amounts"`
330
        // Percentages displayed when collecting a tip
331
        Percentages []int64 `json:"percentages"`
332
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
333
        SmartTipThreshold int64 `json:"smart_tip_threshold"`
334
}
335
type TerminalConfigurationTippingMYR struct {
336
        // Fixed amounts displayed when collecting a tip
337
        FixedAmounts []int64 `json:"fixed_amounts"`
338
        // Percentages displayed when collecting a tip
339
        Percentages []int64 `json:"percentages"`
340
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
341
        SmartTipThreshold int64 `json:"smart_tip_threshold"`
342
}
343
type TerminalConfigurationTippingNOK struct {
344
        // Fixed amounts displayed when collecting a tip
345
        FixedAmounts []int64 `json:"fixed_amounts"`
346
        // Percentages displayed when collecting a tip
347
        Percentages []int64 `json:"percentages"`
348
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
349
        SmartTipThreshold int64 `json:"smart_tip_threshold"`
350
}
351
type TerminalConfigurationTippingNZD struct {
352
        // Fixed amounts displayed when collecting a tip
353
        FixedAmounts []int64 `json:"fixed_amounts"`
354
        // Percentages displayed when collecting a tip
355
        Percentages []int64 `json:"percentages"`
356
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
357
        SmartTipThreshold int64 `json:"smart_tip_threshold"`
358
}
359
type TerminalConfigurationTippingSEK struct {
360
        // Fixed amounts displayed when collecting a tip
361
        FixedAmounts []int64 `json:"fixed_amounts"`
362
        // Percentages displayed when collecting a tip
363
        Percentages []int64 `json:"percentages"`
364
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
365
        SmartTipThreshold int64 `json:"smart_tip_threshold"`
366
}
367
type TerminalConfigurationTippingSGD struct {
368
        // Fixed amounts displayed when collecting a tip
369
        FixedAmounts []int64 `json:"fixed_amounts"`
370
        // Percentages displayed when collecting a tip
371
        Percentages []int64 `json:"percentages"`
372
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
373
        SmartTipThreshold int64 `json:"smart_tip_threshold"`
374
}
375
type TerminalConfigurationTippingUSD struct {
376
        // Fixed amounts displayed when collecting a tip
377
        FixedAmounts []int64 `json:"fixed_amounts"`
378
        // Percentages displayed when collecting a tip
379
        Percentages []int64 `json:"percentages"`
380
        // Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
381
        SmartTipThreshold int64 `json:"smart_tip_threshold"`
382
}
383
type TerminalConfigurationTipping struct {
384
        AUD *TerminalConfigurationTippingAUD `json:"aud"`
385
        CAD *TerminalConfigurationTippingCAD `json:"cad"`
386
        CHF *TerminalConfigurationTippingCHF `json:"chf"`
387
        CZK *TerminalConfigurationTippingCZK `json:"czk"`
388
        DKK *TerminalConfigurationTippingDKK `json:"dkk"`
389
        EUR *TerminalConfigurationTippingEUR `json:"eur"`
390
        GBP *TerminalConfigurationTippingGBP `json:"gbp"`
391
        HKD *TerminalConfigurationTippingHKD `json:"hkd"`
392
        MYR *TerminalConfigurationTippingMYR `json:"myr"`
393
        NOK *TerminalConfigurationTippingNOK `json:"nok"`
394
        NZD *TerminalConfigurationTippingNZD `json:"nzd"`
395
        SEK *TerminalConfigurationTippingSEK `json:"sek"`
396
        SGD *TerminalConfigurationTippingSGD `json:"sgd"`
397
        USD *TerminalConfigurationTippingUSD `json:"usd"`
398
}
399
type TerminalConfigurationVerifoneP400 struct {
400
        // A File ID representing an image you would like displayed on the reader.
401
        Splashscreen *File `json:"splashscreen"`
402
}
403

404
// A Configurations object represents how features should be configured for terminal readers.
405
type TerminalConfiguration struct {
406
        APIResource
407
        BBPOSWisePOSE *TerminalConfigurationBBPOSWisePOSE `json:"bbpos_wisepos_e"`
408
        Deleted       bool                                `json:"deleted"`
409
        // Unique identifier for the object.
410
        ID string `json:"id"`
411
        // Whether this Configuration is the default for your account
412
        IsAccountDefault bool `json:"is_account_default"`
413
        // Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
414
        Livemode bool `json:"livemode"`
415
        // String indicating the name of the Configuration object, set by the user
416
        Name string `json:"name"`
417
        // String representing the object's type. Objects of the same type share the same value.
418
        Object       string                             `json:"object"`
419
        Offline      *TerminalConfigurationOffline      `json:"offline"`
420
        RebootWindow *TerminalConfigurationRebootWindow `json:"reboot_window"`
421
        StripeS700   *TerminalConfigurationStripeS700   `json:"stripe_s700"`
422
        Tipping      *TerminalConfigurationTipping      `json:"tipping"`
423
        VerifoneP400 *TerminalConfigurationVerifoneP400 `json:"verifone_p400"`
424
}
425

426
// TerminalConfigurationList is a list of Configurations as retrieved from a list endpoint.
427
type TerminalConfigurationList struct {
428
        APIResource
429
        ListMeta
430
        Data []*TerminalConfiguration `json:"data"`
431
}
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