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

stripe / stripe-java / #16730

10 Jan 2025 03:18AM UTC coverage: 12.334% (-0.006%) from 12.34%
#16730

Pull #1935

github

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

1 of 77 new or added lines in 3 files covered. (1.3%)

24 existing lines in 1 file now uncovered.

18907 of 153286 relevant lines covered (12.33%)

0.12 hits per line

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

3.27
/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 JPY. */
582
    @SerializedName("jpy")
583
    Jpy jpy;
584

585
    /** Tipping configuration for MYR. */
586
    @SerializedName("myr")
587
    Myr myr;
588

589
    /** Tipping configuration for NOK. */
590
    @SerializedName("nok")
591
    Nok nok;
592

593
    /** Tipping configuration for NZD. */
594
    @SerializedName("nzd")
595
    Nzd nzd;
596

597
    /** Tipping configuration for PLN. */
598
    @SerializedName("pln")
599
    Pln pln;
600

601
    /** Tipping configuration for SEK. */
602
    @SerializedName("sek")
603
    Sek sek;
604

605
    /** Tipping configuration for SGD. */
606
    @SerializedName("sgd")
607
    Sgd sgd;
608

609
    /** Tipping configuration for USD. */
610
    @SerializedName("usd")
611
    Usd usd;
612

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

650
    public static Builder builder() {
651
      return new Builder();
×
652
    }
653

654
    public static class Builder {
×
655
      private Aud aud;
656

657
      private Cad cad;
658

659
      private Chf chf;
660

661
      private Czk czk;
662

663
      private Dkk dkk;
664

665
      private Eur eur;
666

667
      private Map<String, Object> extraParams;
668

669
      private Gbp gbp;
670

671
      private Hkd hkd;
672

673
      private Jpy jpy;
674

675
      private Myr myr;
676

677
      private Nok nok;
678

679
      private Nzd nzd;
680

681
      private Pln pln;
682

683
      private Sek sek;
684

685
      private Sgd sgd;
686

687
      private Usd usd;
688

689
      /** Finalize and obtain parameter instance from this builder. */
690
      public ConfigurationCreateParams.Tipping build() {
691
        return new ConfigurationCreateParams.Tipping(
×
692
            this.aud,
693
            this.cad,
694
            this.chf,
695
            this.czk,
696
            this.dkk,
697
            this.eur,
698
            this.extraParams,
699
            this.gbp,
700
            this.hkd,
701
            this.jpy,
702
            this.myr,
703
            this.nok,
704
            this.nzd,
705
            this.pln,
706
            this.sek,
707
            this.sgd,
708
            this.usd);
709
      }
710

711
      /** Tipping configuration for AUD. */
712
      public Builder setAud(ConfigurationCreateParams.Tipping.Aud aud) {
713
        this.aud = aud;
×
714
        return this;
×
715
      }
716

717
      /** Tipping configuration for CAD. */
718
      public Builder setCad(ConfigurationCreateParams.Tipping.Cad cad) {
719
        this.cad = cad;
×
720
        return this;
×
721
      }
722

723
      /** Tipping configuration for CHF. */
724
      public Builder setChf(ConfigurationCreateParams.Tipping.Chf chf) {
725
        this.chf = chf;
×
726
        return this;
×
727
      }
728

729
      /** Tipping configuration for CZK. */
730
      public Builder setCzk(ConfigurationCreateParams.Tipping.Czk czk) {
731
        this.czk = czk;
×
732
        return this;
×
733
      }
734

735
      /** Tipping configuration for DKK. */
736
      public Builder setDkk(ConfigurationCreateParams.Tipping.Dkk dkk) {
737
        this.dkk = dkk;
×
738
        return this;
×
739
      }
740

741
      /** Tipping configuration for EUR. */
742
      public Builder setEur(ConfigurationCreateParams.Tipping.Eur eur) {
743
        this.eur = eur;
×
744
        return this;
×
745
      }
746

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

760
      /**
761
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
762
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
763
       * See {@link ConfigurationCreateParams.Tipping#extraParams} for the field documentation.
764
       */
765
      public Builder putAllExtraParam(Map<String, Object> map) {
766
        if (this.extraParams == null) {
×
767
          this.extraParams = new HashMap<>();
×
768
        }
769
        this.extraParams.putAll(map);
×
770
        return this;
×
771
      }
772

773
      /** Tipping configuration for GBP. */
774
      public Builder setGbp(ConfigurationCreateParams.Tipping.Gbp gbp) {
775
        this.gbp = gbp;
×
776
        return this;
×
777
      }
778

779
      /** Tipping configuration for HKD. */
780
      public Builder setHkd(ConfigurationCreateParams.Tipping.Hkd hkd) {
781
        this.hkd = hkd;
×
782
        return this;
×
783
      }
784

785
      /** Tipping configuration for JPY. */
786
      public Builder setJpy(ConfigurationCreateParams.Tipping.Jpy jpy) {
NEW
787
        this.jpy = jpy;
×
NEW
788
        return this;
×
789
      }
790

791
      /** Tipping configuration for MYR. */
792
      public Builder setMyr(ConfigurationCreateParams.Tipping.Myr myr) {
793
        this.myr = myr;
×
794
        return this;
×
795
      }
796

797
      /** Tipping configuration for NOK. */
798
      public Builder setNok(ConfigurationCreateParams.Tipping.Nok nok) {
799
        this.nok = nok;
×
800
        return this;
×
801
      }
802

803
      /** Tipping configuration for NZD. */
804
      public Builder setNzd(ConfigurationCreateParams.Tipping.Nzd nzd) {
805
        this.nzd = nzd;
×
806
        return this;
×
807
      }
808

809
      /** Tipping configuration for PLN. */
810
      public Builder setPln(ConfigurationCreateParams.Tipping.Pln pln) {
811
        this.pln = pln;
×
812
        return this;
×
813
      }
814

815
      /** Tipping configuration for SEK. */
816
      public Builder setSek(ConfigurationCreateParams.Tipping.Sek sek) {
817
        this.sek = sek;
×
818
        return this;
×
819
      }
820

821
      /** Tipping configuration for SGD. */
822
      public Builder setSgd(ConfigurationCreateParams.Tipping.Sgd sgd) {
823
        this.sgd = sgd;
×
824
        return this;
×
825
      }
826

827
      /** Tipping configuration for USD. */
828
      public Builder setUsd(ConfigurationCreateParams.Tipping.Usd usd) {
829
        this.usd = usd;
×
830
        return this;
×
831
      }
832
    }
833

834
    @Getter
835
    public static class Aud {
836
      /**
837
       * Map of extra parameters for custom features not available in this client library. The
838
       * content in this map is not serialized under this field's {@code @SerializedName} value.
839
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
840
       * name in this param object. Effectively, this map is flattened to its parent instance.
841
       */
842
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
843
      Map<String, Object> extraParams;
844

845
      /** Fixed amounts displayed when collecting a tip. */
846
      @SerializedName("fixed_amounts")
847
      List<Long> fixedAmounts;
848

849
      /** Percentages displayed when collecting a tip. */
850
      @SerializedName("percentages")
851
      List<Long> percentages;
852

853
      /**
854
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
855
       * displayed.
856
       */
857
      @SerializedName("smart_tip_threshold")
858
      Long smartTipThreshold;
859

860
      private Aud(
861
          Map<String, Object> extraParams,
862
          List<Long> fixedAmounts,
863
          List<Long> percentages,
864
          Long smartTipThreshold) {
×
865
        this.extraParams = extraParams;
×
866
        this.fixedAmounts = fixedAmounts;
×
867
        this.percentages = percentages;
×
868
        this.smartTipThreshold = smartTipThreshold;
×
869
      }
×
870

871
      public static Builder builder() {
872
        return new Builder();
×
873
      }
874

875
      public static class Builder {
×
876
        private Map<String, Object> extraParams;
877

878
        private List<Long> fixedAmounts;
879

880
        private List<Long> percentages;
881

882
        private Long smartTipThreshold;
883

884
        /** Finalize and obtain parameter instance from this builder. */
885
        public ConfigurationCreateParams.Tipping.Aud build() {
886
          return new ConfigurationCreateParams.Tipping.Aud(
×
887
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
888
        }
889

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

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

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

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

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

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

970
        /**
971
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
972
         * displayed.
973
         */
974
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
975
          this.smartTipThreshold = smartTipThreshold;
×
976
          return this;
×
977
        }
978
      }
979
    }
980

981
    @Getter
982
    public static class Cad {
983
      /**
984
       * Map of extra parameters for custom features not available in this client library. The
985
       * content in this map is not serialized under this field's {@code @SerializedName} value.
986
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
987
       * name in this param object. Effectively, this map is flattened to its parent instance.
988
       */
989
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
990
      Map<String, Object> extraParams;
991

992
      /** Fixed amounts displayed when collecting a tip. */
993
      @SerializedName("fixed_amounts")
994
      List<Long> fixedAmounts;
995

996
      /** Percentages displayed when collecting a tip. */
997
      @SerializedName("percentages")
998
      List<Long> percentages;
999

1000
      /**
1001
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1002
       * displayed.
1003
       */
1004
      @SerializedName("smart_tip_threshold")
1005
      Long smartTipThreshold;
1006

1007
      private Cad(
1008
          Map<String, Object> extraParams,
1009
          List<Long> fixedAmounts,
1010
          List<Long> percentages,
1011
          Long smartTipThreshold) {
×
1012
        this.extraParams = extraParams;
×
1013
        this.fixedAmounts = fixedAmounts;
×
1014
        this.percentages = percentages;
×
1015
        this.smartTipThreshold = smartTipThreshold;
×
1016
      }
×
1017

1018
      public static Builder builder() {
1019
        return new Builder();
×
1020
      }
1021

1022
      public static class Builder {
×
1023
        private Map<String, Object> extraParams;
1024

1025
        private List<Long> fixedAmounts;
1026

1027
        private List<Long> percentages;
1028

1029
        private Long smartTipThreshold;
1030

1031
        /** Finalize and obtain parameter instance from this builder. */
1032
        public ConfigurationCreateParams.Tipping.Cad build() {
1033
          return new ConfigurationCreateParams.Tipping.Cad(
×
1034
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1035
        }
1036

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

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

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

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

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

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

1117
        /**
1118
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1119
         * displayed.
1120
         */
1121
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1122
          this.smartTipThreshold = smartTipThreshold;
×
1123
          return this;
×
1124
        }
1125
      }
1126
    }
1127

1128
    @Getter
1129
    public static class Chf {
1130
      /**
1131
       * Map of extra parameters for custom features not available in this client library. The
1132
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1133
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1134
       * name in this param object. Effectively, this map is flattened to its parent instance.
1135
       */
1136
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1137
      Map<String, Object> extraParams;
1138

1139
      /** Fixed amounts displayed when collecting a tip. */
1140
      @SerializedName("fixed_amounts")
1141
      List<Long> fixedAmounts;
1142

1143
      /** Percentages displayed when collecting a tip. */
1144
      @SerializedName("percentages")
1145
      List<Long> percentages;
1146

1147
      /**
1148
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1149
       * displayed.
1150
       */
1151
      @SerializedName("smart_tip_threshold")
1152
      Long smartTipThreshold;
1153

1154
      private Chf(
1155
          Map<String, Object> extraParams,
1156
          List<Long> fixedAmounts,
1157
          List<Long> percentages,
1158
          Long smartTipThreshold) {
×
1159
        this.extraParams = extraParams;
×
1160
        this.fixedAmounts = fixedAmounts;
×
1161
        this.percentages = percentages;
×
1162
        this.smartTipThreshold = smartTipThreshold;
×
1163
      }
×
1164

1165
      public static Builder builder() {
1166
        return new Builder();
×
1167
      }
1168

1169
      public static class Builder {
×
1170
        private Map<String, Object> extraParams;
1171

1172
        private List<Long> fixedAmounts;
1173

1174
        private List<Long> percentages;
1175

1176
        private Long smartTipThreshold;
1177

1178
        /** Finalize and obtain parameter instance from this builder. */
1179
        public ConfigurationCreateParams.Tipping.Chf build() {
1180
          return new ConfigurationCreateParams.Tipping.Chf(
×
1181
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1182
        }
1183

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

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

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

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

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

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

1264
        /**
1265
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1266
         * displayed.
1267
         */
1268
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1269
          this.smartTipThreshold = smartTipThreshold;
×
1270
          return this;
×
1271
        }
1272
      }
1273
    }
1274

1275
    @Getter
1276
    public static class Czk {
1277
      /**
1278
       * Map of extra parameters for custom features not available in this client library. The
1279
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1280
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1281
       * name in this param object. Effectively, this map is flattened to its parent instance.
1282
       */
1283
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1284
      Map<String, Object> extraParams;
1285

1286
      /** Fixed amounts displayed when collecting a tip. */
1287
      @SerializedName("fixed_amounts")
1288
      List<Long> fixedAmounts;
1289

1290
      /** Percentages displayed when collecting a tip. */
1291
      @SerializedName("percentages")
1292
      List<Long> percentages;
1293

1294
      /**
1295
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1296
       * displayed.
1297
       */
1298
      @SerializedName("smart_tip_threshold")
1299
      Long smartTipThreshold;
1300

1301
      private Czk(
1302
          Map<String, Object> extraParams,
1303
          List<Long> fixedAmounts,
1304
          List<Long> percentages,
1305
          Long smartTipThreshold) {
×
1306
        this.extraParams = extraParams;
×
1307
        this.fixedAmounts = fixedAmounts;
×
1308
        this.percentages = percentages;
×
1309
        this.smartTipThreshold = smartTipThreshold;
×
1310
      }
×
1311

1312
      public static Builder builder() {
1313
        return new Builder();
×
1314
      }
1315

1316
      public static class Builder {
×
1317
        private Map<String, Object> extraParams;
1318

1319
        private List<Long> fixedAmounts;
1320

1321
        private List<Long> percentages;
1322

1323
        private Long smartTipThreshold;
1324

1325
        /** Finalize and obtain parameter instance from this builder. */
1326
        public ConfigurationCreateParams.Tipping.Czk build() {
1327
          return new ConfigurationCreateParams.Tipping.Czk(
×
1328
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1329
        }
1330

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

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

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

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

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

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

1411
        /**
1412
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1413
         * displayed.
1414
         */
1415
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1416
          this.smartTipThreshold = smartTipThreshold;
×
1417
          return this;
×
1418
        }
1419
      }
1420
    }
1421

1422
    @Getter
1423
    public static class Dkk {
1424
      /**
1425
       * Map of extra parameters for custom features not available in this client library. The
1426
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1427
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1428
       * name in this param object. Effectively, this map is flattened to its parent instance.
1429
       */
1430
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1431
      Map<String, Object> extraParams;
1432

1433
      /** Fixed amounts displayed when collecting a tip. */
1434
      @SerializedName("fixed_amounts")
1435
      List<Long> fixedAmounts;
1436

1437
      /** Percentages displayed when collecting a tip. */
1438
      @SerializedName("percentages")
1439
      List<Long> percentages;
1440

1441
      /**
1442
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1443
       * displayed.
1444
       */
1445
      @SerializedName("smart_tip_threshold")
1446
      Long smartTipThreshold;
1447

1448
      private Dkk(
1449
          Map<String, Object> extraParams,
1450
          List<Long> fixedAmounts,
1451
          List<Long> percentages,
1452
          Long smartTipThreshold) {
×
1453
        this.extraParams = extraParams;
×
1454
        this.fixedAmounts = fixedAmounts;
×
1455
        this.percentages = percentages;
×
1456
        this.smartTipThreshold = smartTipThreshold;
×
1457
      }
×
1458

1459
      public static Builder builder() {
1460
        return new Builder();
×
1461
      }
1462

1463
      public static class Builder {
×
1464
        private Map<String, Object> extraParams;
1465

1466
        private List<Long> fixedAmounts;
1467

1468
        private List<Long> percentages;
1469

1470
        private Long smartTipThreshold;
1471

1472
        /** Finalize and obtain parameter instance from this builder. */
1473
        public ConfigurationCreateParams.Tipping.Dkk build() {
1474
          return new ConfigurationCreateParams.Tipping.Dkk(
×
1475
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1476
        }
1477

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

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

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

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

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

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

1558
        /**
1559
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1560
         * displayed.
1561
         */
1562
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1563
          this.smartTipThreshold = smartTipThreshold;
×
1564
          return this;
×
1565
        }
1566
      }
1567
    }
1568

1569
    @Getter
1570
    public static class Eur {
1571
      /**
1572
       * Map of extra parameters for custom features not available in this client library. The
1573
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1574
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1575
       * name in this param object. Effectively, this map is flattened to its parent instance.
1576
       */
1577
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1578
      Map<String, Object> extraParams;
1579

1580
      /** Fixed amounts displayed when collecting a tip. */
1581
      @SerializedName("fixed_amounts")
1582
      List<Long> fixedAmounts;
1583

1584
      /** Percentages displayed when collecting a tip. */
1585
      @SerializedName("percentages")
1586
      List<Long> percentages;
1587

1588
      /**
1589
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1590
       * displayed.
1591
       */
1592
      @SerializedName("smart_tip_threshold")
1593
      Long smartTipThreshold;
1594

1595
      private Eur(
1596
          Map<String, Object> extraParams,
1597
          List<Long> fixedAmounts,
1598
          List<Long> percentages,
1599
          Long smartTipThreshold) {
×
1600
        this.extraParams = extraParams;
×
1601
        this.fixedAmounts = fixedAmounts;
×
1602
        this.percentages = percentages;
×
1603
        this.smartTipThreshold = smartTipThreshold;
×
1604
      }
×
1605

1606
      public static Builder builder() {
1607
        return new Builder();
×
1608
      }
1609

1610
      public static class Builder {
×
1611
        private Map<String, Object> extraParams;
1612

1613
        private List<Long> fixedAmounts;
1614

1615
        private List<Long> percentages;
1616

1617
        private Long smartTipThreshold;
1618

1619
        /** Finalize and obtain parameter instance from this builder. */
1620
        public ConfigurationCreateParams.Tipping.Eur build() {
1621
          return new ConfigurationCreateParams.Tipping.Eur(
×
1622
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1623
        }
1624

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

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

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

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

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

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

1705
        /**
1706
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1707
         * displayed.
1708
         */
1709
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1710
          this.smartTipThreshold = smartTipThreshold;
×
1711
          return this;
×
1712
        }
1713
      }
1714
    }
1715

1716
    @Getter
1717
    public static class Gbp {
1718
      /**
1719
       * Map of extra parameters for custom features not available in this client library. The
1720
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1721
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1722
       * name in this param object. Effectively, this map is flattened to its parent instance.
1723
       */
1724
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1725
      Map<String, Object> extraParams;
1726

1727
      /** Fixed amounts displayed when collecting a tip. */
1728
      @SerializedName("fixed_amounts")
1729
      List<Long> fixedAmounts;
1730

1731
      /** Percentages displayed when collecting a tip. */
1732
      @SerializedName("percentages")
1733
      List<Long> percentages;
1734

1735
      /**
1736
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1737
       * displayed.
1738
       */
1739
      @SerializedName("smart_tip_threshold")
1740
      Long smartTipThreshold;
1741

1742
      private Gbp(
1743
          Map<String, Object> extraParams,
1744
          List<Long> fixedAmounts,
1745
          List<Long> percentages,
1746
          Long smartTipThreshold) {
×
1747
        this.extraParams = extraParams;
×
1748
        this.fixedAmounts = fixedAmounts;
×
1749
        this.percentages = percentages;
×
1750
        this.smartTipThreshold = smartTipThreshold;
×
1751
      }
×
1752

1753
      public static Builder builder() {
1754
        return new Builder();
×
1755
      }
1756

1757
      public static class Builder {
×
1758
        private Map<String, Object> extraParams;
1759

1760
        private List<Long> fixedAmounts;
1761

1762
        private List<Long> percentages;
1763

1764
        private Long smartTipThreshold;
1765

1766
        /** Finalize and obtain parameter instance from this builder. */
1767
        public ConfigurationCreateParams.Tipping.Gbp build() {
1768
          return new ConfigurationCreateParams.Tipping.Gbp(
×
1769
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1770
        }
1771

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

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

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

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

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

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

1852
        /**
1853
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
1854
         * displayed.
1855
         */
1856
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
1857
          this.smartTipThreshold = smartTipThreshold;
×
1858
          return this;
×
1859
        }
1860
      }
1861
    }
1862

1863
    @Getter
1864
    public static class Hkd {
1865
      /**
1866
       * Map of extra parameters for custom features not available in this client library. The
1867
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1868
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1869
       * name in this param object. Effectively, this map is flattened to its parent instance.
1870
       */
1871
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1872
      Map<String, Object> extraParams;
1873

1874
      /** Fixed amounts displayed when collecting a tip. */
1875
      @SerializedName("fixed_amounts")
1876
      List<Long> fixedAmounts;
1877

1878
      /** Percentages displayed when collecting a tip. */
1879
      @SerializedName("percentages")
1880
      List<Long> percentages;
1881

1882
      /**
1883
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
1884
       * displayed.
1885
       */
1886
      @SerializedName("smart_tip_threshold")
1887
      Long smartTipThreshold;
1888

1889
      private Hkd(
1890
          Map<String, Object> extraParams,
1891
          List<Long> fixedAmounts,
1892
          List<Long> percentages,
1893
          Long smartTipThreshold) {
×
1894
        this.extraParams = extraParams;
×
1895
        this.fixedAmounts = fixedAmounts;
×
1896
        this.percentages = percentages;
×
1897
        this.smartTipThreshold = smartTipThreshold;
×
1898
      }
×
1899

1900
      public static Builder builder() {
1901
        return new Builder();
×
1902
      }
1903

1904
      public static class Builder {
×
1905
        private Map<String, Object> extraParams;
1906

1907
        private List<Long> fixedAmounts;
1908

1909
        private List<Long> percentages;
1910

1911
        private Long smartTipThreshold;
1912

1913
        /** Finalize and obtain parameter instance from this builder. */
1914
        public ConfigurationCreateParams.Tipping.Hkd build() {
1915
          return new ConfigurationCreateParams.Tipping.Hkd(
×
1916
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
1917
        }
1918

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

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

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

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

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

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

1999
        /**
2000
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2001
         * displayed.
2002
         */
2003
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2004
          this.smartTipThreshold = smartTipThreshold;
×
2005
          return this;
×
2006
        }
2007
      }
2008
    }
2009

2010
    @Getter
2011
    public static class Jpy {
2012
      /**
2013
       * Map of extra parameters for custom features not available in this client library. The
2014
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2015
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2016
       * name in this param object. Effectively, this map is flattened to its parent instance.
2017
       */
2018
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2019
      Map<String, Object> extraParams;
2020

2021
      /** Fixed amounts displayed when collecting a tip. */
2022
      @SerializedName("fixed_amounts")
2023
      List<Long> fixedAmounts;
2024

2025
      /** Percentages displayed when collecting a tip. */
2026
      @SerializedName("percentages")
2027
      List<Long> percentages;
2028

2029
      /**
2030
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2031
       * displayed.
2032
       */
2033
      @SerializedName("smart_tip_threshold")
2034
      Long smartTipThreshold;
2035

2036
      private Jpy(
2037
          Map<String, Object> extraParams,
2038
          List<Long> fixedAmounts,
2039
          List<Long> percentages,
NEW
2040
          Long smartTipThreshold) {
×
NEW
2041
        this.extraParams = extraParams;
×
NEW
2042
        this.fixedAmounts = fixedAmounts;
×
NEW
2043
        this.percentages = percentages;
×
NEW
2044
        this.smartTipThreshold = smartTipThreshold;
×
NEW
2045
      }
×
2046

2047
      public static Builder builder() {
NEW
2048
        return new Builder();
×
2049
      }
2050

NEW
2051
      public static class Builder {
×
2052
        private Map<String, Object> extraParams;
2053

2054
        private List<Long> fixedAmounts;
2055

2056
        private List<Long> percentages;
2057

2058
        private Long smartTipThreshold;
2059

2060
        /** Finalize and obtain parameter instance from this builder. */
2061
        public ConfigurationCreateParams.Tipping.Jpy build() {
NEW
2062
          return new ConfigurationCreateParams.Tipping.Jpy(
×
2063
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2064
        }
2065

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

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

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

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

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

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

2146
        /**
2147
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2148
         * displayed.
2149
         */
2150
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
NEW
2151
          this.smartTipThreshold = smartTipThreshold;
×
NEW
2152
          return this;
×
2153
        }
2154
      }
2155
    }
2156

2157
    @Getter
2158
    public static class Myr {
2159
      /**
2160
       * Map of extra parameters for custom features not available in this client library. The
2161
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2162
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2163
       * name in this param object. Effectively, this map is flattened to its parent instance.
2164
       */
2165
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2166
      Map<String, Object> extraParams;
2167

2168
      /** Fixed amounts displayed when collecting a tip. */
2169
      @SerializedName("fixed_amounts")
2170
      List<Long> fixedAmounts;
2171

2172
      /** Percentages displayed when collecting a tip. */
2173
      @SerializedName("percentages")
2174
      List<Long> percentages;
2175

2176
      /**
2177
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2178
       * displayed.
2179
       */
2180
      @SerializedName("smart_tip_threshold")
2181
      Long smartTipThreshold;
2182

2183
      private Myr(
2184
          Map<String, Object> extraParams,
2185
          List<Long> fixedAmounts,
2186
          List<Long> percentages,
2187
          Long smartTipThreshold) {
×
2188
        this.extraParams = extraParams;
×
2189
        this.fixedAmounts = fixedAmounts;
×
2190
        this.percentages = percentages;
×
2191
        this.smartTipThreshold = smartTipThreshold;
×
2192
      }
×
2193

2194
      public static Builder builder() {
2195
        return new Builder();
×
2196
      }
2197

2198
      public static class Builder {
×
2199
        private Map<String, Object> extraParams;
2200

2201
        private List<Long> fixedAmounts;
2202

2203
        private List<Long> percentages;
2204

2205
        private Long smartTipThreshold;
2206

2207
        /** Finalize and obtain parameter instance from this builder. */
2208
        public ConfigurationCreateParams.Tipping.Myr build() {
2209
          return new ConfigurationCreateParams.Tipping.Myr(
×
2210
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2211
        }
2212

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

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

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

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

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

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

2293
        /**
2294
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2295
         * displayed.
2296
         */
2297
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2298
          this.smartTipThreshold = smartTipThreshold;
×
2299
          return this;
×
2300
        }
2301
      }
2302
    }
2303

2304
    @Getter
2305
    public static class Nok {
2306
      /**
2307
       * Map of extra parameters for custom features not available in this client library. The
2308
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2309
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2310
       * name in this param object. Effectively, this map is flattened to its parent instance.
2311
       */
2312
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2313
      Map<String, Object> extraParams;
2314

2315
      /** Fixed amounts displayed when collecting a tip. */
2316
      @SerializedName("fixed_amounts")
2317
      List<Long> fixedAmounts;
2318

2319
      /** Percentages displayed when collecting a tip. */
2320
      @SerializedName("percentages")
2321
      List<Long> percentages;
2322

2323
      /**
2324
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2325
       * displayed.
2326
       */
2327
      @SerializedName("smart_tip_threshold")
2328
      Long smartTipThreshold;
2329

2330
      private Nok(
2331
          Map<String, Object> extraParams,
2332
          List<Long> fixedAmounts,
2333
          List<Long> percentages,
2334
          Long smartTipThreshold) {
×
2335
        this.extraParams = extraParams;
×
2336
        this.fixedAmounts = fixedAmounts;
×
2337
        this.percentages = percentages;
×
2338
        this.smartTipThreshold = smartTipThreshold;
×
2339
      }
×
2340

2341
      public static Builder builder() {
2342
        return new Builder();
×
2343
      }
2344

2345
      public static class Builder {
×
2346
        private Map<String, Object> extraParams;
2347

2348
        private List<Long> fixedAmounts;
2349

2350
        private List<Long> percentages;
2351

2352
        private Long smartTipThreshold;
2353

2354
        /** Finalize and obtain parameter instance from this builder. */
2355
        public ConfigurationCreateParams.Tipping.Nok build() {
2356
          return new ConfigurationCreateParams.Tipping.Nok(
×
2357
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2358
        }
2359

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

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

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

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

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

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

2440
        /**
2441
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2442
         * displayed.
2443
         */
2444
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2445
          this.smartTipThreshold = smartTipThreshold;
×
2446
          return this;
×
2447
        }
2448
      }
2449
    }
2450

2451
    @Getter
2452
    public static class Nzd {
2453
      /**
2454
       * Map of extra parameters for custom features not available in this client library. The
2455
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2456
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2457
       * name in this param object. Effectively, this map is flattened to its parent instance.
2458
       */
2459
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2460
      Map<String, Object> extraParams;
2461

2462
      /** Fixed amounts displayed when collecting a tip. */
2463
      @SerializedName("fixed_amounts")
2464
      List<Long> fixedAmounts;
2465

2466
      /** Percentages displayed when collecting a tip. */
2467
      @SerializedName("percentages")
2468
      List<Long> percentages;
2469

2470
      /**
2471
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2472
       * displayed.
2473
       */
2474
      @SerializedName("smart_tip_threshold")
2475
      Long smartTipThreshold;
2476

2477
      private Nzd(
2478
          Map<String, Object> extraParams,
2479
          List<Long> fixedAmounts,
2480
          List<Long> percentages,
2481
          Long smartTipThreshold) {
×
2482
        this.extraParams = extraParams;
×
2483
        this.fixedAmounts = fixedAmounts;
×
2484
        this.percentages = percentages;
×
2485
        this.smartTipThreshold = smartTipThreshold;
×
2486
      }
×
2487

2488
      public static Builder builder() {
2489
        return new Builder();
×
2490
      }
2491

2492
      public static class Builder {
×
2493
        private Map<String, Object> extraParams;
2494

2495
        private List<Long> fixedAmounts;
2496

2497
        private List<Long> percentages;
2498

2499
        private Long smartTipThreshold;
2500

2501
        /** Finalize and obtain parameter instance from this builder. */
2502
        public ConfigurationCreateParams.Tipping.Nzd build() {
2503
          return new ConfigurationCreateParams.Tipping.Nzd(
×
2504
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2505
        }
2506

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

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

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

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

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

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

2587
        /**
2588
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2589
         * displayed.
2590
         */
2591
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2592
          this.smartTipThreshold = smartTipThreshold;
×
2593
          return this;
×
2594
        }
2595
      }
2596
    }
2597

2598
    @Getter
2599
    public static class Pln {
2600
      /**
2601
       * Map of extra parameters for custom features not available in this client library. The
2602
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2603
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2604
       * name in this param object. Effectively, this map is flattened to its parent instance.
2605
       */
2606
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2607
      Map<String, Object> extraParams;
2608

2609
      /** Fixed amounts displayed when collecting a tip. */
2610
      @SerializedName("fixed_amounts")
2611
      List<Long> fixedAmounts;
2612

2613
      /** Percentages displayed when collecting a tip. */
2614
      @SerializedName("percentages")
2615
      List<Long> percentages;
2616

2617
      /**
2618
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2619
       * displayed.
2620
       */
2621
      @SerializedName("smart_tip_threshold")
2622
      Long smartTipThreshold;
2623

2624
      private Pln(
2625
          Map<String, Object> extraParams,
2626
          List<Long> fixedAmounts,
2627
          List<Long> percentages,
2628
          Long smartTipThreshold) {
×
2629
        this.extraParams = extraParams;
×
2630
        this.fixedAmounts = fixedAmounts;
×
2631
        this.percentages = percentages;
×
2632
        this.smartTipThreshold = smartTipThreshold;
×
2633
      }
×
2634

2635
      public static Builder builder() {
2636
        return new Builder();
×
2637
      }
2638

2639
      public static class Builder {
×
2640
        private Map<String, Object> extraParams;
2641

2642
        private List<Long> fixedAmounts;
2643

2644
        private List<Long> percentages;
2645

2646
        private Long smartTipThreshold;
2647

2648
        /** Finalize and obtain parameter instance from this builder. */
2649
        public ConfigurationCreateParams.Tipping.Pln build() {
2650
          return new ConfigurationCreateParams.Tipping.Pln(
×
2651
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2652
        }
2653

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

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

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

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

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

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

2734
        /**
2735
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2736
         * displayed.
2737
         */
2738
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2739
          this.smartTipThreshold = smartTipThreshold;
×
2740
          return this;
×
2741
        }
2742
      }
2743
    }
2744

2745
    @Getter
2746
    public static class Sek {
2747
      /**
2748
       * Map of extra parameters for custom features not available in this client library. The
2749
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2750
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2751
       * name in this param object. Effectively, this map is flattened to its parent instance.
2752
       */
2753
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2754
      Map<String, Object> extraParams;
2755

2756
      /** Fixed amounts displayed when collecting a tip. */
2757
      @SerializedName("fixed_amounts")
2758
      List<Long> fixedAmounts;
2759

2760
      /** Percentages displayed when collecting a tip. */
2761
      @SerializedName("percentages")
2762
      List<Long> percentages;
2763

2764
      /**
2765
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2766
       * displayed.
2767
       */
2768
      @SerializedName("smart_tip_threshold")
2769
      Long smartTipThreshold;
2770

2771
      private Sek(
2772
          Map<String, Object> extraParams,
2773
          List<Long> fixedAmounts,
2774
          List<Long> percentages,
2775
          Long smartTipThreshold) {
×
2776
        this.extraParams = extraParams;
×
2777
        this.fixedAmounts = fixedAmounts;
×
2778
        this.percentages = percentages;
×
2779
        this.smartTipThreshold = smartTipThreshold;
×
2780
      }
×
2781

2782
      public static Builder builder() {
2783
        return new Builder();
×
2784
      }
2785

2786
      public static class Builder {
×
2787
        private Map<String, Object> extraParams;
2788

2789
        private List<Long> fixedAmounts;
2790

2791
        private List<Long> percentages;
2792

2793
        private Long smartTipThreshold;
2794

2795
        /** Finalize and obtain parameter instance from this builder. */
2796
        public ConfigurationCreateParams.Tipping.Sek build() {
2797
          return new ConfigurationCreateParams.Tipping.Sek(
×
2798
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2799
        }
2800

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

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

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

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

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

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

2881
        /**
2882
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
2883
         * displayed.
2884
         */
2885
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
2886
          this.smartTipThreshold = smartTipThreshold;
×
2887
          return this;
×
2888
        }
2889
      }
2890
    }
2891

2892
    @Getter
2893
    public static class Sgd {
2894
      /**
2895
       * Map of extra parameters for custom features not available in this client library. The
2896
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2897
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2898
       * name in this param object. Effectively, this map is flattened to its parent instance.
2899
       */
2900
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2901
      Map<String, Object> extraParams;
2902

2903
      /** Fixed amounts displayed when collecting a tip. */
2904
      @SerializedName("fixed_amounts")
2905
      List<Long> fixedAmounts;
2906

2907
      /** Percentages displayed when collecting a tip. */
2908
      @SerializedName("percentages")
2909
      List<Long> percentages;
2910

2911
      /**
2912
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
2913
       * displayed.
2914
       */
2915
      @SerializedName("smart_tip_threshold")
2916
      Long smartTipThreshold;
2917

2918
      private Sgd(
2919
          Map<String, Object> extraParams,
2920
          List<Long> fixedAmounts,
2921
          List<Long> percentages,
2922
          Long smartTipThreshold) {
×
2923
        this.extraParams = extraParams;
×
2924
        this.fixedAmounts = fixedAmounts;
×
2925
        this.percentages = percentages;
×
2926
        this.smartTipThreshold = smartTipThreshold;
×
2927
      }
×
2928

2929
      public static Builder builder() {
2930
        return new Builder();
×
2931
      }
2932

2933
      public static class Builder {
×
2934
        private Map<String, Object> extraParams;
2935

2936
        private List<Long> fixedAmounts;
2937

2938
        private List<Long> percentages;
2939

2940
        private Long smartTipThreshold;
2941

2942
        /** Finalize and obtain parameter instance from this builder. */
2943
        public ConfigurationCreateParams.Tipping.Sgd build() {
2944
          return new ConfigurationCreateParams.Tipping.Sgd(
×
2945
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
2946
        }
2947

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

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

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

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

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

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

3028
        /**
3029
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
3030
         * displayed.
3031
         */
3032
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
3033
          this.smartTipThreshold = smartTipThreshold;
×
3034
          return this;
×
3035
        }
3036
      }
3037
    }
3038

3039
    @Getter
3040
    public static class Usd {
3041
      /**
3042
       * Map of extra parameters for custom features not available in this client library. The
3043
       * content in this map is not serialized under this field's {@code @SerializedName} value.
3044
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
3045
       * name in this param object. Effectively, this map is flattened to its parent instance.
3046
       */
3047
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
3048
      Map<String, Object> extraParams;
3049

3050
      /** Fixed amounts displayed when collecting a tip. */
3051
      @SerializedName("fixed_amounts")
3052
      List<Long> fixedAmounts;
3053

3054
      /** Percentages displayed when collecting a tip. */
3055
      @SerializedName("percentages")
3056
      List<Long> percentages;
3057

3058
      /**
3059
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
3060
       * displayed.
3061
       */
3062
      @SerializedName("smart_tip_threshold")
3063
      Long smartTipThreshold;
3064

3065
      private Usd(
3066
          Map<String, Object> extraParams,
3067
          List<Long> fixedAmounts,
3068
          List<Long> percentages,
3069
          Long smartTipThreshold) {
×
3070
        this.extraParams = extraParams;
×
3071
        this.fixedAmounts = fixedAmounts;
×
3072
        this.percentages = percentages;
×
3073
        this.smartTipThreshold = smartTipThreshold;
×
3074
      }
×
3075

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

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

3083
        private List<Long> fixedAmounts;
3084

3085
        private List<Long> percentages;
3086

3087
        private Long smartTipThreshold;
3088

3089
        /** Finalize and obtain parameter instance from this builder. */
3090
        public ConfigurationCreateParams.Tipping.Usd build() {
3091
          return new ConfigurationCreateParams.Tipping.Usd(
×
3092
              this.extraParams, this.fixedAmounts, this.percentages, this.smartTipThreshold);
3093
        }
3094

3095
        /**
3096
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
3097
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
3098
         * map. See {@link ConfigurationCreateParams.Tipping.Usd#extraParams} for the field
3099
         * documentation.
3100
         */
3101
        public Builder putExtraParam(String key, Object value) {
3102
          if (this.extraParams == null) {
×
3103
            this.extraParams = new HashMap<>();
×
3104
          }
3105
          this.extraParams.put(key, value);
×
3106
          return this;
×
3107
        }
3108

3109
        /**
3110
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
3111
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
3112
         * map. See {@link ConfigurationCreateParams.Tipping.Usd#extraParams} for the field
3113
         * documentation.
3114
         */
3115
        public Builder putAllExtraParam(Map<String, Object> map) {
3116
          if (this.extraParams == null) {
×
3117
            this.extraParams = new HashMap<>();
×
3118
          }
3119
          this.extraParams.putAll(map);
×
3120
          return this;
×
3121
        }
3122

3123
        /**
3124
         * Add an element to `fixedAmounts` list. A list is initialized for the first `add/addAll`
3125
         * call, and subsequent calls adds additional elements to the original list. See {@link
3126
         * ConfigurationCreateParams.Tipping.Usd#fixedAmounts} for the field documentation.
3127
         */
3128
        public Builder addFixedAmount(Long element) {
3129
          if (this.fixedAmounts == null) {
×
3130
            this.fixedAmounts = new ArrayList<>();
×
3131
          }
3132
          this.fixedAmounts.add(element);
×
3133
          return this;
×
3134
        }
3135

3136
        /**
3137
         * Add all elements to `fixedAmounts` list. A list is initialized for the first `add/addAll`
3138
         * call, and subsequent calls adds additional elements to the original list. See {@link
3139
         * ConfigurationCreateParams.Tipping.Usd#fixedAmounts} for the field documentation.
3140
         */
3141
        public Builder addAllFixedAmount(List<Long> elements) {
3142
          if (this.fixedAmounts == null) {
×
3143
            this.fixedAmounts = new ArrayList<>();
×
3144
          }
3145
          this.fixedAmounts.addAll(elements);
×
3146
          return this;
×
3147
        }
3148

3149
        /**
3150
         * Add an element to `percentages` list. A list is initialized for the first `add/addAll`
3151
         * call, and subsequent calls adds additional elements to the original list. See {@link
3152
         * ConfigurationCreateParams.Tipping.Usd#percentages} for the field documentation.
3153
         */
3154
        public Builder addPercentage(Long element) {
3155
          if (this.percentages == null) {
×
3156
            this.percentages = new ArrayList<>();
×
3157
          }
3158
          this.percentages.add(element);
×
3159
          return this;
×
3160
        }
3161

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

3175
        /**
3176
         * Below this amount, fixed amounts will be displayed; above it, percentages will be
3177
         * displayed.
3178
         */
3179
        public Builder setSmartTipThreshold(Long smartTipThreshold) {
3180
          this.smartTipThreshold = smartTipThreshold;
×
3181
          return this;
×
3182
        }
3183
      }
3184
    }
3185
  }
3186

3187
  @Getter
3188
  public static class VerifoneP400 {
3189
    /**
3190
     * Map of extra parameters for custom features not available in this client library. The content
3191
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
3192
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
3193
     * param object. Effectively, this map is flattened to its parent instance.
3194
     */
3195
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
3196
    Map<String, Object> extraParams;
3197

3198
    /** A File ID representing an image you would like displayed on the reader. */
3199
    @SerializedName("splashscreen")
3200
    Object splashscreen;
3201

3202
    private VerifoneP400(Map<String, Object> extraParams, Object splashscreen) {
×
3203
      this.extraParams = extraParams;
×
3204
      this.splashscreen = splashscreen;
×
3205
    }
×
3206

3207
    public static Builder builder() {
3208
      return new Builder();
×
3209
    }
3210

3211
    public static class Builder {
×
3212
      private Map<String, Object> extraParams;
3213

3214
      private Object splashscreen;
3215

3216
      /** Finalize and obtain parameter instance from this builder. */
3217
      public ConfigurationCreateParams.VerifoneP400 build() {
3218
        return new ConfigurationCreateParams.VerifoneP400(this.extraParams, this.splashscreen);
×
3219
      }
3220

3221
      /**
3222
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
3223
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
3224
       * ConfigurationCreateParams.VerifoneP400#extraParams} for the field documentation.
3225
       */
3226
      public Builder putExtraParam(String key, Object value) {
3227
        if (this.extraParams == null) {
×
3228
          this.extraParams = new HashMap<>();
×
3229
        }
3230
        this.extraParams.put(key, value);
×
3231
        return this;
×
3232
      }
3233

3234
      /**
3235
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
3236
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
3237
       * See {@link ConfigurationCreateParams.VerifoneP400#extraParams} for the field documentation.
3238
       */
3239
      public Builder putAllExtraParam(Map<String, Object> map) {
3240
        if (this.extraParams == null) {
×
3241
          this.extraParams = new HashMap<>();
×
3242
        }
3243
        this.extraParams.putAll(map);
×
3244
        return this;
×
3245
      }
3246

3247
      /** A File ID representing an image you would like displayed on the reader. */
3248
      public Builder setSplashscreen(String splashscreen) {
3249
        this.splashscreen = splashscreen;
×
3250
        return this;
×
3251
      }
3252

3253
      /** A File ID representing an image you would like displayed on the reader. */
3254
      public Builder setSplashscreen(EmptyParam splashscreen) {
3255
        this.splashscreen = splashscreen;
×
3256
        return this;
×
3257
      }
3258
    }
3259
  }
3260
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc