line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Terminal/Configuration.pm |
3
|
|
|
|
|
|
|
## Version v0.1.0 |
4
|
|
|
|
|
|
|
## Copyright(c) 2022 DEGUEST Pte. Ltd. |
5
|
|
|
|
|
|
|
## Author: Jacques Deguest <jack@deguest.jp> |
6
|
|
|
|
|
|
|
## Created 2022/10/29 |
7
|
|
|
|
|
|
|
## Modified 2022/10/29 |
8
|
|
|
|
|
|
|
## |
9
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
10
|
|
|
|
|
|
|
BEGIN |
11
|
|
|
|
|
|
|
{ |
12
|
|
|
|
|
|
|
use strict; |
13
|
2
|
|
|
2
|
|
23934703
|
use parent qw( Net::API::Stripe::Generic ); |
|
2
|
|
|
|
|
19
|
|
|
2
|
|
|
|
|
71
|
|
14
|
2
|
|
|
2
|
|
9
|
our( $VERSION ) = 'v0.1.0'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
10
|
|
15
|
2
|
|
|
2
|
|
1006
|
}; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
|
19
|
|
|
|
|
|
|
{ |
20
|
0
|
|
|
0
|
1
|
|
splashscreen => { package => "Net::API::Stripe::File", type => "scalar_or_object" }, |
21
|
|
|
|
|
|
|
}, @_ ) ); } |
22
|
0
|
|
|
0
|
1
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
{ |
26
|
|
|
|
|
|
|
aud => { |
27
|
0
|
|
|
0
|
1
|
|
definition => { |
28
|
|
|
|
|
|
|
fixed_amounts => { type => "array" }, |
29
|
0
|
|
|
0
|
1
|
|
percentages => { type => "array" }, |
30
|
|
|
|
|
|
|
smart_tip_threshold => { type => "number" }, |
31
|
0
|
|
|
0
|
1
|
|
}, |
32
|
|
|
|
|
|
|
type => "class", |
33
|
|
|
|
|
|
|
}, |
34
|
|
|
|
|
|
|
cad => { |
35
|
|
|
|
|
|
|
definition => { |
36
|
|
|
|
|
|
|
fixed_amounts => { type => "array" }, |
37
|
|
|
|
|
|
|
percentages => { type => "array" }, |
38
|
|
|
|
|
|
|
smart_tip_threshold => { type => "number" }, |
39
|
|
|
|
|
|
|
}, |
40
|
|
|
|
|
|
|
type => "class", |
41
|
|
|
|
|
|
|
}, |
42
|
|
|
|
|
|
|
chf => { |
43
|
|
|
|
|
|
|
definition => { |
44
|
|
|
|
|
|
|
fixed_amounts => { type => "array" }, |
45
|
|
|
|
|
|
|
percentages => { type => "array" }, |
46
|
|
|
|
|
|
|
smart_tip_threshold => { type => "number" }, |
47
|
|
|
|
|
|
|
}, |
48
|
|
|
|
|
|
|
type => "class", |
49
|
|
|
|
|
|
|
}, |
50
|
|
|
|
|
|
|
czk => { |
51
|
|
|
|
|
|
|
definition => { |
52
|
|
|
|
|
|
|
fixed_amounts => { type => "array" }, |
53
|
|
|
|
|
|
|
percentages => { type => "array" }, |
54
|
|
|
|
|
|
|
smart_tip_threshold => { type => "number" }, |
55
|
|
|
|
|
|
|
}, |
56
|
|
|
|
|
|
|
type => "class", |
57
|
|
|
|
|
|
|
}, |
58
|
|
|
|
|
|
|
dkk => { |
59
|
|
|
|
|
|
|
definition => { |
60
|
|
|
|
|
|
|
fixed_amounts => { type => "array" }, |
61
|
|
|
|
|
|
|
percentages => { type => "array" }, |
62
|
|
|
|
|
|
|
smart_tip_threshold => { type => "number" }, |
63
|
|
|
|
|
|
|
}, |
64
|
|
|
|
|
|
|
type => "class", |
65
|
|
|
|
|
|
|
}, |
66
|
|
|
|
|
|
|
eur => { |
67
|
|
|
|
|
|
|
definition => { |
68
|
|
|
|
|
|
|
fixed_amounts => { type => "array" }, |
69
|
|
|
|
|
|
|
percentages => { type => "array" }, |
70
|
|
|
|
|
|
|
smart_tip_threshold => { type => "number" }, |
71
|
|
|
|
|
|
|
}, |
72
|
|
|
|
|
|
|
type => "class", |
73
|
|
|
|
|
|
|
}, |
74
|
|
|
|
|
|
|
gbp => { |
75
|
|
|
|
|
|
|
definition => { |
76
|
|
|
|
|
|
|
fixed_amounts => { type => "array" }, |
77
|
|
|
|
|
|
|
percentages => { type => "array" }, |
78
|
|
|
|
|
|
|
smart_tip_threshold => { type => "number" }, |
79
|
|
|
|
|
|
|
}, |
80
|
|
|
|
|
|
|
type => "class", |
81
|
|
|
|
|
|
|
}, |
82
|
|
|
|
|
|
|
hkd => { |
83
|
|
|
|
|
|
|
definition => { |
84
|
|
|
|
|
|
|
fixed_amounts => { type => "array" }, |
85
|
|
|
|
|
|
|
percentages => { type => "array" }, |
86
|
|
|
|
|
|
|
smart_tip_threshold => { type => "number" }, |
87
|
|
|
|
|
|
|
}, |
88
|
|
|
|
|
|
|
type => "class", |
89
|
|
|
|
|
|
|
}, |
90
|
|
|
|
|
|
|
myr => { |
91
|
|
|
|
|
|
|
definition => { |
92
|
|
|
|
|
|
|
fixed_amounts => { type => "array" }, |
93
|
|
|
|
|
|
|
percentages => { type => "array" }, |
94
|
|
|
|
|
|
|
smart_tip_threshold => { type => "number" }, |
95
|
|
|
|
|
|
|
}, |
96
|
|
|
|
|
|
|
type => "class", |
97
|
|
|
|
|
|
|
}, |
98
|
|
|
|
|
|
|
nok => { |
99
|
|
|
|
|
|
|
definition => { |
100
|
|
|
|
|
|
|
fixed_amounts => { type => "array" }, |
101
|
|
|
|
|
|
|
percentages => { type => "array" }, |
102
|
|
|
|
|
|
|
smart_tip_threshold => { type => "number" }, |
103
|
|
|
|
|
|
|
}, |
104
|
|
|
|
|
|
|
type => "class", |
105
|
|
|
|
|
|
|
}, |
106
|
|
|
|
|
|
|
nzd => { |
107
|
|
|
|
|
|
|
definition => { |
108
|
|
|
|
|
|
|
fixed_amounts => { type => "array" }, |
109
|
|
|
|
|
|
|
percentages => { type => "array" }, |
110
|
|
|
|
|
|
|
smart_tip_threshold => { type => "number" }, |
111
|
|
|
|
|
|
|
}, |
112
|
|
|
|
|
|
|
type => "class", |
113
|
|
|
|
|
|
|
}, |
114
|
|
|
|
|
|
|
sek => { |
115
|
|
|
|
|
|
|
definition => { |
116
|
|
|
|
|
|
|
fixed_amounts => { type => "array" }, |
117
|
|
|
|
|
|
|
percentages => { type => "array" }, |
118
|
|
|
|
|
|
|
smart_tip_threshold => { type => "number" }, |
119
|
|
|
|
|
|
|
}, |
120
|
|
|
|
|
|
|
type => "class", |
121
|
|
|
|
|
|
|
}, |
122
|
|
|
|
|
|
|
sgd => { |
123
|
|
|
|
|
|
|
definition => { |
124
|
|
|
|
|
|
|
fixed_amounts => { type => "array" }, |
125
|
|
|
|
|
|
|
percentages => { type => "array" }, |
126
|
|
|
|
|
|
|
smart_tip_threshold => { type => "number" }, |
127
|
|
|
|
|
|
|
}, |
128
|
|
|
|
|
|
|
type => "class", |
129
|
|
|
|
|
|
|
}, |
130
|
|
|
|
|
|
|
usd => { |
131
|
|
|
|
|
|
|
definition => { |
132
|
|
|
|
|
|
|
fixed_amounts => { type => "array" }, |
133
|
|
|
|
|
|
|
percentages => { type => "array" }, |
134
|
|
|
|
|
|
|
smart_tip_threshold => { type => "number" }, |
135
|
|
|
|
|
|
|
}, |
136
|
|
|
|
|
|
|
type => "class", |
137
|
|
|
|
|
|
|
}, |
138
|
|
|
|
|
|
|
}, @_ ) ); } |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
{ |
141
|
|
|
|
|
|
|
splashscreen => { package => "Net::API::Stripe::File", type => "scalar_or_object" }, |
142
|
|
|
|
|
|
|
}, @_ ) ); } |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
1; |
145
|
|
|
|
|
|
|
# NOTE: POD |
146
|
|
|
|
|
|
|
|
147
|
0
|
|
|
0
|
1
|
|
=encoding utf8 |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=head1 NAME |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
Net::API::Stripe::Terminal::Configuration - The Configuration object |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=head1 SYNOPSIS |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
=head1 VERSION |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
v0.1.0 |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
=head1 DESCRIPTION |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
A Configurations object represents how features should be configured for terminal readers. |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
=head1 METHODS |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
=head2 id string |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
Unique identifier for the object. |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
=head2 object string |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
String representing the object's type. Objects of the same type share the same value. |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=head2 bbpos_wisepos_e hash |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
An object containing device type specific settings for BBPOS WisePOS E |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
It has the following properties: |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
=over 4 |
181
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
=item C<splashscreen> string expandable |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
A File ID representing an image you would like displayed on the reader. |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
When expanded this is an L<Net::API::Stripe::File> object. |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
=back |
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
=head2 is_account_default boolean |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
Whether this Configuration is the default for your account |
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
=head2 livemode boolean |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
Has the value C<true> if the object exists in live mode or the value C<false> if the object exists in test mode. |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
=head2 tipping hash |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
On-reader tipping settings |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
It has the following properties: |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
=over 4 |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
=item C<aud> hash |
207
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
Tipping configuration for AUD |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
=over 8 |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
=item C<fixed_amounts> array |
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
Fixed amounts displayed when collecting a tip |
215
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
=item C<percentages> array |
217
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
Percentages displayed when collecting a tip |
219
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
=item C<smart_tip_threshold> integer |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
=back |
226
|
|
|
|
|
|
|
|
227
|
|
|
|
|
|
|
=item C<cad> hash |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
Tipping configuration for CAD |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
=over 8 |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
=item C<fixed_amounts> array |
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
Fixed amounts displayed when collecting a tip |
236
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
=item C<percentages> array |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
Percentages displayed when collecting a tip |
240
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
=item C<smart_tip_threshold> integer |
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed |
244
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
|
246
|
|
|
|
|
|
|
=back |
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
=item C<chf> hash |
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
Tipping configuration for CHF |
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
=over 8 |
253
|
|
|
|
|
|
|
|
254
|
|
|
|
|
|
|
=item C<fixed_amounts> array |
255
|
|
|
|
|
|
|
|
256
|
|
|
|
|
|
|
Fixed amounts displayed when collecting a tip |
257
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
=item C<percentages> array |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
Percentages displayed when collecting a tip |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
=item C<smart_tip_threshold> integer |
263
|
|
|
|
|
|
|
|
264
|
|
|
|
|
|
|
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed |
265
|
|
|
|
|
|
|
|
266
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
=back |
268
|
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
=item C<czk> hash |
270
|
|
|
|
|
|
|
|
271
|
|
|
|
|
|
|
Tipping configuration for CZK |
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
=over 8 |
274
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
=item C<fixed_amounts> array |
276
|
|
|
|
|
|
|
|
277
|
|
|
|
|
|
|
Fixed amounts displayed when collecting a tip |
278
|
|
|
|
|
|
|
|
279
|
|
|
|
|
|
|
=item C<percentages> array |
280
|
|
|
|
|
|
|
|
281
|
|
|
|
|
|
|
Percentages displayed when collecting a tip |
282
|
|
|
|
|
|
|
|
283
|
|
|
|
|
|
|
=item C<smart_tip_threshold> integer |
284
|
|
|
|
|
|
|
|
285
|
|
|
|
|
|
|
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed |
286
|
|
|
|
|
|
|
|
287
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
=back |
289
|
|
|
|
|
|
|
|
290
|
|
|
|
|
|
|
=item C<dkk> hash |
291
|
|
|
|
|
|
|
|
292
|
|
|
|
|
|
|
Tipping configuration for DKK |
293
|
|
|
|
|
|
|
|
294
|
|
|
|
|
|
|
=over 8 |
295
|
|
|
|
|
|
|
|
296
|
|
|
|
|
|
|
=item C<fixed_amounts> array |
297
|
|
|
|
|
|
|
|
298
|
|
|
|
|
|
|
Fixed amounts displayed when collecting a tip |
299
|
|
|
|
|
|
|
|
300
|
|
|
|
|
|
|
=item C<percentages> array |
301
|
|
|
|
|
|
|
|
302
|
|
|
|
|
|
|
Percentages displayed when collecting a tip |
303
|
|
|
|
|
|
|
|
304
|
|
|
|
|
|
|
=item C<smart_tip_threshold> integer |
305
|
|
|
|
|
|
|
|
306
|
|
|
|
|
|
|
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed |
307
|
|
|
|
|
|
|
|
308
|
|
|
|
|
|
|
|
309
|
|
|
|
|
|
|
=back |
310
|
|
|
|
|
|
|
|
311
|
|
|
|
|
|
|
=item C<eur> hash |
312
|
|
|
|
|
|
|
|
313
|
|
|
|
|
|
|
Tipping configuration for EUR |
314
|
|
|
|
|
|
|
|
315
|
|
|
|
|
|
|
=over 8 |
316
|
|
|
|
|
|
|
|
317
|
|
|
|
|
|
|
=item C<fixed_amounts> array |
318
|
|
|
|
|
|
|
|
319
|
|
|
|
|
|
|
Fixed amounts displayed when collecting a tip |
320
|
|
|
|
|
|
|
|
321
|
|
|
|
|
|
|
=item C<percentages> array |
322
|
|
|
|
|
|
|
|
323
|
|
|
|
|
|
|
Percentages displayed when collecting a tip |
324
|
|
|
|
|
|
|
|
325
|
|
|
|
|
|
|
=item C<smart_tip_threshold> integer |
326
|
|
|
|
|
|
|
|
327
|
|
|
|
|
|
|
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed |
328
|
|
|
|
|
|
|
|
329
|
|
|
|
|
|
|
|
330
|
|
|
|
|
|
|
=back |
331
|
|
|
|
|
|
|
|
332
|
|
|
|
|
|
|
=item C<gbp> hash |
333
|
|
|
|
|
|
|
|
334
|
|
|
|
|
|
|
Tipping configuration for GBP |
335
|
|
|
|
|
|
|
|
336
|
|
|
|
|
|
|
=over 8 |
337
|
|
|
|
|
|
|
|
338
|
|
|
|
|
|
|
=item C<fixed_amounts> array |
339
|
|
|
|
|
|
|
|
340
|
|
|
|
|
|
|
Fixed amounts displayed when collecting a tip |
341
|
|
|
|
|
|
|
|
342
|
|
|
|
|
|
|
=item C<percentages> array |
343
|
|
|
|
|
|
|
|
344
|
|
|
|
|
|
|
Percentages displayed when collecting a tip |
345
|
|
|
|
|
|
|
|
346
|
|
|
|
|
|
|
=item C<smart_tip_threshold> integer |
347
|
|
|
|
|
|
|
|
348
|
|
|
|
|
|
|
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed |
349
|
|
|
|
|
|
|
|
350
|
|
|
|
|
|
|
|
351
|
|
|
|
|
|
|
=back |
352
|
|
|
|
|
|
|
|
353
|
|
|
|
|
|
|
=item C<hkd> hash |
354
|
|
|
|
|
|
|
|
355
|
|
|
|
|
|
|
Tipping configuration for HKD |
356
|
|
|
|
|
|
|
|
357
|
|
|
|
|
|
|
=over 8 |
358
|
|
|
|
|
|
|
|
359
|
|
|
|
|
|
|
=item C<fixed_amounts> array |
360
|
|
|
|
|
|
|
|
361
|
|
|
|
|
|
|
Fixed amounts displayed when collecting a tip |
362
|
|
|
|
|
|
|
|
363
|
|
|
|
|
|
|
=item C<percentages> array |
364
|
|
|
|
|
|
|
|
365
|
|
|
|
|
|
|
Percentages displayed when collecting a tip |
366
|
|
|
|
|
|
|
|
367
|
|
|
|
|
|
|
=item C<smart_tip_threshold> integer |
368
|
|
|
|
|
|
|
|
369
|
|
|
|
|
|
|
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed |
370
|
|
|
|
|
|
|
|
371
|
|
|
|
|
|
|
|
372
|
|
|
|
|
|
|
=back |
373
|
|
|
|
|
|
|
|
374
|
|
|
|
|
|
|
=item C<myr> hash |
375
|
|
|
|
|
|
|
|
376
|
|
|
|
|
|
|
Tipping configuration for MYR |
377
|
|
|
|
|
|
|
|
378
|
|
|
|
|
|
|
=over 8 |
379
|
|
|
|
|
|
|
|
380
|
|
|
|
|
|
|
=item C<fixed_amounts> array |
381
|
|
|
|
|
|
|
|
382
|
|
|
|
|
|
|
Fixed amounts displayed when collecting a tip |
383
|
|
|
|
|
|
|
|
384
|
|
|
|
|
|
|
=item C<percentages> array |
385
|
|
|
|
|
|
|
|
386
|
|
|
|
|
|
|
Percentages displayed when collecting a tip |
387
|
|
|
|
|
|
|
|
388
|
|
|
|
|
|
|
=item C<smart_tip_threshold> integer |
389
|
|
|
|
|
|
|
|
390
|
|
|
|
|
|
|
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed |
391
|
|
|
|
|
|
|
|
392
|
|
|
|
|
|
|
|
393
|
|
|
|
|
|
|
=back |
394
|
|
|
|
|
|
|
|
395
|
|
|
|
|
|
|
=item C<nok> hash |
396
|
|
|
|
|
|
|
|
397
|
|
|
|
|
|
|
Tipping configuration for NOK |
398
|
|
|
|
|
|
|
|
399
|
|
|
|
|
|
|
=over 8 |
400
|
|
|
|
|
|
|
|
401
|
|
|
|
|
|
|
=item C<fixed_amounts> array |
402
|
|
|
|
|
|
|
|
403
|
|
|
|
|
|
|
Fixed amounts displayed when collecting a tip |
404
|
|
|
|
|
|
|
|
405
|
|
|
|
|
|
|
=item C<percentages> array |
406
|
|
|
|
|
|
|
|
407
|
|
|
|
|
|
|
Percentages displayed when collecting a tip |
408
|
|
|
|
|
|
|
|
409
|
|
|
|
|
|
|
=item C<smart_tip_threshold> integer |
410
|
|
|
|
|
|
|
|
411
|
|
|
|
|
|
|
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed |
412
|
|
|
|
|
|
|
|
413
|
|
|
|
|
|
|
|
414
|
|
|
|
|
|
|
=back |
415
|
|
|
|
|
|
|
|
416
|
|
|
|
|
|
|
=item C<nzd> hash |
417
|
|
|
|
|
|
|
|
418
|
|
|
|
|
|
|
Tipping configuration for NZD |
419
|
|
|
|
|
|
|
|
420
|
|
|
|
|
|
|
=over 8 |
421
|
|
|
|
|
|
|
|
422
|
|
|
|
|
|
|
=item C<fixed_amounts> array |
423
|
|
|
|
|
|
|
|
424
|
|
|
|
|
|
|
Fixed amounts displayed when collecting a tip |
425
|
|
|
|
|
|
|
|
426
|
|
|
|
|
|
|
=item C<percentages> array |
427
|
|
|
|
|
|
|
|
428
|
|
|
|
|
|
|
Percentages displayed when collecting a tip |
429
|
|
|
|
|
|
|
|
430
|
|
|
|
|
|
|
=item C<smart_tip_threshold> integer |
431
|
|
|
|
|
|
|
|
432
|
|
|
|
|
|
|
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed |
433
|
|
|
|
|
|
|
|
434
|
|
|
|
|
|
|
|
435
|
|
|
|
|
|
|
=back |
436
|
|
|
|
|
|
|
|
437
|
|
|
|
|
|
|
=item C<sek> hash |
438
|
|
|
|
|
|
|
|
439
|
|
|
|
|
|
|
Tipping configuration for SEK |
440
|
|
|
|
|
|
|
|
441
|
|
|
|
|
|
|
=over 8 |
442
|
|
|
|
|
|
|
|
443
|
|
|
|
|
|
|
=item C<fixed_amounts> array |
444
|
|
|
|
|
|
|
|
445
|
|
|
|
|
|
|
Fixed amounts displayed when collecting a tip |
446
|
|
|
|
|
|
|
|
447
|
|
|
|
|
|
|
=item C<percentages> array |
448
|
|
|
|
|
|
|
|
449
|
|
|
|
|
|
|
Percentages displayed when collecting a tip |
450
|
|
|
|
|
|
|
|
451
|
|
|
|
|
|
|
=item C<smart_tip_threshold> integer |
452
|
|
|
|
|
|
|
|
453
|
|
|
|
|
|
|
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed |
454
|
|
|
|
|
|
|
|
455
|
|
|
|
|
|
|
|
456
|
|
|
|
|
|
|
=back |
457
|
|
|
|
|
|
|
|
458
|
|
|
|
|
|
|
=item C<sgd> hash |
459
|
|
|
|
|
|
|
|
460
|
|
|
|
|
|
|
Tipping configuration for SGD |
461
|
|
|
|
|
|
|
|
462
|
|
|
|
|
|
|
=over 8 |
463
|
|
|
|
|
|
|
|
464
|
|
|
|
|
|
|
=item C<fixed_amounts> array |
465
|
|
|
|
|
|
|
|
466
|
|
|
|
|
|
|
Fixed amounts displayed when collecting a tip |
467
|
|
|
|
|
|
|
|
468
|
|
|
|
|
|
|
=item C<percentages> array |
469
|
|
|
|
|
|
|
|
470
|
|
|
|
|
|
|
Percentages displayed when collecting a tip |
471
|
|
|
|
|
|
|
|
472
|
|
|
|
|
|
|
=item C<smart_tip_threshold> integer |
473
|
|
|
|
|
|
|
|
474
|
|
|
|
|
|
|
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed |
475
|
|
|
|
|
|
|
|
476
|
|
|
|
|
|
|
|
477
|
|
|
|
|
|
|
=back |
478
|
|
|
|
|
|
|
|
479
|
|
|
|
|
|
|
=item C<usd> hash |
480
|
|
|
|
|
|
|
|
481
|
|
|
|
|
|
|
Tipping configuration for USD |
482
|
|
|
|
|
|
|
|
483
|
|
|
|
|
|
|
=over 8 |
484
|
|
|
|
|
|
|
|
485
|
|
|
|
|
|
|
=item C<fixed_amounts> array |
486
|
|
|
|
|
|
|
|
487
|
|
|
|
|
|
|
Fixed amounts displayed when collecting a tip |
488
|
|
|
|
|
|
|
|
489
|
|
|
|
|
|
|
=item C<percentages> array |
490
|
|
|
|
|
|
|
|
491
|
|
|
|
|
|
|
Percentages displayed when collecting a tip |
492
|
|
|
|
|
|
|
|
493
|
|
|
|
|
|
|
=item C<smart_tip_threshold> integer |
494
|
|
|
|
|
|
|
|
495
|
|
|
|
|
|
|
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed |
496
|
|
|
|
|
|
|
|
497
|
|
|
|
|
|
|
|
498
|
|
|
|
|
|
|
=back |
499
|
|
|
|
|
|
|
|
500
|
|
|
|
|
|
|
=back |
501
|
|
|
|
|
|
|
|
502
|
|
|
|
|
|
|
=head2 verifone_p400 hash |
503
|
|
|
|
|
|
|
|
504
|
|
|
|
|
|
|
An object containing device type specific settings for Verifone P400 |
505
|
|
|
|
|
|
|
|
506
|
|
|
|
|
|
|
It has the following properties: |
507
|
|
|
|
|
|
|
|
508
|
|
|
|
|
|
|
=over 4 |
509
|
|
|
|
|
|
|
|
510
|
|
|
|
|
|
|
=item C<splashscreen> string expandable |
511
|
|
|
|
|
|
|
|
512
|
|
|
|
|
|
|
A File ID representing an image you would like displayed on the reader. |
513
|
|
|
|
|
|
|
|
514
|
|
|
|
|
|
|
When expanded this is an L<Net::API::Stripe::File> object. |
515
|
|
|
|
|
|
|
|
516
|
|
|
|
|
|
|
=back |
517
|
|
|
|
|
|
|
|
518
|
|
|
|
|
|
|
=head1 API SAMPLE |
519
|
|
|
|
|
|
|
|
520
|
|
|
|
|
|
|
[ |
521
|
|
|
|
|
|
|
{ |
522
|
|
|
|
|
|
|
"bbpos_wisepos_e" : { |
523
|
|
|
|
|
|
|
"splashscreen" : "file_1Le9F32eZvKYlo2CHWjaVfbW" |
524
|
|
|
|
|
|
|
}, |
525
|
|
|
|
|
|
|
"id" : "tmc_ElVUAjF8xXG3hj", |
526
|
|
|
|
|
|
|
"is_account_default" : 0, |
527
|
|
|
|
|
|
|
"livemode" : 0, |
528
|
|
|
|
|
|
|
"object" : "terminal.configuration" |
529
|
|
|
|
|
|
|
} |
530
|
|
|
|
|
|
|
] |
531
|
|
|
|
|
|
|
|
532
|
|
|
|
|
|
|
=head1 HISTORY |
533
|
|
|
|
|
|
|
|
534
|
|
|
|
|
|
|
=head2 v0.1.0 |
535
|
|
|
|
|
|
|
|
536
|
|
|
|
|
|
|
Initial version |
537
|
|
|
|
|
|
|
|
538
|
|
|
|
|
|
|
=head1 AUTHOR |
539
|
|
|
|
|
|
|
|
540
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
541
|
|
|
|
|
|
|
|
542
|
|
|
|
|
|
|
=head1 SEE ALSO |
543
|
|
|
|
|
|
|
|
544
|
|
|
|
|
|
|
L<Stripe API documentation|https://stripe.com/docs/api/terminal/configuration> |
545
|
|
|
|
|
|
|
|
546
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
547
|
|
|
|
|
|
|
|
548
|
|
|
|
|
|
|
Copyright (c) 2019-2022 DEGUEST Pte. Ltd. |
549
|
|
|
|
|
|
|
|
550
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
551
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
552
|
|
|
|
|
|
|
|
553
|
|
|
|
|
|
|
=cut |