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

stripe / stripe-java / #16562

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

push

github

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

Update generated code for beta

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

68 existing lines in 20 files now uncovered.

18798 of 149026 relevant lines covered (12.61%)

0.13 hits per line

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

3.44
/src/main/java/com/stripe/param/terminal/ConfigurationCreateParams.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 ConfigurationCreateParams extends ApiRequestParams {
15
  /** An object containing device type specific settings for BBPOS WisePOS E readers. */
16
  @SerializedName("bbpos_wisepos_e")
17
  BbposWiseposE 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
  String 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
  RebootWindow rebootWindow;
43

44
  /** An object containing device type specific settings for Stripe S700 readers. */
45
  @SerializedName("stripe_s700")
46
  StripeS700 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
  VerifoneP400 verifoneP400;
55

56
  private ConfigurationCreateParams(
57
      BbposWiseposE bbposWiseposE,
58
      List<String> expand,
59
      Map<String, Object> extraParams,
60
      String name,
61
      Object offline,
62
      RebootWindow rebootWindow,
63
      StripeS700 stripeS700,
64
      Object tipping,
65
      VerifoneP400 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 BbposWiseposE bbposWiseposE;
83

84
    private List<String> expand;
85

86
    private Map<String, Object> extraParams;
87

88
    private String name;
89

90
    private Object offline;
91

92
    private RebootWindow rebootWindow;
93

94
    private StripeS700 stripeS700;
95

96
    private Object tipping;
97

98
    private VerifoneP400 verifoneP400;
99

100
    /** Finalize and obtain parameter instance from this builder. */
101
    public ConfigurationCreateParams build() {
102
      return new ConfigurationCreateParams(
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(ConfigurationCreateParams.BbposWiseposE bbposWiseposE) {
116
      this.bbposWiseposE = bbposWiseposE;
1✔
117
      return this;
1✔
118
    }
119

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

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

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

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

172
    /** Name of the configuration. */
173
    public Builder setName(String name) {
174
      this.name = name;
×
175
      return this;
×
176
    }
177

178
    /** Configurations for collecting transactions offline. */
179
    public Builder setOffline(ConfigurationCreateParams.Offline offline) {
180
      this.offline = offline;
×
181
      return this;
×
182
    }
183

184
    /** Configurations for collecting transactions offline. */
185
    public Builder setOffline(EmptyParam offline) {
186
      this.offline = offline;
×
187
      return this;
×
188
    }
189

190
    /** Reboot time settings for readers that support customized reboot time configuration. */
191
    public Builder setRebootWindow(ConfigurationCreateParams.RebootWindow rebootWindow) {
192
      this.rebootWindow = rebootWindow;
×
193
      return this;
×
194
    }
195

196
    /** An object containing device type specific settings for Stripe S700 readers. */
197
    public Builder setStripeS700(ConfigurationCreateParams.StripeS700 stripeS700) {
198
      this.stripeS700 = stripeS700;
×
199
      return this;
×
200
    }
201

202
    /** Tipping configurations for readers supporting on-reader tips. */
203
    public Builder setTipping(ConfigurationCreateParams.Tipping tipping) {
204
      this.tipping = tipping;
×
205
      return this;
×
206
    }
207

208
    /** Tipping configurations for readers supporting on-reader tips. */
209
    public Builder setTipping(EmptyParam tipping) {
210
      this.tipping = tipping;
×
211
      return this;
×
212
    }
213

214
    /** An object containing device type specific settings for Verifone P400 readers. */
215
    public Builder setVerifoneP400(ConfigurationCreateParams.VerifoneP400 verifoneP400) {
216
      this.verifoneP400 = verifoneP400;
×
217
      return this;
×
218
    }
219
  }
220

221
  @Getter
222
  public static class BbposWiseposE {
223
    /**
224
     * Map of extra parameters for custom features not available in this client library. The content
225
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
226
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
227
     * param object. Effectively, this map is flattened to its parent instance.
228
     */
229
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
230
    Map<String, Object> extraParams;
231

232
    /** A File ID representing an image you would like displayed on the reader. */
233
    @SerializedName("splashscreen")
234
    Object splashscreen;
235

236
    private BbposWiseposE(Map<String, Object> extraParams, Object splashscreen) {
1✔
237
      this.extraParams = extraParams;
1✔
238
      this.splashscreen = splashscreen;
1✔
239
    }
1✔
240

241
    public static Builder builder() {
242
      return new Builder();
1✔
243
    }
244

245
    public static class Builder {
1✔
246
      private Map<String, Object> extraParams;
247

248
      private Object splashscreen;
249

250
      /** Finalize and obtain parameter instance from this builder. */
251
      public ConfigurationCreateParams.BbposWiseposE build() {
252
        return new ConfigurationCreateParams.BbposWiseposE(this.extraParams, this.splashscreen);
1✔
253
      }
254

255
      /**
256
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
257
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
258
       * ConfigurationCreateParams.BbposWiseposE#extraParams} for the field documentation.
259
       */
260
      public Builder putExtraParam(String key, Object value) {
261
        if (this.extraParams == null) {
×
262
          this.extraParams = new HashMap<>();
×
263
        }
264
        this.extraParams.put(key, value);
×
265
        return this;
×
266
      }
267

268
      /**
269
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
270
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
271
       * See {@link ConfigurationCreateParams.BbposWiseposE#extraParams} for the field
272
       * documentation.
273
       */
274
      public Builder putAllExtraParam(Map<String, Object> map) {
275
        if (this.extraParams == null) {
×
276
          this.extraParams = new HashMap<>();
×
277
        }
278
        this.extraParams.putAll(map);
×
279
        return this;
×
280
      }
281

282
      /** A File ID representing an image you would like displayed on the reader. */
283
      public Builder setSplashscreen(String splashscreen) {
284
        this.splashscreen = splashscreen;
1✔
285
        return this;
1✔
286
      }
287

288
      /** A File ID representing an image you would like displayed on the reader. */
289
      public Builder setSplashscreen(EmptyParam splashscreen) {
290
        this.splashscreen = splashscreen;
×
291
        return this;
×
292
      }
293
    }
294
  }
295

296
  @Getter
297
  public static class Offline {
298
    /**
299
     * <strong>Required.</strong> Determines whether to allow transactions to be collected while
300
     * reader is offline. Defaults to false.
301
     */
302
    @SerializedName("enabled")
303
    Boolean enabled;
304

305
    /**
306
     * Map of extra parameters for custom features not available in this client library. The content
307
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
308
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
309
     * param object. Effectively, this map is flattened to its parent instance.
310
     */
311
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
312
    Map<String, Object> extraParams;
313

314
    private Offline(Boolean enabled, Map<String, Object> extraParams) {
×
315
      this.enabled = enabled;
×
316
      this.extraParams = extraParams;
×
317
    }
×
318

319
    public static Builder builder() {
320
      return new Builder();
×
321
    }
322

323
    public static class Builder {
×
324
      private Boolean enabled;
325

326
      private Map<String, Object> extraParams;
327

328
      /** Finalize and obtain parameter instance from this builder. */
329
      public ConfigurationCreateParams.Offline build() {
330
        return new ConfigurationCreateParams.Offline(this.enabled, this.extraParams);
×
331
      }
332

333
      /**
334
       * <strong>Required.</strong> Determines whether to allow transactions to be collected while
335
       * reader is offline. Defaults to false.
336
       */
337
      public Builder setEnabled(Boolean enabled) {
338
        this.enabled = enabled;
×
339
        return this;
×
340
      }
341

342
      /**
343
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
344
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
345
       * ConfigurationCreateParams.Offline#extraParams} for the field documentation.
346
       */
347
      public Builder putExtraParam(String key, Object value) {
348
        if (this.extraParams == null) {
×
349
          this.extraParams = new HashMap<>();
×
350
        }
351
        this.extraParams.put(key, value);
×
352
        return this;
×
353
      }
354

355
      /**
356
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
357
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
358
       * See {@link ConfigurationCreateParams.Offline#extraParams} for the field documentation.
359
       */
360
      public Builder putAllExtraParam(Map<String, Object> map) {
361
        if (this.extraParams == null) {
×
362
          this.extraParams = new HashMap<>();
×
363
        }
364
        this.extraParams.putAll(map);
×
365
        return this;
×
366
      }
367
    }
368
  }
369

370
  @Getter
371
  public static class RebootWindow {
372
    /**
373
     * <strong>Required.</strong> Integer between 0 to 23 that represents the end hour of the reboot
374
     * time window. The value must be different than the start_hour.
375
     */
376
    @SerializedName("end_hour")
377
    Long endHour;
378

379
    /**
380
     * Map of extra parameters for custom features not available in this client library. The content
381
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
382
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
383
     * param object. Effectively, this map is flattened to its parent instance.
384
     */
385
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
386
    Map<String, Object> extraParams;
387

388
    /**
389
     * <strong>Required.</strong> Integer between 0 to 23 that represents the start hour of the
390
     * reboot time window.
391
     */
392
    @SerializedName("start_hour")
393
    Long startHour;
394

395
    private RebootWindow(Long endHour, Map<String, Object> extraParams, Long startHour) {
×
396
      this.endHour = endHour;
×
397
      this.extraParams = extraParams;
×
398
      this.startHour = startHour;
×
399
    }
×
400

401
    public static Builder builder() {
402
      return new Builder();
×
403
    }
404

405
    public static class Builder {
×
406
      private Long endHour;
407

408
      private Map<String, Object> extraParams;
409

410
      private Long startHour;
411

412
      /** Finalize and obtain parameter instance from this builder. */
413
      public ConfigurationCreateParams.RebootWindow build() {
414
        return new ConfigurationCreateParams.RebootWindow(
×
415
            this.endHour, this.extraParams, this.startHour);
416
      }
417

418
      /**
419
       * <strong>Required.</strong> Integer between 0 to 23 that represents the end hour of the
420
       * reboot time window. The value must be different than the start_hour.
421
       */
422
      public Builder setEndHour(Long endHour) {
423
        this.endHour = endHour;
×
424
        return this;
×
425
      }
426

427
      /**
428
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
429
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
430
       * ConfigurationCreateParams.RebootWindow#extraParams} for the field documentation.
431
       */
432
      public Builder putExtraParam(String key, Object value) {
433
        if (this.extraParams == null) {
×
434
          this.extraParams = new HashMap<>();
×
435
        }
436
        this.extraParams.put(key, value);
×
437
        return this;
×
438
      }
439

440
      /**
441
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
442
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
443
       * See {@link ConfigurationCreateParams.RebootWindow#extraParams} for the field documentation.
444
       */
445
      public Builder putAllExtraParam(Map<String, Object> map) {
446
        if (this.extraParams == null) {
×
447
          this.extraParams = new HashMap<>();
×
448
        }
449
        this.extraParams.putAll(map);
×
450
        return this;
×
451
      }
452

453
      /**
454
       * <strong>Required.</strong> Integer between 0 to 23 that represents the start hour of the
455
       * reboot time window.
456
       */
457
      public Builder setStartHour(Long startHour) {
458
        this.startHour = startHour;
×
459
        return this;
×
460
      }
461
    }
462
  }
463

464
  @Getter
465
  public static class StripeS700 {
466
    /**
467
     * Map of extra parameters for custom features not available in this client library. The content
468
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
469
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
470
     * param object. Effectively, this map is flattened to its parent instance.
471
     */
472
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
473
    Map<String, Object> extraParams;
474

475
    /** A File ID representing an image you would like displayed on the reader. */
476
    @SerializedName("splashscreen")
477
    Object splashscreen;
478

479
    private StripeS700(Map<String, Object> extraParams, Object splashscreen) {
×
480
      this.extraParams = extraParams;
×
481
      this.splashscreen = splashscreen;
×
482
    }
×
483

484
    public static Builder builder() {
485
      return new Builder();
×
486
    }
487

488
    public static class Builder {
×
489
      private Map<String, Object> extraParams;
490

491
      private Object splashscreen;
492

493
      /** Finalize and obtain parameter instance from this builder. */
494
      public ConfigurationCreateParams.StripeS700 build() {
495
        return new ConfigurationCreateParams.StripeS700(this.extraParams, this.splashscreen);
×
496
      }
497

498
      /**
499
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
500
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
501
       * ConfigurationCreateParams.StripeS700#extraParams} for the field documentation.
502
       */
503
      public Builder putExtraParam(String key, Object value) {
504
        if (this.extraParams == null) {
×
505
          this.extraParams = new HashMap<>();
×
506
        }
507
        this.extraParams.put(key, value);
×
508
        return this;
×
509
      }
510

511
      /**
512
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
513
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
514
       * See {@link ConfigurationCreateParams.StripeS700#extraParams} for the field documentation.
515
       */
516
      public Builder putAllExtraParam(Map<String, Object> map) {
517
        if (this.extraParams == null) {
×
518
          this.extraParams = new HashMap<>();
×
519
        }
520
        this.extraParams.putAll(map);
×
521
        return this;
×
522
      }
523

524
      /** A File ID representing an image you would like displayed on the reader. */
525
      public Builder setSplashscreen(String splashscreen) {
526
        this.splashscreen = splashscreen;
×
527
        return this;
×
528
      }
529

530
      /** A File ID representing an image you would like displayed on the reader. */
531
      public Builder setSplashscreen(EmptyParam splashscreen) {
532
        this.splashscreen = splashscreen;
×
533
        return this;
×
534
      }
535
    }
536
  }
537

538
  @Getter
539
  public static class Tipping {
540
    /** Tipping configuration for AUD. */
541
    @SerializedName("aud")
542
    Aud aud;
543

544
    /** Tipping configuration for CAD. */
545
    @SerializedName("cad")
546
    Cad cad;
547

548
    /** Tipping configuration for CHF. */
549
    @SerializedName("chf")
550
    Chf chf;
551

552
    /** Tipping configuration for CZK. */
553
    @SerializedName("czk")
554
    Czk czk;
555

556
    /** Tipping configuration for DKK. */
557
    @SerializedName("dkk")
558
    Dkk dkk;
559

560
    /** Tipping configuration for EUR. */
561
    @SerializedName("eur")
562
    Eur eur;
563

564
    /**
565
     * Map of extra parameters for custom features not available in this client library. The content
566
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
567
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
568
     * param object. Effectively, this map is flattened to its parent instance.
569
     */
570
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
571
    Map<String, Object> extraParams;
572

573
    /** Tipping configuration for GBP. */
574
    @SerializedName("gbp")
575
    Gbp gbp;
576

577
    /** Tipping configuration for HKD. */
578
    @SerializedName("hkd")
579
    Hkd hkd;
580

581
    /** Tipping configuration for MYR. */
582
    @SerializedName("myr")
583
    Myr myr;
584

585
    /** Tipping configuration for NOK. */
586
    @SerializedName("nok")
587
    Nok nok;
588

589
    /** Tipping configuration for NZD. */
590
    @SerializedName("nzd")
591
    Nzd nzd;
592

593
    /** Tipping configuration for PLN. */
594
    @SerializedName("pln")
595
    Pln pln;
596

597
    /** Tipping configuration for SEK. */
598
    @SerializedName("sek")
599
    Sek sek;
600

601
    /** Tipping configuration for SGD. */
602
    @SerializedName("sgd")
603
    Sgd sgd;
604

605
    /** Tipping configuration for USD. */
606
    @SerializedName("usd")
607
    Usd usd;
608

609
    private Tipping(
610
        Aud aud,
611
        Cad cad,
612
        Chf chf,
613
        Czk czk,
614
        Dkk dkk,
615
        Eur eur,
616
        Map<String, Object> extraParams,
617
        Gbp gbp,
618
        Hkd hkd,
619
        Myr myr,
620
        Nok nok,
621
        Nzd nzd,
622
        Pln pln,
623
        Sek sek,
624
        Sgd sgd,
625
        Usd usd) {
×
626
      this.aud = aud;
×
627
      this.cad = cad;
×
628
      this.chf = chf;
×
629
      this.czk = czk;
×
630
      this.dkk = dkk;
×
631
      this.eur = eur;
×
632
      this.extraParams = extraParams;
×
633
      this.gbp = gbp;
×
634
      this.hkd = hkd;
×
635
      this.myr = myr;
×
636
      this.nok = nok;
×
637
      this.nzd = nzd;
×
NEW
638
      this.pln = pln;
×
639
      this.sek = sek;
×
640
      this.sgd = sgd;
×
641
      this.usd = usd;
×
642
    }
×
643

644
    public static Builder builder() {
645
      return new Builder();
×
646
    }
647

648
    public static class Builder {
×
649
      private Aud aud;
650

651
      private Cad cad;
652

653
      private Chf chf;
654

655
      private Czk czk;
656

657
      private Dkk dkk;
658

659
      private Eur eur;
660

661
      private Map<String, Object> extraParams;
662

663
      private Gbp gbp;
664

665
      private Hkd hkd;
666

667
      private Myr myr;
668

669
      private Nok nok;
670

671
      private Nzd nzd;
672

673
      private Pln pln;
674

675
      private Sek sek;
676

677
      private Sgd sgd;
678

679
      private Usd usd;
680

681
      /** Finalize and obtain parameter instance from this builder. */
682
      public ConfigurationCreateParams.Tipping build() {
683
        return new ConfigurationCreateParams.Tipping(
×
684
            this.aud,
685
            this.cad,
686
            this.chf,
687
            this.czk,
688
            this.dkk,
689
            this.eur,
690
            this.extraParams,
691
            this.gbp,
692
            this.hkd,
693
            this.myr,
694
            this.nok,
695
            this.nzd,
696
            this.pln,
697
            this.sek,
698
            this.sgd,
699
            this.usd);
700
      }
701

702
      /** Tipping configuration for AUD. */
703
      public Builder setAud(ConfigurationCreateParams.Tipping.Aud aud) {
704
        this.aud = aud;
×
705
        return this;
×
706
      }
707

708
      /** Tipping configuration for CAD. */
709
      public Builder setCad(ConfigurationCreateParams.Tipping.Cad cad) {
710
        this.cad = cad;
×
711
        return this;
×
712
      }
713

714
      /** Tipping configuration for CHF. */
715
      public Builder setChf(ConfigurationCreateParams.Tipping.Chf chf) {
716
        this.chf = chf;
×
717
        return this;
×
718
      }
719

720
      /** Tipping configuration for CZK. */
721
      public Builder setCzk(ConfigurationCreateParams.Tipping.Czk czk) {
722
        this.czk = czk;
×
723
        return this;
×
724
      }
725

726
      /** Tipping configuration for DKK. */
727
      public Builder setDkk(ConfigurationCreateParams.Tipping.Dkk dkk) {
728
        this.dkk = dkk;
×
729
        return this;
×
730
      }
731

732
      /** Tipping configuration for EUR. */
733
      public Builder setEur(ConfigurationCreateParams.Tipping.Eur eur) {
734
        this.eur = eur;
×
735
        return this;
×
736
      }
737

738
      /**
739
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
740
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
741
       * ConfigurationCreateParams.Tipping#extraParams} for the field documentation.
742
       */
743
      public Builder putExtraParam(String key, Object value) {
744
        if (this.extraParams == null) {
×
745
          this.extraParams = new HashMap<>();
×
746
        }
747
        this.extraParams.put(key, value);
×
748
        return this;
×
749
      }
750

751
      /**
752
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
753
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
754
       * See {@link ConfigurationCreateParams.Tipping#extraParams} for the field documentation.
755
       */
756
      public Builder putAllExtraParam(Map<String, Object> map) {
757
        if (this.extraParams == null) {
×
758
          this.extraParams = new HashMap<>();
×
759
        }
760
        this.extraParams.putAll(map);
×
761
        return this;
×
762
      }
763

764
      /** Tipping configuration for GBP. */
765
      public Builder setGbp(ConfigurationCreateParams.Tipping.Gbp gbp) {
766
        this.gbp = gbp;
×
767
        return this;
×
768
      }
769

770
      /** Tipping configuration for HKD. */
771
      public Builder setHkd(ConfigurationCreateParams.Tipping.Hkd hkd) {
772
        this.hkd = hkd;
×
773
        return this;
×
774
      }
775

776
      /** Tipping configuration for MYR. */
777
      public Builder setMyr(ConfigurationCreateParams.Tipping.Myr myr) {
778
        this.myr = myr;
×
779
        return this;
×
780
      }
781

782
      /** Tipping configuration for NOK. */
783
      public Builder setNok(ConfigurationCreateParams.Tipping.Nok nok) {
784
        this.nok = nok;
×
785
        return this;
×
786
      }
787

788
      /** Tipping configuration for NZD. */
789
      public Builder setNzd(ConfigurationCreateParams.Tipping.Nzd nzd) {
790
        this.nzd = nzd;
×
791
        return this;
×
792
      }
793

794
      /** Tipping configuration for PLN. */
795
      public Builder setPln(ConfigurationCreateParams.Tipping.Pln pln) {
NEW
796
        this.pln = pln;
×
NEW
797
        return this;
×
798
      }
799

800
      /** Tipping configuration for SEK. */
801
      public Builder setSek(ConfigurationCreateParams.Tipping.Sek sek) {
802
        this.sek = sek;
×
803
        return this;
×
804
      }
805

806
      /** Tipping configuration for SGD. */
807
      public Builder setSgd(ConfigurationCreateParams.Tipping.Sgd sgd) {
808
        this.sgd = sgd;
×
809
        return this;
×
810
      }
811

812
      /** Tipping configuration for USD. */
813
      public Builder setUsd(ConfigurationCreateParams.Tipping.Usd usd) {
814
        this.usd = usd;
×
815
        return this;
×
816
      }
817
    }
818

819
    @Getter
820
    public static class Aud {
821
      /**
822
       * Map of extra parameters for custom features not available in this client library. The
823
       * content in this map is not serialized under this field's {@code @SerializedName} value.
824
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
825
       * name in this param object. Effectively, this map is flattened to its parent instance.
826
       */
827
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
828
      Map<String, Object> extraParams;
829

830
      /** Fixed amounts displayed when collecting a tip. */
831
      @SerializedName("fixed_amounts")
832
      List<Long> fixedAmounts;
833

834
      /** Percentages displayed when collecting a tip. */
835
      @SerializedName("percentages")
836
      List<Long> percentages;
837

838
      /**
839
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
840
       * displayed.
841
       */
842
      @SerializedName("smart_tip_threshold")
843
      Long smartTipThreshold;
844

845
      private Aud(
846
          Map<String, Object> extraParams,
847
          List<Long> fixedAmounts,
848
          List<Long> percentages,
849
          Long smartTipThreshold) {
×
850
        this.extraParams = extraParams;
×
851
        this.fixedAmounts = fixedAmounts;
×
852
        this.percentages = percentages;
×
853
        this.smartTipThreshold = smartTipThreshold;
×
854
      }
×
855

856
      public static Builder builder() {
857
        return new Builder();
×
858
      }
859

860
      public static class Builder {
×
861
        private Map<String, Object> extraParams;
862

863
        private List<Long> fixedAmounts;
864

865
        private List<Long> percentages;
866

867
        private Long smartTipThreshold;
868

869
        /** Finalize and obtain parameter instance from this builder. */
870
        public ConfigurationCreateParams.Tipping.Aud build() {
871
          return new ConfigurationCreateParams.Tipping.Aud(
×
872
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
873
        }
874

875
        /**
876
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
877
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
878
         * map. See {@link ConfigurationCreateParams.Tipping.Aud#extraParams} for the field
879
         * documentation.
880
         */
881
        public Builder putExtraParam(String key, Object value) {
882
          if (this.extraParams == null) {
×
883
            this.extraParams = new HashMap<>();
×
884
          }
885
          this.extraParams.put(key, value);
×
886
          return this;
×
887
        }
888

889
        /**
890
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
891
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
892
         * map. See {@link ConfigurationCreateParams.Tipping.Aud#extraParams} for the field
893
         * documentation.
894
         */
895
        public Builder putAllExtraParam(Map<String, Object> map) {
896
          if (this.extraParams == null) {
×
897
            this.extraParams = new HashMap<>();
×
898
          }
899
          this.extraParams.putAll(map);
×
900
          return this;
×
901
        }
902

903
        /**
904
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
905
         * call, and subsequent calls adds additional elements to the original list. See {@link
906
         * ConfigurationCreateParams.Tipping.Aud#fixedAmounts} for the field documentation.
907
         */
908
        public Builder addFixedAmount(Long element) {
909
          if (this.fixedAmounts == null) {
×
910
            this.fixedAmounts = new ArrayList<>();
×
911
          }
912
          this.fixedAmounts.add(element);
×
913
          return this;
×
914
        }
915

916
        /**
917
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
918
         * call, and subsequent calls adds additional elements to the original list. See {@link
919
         * ConfigurationCreateParams.Tipping.Aud#fixedAmounts} for the field documentation.
920
         */
921
        public Builder addAllFixedAmount(List<Long> elements) {
922
          if (this.fixedAmounts == null) {
×
923
            this.fixedAmounts = new ArrayList<>();
×
924
          }
925
          this.fixedAmounts.addAll(elements);
×
926
          return this;
×
927
        }
928

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

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

955
        /**
956
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
957
         * displayed.
958
         */
959
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
960
          this.smartTipThreshold = smartTipThreshold;
×
961
          return this;
×
962
        }
963
      }
964
    }
965

966
    @Getter
967
    public static class Cad {
968
      /**
969
       * Map of extra parameters for custom features not available in this client library. The
970
       * content in this map is not serialized under this field's {@code @SerializedName} value.
971
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
972
       * name in this param object. Effectively, this map is flattened to its parent instance.
973
       */
974
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
975
      Map<String, Object> extraParams;
976

977
      /** Fixed amounts displayed when collecting a tip. */
978
      @SerializedName("fixed_amounts")
979
      List<Long> fixedAmounts;
980

981
      /** Percentages displayed when collecting a tip. */
982
      @SerializedName("percentages")
983
      List<Long> percentages;
984

985
      /**
986
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
987
       * displayed.
988
       */
989
      @SerializedName("smart_tip_threshold")
990
      Long smartTipThreshold;
991

992
      private Cad(
993
          Map<String, Object> extraParams,
994
          List<Long> fixedAmounts,
995
          List<Long> percentages,
996
          Long smartTipThreshold) {
×
997
        this.extraParams = extraParams;
×
998
        this.fixedAmounts = fixedAmounts;
×
999
        this.percentages = percentages;
×
1000
        this.smartTipThreshold = smartTipThreshold;
×
1001
      }
×
1002

1003
      public static Builder builder() {
1004
        return new Builder();
×
1005
      }
1006

1007
      public static class Builder {
×
1008
        private Map<String, Object> extraParams;
1009

1010
        private List<Long> fixedAmounts;
1011

1012
        private List<Long> percentages;
1013

1014
        private Long smartTipThreshold;
1015

1016
        /** Finalize and obtain parameter instance from this builder. */
1017
        public ConfigurationCreateParams.Tipping.Cad build() {
1018
          return new ConfigurationCreateParams.Tipping.Cad(
×
1019
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1020
        }
1021

1022
        /**
1023
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1024
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1025
         * map. See {@link ConfigurationCreateParams.Tipping.Cad#extraParams} for the field
1026
         * documentation.
1027
         */
1028
        public Builder putExtraParam(String key, Object value) {
1029
          if (this.extraParams == null) {
×
1030
            this.extraParams = new HashMap<>();
×
1031
          }
1032
          this.extraParams.put(key, value);
×
1033
          return this;
×
1034
        }
1035

1036
        /**
1037
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1038
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1039
         * map. See {@link ConfigurationCreateParams.Tipping.Cad#extraParams} for the field
1040
         * documentation.
1041
         */
1042
        public Builder putAllExtraParam(Map<String, Object> map) {
1043
          if (this.extraParams == null) {
×
1044
            this.extraParams = new HashMap<>();
×
1045
          }
1046
          this.extraParams.putAll(map);
×
1047
          return this;
×
1048
        }
1049

1050
        /**
1051
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1052
         * call, and subsequent calls adds additional elements to the original list. See {@link
1053
         * ConfigurationCreateParams.Tipping.Cad#fixedAmounts} for the field documentation.
1054
         */
1055
        public Builder addFixedAmount(Long element) {
1056
          if (this.fixedAmounts == null) {
×
1057
            this.fixedAmounts = new ArrayList<>();
×
1058
          }
1059
          this.fixedAmounts.add(element);
×
1060
          return this;
×
1061
        }
1062

1063
        /**
1064
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1065
         * call, and subsequent calls adds additional elements to the original list. See {@link
1066
         * ConfigurationCreateParams.Tipping.Cad#fixedAmounts} for the field documentation.
1067
         */
1068
        public Builder addAllFixedAmount(List<Long> elements) {
1069
          if (this.fixedAmounts == null) {
×
1070
            this.fixedAmounts = new ArrayList<>();
×
1071
          }
1072
          this.fixedAmounts.addAll(elements);
×
1073
          return this;
×
1074
        }
1075

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

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

1102
        /**
1103
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1104
         * displayed.
1105
         */
1106
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1107
          this.smartTipThreshold = smartTipThreshold;
×
1108
          return this;
×
1109
        }
1110
      }
1111
    }
1112

1113
    @Getter
1114
    public static class Chf {
1115
      /**
1116
       * Map of extra parameters for custom features not available in this client library. The
1117
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1118
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1119
       * name in this param object. Effectively, this map is flattened to its parent instance.
1120
       */
1121
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1122
      Map<String, Object> extraParams;
1123

1124
      /** Fixed amounts displayed when collecting a tip. */
1125
      @SerializedName("fixed_amounts")
1126
      List<Long> fixedAmounts;
1127

1128
      /** Percentages displayed when collecting a tip. */
1129
      @SerializedName("percentages")
1130
      List<Long> percentages;
1131

1132
      /**
1133
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1134
       * displayed.
1135
       */
1136
      @SerializedName("smart_tip_threshold")
1137
      Long smartTipThreshold;
1138

1139
      private Chf(
1140
          Map<String, Object> extraParams,
1141
          List<Long> fixedAmounts,
1142
          List<Long> percentages,
1143
          Long smartTipThreshold) {
×
1144
        this.extraParams = extraParams;
×
1145
        this.fixedAmounts = fixedAmounts;
×
1146
        this.percentages = percentages;
×
1147
        this.smartTipThreshold = smartTipThreshold;
×
1148
      }
×
1149

1150
      public static Builder builder() {
1151
        return new Builder();
×
1152
      }
1153

1154
      public static class Builder {
×
1155
        private Map<String, Object> extraParams;
1156

1157
        private List<Long> fixedAmounts;
1158

1159
        private List<Long> percentages;
1160

1161
        private Long smartTipThreshold;
1162

1163
        /** Finalize and obtain parameter instance from this builder. */
1164
        public ConfigurationCreateParams.Tipping.Chf build() {
1165
          return new ConfigurationCreateParams.Tipping.Chf(
×
1166
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1167
        }
1168

1169
        /**
1170
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1171
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1172
         * map. See {@link ConfigurationCreateParams.Tipping.Chf#extraParams} for the field
1173
         * documentation.
1174
         */
1175
        public Builder putExtraParam(String key, Object value) {
1176
          if (this.extraParams == null) {
×
1177
            this.extraParams = new HashMap<>();
×
1178
          }
1179
          this.extraParams.put(key, value);
×
1180
          return this;
×
1181
        }
1182

1183
        /**
1184
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1185
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1186
         * map. See {@link ConfigurationCreateParams.Tipping.Chf#extraParams} for the field
1187
         * documentation.
1188
         */
1189
        public Builder putAllExtraParam(Map<String, Object> map) {
1190
          if (this.extraParams == null) {
×
1191
            this.extraParams = new HashMap<>();
×
1192
          }
1193
          this.extraParams.putAll(map);
×
1194
          return this;
×
1195
        }
1196

1197
        /**
1198
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1199
         * call, and subsequent calls adds additional elements to the original list. See {@link
1200
         * ConfigurationCreateParams.Tipping.Chf#fixedAmounts} for the field documentation.
1201
         */
1202
        public Builder addFixedAmount(Long element) {
1203
          if (this.fixedAmounts == null) {
×
1204
            this.fixedAmounts = new ArrayList<>();
×
1205
          }
1206
          this.fixedAmounts.add(element);
×
1207
          return this;
×
1208
        }
1209

1210
        /**
1211
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1212
         * call, and subsequent calls adds additional elements to the original list. See {@link
1213
         * ConfigurationCreateParams.Tipping.Chf#fixedAmounts} for the field documentation.
1214
         */
1215
        public Builder addAllFixedAmount(List<Long> elements) {
1216
          if (this.fixedAmounts == null) {
×
1217
            this.fixedAmounts = new ArrayList<>();
×
1218
          }
1219
          this.fixedAmounts.addAll(elements);
×
1220
          return this;
×
1221
        }
1222

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

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

1249
        /**
1250
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1251
         * displayed.
1252
         */
1253
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1254
          this.smartTipThreshold = smartTipThreshold;
×
1255
          return this;
×
1256
        }
1257
      }
1258
    }
1259

1260
    @Getter
1261
    public static class Czk {
1262
      /**
1263
       * Map of extra parameters for custom features not available in this client library. The
1264
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1265
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1266
       * name in this param object. Effectively, this map is flattened to its parent instance.
1267
       */
1268
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1269
      Map<String, Object> extraParams;
1270

1271
      /** Fixed amounts displayed when collecting a tip. */
1272
      @SerializedName("fixed_amounts")
1273
      List<Long> fixedAmounts;
1274

1275
      /** Percentages displayed when collecting a tip. */
1276
      @SerializedName("percentages")
1277
      List<Long> percentages;
1278

1279
      /**
1280
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1281
       * displayed.
1282
       */
1283
      @SerializedName("smart_tip_threshold")
1284
      Long smartTipThreshold;
1285

1286
      private Czk(
1287
          Map<String, Object> extraParams,
1288
          List<Long> fixedAmounts,
1289
          List<Long> percentages,
1290
          Long smartTipThreshold) {
×
1291
        this.extraParams = extraParams;
×
1292
        this.fixedAmounts = fixedAmounts;
×
1293
        this.percentages = percentages;
×
1294
        this.smartTipThreshold = smartTipThreshold;
×
1295
      }
×
1296

1297
      public static Builder builder() {
1298
        return new Builder();
×
1299
      }
1300

1301
      public static class Builder {
×
1302
        private Map<String, Object> extraParams;
1303

1304
        private List<Long> fixedAmounts;
1305

1306
        private List<Long> percentages;
1307

1308
        private Long smartTipThreshold;
1309

1310
        /** Finalize and obtain parameter instance from this builder. */
1311
        public ConfigurationCreateParams.Tipping.Czk build() {
1312
          return new ConfigurationCreateParams.Tipping.Czk(
×
1313
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1314
        }
1315

1316
        /**
1317
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1318
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1319
         * map. See {@link ConfigurationCreateParams.Tipping.Czk#extraParams} for the field
1320
         * documentation.
1321
         */
1322
        public Builder putExtraParam(String key, Object value) {
1323
          if (this.extraParams == null) {
×
1324
            this.extraParams = new HashMap<>();
×
1325
          }
1326
          this.extraParams.put(key, value);
×
1327
          return this;
×
1328
        }
1329

1330
        /**
1331
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1332
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1333
         * map. See {@link ConfigurationCreateParams.Tipping.Czk#extraParams} for the field
1334
         * documentation.
1335
         */
1336
        public Builder putAllExtraParam(Map<String, Object> map) {
1337
          if (this.extraParams == null) {
×
1338
            this.extraParams = new HashMap<>();
×
1339
          }
1340
          this.extraParams.putAll(map);
×
1341
          return this;
×
1342
        }
1343

1344
        /**
1345
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1346
         * call, and subsequent calls adds additional elements to the original list. See {@link
1347
         * ConfigurationCreateParams.Tipping.Czk#fixedAmounts} for the field documentation.
1348
         */
1349
        public Builder addFixedAmount(Long element) {
1350
          if (this.fixedAmounts == null) {
×
1351
            this.fixedAmounts = new ArrayList<>();
×
1352
          }
1353
          this.fixedAmounts.add(element);
×
1354
          return this;
×
1355
        }
1356

1357
        /**
1358
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1359
         * call, and subsequent calls adds additional elements to the original list. See {@link
1360
         * ConfigurationCreateParams.Tipping.Czk#fixedAmounts} for the field documentation.
1361
         */
1362
        public Builder addAllFixedAmount(List<Long> elements) {
1363
          if (this.fixedAmounts == null) {
×
1364
            this.fixedAmounts = new ArrayList<>();
×
1365
          }
1366
          this.fixedAmounts.addAll(elements);
×
1367
          return this;
×
1368
        }
1369

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

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

1396
        /**
1397
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1398
         * displayed.
1399
         */
1400
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1401
          this.smartTipThreshold = smartTipThreshold;
×
1402
          return this;
×
1403
        }
1404
      }
1405
    }
1406

1407
    @Getter
1408
    public static class Dkk {
1409
      /**
1410
       * Map of extra parameters for custom features not available in this client library. The
1411
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1412
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1413
       * name in this param object. Effectively, this map is flattened to its parent instance.
1414
       */
1415
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1416
      Map<String, Object> extraParams;
1417

1418
      /** Fixed amounts displayed when collecting a tip. */
1419
      @SerializedName("fixed_amounts")
1420
      List<Long> fixedAmounts;
1421

1422
      /** Percentages displayed when collecting a tip. */
1423
      @SerializedName("percentages")
1424
      List<Long> percentages;
1425

1426
      /**
1427
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1428
       * displayed.
1429
       */
1430
      @SerializedName("smart_tip_threshold")
1431
      Long smartTipThreshold;
1432

1433
      private Dkk(
1434
          Map<String, Object> extraParams,
1435
          List<Long> fixedAmounts,
1436
          List<Long> percentages,
1437
          Long smartTipThreshold) {
×
1438
        this.extraParams = extraParams;
×
1439
        this.fixedAmounts = fixedAmounts;
×
1440
        this.percentages = percentages;
×
1441
        this.smartTipThreshold = smartTipThreshold;
×
1442
      }
×
1443

1444
      public static Builder builder() {
1445
        return new Builder();
×
1446
      }
1447

1448
      public static class Builder {
×
1449
        private Map<String, Object> extraParams;
1450

1451
        private List<Long> fixedAmounts;
1452

1453
        private List<Long> percentages;
1454

1455
        private Long smartTipThreshold;
1456

1457
        /** Finalize and obtain parameter instance from this builder. */
1458
        public ConfigurationCreateParams.Tipping.Dkk build() {
1459
          return new ConfigurationCreateParams.Tipping.Dkk(
×
1460
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1461
        }
1462

1463
        /**
1464
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1465
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1466
         * map. See {@link ConfigurationCreateParams.Tipping.Dkk#extraParams} for the field
1467
         * documentation.
1468
         */
1469
        public Builder putExtraParam(String key, Object value) {
1470
          if (this.extraParams == null) {
×
1471
            this.extraParams = new HashMap<>();
×
1472
          }
1473
          this.extraParams.put(key, value);
×
1474
          return this;
×
1475
        }
1476

1477
        /**
1478
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1479
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1480
         * map. See {@link ConfigurationCreateParams.Tipping.Dkk#extraParams} for the field
1481
         * documentation.
1482
         */
1483
        public Builder putAllExtraParam(Map<String, Object> map) {
1484
          if (this.extraParams == null) {
×
1485
            this.extraParams = new HashMap<>();
×
1486
          }
1487
          this.extraParams.putAll(map);
×
1488
          return this;
×
1489
        }
1490

1491
        /**
1492
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1493
         * call, and subsequent calls adds additional elements to the original list. See {@link
1494
         * ConfigurationCreateParams.Tipping.Dkk#fixedAmounts} for the field documentation.
1495
         */
1496
        public Builder addFixedAmount(Long element) {
1497
          if (this.fixedAmounts == null) {
×
1498
            this.fixedAmounts = new ArrayList<>();
×
1499
          }
1500
          this.fixedAmounts.add(element);
×
1501
          return this;
×
1502
        }
1503

1504
        /**
1505
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1506
         * call, and subsequent calls adds additional elements to the original list. See {@link
1507
         * ConfigurationCreateParams.Tipping.Dkk#fixedAmounts} for the field documentation.
1508
         */
1509
        public Builder addAllFixedAmount(List<Long> elements) {
1510
          if (this.fixedAmounts == null) {
×
1511
            this.fixedAmounts = new ArrayList<>();
×
1512
          }
1513
          this.fixedAmounts.addAll(elements);
×
1514
          return this;
×
1515
        }
1516

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

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

1543
        /**
1544
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1545
         * displayed.
1546
         */
1547
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1548
          this.smartTipThreshold = smartTipThreshold;
×
1549
          return this;
×
1550
        }
1551
      }
1552
    }
1553

1554
    @Getter
1555
    public static class Eur {
1556
      /**
1557
       * Map of extra parameters for custom features not available in this client library. The
1558
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1559
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1560
       * name in this param object. Effectively, this map is flattened to its parent instance.
1561
       */
1562
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1563
      Map<String, Object> extraParams;
1564

1565
      /** Fixed amounts displayed when collecting a tip. */
1566
      @SerializedName("fixed_amounts")
1567
      List<Long> fixedAmounts;
1568

1569
      /** Percentages displayed when collecting a tip. */
1570
      @SerializedName("percentages")
1571
      List<Long> percentages;
1572

1573
      /**
1574
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1575
       * displayed.
1576
       */
1577
      @SerializedName("smart_tip_threshold")
1578
      Long smartTipThreshold;
1579

1580
      private Eur(
1581
          Map<String, Object> extraParams,
1582
          List<Long> fixedAmounts,
1583
          List<Long> percentages,
1584
          Long smartTipThreshold) {
×
1585
        this.extraParams = extraParams;
×
1586
        this.fixedAmounts = fixedAmounts;
×
1587
        this.percentages = percentages;
×
1588
        this.smartTipThreshold = smartTipThreshold;
×
1589
      }
×
1590

1591
      public static Builder builder() {
1592
        return new Builder();
×
1593
      }
1594

1595
      public static class Builder {
×
1596
        private Map<String, Object> extraParams;
1597

1598
        private List<Long> fixedAmounts;
1599

1600
        private List<Long> percentages;
1601

1602
        private Long smartTipThreshold;
1603

1604
        /** Finalize and obtain parameter instance from this builder. */
1605
        public ConfigurationCreateParams.Tipping.Eur build() {
1606
          return new ConfigurationCreateParams.Tipping.Eur(
×
1607
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1608
        }
1609

1610
        /**
1611
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1612
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1613
         * map. See {@link ConfigurationCreateParams.Tipping.Eur#extraParams} for the field
1614
         * documentation.
1615
         */
1616
        public Builder putExtraParam(String key, Object value) {
1617
          if (this.extraParams == null) {
×
1618
            this.extraParams = new HashMap<>();
×
1619
          }
1620
          this.extraParams.put(key, value);
×
1621
          return this;
×
1622
        }
1623

1624
        /**
1625
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1626
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1627
         * map. See {@link ConfigurationCreateParams.Tipping.Eur#extraParams} for the field
1628
         * documentation.
1629
         */
1630
        public Builder putAllExtraParam(Map<String, Object> map) {
1631
          if (this.extraParams == null) {
×
1632
            this.extraParams = new HashMap<>();
×
1633
          }
1634
          this.extraParams.putAll(map);
×
1635
          return this;
×
1636
        }
1637

1638
        /**
1639
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1640
         * call, and subsequent calls adds additional elements to the original list. See {@link
1641
         * ConfigurationCreateParams.Tipping.Eur#fixedAmounts} for the field documentation.
1642
         */
1643
        public Builder addFixedAmount(Long element) {
1644
          if (this.fixedAmounts == null) {
×
1645
            this.fixedAmounts = new ArrayList<>();
×
1646
          }
1647
          this.fixedAmounts.add(element);
×
1648
          return this;
×
1649
        }
1650

1651
        /**
1652
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1653
         * call, and subsequent calls adds additional elements to the original list. See {@link
1654
         * ConfigurationCreateParams.Tipping.Eur#fixedAmounts} for the field documentation.
1655
         */
1656
        public Builder addAllFixedAmount(List<Long> elements) {
1657
          if (this.fixedAmounts == null) {
×
1658
            this.fixedAmounts = new ArrayList<>();
×
1659
          }
1660
          this.fixedAmounts.addAll(elements);
×
1661
          return this;
×
1662
        }
1663

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

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

1690
        /**
1691
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1692
         * displayed.
1693
         */
1694
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1695
          this.smartTipThreshold = smartTipThreshold;
×
1696
          return this;
×
1697
        }
1698
      }
1699
    }
1700

1701
    @Getter
1702
    public static class Gbp {
1703
      /**
1704
       * Map of extra parameters for custom features not available in this client library. The
1705
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1706
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1707
       * name in this param object. Effectively, this map is flattened to its parent instance.
1708
       */
1709
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1710
      Map<String, Object> extraParams;
1711

1712
      /** Fixed amounts displayed when collecting a tip. */
1713
      @SerializedName("fixed_amounts")
1714
      List<Long> fixedAmounts;
1715

1716
      /** Percentages displayed when collecting a tip. */
1717
      @SerializedName("percentages")
1718
      List<Long> percentages;
1719

1720
      /**
1721
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1722
       * displayed.
1723
       */
1724
      @SerializedName("smart_tip_threshold")
1725
      Long smartTipThreshold;
1726

1727
      private Gbp(
1728
          Map<String, Object> extraParams,
1729
          List<Long> fixedAmounts,
1730
          List<Long> percentages,
1731
          Long smartTipThreshold) {
×
1732
        this.extraParams = extraParams;
×
1733
        this.fixedAmounts = fixedAmounts;
×
1734
        this.percentages = percentages;
×
1735
        this.smartTipThreshold = smartTipThreshold;
×
1736
      }
×
1737

1738
      public static Builder builder() {
1739
        return new Builder();
×
1740
      }
1741

1742
      public static class Builder {
×
1743
        private Map<String, Object> extraParams;
1744

1745
        private List<Long> fixedAmounts;
1746

1747
        private List<Long> percentages;
1748

1749
        private Long smartTipThreshold;
1750

1751
        /** Finalize and obtain parameter instance from this builder. */
1752
        public ConfigurationCreateParams.Tipping.Gbp build() {
1753
          return new ConfigurationCreateParams.Tipping.Gbp(
×
1754
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1755
        }
1756

1757
        /**
1758
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1759
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1760
         * map. See {@link ConfigurationCreateParams.Tipping.Gbp#extraParams} for the field
1761
         * documentation.
1762
         */
1763
        public Builder putExtraParam(String key, Object value) {
1764
          if (this.extraParams == null) {
×
1765
            this.extraParams = new HashMap<>();
×
1766
          }
1767
          this.extraParams.put(key, value);
×
1768
          return this;
×
1769
        }
1770

1771
        /**
1772
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1773
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1774
         * map. See {@link ConfigurationCreateParams.Tipping.Gbp#extraParams} for the field
1775
         * documentation.
1776
         */
1777
        public Builder putAllExtraParam(Map<String, Object> map) {
1778
          if (this.extraParams == null) {
×
1779
            this.extraParams = new HashMap<>();
×
1780
          }
1781
          this.extraParams.putAll(map);
×
1782
          return this;
×
1783
        }
1784

1785
        /**
1786
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1787
         * call, and subsequent calls adds additional elements to the original list. See {@link
1788
         * ConfigurationCreateParams.Tipping.Gbp#fixedAmounts} for the field documentation.
1789
         */
1790
        public Builder addFixedAmount(Long element) {
1791
          if (this.fixedAmounts == null) {
×
1792
            this.fixedAmounts = new ArrayList<>();
×
1793
          }
1794
          this.fixedAmounts.add(element);
×
1795
          return this;
×
1796
        }
1797

1798
        /**
1799
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1800
         * call, and subsequent calls adds additional elements to the original list. See {@link
1801
         * ConfigurationCreateParams.Tipping.Gbp#fixedAmounts} for the field documentation.
1802
         */
1803
        public Builder addAllFixedAmount(List<Long> elements) {
1804
          if (this.fixedAmounts == null) {
×
1805
            this.fixedAmounts = new ArrayList<>();
×
1806
          }
1807
          this.fixedAmounts.addAll(elements);
×
1808
          return this;
×
1809
        }
1810

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

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

1837
        /**
1838
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1839
         * displayed.
1840
         */
1841
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1842
          this.smartTipThreshold = smartTipThreshold;
×
1843
          return this;
×
1844
        }
1845
      }
1846
    }
1847

1848
    @Getter
1849
    public static class Hkd {
1850
      /**
1851
       * Map of extra parameters for custom features not available in this client library. The
1852
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1853
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1854
       * name in this param object. Effectively, this map is flattened to its parent instance.
1855
       */
1856
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1857
      Map<String, Object> extraParams;
1858

1859
      /** Fixed amounts displayed when collecting a tip. */
1860
      @SerializedName("fixed_amounts")
1861
      List<Long> fixedAmounts;
1862

1863
      /** Percentages displayed when collecting a tip. */
1864
      @SerializedName("percentages")
1865
      List<Long> percentages;
1866

1867
      /**
1868
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1869
       * displayed.
1870
       */
1871
      @SerializedName("smart_tip_threshold")
1872
      Long smartTipThreshold;
1873

1874
      private Hkd(
1875
          Map<String, Object> extraParams,
1876
          List<Long> fixedAmounts,
1877
          List<Long> percentages,
1878
          Long smartTipThreshold) {
×
1879
        this.extraParams = extraParams;
×
1880
        this.fixedAmounts = fixedAmounts;
×
1881
        this.percentages = percentages;
×
1882
        this.smartTipThreshold = smartTipThreshold;
×
1883
      }
×
1884

1885
      public static Builder builder() {
1886
        return new Builder();
×
1887
      }
1888

1889
      public static class Builder {
×
1890
        private Map<String, Object> extraParams;
1891

1892
        private List<Long> fixedAmounts;
1893

1894
        private List<Long> percentages;
1895

1896
        private Long smartTipThreshold;
1897

1898
        /** Finalize and obtain parameter instance from this builder. */
1899
        public ConfigurationCreateParams.Tipping.Hkd build() {
1900
          return new ConfigurationCreateParams.Tipping.Hkd(
×
1901
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1902
        }
1903

1904
        /**
1905
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1906
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1907
         * map. See {@link ConfigurationCreateParams.Tipping.Hkd#extraParams} for the field
1908
         * documentation.
1909
         */
1910
        public Builder putExtraParam(String key, Object value) {
1911
          if (this.extraParams == null) {
×
1912
            this.extraParams = new HashMap<>();
×
1913
          }
1914
          this.extraParams.put(key, value);
×
1915
          return this;
×
1916
        }
1917

1918
        /**
1919
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1920
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1921
         * map. See {@link ConfigurationCreateParams.Tipping.Hkd#extraParams} for the field
1922
         * documentation.
1923
         */
1924
        public Builder putAllExtraParam(Map<String, Object> map) {
1925
          if (this.extraParams == null) {
×
1926
            this.extraParams = new HashMap<>();
×
1927
          }
1928
          this.extraParams.putAll(map);
×
1929
          return this;
×
1930
        }
1931

1932
        /**
1933
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1934
         * call, and subsequent calls adds additional elements to the original list. See {@link
1935
         * ConfigurationCreateParams.Tipping.Hkd#fixedAmounts} for the field documentation.
1936
         */
1937
        public Builder addFixedAmount(Long element) {
1938
          if (this.fixedAmounts == null) {
×
1939
            this.fixedAmounts = new ArrayList<>();
×
1940
          }
1941
          this.fixedAmounts.add(element);
×
1942
          return this;
×
1943
        }
1944

1945
        /**
1946
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
1947
         * call, and subsequent calls adds additional elements to the original list. See {@link
1948
         * ConfigurationCreateParams.Tipping.Hkd#fixedAmounts} for the field documentation.
1949
         */
1950
        public Builder addAllFixedAmount(List<Long> elements) {
1951
          if (this.fixedAmounts == null) {
×
1952
            this.fixedAmounts = new ArrayList<>();
×
1953
          }
1954
          this.fixedAmounts.addAll(elements);
×
1955
          return this;
×
1956
        }
1957

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

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

1984
        /**
1985
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1986
         * displayed.
1987
         */
1988
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1989
          this.smartTipThreshold = smartTipThreshold;
×
1990
          return this;
×
1991
        }
1992
      }
1993
    }
1994

1995
    @Getter
1996
    public static class Myr {
1997
      /**
1998
       * Map of extra parameters for custom features not available in this client library. The
1999
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2000
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2001
       * name in this param object. Effectively, this map is flattened to its parent instance.
2002
       */
2003
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2004
      Map<String, Object> extraParams;
2005

2006
      /** Fixed amounts displayed when collecting a tip. */
2007
      @SerializedName("fixed_amounts")
2008
      List<Long> fixedAmounts;
2009

2010
      /** Percentages displayed when collecting a tip. */
2011
      @SerializedName("percentages")
2012
      List<Long> percentages;
2013

2014
      /**
2015
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2016
       * displayed.
2017
       */
2018
      @SerializedName("smart_tip_threshold")
2019
      Long smartTipThreshold;
2020

2021
      private Myr(
2022
          Map<String, Object> extraParams,
2023
          List<Long> fixedAmounts,
2024
          List<Long> percentages,
2025
          Long smartTipThreshold) {
×
2026
        this.extraParams = extraParams;
×
2027
        this.fixedAmounts = fixedAmounts;
×
2028
        this.percentages = percentages;
×
2029
        this.smartTipThreshold = smartTipThreshold;
×
2030
      }
×
2031

2032
      public static Builder builder() {
2033
        return new Builder();
×
2034
      }
2035

2036
      public static class Builder {
×
2037
        private Map<String, Object> extraParams;
2038

2039
        private List<Long> fixedAmounts;
2040

2041
        private List<Long> percentages;
2042

2043
        private Long smartTipThreshold;
2044

2045
        /** Finalize and obtain parameter instance from this builder. */
2046
        public ConfigurationCreateParams.Tipping.Myr build() {
2047
          return new ConfigurationCreateParams.Tipping.Myr(
×
2048
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2049
        }
2050

2051
        /**
2052
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2053
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2054
         * map. See {@link ConfigurationCreateParams.Tipping.Myr#extraParams} for the field
2055
         * documentation.
2056
         */
2057
        public Builder putExtraParam(String key, Object value) {
2058
          if (this.extraParams == null) {
×
2059
            this.extraParams = new HashMap<>();
×
2060
          }
2061
          this.extraParams.put(key, value);
×
2062
          return this;
×
2063
        }
2064

2065
        /**
2066
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2067
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2068
         * map. See {@link ConfigurationCreateParams.Tipping.Myr#extraParams} for the field
2069
         * documentation.
2070
         */
2071
        public Builder putAllExtraParam(Map<String, Object> map) {
2072
          if (this.extraParams == null) {
×
2073
            this.extraParams = new HashMap<>();
×
2074
          }
2075
          this.extraParams.putAll(map);
×
2076
          return this;
×
2077
        }
2078

2079
        /**
2080
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2081
         * call, and subsequent calls adds additional elements to the original list. See {@link
2082
         * ConfigurationCreateParams.Tipping.Myr#fixedAmounts} for the field documentation.
2083
         */
2084
        public Builder addFixedAmount(Long element) {
2085
          if (this.fixedAmounts == null) {
×
2086
            this.fixedAmounts = new ArrayList<>();
×
2087
          }
2088
          this.fixedAmounts.add(element);
×
2089
          return this;
×
2090
        }
2091

2092
        /**
2093
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2094
         * call, and subsequent calls adds additional elements to the original list. See {@link
2095
         * ConfigurationCreateParams.Tipping.Myr#fixedAmounts} for the field documentation.
2096
         */
2097
        public Builder addAllFixedAmount(List<Long> elements) {
2098
          if (this.fixedAmounts == null) {
×
2099
            this.fixedAmounts = new ArrayList<>();
×
2100
          }
2101
          this.fixedAmounts.addAll(elements);
×
2102
          return this;
×
2103
        }
2104

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

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

2131
        /**
2132
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2133
         * displayed.
2134
         */
2135
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2136
          this.smartTipThreshold = smartTipThreshold;
×
2137
          return this;
×
2138
        }
2139
      }
2140
    }
2141

2142
    @Getter
2143
    public static class Nok {
2144
      /**
2145
       * Map of extra parameters for custom features not available in this client library. The
2146
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2147
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2148
       * name in this param object. Effectively, this map is flattened to its parent instance.
2149
       */
2150
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2151
      Map<String, Object> extraParams;
2152

2153
      /** Fixed amounts displayed when collecting a tip. */
2154
      @SerializedName("fixed_amounts")
2155
      List<Long> fixedAmounts;
2156

2157
      /** Percentages displayed when collecting a tip. */
2158
      @SerializedName("percentages")
2159
      List<Long> percentages;
2160

2161
      /**
2162
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2163
       * displayed.
2164
       */
2165
      @SerializedName("smart_tip_threshold")
2166
      Long smartTipThreshold;
2167

2168
      private Nok(
2169
          Map<String, Object> extraParams,
2170
          List<Long> fixedAmounts,
2171
          List<Long> percentages,
2172
          Long smartTipThreshold) {
×
2173
        this.extraParams = extraParams;
×
2174
        this.fixedAmounts = fixedAmounts;
×
2175
        this.percentages = percentages;
×
2176
        this.smartTipThreshold = smartTipThreshold;
×
2177
      }
×
2178

2179
      public static Builder builder() {
2180
        return new Builder();
×
2181
      }
2182

2183
      public static class Builder {
×
2184
        private Map<String, Object> extraParams;
2185

2186
        private List<Long> fixedAmounts;
2187

2188
        private List<Long> percentages;
2189

2190
        private Long smartTipThreshold;
2191

2192
        /** Finalize and obtain parameter instance from this builder. */
2193
        public ConfigurationCreateParams.Tipping.Nok build() {
2194
          return new ConfigurationCreateParams.Tipping.Nok(
×
2195
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2196
        }
2197

2198
        /**
2199
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2200
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2201
         * map. See {@link ConfigurationCreateParams.Tipping.Nok#extraParams} for the field
2202
         * documentation.
2203
         */
2204
        public Builder putExtraParam(String key, Object value) {
2205
          if (this.extraParams == null) {
×
2206
            this.extraParams = new HashMap<>();
×
2207
          }
2208
          this.extraParams.put(key, value);
×
2209
          return this;
×
2210
        }
2211

2212
        /**
2213
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2214
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2215
         * map. See {@link ConfigurationCreateParams.Tipping.Nok#extraParams} for the field
2216
         * documentation.
2217
         */
2218
        public Builder putAllExtraParam(Map<String, Object> map) {
2219
          if (this.extraParams == null) {
×
2220
            this.extraParams = new HashMap<>();
×
2221
          }
2222
          this.extraParams.putAll(map);
×
2223
          return this;
×
2224
        }
2225

2226
        /**
2227
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2228
         * call, and subsequent calls adds additional elements to the original list. See {@link
2229
         * ConfigurationCreateParams.Tipping.Nok#fixedAmounts} for the field documentation.
2230
         */
2231
        public Builder addFixedAmount(Long element) {
2232
          if (this.fixedAmounts == null) {
×
2233
            this.fixedAmounts = new ArrayList<>();
×
2234
          }
2235
          this.fixedAmounts.add(element);
×
2236
          return this;
×
2237
        }
2238

2239
        /**
2240
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2241
         * call, and subsequent calls adds additional elements to the original list. See {@link
2242
         * ConfigurationCreateParams.Tipping.Nok#fixedAmounts} for the field documentation.
2243
         */
2244
        public Builder addAllFixedAmount(List<Long> elements) {
2245
          if (this.fixedAmounts == null) {
×
2246
            this.fixedAmounts = new ArrayList<>();
×
2247
          }
2248
          this.fixedAmounts.addAll(elements);
×
2249
          return this;
×
2250
        }
2251

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

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

2278
        /**
2279
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2280
         * displayed.
2281
         */
2282
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2283
          this.smartTipThreshold = smartTipThreshold;
×
2284
          return this;
×
2285
        }
2286
      }
2287
    }
2288

2289
    @Getter
2290
    public static class Nzd {
2291
      /**
2292
       * Map of extra parameters for custom features not available in this client library. The
2293
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2294
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2295
       * name in this param object. Effectively, this map is flattened to its parent instance.
2296
       */
2297
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2298
      Map<String, Object> extraParams;
2299

2300
      /** Fixed amounts displayed when collecting a tip. */
2301
      @SerializedName("fixed_amounts")
2302
      List<Long> fixedAmounts;
2303

2304
      /** Percentages displayed when collecting a tip. */
2305
      @SerializedName("percentages")
2306
      List<Long> percentages;
2307

2308
      /**
2309
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2310
       * displayed.
2311
       */
2312
      @SerializedName("smart_tip_threshold")
2313
      Long smartTipThreshold;
2314

2315
      private Nzd(
2316
          Map<String, Object> extraParams,
2317
          List<Long> fixedAmounts,
2318
          List<Long> percentages,
2319
          Long smartTipThreshold) {
×
2320
        this.extraParams = extraParams;
×
2321
        this.fixedAmounts = fixedAmounts;
×
2322
        this.percentages = percentages;
×
2323
        this.smartTipThreshold = smartTipThreshold;
×
2324
      }
×
2325

2326
      public static Builder builder() {
2327
        return new Builder();
×
2328
      }
2329

2330
      public static class Builder {
×
2331
        private Map<String, Object> extraParams;
2332

2333
        private List<Long> fixedAmounts;
2334

2335
        private List<Long> percentages;
2336

2337
        private Long smartTipThreshold;
2338

2339
        /** Finalize and obtain parameter instance from this builder. */
2340
        public ConfigurationCreateParams.Tipping.Nzd build() {
2341
          return new ConfigurationCreateParams.Tipping.Nzd(
×
2342
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2343
        }
2344

2345
        /**
2346
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2347
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2348
         * map. See {@link ConfigurationCreateParams.Tipping.Nzd#extraParams} for the field
2349
         * documentation.
2350
         */
2351
        public Builder putExtraParam(String key, Object value) {
2352
          if (this.extraParams == null) {
×
2353
            this.extraParams = new HashMap<>();
×
2354
          }
2355
          this.extraParams.put(key, value);
×
2356
          return this;
×
2357
        }
2358

2359
        /**
2360
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2361
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2362
         * map. See {@link ConfigurationCreateParams.Tipping.Nzd#extraParams} for the field
2363
         * documentation.
2364
         */
2365
        public Builder putAllExtraParam(Map<String, Object> map) {
2366
          if (this.extraParams == null) {
×
2367
            this.extraParams = new HashMap<>();
×
2368
          }
2369
          this.extraParams.putAll(map);
×
2370
          return this;
×
2371
        }
2372

2373
        /**
2374
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2375
         * call, and subsequent calls adds additional elements to the original list. See {@link
2376
         * ConfigurationCreateParams.Tipping.Nzd#fixedAmounts} for the field documentation.
2377
         */
2378
        public Builder addFixedAmount(Long element) {
2379
          if (this.fixedAmounts == null) {
×
2380
            this.fixedAmounts = new ArrayList<>();
×
2381
          }
2382
          this.fixedAmounts.add(element);
×
2383
          return this;
×
2384
        }
2385

2386
        /**
2387
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2388
         * call, and subsequent calls adds additional elements to the original list. See {@link
2389
         * ConfigurationCreateParams.Tipping.Nzd#fixedAmounts} for the field documentation.
2390
         */
2391
        public Builder addAllFixedAmount(List<Long> elements) {
2392
          if (this.fixedAmounts == null) {
×
2393
            this.fixedAmounts = new ArrayList<>();
×
2394
          }
2395
          this.fixedAmounts.addAll(elements);
×
2396
          return this;
×
2397
        }
2398

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

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

2425
        /**
2426
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2427
         * displayed.
2428
         */
2429
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2430
          this.smartTipThreshold = smartTipThreshold;
×
2431
          return this;
×
2432
        }
2433
      }
2434
    }
2435

2436
    @Getter
2437
    public static class Pln {
2438
      /**
2439
       * Map of extra parameters for custom features not available in this client library. The
2440
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2441
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2442
       * name in this param object. Effectively, this map is flattened to its parent instance.
2443
       */
2444
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2445
      Map<String, Object> extraParams;
2446

2447
      /** Fixed amounts displayed when collecting a tip. */
2448
      @SerializedName("fixed_amounts")
2449
      List<Long> fixedAmounts;
2450

2451
      /** Percentages displayed when collecting a tip. */
2452
      @SerializedName("percentages")
2453
      List<Long> percentages;
2454

2455
      /**
2456
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2457
       * displayed.
2458
       */
2459
      @SerializedName("smart_tip_threshold")
2460
      Long smartTipThreshold;
2461

2462
      private Pln(
2463
          Map<String, Object> extraParams,
2464
          List<Long> fixedAmounts,
2465
          List<Long> percentages,
NEW
2466
          Long smartTipThreshold) {
×
NEW
2467
        this.extraParams = extraParams;
×
NEW
2468
        this.fixedAmounts = fixedAmounts;
×
NEW
2469
        this.percentages = percentages;
×
NEW
2470
        this.smartTipThreshold = smartTipThreshold;
×
NEW
2471
      }
×
2472

2473
      public static Builder builder() {
NEW
2474
        return new Builder();
×
2475
      }
2476

NEW
2477
      public static class Builder {
×
2478
        private Map<String, Object> extraParams;
2479

2480
        private List<Long> fixedAmounts;
2481

2482
        private List<Long> percentages;
2483

2484
        private Long smartTipThreshold;
2485

2486
        /** Finalize and obtain parameter instance from this builder. */
2487
        public ConfigurationCreateParams.Tipping.Pln build() {
NEW
2488
          return new ConfigurationCreateParams.Tipping.Pln(
×
2489
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2490
        }
2491

2492
        /**
2493
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2494
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2495
         * map. See {@link ConfigurationCreateParams.Tipping.Pln#extraParams} for the field
2496
         * documentation.
2497
         */
2498
        public Builder putExtraParam(String key, Object value) {
NEW
2499
          if (this.extraParams == null) {
×
NEW
2500
            this.extraParams = new HashMap<>();
×
2501
          }
NEW
2502
          this.extraParams.put(key, value);
×
NEW
2503
          return this;
×
2504
        }
2505

2506
        /**
2507
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2508
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2509
         * map. See {@link ConfigurationCreateParams.Tipping.Pln#extraParams} for the field
2510
         * documentation.
2511
         */
2512
        public Builder putAllExtraParam(Map<String, Object> map) {
NEW
2513
          if (this.extraParams == null) {
×
NEW
2514
            this.extraParams = new HashMap<>();
×
2515
          }
NEW
2516
          this.extraParams.putAll(map);
×
NEW
2517
          return this;
×
2518
        }
2519

2520
        /**
2521
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2522
         * call, and subsequent calls adds additional elements to the original list. See {@link
2523
         * ConfigurationCreateParams.Tipping.Pln#fixedAmounts} for the field documentation.
2524
         */
2525
        public Builder addFixedAmount(Long element) {
NEW
2526
          if (this.fixedAmounts == null) {
×
NEW
2527
            this.fixedAmounts = new ArrayList<>();
×
2528
          }
NEW
2529
          this.fixedAmounts.add(element);
×
NEW
2530
          return this;
×
2531
        }
2532

2533
        /**
2534
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2535
         * call, and subsequent calls adds additional elements to the original list. See {@link
2536
         * ConfigurationCreateParams.Tipping.Pln#fixedAmounts} for the field documentation.
2537
         */
2538
        public Builder addAllFixedAmount(List<Long> elements) {
NEW
2539
          if (this.fixedAmounts == null) {
×
NEW
2540
            this.fixedAmounts = new ArrayList<>();
×
2541
          }
NEW
2542
          this.fixedAmounts.addAll(elements);
×
NEW
2543
          return this;
×
2544
        }
2545

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

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

2572
        /**
2573
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2574
         * displayed.
2575
         */
2576
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
NEW
2577
          this.smartTipThreshold = smartTipThreshold;
×
NEW
2578
          return this;
×
2579
        }
2580
      }
2581
    }
2582

2583
    @Getter
2584
    public static class Sek {
2585
      /**
2586
       * Map of extra parameters for custom features not available in this client library. The
2587
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2588
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2589
       * name in this param object. Effectively, this map is flattened to its parent instance.
2590
       */
2591
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2592
      Map<String, Object> extraParams;
2593

2594
      /** Fixed amounts displayed when collecting a tip. */
2595
      @SerializedName("fixed_amounts")
2596
      List<Long> fixedAmounts;
2597

2598
      /** Percentages displayed when collecting a tip. */
2599
      @SerializedName("percentages")
2600
      List<Long> percentages;
2601

2602
      /**
2603
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2604
       * displayed.
2605
       */
2606
      @SerializedName("smart_tip_threshold")
2607
      Long smartTipThreshold;
2608

2609
      private Sek(
2610
          Map<String, Object> extraParams,
2611
          List<Long> fixedAmounts,
2612
          List<Long> percentages,
2613
          Long smartTipThreshold) {
×
2614
        this.extraParams = extraParams;
×
2615
        this.fixedAmounts = fixedAmounts;
×
2616
        this.percentages = percentages;
×
2617
        this.smartTipThreshold = smartTipThreshold;
×
2618
      }
×
2619

2620
      public static Builder builder() {
2621
        return new Builder();
×
2622
      }
2623

2624
      public static class Builder {
×
2625
        private Map<String, Object> extraParams;
2626

2627
        private List<Long> fixedAmounts;
2628

2629
        private List<Long> percentages;
2630

2631
        private Long smartTipThreshold;
2632

2633
        /** Finalize and obtain parameter instance from this builder. */
2634
        public ConfigurationCreateParams.Tipping.Sek build() {
2635
          return new ConfigurationCreateParams.Tipping.Sek(
×
2636
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2637
        }
2638

2639
        /**
2640
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2641
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2642
         * map. See {@link ConfigurationCreateParams.Tipping.Sek#extraParams} for the field
2643
         * documentation.
2644
         */
2645
        public Builder putExtraParam(String key, Object value) {
2646
          if (this.extraParams == null) {
×
2647
            this.extraParams = new HashMap<>();
×
2648
          }
2649
          this.extraParams.put(key, value);
×
2650
          return this;
×
2651
        }
2652

2653
        /**
2654
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2655
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2656
         * map. See {@link ConfigurationCreateParams.Tipping.Sek#extraParams} for the field
2657
         * documentation.
2658
         */
2659
        public Builder putAllExtraParam(Map<String, Object> map) {
2660
          if (this.extraParams == null) {
×
2661
            this.extraParams = new HashMap<>();
×
2662
          }
2663
          this.extraParams.putAll(map);
×
2664
          return this;
×
2665
        }
2666

2667
        /**
2668
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2669
         * call, and subsequent calls adds additional elements to the original list. See {@link
2670
         * ConfigurationCreateParams.Tipping.Sek#fixedAmounts} for the field documentation.
2671
         */
2672
        public Builder addFixedAmount(Long element) {
2673
          if (this.fixedAmounts == null) {
×
2674
            this.fixedAmounts = new ArrayList<>();
×
2675
          }
2676
          this.fixedAmounts.add(element);
×
2677
          return this;
×
2678
        }
2679

2680
        /**
2681
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2682
         * call, and subsequent calls adds additional elements to the original list. See {@link
2683
         * ConfigurationCreateParams.Tipping.Sek#fixedAmounts} for the field documentation.
2684
         */
2685
        public Builder addAllFixedAmount(List<Long> elements) {
2686
          if (this.fixedAmounts == null) {
×
2687
            this.fixedAmounts = new ArrayList<>();
×
2688
          }
2689
          this.fixedAmounts.addAll(elements);
×
2690
          return this;
×
2691
        }
2692

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

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

2719
        /**
2720
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2721
         * displayed.
2722
         */
2723
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2724
          this.smartTipThreshold = smartTipThreshold;
×
2725
          return this;
×
2726
        }
2727
      }
2728
    }
2729

2730
    @Getter
2731
    public static class Sgd {
2732
      /**
2733
       * Map of extra parameters for custom features not available in this client library. The
2734
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2735
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2736
       * name in this param object. Effectively, this map is flattened to its parent instance.
2737
       */
2738
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2739
      Map<String, Object> extraParams;
2740

2741
      /** Fixed amounts displayed when collecting a tip. */
2742
      @SerializedName("fixed_amounts")
2743
      List<Long> fixedAmounts;
2744

2745
      /** Percentages displayed when collecting a tip. */
2746
      @SerializedName("percentages")
2747
      List<Long> percentages;
2748

2749
      /**
2750
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2751
       * displayed.
2752
       */
2753
      @SerializedName("smart_tip_threshold")
2754
      Long smartTipThreshold;
2755

2756
      private Sgd(
2757
          Map<String, Object> extraParams,
2758
          List<Long> fixedAmounts,
2759
          List<Long> percentages,
2760
          Long smartTipThreshold) {
×
2761
        this.extraParams = extraParams;
×
2762
        this.fixedAmounts = fixedAmounts;
×
2763
        this.percentages = percentages;
×
2764
        this.smartTipThreshold = smartTipThreshold;
×
2765
      }
×
2766

2767
      public static Builder builder() {
2768
        return new Builder();
×
2769
      }
2770

2771
      public static class Builder {
×
2772
        private Map<String, Object> extraParams;
2773

2774
        private List<Long> fixedAmounts;
2775

2776
        private List<Long> percentages;
2777

2778
        private Long smartTipThreshold;
2779

2780
        /** Finalize and obtain parameter instance from this builder. */
2781
        public ConfigurationCreateParams.Tipping.Sgd build() {
2782
          return new ConfigurationCreateParams.Tipping.Sgd(
×
2783
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2784
        }
2785

2786
        /**
2787
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2788
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2789
         * map. See {@link ConfigurationCreateParams.Tipping.Sgd#extraParams} for the field
2790
         * documentation.
2791
         */
2792
        public Builder putExtraParam(String key, Object value) {
2793
          if (this.extraParams == null) {
×
2794
            this.extraParams = new HashMap<>();
×
2795
          }
2796
          this.extraParams.put(key, value);
×
2797
          return this;
×
2798
        }
2799

2800
        /**
2801
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2802
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2803
         * map. See {@link ConfigurationCreateParams.Tipping.Sgd#extraParams} for the field
2804
         * documentation.
2805
         */
2806
        public Builder putAllExtraParam(Map<String, Object> map) {
2807
          if (this.extraParams == null) {
×
2808
            this.extraParams = new HashMap<>();
×
2809
          }
2810
          this.extraParams.putAll(map);
×
2811
          return this;
×
2812
        }
2813

2814
        /**
2815
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2816
         * call, and subsequent calls adds additional elements to the original list. See {@link
2817
         * ConfigurationCreateParams.Tipping.Sgd#fixedAmounts} for the field documentation.
2818
         */
2819
        public Builder addFixedAmount(Long element) {
2820
          if (this.fixedAmounts == null) {
×
2821
            this.fixedAmounts = new ArrayList<>();
×
2822
          }
2823
          this.fixedAmounts.add(element);
×
2824
          return this;
×
2825
        }
2826

2827
        /**
2828
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2829
         * call, and subsequent calls adds additional elements to the original list. See {@link
2830
         * ConfigurationCreateParams.Tipping.Sgd#fixedAmounts} for the field documentation.
2831
         */
2832
        public Builder addAllFixedAmount(List<Long> elements) {
2833
          if (this.fixedAmounts == null) {
×
2834
            this.fixedAmounts = new ArrayList<>();
×
2835
          }
2836
          this.fixedAmounts.addAll(elements);
×
2837
          return this;
×
2838
        }
2839

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

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

2866
        /**
2867
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2868
         * displayed.
2869
         */
2870
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2871
          this.smartTipThreshold = smartTipThreshold;
×
2872
          return this;
×
2873
        }
2874
      }
2875
    }
2876

2877
    @Getter
2878
    public static class Usd {
2879
      /**
2880
       * Map of extra parameters for custom features not available in this client library. The
2881
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2882
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2883
       * name in this param object. Effectively, this map is flattened to its parent instance.
2884
       */
2885
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2886
      Map<String, Object> extraParams;
2887

2888
      /** Fixed amounts displayed when collecting a tip. */
2889
      @SerializedName("fixed_amounts")
2890
      List<Long> fixedAmounts;
2891

2892
      /** Percentages displayed when collecting a tip. */
2893
      @SerializedName("percentages")
2894
      List<Long> percentages;
2895

2896
      /**
2897
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2898
       * displayed.
2899
       */
2900
      @SerializedName("smart_tip_threshold")
2901
      Long smartTipThreshold;
2902

2903
      private Usd(
2904
          Map<String, Object> extraParams,
2905
          List<Long> fixedAmounts,
2906
          List<Long> percentages,
2907
          Long smartTipThreshold) {
×
2908
        this.extraParams = extraParams;
×
2909
        this.fixedAmounts = fixedAmounts;
×
2910
        this.percentages = percentages;
×
2911
        this.smartTipThreshold = smartTipThreshold;
×
2912
      }
×
2913

2914
      public static Builder builder() {
2915
        return new Builder();
×
2916
      }
2917

2918
      public static class Builder {
×
2919
        private Map<String, Object> extraParams;
2920

2921
        private List<Long> fixedAmounts;
2922

2923
        private List<Long> percentages;
2924

2925
        private Long smartTipThreshold;
2926

2927
        /** Finalize and obtain parameter instance from this builder. */
2928
        public ConfigurationCreateParams.Tipping.Usd build() {
2929
          return new ConfigurationCreateParams.Tipping.Usd(
×
2930
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2931
        }
2932

2933
        /**
2934
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2935
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2936
         * map. See {@link ConfigurationCreateParams.Tipping.Usd#extraParams} for the field
2937
         * documentation.
2938
         */
2939
        public Builder putExtraParam(String key, Object value) {
2940
          if (this.extraParams == null) {
×
2941
            this.extraParams = new HashMap<>();
×
2942
          }
2943
          this.extraParams.put(key, value);
×
2944
          return this;
×
2945
        }
2946

2947
        /**
2948
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2949
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2950
         * map. See {@link ConfigurationCreateParams.Tipping.Usd#extraParams} for the field
2951
         * documentation.
2952
         */
2953
        public Builder putAllExtraParam(Map<String, Object> map) {
2954
          if (this.extraParams == null) {
×
2955
            this.extraParams = new HashMap<>();
×
2956
          }
2957
          this.extraParams.putAll(map);
×
2958
          return this;
×
2959
        }
2960

2961
        /**
2962
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2963
         * call, and subsequent calls adds additional elements to the original list. See {@link
2964
         * ConfigurationCreateParams.Tipping.Usd#fixedAmounts} for the field documentation.
2965
         */
2966
        public Builder addFixedAmount(Long element) {
2967
          if (this.fixedAmounts == null) {
×
2968
            this.fixedAmounts = new ArrayList<>();
×
2969
          }
2970
          this.fixedAmounts.add(element);
×
2971
          return this;
×
2972
        }
2973

2974
        /**
2975
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
2976
         * call, and subsequent calls adds additional elements to the original list. See {@link
2977
         * ConfigurationCreateParams.Tipping.Usd#fixedAmounts} for the field documentation.
2978
         */
2979
        public Builder addAllFixedAmount(List<Long> elements) {
2980
          if (this.fixedAmounts == null) {
×
2981
            this.fixedAmounts = new ArrayList<>();
×
2982
          }
2983
          this.fixedAmounts.addAll(elements);
×
2984
          return this;
×
2985
        }
2986

2987
        /**
2988
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
2989
         * call, and subsequent calls adds additional elements to the original list. See {@link
2990
         * ConfigurationCreateParams.Tipping.Usd#percentages} for the field documentation.
2991
         */
2992
        public Builder addPercentage(Long element) {
2993
          if (this.percentages == null) {
×
2994
            this.percentages = new ArrayList<>();
×
2995
          }
2996
          this.percentages.add(element);
×
2997
          return this;
×
2998
        }
2999

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

3013
        /**
3014
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
3015
         * displayed.
3016
         */
3017
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
3018
          this.smartTipThreshold = smartTipThreshold;
×
3019
          return this;
×
3020
        }
3021
      }
3022
    }
3023
  }
3024

3025
  @Getter
3026
  public static class VerifoneP400 {
3027
    /**
3028
     * Map of extra parameters for custom features not available in this client library. The content
3029
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
3030
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
3031
     * param object. Effectively, this map is flattened to its parent instance.
3032
     */
3033
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
3034
    Map<String, Object> extraParams;
3035

3036
    /** A File ID representing an image you would like displayed on the reader. */
3037
    @SerializedName("splashscreen")
3038
    Object splashscreen;
3039

3040
    private VerifoneP400(Map<String, Object> extraParams, Object splashscreen) {
×
3041
      this.extraParams = extraParams;
×
3042
      this.splashscreen = splashscreen;
×
3043
    }
×
3044

3045
    public static Builder builder() {
3046
      return new Builder();
×
3047
    }
3048

3049
    public static class Builder {
×
3050
      private Map<String, Object> extraParams;
3051

3052
      private Object splashscreen;
3053

3054
      /** Finalize and obtain parameter instance from this builder. */
3055
      public ConfigurationCreateParams.VerifoneP400 build() {
3056
        return new ConfigurationCreateParams.VerifoneP400(this.extraParams, this.splashscreen);
×
3057
      }
3058

3059
      /**
3060
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
3061
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
3062
       * ConfigurationCreateParams.VerifoneP400#extraParams} for the field documentation.
3063
       */
3064
      public Builder putExtraParam(String key, Object value) {
3065
        if (this.extraParams == null) {
×
3066
          this.extraParams = new HashMap<>();
×
3067
        }
3068
        this.extraParams.put(key, value);
×
3069
        return this;
×
3070
      }
3071

3072
      /**
3073
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
3074
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
3075
       * See {@link ConfigurationCreateParams.VerifoneP400#extraParams} for the field documentation.
3076
       */
3077
      public Builder putAllExtraParam(Map<String, Object> map) {
3078
        if (this.extraParams == null) {
×
3079
          this.extraParams = new HashMap<>();
×
3080
        }
3081
        this.extraParams.putAll(map);
×
3082
        return this;
×
3083
      }
3084

3085
      /** A File ID representing an image you would like displayed on the reader. */
3086
      public Builder setSplashscreen(String splashscreen) {
3087
        this.splashscreen = splashscreen;
×
3088
        return this;
×
3089
      }
3090

3091
      /** A File ID representing an image you would like displayed on the reader. */
3092
      public Builder setSplashscreen(EmptyParam splashscreen) {
3093
        this.splashscreen = splashscreen;
×
3094
        return this;
×
3095
      }
3096
    }
3097
  }
3098
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc