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

stripe / stripe-java / #16731

10 Jan 2025 10:03PM UTC coverage: 12.334% (-0.006%) from 12.34%
#16731

Pull #1935

github

web-flow
Merge a48a408cc into fc96887fe
Pull Request #1935: Update generated code for beta

1 of 85 new or added lines in 4 files covered. (1.18%)

5882 existing lines in 7 files now uncovered.

18907 of 153294 relevant lines covered (12.33%)

0.12 hits per line

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

8.27
/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 JPY. */
612
    @SerializedName("jpy")
613
    Jpy jpy;
614

615
    /** Tipping configuration for MYR. */
616
    @SerializedName("myr")
617
    Myr myr;
618

619
    /** Tipping configuration for NOK. */
620
    @SerializedName("nok")
621
    Nok nok;
622

623
    /** Tipping configuration for NZD. */
624
    @SerializedName("nzd")
625
    Nzd nzd;
626

627
    /** Tipping configuration for PLN. */
628
    @SerializedName("pln")
629
    Pln pln;
630

631
    /** Tipping configuration for SEK. */
632
    @SerializedName("sek")
633
    Sek sek;
634

635
    /** Tipping configuration for SGD. */
636
    @SerializedName("sgd")
637
    Sgd sgd;
638

639
    /** Tipping configuration for USD. */
640
    @SerializedName("usd")
641
    Usd usd;
642

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

680
    public static Builder builder() {
681
      return new Builder();
1✔
682
    }
683

684
    public static class Builder {
1✔
685
      private Aud aud;
686

687
      private Cad cad;
688

689
      private Chf chf;
690

691
      private Czk czk;
692

693
      private Dkk dkk;
694

695
      private Eur eur;
696

697
      private Map<String, Object> extraParams;
698

699
      private Gbp gbp;
700

701
      private Hkd hkd;
702

703
      private Jpy jpy;
704

705
      private Myr myr;
706

707
      private Nok nok;
708

709
      private Nzd nzd;
710

711
      private Pln pln;
712

713
      private Sek sek;
714

715
      private Sgd sgd;
716

717
      private Usd usd;
718

719
      /** Finalize and obtain parameter instance from this builder. */
720
      public ConfigurationUpdateParams.Tipping build() {
721
        return new ConfigurationUpdateParams.Tipping(
1✔
722
            this.aud,
723
            this.cad,
724
            this.chf,
725
            this.czk,
726
            this.dkk,
727
            this.eur,
728
            this.extraParams,
729
            this.gbp,
730
            this.hkd,
731
            this.jpy,
732
            this.myr,
733
            this.nok,
734
            this.nzd,
735
            this.pln,
736
            this.sek,
737
            this.sgd,
738
            this.usd);
739
      }
740

741
      /** Tipping configuration for AUD. */
742
      public Builder setAud(ConfigurationUpdateParams.Tipping.Aud aud) {
743
        this.aud = aud;
×
744
        return this;
×
745
      }
746

747
      /** Tipping configuration for CAD. */
748
      public Builder setCad(ConfigurationUpdateParams.Tipping.Cad cad) {
749
        this.cad = cad;
×
750
        return this;
×
751
      }
752

753
      /** Tipping configuration for CHF. */
754
      public Builder setChf(ConfigurationUpdateParams.Tipping.Chf chf) {
755
        this.chf = chf;
×
756
        return this;
×
757
      }
758

759
      /** Tipping configuration for CZK. */
760
      public Builder setCzk(ConfigurationUpdateParams.Tipping.Czk czk) {
761
        this.czk = czk;
×
762
        return this;
×
763
      }
764

765
      /** Tipping configuration for DKK. */
766
      public Builder setDkk(ConfigurationUpdateParams.Tipping.Dkk dkk) {
767
        this.dkk = dkk;
×
768
        return this;
×
769
      }
770

771
      /** Tipping configuration for EUR. */
772
      public Builder setEur(ConfigurationUpdateParams.Tipping.Eur eur) {
773
        this.eur = eur;
×
774
        return this;
×
775
      }
776

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

790
      /**
791
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
792
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
793
       * See {@link ConfigurationUpdateParams.Tipping#extraParams} for the field documentation.
794
       */
795
      public Builder putAllExtraParam(Map<String, Object> map) {
796
        if (this.extraParams == null) {
×
797
          this.extraParams = new HashMap<>();
×
798
        }
799
        this.extraParams.putAll(map);
×
800
        return this;
×
801
      }
802

803
      /** Tipping configuration for GBP. */
804
      public Builder setGbp(ConfigurationUpdateParams.Tipping.Gbp gbp) {
805
        this.gbp = gbp;
×
806
        return this;
×
807
      }
808

809
      /** Tipping configuration for HKD. */
810
      public Builder setHkd(ConfigurationUpdateParams.Tipping.Hkd hkd) {
811
        this.hkd = hkd;
×
812
        return this;
×
813
      }
814

815
      /** Tipping configuration for JPY. */
816
      public Builder setJpy(ConfigurationUpdateParams.Tipping.Jpy jpy) {
NEW
817
        this.jpy = jpy;
×
NEW
818
        return this;
×
819
      }
820

821
      /** Tipping configuration for MYR. */
822
      public Builder setMyr(ConfigurationUpdateParams.Tipping.Myr myr) {
823
        this.myr = myr;
×
824
        return this;
×
825
      }
826

827
      /** Tipping configuration for NOK. */
828
      public Builder setNok(ConfigurationUpdateParams.Tipping.Nok nok) {
829
        this.nok = nok;
×
830
        return this;
×
831
      }
832

833
      /** Tipping configuration for NZD. */
834
      public Builder setNzd(ConfigurationUpdateParams.Tipping.Nzd nzd) {
835
        this.nzd = nzd;
×
836
        return this;
×
837
      }
838

839
      /** Tipping configuration for PLN. */
840
      public Builder setPln(ConfigurationUpdateParams.Tipping.Pln pln) {
841
        this.pln = pln;
×
842
        return this;
×
843
      }
844

845
      /** Tipping configuration for SEK. */
846
      public Builder setSek(ConfigurationUpdateParams.Tipping.Sek sek) {
847
        this.sek = sek;
×
848
        return this;
×
849
      }
850

851
      /** Tipping configuration for SGD. */
852
      public Builder setSgd(ConfigurationUpdateParams.Tipping.Sgd sgd) {
853
        this.sgd = sgd;
×
854
        return this;
×
855
      }
856

857
      /** Tipping configuration for USD. */
858
      public Builder setUsd(ConfigurationUpdateParams.Tipping.Usd usd) {
859
        this.usd = usd;
1✔
860
        return this;
1✔
861
      }
862
    }
863

864
    @Getter
865
    public static class Aud {
866
      /**
867
       * Map of extra parameters for custom features not available in this client library. The
868
       * content in this map is not serialized under this field's {@code @SerializedName} value.
869
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
870
       * name in this param object. Effectively, this map is flattened to its parent instance.
871
       */
872
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
873
      Map<String, Object> extraParams;
874

875
      /** Fixed amounts displayed when collecting a tip. */
876
      @SerializedName("fixed_amounts")
877
      List<Long> fixedAmounts;
878

879
      /** Percentages displayed when collecting a tip. */
880
      @SerializedName("percentages")
881
      List<Long> percentages;
882

883
      /**
884
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
885
       * displayed.
886
       */
887
      @SerializedName("smart_tip_threshold")
888
      Long smartTipThreshold;
889

890
      private Aud(
891
          Map<String, Object> extraParams,
892
          List<Long> fixedAmounts,
893
          List<Long> percentages,
894
          Long smartTipThreshold) {
×
895
        this.extraParams = extraParams;
×
896
        this.fixedAmounts = fixedAmounts;
×
897
        this.percentages = percentages;
×
898
        this.smartTipThreshold = smartTipThreshold;
×
899
      }
×
900

901
      public static Builder builder() {
902
        return new Builder();
×
903
      }
904

905
      public static class Builder {
×
906
        private Map<String, Object> extraParams;
907

908
        private List<Long> fixedAmounts;
909

910
        private List<Long> percentages;
911

912
        private Long smartTipThreshold;
913

914
        /** Finalize and obtain parameter instance from this builder. */
915
        public ConfigurationUpdateParams.Tipping.Aud build() {
916
          return new ConfigurationUpdateParams.Tipping.Aud(
×
917
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
918
        }
919

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

934
        /**
935
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
936
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
937
         * map. See {@link ConfigurationUpdateParams.Tipping.Aud#extraParams} for the field
938
         * documentation.
939
         */
940
        public Builder putAllExtraParam(Map<String, Object> map) {
941
          if (this.extraParams == null) {
×
942
            this.extraParams = new HashMap<>();
×
943
          }
944
          this.extraParams.putAll(map);
×
945
          return this;
×
946
        }
947

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

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

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

987
        /**
988
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
989
         * call, and subsequent calls adds additional elements to the original list. See {@link
990
         * ConfigurationUpdateParams.Tipping.Aud#percentages} for the field documentation.
991
         */
992
        public Builder addAllPercentage(List<Long> elements) {
993
          if (this.percentages == null) {
×
994
            this.percentages = new ArrayList<>();
×
995
          }
996
          this.percentages.addAll(elements);
×
997
          return this;
×
998
        }
999

1000
        /**
1001
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1002
         * displayed.
1003
         */
1004
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1005
          this.smartTipThreshold = smartTipThreshold;
×
1006
          return this;
×
1007
        }
1008
      }
1009
    }
1010

1011
    @Getter
1012
    public static class Cad {
1013
      /**
1014
       * Map of extra parameters for custom features not available in this client library. The
1015
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1016
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1017
       * name in this param object. Effectively, this map is flattened to its parent instance.
1018
       */
1019
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1020
      Map<String, Object> extraParams;
1021

1022
      /** Fixed amounts displayed when collecting a tip. */
1023
      @SerializedName("fixed_amounts")
1024
      List<Long> fixedAmounts;
1025

1026
      /** Percentages displayed when collecting a tip. */
1027
      @SerializedName("percentages")
1028
      List<Long> percentages;
1029

1030
      /**
1031
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1032
       * displayed.
1033
       */
1034
      @SerializedName("smart_tip_threshold")
1035
      Long smartTipThreshold;
1036

1037
      private Cad(
1038
          Map<String, Object> extraParams,
1039
          List<Long> fixedAmounts,
1040
          List<Long> percentages,
1041
          Long smartTipThreshold) {
×
1042
        this.extraParams = extraParams;
×
1043
        this.fixedAmounts = fixedAmounts;
×
1044
        this.percentages = percentages;
×
1045
        this.smartTipThreshold = smartTipThreshold;
×
1046
      }
×
1047

1048
      public static Builder builder() {
1049
        return new Builder();
×
1050
      }
1051

1052
      public static class Builder {
×
1053
        private Map<String, Object> extraParams;
1054

1055
        private List<Long> fixedAmounts;
1056

1057
        private List<Long> percentages;
1058

1059
        private Long smartTipThreshold;
1060

1061
        /** Finalize and obtain parameter instance from this builder. */
1062
        public ConfigurationUpdateParams.Tipping.Cad build() {
1063
          return new ConfigurationUpdateParams.Tipping.Cad(
×
1064
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1065
        }
1066

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

1081
        /**
1082
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1083
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1084
         * map. See {@link ConfigurationUpdateParams.Tipping.Cad#extraParams} for the field
1085
         * documentation.
1086
         */
1087
        public Builder putAllExtraParam(Map<String, Object> map) {
1088
          if (this.extraParams == null) {
×
1089
            this.extraParams = new HashMap<>();
×
1090
          }
1091
          this.extraParams.putAll(map);
×
1092
          return this;
×
1093
        }
1094

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

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

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

1134
        /**
1135
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
1136
         * call, and subsequent calls adds additional elements to the original list. See {@link
1137
         * ConfigurationUpdateParams.Tipping.Cad#percentages} for the field documentation.
1138
         */
1139
        public Builder addAllPercentage(List<Long> elements) {
1140
          if (this.percentages == null) {
×
1141
            this.percentages = new ArrayList<>();
×
1142
          }
1143
          this.percentages.addAll(elements);
×
1144
          return this;
×
1145
        }
1146

1147
        /**
1148
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1149
         * displayed.
1150
         */
1151
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1152
          this.smartTipThreshold = smartTipThreshold;
×
1153
          return this;
×
1154
        }
1155
      }
1156
    }
1157

1158
    @Getter
1159
    public static class Chf {
1160
      /**
1161
       * Map of extra parameters for custom features not available in this client library. The
1162
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1163
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1164
       * name in this param object. Effectively, this map is flattened to its parent instance.
1165
       */
1166
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1167
      Map<String, Object> extraParams;
1168

1169
      /** Fixed amounts displayed when collecting a tip. */
1170
      @SerializedName("fixed_amounts")
1171
      List<Long> fixedAmounts;
1172

1173
      /** Percentages displayed when collecting a tip. */
1174
      @SerializedName("percentages")
1175
      List<Long> percentages;
1176

1177
      /**
1178
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1179
       * displayed.
1180
       */
1181
      @SerializedName("smart_tip_threshold")
1182
      Long smartTipThreshold;
1183

1184
      private Chf(
1185
          Map<String, Object> extraParams,
1186
          List<Long> fixedAmounts,
1187
          List<Long> percentages,
1188
          Long smartTipThreshold) {
×
1189
        this.extraParams = extraParams;
×
1190
        this.fixedAmounts = fixedAmounts;
×
1191
        this.percentages = percentages;
×
1192
        this.smartTipThreshold = smartTipThreshold;
×
1193
      }
×
1194

1195
      public static Builder builder() {
1196
        return new Builder();
×
1197
      }
1198

1199
      public static class Builder {
×
1200
        private Map<String, Object> extraParams;
1201

1202
        private List<Long> fixedAmounts;
1203

1204
        private List<Long> percentages;
1205

1206
        private Long smartTipThreshold;
1207

1208
        /** Finalize and obtain parameter instance from this builder. */
1209
        public ConfigurationUpdateParams.Tipping.Chf build() {
1210
          return new ConfigurationUpdateParams.Tipping.Chf(
×
1211
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1212
        }
1213

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

1228
        /**
1229
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1230
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1231
         * map. See {@link ConfigurationUpdateParams.Tipping.Chf#extraParams} for the field
1232
         * documentation.
1233
         */
1234
        public Builder putAllExtraParam(Map<String, Object> map) {
1235
          if (this.extraParams == null) {
×
1236
            this.extraParams = new HashMap<>();
×
1237
          }
1238
          this.extraParams.putAll(map);
×
1239
          return this;
×
1240
        }
1241

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

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

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

1281
        /**
1282
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
1283
         * call, and subsequent calls adds additional elements to the original list. See {@link
1284
         * ConfigurationUpdateParams.Tipping.Chf#percentages} for the field documentation.
1285
         */
1286
        public Builder addAllPercentage(List<Long> elements) {
1287
          if (this.percentages == null) {
×
1288
            this.percentages = new ArrayList<>();
×
1289
          }
1290
          this.percentages.addAll(elements);
×
1291
          return this;
×
1292
        }
1293

1294
        /**
1295
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1296
         * displayed.
1297
         */
1298
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1299
          this.smartTipThreshold = smartTipThreshold;
×
1300
          return this;
×
1301
        }
1302
      }
1303
    }
1304

1305
    @Getter
1306
    public static class Czk {
1307
      /**
1308
       * Map of extra parameters for custom features not available in this client library. The
1309
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1310
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1311
       * name in this param object. Effectively, this map is flattened to its parent instance.
1312
       */
1313
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1314
      Map<String, Object> extraParams;
1315

1316
      /** Fixed amounts displayed when collecting a tip. */
1317
      @SerializedName("fixed_amounts")
1318
      List<Long> fixedAmounts;
1319

1320
      /** Percentages displayed when collecting a tip. */
1321
      @SerializedName("percentages")
1322
      List<Long> percentages;
1323

1324
      /**
1325
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1326
       * displayed.
1327
       */
1328
      @SerializedName("smart_tip_threshold")
1329
      Long smartTipThreshold;
1330

1331
      private Czk(
1332
          Map<String, Object> extraParams,
1333
          List<Long> fixedAmounts,
1334
          List<Long> percentages,
1335
          Long smartTipThreshold) {
×
1336
        this.extraParams = extraParams;
×
1337
        this.fixedAmounts = fixedAmounts;
×
1338
        this.percentages = percentages;
×
1339
        this.smartTipThreshold = smartTipThreshold;
×
1340
      }
×
1341

1342
      public static Builder builder() {
1343
        return new Builder();
×
1344
      }
1345

1346
      public static class Builder {
×
1347
        private Map<String, Object> extraParams;
1348

1349
        private List<Long> fixedAmounts;
1350

1351
        private List<Long> percentages;
1352

1353
        private Long smartTipThreshold;
1354

1355
        /** Finalize and obtain parameter instance from this builder. */
1356
        public ConfigurationUpdateParams.Tipping.Czk build() {
1357
          return new ConfigurationUpdateParams.Tipping.Czk(
×
1358
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1359
        }
1360

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

1375
        /**
1376
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1377
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1378
         * map. See {@link ConfigurationUpdateParams.Tipping.Czk#extraParams} for the field
1379
         * documentation.
1380
         */
1381
        public Builder putAllExtraParam(Map<String, Object> map) {
1382
          if (this.extraParams == null) {
×
1383
            this.extraParams = new HashMap<>();
×
1384
          }
1385
          this.extraParams.putAll(map);
×
1386
          return this;
×
1387
        }
1388

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

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

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

1428
        /**
1429
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
1430
         * call, and subsequent calls adds additional elements to the original list. See {@link
1431
         * ConfigurationUpdateParams.Tipping.Czk#percentages} for the field documentation.
1432
         */
1433
        public Builder addAllPercentage(List<Long> elements) {
1434
          if (this.percentages == null) {
×
1435
            this.percentages = new ArrayList<>();
×
1436
          }
1437
          this.percentages.addAll(elements);
×
1438
          return this;
×
1439
        }
1440

1441
        /**
1442
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1443
         * displayed.
1444
         */
1445
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1446
          this.smartTipThreshold = smartTipThreshold;
×
1447
          return this;
×
1448
        }
1449
      }
1450
    }
1451

1452
    @Getter
1453
    public static class Dkk {
1454
      /**
1455
       * Map of extra parameters for custom features not available in this client library. The
1456
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1457
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1458
       * name in this param object. Effectively, this map is flattened to its parent instance.
1459
       */
1460
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1461
      Map<String, Object> extraParams;
1462

1463
      /** Fixed amounts displayed when collecting a tip. */
1464
      @SerializedName("fixed_amounts")
1465
      List<Long> fixedAmounts;
1466

1467
      /** Percentages displayed when collecting a tip. */
1468
      @SerializedName("percentages")
1469
      List<Long> percentages;
1470

1471
      /**
1472
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1473
       * displayed.
1474
       */
1475
      @SerializedName("smart_tip_threshold")
1476
      Long smartTipThreshold;
1477

1478
      private Dkk(
1479
          Map<String, Object> extraParams,
1480
          List<Long> fixedAmounts,
1481
          List<Long> percentages,
1482
          Long smartTipThreshold) {
×
1483
        this.extraParams = extraParams;
×
1484
        this.fixedAmounts = fixedAmounts;
×
1485
        this.percentages = percentages;
×
1486
        this.smartTipThreshold = smartTipThreshold;
×
1487
      }
×
1488

1489
      public static Builder builder() {
1490
        return new Builder();
×
1491
      }
1492

1493
      public static class Builder {
×
1494
        private Map<String, Object> extraParams;
1495

1496
        private List<Long> fixedAmounts;
1497

1498
        private List<Long> percentages;
1499

1500
        private Long smartTipThreshold;
1501

1502
        /** Finalize and obtain parameter instance from this builder. */
1503
        public ConfigurationUpdateParams.Tipping.Dkk build() {
1504
          return new ConfigurationUpdateParams.Tipping.Dkk(
×
1505
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1506
        }
1507

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

1522
        /**
1523
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1524
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1525
         * map. See {@link ConfigurationUpdateParams.Tipping.Dkk#extraParams} for the field
1526
         * documentation.
1527
         */
1528
        public Builder putAllExtraParam(Map<String, Object> map) {
1529
          if (this.extraParams == null) {
×
1530
            this.extraParams = new HashMap<>();
×
1531
          }
1532
          this.extraParams.putAll(map);
×
1533
          return this;
×
1534
        }
1535

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

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

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

1575
        /**
1576
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
1577
         * call, and subsequent calls adds additional elements to the original list. See {@link
1578
         * ConfigurationUpdateParams.Tipping.Dkk#percentages} for the field documentation.
1579
         */
1580
        public Builder addAllPercentage(List<Long> elements) {
1581
          if (this.percentages == null) {
×
1582
            this.percentages = new ArrayList<>();
×
1583
          }
1584
          this.percentages.addAll(elements);
×
1585
          return this;
×
1586
        }
1587

1588
        /**
1589
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1590
         * displayed.
1591
         */
1592
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1593
          this.smartTipThreshold = smartTipThreshold;
×
1594
          return this;
×
1595
        }
1596
      }
1597
    }
1598

1599
    @Getter
1600
    public static class Eur {
1601
      /**
1602
       * Map of extra parameters for custom features not available in this client library. The
1603
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1604
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1605
       * name in this param object. Effectively, this map is flattened to its parent instance.
1606
       */
1607
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1608
      Map<String, Object> extraParams;
1609

1610
      /** Fixed amounts displayed when collecting a tip. */
1611
      @SerializedName("fixed_amounts")
1612
      List<Long> fixedAmounts;
1613

1614
      /** Percentages displayed when collecting a tip. */
1615
      @SerializedName("percentages")
1616
      List<Long> percentages;
1617

1618
      /**
1619
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1620
       * displayed.
1621
       */
1622
      @SerializedName("smart_tip_threshold")
1623
      Long smartTipThreshold;
1624

1625
      private Eur(
1626
          Map<String, Object> extraParams,
1627
          List<Long> fixedAmounts,
1628
          List<Long> percentages,
1629
          Long smartTipThreshold) {
×
1630
        this.extraParams = extraParams;
×
1631
        this.fixedAmounts = fixedAmounts;
×
1632
        this.percentages = percentages;
×
1633
        this.smartTipThreshold = smartTipThreshold;
×
1634
      }
×
1635

1636
      public static Builder builder() {
1637
        return new Builder();
×
1638
      }
1639

1640
      public static class Builder {
×
1641
        private Map<String, Object> extraParams;
1642

1643
        private List<Long> fixedAmounts;
1644

1645
        private List<Long> percentages;
1646

1647
        private Long smartTipThreshold;
1648

1649
        /** Finalize and obtain parameter instance from this builder. */
1650
        public ConfigurationUpdateParams.Tipping.Eur build() {
1651
          return new ConfigurationUpdateParams.Tipping.Eur(
×
1652
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1653
        }
1654

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

1669
        /**
1670
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1671
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1672
         * map. See {@link ConfigurationUpdateParams.Tipping.Eur#extraParams} for the field
1673
         * documentation.
1674
         */
1675
        public Builder putAllExtraParam(Map<String, Object> map) {
1676
          if (this.extraParams == null) {
×
1677
            this.extraParams = new HashMap<>();
×
1678
          }
1679
          this.extraParams.putAll(map);
×
1680
          return this;
×
1681
        }
1682

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

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

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

1722
        /**
1723
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
1724
         * call, and subsequent calls adds additional elements to the original list. See {@link
1725
         * ConfigurationUpdateParams.Tipping.Eur#percentages} for the field documentation.
1726
         */
1727
        public Builder addAllPercentage(List<Long> elements) {
1728
          if (this.percentages == null) {
×
1729
            this.percentages = new ArrayList<>();
×
1730
          }
1731
          this.percentages.addAll(elements);
×
1732
          return this;
×
1733
        }
1734

1735
        /**
1736
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1737
         * displayed.
1738
         */
1739
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1740
          this.smartTipThreshold = smartTipThreshold;
×
1741
          return this;
×
1742
        }
1743
      }
1744
    }
1745

1746
    @Getter
1747
    public static class Gbp {
1748
      /**
1749
       * Map of extra parameters for custom features not available in this client library. The
1750
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1751
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1752
       * name in this param object. Effectively, this map is flattened to its parent instance.
1753
       */
1754
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1755
      Map<String, Object> extraParams;
1756

1757
      /** Fixed amounts displayed when collecting a tip. */
1758
      @SerializedName("fixed_amounts")
1759
      List<Long> fixedAmounts;
1760

1761
      /** Percentages displayed when collecting a tip. */
1762
      @SerializedName("percentages")
1763
      List<Long> percentages;
1764

1765
      /**
1766
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1767
       * displayed.
1768
       */
1769
      @SerializedName("smart_tip_threshold")
1770
      Long smartTipThreshold;
1771

1772
      private Gbp(
1773
          Map<String, Object> extraParams,
1774
          List<Long> fixedAmounts,
1775
          List<Long> percentages,
1776
          Long smartTipThreshold) {
×
1777
        this.extraParams = extraParams;
×
1778
        this.fixedAmounts = fixedAmounts;
×
1779
        this.percentages = percentages;
×
1780
        this.smartTipThreshold = smartTipThreshold;
×
1781
      }
×
1782

1783
      public static Builder builder() {
1784
        return new Builder();
×
1785
      }
1786

1787
      public static class Builder {
×
1788
        private Map<String, Object> extraParams;
1789

1790
        private List<Long> fixedAmounts;
1791

1792
        private List<Long> percentages;
1793

1794
        private Long smartTipThreshold;
1795

1796
        /** Finalize and obtain parameter instance from this builder. */
1797
        public ConfigurationUpdateParams.Tipping.Gbp build() {
1798
          return new ConfigurationUpdateParams.Tipping.Gbp(
×
1799
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1800
        }
1801

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

1816
        /**
1817
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1818
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1819
         * map. See {@link ConfigurationUpdateParams.Tipping.Gbp#extraParams} for the field
1820
         * documentation.
1821
         */
1822
        public Builder putAllExtraParam(Map<String, Object> map) {
1823
          if (this.extraParams == null) {
×
1824
            this.extraParams = new HashMap<>();
×
1825
          }
1826
          this.extraParams.putAll(map);
×
1827
          return this;
×
1828
        }
1829

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

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

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

1869
        /**
1870
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
1871
         * call, and subsequent calls adds additional elements to the original list. See {@link
1872
         * ConfigurationUpdateParams.Tipping.Gbp#percentages} for the field documentation.
1873
         */
1874
        public Builder addAllPercentage(List<Long> elements) {
1875
          if (this.percentages == null) {
×
1876
            this.percentages = new ArrayList<>();
×
1877
          }
1878
          this.percentages.addAll(elements);
×
1879
          return this;
×
1880
        }
1881

1882
        /**
1883
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1884
         * displayed.
1885
         */
1886
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1887
          this.smartTipThreshold = smartTipThreshold;
×
1888
          return this;
×
1889
        }
1890
      }
1891
    }
1892

1893
    @Getter
1894
    public static class Hkd {
1895
      /**
1896
       * Map of extra parameters for custom features not available in this client library. The
1897
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1898
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1899
       * name in this param object. Effectively, this map is flattened to its parent instance.
1900
       */
1901
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1902
      Map<String, Object> extraParams;
1903

1904
      /** Fixed amounts displayed when collecting a tip. */
1905
      @SerializedName("fixed_amounts")
1906
      List<Long> fixedAmounts;
1907

1908
      /** Percentages displayed when collecting a tip. */
1909
      @SerializedName("percentages")
1910
      List<Long> percentages;
1911

1912
      /**
1913
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1914
       * displayed.
1915
       */
1916
      @SerializedName("smart_tip_threshold")
1917
      Long smartTipThreshold;
1918

1919
      private Hkd(
1920
          Map<String, Object> extraParams,
1921
          List<Long> fixedAmounts,
1922
          List<Long> percentages,
1923
          Long smartTipThreshold) {
×
1924
        this.extraParams = extraParams;
×
1925
        this.fixedAmounts = fixedAmounts;
×
1926
        this.percentages = percentages;
×
1927
        this.smartTipThreshold = smartTipThreshold;
×
1928
      }
×
1929

1930
      public static Builder builder() {
1931
        return new Builder();
×
1932
      }
1933

1934
      public static class Builder {
×
1935
        private Map<String, Object> extraParams;
1936

1937
        private List<Long> fixedAmounts;
1938

1939
        private List<Long> percentages;
1940

1941
        private Long smartTipThreshold;
1942

1943
        /** Finalize and obtain parameter instance from this builder. */
1944
        public ConfigurationUpdateParams.Tipping.Hkd build() {
1945
          return new ConfigurationUpdateParams.Tipping.Hkd(
×
1946
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1947
        }
1948

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

1963
        /**
1964
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1965
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1966
         * map. See {@link ConfigurationUpdateParams.Tipping.Hkd#extraParams} for the field
1967
         * documentation.
1968
         */
1969
        public Builder putAllExtraParam(Map<String, Object> map) {
1970
          if (this.extraParams == null) {
×
1971
            this.extraParams = new HashMap<>();
×
1972
          }
1973
          this.extraParams.putAll(map);
×
1974
          return this;
×
1975
        }
1976

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

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

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

2016
        /**
2017
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
2018
         * call, and subsequent calls adds additional elements to the original list. See {@link
2019
         * ConfigurationUpdateParams.Tipping.Hkd#percentages} for the field documentation.
2020
         */
2021
        public Builder addAllPercentage(List<Long> elements) {
2022
          if (this.percentages == null) {
×
2023
            this.percentages = new ArrayList<>();
×
2024
          }
2025
          this.percentages.addAll(elements);
×
2026
          return this;
×
2027
        }
2028

2029
        /**
2030
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2031
         * displayed.
2032
         */
2033
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2034
          this.smartTipThreshold = smartTipThreshold;
×
2035
          return this;
×
2036
        }
2037
      }
2038
    }
2039

2040
    @Getter
2041
    public static class Jpy {
2042
      /**
2043
       * Map of extra parameters for custom features not available in this client library. The
2044
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2045
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2046
       * name in this param object. Effectively, this map is flattened to its parent instance.
2047
       */
2048
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2049
      Map<String, Object> extraParams;
2050

2051
      /** Fixed amounts displayed when collecting a tip. */
2052
      @SerializedName("fixed_amounts")
2053
      List<Long> fixedAmounts;
2054

2055
      /** Percentages displayed when collecting a tip. */
2056
      @SerializedName("percentages")
2057
      List<Long> percentages;
2058

2059
      /**
2060
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2061
       * displayed.
2062
       */
2063
      @SerializedName("smart_tip_threshold")
2064
      Long smartTipThreshold;
2065

2066
      private Jpy(
2067
          Map<String, Object> extraParams,
2068
          List<Long> fixedAmounts,
2069
          List<Long> percentages,
NEW
2070
          Long smartTipThreshold) {
×
NEW
2071
        this.extraParams = extraParams;
×
NEW
2072
        this.fixedAmounts = fixedAmounts;
×
NEW
2073
        this.percentages = percentages;
×
NEW
2074
        this.smartTipThreshold = smartTipThreshold;
×
NEW
2075
      }
×
2076

2077
      public static Builder builder() {
NEW
2078
        return new Builder();
×
2079
      }
2080

NEW
2081
      public static class Builder {
×
2082
        private Map<String, Object> extraParams;
2083

2084
        private List<Long> fixedAmounts;
2085

2086
        private List<Long> percentages;
2087

2088
        private Long smartTipThreshold;
2089

2090
        /** Finalize and obtain parameter instance from this builder. */
2091
        public ConfigurationUpdateParams.Tipping.Jpy build() {
NEW
2092
          return new ConfigurationUpdateParams.Tipping.Jpy(
×
2093
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2094
        }
2095

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

2110
        /**
2111
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2112
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2113
         * map. See {@link ConfigurationUpdateParams.Tipping.Jpy#extraParams} for the field
2114
         * documentation.
2115
         */
2116
        public Builder putAllExtraParam(Map<String, Object> map) {
NEW
2117
          if (this.extraParams == null) {
×
NEW
2118
            this.extraParams = new HashMap<>();
×
2119
          }
NEW
2120
          this.extraParams.putAll(map);
×
NEW
2121
          return this;
×
2122
        }
2123

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

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

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

2163
        /**
2164
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
2165
         * call, and subsequent calls adds additional elements to the original list. See {@link
2166
         * ConfigurationUpdateParams.Tipping.Jpy#percentages} for the field documentation.
2167
         */
2168
        public Builder addAllPercentage(List<Long> elements) {
NEW
2169
          if (this.percentages == null) {
×
NEW
2170
            this.percentages = new ArrayList<>();
×
2171
          }
NEW
2172
          this.percentages.addAll(elements);
×
NEW
2173
          return this;
×
2174
        }
2175

2176
        /**
2177
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2178
         * displayed.
2179
         */
2180
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
NEW
2181
          this.smartTipThreshold = smartTipThreshold;
×
NEW
2182
          return this;
×
2183
        }
2184
      }
2185
    }
2186

2187
    @Getter
2188
    public static class Myr {
2189
      /**
2190
       * Map of extra parameters for custom features not available in this client library. The
2191
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2192
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2193
       * name in this param object. Effectively, this map is flattened to its parent instance.
2194
       */
2195
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2196
      Map<String, Object> extraParams;
2197

2198
      /** Fixed amounts displayed when collecting a tip. */
2199
      @SerializedName("fixed_amounts")
2200
      List<Long> fixedAmounts;
2201

2202
      /** Percentages displayed when collecting a tip. */
2203
      @SerializedName("percentages")
2204
      List<Long> percentages;
2205

2206
      /**
2207
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2208
       * displayed.
2209
       */
2210
      @SerializedName("smart_tip_threshold")
2211
      Long smartTipThreshold;
2212

2213
      private Myr(
2214
          Map<String, Object> extraParams,
2215
          List<Long> fixedAmounts,
2216
          List<Long> percentages,
2217
          Long smartTipThreshold) {
×
2218
        this.extraParams = extraParams;
×
2219
        this.fixedAmounts = fixedAmounts;
×
2220
        this.percentages = percentages;
×
2221
        this.smartTipThreshold = smartTipThreshold;
×
2222
      }
×
2223

2224
      public static Builder builder() {
2225
        return new Builder();
×
2226
      }
2227

2228
      public static class Builder {
×
2229
        private Map<String, Object> extraParams;
2230

2231
        private List<Long> fixedAmounts;
2232

2233
        private List<Long> percentages;
2234

2235
        private Long smartTipThreshold;
2236

2237
        /** Finalize and obtain parameter instance from this builder. */
2238
        public ConfigurationUpdateParams.Tipping.Myr build() {
2239
          return new ConfigurationUpdateParams.Tipping.Myr(
×
2240
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2241
        }
2242

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

2257
        /**
2258
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2259
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2260
         * map. See {@link ConfigurationUpdateParams.Tipping.Myr#extraParams} for the field
2261
         * documentation.
2262
         */
2263
        public Builder putAllExtraParam(Map<String, Object> map) {
2264
          if (this.extraParams == null) {
×
2265
            this.extraParams = new HashMap<>();
×
2266
          }
2267
          this.extraParams.putAll(map);
×
2268
          return this;
×
2269
        }
2270

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

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

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

2310
        /**
2311
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
2312
         * call, and subsequent calls adds additional elements to the original list. See {@link
2313
         * ConfigurationUpdateParams.Tipping.Myr#percentages} for the field documentation.
2314
         */
2315
        public Builder addAllPercentage(List<Long> elements) {
2316
          if (this.percentages == null) {
×
2317
            this.percentages = new ArrayList<>();
×
2318
          }
2319
          this.percentages.addAll(elements);
×
2320
          return this;
×
2321
        }
2322

2323
        /**
2324
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2325
         * displayed.
2326
         */
2327
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2328
          this.smartTipThreshold = smartTipThreshold;
×
2329
          return this;
×
2330
        }
2331
      }
2332
    }
2333

2334
    @Getter
2335
    public static class Nok {
2336
      /**
2337
       * Map of extra parameters for custom features not available in this client library. The
2338
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2339
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2340
       * name in this param object. Effectively, this map is flattened to its parent instance.
2341
       */
2342
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2343
      Map<String, Object> extraParams;
2344

2345
      /** Fixed amounts displayed when collecting a tip. */
2346
      @SerializedName("fixed_amounts")
2347
      List<Long> fixedAmounts;
2348

2349
      /** Percentages displayed when collecting a tip. */
2350
      @SerializedName("percentages")
2351
      List<Long> percentages;
2352

2353
      /**
2354
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2355
       * displayed.
2356
       */
2357
      @SerializedName("smart_tip_threshold")
2358
      Long smartTipThreshold;
2359

2360
      private Nok(
2361
          Map<String, Object> extraParams,
2362
          List<Long> fixedAmounts,
2363
          List<Long> percentages,
2364
          Long smartTipThreshold) {
×
2365
        this.extraParams = extraParams;
×
2366
        this.fixedAmounts = fixedAmounts;
×
2367
        this.percentages = percentages;
×
2368
        this.smartTipThreshold = smartTipThreshold;
×
2369
      }
×
2370

2371
      public static Builder builder() {
2372
        return new Builder();
×
2373
      }
2374

2375
      public static class Builder {
×
2376
        private Map<String, Object> extraParams;
2377

2378
        private List<Long> fixedAmounts;
2379

2380
        private List<Long> percentages;
2381

2382
        private Long smartTipThreshold;
2383

2384
        /** Finalize and obtain parameter instance from this builder. */
2385
        public ConfigurationUpdateParams.Tipping.Nok build() {
2386
          return new ConfigurationUpdateParams.Tipping.Nok(
×
2387
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2388
        }
2389

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

2404
        /**
2405
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2406
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2407
         * map. See {@link ConfigurationUpdateParams.Tipping.Nok#extraParams} for the field
2408
         * documentation.
2409
         */
2410
        public Builder putAllExtraParam(Map<String, Object> map) {
2411
          if (this.extraParams == null) {
×
2412
            this.extraParams = new HashMap<>();
×
2413
          }
2414
          this.extraParams.putAll(map);
×
2415
          return this;
×
2416
        }
2417

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

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

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

2457
        /**
2458
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
2459
         * call, and subsequent calls adds additional elements to the original list. See {@link
2460
         * ConfigurationUpdateParams.Tipping.Nok#percentages} for the field documentation.
2461
         */
2462
        public Builder addAllPercentage(List<Long> elements) {
2463
          if (this.percentages == null) {
×
2464
            this.percentages = new ArrayList<>();
×
2465
          }
2466
          this.percentages.addAll(elements);
×
2467
          return this;
×
2468
        }
2469

2470
        /**
2471
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2472
         * displayed.
2473
         */
2474
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2475
          this.smartTipThreshold = smartTipThreshold;
×
2476
          return this;
×
2477
        }
2478
      }
2479
    }
2480

2481
    @Getter
2482
    public static class Nzd {
2483
      /**
2484
       * Map of extra parameters for custom features not available in this client library. The
2485
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2486
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2487
       * name in this param object. Effectively, this map is flattened to its parent instance.
2488
       */
2489
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2490
      Map<String, Object> extraParams;
2491

2492
      /** Fixed amounts displayed when collecting a tip. */
2493
      @SerializedName("fixed_amounts")
2494
      List<Long> fixedAmounts;
2495

2496
      /** Percentages displayed when collecting a tip. */
2497
      @SerializedName("percentages")
2498
      List<Long> percentages;
2499

2500
      /**
2501
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2502
       * displayed.
2503
       */
2504
      @SerializedName("smart_tip_threshold")
2505
      Long smartTipThreshold;
2506

2507
      private Nzd(
2508
          Map<String, Object> extraParams,
2509
          List<Long> fixedAmounts,
2510
          List<Long> percentages,
2511
          Long smartTipThreshold) {
×
2512
        this.extraParams = extraParams;
×
2513
        this.fixedAmounts = fixedAmounts;
×
2514
        this.percentages = percentages;
×
2515
        this.smartTipThreshold = smartTipThreshold;
×
2516
      }
×
2517

2518
      public static Builder builder() {
2519
        return new Builder();
×
2520
      }
2521

2522
      public static class Builder {
×
2523
        private Map<String, Object> extraParams;
2524

2525
        private List<Long> fixedAmounts;
2526

2527
        private List<Long> percentages;
2528

2529
        private Long smartTipThreshold;
2530

2531
        /** Finalize and obtain parameter instance from this builder. */
2532
        public ConfigurationUpdateParams.Tipping.Nzd build() {
2533
          return new ConfigurationUpdateParams.Tipping.Nzd(
×
2534
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2535
        }
2536

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

2551
        /**
2552
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2553
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2554
         * map. See {@link ConfigurationUpdateParams.Tipping.Nzd#extraParams} for the field
2555
         * documentation.
2556
         */
2557
        public Builder putAllExtraParam(Map<String, Object> map) {
2558
          if (this.extraParams == null) {
×
2559
            this.extraParams = new HashMap<>();
×
2560
          }
2561
          this.extraParams.putAll(map);
×
2562
          return this;
×
2563
        }
2564

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

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

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

2604
        /**
2605
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
2606
         * call, and subsequent calls adds additional elements to the original list. See {@link
2607
         * ConfigurationUpdateParams.Tipping.Nzd#percentages} for the field documentation.
2608
         */
2609
        public Builder addAllPercentage(List<Long> elements) {
2610
          if (this.percentages == null) {
×
2611
            this.percentages = new ArrayList<>();
×
2612
          }
2613
          this.percentages.addAll(elements);
×
2614
          return this;
×
2615
        }
2616

2617
        /**
2618
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2619
         * displayed.
2620
         */
2621
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2622
          this.smartTipThreshold = smartTipThreshold;
×
2623
          return this;
×
2624
        }
2625
      }
2626
    }
2627

2628
    @Getter
2629
    public static class Pln {
2630
      /**
2631
       * Map of extra parameters for custom features not available in this client library. The
2632
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2633
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2634
       * name in this param object. Effectively, this map is flattened to its parent instance.
2635
       */
2636
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2637
      Map<String, Object> extraParams;
2638

2639
      /** Fixed amounts displayed when collecting a tip. */
2640
      @SerializedName("fixed_amounts")
2641
      List<Long> fixedAmounts;
2642

2643
      /** Percentages displayed when collecting a tip. */
2644
      @SerializedName("percentages")
2645
      List<Long> percentages;
2646

2647
      /**
2648
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2649
       * displayed.
2650
       */
2651
      @SerializedName("smart_tip_threshold")
2652
      Long smartTipThreshold;
2653

2654
      private Pln(
2655
          Map<String, Object> extraParams,
2656
          List<Long> fixedAmounts,
2657
          List<Long> percentages,
2658
          Long smartTipThreshold) {
×
2659
        this.extraParams = extraParams;
×
2660
        this.fixedAmounts = fixedAmounts;
×
2661
        this.percentages = percentages;
×
2662
        this.smartTipThreshold = smartTipThreshold;
×
2663
      }
×
2664

2665
      public static Builder builder() {
2666
        return new Builder();
×
2667
      }
2668

2669
      public static class Builder {
×
2670
        private Map<String, Object> extraParams;
2671

2672
        private List<Long> fixedAmounts;
2673

2674
        private List<Long> percentages;
2675

2676
        private Long smartTipThreshold;
2677

2678
        /** Finalize and obtain parameter instance from this builder. */
2679
        public ConfigurationUpdateParams.Tipping.Pln build() {
2680
          return new ConfigurationUpdateParams.Tipping.Pln(
×
2681
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2682
        }
2683

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

2698
        /**
2699
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2700
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2701
         * map. See {@link ConfigurationUpdateParams.Tipping.Pln#extraParams} for the field
2702
         * documentation.
2703
         */
2704
        public Builder putAllExtraParam(Map<String, Object> map) {
2705
          if (this.extraParams == null) {
×
2706
            this.extraParams = new HashMap<>();
×
2707
          }
2708
          this.extraParams.putAll(map);
×
2709
          return this;
×
2710
        }
2711

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

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

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

2751
        /**
2752
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
2753
         * call, and subsequent calls adds additional elements to the original list. See {@link
2754
         * ConfigurationUpdateParams.Tipping.Pln#percentages} for the field documentation.
2755
         */
2756
        public Builder addAllPercentage(List<Long> elements) {
2757
          if (this.percentages == null) {
×
2758
            this.percentages = new ArrayList<>();
×
2759
          }
2760
          this.percentages.addAll(elements);
×
2761
          return this;
×
2762
        }
2763

2764
        /**
2765
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2766
         * displayed.
2767
         */
2768
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2769
          this.smartTipThreshold = smartTipThreshold;
×
2770
          return this;
×
2771
        }
2772
      }
2773
    }
2774

2775
    @Getter
2776
    public static class Sek {
2777
      /**
2778
       * Map of extra parameters for custom features not available in this client library. The
2779
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2780
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2781
       * name in this param object. Effectively, this map is flattened to its parent instance.
2782
       */
2783
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2784
      Map<String, Object> extraParams;
2785

2786
      /** Fixed amounts displayed when collecting a tip. */
2787
      @SerializedName("fixed_amounts")
2788
      List<Long> fixedAmounts;
2789

2790
      /** Percentages displayed when collecting a tip. */
2791
      @SerializedName("percentages")
2792
      List<Long> percentages;
2793

2794
      /**
2795
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2796
       * displayed.
2797
       */
2798
      @SerializedName("smart_tip_threshold")
2799
      Long smartTipThreshold;
2800

2801
      private Sek(
2802
          Map<String, Object> extraParams,
2803
          List<Long> fixedAmounts,
2804
          List<Long> percentages,
2805
          Long smartTipThreshold) {
×
2806
        this.extraParams = extraParams;
×
2807
        this.fixedAmounts = fixedAmounts;
×
2808
        this.percentages = percentages;
×
2809
        this.smartTipThreshold = smartTipThreshold;
×
2810
      }
×
2811

2812
      public static Builder builder() {
2813
        return new Builder();
×
2814
      }
2815

2816
      public static class Builder {
×
2817
        private Map<String, Object> extraParams;
2818

2819
        private List<Long> fixedAmounts;
2820

2821
        private List<Long> percentages;
2822

2823
        private Long smartTipThreshold;
2824

2825
        /** Finalize and obtain parameter instance from this builder. */
2826
        public ConfigurationUpdateParams.Tipping.Sek build() {
2827
          return new ConfigurationUpdateParams.Tipping.Sek(
×
2828
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2829
        }
2830

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

2845
        /**
2846
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2847
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2848
         * map. See {@link ConfigurationUpdateParams.Tipping.Sek#extraParams} for the field
2849
         * documentation.
2850
         */
2851
        public Builder putAllExtraParam(Map<String, Object> map) {
2852
          if (this.extraParams == null) {
×
2853
            this.extraParams = new HashMap<>();
×
2854
          }
2855
          this.extraParams.putAll(map);
×
2856
          return this;
×
2857
        }
2858

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

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

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

2898
        /**
2899
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
2900
         * call, and subsequent calls adds additional elements to the original list. See {@link
2901
         * ConfigurationUpdateParams.Tipping.Sek#percentages} for the field documentation.
2902
         */
2903
        public Builder addAllPercentage(List<Long> elements) {
2904
          if (this.percentages == null) {
×
2905
            this.percentages = new ArrayList<>();
×
2906
          }
2907
          this.percentages.addAll(elements);
×
2908
          return this;
×
2909
        }
2910

2911
        /**
2912
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2913
         * displayed.
2914
         */
2915
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2916
          this.smartTipThreshold = smartTipThreshold;
×
2917
          return this;
×
2918
        }
2919
      }
2920
    }
2921

2922
    @Getter
2923
    public static class Sgd {
2924
      /**
2925
       * Map of extra parameters for custom features not available in this client library. The
2926
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2927
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2928
       * name in this param object. Effectively, this map is flattened to its parent instance.
2929
       */
2930
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2931
      Map<String, Object> extraParams;
2932

2933
      /** Fixed amounts displayed when collecting a tip. */
2934
      @SerializedName("fixed_amounts")
2935
      List<Long> fixedAmounts;
2936

2937
      /** Percentages displayed when collecting a tip. */
2938
      @SerializedName("percentages")
2939
      List<Long> percentages;
2940

2941
      /**
2942
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2943
       * displayed.
2944
       */
2945
      @SerializedName("smart_tip_threshold")
2946
      Long smartTipThreshold;
2947

2948
      private Sgd(
2949
          Map<String, Object> extraParams,
2950
          List<Long> fixedAmounts,
2951
          List<Long> percentages,
2952
          Long smartTipThreshold) {
×
2953
        this.extraParams = extraParams;
×
2954
        this.fixedAmounts = fixedAmounts;
×
2955
        this.percentages = percentages;
×
2956
        this.smartTipThreshold = smartTipThreshold;
×
2957
      }
×
2958

2959
      public static Builder builder() {
2960
        return new Builder();
×
2961
      }
2962

2963
      public static class Builder {
×
2964
        private Map<String, Object> extraParams;
2965

2966
        private List<Long> fixedAmounts;
2967

2968
        private List<Long> percentages;
2969

2970
        private Long smartTipThreshold;
2971

2972
        /** Finalize and obtain parameter instance from this builder. */
2973
        public ConfigurationUpdateParams.Tipping.Sgd build() {
2974
          return new ConfigurationUpdateParams.Tipping.Sgd(
×
2975
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2976
        }
2977

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

2992
        /**
2993
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2994
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2995
         * map. See {@link ConfigurationUpdateParams.Tipping.Sgd#extraParams} for the field
2996
         * documentation.
2997
         */
2998
        public Builder putAllExtraParam(Map<String, Object> map) {
2999
          if (this.extraParams == null) {
×
3000
            this.extraParams = new HashMap<>();
×
3001
          }
3002
          this.extraParams.putAll(map);
×
3003
          return this;
×
3004
        }
3005

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

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

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

3045
        /**
3046
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
3047
         * call, and subsequent calls adds additional elements to the original list. See {@link
3048
         * ConfigurationUpdateParams.Tipping.Sgd#percentages} for the field documentation.
3049
         */
3050
        public Builder addAllPercentage(List<Long> elements) {
3051
          if (this.percentages == null) {
×
3052
            this.percentages = new ArrayList<>();
×
3053
          }
3054
          this.percentages.addAll(elements);
×
3055
          return this;
×
3056
        }
3057

3058
        /**
3059
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
3060
         * displayed.
3061
         */
3062
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
3063
          this.smartTipThreshold = smartTipThreshold;
×
3064
          return this;
×
3065
        }
3066
      }
3067
    }
3068

3069
    @Getter
3070
    public static class Usd {
3071
      /**
3072
       * Map of extra parameters for custom features not available in this client library. The
3073
       * content in this map is not serialized under this field's {@code @SerializedName} value.
3074
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
3075
       * name in this param object. Effectively, this map is flattened to its parent instance.
3076
       */
3077
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
3078
      Map<String, Object> extraParams;
3079

3080
      /** Fixed amounts displayed when collecting a tip. */
3081
      @SerializedName("fixed_amounts")
3082
      List<Long> fixedAmounts;
3083

3084
      /** Percentages displayed when collecting a tip. */
3085
      @SerializedName("percentages")
3086
      List<Long> percentages;
3087

3088
      /**
3089
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
3090
       * displayed.
3091
       */
3092
      @SerializedName("smart_tip_threshold")
3093
      Long smartTipThreshold;
3094

3095
      private Usd(
3096
          Map<String, Object> extraParams,
3097
          List<Long> fixedAmounts,
3098
          List<Long> percentages,
3099
          Long smartTipThreshold) {
1✔
3100
        this.extraParams = extraParams;
1✔
3101
        this.fixedAmounts = fixedAmounts;
1✔
3102
        this.percentages = percentages;
1✔
3103
        this.smartTipThreshold = smartTipThreshold;
1✔
3104
      }
1✔
3105

3106
      public static Builder builder() {
3107
        return new Builder();
1✔
3108
      }
3109

3110
      public static class Builder {
1✔
3111
        private Map<String, Object> extraParams;
3112

3113
        private List<Long> fixedAmounts;
3114

3115
        private List<Long> percentages;
3116

3117
        private Long smartTipThreshold;
3118

3119
        /** Finalize and obtain parameter instance from this builder. */
3120
        public ConfigurationUpdateParams.Tipping.Usd build() {
3121
          return new ConfigurationUpdateParams.Tipping.Usd(
1✔
3122
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
3123
        }
3124

3125
        /**
3126
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
3127
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
3128
         * map. See {@link ConfigurationUpdateParams.Tipping.Usd#extraParams} for the field
3129
         * documentation.
3130
         */
3131
        public Builder putExtraParam(String key, Object value) {
3132
          if (this.extraParams == null) {
×
3133
            this.extraParams = new HashMap<>();
×
3134
          }
3135
          this.extraParams.put(key, value);
×
3136
          return this;
×
3137
        }
3138

3139
        /**
3140
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
3141
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
3142
         * map. See {@link ConfigurationUpdateParams.Tipping.Usd#extraParams} for the field
3143
         * documentation.
3144
         */
3145
        public Builder putAllExtraParam(Map<String, Object> map) {
3146
          if (this.extraParams == null) {
×
3147
            this.extraParams = new HashMap<>();
×
3148
          }
3149
          this.extraParams.putAll(map);
×
3150
          return this;
×
3151
        }
3152

3153
        /**
3154
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
3155
         * call, and subsequent calls adds additional elements to the original list. See {@link
3156
         * ConfigurationUpdateParams.Tipping.Usd#fixedAmounts} for the field documentation.
3157
         */
3158
        public Builder addFixedAmount(Long element) {
3159
          if (this.fixedAmounts == null) {
1✔
3160
            this.fixedAmounts = new ArrayList<>();
1✔
3161
          }
3162
          this.fixedAmounts.add(element);
1✔
3163
          return this;
1✔
3164
        }
3165

3166
        /**
3167
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
3168
         * call, and subsequent calls adds additional elements to the original list. See {@link
3169
         * ConfigurationUpdateParams.Tipping.Usd#fixedAmounts} for the field documentation.
3170
         */
3171
        public Builder addAllFixedAmount(List<Long> elements) {
3172
          if (this.fixedAmounts == null) {
×
3173
            this.fixedAmounts = new ArrayList<>();
×
3174
          }
3175
          this.fixedAmounts.addAll(elements);
×
3176
          return this;
×
3177
        }
3178

3179
        /**
3180
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
3181
         * call, and subsequent calls adds additional elements to the original list. See {@link
3182
         * ConfigurationUpdateParams.Tipping.Usd#percentages} for the field documentation.
3183
         */
3184
        public Builder addPercentage(Long element) {
3185
          if (this.percentages == null) {
×
3186
            this.percentages = new ArrayList<>();
×
3187
          }
3188
          this.percentages.add(element);
×
3189
          return this;
×
3190
        }
3191

3192
        /**
3193
         * Add all elements to `percentages` list. A list is initialized for the first `add/addAll`
3194
         * call, and subsequent calls adds additional elements to the original list. See {@link
3195
         * ConfigurationUpdateParams.Tipping.Usd#percentages} for the field documentation.
3196
         */
3197
        public Builder addAllPercentage(List<Long> elements) {
3198
          if (this.percentages == null) {
×
3199
            this.percentages = new ArrayList<>();
×
3200
          }
3201
          this.percentages.addAll(elements);
×
3202
          return this;
×
3203
        }
3204

3205
        /**
3206
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
3207
         * displayed.
3208
         */
3209
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
3210
          this.smartTipThreshold = smartTipThreshold;
×
3211
          return this;
×
3212
        }
3213
      }
3214
    }
3215
  }
3216

3217
  @Getter
3218
  public static class VerifoneP400 {
3219
    /**
3220
     * Map of extra parameters for custom features not available in this client library. The content
3221
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
3222
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
3223
     * param object. Effectively, this map is flattened to its parent instance.
3224
     */
3225
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
3226
    Map<String, Object> extraParams;
3227

3228
    /** A File ID representing an image you would like displayed on the reader. */
3229
    @SerializedName("splashscreen")
3230
    Object splashscreen;
3231

3232
    private VerifoneP400(Map<String, Object> extraParams, Object splashscreen) {
×
3233
      this.extraParams = extraParams;
×
3234
      this.splashscreen = splashscreen;
×
3235
    }
×
3236

3237
    public static Builder builder() {
3238
      return new Builder();
×
3239
    }
3240

3241
    public static class Builder {
×
3242
      private Map<String, Object> extraParams;
3243

3244
      private Object splashscreen;
3245

3246
      /** Finalize and obtain parameter instance from this builder. */
3247
      public ConfigurationUpdateParams.VerifoneP400 build() {
3248
        return new ConfigurationUpdateParams.VerifoneP400(this.extraParams, this.splashscreen);
×
3249
      }
3250

3251
      /**
3252
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
3253
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
3254
       * ConfigurationUpdateParams.VerifoneP400#extraParams} for the field documentation.
3255
       */
3256
      public Builder putExtraParam(String key, Object value) {
3257
        if (this.extraParams == null) {
×
3258
          this.extraParams = new HashMap<>();
×
3259
        }
3260
        this.extraParams.put(key, value);
×
3261
        return this;
×
3262
      }
3263

3264
      /**
3265
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
3266
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
3267
       * See {@link ConfigurationUpdateParams.VerifoneP400#extraParams} for the field documentation.
3268
       */
3269
      public Builder putAllExtraParam(Map<String, Object> map) {
3270
        if (this.extraParams == null) {
×
3271
          this.extraParams = new HashMap<>();
×
3272
        }
3273
        this.extraParams.putAll(map);
×
3274
        return this;
×
3275
      }
3276

3277
      /** A File ID representing an image you would like displayed on the reader. */
3278
      public Builder setSplashscreen(String splashscreen) {
3279
        this.splashscreen = splashscreen;
×
3280
        return this;
×
3281
      }
3282

3283
      /** A File ID representing an image you would like displayed on the reader. */
3284
      public Builder setSplashscreen(EmptyParam splashscreen) {
3285
        this.splashscreen = splashscreen;
×
3286
        return this;
×
3287
      }
3288
    }
3289
  }
3290
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc