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

stripe / stripe-java / #16562

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

push

github

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

Update generated code for beta

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

68 existing lines in 20 files now uncovered.

18798 of 149026 relevant lines covered (12.61%)

0.13 hits per line

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

39.39
/src/main/java/com/stripe/model/terminal/Configuration.java
1
// File generated from our OpenAPI spec
2
package com.stripe.model.terminal;
3

4
import com.google.gson.annotations.SerializedName;
5
import com.stripe.exception.StripeException;
6
import com.stripe.model.ExpandableField;
7
import com.stripe.model.File;
8
import com.stripe.model.HasId;
9
import com.stripe.model.StripeObject;
10
import com.stripe.net.ApiRequest;
11
import com.stripe.net.ApiRequestParams;
12
import com.stripe.net.ApiResource;
13
import com.stripe.net.BaseAddress;
14
import com.stripe.net.RequestOptions;
15
import com.stripe.net.StripeResponseGetter;
16
import com.stripe.param.terminal.ConfigurationCreateParams;
17
import com.stripe.param.terminal.ConfigurationListParams;
18
import com.stripe.param.terminal.ConfigurationRetrieveParams;
19
import com.stripe.param.terminal.ConfigurationUpdateParams;
20
import java.util.List;
21
import java.util.Map;
22
import lombok.EqualsAndHashCode;
23
import lombok.Getter;
24
import lombok.Setter;
25

26
/** A Configurations object represents how features should be configured for terminal readers. */
27
@Getter
28
@Setter
29
@EqualsAndHashCode(callSuper = false)
30
public class Configuration extends ApiResource implements HasId {
1✔
31
  @SerializedName("bbpos_wisepos_e")
32
  BbposWiseposE bbposWiseposE;
33

34
  /** Always true for a deleted object. */
35
  @SerializedName("deleted")
36
  Boolean deleted;
37

38
  /** Unique identifier for the object. */
39
  @Getter(onMethod_ = {@Override})
40
  @SerializedName("id")
41
  String id;
42

43
  /** Whether this Configuration is the default for your account. */
44
  @SerializedName("is_account_default")
45
  Boolean isAccountDefault;
46

47
  /**
48
   * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
49
   * object exists in test mode.
50
   */
51
  @SerializedName("livemode")
52
  Boolean livemode;
53

54
  /** String indicating the name of the Configuration object, set by the user. */
55
  @SerializedName("name")
56
  String name;
57

58
  /**
59
   * String representing the object's type. Objects of the same type share the same value.
60
   *
61
   * <p>Equal to {@code terminal.configuration}.
62
   */
63
  @SerializedName("object")
64
  String object;
65

66
  @SerializedName("offline")
67
  Offline offline;
68

69
  @SerializedName("reboot_window")
70
  RebootWindow rebootWindow;
71

72
  @SerializedName("stripe_s700")
73
  StripeS700 stripeS700;
74

75
  @SerializedName("tipping")
76
  Tipping tipping;
77

78
  @SerializedName("verifone_p400")
79
  VerifoneP400 verifoneP400;
80

81
  /** Creates a new {@code Configuration} object. */
82
  public static Configuration create(Map<String, Object> params) throws StripeException {
83
    return create(params, (RequestOptions) null);
×
84
  }
85

86
  /** Creates a new {@code Configuration} object. */
87
  public static Configuration create(Map<String, Object> params, RequestOptions options)
88
      throws StripeException {
89
    String path = "/v1/terminal/configurations";
×
90
    ApiRequest request =
×
91
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
92
    return getGlobalResponseGetter().request(request, Configuration.class);
×
93
  }
94

95
  /** Creates a new {@code Configuration} object. */
96
  public static Configuration create(ConfigurationCreateParams params) throws StripeException {
97
    return create(params, (RequestOptions) null);
1✔
98
  }
99

100
  /** Creates a new {@code Configuration} object. */
101
  public static Configuration create(ConfigurationCreateParams params, RequestOptions options)
102
      throws StripeException {
103
    String path = "/v1/terminal/configurations";
1✔
104
    ApiResource.checkNullTypedParams(path, params);
1✔
105
    ApiRequest request =
1✔
106
        new ApiRequest(
107
            BaseAddress.API,
108
            ApiResource.RequestMethod.POST,
109
            path,
110
            ApiRequestParams.paramsToMap(params),
1✔
111
            options);
112
    return getGlobalResponseGetter().request(request, Configuration.class);
1✔
113
  }
114

115
  /** Deletes a {@code Configuration} object. */
116
  public Configuration delete() throws StripeException {
117
    return delete((Map<String, Object>) null, (RequestOptions) null);
1✔
118
  }
119

120
  /** Deletes a {@code Configuration} object. */
121
  public Configuration delete(RequestOptions options) throws StripeException {
122
    return delete((Map<String, Object>) null, options);
×
123
  }
124

125
  /** Deletes a {@code Configuration} object. */
126
  public Configuration delete(Map<String, Object> params) throws StripeException {
127
    return delete(params, (RequestOptions) null);
×
128
  }
129

130
  /** Deletes a {@code Configuration} object. */
131
  public Configuration delete(Map<String, Object> params, RequestOptions options)
132
      throws StripeException {
133
    String path =
1✔
134
        String.format("/v1/terminal/configurations/%s", ApiResource.urlEncodeId(this.getId()));
1✔
135
    ApiRequest request =
1✔
136
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.DELETE, path, params, options);
137
    return getResponseGetter().request(request, Configuration.class);
1✔
138
  }
139

140
  /** Returns a list of {@code Configuration} objects. */
141
  public static ConfigurationCollection list(Map<String, Object> params) throws StripeException {
142
    return list(params, (RequestOptions) null);
×
143
  }
144

145
  /** Returns a list of {@code Configuration} objects. */
146
  public static ConfigurationCollection list(Map<String, Object> params, RequestOptions options)
147
      throws StripeException {
148
    String path = "/v1/terminal/configurations";
×
149
    ApiRequest request =
×
150
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
151
    return getGlobalResponseGetter().request(request, ConfigurationCollection.class);
×
152
  }
153

154
  /** Returns a list of {@code Configuration} objects. */
155
  public static ConfigurationCollection list(ConfigurationListParams params)
156
      throws StripeException {
157
    return list(params, (RequestOptions) null);
1✔
158
  }
159

160
  /** Returns a list of {@code Configuration} objects. */
161
  public static ConfigurationCollection list(ConfigurationListParams params, RequestOptions options)
162
      throws StripeException {
163
    String path = "/v1/terminal/configurations";
1✔
164
    ApiResource.checkNullTypedParams(path, params);
1✔
165
    ApiRequest request =
1✔
166
        new ApiRequest(
167
            BaseAddress.API,
168
            ApiResource.RequestMethod.GET,
169
            path,
170
            ApiRequestParams.paramsToMap(params),
1✔
171
            options);
172
    return getGlobalResponseGetter().request(request, ConfigurationCollection.class);
1✔
173
  }
174

175
  /** Retrieves a {@code Configuration} object. */
176
  public static Configuration retrieve(String configuration) throws StripeException {
177
    return retrieve(configuration, (Map<String, Object>) null, (RequestOptions) null);
1✔
178
  }
179

180
  /** Retrieves a {@code Configuration} object. */
181
  public static Configuration retrieve(String configuration, RequestOptions options)
182
      throws StripeException {
183
    return retrieve(configuration, (Map<String, Object>) null, options);
×
184
  }
185

186
  /** Retrieves a {@code Configuration} object. */
187
  public static Configuration retrieve(
188
      String configuration, Map<String, Object> params, RequestOptions options)
189
      throws StripeException {
190
    String path =
1✔
191
        String.format("/v1/terminal/configurations/%s", ApiResource.urlEncodeId(configuration));
1✔
192
    ApiRequest request =
1✔
193
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
194
    return getGlobalResponseGetter().request(request, Configuration.class);
1✔
195
  }
196

197
  /** Retrieves a {@code Configuration} object. */
198
  public static Configuration retrieve(
199
      String configuration, ConfigurationRetrieveParams params, RequestOptions options)
200
      throws StripeException {
201
    String path =
×
202
        String.format("/v1/terminal/configurations/%s", ApiResource.urlEncodeId(configuration));
×
203
    ApiResource.checkNullTypedParams(path, params);
×
204
    ApiRequest request =
×
205
        new ApiRequest(
206
            BaseAddress.API,
207
            ApiResource.RequestMethod.GET,
208
            path,
209
            ApiRequestParams.paramsToMap(params),
×
210
            options);
211
    return getGlobalResponseGetter().request(request, Configuration.class);
×
212
  }
213

214
  /** Updates a new {@code Configuration} object. */
215
  public Configuration update(Map<String, Object> params) throws StripeException {
216
    return update(params, (RequestOptions) null);
×
217
  }
218

219
  /** Updates a new {@code Configuration} object. */
220
  public Configuration update(Map<String, Object> params, RequestOptions options)
221
      throws StripeException {
222
    String path =
×
223
        String.format("/v1/terminal/configurations/%s", ApiResource.urlEncodeId(this.getId()));
×
224
    ApiRequest request =
×
225
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
226
    return getResponseGetter().request(request, Configuration.class);
×
227
  }
228

229
  /** Updates a new {@code Configuration} object. */
230
  public Configuration update(ConfigurationUpdateParams params) throws StripeException {
231
    return update(params, (RequestOptions) null);
1✔
232
  }
233

234
  /** Updates a new {@code Configuration} object. */
235
  public Configuration update(ConfigurationUpdateParams params, RequestOptions options)
236
      throws StripeException {
237
    String path =
1✔
238
        String.format("/v1/terminal/configurations/%s", ApiResource.urlEncodeId(this.getId()));
1✔
239
    ApiResource.checkNullTypedParams(path, params);
1✔
240
    ApiRequest request =
1✔
241
        new ApiRequest(
242
            BaseAddress.API,
243
            ApiResource.RequestMethod.POST,
244
            path,
245
            ApiRequestParams.paramsToMap(params),
1✔
246
            options);
247
    return getResponseGetter().request(request, Configuration.class);
1✔
248
  }
249

250
  /**
251
   * For more details about BbposWiseposE, please refer to the <a
252
   * href="https://docs.stripe.com/api">API Reference.</a>
253
   */
254
  @Getter
255
  @Setter
256
  @EqualsAndHashCode(callSuper = false)
257
  public static class BbposWiseposE extends StripeObject {
1✔
258
    /** A File ID representing an image you would like displayed on the reader. */
259
    @SerializedName("splashscreen")
260
    @Getter(lombok.AccessLevel.NONE)
261
    @Setter(lombok.AccessLevel.NONE)
262
    ExpandableField<File> splashscreen;
263

264
    /** Get ID of expandable {@code splashscreen} object. */
265
    public String getSplashscreen() {
266
      return (this.splashscreen != null) ? this.splashscreen.getId() : null;
×
267
    }
268

269
    public void setSplashscreen(String id) {
270
      this.splashscreen = ApiResource.setExpandableFieldId(id, this.splashscreen);
×
271
    }
×
272

273
    /** Get expanded {@code splashscreen}. */
274
    public File getSplashscreenObject() {
275
      return (this.splashscreen != null) ? this.splashscreen.getExpanded() : null;
×
276
    }
277

278
    public void setSplashscreenObject(File expandableObject) {
279
      this.splashscreen = new ExpandableField<File>(expandableObject.getId(), expandableObject);
×
280
    }
×
281
  }
282

283
  /**
284
   * For more details about Offline, please refer to the <a href="https://docs.stripe.com/api">API
285
   * Reference.</a>
286
   */
287
  @Getter
288
  @Setter
289
  @EqualsAndHashCode(callSuper = false)
290
  public static class Offline extends StripeObject {
×
291
    /**
292
     * Determines whether to allow transactions to be collected while reader is offline. Defaults to
293
     * false.
294
     */
295
    @SerializedName("enabled")
296
    Boolean enabled;
297
  }
298

299
  /**
300
   * For more details about RebootWindow, please refer to the <a
301
   * href="https://docs.stripe.com/api">API Reference.</a>
302
   */
303
  @Getter
304
  @Setter
305
  @EqualsAndHashCode(callSuper = false)
306
  public static class RebootWindow extends StripeObject {
×
307
    /**
308
     * Integer between 0 to 23 that represents the end hour of the reboot time window. The value
309
     * must be different than the start_hour.
310
     */
311
    @SerializedName("end_hour")
312
    Long endHour;
313

314
    /** Integer between 0 to 23 that represents the start hour of the reboot time window. */
315
    @SerializedName("start_hour")
316
    Long startHour;
317
  }
318

319
  /**
320
   * For more details about StripeS700, please refer to the <a
321
   * href="https://docs.stripe.com/api">API Reference.</a>
322
   */
323
  @Getter
324
  @Setter
325
  @EqualsAndHashCode(callSuper = false)
326
  public static class StripeS700 extends StripeObject {
×
327
    /** A File ID representing an image you would like displayed on the reader. */
328
    @SerializedName("splashscreen")
329
    @Getter(lombok.AccessLevel.NONE)
330
    @Setter(lombok.AccessLevel.NONE)
331
    ExpandableField<File> splashscreen;
332

333
    /** Get ID of expandable {@code splashscreen} object. */
334
    public String getSplashscreen() {
335
      return (this.splashscreen != null) ? this.splashscreen.getId() : null;
×
336
    }
337

338
    public void setSplashscreen(String id) {
339
      this.splashscreen = ApiResource.setExpandableFieldId(id, this.splashscreen);
×
340
    }
×
341

342
    /** Get expanded {@code splashscreen}. */
343
    public File getSplashscreenObject() {
344
      return (this.splashscreen != null) ? this.splashscreen.getExpanded() : null;
×
345
    }
346

347
    public void setSplashscreenObject(File expandableObject) {
348
      this.splashscreen = new ExpandableField<File>(expandableObject.getId(), expandableObject);
×
349
    }
×
350
  }
351

352
  /**
353
   * For more details about Tipping, please refer to the <a href="https://docs.stripe.com/api">API
354
   * Reference.</a>
355
   */
356
  @Getter
357
  @Setter
358
  @EqualsAndHashCode(callSuper = false)
359
  public static class Tipping extends StripeObject {
×
360
    @SerializedName("aud")
361
    Aud aud;
362

363
    @SerializedName("cad")
364
    Cad cad;
365

366
    @SerializedName("chf")
367
    Chf chf;
368

369
    @SerializedName("czk")
370
    Czk czk;
371

372
    @SerializedName("dkk")
373
    Dkk dkk;
374

375
    @SerializedName("eur")
376
    Eur eur;
377

378
    @SerializedName("gbp")
379
    Gbp gbp;
380

381
    @SerializedName("hkd")
382
    Hkd hkd;
383

384
    @SerializedName("myr")
385
    Myr myr;
386

387
    @SerializedName("nok")
388
    Nok nok;
389

390
    @SerializedName("nzd")
391
    Nzd nzd;
392

393
    @SerializedName("pln")
394
    Pln pln;
395

396
    @SerializedName("sek")
397
    Sek sek;
398

399
    @SerializedName("sgd")
400
    Sgd sgd;
401

402
    @SerializedName("usd")
403
    Usd usd;
404

405
    /**
406
     * For more details about Aud, please refer to the <a href="https://docs.stripe.com/api">API
407
     * Reference.</a>
408
     */
409
    @Getter
410
    @Setter
411
    @EqualsAndHashCode(callSuper = false)
412
    public static class Aud extends StripeObject {
×
413
      /** Fixed amounts displayed when collecting a tip. */
414
      @SerializedName("fixed_amounts")
415
      List<Long> fixedAmounts;
416

417
      /** Percentages displayed when collecting a tip. */
418
      @SerializedName("percentages")
419
      List<Long> percentages;
420

421
      /**
422
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
423
       * displayed.
424
       */
425
      @SerializedName("smart_tip_threshold")
426
      Long smartTipThreshold;
427
    }
428

429
    /**
430
     * For more details about Cad, please refer to the <a href="https://docs.stripe.com/api">API
431
     * Reference.</a>
432
     */
433
    @Getter
434
    @Setter
435
    @EqualsAndHashCode(callSuper = false)
436
    public static class Cad extends StripeObject {
×
437
      /** Fixed amounts displayed when collecting a tip. */
438
      @SerializedName("fixed_amounts")
439
      List<Long> fixedAmounts;
440

441
      /** Percentages displayed when collecting a tip. */
442
      @SerializedName("percentages")
443
      List<Long> percentages;
444

445
      /**
446
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
447
       * displayed.
448
       */
449
      @SerializedName("smart_tip_threshold")
450
      Long smartTipThreshold;
451
    }
452

453
    /**
454
     * For more details about Chf, please refer to the <a href="https://docs.stripe.com/api">API
455
     * Reference.</a>
456
     */
457
    @Getter
458
    @Setter
459
    @EqualsAndHashCode(callSuper = false)
460
    public static class Chf extends StripeObject {
×
461
      /** Fixed amounts displayed when collecting a tip. */
462
      @SerializedName("fixed_amounts")
463
      List<Long> fixedAmounts;
464

465
      /** Percentages displayed when collecting a tip. */
466
      @SerializedName("percentages")
467
      List<Long> percentages;
468

469
      /**
470
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
471
       * displayed.
472
       */
473
      @SerializedName("smart_tip_threshold")
474
      Long smartTipThreshold;
475
    }
476

477
    /**
478
     * For more details about Czk, please refer to the <a href="https://docs.stripe.com/api">API
479
     * Reference.</a>
480
     */
481
    @Getter
482
    @Setter
483
    @EqualsAndHashCode(callSuper = false)
484
    public static class Czk extends StripeObject {
×
485
      /** Fixed amounts displayed when collecting a tip. */
486
      @SerializedName("fixed_amounts")
487
      List<Long> fixedAmounts;
488

489
      /** Percentages displayed when collecting a tip. */
490
      @SerializedName("percentages")
491
      List<Long> percentages;
492

493
      /**
494
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
495
       * displayed.
496
       */
497
      @SerializedName("smart_tip_threshold")
498
      Long smartTipThreshold;
499
    }
500

501
    /**
502
     * For more details about Dkk, please refer to the <a href="https://docs.stripe.com/api">API
503
     * Reference.</a>
504
     */
505
    @Getter
506
    @Setter
507
    @EqualsAndHashCode(callSuper = false)
508
    public static class Dkk extends StripeObject {
×
509
      /** Fixed amounts displayed when collecting a tip. */
510
      @SerializedName("fixed_amounts")
511
      List<Long> fixedAmounts;
512

513
      /** Percentages displayed when collecting a tip. */
514
      @SerializedName("percentages")
515
      List<Long> percentages;
516

517
      /**
518
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
519
       * displayed.
520
       */
521
      @SerializedName("smart_tip_threshold")
522
      Long smartTipThreshold;
523
    }
524

525
    /**
526
     * For more details about Eur, please refer to the <a href="https://docs.stripe.com/api">API
527
     * Reference.</a>
528
     */
529
    @Getter
530
    @Setter
531
    @EqualsAndHashCode(callSuper = false)
532
    public static class Eur extends StripeObject {
×
533
      /** Fixed amounts displayed when collecting a tip. */
534
      @SerializedName("fixed_amounts")
535
      List<Long> fixedAmounts;
536

537
      /** Percentages displayed when collecting a tip. */
538
      @SerializedName("percentages")
539
      List<Long> percentages;
540

541
      /**
542
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
543
       * displayed.
544
       */
545
      @SerializedName("smart_tip_threshold")
546
      Long smartTipThreshold;
547
    }
548

549
    /**
550
     * For more details about Gbp, please refer to the <a href="https://docs.stripe.com/api">API
551
     * Reference.</a>
552
     */
553
    @Getter
554
    @Setter
555
    @EqualsAndHashCode(callSuper = false)
556
    public static class Gbp extends StripeObject {
×
557
      /** Fixed amounts displayed when collecting a tip. */
558
      @SerializedName("fixed_amounts")
559
      List<Long> fixedAmounts;
560

561
      /** Percentages displayed when collecting a tip. */
562
      @SerializedName("percentages")
563
      List<Long> percentages;
564

565
      /**
566
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
567
       * displayed.
568
       */
569
      @SerializedName("smart_tip_threshold")
570
      Long smartTipThreshold;
571
    }
572

573
    /**
574
     * For more details about Hkd, please refer to the <a href="https://docs.stripe.com/api">API
575
     * Reference.</a>
576
     */
577
    @Getter
578
    @Setter
579
    @EqualsAndHashCode(callSuper = false)
580
    public static class Hkd extends StripeObject {
×
581
      /** Fixed amounts displayed when collecting a tip. */
582
      @SerializedName("fixed_amounts")
583
      List<Long> fixedAmounts;
584

585
      /** Percentages displayed when collecting a tip. */
586
      @SerializedName("percentages")
587
      List<Long> percentages;
588

589
      /**
590
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
591
       * displayed.
592
       */
593
      @SerializedName("smart_tip_threshold")
594
      Long smartTipThreshold;
595
    }
596

597
    /**
598
     * For more details about Myr, please refer to the <a href="https://docs.stripe.com/api">API
599
     * Reference.</a>
600
     */
601
    @Getter
602
    @Setter
603
    @EqualsAndHashCode(callSuper = false)
604
    public static class Myr extends StripeObject {
×
605
      /** Fixed amounts displayed when collecting a tip. */
606
      @SerializedName("fixed_amounts")
607
      List<Long> fixedAmounts;
608

609
      /** Percentages displayed when collecting a tip. */
610
      @SerializedName("percentages")
611
      List<Long> percentages;
612

613
      /**
614
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
615
       * displayed.
616
       */
617
      @SerializedName("smart_tip_threshold")
618
      Long smartTipThreshold;
619
    }
620

621
    /**
622
     * For more details about Nok, please refer to the <a href="https://docs.stripe.com/api">API
623
     * Reference.</a>
624
     */
625
    @Getter
626
    @Setter
627
    @EqualsAndHashCode(callSuper = false)
628
    public static class Nok extends StripeObject {
×
629
      /** Fixed amounts displayed when collecting a tip. */
630
      @SerializedName("fixed_amounts")
631
      List<Long> fixedAmounts;
632

633
      /** Percentages displayed when collecting a tip. */
634
      @SerializedName("percentages")
635
      List<Long> percentages;
636

637
      /**
638
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
639
       * displayed.
640
       */
641
      @SerializedName("smart_tip_threshold")
642
      Long smartTipThreshold;
643
    }
644

645
    /**
646
     * For more details about Nzd, please refer to the <a href="https://docs.stripe.com/api">API
647
     * Reference.</a>
648
     */
649
    @Getter
650
    @Setter
651
    @EqualsAndHashCode(callSuper = false)
652
    public static class Nzd extends StripeObject {
×
653
      /** Fixed amounts displayed when collecting a tip. */
654
      @SerializedName("fixed_amounts")
655
      List<Long> fixedAmounts;
656

657
      /** Percentages displayed when collecting a tip. */
658
      @SerializedName("percentages")
659
      List<Long> percentages;
660

661
      /**
662
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
663
       * displayed.
664
       */
665
      @SerializedName("smart_tip_threshold")
666
      Long smartTipThreshold;
667
    }
668

669
    /**
670
     * For more details about Pln, please refer to the <a href="https://docs.stripe.com/api">API
671
     * Reference.</a>
672
     */
673
    @Getter
674
    @Setter
675
    @EqualsAndHashCode(callSuper = false)
NEW
676
    public static class Pln extends StripeObject {
×
677
      /** Fixed amounts displayed when collecting a tip. */
678
      @SerializedName("fixed_amounts")
679
      List<Long> fixedAmounts;
680

681
      /** Percentages displayed when collecting a tip. */
682
      @SerializedName("percentages")
683
      List<Long> percentages;
684

685
      /**
686
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
687
       * displayed.
688
       */
689
      @SerializedName("smart_tip_threshold")
690
      Long smartTipThreshold;
691
    }
692

693
    /**
694
     * For more details about Sek, please refer to the <a href="https://docs.stripe.com/api">API
695
     * Reference.</a>
696
     */
697
    @Getter
698
    @Setter
699
    @EqualsAndHashCode(callSuper = false)
700
    public static class Sek extends StripeObject {
×
701
      /** Fixed amounts displayed when collecting a tip. */
702
      @SerializedName("fixed_amounts")
703
      List<Long> fixedAmounts;
704

705
      /** Percentages displayed when collecting a tip. */
706
      @SerializedName("percentages")
707
      List<Long> percentages;
708

709
      /**
710
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
711
       * displayed.
712
       */
713
      @SerializedName("smart_tip_threshold")
714
      Long smartTipThreshold;
715
    }
716

717
    /**
718
     * For more details about Sgd, please refer to the <a href="https://docs.stripe.com/api">API
719
     * Reference.</a>
720
     */
721
    @Getter
722
    @Setter
723
    @EqualsAndHashCode(callSuper = false)
724
    public static class Sgd extends StripeObject {
×
725
      /** Fixed amounts displayed when collecting a tip. */
726
      @SerializedName("fixed_amounts")
727
      List<Long> fixedAmounts;
728

729
      /** Percentages displayed when collecting a tip. */
730
      @SerializedName("percentages")
731
      List<Long> percentages;
732

733
      /**
734
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
735
       * displayed.
736
       */
737
      @SerializedName("smart_tip_threshold")
738
      Long smartTipThreshold;
739
    }
740

741
    /**
742
     * For more details about Usd, please refer to the <a href="https://docs.stripe.com/api">API
743
     * Reference.</a>
744
     */
745
    @Getter
746
    @Setter
747
    @EqualsAndHashCode(callSuper = false)
748
    public static class Usd extends StripeObject {
×
749
      /** Fixed amounts displayed when collecting a tip. */
750
      @SerializedName("fixed_amounts")
751
      List<Long> fixedAmounts;
752

753
      /** Percentages displayed when collecting a tip. */
754
      @SerializedName("percentages")
755
      List<Long> percentages;
756

757
      /**
758
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
759
       * displayed.
760
       */
761
      @SerializedName("smart_tip_threshold")
762
      Long smartTipThreshold;
763
    }
764
  }
765

766
  /**
767
   * For more details about VerifoneP400, please refer to the <a
768
   * href="https://docs.stripe.com/api">API Reference.</a>
769
   */
770
  @Getter
771
  @Setter
772
  @EqualsAndHashCode(callSuper = false)
773
  public static class VerifoneP400 extends StripeObject {
×
774
    /** A File ID representing an image you would like displayed on the reader. */
775
    @SerializedName("splashscreen")
776
    @Getter(lombok.AccessLevel.NONE)
777
    @Setter(lombok.AccessLevel.NONE)
778
    ExpandableField<File> splashscreen;
779

780
    /** Get ID of expandable {@code splashscreen} object. */
781
    public String getSplashscreen() {
782
      return (this.splashscreen != null) ? this.splashscreen.getId() : null;
×
783
    }
784

785
    public void setSplashscreen(String id) {
786
      this.splashscreen = ApiResource.setExpandableFieldId(id, this.splashscreen);
×
787
    }
×
788

789
    /** Get expanded {@code splashscreen}. */
790
    public File getSplashscreenObject() {
791
      return (this.splashscreen != null) ? this.splashscreen.getExpanded() : null;
×
792
    }
793

794
    public void setSplashscreenObject(File expandableObject) {
795
      this.splashscreen = new ExpandableField<File>(expandableObject.getId(), expandableObject);
×
796
    }
×
797
  }
798

799
  @Override
800
  public void setResponseGetter(StripeResponseGetter responseGetter) {
801
    super.setResponseGetter(responseGetter);
1✔
802
    trySetResponseGetter(bbposWiseposE, responseGetter);
1✔
803
    trySetResponseGetter(offline, responseGetter);
1✔
804
    trySetResponseGetter(rebootWindow, responseGetter);
1✔
805
    trySetResponseGetter(stripeS700, responseGetter);
1✔
806
    trySetResponseGetter(tipping, responseGetter);
1✔
807
    trySetResponseGetter(verifoneP400, responseGetter);
1✔
808
  }
1✔
809
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc