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

stripe / stripe-java / #16562

18 Oct 2024 07:00PM UTC coverage: 12.614% (-0.1%) from 12.74%
#16562

push

github

web-flow
Merge pull request #1897 from stripe/latest-codegen-beta

Update generated code for beta

49 of 1978 new or added lines in 47 files covered. (2.48%)

68 existing lines in 20 files now uncovered.

18798 of 149026 relevant lines covered (12.61%)

0.13 hits per line

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

8.56
/src/main/java/com/stripe/param/terminal/ConfigurationUpdateParams.java
1
// File generated from our OpenAPI spec
2
package com.stripe.param.terminal;
3

4
import com.google.gson.annotations.SerializedName;
5
import com.stripe.net.ApiRequestParams;
6
import com.stripe.param.common.EmptyParam;
7
import java.util.ArrayList;
8
import java.util.HashMap;
9
import java.util.List;
10
import java.util.Map;
11
import lombok.Getter;
12

13
@Getter
14
public class ConfigurationUpdateParams extends ApiRequestParams {
15
  /** An object containing device type specific settings for BBPOS WisePOS E readers. */
16
  @SerializedName("bbpos_wisepos_e")
17
  Object bbposWiseposE;
18

19
  /** Specifies which fields in the response should be expanded. */
20
  @SerializedName("expand")
21
  List<String> expand;
22

23
  /**
24
   * Map of extra parameters for custom features not available in this client library. The content
25
   * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
26
   * key/value pair is serialized as if the key is a root-level field (serialized) name in this
27
   * param object. Effectively, this map is flattened to its parent instance.
28
   */
29
  @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
30
  Map<String, Object> extraParams;
31

32
  /** Name of the configuration. */
33
  @SerializedName("name")
34
  Object name;
35

36
  /** Configurations for collecting transactions offline. */
37
  @SerializedName("offline")
38
  Object offline;
39

40
  /** Reboot time settings for readers that support customized reboot time configuration. */
41
  @SerializedName("reboot_window")
42
  Object rebootWindow;
43

44
  /** An object containing device type specific settings for Stripe S700 readers. */
45
  @SerializedName("stripe_s700")
46
  Object stripeS700;
47

48
  /** Tipping configurations for readers supporting on-reader tips. */
49
  @SerializedName("tipping")
50
  Object tipping;
51

52
  /** An object containing device type specific settings for Verifone P400 readers. */
53
  @SerializedName("verifone_p400")
54
  Object verifoneP400;
55

56
  private ConfigurationUpdateParams(
57
      Object bbposWiseposE,
58
      List<String> expand,
59
      Map<String, Object> extraParams,
60
      Object name,
61
      Object offline,
62
      Object rebootWindow,
63
      Object stripeS700,
64
      Object tipping,
65
      Object verifoneP400) {
1✔
66
    this.bbposWiseposE = bbposWiseposE;
1✔
67
    this.expand = expand;
1✔
68
    this.extraParams = extraParams;
1✔
69
    this.name = name;
1✔
70
    this.offline = offline;
1✔
71
    this.rebootWindow = rebootWindow;
1✔
72
    this.stripeS700 = stripeS700;
1✔
73
    this.tipping = tipping;
1✔
74
    this.verifoneP400 = verifoneP400;
1✔
75
  }
1✔
76

77
  public static Builder builder() {
78
    return new Builder();
1✔
79
  }
80

81
  public static class Builder {
1✔
82
    private Object bbposWiseposE;
83

84
    private List<String> expand;
85

86
    private Map<String, Object> extraParams;
87

88
    private Object name;
89

90
    private Object offline;
91

92
    private Object rebootWindow;
93

94
    private Object stripeS700;
95

96
    private Object tipping;
97

98
    private Object verifoneP400;
99

100
    /** Finalize and obtain parameter instance from this builder. */
101
    public ConfigurationUpdateParams build() {
102
      return new ConfigurationUpdateParams(
1✔
103
          this.bbposWiseposE,
104
          this.expand,
105
          this.extraParams,
106
          this.name,
107
          this.offline,
108
          this.rebootWindow,
109
          this.stripeS700,
110
          this.tipping,
111
          this.verifoneP400);
112
    }
113

114
    /** An object containing device type specific settings for BBPOS WisePOS E readers. */
115
    public Builder setBbposWiseposE(ConfigurationUpdateParams.BbposWiseposE bbposWiseposE) {
116
      this.bbposWiseposE = bbposWiseposE;
1✔
117
      return this;
1✔
118
    }
119

120
    /** An object containing device type specific settings for BBPOS WisePOS E readers. */
121
    public Builder setBbposWiseposE(EmptyParam bbposWiseposE) {
122
      this.bbposWiseposE = bbposWiseposE;
×
123
      return this;
×
124
    }
125

126
    /**
127
     * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
128
     * subsequent calls adds additional elements to the original list. See {@link
129
     * ConfigurationUpdateParams#expand} for the field documentation.
130
     */
131
    public Builder addExpand(String element) {
132
      if (this.expand == null) {
×
133
        this.expand = new ArrayList<>();
×
134
      }
135
      this.expand.add(element);
×
136
      return this;
×
137
    }
138

139
    /**
140
     * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
141
     * subsequent calls adds additional elements to the original list. See {@link
142
     * ConfigurationUpdateParams#expand} for the field documentation.
143
     */
144
    public Builder addAllExpand(List<String> elements) {
145
      if (this.expand == null) {
×
146
        this.expand = new ArrayList<>();
×
147
      }
148
      this.expand.addAll(elements);
×
149
      return this;
×
150
    }
151

152
    /**
153
     * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
154
     * call, and subsequent calls add additional key/value pairs to the original map. See {@link
155
     * ConfigurationUpdateParams#extraParams} for the field documentation.
156
     */
157
    public Builder putExtraParam(String key, Object value) {
158
      if (this.extraParams == null) {
×
159
        this.extraParams = new HashMap<>();
×
160
      }
161
      this.extraParams.put(key, value);
×
162
      return this;
×
163
    }
164

165
    /**
166
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
167
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
168
     * See {@link ConfigurationUpdateParams#extraParams} for the field documentation.
169
     */
170
    public Builder putAllExtraParam(Map<String, Object> map) {
171
      if (this.extraParams == null) {
×
172
        this.extraParams = new HashMap<>();
×
173
      }
174
      this.extraParams.putAll(map);
×
175
      return this;
×
176
    }
177

178
    /** Name of the configuration. */
179
    public Builder setName(String name) {
180
      this.name = name;
×
181
      return this;
×
182
    }
183

184
    /** Name of the configuration. */
185
    public Builder setName(EmptyParam name) {
186
      this.name = name;
×
187
      return this;
×
188
    }
189

190
    /** Configurations for collecting transactions offline. */
191
    public Builder setOffline(ConfigurationUpdateParams.Offline offline) {
192
      this.offline = offline;
×
193
      return this;
×
194
    }
195

196
    /** Configurations for collecting transactions offline. */
197
    public Builder setOffline(EmptyParam offline) {
198
      this.offline = offline;
×
199
      return this;
×
200
    }
201

202
    /** Reboot time settings for readers that support customized reboot time configuration. */
203
    public Builder setRebootWindow(ConfigurationUpdateParams.RebootWindow rebootWindow) {
204
      this.rebootWindow = rebootWindow;
×
205
      return this;
×
206
    }
207

208
    /** Reboot time settings for readers that support customized reboot time configuration. */
209
    public Builder setRebootWindow(EmptyParam rebootWindow) {
210
      this.rebootWindow = rebootWindow;
×
211
      return this;
×
212
    }
213

214
    /** An object containing device type specific settings for Stripe S700 readers. */
215
    public Builder setStripeS700(ConfigurationUpdateParams.StripeS700 stripeS700) {
216
      this.stripeS700 = stripeS700;
×
217
      return this;
×
218
    }
219

220
    /** An object containing device type specific settings for Stripe S700 readers. */
221
    public Builder setStripeS700(EmptyParam stripeS700) {
222
      this.stripeS700 = stripeS700;
×
223
      return this;
×
224
    }
225

226
    /** Tipping configurations for readers supporting on-reader tips. */
227
    public Builder setTipping(ConfigurationUpdateParams.Tipping tipping) {
228
      this.tipping = tipping;
1✔
229
      return this;
1✔
230
    }
231

232
    /** Tipping configurations for readers supporting on-reader tips. */
233
    public Builder setTipping(EmptyParam tipping) {
234
      this.tipping = tipping;
×
235
      return this;
×
236
    }
237

238
    /** An object containing device type specific settings for Verifone P400 readers. */
239
    public Builder setVerifoneP400(ConfigurationUpdateParams.VerifoneP400 verifoneP400) {
240
      this.verifoneP400 = verifoneP400;
×
241
      return this;
×
242
    }
243

244
    /** An object containing device type specific settings for Verifone P400 readers. */
245
    public Builder setVerifoneP400(EmptyParam verifoneP400) {
246
      this.verifoneP400 = verifoneP400;
×
247
      return this;
×
248
    }
249
  }
250

251
  @Getter
252
  public static class BbposWiseposE {
253
    /**
254
     * Map of extra parameters for custom features not available in this client library. The content
255
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
256
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
257
     * param object. Effectively, this map is flattened to its parent instance.
258
     */
259
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
260
    Map<String, Object> extraParams;
261

262
    /** A File ID representing an image you would like displayed on the reader. */
263
    @SerializedName("splashscreen")
264
    Object splashscreen;
265

266
    private BbposWiseposE(Map<String, Object> extraParams, Object splashscreen) {
1✔
267
      this.extraParams = extraParams;
1✔
268
      this.splashscreen = splashscreen;
1✔
269
    }
1✔
270

271
    public static Builder builder() {
272
      return new Builder();
1✔
273
    }
274

275
    public static class Builder {
1✔
276
      private Map<String, Object> extraParams;
277

278
      private Object splashscreen;
279

280
      /** Finalize and obtain parameter instance from this builder. */
281
      public ConfigurationUpdateParams.BbposWiseposE build() {
282
        return new ConfigurationUpdateParams.BbposWiseposE(this.extraParams, this.splashscreen);
1✔
283
      }
284

285
      /**
286
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
287
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
288
       * ConfigurationUpdateParams.BbposWiseposE#extraParams} for the field documentation.
289
       */
290
      public Builder putExtraParam(String key, Object value) {
291
        if (this.extraParams == null) {
×
292
          this.extraParams = new HashMap<>();
×
293
        }
294
        this.extraParams.put(key, value);
×
295
        return this;
×
296
      }
297

298
      /**
299
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
300
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
301
       * See {@link ConfigurationUpdateParams.BbposWiseposE#extraParams} for the field
302
       * documentation.
303
       */
304
      public Builder putAllExtraParam(Map<String, Object> map) {
305
        if (this.extraParams == null) {
×
306
          this.extraParams = new HashMap<>();
×
307
        }
308
        this.extraParams.putAll(map);
×
309
        return this;
×
310
      }
311

312
      /** A File ID representing an image you would like displayed on the reader. */
313
      public Builder setSplashscreen(String splashscreen) {
314
        this.splashscreen = splashscreen;
1✔
315
        return this;
1✔
316
      }
317

318
      /** A File ID representing an image you would like displayed on the reader. */
319
      public Builder setSplashscreen(EmptyParam splashscreen) {
320
        this.splashscreen = splashscreen;
×
321
        return this;
×
322
      }
323
    }
324
  }
325

326
  @Getter
327
  public static class Offline {
328
    /**
329
     * <strong>Required.</strong> Determines whether to allow transactions to be collected while
330
     * reader is offline. Defaults to false.
331
     */
332
    @SerializedName("enabled")
333
    Boolean enabled;
334

335
    /**
336
     * Map of extra parameters for custom features not available in this client library. The content
337
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
338
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
339
     * param object. Effectively, this map is flattened to its parent instance.
340
     */
341
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
342
    Map<String, Object> extraParams;
343

344
    private Offline(Boolean enabled, Map<String, Object> extraParams) {
×
345
      this.enabled = enabled;
×
346
      this.extraParams = extraParams;
×
347
    }
×
348

349
    public static Builder builder() {
350
      return new Builder();
×
351
    }
352

353
    public static class Builder {
×
354
      private Boolean enabled;
355

356
      private Map<String, Object> extraParams;
357

358
      /** Finalize and obtain parameter instance from this builder. */
359
      public ConfigurationUpdateParams.Offline build() {
360
        return new ConfigurationUpdateParams.Offline(this.enabled, this.extraParams);
×
361
      }
362

363
      /**
364
       * <strong>Required.</strong> Determines whether to allow transactions to be collected while
365
       * reader is offline. Defaults to false.
366
       */
367
      public Builder setEnabled(Boolean enabled) {
368
        this.enabled = enabled;
×
369
        return this;
×
370
      }
371

372
      /**
373
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
374
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
375
       * ConfigurationUpdateParams.Offline#extraParams} for the field documentation.
376
       */
377
      public Builder putExtraParam(String key, Object value) {
378
        if (this.extraParams == null) {
×
379
          this.extraParams = new HashMap<>();
×
380
        }
381
        this.extraParams.put(key, value);
×
382
        return this;
×
383
      }
384

385
      /**
386
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
387
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
388
       * See {@link ConfigurationUpdateParams.Offline#extraParams} for the field documentation.
389
       */
390
      public Builder putAllExtraParam(Map<String, Object> map) {
391
        if (this.extraParams == null) {
×
392
          this.extraParams = new HashMap<>();
×
393
        }
394
        this.extraParams.putAll(map);
×
395
        return this;
×
396
      }
397
    }
398
  }
399

400
  @Getter
401
  public static class RebootWindow {
402
    /**
403
     * <strong>Required.</strong> Integer between 0 to 23 that represents the end hour of the reboot
404
     * time window. The value must be different than the start_hour.
405
     */
406
    @SerializedName("end_hour")
407
    Long endHour;
408

409
    /**
410
     * Map of extra parameters for custom features not available in this client library. The content
411
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
412
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
413
     * param object. Effectively, this map is flattened to its parent instance.
414
     */
415
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
416
    Map<String, Object> extraParams;
417

418
    /**
419
     * <strong>Required.</strong> Integer between 0 to 23 that represents the start hour of the
420
     * reboot time window.
421
     */
422
    @SerializedName("start_hour")
423
    Long startHour;
424

425
    private RebootWindow(Long endHour, Map<String, Object> extraParams, Long startHour) {
×
426
      this.endHour = endHour;
×
427
      this.extraParams = extraParams;
×
428
      this.startHour = startHour;
×
429
    }
×
430

431
    public static Builder builder() {
432
      return new Builder();
×
433
    }
434

435
    public static class Builder {
×
436
      private Long endHour;
437

438
      private Map<String, Object> extraParams;
439

440
      private Long startHour;
441

442
      /** Finalize and obtain parameter instance from this builder. */
443
      public ConfigurationUpdateParams.RebootWindow build() {
444
        return new ConfigurationUpdateParams.RebootWindow(
×
445
            this.endHour, this.extraParams, this.startHour);
446
      }
447

448
      /**
449
       * <strong>Required.</strong> Integer between 0 to 23 that represents the end hour of the
450
       * reboot time window. The value must be different than the start_hour.
451
       */
452
      public Builder setEndHour(Long endHour) {
453
        this.endHour = endHour;
×
454
        return this;
×
455
      }
456

457
      /**
458
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
459
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
460
       * ConfigurationUpdateParams.RebootWindow#extraParams} for the field documentation.
461
       */
462
      public Builder putExtraParam(String key, Object value) {
463
        if (this.extraParams == null) {
×
464
          this.extraParams = new HashMap<>();
×
465
        }
466
        this.extraParams.put(key, value);
×
467
        return this;
×
468
      }
469

470
      /**
471
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
472
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
473
       * See {@link ConfigurationUpdateParams.RebootWindow#extraParams} for the field documentation.
474
       */
475
      public Builder putAllExtraParam(Map<String, Object> map) {
476
        if (this.extraParams == null) {
×
477
          this.extraParams = new HashMap<>();
×
478
        }
479
        this.extraParams.putAll(map);
×
480
        return this;
×
481
      }
482

483
      /**
484
       * <strong>Required.</strong> Integer between 0 to 23 that represents the start hour of the
485
       * reboot time window.
486
       */
487
      public Builder setStartHour(Long startHour) {
488
        this.startHour = startHour;
×
489
        return this;
×
490
      }
491
    }
492
  }
493

494
  @Getter
495
  public static class StripeS700 {
496
    /**
497
     * Map of extra parameters for custom features not available in this client library. The content
498
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
499
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
500
     * param object. Effectively, this map is flattened to its parent instance.
501
     */
502
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
503
    Map<String, Object> extraParams;
504

505
    /** A File ID representing an image you would like displayed on the reader. */
506
    @SerializedName("splashscreen")
507
    Object splashscreen;
508

509
    private StripeS700(Map<String, Object> extraParams, Object splashscreen) {
×
510
      this.extraParams = extraParams;
×
511
      this.splashscreen = splashscreen;
×
512
    }
×
513

514
    public static Builder builder() {
515
      return new Builder();
×
516
    }
517

518
    public static class Builder {
×
519
      private Map<String, Object> extraParams;
520

521
      private Object splashscreen;
522

523
      /** Finalize and obtain parameter instance from this builder. */
524
      public ConfigurationUpdateParams.StripeS700 build() {
525
        return new ConfigurationUpdateParams.StripeS700(this.extraParams, this.splashscreen);
×
526
      }
527

528
      /**
529
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
530
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
531
       * ConfigurationUpdateParams.StripeS700#extraParams} for the field documentation.
532
       */
533
      public Builder putExtraParam(String key, Object value) {
534
        if (this.extraParams == null) {
×
535
          this.extraParams = new HashMap<>();
×
536
        }
537
        this.extraParams.put(key, value);
×
538
        return this;
×
539
      }
540

541
      /**
542
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
543
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
544
       * See {@link ConfigurationUpdateParams.StripeS700#extraParams} for the field documentation.
545
       */
546
      public Builder putAllExtraParam(Map<String, Object> map) {
547
        if (this.extraParams == null) {
×
548
          this.extraParams = new HashMap<>();
×
549
        }
550
        this.extraParams.putAll(map);
×
551
        return this;
×
552
      }
553

554
      /** A File ID representing an image you would like displayed on the reader. */
555
      public Builder setSplashscreen(String splashscreen) {
556
        this.splashscreen = splashscreen;
×
557
        return this;
×
558
      }
559

560
      /** A File ID representing an image you would like displayed on the reader. */
561
      public Builder setSplashscreen(EmptyParam splashscreen) {
562
        this.splashscreen = splashscreen;
×
563
        return this;
×
564
      }
565
    }
566
  }
567

568
  @Getter
569
  public static class Tipping {
570
    /** Tipping configuration for AUD. */
571
    @SerializedName("aud")
572
    Aud aud;
573

574
    /** Tipping configuration for CAD. */
575
    @SerializedName("cad")
576
    Cad cad;
577

578
    /** Tipping configuration for CHF. */
579
    @SerializedName("chf")
580
    Chf chf;
581

582
    /** Tipping configuration for CZK. */
583
    @SerializedName("czk")
584
    Czk czk;
585

586
    /** Tipping configuration for DKK. */
587
    @SerializedName("dkk")
588
    Dkk dkk;
589

590
    /** Tipping configuration for EUR. */
591
    @SerializedName("eur")
592
    Eur eur;
593

594
    /**
595
     * Map of extra parameters for custom features not available in this client library. The content
596
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
597
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
598
     * param object. Effectively, this map is flattened to its parent instance.
599
     */
600
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
601
    Map<String, Object> extraParams;
602

603
    /** Tipping configuration for GBP. */
604
    @SerializedName("gbp")
605
    Gbp gbp;
606

607
    /** Tipping configuration for HKD. */
608
    @SerializedName("hkd")
609
    Hkd hkd;
610

611
    /** Tipping configuration for MYR. */
612
    @SerializedName("myr")
613
    Myr myr;
614

615
    /** Tipping configuration for NOK. */
616
    @SerializedName("nok")
617
    Nok nok;
618

619
    /** Tipping configuration for NZD. */
620
    @SerializedName("nzd")
621
    Nzd nzd;
622

623
    /** Tipping configuration for PLN. */
624
    @SerializedName("pln")
625
    Pln pln;
626

627
    /** Tipping configuration for SEK. */
628
    @SerializedName("sek")
629
    Sek sek;
630

631
    /** Tipping configuration for SGD. */
632
    @SerializedName("sgd")
633
    Sgd sgd;
634

635
    /** Tipping configuration for USD. */
636
    @SerializedName("usd")
637
    Usd usd;
638

639
    private Tipping(
640
        Aud aud,
641
        Cad cad,
642
        Chf chf,
643
        Czk czk,
644
        Dkk dkk,
645
        Eur eur,
646
        Map<String, Object> extraParams,
647
        Gbp gbp,
648
        Hkd hkd,
649
        Myr myr,
650
        Nok nok,
651
        Nzd nzd,
652
        Pln pln,
653
        Sek sek,
654
        Sgd sgd,
655
        Usd usd) {
1✔
656
      this.aud = aud;
1✔
657
      this.cad = cad;
1✔
658
      this.chf = chf;
1✔
659
      this.czk = czk;
1✔
660
      this.dkk = dkk;
1✔
661
      this.eur = eur;
1✔
662
      this.extraParams = extraParams;
1✔
663
      this.gbp = gbp;
1✔
664
      this.hkd = hkd;
1✔
665
      this.myr = myr;
1✔
666
      this.nok = nok;
1✔
667
      this.nzd = nzd;
1✔
668
      this.pln = pln;
1✔
669
      this.sek = sek;
1✔
670
      this.sgd = sgd;
1✔
671
      this.usd = usd;
1✔
672
    }
1✔
673

674
    public static Builder builder() {
675
      return new Builder();
1✔
676
    }
677

678
    public static class Builder {
1✔
679
      private Aud aud;
680

681
      private Cad cad;
682

683
      private Chf chf;
684

685
      private Czk czk;
686

687
      private Dkk dkk;
688

689
      private Eur eur;
690

691
      private Map<String, Object> extraParams;
692

693
      private Gbp gbp;
694

695
      private Hkd hkd;
696

697
      private Myr myr;
698

699
      private Nok nok;
700

701
      private Nzd nzd;
702

703
      private Pln pln;
704

705
      private Sek sek;
706

707
      private Sgd sgd;
708

709
      private Usd usd;
710

711
      /** Finalize and obtain parameter instance from this builder. */
712
      public ConfigurationUpdateParams.Tipping build() {
713
        return new ConfigurationUpdateParams.Tipping(
1✔
714
            this.aud,
715
            this.cad,
716
            this.chf,
717
            this.czk,
718
            this.dkk,
719
            this.eur,
720
            this.extraParams,
721
            this.gbp,
722
            this.hkd,
723
            this.myr,
724
            this.nok,
725
            this.nzd,
726
            this.pln,
727
            this.sek,
728
            this.sgd,
729
            this.usd);
730
      }
731

732
      /** Tipping configuration for AUD. */
733
      public Builder setAud(ConfigurationUpdateParams.Tipping.Aud aud) {
734
        this.aud = aud;
×
735
        return this;
×
736
      }
737

738
      /** Tipping configuration for CAD. */
739
      public Builder setCad(ConfigurationUpdateParams.Tipping.Cad cad) {
740
        this.cad = cad;
×
741
        return this;
×
742
      }
743

744
      /** Tipping configuration for CHF. */
745
      public Builder setChf(ConfigurationUpdateParams.Tipping.Chf chf) {
746
        this.chf = chf;
×
747
        return this;
×
748
      }
749

750
      /** Tipping configuration for CZK. */
751
      public Builder setCzk(ConfigurationUpdateParams.Tipping.Czk czk) {
752
        this.czk = czk;
×
753
        return this;
×
754
      }
755

756
      /** Tipping configuration for DKK. */
757
      public Builder setDkk(ConfigurationUpdateParams.Tipping.Dkk dkk) {
758
        this.dkk = dkk;
×
759
        return this;
×
760
      }
761

762
      /** Tipping configuration for EUR. */
763
      public Builder setEur(ConfigurationUpdateParams.Tipping.Eur eur) {
764
        this.eur = eur;
×
765
        return this;
×
766
      }
767

768
      /**
769
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
770
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
771
       * ConfigurationUpdateParams.Tipping#extraParams} for the field documentation.
772
       */
773
      public Builder putExtraParam(String key, Object value) {
774
        if (this.extraParams == null) {
×
775
          this.extraParams = new HashMap<>();
×
776
        }
777
        this.extraParams.put(key, value);
×
778
        return this;
×
779
      }
780

781
      /**
782
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
783
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
784
       * See {@link ConfigurationUpdateParams.Tipping#extraParams} for the field documentation.
785
       */
786
      public Builder putAllExtraParam(Map<String, Object> map) {
787
        if (this.extraParams == null) {
×
788
          this.extraParams = new HashMap<>();
×
789
        }
790
        this.extraParams.putAll(map);
×
791
        return this;
×
792
      }
793

794
      /** Tipping configuration for GBP. */
795
      public Builder setGbp(ConfigurationUpdateParams.Tipping.Gbp gbp) {
796
        this.gbp = gbp;
×
797
        return this;
×
798
      }
799

800
      /** Tipping configuration for HKD. */
801
      public Builder setHkd(ConfigurationUpdateParams.Tipping.Hkd hkd) {
802
        this.hkd = hkd;
×
803
        return this;
×
804
      }
805

806
      /** Tipping configuration for MYR. */
807
      public Builder setMyr(ConfigurationUpdateParams.Tipping.Myr myr) {
808
        this.myr = myr;
×
809
        return this;
×
810
      }
811

812
      /** Tipping configuration for NOK. */
813
      public Builder setNok(ConfigurationUpdateParams.Tipping.Nok nok) {
814
        this.nok = nok;
×
815
        return this;
×
816
      }
817

818
      /** Tipping configuration for NZD. */
819
      public Builder setNzd(ConfigurationUpdateParams.Tipping.Nzd nzd) {
820
        this.nzd = nzd;
×
821
        return this;
×
822
      }
823

824
      /** Tipping configuration for PLN. */
825
      public Builder setPln(ConfigurationUpdateParams.Tipping.Pln pln) {
NEW
826
        this.pln = pln;
×
NEW
827
        return this;
×
828
      }
829

830
      /** Tipping configuration for SEK. */
831
      public Builder setSek(ConfigurationUpdateParams.Tipping.Sek sek) {
832
        this.sek = sek;
×
833
        return this;
×
834
      }
835

836
      /** Tipping configuration for SGD. */
837
      public Builder setSgd(ConfigurationUpdateParams.Tipping.Sgd sgd) {
838
        this.sgd = sgd;
×
839
        return this;
×
840
      }
841

842
      /** Tipping configuration for USD. */
843
      public Builder setUsd(ConfigurationUpdateParams.Tipping.Usd usd) {
844
        this.usd = usd;
1✔
845
        return this;
1✔
846
      }
847
    }
848

849
    @Getter
850
    public static class Aud {
851
      /**
852
       * Map of extra parameters for custom features not available in this client library. The
853
       * content in this map is not serialized under this field's {@code @SerializedName} value.
854
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
855
       * name in this param object. Effectively, this map is flattened to its parent instance.
856
       */
857
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
858
      Map<String, Object> extraParams;
859

860
      /** Fixed amounts displayed when collecting a tip. */
861
      @SerializedName("fixed_amounts")
862
      List<Long> fixedAmounts;
863

864
      /** Percentages displayed when collecting a tip. */
865
      @SerializedName("percentages")
866
      List<Long> percentages;
867

868
      /**
869
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
870
       * displayed.
871
       */
872
      @SerializedName("smart_tip_threshold")
873
      Long smartTipThreshold;
874

875
      private Aud(
876
          Map<String, Object> extraParams,
877
          List<Long> fixedAmounts,
878
          List<Long> percentages,
879
          Long smartTipThreshold) {
×
880
        this.extraParams = extraParams;
×
881
        this.fixedAmounts = fixedAmounts;
×
882
        this.percentages = percentages;
×
883
        this.smartTipThreshold = smartTipThreshold;
×
884
      }
×
885

886
      public static Builder builder() {
887
        return new Builder();
×
888
      }
889

890
      public static class Builder {
×
891
        private Map<String, Object> extraParams;
892

893
        private List<Long> fixedAmounts;
894

895
        private List<Long> percentages;
896

897
        private Long smartTipThreshold;
898

899
        /** Finalize and obtain parameter instance from this builder. */
900
        public ConfigurationUpdateParams.Tipping.Aud build() {
901
          return new ConfigurationUpdateParams.Tipping.Aud(
×
902
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
903
        }
904

905
        /**
906
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
907
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
908
         * map. See {@link ConfigurationUpdateParams.Tipping.Aud#extraParams} for the field
909
         * documentation.
910
         */
911
        public Builder putExtraParam(String key, Object value) {
912
          if (this.extraParams == null) {
×
913
            this.extraParams = new HashMap<>();
×
914
          }
915
          this.extraParams.put(key, value);
×
916
          return this;
×
917
        }
918

919
        /**
920
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
921
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
922
         * map. See {@link ConfigurationUpdateParams.Tipping.Aud#extraParams} for the field
923
         * documentation.
924
         */
925
        public Builder putAllExtraParam(Map<String, Object> map) {
926
          if (this.extraParams == null) {
×
927
            this.extraParams = new HashMap<>();
×
928
          }
929
          this.extraParams.putAll(map);
×
930
          return this;
×
931
        }
932

933
        /**
934
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
935
         * call, and subsequent calls adds additional elements to the original list. See {@link
936
         * ConfigurationUpdateParams.Tipping.Aud#fixedAmounts} for the field documentation.
937
         */
938
        public Builder addFixedAmount(Long element) {
939
          if (this.fixedAmounts == null) {
×
940
            this.fixedAmounts = new ArrayList<>();
×
941
          }
942
          this.fixedAmounts.add(element);
×
943
          return this;
×
944
        }
945

946
        /**
947
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
948
         * call, and subsequent calls adds additional elements to the original list. See {@link
949
         * ConfigurationUpdateParams.Tipping.Aud#fixedAmounts} for the field documentation.
950
         */
951
        public Builder addAllFixedAmount(List<Long> elements) {
952
          if (this.fixedAmounts == null) {
×
953
            this.fixedAmounts = new ArrayList<>();
×
954
          }
955
          this.fixedAmounts.addAll(elements);
×
956
          return this;
×
957
        }
958

959
        /**
960
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
961
         * call, and subsequent calls adds additional elements to the original list. See {@link
962
         * ConfigurationUpdateParams.Tipping.Aud#percentages} for the field documentation.
963
         */
964
        public Builder addPercentage(Long element) {
965
          if (this.percentages == null) {
×
966
            this.percentages = new ArrayList<>();
×
967
          }
968
          this.percentages.add(element);
×
969
          return this;
×
970
        }
971

972
        /**
973
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
974
         * call, and subsequent calls adds additional elements to the original list. See {@link
975
         * ConfigurationUpdateParams.Tipping.Aud#percentages} for the field documentation.
976
         */
977
        public Builder addAllPercentage(List<Long> elements) {
978
          if (this.percentages == null) {
×
979
            this.percentages = new ArrayList<>();
×
980
          }
981
          this.percentages.addAll(elements);
×
982
          return this;
×
983
        }
984

985
        /**
986
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
987
         * displayed.
988
         */
989
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
990
          this.smartTipThreshold = smartTipThreshold;
×
991
          return this;
×
992
        }
993
      }
994
    }
995

996
    @Getter
997
    public static class Cad {
998
      /**
999
       * Map of extra parameters for custom features not available in this client library. The
1000
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1001
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1002
       * name in this param object. Effectively, this map is flattened to its parent instance.
1003
       */
1004
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1005
      Map<String, Object> extraParams;
1006

1007
      /** Fixed amounts displayed when collecting a tip. */
1008
      @SerializedName("fixed_amounts")
1009
      List<Long> fixedAmounts;
1010

1011
      /** Percentages displayed when collecting a tip. */
1012
      @SerializedName("percentages")
1013
      List<Long> percentages;
1014

1015
      /**
1016
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1017
       * displayed.
1018
       */
1019
      @SerializedName("smart_tip_threshold")
1020
      Long smartTipThreshold;
1021

1022
      private Cad(
1023
          Map<String, Object> extraParams,
1024
          List<Long> fixedAmounts,
1025
          List<Long> percentages,
1026
          Long smartTipThreshold) {
×
1027
        this.extraParams = extraParams;
×
1028
        this.fixedAmounts = fixedAmounts;
×
1029
        this.percentages = percentages;
×
1030
        this.smartTipThreshold = smartTipThreshold;
×
1031
      }
×
1032

1033
      public static Builder builder() {
1034
        return new Builder();
×
1035
      }
1036

1037
      public static class Builder {
×
1038
        private Map<String, Object> extraParams;
1039

1040
        private List<Long> fixedAmounts;
1041

1042
        private List<Long> percentages;
1043

1044
        private Long smartTipThreshold;
1045

1046
        /** Finalize and obtain parameter instance from this builder. */
1047
        public ConfigurationUpdateParams.Tipping.Cad build() {
1048
          return new ConfigurationUpdateParams.Tipping.Cad(
×
1049
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1050
        }
1051

1052
        /**
1053
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1054
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1055
         * map. See {@link ConfigurationUpdateParams.Tipping.Cad#extraParams} for the field
1056
         * documentation.
1057
         */
1058
        public Builder putExtraParam(String key, Object value) {
1059
          if (this.extraParams == null) {
×
1060
            this.extraParams = new HashMap<>();
×
1061
          }
1062
          this.extraParams.put(key, value);
×
1063
          return this;
×
1064
        }
1065

1066
        /**
1067
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1068
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1069
         * map. See {@link ConfigurationUpdateParams.Tipping.Cad#extraParams} for the field
1070
         * documentation.
1071
         */
1072
        public Builder putAllExtraParam(Map<String, Object> map) {
1073
          if (this.extraParams == null) {
×
1074
            this.extraParams = new HashMap<>();
×
1075
          }
1076
          this.extraParams.putAll(map);
×
1077
          return this;
×
1078
        }
1079

1080
        /**
1081
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1082
         * call, and subsequent calls adds additional elements to the original list. See {@link
1083
         * ConfigurationUpdateParams.Tipping.Cad#fixedAmounts} for the field documentation.
1084
         */
1085
        public Builder addFixedAmount(Long element) {
1086
          if (this.fixedAmounts == null) {
×
1087
            this.fixedAmounts = new ArrayList<>();
×
1088
          }
1089
          this.fixedAmounts.add(element);
×
1090
          return this;
×
1091
        }
1092

1093
        /**
1094
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1095
         * call, and subsequent calls adds additional elements to the original list. See {@link
1096
         * ConfigurationUpdateParams.Tipping.Cad#fixedAmounts} for the field documentation.
1097
         */
1098
        public Builder addAllFixedAmount(List<Long> elements) {
1099
          if (this.fixedAmounts == null) {
×
1100
            this.fixedAmounts = new ArrayList<>();
×
1101
          }
1102
          this.fixedAmounts.addAll(elements);
×
1103
          return this;
×
1104
        }
1105

1106
        /**
1107
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
1108
         * call, and subsequent calls adds additional elements to the original list. See {@link
1109
         * ConfigurationUpdateParams.Tipping.Cad#percentages} for the field documentation.
1110
         */
1111
        public Builder addPercentage(Long element) {
1112
          if (this.percentages == null) {
×
1113
            this.percentages = new ArrayList<>();
×
1114
          }
1115
          this.percentages.add(element);
×
1116
          return this;
×
1117
        }
1118

1119
        /**
1120
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
1121
         * call, and subsequent calls adds additional elements to the original list. See {@link
1122
         * ConfigurationUpdateParams.Tipping.Cad#percentages} for the field documentation.
1123
         */
1124
        public Builder addAllPercentage(List<Long> elements) {
1125
          if (this.percentages == null) {
×
1126
            this.percentages = new ArrayList<>();
×
1127
          }
1128
          this.percentages.addAll(elements);
×
1129
          return this;
×
1130
        }
1131

1132
        /**
1133
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1134
         * displayed.
1135
         */
1136
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1137
          this.smartTipThreshold = smartTipThreshold;
×
1138
          return this;
×
1139
        }
1140
      }
1141
    }
1142

1143
    @Getter
1144
    public static class Chf {
1145
      /**
1146
       * Map of extra parameters for custom features not available in this client library. The
1147
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1148
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1149
       * name in this param object. Effectively, this map is flattened to its parent instance.
1150
       */
1151
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1152
      Map<String, Object> extraParams;
1153

1154
      /** Fixed amounts displayed when collecting a tip. */
1155
      @SerializedName("fixed_amounts")
1156
      List<Long> fixedAmounts;
1157

1158
      /** Percentages displayed when collecting a tip. */
1159
      @SerializedName("percentages")
1160
      List<Long> percentages;
1161

1162
      /**
1163
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1164
       * displayed.
1165
       */
1166
      @SerializedName("smart_tip_threshold")
1167
      Long smartTipThreshold;
1168

1169
      private Chf(
1170
          Map<String, Object> extraParams,
1171
          List<Long> fixedAmounts,
1172
          List<Long> percentages,
1173
          Long smartTipThreshold) {
×
1174
        this.extraParams = extraParams;
×
1175
        this.fixedAmounts = fixedAmounts;
×
1176
        this.percentages = percentages;
×
1177
        this.smartTipThreshold = smartTipThreshold;
×
1178
      }
×
1179

1180
      public static Builder builder() {
1181
        return new Builder();
×
1182
      }
1183

1184
      public static class Builder {
×
1185
        private Map<String, Object> extraParams;
1186

1187
        private List<Long> fixedAmounts;
1188

1189
        private List<Long> percentages;
1190

1191
        private Long smartTipThreshold;
1192

1193
        /** Finalize and obtain parameter instance from this builder. */
1194
        public ConfigurationUpdateParams.Tipping.Chf build() {
1195
          return new ConfigurationUpdateParams.Tipping.Chf(
×
1196
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1197
        }
1198

1199
        /**
1200
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1201
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1202
         * map. See {@link ConfigurationUpdateParams.Tipping.Chf#extraParams} for the field
1203
         * documentation.
1204
         */
1205
        public Builder putExtraParam(String key, Object value) {
1206
          if (this.extraParams == null) {
×
1207
            this.extraParams = new HashMap<>();
×
1208
          }
1209
          this.extraParams.put(key, value);
×
1210
          return this;
×
1211
        }
1212

1213
        /**
1214
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1215
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1216
         * map. See {@link ConfigurationUpdateParams.Tipping.Chf#extraParams} for the field
1217
         * documentation.
1218
         */
1219
        public Builder putAllExtraParam(Map<String, Object> map) {
1220
          if (this.extraParams == null) {
×
1221
            this.extraParams = new HashMap<>();
×
1222
          }
1223
          this.extraParams.putAll(map);
×
1224
          return this;
×
1225
        }
1226

1227
        /**
1228
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1229
         * call, and subsequent calls adds additional elements to the original list. See {@link
1230
         * ConfigurationUpdateParams.Tipping.Chf#fixedAmounts} for the field documentation.
1231
         */
1232
        public Builder addFixedAmount(Long element) {
1233
          if (this.fixedAmounts == null) {
×
1234
            this.fixedAmounts = new ArrayList<>();
×
1235
          }
1236
          this.fixedAmounts.add(element);
×
1237
          return this;
×
1238
        }
1239

1240
        /**
1241
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1242
         * call, and subsequent calls adds additional elements to the original list. See {@link
1243
         * ConfigurationUpdateParams.Tipping.Chf#fixedAmounts} for the field documentation.
1244
         */
1245
        public Builder addAllFixedAmount(List<Long> elements) {
1246
          if (this.fixedAmounts == null) {
×
1247
            this.fixedAmounts = new ArrayList<>();
×
1248
          }
1249
          this.fixedAmounts.addAll(elements);
×
1250
          return this;
×
1251
        }
1252

1253
        /**
1254
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
1255
         * call, and subsequent calls adds additional elements to the original list. See {@link
1256
         * ConfigurationUpdateParams.Tipping.Chf#percentages} for the field documentation.
1257
         */
1258
        public Builder addPercentage(Long element) {
1259
          if (this.percentages == null) {
×
1260
            this.percentages = new ArrayList<>();
×
1261
          }
1262
          this.percentages.add(element);
×
1263
          return this;
×
1264
        }
1265

1266
        /**
1267
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
1268
         * call, and subsequent calls adds additional elements to the original list. See {@link
1269
         * ConfigurationUpdateParams.Tipping.Chf#percentages} for the field documentation.
1270
         */
1271
        public Builder addAllPercentage(List<Long> elements) {
1272
          if (this.percentages == null) {
×
1273
            this.percentages = new ArrayList<>();
×
1274
          }
1275
          this.percentages.addAll(elements);
×
1276
          return this;
×
1277
        }
1278

1279
        /**
1280
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1281
         * displayed.
1282
         */
1283
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1284
          this.smartTipThreshold = smartTipThreshold;
×
1285
          return this;
×
1286
        }
1287
      }
1288
    }
1289

1290
    @Getter
1291
    public static class Czk {
1292
      /**
1293
       * Map of extra parameters for custom features not available in this client library. The
1294
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1295
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1296
       * name in this param object. Effectively, this map is flattened to its parent instance.
1297
       */
1298
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1299
      Map<String, Object> extraParams;
1300

1301
      /** Fixed amounts displayed when collecting a tip. */
1302
      @SerializedName("fixed_amounts")
1303
      List<Long> fixedAmounts;
1304

1305
      /** Percentages displayed when collecting a tip. */
1306
      @SerializedName("percentages")
1307
      List<Long> percentages;
1308

1309
      /**
1310
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1311
       * displayed.
1312
       */
1313
      @SerializedName("smart_tip_threshold")
1314
      Long smartTipThreshold;
1315

1316
      private Czk(
1317
          Map<String, Object> extraParams,
1318
          List<Long> fixedAmounts,
1319
          List<Long> percentages,
1320
          Long smartTipThreshold) {
×
1321
        this.extraParams = extraParams;
×
1322
        this.fixedAmounts = fixedAmounts;
×
1323
        this.percentages = percentages;
×
1324
        this.smartTipThreshold = smartTipThreshold;
×
1325
      }
×
1326

1327
      public static Builder builder() {
1328
        return new Builder();
×
1329
      }
1330

1331
      public static class Builder {
×
1332
        private Map<String, Object> extraParams;
1333

1334
        private List<Long> fixedAmounts;
1335

1336
        private List<Long> percentages;
1337

1338
        private Long smartTipThreshold;
1339

1340
        /** Finalize and obtain parameter instance from this builder. */
1341
        public ConfigurationUpdateParams.Tipping.Czk build() {
1342
          return new ConfigurationUpdateParams.Tipping.Czk(
×
1343
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1344
        }
1345

1346
        /**
1347
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1348
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1349
         * map. See {@link ConfigurationUpdateParams.Tipping.Czk#extraParams} for the field
1350
         * documentation.
1351
         */
1352
        public Builder putExtraParam(String key, Object value) {
1353
          if (this.extraParams == null) {
×
1354
            this.extraParams = new HashMap<>();
×
1355
          }
1356
          this.extraParams.put(key, value);
×
1357
          return this;
×
1358
        }
1359

1360
        /**
1361
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1362
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1363
         * map. See {@link ConfigurationUpdateParams.Tipping.Czk#extraParams} for the field
1364
         * documentation.
1365
         */
1366
        public Builder putAllExtraParam(Map<String, Object> map) {
1367
          if (this.extraParams == null) {
×
1368
            this.extraParams = new HashMap<>();
×
1369
          }
1370
          this.extraParams.putAll(map);
×
1371
          return this;
×
1372
        }
1373

1374
        /**
1375
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1376
         * call, and subsequent calls adds additional elements to the original list. See {@link
1377
         * ConfigurationUpdateParams.Tipping.Czk#fixedAmounts} for the field documentation.
1378
         */
1379
        public Builder addFixedAmount(Long element) {
1380
          if (this.fixedAmounts == null) {
×
1381
            this.fixedAmounts = new ArrayList<>();
×
1382
          }
1383
          this.fixedAmounts.add(element);
×
1384
          return this;
×
1385
        }
1386

1387
        /**
1388
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1389
         * call, and subsequent calls adds additional elements to the original list. See {@link
1390
         * ConfigurationUpdateParams.Tipping.Czk#fixedAmounts} for the field documentation.
1391
         */
1392
        public Builder addAllFixedAmount(List<Long> elements) {
1393
          if (this.fixedAmounts == null) {
×
1394
            this.fixedAmounts = new ArrayList<>();
×
1395
          }
1396
          this.fixedAmounts.addAll(elements);
×
1397
          return this;
×
1398
        }
1399

1400
        /**
1401
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
1402
         * call, and subsequent calls adds additional elements to the original list. See {@link
1403
         * ConfigurationUpdateParams.Tipping.Czk#percentages} for the field documentation.
1404
         */
1405
        public Builder addPercentage(Long element) {
1406
          if (this.percentages == null) {
×
1407
            this.percentages = new ArrayList<>();
×
1408
          }
1409
          this.percentages.add(element);
×
1410
          return this;
×
1411
        }
1412

1413
        /**
1414
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
1415
         * call, and subsequent calls adds additional elements to the original list. See {@link
1416
         * ConfigurationUpdateParams.Tipping.Czk#percentages} for the field documentation.
1417
         */
1418
        public Builder addAllPercentage(List<Long> elements) {
1419
          if (this.percentages == null) {
×
1420
            this.percentages = new ArrayList<>();
×
1421
          }
1422
          this.percentages.addAll(elements);
×
1423
          return this;
×
1424
        }
1425

1426
        /**
1427
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1428
         * displayed.
1429
         */
1430
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1431
          this.smartTipThreshold = smartTipThreshold;
×
1432
          return this;
×
1433
        }
1434
      }
1435
    }
1436

1437
    @Getter
1438
    public static class Dkk {
1439
      /**
1440
       * Map of extra parameters for custom features not available in this client library. The
1441
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1442
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1443
       * name in this param object. Effectively, this map is flattened to its parent instance.
1444
       */
1445
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1446
      Map<String, Object> extraParams;
1447

1448
      /** Fixed amounts displayed when collecting a tip. */
1449
      @SerializedName("fixed_amounts")
1450
      List<Long> fixedAmounts;
1451

1452
      /** Percentages displayed when collecting a tip. */
1453
      @SerializedName("percentages")
1454
      List<Long> percentages;
1455

1456
      /**
1457
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1458
       * displayed.
1459
       */
1460
      @SerializedName("smart_tip_threshold")
1461
      Long smartTipThreshold;
1462

1463
      private Dkk(
1464
          Map<String, Object> extraParams,
1465
          List<Long> fixedAmounts,
1466
          List<Long> percentages,
1467
          Long smartTipThreshold) {
×
1468
        this.extraParams = extraParams;
×
1469
        this.fixedAmounts = fixedAmounts;
×
1470
        this.percentages = percentages;
×
1471
        this.smartTipThreshold = smartTipThreshold;
×
1472
      }
×
1473

1474
      public static Builder builder() {
1475
        return new Builder();
×
1476
      }
1477

1478
      public static class Builder {
×
1479
        private Map<String, Object> extraParams;
1480

1481
        private List<Long> fixedAmounts;
1482

1483
        private List<Long> percentages;
1484

1485
        private Long smartTipThreshold;
1486

1487
        /** Finalize and obtain parameter instance from this builder. */
1488
        public ConfigurationUpdateParams.Tipping.Dkk build() {
1489
          return new ConfigurationUpdateParams.Tipping.Dkk(
×
1490
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1491
        }
1492

1493
        /**
1494
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1495
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1496
         * map. See {@link ConfigurationUpdateParams.Tipping.Dkk#extraParams} for the field
1497
         * documentation.
1498
         */
1499
        public Builder putExtraParam(String key, Object value) {
1500
          if (this.extraParams == null) {
×
1501
            this.extraParams = new HashMap<>();
×
1502
          }
1503
          this.extraParams.put(key, value);
×
1504
          return this;
×
1505
        }
1506

1507
        /**
1508
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1509
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1510
         * map. See {@link ConfigurationUpdateParams.Tipping.Dkk#extraParams} for the field
1511
         * documentation.
1512
         */
1513
        public Builder putAllExtraParam(Map<String, Object> map) {
1514
          if (this.extraParams == null) {
×
1515
            this.extraParams = new HashMap<>();
×
1516
          }
1517
          this.extraParams.putAll(map);
×
1518
          return this;
×
1519
        }
1520

1521
        /**
1522
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1523
         * call, and subsequent calls adds additional elements to the original list. See {@link
1524
         * ConfigurationUpdateParams.Tipping.Dkk#fixedAmounts} for the field documentation.
1525
         */
1526
        public Builder addFixedAmount(Long element) {
1527
          if (this.fixedAmounts == null) {
×
1528
            this.fixedAmounts = new ArrayList<>();
×
1529
          }
1530
          this.fixedAmounts.add(element);
×
1531
          return this;
×
1532
        }
1533

1534
        /**
1535
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1536
         * call, and subsequent calls adds additional elements to the original list. See {@link
1537
         * ConfigurationUpdateParams.Tipping.Dkk#fixedAmounts} for the field documentation.
1538
         */
1539
        public Builder addAllFixedAmount(List<Long> elements) {
1540
          if (this.fixedAmounts == null) {
×
1541
            this.fixedAmounts = new ArrayList<>();
×
1542
          }
1543
          this.fixedAmounts.addAll(elements);
×
1544
          return this;
×
1545
        }
1546

1547
        /**
1548
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
1549
         * call, and subsequent calls adds additional elements to the original list. See {@link
1550
         * ConfigurationUpdateParams.Tipping.Dkk#percentages} for the field documentation.
1551
         */
1552
        public Builder addPercentage(Long element) {
1553
          if (this.percentages == null) {
×
1554
            this.percentages = new ArrayList<>();
×
1555
          }
1556
          this.percentages.add(element);
×
1557
          return this;
×
1558
        }
1559

1560
        /**
1561
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
1562
         * call, and subsequent calls adds additional elements to the original list. See {@link
1563
         * ConfigurationUpdateParams.Tipping.Dkk#percentages} for the field documentation.
1564
         */
1565
        public Builder addAllPercentage(List<Long> elements) {
1566
          if (this.percentages == null) {
×
1567
            this.percentages = new ArrayList<>();
×
1568
          }
1569
          this.percentages.addAll(elements);
×
1570
          return this;
×
1571
        }
1572

1573
        /**
1574
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1575
         * displayed.
1576
         */
1577
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1578
          this.smartTipThreshold = smartTipThreshold;
×
1579
          return this;
×
1580
        }
1581
      }
1582
    }
1583

1584
    @Getter
1585
    public static class Eur {
1586
      /**
1587
       * Map of extra parameters for custom features not available in this client library. The
1588
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1589
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1590
       * name in this param object. Effectively, this map is flattened to its parent instance.
1591
       */
1592
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1593
      Map<String, Object> extraParams;
1594

1595
      /** Fixed amounts displayed when collecting a tip. */
1596
      @SerializedName("fixed_amounts")
1597
      List<Long> fixedAmounts;
1598

1599
      /** Percentages displayed when collecting a tip. */
1600
      @SerializedName("percentages")
1601
      List<Long> percentages;
1602

1603
      /**
1604
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1605
       * displayed.
1606
       */
1607
      @SerializedName("smart_tip_threshold")
1608
      Long smartTipThreshold;
1609

1610
      private Eur(
1611
          Map<String, Object> extraParams,
1612
          List<Long> fixedAmounts,
1613
          List<Long> percentages,
1614
          Long smartTipThreshold) {
×
1615
        this.extraParams = extraParams;
×
1616
        this.fixedAmounts = fixedAmounts;
×
1617
        this.percentages = percentages;
×
1618
        this.smartTipThreshold = smartTipThreshold;
×
1619
      }
×
1620

1621
      public static Builder builder() {
1622
        return new Builder();
×
1623
      }
1624

1625
      public static class Builder {
×
1626
        private Map<String, Object> extraParams;
1627

1628
        private List<Long> fixedAmounts;
1629

1630
        private List<Long> percentages;
1631

1632
        private Long smartTipThreshold;
1633

1634
        /** Finalize and obtain parameter instance from this builder. */
1635
        public ConfigurationUpdateParams.Tipping.Eur build() {
1636
          return new ConfigurationUpdateParams.Tipping.Eur(
×
1637
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1638
        }
1639

1640
        /**
1641
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1642
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1643
         * map. See {@link ConfigurationUpdateParams.Tipping.Eur#extraParams} for the field
1644
         * documentation.
1645
         */
1646
        public Builder putExtraParam(String key, Object value) {
1647
          if (this.extraParams == null) {
×
1648
            this.extraParams = new HashMap<>();
×
1649
          }
1650
          this.extraParams.put(key, value);
×
1651
          return this;
×
1652
        }
1653

1654
        /**
1655
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1656
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1657
         * map. See {@link ConfigurationUpdateParams.Tipping.Eur#extraParams} for the field
1658
         * documentation.
1659
         */
1660
        public Builder putAllExtraParam(Map<String, Object> map) {
1661
          if (this.extraParams == null) {
×
1662
            this.extraParams = new HashMap<>();
×
1663
          }
1664
          this.extraParams.putAll(map);
×
1665
          return this;
×
1666
        }
1667

1668
        /**
1669
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1670
         * call, and subsequent calls adds additional elements to the original list. See {@link
1671
         * ConfigurationUpdateParams.Tipping.Eur#fixedAmounts} for the field documentation.
1672
         */
1673
        public Builder addFixedAmount(Long element) {
1674
          if (this.fixedAmounts == null) {
×
1675
            this.fixedAmounts = new ArrayList<>();
×
1676
          }
1677
          this.fixedAmounts.add(element);
×
1678
          return this;
×
1679
        }
1680

1681
        /**
1682
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1683
         * call, and subsequent calls adds additional elements to the original list. See {@link
1684
         * ConfigurationUpdateParams.Tipping.Eur#fixedAmounts} for the field documentation.
1685
         */
1686
        public Builder addAllFixedAmount(List<Long> elements) {
1687
          if (this.fixedAmounts == null) {
×
1688
            this.fixedAmounts = new ArrayList<>();
×
1689
          }
1690
          this.fixedAmounts.addAll(elements);
×
1691
          return this;
×
1692
        }
1693

1694
        /**
1695
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
1696
         * call, and subsequent calls adds additional elements to the original list. See {@link
1697
         * ConfigurationUpdateParams.Tipping.Eur#percentages} for the field documentation.
1698
         */
1699
        public Builder addPercentage(Long element) {
1700
          if (this.percentages == null) {
×
1701
            this.percentages = new ArrayList<>();
×
1702
          }
1703
          this.percentages.add(element);
×
1704
          return this;
×
1705
        }
1706

1707
        /**
1708
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
1709
         * call, and subsequent calls adds additional elements to the original list. See {@link
1710
         * ConfigurationUpdateParams.Tipping.Eur#percentages} for the field documentation.
1711
         */
1712
        public Builder addAllPercentage(List<Long> elements) {
1713
          if (this.percentages == null) {
×
1714
            this.percentages = new ArrayList<>();
×
1715
          }
1716
          this.percentages.addAll(elements);
×
1717
          return this;
×
1718
        }
1719

1720
        /**
1721
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1722
         * displayed.
1723
         */
1724
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1725
          this.smartTipThreshold = smartTipThreshold;
×
1726
          return this;
×
1727
        }
1728
      }
1729
    }
1730

1731
    @Getter
1732
    public static class Gbp {
1733
      /**
1734
       * Map of extra parameters for custom features not available in this client library. The
1735
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1736
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1737
       * name in this param object. Effectively, this map is flattened to its parent instance.
1738
       */
1739
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1740
      Map<String, Object> extraParams;
1741

1742
      /** Fixed amounts displayed when collecting a tip. */
1743
      @SerializedName("fixed_amounts")
1744
      List<Long> fixedAmounts;
1745

1746
      /** Percentages displayed when collecting a tip. */
1747
      @SerializedName("percentages")
1748
      List<Long> percentages;
1749

1750
      /**
1751
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1752
       * displayed.
1753
       */
1754
      @SerializedName("smart_tip_threshold")
1755
      Long smartTipThreshold;
1756

1757
      private Gbp(
1758
          Map<String, Object> extraParams,
1759
          List<Long> fixedAmounts,
1760
          List<Long> percentages,
1761
          Long smartTipThreshold) {
×
1762
        this.extraParams = extraParams;
×
1763
        this.fixedAmounts = fixedAmounts;
×
1764
        this.percentages = percentages;
×
1765
        this.smartTipThreshold = smartTipThreshold;
×
1766
      }
×
1767

1768
      public static Builder builder() {
1769
        return new Builder();
×
1770
      }
1771

1772
      public static class Builder {
×
1773
        private Map<String, Object> extraParams;
1774

1775
        private List<Long> fixedAmounts;
1776

1777
        private List<Long> percentages;
1778

1779
        private Long smartTipThreshold;
1780

1781
        /** Finalize and obtain parameter instance from this builder. */
1782
        public ConfigurationUpdateParams.Tipping.Gbp build() {
1783
          return new ConfigurationUpdateParams.Tipping.Gbp(
×
1784
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1785
        }
1786

1787
        /**
1788
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1789
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1790
         * map. See {@link ConfigurationUpdateParams.Tipping.Gbp#extraParams} for the field
1791
         * documentation.
1792
         */
1793
        public Builder putExtraParam(String key, Object value) {
1794
          if (this.extraParams == null) {
×
1795
            this.extraParams = new HashMap<>();
×
1796
          }
1797
          this.extraParams.put(key, value);
×
1798
          return this;
×
1799
        }
1800

1801
        /**
1802
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1803
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1804
         * map. See {@link ConfigurationUpdateParams.Tipping.Gbp#extraParams} for the field
1805
         * documentation.
1806
         */
1807
        public Builder putAllExtraParam(Map<String, Object> map) {
1808
          if (this.extraParams == null) {
×
1809
            this.extraParams = new HashMap<>();
×
1810
          }
1811
          this.extraParams.putAll(map);
×
1812
          return this;
×
1813
        }
1814

1815
        /**
1816
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1817
         * call, and subsequent calls adds additional elements to the original list. See {@link
1818
         * ConfigurationUpdateParams.Tipping.Gbp#fixedAmounts} for the field documentation.
1819
         */
1820
        public Builder addFixedAmount(Long element) {
1821
          if (this.fixedAmounts == null) {
×
1822
            this.fixedAmounts = new ArrayList<>();
×
1823
          }
1824
          this.fixedAmounts.add(element);
×
1825
          return this;
×
1826
        }
1827

1828
        /**
1829
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1830
         * call, and subsequent calls adds additional elements to the original list. See {@link
1831
         * ConfigurationUpdateParams.Tipping.Gbp#fixedAmounts} for the field documentation.
1832
         */
1833
        public Builder addAllFixedAmount(List<Long> elements) {
1834
          if (this.fixedAmounts == null) {
×
1835
            this.fixedAmounts = new ArrayList<>();
×
1836
          }
1837
          this.fixedAmounts.addAll(elements);
×
1838
          return this;
×
1839
        }
1840

1841
        /**
1842
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
1843
         * call, and subsequent calls adds additional elements to the original list. See {@link
1844
         * ConfigurationUpdateParams.Tipping.Gbp#percentages} for the field documentation.
1845
         */
1846
        public Builder addPercentage(Long element) {
1847
          if (this.percentages == null) {
×
1848
            this.percentages = new ArrayList<>();
×
1849
          }
1850
          this.percentages.add(element);
×
1851
          return this;
×
1852
        }
1853

1854
        /**
1855
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
1856
         * call, and subsequent calls adds additional elements to the original list. See {@link
1857
         * ConfigurationUpdateParams.Tipping.Gbp#percentages} for the field documentation.
1858
         */
1859
        public Builder addAllPercentage(List<Long> elements) {
1860
          if (this.percentages == null) {
×
1861
            this.percentages = new ArrayList<>();
×
1862
          }
1863
          this.percentages.addAll(elements);
×
1864
          return this;
×
1865
        }
1866

1867
        /**
1868
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1869
         * displayed.
1870
         */
1871
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1872
          this.smartTipThreshold = smartTipThreshold;
×
1873
          return this;
×
1874
        }
1875
      }
1876
    }
1877

1878
    @Getter
1879
    public static class Hkd {
1880
      /**
1881
       * Map of extra parameters for custom features not available in this client library. The
1882
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1883
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1884
       * name in this param object. Effectively, this map is flattened to its parent instance.
1885
       */
1886
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1887
      Map<String, Object> extraParams;
1888

1889
      /** Fixed amounts displayed when collecting a tip. */
1890
      @SerializedName("fixed_amounts")
1891
      List<Long> fixedAmounts;
1892

1893
      /** Percentages displayed when collecting a tip. */
1894
      @SerializedName("percentages")
1895
      List<Long> percentages;
1896

1897
      /**
1898
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1899
       * displayed.
1900
       */
1901
      @SerializedName("smart_tip_threshold")
1902
      Long smartTipThreshold;
1903

1904
      private Hkd(
1905
          Map<String, Object> extraParams,
1906
          List<Long> fixedAmounts,
1907
          List<Long> percentages,
1908
          Long smartTipThreshold) {
×
1909
        this.extraParams = extraParams;
×
1910
        this.fixedAmounts = fixedAmounts;
×
1911
        this.percentages = percentages;
×
1912
        this.smartTipThreshold = smartTipThreshold;
×
1913
      }
×
1914

1915
      public static Builder builder() {
1916
        return new Builder();
×
1917
      }
1918

1919
      public static class Builder {
×
1920
        private Map<String, Object> extraParams;
1921

1922
        private List<Long> fixedAmounts;
1923

1924
        private List<Long> percentages;
1925

1926
        private Long smartTipThreshold;
1927

1928
        /** Finalize and obtain parameter instance from this builder. */
1929
        public ConfigurationUpdateParams.Tipping.Hkd build() {
1930
          return new ConfigurationUpdateParams.Tipping.Hkd(
×
1931
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1932
        }
1933

1934
        /**
1935
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1936
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1937
         * map. See {@link ConfigurationUpdateParams.Tipping.Hkd#extraParams} for the field
1938
         * documentation.
1939
         */
1940
        public Builder putExtraParam(String key, Object value) {
1941
          if (this.extraParams == null) {
×
1942
            this.extraParams = new HashMap<>();
×
1943
          }
1944
          this.extraParams.put(key, value);
×
1945
          return this;
×
1946
        }
1947

1948
        /**
1949
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1950
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1951
         * map. See {@link ConfigurationUpdateParams.Tipping.Hkd#extraParams} for the field
1952
         * documentation.
1953
         */
1954
        public Builder putAllExtraParam(Map<String, Object> map) {
1955
          if (this.extraParams == null) {
×
1956
            this.extraParams = new HashMap<>();
×
1957
          }
1958
          this.extraParams.putAll(map);
×
1959
          return this;
×
1960
        }
1961

1962
        /**
1963
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1964
         * call, and subsequent calls adds additional elements to the original list. See {@link
1965
         * ConfigurationUpdateParams.Tipping.Hkd#fixedAmounts} for the field documentation.
1966
         */
1967
        public Builder addFixedAmount(Long element) {
1968
          if (this.fixedAmounts == null) {
×
1969
            this.fixedAmounts = new ArrayList<>();
×
1970
          }
1971
          this.fixedAmounts.add(element);
×
1972
          return this;
×
1973
        }
1974

1975
        /**
1976
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1977
         * call, and subsequent calls adds additional elements to the original list. See {@link
1978
         * ConfigurationUpdateParams.Tipping.Hkd#fixedAmounts} for the field documentation.
1979
         */
1980
        public Builder addAllFixedAmount(List<Long> elements) {
1981
          if (this.fixedAmounts == null) {
×
1982
            this.fixedAmounts = new ArrayList<>();
×
1983
          }
1984
          this.fixedAmounts.addAll(elements);
×
1985
          return this;
×
1986
        }
1987

1988
        /**
1989
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
1990
         * call, and subsequent calls adds additional elements to the original list. See {@link
1991
         * ConfigurationUpdateParams.Tipping.Hkd#percentages} for the field documentation.
1992
         */
1993
        public Builder addPercentage(Long element) {
1994
          if (this.percentages == null) {
×
1995
            this.percentages = new ArrayList<>();
×
1996
          }
1997
          this.percentages.add(element);
×
1998
          return this;
×
1999
        }
2000

2001
        /**
2002
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
2003
         * call, and subsequent calls adds additional elements to the original list. See {@link
2004
         * ConfigurationUpdateParams.Tipping.Hkd#percentages} for the field documentation.
2005
         */
2006
        public Builder addAllPercentage(List<Long> elements) {
2007
          if (this.percentages == null) {
×
2008
            this.percentages = new ArrayList<>();
×
2009
          }
2010
          this.percentages.addAll(elements);
×
2011
          return this;
×
2012
        }
2013

2014
        /**
2015
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2016
         * displayed.
2017
         */
2018
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2019
          this.smartTipThreshold = smartTipThreshold;
×
2020
          return this;
×
2021
        }
2022
      }
2023
    }
2024

2025
    @Getter
2026
    public static class Myr {
2027
      /**
2028
       * Map of extra parameters for custom features not available in this client library. The
2029
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2030
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2031
       * name in this param object. Effectively, this map is flattened to its parent instance.
2032
       */
2033
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2034
      Map<String, Object> extraParams;
2035

2036
      /** Fixed amounts displayed when collecting a tip. */
2037
      @SerializedName("fixed_amounts")
2038
      List<Long> fixedAmounts;
2039

2040
      /** Percentages displayed when collecting a tip. */
2041
      @SerializedName("percentages")
2042
      List<Long> percentages;
2043

2044
      /**
2045
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2046
       * displayed.
2047
       */
2048
      @SerializedName("smart_tip_threshold")
2049
      Long smartTipThreshold;
2050

2051
      private Myr(
2052
          Map<String, Object> extraParams,
2053
          List<Long> fixedAmounts,
2054
          List<Long> percentages,
2055
          Long smartTipThreshold) {
×
2056
        this.extraParams = extraParams;
×
2057
        this.fixedAmounts = fixedAmounts;
×
2058
        this.percentages = percentages;
×
2059
        this.smartTipThreshold = smartTipThreshold;
×
2060
      }
×
2061

2062
      public static Builder builder() {
2063
        return new Builder();
×
2064
      }
2065

2066
      public static class Builder {
×
2067
        private Map<String, Object> extraParams;
2068

2069
        private List<Long> fixedAmounts;
2070

2071
        private List<Long> percentages;
2072

2073
        private Long smartTipThreshold;
2074

2075
        /** Finalize and obtain parameter instance from this builder. */
2076
        public ConfigurationUpdateParams.Tipping.Myr build() {
2077
          return new ConfigurationUpdateParams.Tipping.Myr(
×
2078
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2079
        }
2080

2081
        /**
2082
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2083
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2084
         * map. See {@link ConfigurationUpdateParams.Tipping.Myr#extraParams} for the field
2085
         * documentation.
2086
         */
2087
        public Builder putExtraParam(String key, Object value) {
2088
          if (this.extraParams == null) {
×
2089
            this.extraParams = new HashMap<>();
×
2090
          }
2091
          this.extraParams.put(key, value);
×
2092
          return this;
×
2093
        }
2094

2095
        /**
2096
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2097
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2098
         * map. See {@link ConfigurationUpdateParams.Tipping.Myr#extraParams} for the field
2099
         * documentation.
2100
         */
2101
        public Builder putAllExtraParam(Map<String, Object> map) {
2102
          if (this.extraParams == null) {
×
2103
            this.extraParams = new HashMap<>();
×
2104
          }
2105
          this.extraParams.putAll(map);
×
2106
          return this;
×
2107
        }
2108

2109
        /**
2110
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2111
         * call, and subsequent calls adds additional elements to the original list. See {@link
2112
         * ConfigurationUpdateParams.Tipping.Myr#fixedAmounts} for the field documentation.
2113
         */
2114
        public Builder addFixedAmount(Long element) {
2115
          if (this.fixedAmounts == null) {
×
2116
            this.fixedAmounts = new ArrayList<>();
×
2117
          }
2118
          this.fixedAmounts.add(element);
×
2119
          return this;
×
2120
        }
2121

2122
        /**
2123
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2124
         * call, and subsequent calls adds additional elements to the original list. See {@link
2125
         * ConfigurationUpdateParams.Tipping.Myr#fixedAmounts} for the field documentation.
2126
         */
2127
        public Builder addAllFixedAmount(List<Long> elements) {
2128
          if (this.fixedAmounts == null) {
×
2129
            this.fixedAmounts = new ArrayList<>();
×
2130
          }
2131
          this.fixedAmounts.addAll(elements);
×
2132
          return this;
×
2133
        }
2134

2135
        /**
2136
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
2137
         * call, and subsequent calls adds additional elements to the original list. See {@link
2138
         * ConfigurationUpdateParams.Tipping.Myr#percentages} for the field documentation.
2139
         */
2140
        public Builder addPercentage(Long element) {
2141
          if (this.percentages == null) {
×
2142
            this.percentages = new ArrayList<>();
×
2143
          }
2144
          this.percentages.add(element);
×
2145
          return this;
×
2146
        }
2147

2148
        /**
2149
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
2150
         * call, and subsequent calls adds additional elements to the original list. See {@link
2151
         * ConfigurationUpdateParams.Tipping.Myr#percentages} for the field documentation.
2152
         */
2153
        public Builder addAllPercentage(List<Long> elements) {
2154
          if (this.percentages == null) {
×
2155
            this.percentages = new ArrayList<>();
×
2156
          }
2157
          this.percentages.addAll(elements);
×
2158
          return this;
×
2159
        }
2160

2161
        /**
2162
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2163
         * displayed.
2164
         */
2165
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2166
          this.smartTipThreshold = smartTipThreshold;
×
2167
          return this;
×
2168
        }
2169
      }
2170
    }
2171

2172
    @Getter
2173
    public static class Nok {
2174
      /**
2175
       * Map of extra parameters for custom features not available in this client library. The
2176
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2177
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2178
       * name in this param object. Effectively, this map is flattened to its parent instance.
2179
       */
2180
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2181
      Map<String, Object> extraParams;
2182

2183
      /** Fixed amounts displayed when collecting a tip. */
2184
      @SerializedName("fixed_amounts")
2185
      List<Long> fixedAmounts;
2186

2187
      /** Percentages displayed when collecting a tip. */
2188
      @SerializedName("percentages")
2189
      List<Long> percentages;
2190

2191
      /**
2192
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2193
       * displayed.
2194
       */
2195
      @SerializedName("smart_tip_threshold")
2196
      Long smartTipThreshold;
2197

2198
      private Nok(
2199
          Map<String, Object> extraParams,
2200
          List<Long> fixedAmounts,
2201
          List<Long> percentages,
2202
          Long smartTipThreshold) {
×
2203
        this.extraParams = extraParams;
×
2204
        this.fixedAmounts = fixedAmounts;
×
2205
        this.percentages = percentages;
×
2206
        this.smartTipThreshold = smartTipThreshold;
×
2207
      }
×
2208

2209
      public static Builder builder() {
2210
        return new Builder();
×
2211
      }
2212

2213
      public static class Builder {
×
2214
        private Map<String, Object> extraParams;
2215

2216
        private List<Long> fixedAmounts;
2217

2218
        private List<Long> percentages;
2219

2220
        private Long smartTipThreshold;
2221

2222
        /** Finalize and obtain parameter instance from this builder. */
2223
        public ConfigurationUpdateParams.Tipping.Nok build() {
2224
          return new ConfigurationUpdateParams.Tipping.Nok(
×
2225
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2226
        }
2227

2228
        /**
2229
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2230
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2231
         * map. See {@link ConfigurationUpdateParams.Tipping.Nok#extraParams} for the field
2232
         * documentation.
2233
         */
2234
        public Builder putExtraParam(String key, Object value) {
2235
          if (this.extraParams == null) {
×
2236
            this.extraParams = new HashMap<>();
×
2237
          }
2238
          this.extraParams.put(key, value);
×
2239
          return this;
×
2240
        }
2241

2242
        /**
2243
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2244
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2245
         * map. See {@link ConfigurationUpdateParams.Tipping.Nok#extraParams} for the field
2246
         * documentation.
2247
         */
2248
        public Builder putAllExtraParam(Map<String, Object> map) {
2249
          if (this.extraParams == null) {
×
2250
            this.extraParams = new HashMap<>();
×
2251
          }
2252
          this.extraParams.putAll(map);
×
2253
          return this;
×
2254
        }
2255

2256
        /**
2257
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2258
         * call, and subsequent calls adds additional elements to the original list. See {@link
2259
         * ConfigurationUpdateParams.Tipping.Nok#fixedAmounts} for the field documentation.
2260
         */
2261
        public Builder addFixedAmount(Long element) {
2262
          if (this.fixedAmounts == null) {
×
2263
            this.fixedAmounts = new ArrayList<>();
×
2264
          }
2265
          this.fixedAmounts.add(element);
×
2266
          return this;
×
2267
        }
2268

2269
        /**
2270
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2271
         * call, and subsequent calls adds additional elements to the original list. See {@link
2272
         * ConfigurationUpdateParams.Tipping.Nok#fixedAmounts} for the field documentation.
2273
         */
2274
        public Builder addAllFixedAmount(List<Long> elements) {
2275
          if (this.fixedAmounts == null) {
×
2276
            this.fixedAmounts = new ArrayList<>();
×
2277
          }
2278
          this.fixedAmounts.addAll(elements);
×
2279
          return this;
×
2280
        }
2281

2282
        /**
2283
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
2284
         * call, and subsequent calls adds additional elements to the original list. See {@link
2285
         * ConfigurationUpdateParams.Tipping.Nok#percentages} for the field documentation.
2286
         */
2287
        public Builder addPercentage(Long element) {
2288
          if (this.percentages == null) {
×
2289
            this.percentages = new ArrayList<>();
×
2290
          }
2291
          this.percentages.add(element);
×
2292
          return this;
×
2293
        }
2294

2295
        /**
2296
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
2297
         * call, and subsequent calls adds additional elements to the original list. See {@link
2298
         * ConfigurationUpdateParams.Tipping.Nok#percentages} for the field documentation.
2299
         */
2300
        public Builder addAllPercentage(List<Long> elements) {
2301
          if (this.percentages == null) {
×
2302
            this.percentages = new ArrayList<>();
×
2303
          }
2304
          this.percentages.addAll(elements);
×
2305
          return this;
×
2306
        }
2307

2308
        /**
2309
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2310
         * displayed.
2311
         */
2312
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2313
          this.smartTipThreshold = smartTipThreshold;
×
2314
          return this;
×
2315
        }
2316
      }
2317
    }
2318

2319
    @Getter
2320
    public static class Nzd {
2321
      /**
2322
       * Map of extra parameters for custom features not available in this client library. The
2323
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2324
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2325
       * name in this param object. Effectively, this map is flattened to its parent instance.
2326
       */
2327
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2328
      Map<String, Object> extraParams;
2329

2330
      /** Fixed amounts displayed when collecting a tip. */
2331
      @SerializedName("fixed_amounts")
2332
      List<Long> fixedAmounts;
2333

2334
      /** Percentages displayed when collecting a tip. */
2335
      @SerializedName("percentages")
2336
      List<Long> percentages;
2337

2338
      /**
2339
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2340
       * displayed.
2341
       */
2342
      @SerializedName("smart_tip_threshold")
2343
      Long smartTipThreshold;
2344

2345
      private Nzd(
2346
          Map<String, Object> extraParams,
2347
          List<Long> fixedAmounts,
2348
          List<Long> percentages,
2349
          Long smartTipThreshold) {
×
2350
        this.extraParams = extraParams;
×
2351
        this.fixedAmounts = fixedAmounts;
×
2352
        this.percentages = percentages;
×
2353
        this.smartTipThreshold = smartTipThreshold;
×
2354
      }
×
2355

2356
      public static Builder builder() {
2357
        return new Builder();
×
2358
      }
2359

2360
      public static class Builder {
×
2361
        private Map<String, Object> extraParams;
2362

2363
        private List<Long> fixedAmounts;
2364

2365
        private List<Long> percentages;
2366

2367
        private Long smartTipThreshold;
2368

2369
        /** Finalize and obtain parameter instance from this builder. */
2370
        public ConfigurationUpdateParams.Tipping.Nzd build() {
2371
          return new ConfigurationUpdateParams.Tipping.Nzd(
×
2372
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2373
        }
2374

2375
        /**
2376
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2377
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2378
         * map. See {@link ConfigurationUpdateParams.Tipping.Nzd#extraParams} for the field
2379
         * documentation.
2380
         */
2381
        public Builder putExtraParam(String key, Object value) {
2382
          if (this.extraParams == null) {
×
2383
            this.extraParams = new HashMap<>();
×
2384
          }
2385
          this.extraParams.put(key, value);
×
2386
          return this;
×
2387
        }
2388

2389
        /**
2390
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2391
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2392
         * map. See {@link ConfigurationUpdateParams.Tipping.Nzd#extraParams} for the field
2393
         * documentation.
2394
         */
2395
        public Builder putAllExtraParam(Map<String, Object> map) {
2396
          if (this.extraParams == null) {
×
2397
            this.extraParams = new HashMap<>();
×
2398
          }
2399
          this.extraParams.putAll(map);
×
2400
          return this;
×
2401
        }
2402

2403
        /**
2404
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2405
         * call, and subsequent calls adds additional elements to the original list. See {@link
2406
         * ConfigurationUpdateParams.Tipping.Nzd#fixedAmounts} for the field documentation.
2407
         */
2408
        public Builder addFixedAmount(Long element) {
2409
          if (this.fixedAmounts == null) {
×
2410
            this.fixedAmounts = new ArrayList<>();
×
2411
          }
2412
          this.fixedAmounts.add(element);
×
2413
          return this;
×
2414
        }
2415

2416
        /**
2417
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2418
         * call, and subsequent calls adds additional elements to the original list. See {@link
2419
         * ConfigurationUpdateParams.Tipping.Nzd#fixedAmounts} for the field documentation.
2420
         */
2421
        public Builder addAllFixedAmount(List<Long> elements) {
2422
          if (this.fixedAmounts == null) {
×
2423
            this.fixedAmounts = new ArrayList<>();
×
2424
          }
2425
          this.fixedAmounts.addAll(elements);
×
2426
          return this;
×
2427
        }
2428

2429
        /**
2430
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
2431
         * call, and subsequent calls adds additional elements to the original list. See {@link
2432
         * ConfigurationUpdateParams.Tipping.Nzd#percentages} for the field documentation.
2433
         */
2434
        public Builder addPercentage(Long element) {
2435
          if (this.percentages == null) {
×
2436
            this.percentages = new ArrayList<>();
×
2437
          }
2438
          this.percentages.add(element);
×
2439
          return this;
×
2440
        }
2441

2442
        /**
2443
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
2444
         * call, and subsequent calls adds additional elements to the original list. See {@link
2445
         * ConfigurationUpdateParams.Tipping.Nzd#percentages} for the field documentation.
2446
         */
2447
        public Builder addAllPercentage(List<Long> elements) {
2448
          if (this.percentages == null) {
×
2449
            this.percentages = new ArrayList<>();
×
2450
          }
2451
          this.percentages.addAll(elements);
×
2452
          return this;
×
2453
        }
2454

2455
        /**
2456
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2457
         * displayed.
2458
         */
2459
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2460
          this.smartTipThreshold = smartTipThreshold;
×
2461
          return this;
×
2462
        }
2463
      }
2464
    }
2465

2466
    @Getter
2467
    public static class Pln {
2468
      /**
2469
       * Map of extra parameters for custom features not available in this client library. The
2470
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2471
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2472
       * name in this param object. Effectively, this map is flattened to its parent instance.
2473
       */
2474
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2475
      Map<String, Object> extraParams;
2476

2477
      /** Fixed amounts displayed when collecting a tip. */
2478
      @SerializedName("fixed_amounts")
2479
      List<Long> fixedAmounts;
2480

2481
      /** Percentages displayed when collecting a tip. */
2482
      @SerializedName("percentages")
2483
      List<Long> percentages;
2484

2485
      /**
2486
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2487
       * displayed.
2488
       */
2489
      @SerializedName("smart_tip_threshold")
2490
      Long smartTipThreshold;
2491

2492
      private Pln(
2493
          Map<String, Object> extraParams,
2494
          List<Long> fixedAmounts,
2495
          List<Long> percentages,
NEW
2496
          Long smartTipThreshold) {
×
NEW
2497
        this.extraParams = extraParams;
×
NEW
2498
        this.fixedAmounts = fixedAmounts;
×
NEW
2499
        this.percentages = percentages;
×
NEW
2500
        this.smartTipThreshold = smartTipThreshold;
×
NEW
2501
      }
×
2502

2503
      public static Builder builder() {
NEW
2504
        return new Builder();
×
2505
      }
2506

NEW
2507
      public static class Builder {
×
2508
        private Map<String, Object> extraParams;
2509

2510
        private List<Long> fixedAmounts;
2511

2512
        private List<Long> percentages;
2513

2514
        private Long smartTipThreshold;
2515

2516
        /** Finalize and obtain parameter instance from this builder. */
2517
        public ConfigurationUpdateParams.Tipping.Pln build() {
NEW
2518
          return new ConfigurationUpdateParams.Tipping.Pln(
×
2519
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2520
        }
2521

2522
        /**
2523
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2524
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2525
         * map. See {@link ConfigurationUpdateParams.Tipping.Pln#extraParams} for the field
2526
         * documentation.
2527
         */
2528
        public Builder putExtraParam(String key, Object value) {
NEW
2529
          if (this.extraParams == null) {
×
NEW
2530
            this.extraParams = new HashMap<>();
×
2531
          }
NEW
2532
          this.extraParams.put(key, value);
×
NEW
2533
          return this;
×
2534
        }
2535

2536
        /**
2537
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2538
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2539
         * map. See {@link ConfigurationUpdateParams.Tipping.Pln#extraParams} for the field
2540
         * documentation.
2541
         */
2542
        public Builder putAllExtraParam(Map<String, Object> map) {
NEW
2543
          if (this.extraParams == null) {
×
NEW
2544
            this.extraParams = new HashMap<>();
×
2545
          }
NEW
2546
          this.extraParams.putAll(map);
×
NEW
2547
          return this;
×
2548
        }
2549

2550
        /**
2551
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2552
         * call, and subsequent calls adds additional elements to the original list. See {@link
2553
         * ConfigurationUpdateParams.Tipping.Pln#fixedAmounts} for the field documentation.
2554
         */
2555
        public Builder addFixedAmount(Long element) {
NEW
2556
          if (this.fixedAmounts == null) {
×
NEW
2557
            this.fixedAmounts = new ArrayList<>();
×
2558
          }
NEW
2559
          this.fixedAmounts.add(element);
×
NEW
2560
          return this;
×
2561
        }
2562

2563
        /**
2564
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2565
         * call, and subsequent calls adds additional elements to the original list. See {@link
2566
         * ConfigurationUpdateParams.Tipping.Pln#fixedAmounts} for the field documentation.
2567
         */
2568
        public Builder addAllFixedAmount(List<Long> elements) {
NEW
2569
          if (this.fixedAmounts == null) {
×
NEW
2570
            this.fixedAmounts = new ArrayList<>();
×
2571
          }
NEW
2572
          this.fixedAmounts.addAll(elements);
×
NEW
2573
          return this;
×
2574
        }
2575

2576
        /**
2577
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
2578
         * call, and subsequent calls adds additional elements to the original list. See {@link
2579
         * ConfigurationUpdateParams.Tipping.Pln#percentages} for the field documentation.
2580
         */
2581
        public Builder addPercentage(Long element) {
NEW
2582
          if (this.percentages == null) {
×
NEW
2583
            this.percentages = new ArrayList<>();
×
2584
          }
NEW
2585
          this.percentages.add(element);
×
NEW
2586
          return this;
×
2587
        }
2588

2589
        /**
2590
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
2591
         * call, and subsequent calls adds additional elements to the original list. See {@link
2592
         * ConfigurationUpdateParams.Tipping.Pln#percentages} for the field documentation.
2593
         */
2594
        public Builder addAllPercentage(List<Long> elements) {
NEW
2595
          if (this.percentages == null) {
×
NEW
2596
            this.percentages = new ArrayList<>();
×
2597
          }
NEW
2598
          this.percentages.addAll(elements);
×
NEW
2599
          return this;
×
2600
        }
2601

2602
        /**
2603
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2604
         * displayed.
2605
         */
2606
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
NEW
2607
          this.smartTipThreshold = smartTipThreshold;
×
NEW
2608
          return this;
×
2609
        }
2610
      }
2611
    }
2612

2613
    @Getter
2614
    public static class Sek {
2615
      /**
2616
       * Map of extra parameters for custom features not available in this client library. The
2617
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2618
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2619
       * name in this param object. Effectively, this map is flattened to its parent instance.
2620
       */
2621
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2622
      Map<String, Object> extraParams;
2623

2624
      /** Fixed amounts displayed when collecting a tip. */
2625
      @SerializedName("fixed_amounts")
2626
      List<Long> fixedAmounts;
2627

2628
      /** Percentages displayed when collecting a tip. */
2629
      @SerializedName("percentages")
2630
      List<Long> percentages;
2631

2632
      /**
2633
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2634
       * displayed.
2635
       */
2636
      @SerializedName("smart_tip_threshold")
2637
      Long smartTipThreshold;
2638

2639
      private Sek(
2640
          Map<String, Object> extraParams,
2641
          List<Long> fixedAmounts,
2642
          List<Long> percentages,
2643
          Long smartTipThreshold) {
×
2644
        this.extraParams = extraParams;
×
2645
        this.fixedAmounts = fixedAmounts;
×
2646
        this.percentages = percentages;
×
2647
        this.smartTipThreshold = smartTipThreshold;
×
2648
      }
×
2649

2650
      public static Builder builder() {
2651
        return new Builder();
×
2652
      }
2653

2654
      public static class Builder {
×
2655
        private Map<String, Object> extraParams;
2656

2657
        private List<Long> fixedAmounts;
2658

2659
        private List<Long> percentages;
2660

2661
        private Long smartTipThreshold;
2662

2663
        /** Finalize and obtain parameter instance from this builder. */
2664
        public ConfigurationUpdateParams.Tipping.Sek build() {
2665
          return new ConfigurationUpdateParams.Tipping.Sek(
×
2666
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2667
        }
2668

2669
        /**
2670
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2671
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2672
         * map. See {@link ConfigurationUpdateParams.Tipping.Sek#extraParams} for the field
2673
         * documentation.
2674
         */
2675
        public Builder putExtraParam(String key, Object value) {
2676
          if (this.extraParams == null) {
×
2677
            this.extraParams = new HashMap<>();
×
2678
          }
2679
          this.extraParams.put(key, value);
×
2680
          return this;
×
2681
        }
2682

2683
        /**
2684
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2685
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2686
         * map. See {@link ConfigurationUpdateParams.Tipping.Sek#extraParams} for the field
2687
         * documentation.
2688
         */
2689
        public Builder putAllExtraParam(Map<String, Object> map) {
2690
          if (this.extraParams == null) {
×
2691
            this.extraParams = new HashMap<>();
×
2692
          }
2693
          this.extraParams.putAll(map);
×
2694
          return this;
×
2695
        }
2696

2697
        /**
2698
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2699
         * call, and subsequent calls adds additional elements to the original list. See {@link
2700
         * ConfigurationUpdateParams.Tipping.Sek#fixedAmounts} for the field documentation.
2701
         */
2702
        public Builder addFixedAmount(Long element) {
2703
          if (this.fixedAmounts == null) {
×
2704
            this.fixedAmounts = new ArrayList<>();
×
2705
          }
2706
          this.fixedAmounts.add(element);
×
2707
          return this;
×
2708
        }
2709

2710
        /**
2711
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2712
         * call, and subsequent calls adds additional elements to the original list. See {@link
2713
         * ConfigurationUpdateParams.Tipping.Sek#fixedAmounts} for the field documentation.
2714
         */
2715
        public Builder addAllFixedAmount(List<Long> elements) {
2716
          if (this.fixedAmounts == null) {
×
2717
            this.fixedAmounts = new ArrayList<>();
×
2718
          }
2719
          this.fixedAmounts.addAll(elements);
×
2720
          return this;
×
2721
        }
2722

2723
        /**
2724
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
2725
         * call, and subsequent calls adds additional elements to the original list. See {@link
2726
         * ConfigurationUpdateParams.Tipping.Sek#percentages} for the field documentation.
2727
         */
2728
        public Builder addPercentage(Long element) {
2729
          if (this.percentages == null) {
×
2730
            this.percentages = new ArrayList<>();
×
2731
          }
2732
          this.percentages.add(element);
×
2733
          return this;
×
2734
        }
2735

2736
        /**
2737
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
2738
         * call, and subsequent calls adds additional elements to the original list. See {@link
2739
         * ConfigurationUpdateParams.Tipping.Sek#percentages} for the field documentation.
2740
         */
2741
        public Builder addAllPercentage(List<Long> elements) {
2742
          if (this.percentages == null) {
×
2743
            this.percentages = new ArrayList<>();
×
2744
          }
2745
          this.percentages.addAll(elements);
×
2746
          return this;
×
2747
        }
2748

2749
        /**
2750
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2751
         * displayed.
2752
         */
2753
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2754
          this.smartTipThreshold = smartTipThreshold;
×
2755
          return this;
×
2756
        }
2757
      }
2758
    }
2759

2760
    @Getter
2761
    public static class Sgd {
2762
      /**
2763
       * Map of extra parameters for custom features not available in this client library. The
2764
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2765
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2766
       * name in this param object. Effectively, this map is flattened to its parent instance.
2767
       */
2768
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2769
      Map<String, Object> extraParams;
2770

2771
      /** Fixed amounts displayed when collecting a tip. */
2772
      @SerializedName("fixed_amounts")
2773
      List<Long> fixedAmounts;
2774

2775
      /** Percentages displayed when collecting a tip. */
2776
      @SerializedName("percentages")
2777
      List<Long> percentages;
2778

2779
      /**
2780
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2781
       * displayed.
2782
       */
2783
      @SerializedName("smart_tip_threshold")
2784
      Long smartTipThreshold;
2785

2786
      private Sgd(
2787
          Map<String, Object> extraParams,
2788
          List<Long> fixedAmounts,
2789
          List<Long> percentages,
2790
          Long smartTipThreshold) {
×
2791
        this.extraParams = extraParams;
×
2792
        this.fixedAmounts = fixedAmounts;
×
2793
        this.percentages = percentages;
×
2794
        this.smartTipThreshold = smartTipThreshold;
×
2795
      }
×
2796

2797
      public static Builder builder() {
2798
        return new Builder();
×
2799
      }
2800

2801
      public static class Builder {
×
2802
        private Map<String, Object> extraParams;
2803

2804
        private List<Long> fixedAmounts;
2805

2806
        private List<Long> percentages;
2807

2808
        private Long smartTipThreshold;
2809

2810
        /** Finalize and obtain parameter instance from this builder. */
2811
        public ConfigurationUpdateParams.Tipping.Sgd build() {
2812
          return new ConfigurationUpdateParams.Tipping.Sgd(
×
2813
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2814
        }
2815

2816
        /**
2817
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2818
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2819
         * map. See {@link ConfigurationUpdateParams.Tipping.Sgd#extraParams} for the field
2820
         * documentation.
2821
         */
2822
        public Builder putExtraParam(String key, Object value) {
2823
          if (this.extraParams == null) {
×
2824
            this.extraParams = new HashMap<>();
×
2825
          }
2826
          this.extraParams.put(key, value);
×
2827
          return this;
×
2828
        }
2829

2830
        /**
2831
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2832
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2833
         * map. See {@link ConfigurationUpdateParams.Tipping.Sgd#extraParams} for the field
2834
         * documentation.
2835
         */
2836
        public Builder putAllExtraParam(Map<String, Object> map) {
2837
          if (this.extraParams == null) {
×
2838
            this.extraParams = new HashMap<>();
×
2839
          }
2840
          this.extraParams.putAll(map);
×
2841
          return this;
×
2842
        }
2843

2844
        /**
2845
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2846
         * call, and subsequent calls adds additional elements to the original list. See {@link
2847
         * ConfigurationUpdateParams.Tipping.Sgd#fixedAmounts} for the field documentation.
2848
         */
2849
        public Builder addFixedAmount(Long element) {
2850
          if (this.fixedAmounts == null) {
×
2851
            this.fixedAmounts = new ArrayList<>();
×
2852
          }
2853
          this.fixedAmounts.add(element);
×
2854
          return this;
×
2855
        }
2856

2857
        /**
2858
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2859
         * call, and subsequent calls adds additional elements to the original list. See {@link
2860
         * ConfigurationUpdateParams.Tipping.Sgd#fixedAmounts} for the field documentation.
2861
         */
2862
        public Builder addAllFixedAmount(List<Long> elements) {
2863
          if (this.fixedAmounts == null) {
×
2864
            this.fixedAmounts = new ArrayList<>();
×
2865
          }
2866
          this.fixedAmounts.addAll(elements);
×
2867
          return this;
×
2868
        }
2869

2870
        /**
2871
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
2872
         * call, and subsequent calls adds additional elements to the original list. See {@link
2873
         * ConfigurationUpdateParams.Tipping.Sgd#percentages} for the field documentation.
2874
         */
2875
        public Builder addPercentage(Long element) {
2876
          if (this.percentages == null) {
×
2877
            this.percentages = new ArrayList<>();
×
2878
          }
2879
          this.percentages.add(element);
×
2880
          return this;
×
2881
        }
2882

2883
        /**
2884
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
2885
         * call, and subsequent calls adds additional elements to the original list. See {@link
2886
         * ConfigurationUpdateParams.Tipping.Sgd#percentages} for the field documentation.
2887
         */
2888
        public Builder addAllPercentage(List<Long> elements) {
2889
          if (this.percentages == null) {
×
2890
            this.percentages = new ArrayList<>();
×
2891
          }
2892
          this.percentages.addAll(elements);
×
2893
          return this;
×
2894
        }
2895

2896
        /**
2897
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2898
         * displayed.
2899
         */
2900
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2901
          this.smartTipThreshold = smartTipThreshold;
×
2902
          return this;
×
2903
        }
2904
      }
2905
    }
2906

2907
    @Getter
2908
    public static class Usd {
2909
      /**
2910
       * Map of extra parameters for custom features not available in this client library. The
2911
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2912
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2913
       * name in this param object. Effectively, this map is flattened to its parent instance.
2914
       */
2915
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2916
      Map<String, Object> extraParams;
2917

2918
      /** Fixed amounts displayed when collecting a tip. */
2919
      @SerializedName("fixed_amounts")
2920
      List<Long> fixedAmounts;
2921

2922
      /** Percentages displayed when collecting a tip. */
2923
      @SerializedName("percentages")
2924
      List<Long> percentages;
2925

2926
      /**
2927
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2928
       * displayed.
2929
       */
2930
      @SerializedName("smart_tip_threshold")
2931
      Long smartTipThreshold;
2932

2933
      private Usd(
2934
          Map<String, Object> extraParams,
2935
          List<Long> fixedAmounts,
2936
          List<Long> percentages,
2937
          Long smartTipThreshold) {
1✔
2938
        this.extraParams = extraParams;
1✔
2939
        this.fixedAmounts = fixedAmounts;
1✔
2940
        this.percentages = percentages;
1✔
2941
        this.smartTipThreshold = smartTipThreshold;
1✔
2942
      }
1✔
2943

2944
      public static Builder builder() {
2945
        return new Builder();
1✔
2946
      }
2947

2948
      public static class Builder {
1✔
2949
        private Map<String, Object> extraParams;
2950

2951
        private List<Long> fixedAmounts;
2952

2953
        private List<Long> percentages;
2954

2955
        private Long smartTipThreshold;
2956

2957
        /** Finalize and obtain parameter instance from this builder. */
2958
        public ConfigurationUpdateParams.Tipping.Usd build() {
2959
          return new ConfigurationUpdateParams.Tipping.Usd(
1✔
2960
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2961
        }
2962

2963
        /**
2964
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2965
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2966
         * map. See {@link ConfigurationUpdateParams.Tipping.Usd#extraParams} for the field
2967
         * documentation.
2968
         */
2969
        public Builder putExtraParam(String key, Object value) {
2970
          if (this.extraParams == null) {
×
2971
            this.extraParams = new HashMap<>();
×
2972
          }
2973
          this.extraParams.put(key, value);
×
2974
          return this;
×
2975
        }
2976

2977
        /**
2978
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2979
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2980
         * map. See {@link ConfigurationUpdateParams.Tipping.Usd#extraParams} for the field
2981
         * documentation.
2982
         */
2983
        public Builder putAllExtraParam(Map<String, Object> map) {
2984
          if (this.extraParams == null) {
×
2985
            this.extraParams = new HashMap<>();
×
2986
          }
2987
          this.extraParams.putAll(map);
×
2988
          return this;
×
2989
        }
2990

2991
        /**
2992
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2993
         * call, and subsequent calls adds additional elements to the original list. See {@link
2994
         * ConfigurationUpdateParams.Tipping.Usd#fixedAmounts} for the field documentation.
2995
         */
2996
        public Builder addFixedAmount(Long element) {
2997
          if (this.fixedAmounts == null) {
1✔
2998
            this.fixedAmounts = new ArrayList<>();
1✔
2999
          }
3000
          this.fixedAmounts.add(element);
1✔
3001
          return this;
1✔
3002
        }
3003

3004
        /**
3005
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
3006
         * call, and subsequent calls adds additional elements to the original list. See {@link
3007
         * ConfigurationUpdateParams.Tipping.Usd#fixedAmounts} for the field documentation.
3008
         */
3009
        public Builder addAllFixedAmount(List<Long> elements) {
3010
          if (this.fixedAmounts == null) {
×
3011
            this.fixedAmounts = new ArrayList<>();
×
3012
          }
3013
          this.fixedAmounts.addAll(elements);
×
3014
          return this;
×
3015
        }
3016

3017
        /**
3018
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
3019
         * call, and subsequent calls adds additional elements to the original list. See {@link
3020
         * ConfigurationUpdateParams.Tipping.Usd#percentages} for the field documentation.
3021
         */
3022
        public Builder addPercentage(Long element) {
3023
          if (this.percentages == null) {
×
3024
            this.percentages = new ArrayList<>();
×
3025
          }
3026
          this.percentages.add(element);
×
3027
          return this;
×
3028
        }
3029

3030
        /**
3031
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
3032
         * call, and subsequent calls adds additional elements to the original list. See {@link
3033
         * ConfigurationUpdateParams.Tipping.Usd#percentages} for the field documentation.
3034
         */
3035
        public Builder addAllPercentage(List<Long> elements) {
3036
          if (this.percentages == null) {
×
3037
            this.percentages = new ArrayList<>();
×
3038
          }
3039
          this.percentages.addAll(elements);
×
3040
          return this;
×
3041
        }
3042

3043
        /**
3044
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
3045
         * displayed.
3046
         */
3047
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
3048
          this.smartTipThreshold = smartTipThreshold;
×
3049
          return this;
×
3050
        }
3051
      }
3052
    }
3053
  }
3054

3055
  @Getter
3056
  public static class VerifoneP400 {
3057
    /**
3058
     * Map of extra parameters for custom features not available in this client library. The content
3059
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
3060
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
3061
     * param object. Effectively, this map is flattened to its parent instance.
3062
     */
3063
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
3064
    Map<String, Object> extraParams;
3065

3066
    /** A File ID representing an image you would like displayed on the reader. */
3067
    @SerializedName("splashscreen")
3068
    Object splashscreen;
3069

3070
    private VerifoneP400(Map<String, Object> extraParams, Object splashscreen) {
×
3071
      this.extraParams = extraParams;
×
3072
      this.splashscreen = splashscreen;
×
3073
    }
×
3074

3075
    public static Builder builder() {
3076
      return new Builder();
×
3077
    }
3078

3079
    public static class Builder {
×
3080
      private Map<String, Object> extraParams;
3081

3082
      private Object splashscreen;
3083

3084
      /** Finalize and obtain parameter instance from this builder. */
3085
      public ConfigurationUpdateParams.VerifoneP400 build() {
3086
        return new ConfigurationUpdateParams.VerifoneP400(this.extraParams, this.splashscreen);
×
3087
      }
3088

3089
      /**
3090
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
3091
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
3092
       * ConfigurationUpdateParams.VerifoneP400#extraParams} for the field documentation.
3093
       */
3094
      public Builder putExtraParam(String key, Object value) {
3095
        if (this.extraParams == null) {
×
3096
          this.extraParams = new HashMap<>();
×
3097
        }
3098
        this.extraParams.put(key, value);
×
3099
        return this;
×
3100
      }
3101

3102
      /**
3103
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
3104
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
3105
       * See {@link ConfigurationUpdateParams.VerifoneP400#extraParams} for the field documentation.
3106
       */
3107
      public Builder putAllExtraParam(Map<String, Object> map) {
3108
        if (this.extraParams == null) {
×
3109
          this.extraParams = new HashMap<>();
×
3110
        }
3111
        this.extraParams.putAll(map);
×
3112
        return this;
×
3113
      }
3114

3115
      /** A File ID representing an image you would like displayed on the reader. */
3116
      public Builder setSplashscreen(String splashscreen) {
3117
        this.splashscreen = splashscreen;
×
3118
        return this;
×
3119
      }
3120

3121
      /** A File ID representing an image you would like displayed on the reader. */
3122
      public Builder setSplashscreen(EmptyParam splashscreen) {
3123
        this.splashscreen = splashscreen;
×
3124
        return this;
×
3125
      }
3126
    }
3127
  }
3128
}
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

© 2026 Coveralls, Inc