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

stripe / stripe-java / #16731

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

Pull #1935

github

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

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

5882 existing lines in 7 files now uncovered.

18907 of 153294 relevant lines covered (12.33%)

0.12 hits per line

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

39.0
/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("jpy")
385
    Jpy jpy;
386

387
    @SerializedName("myr")
388
    Myr myr;
389

390
    @SerializedName("nok")
391
    Nok nok;
392

393
    @SerializedName("nzd")
394
    Nzd nzd;
395

396
    @SerializedName("pln")
397
    Pln pln;
398

399
    @SerializedName("sek")
400
    Sek sek;
401

402
    @SerializedName("sgd")
403
    Sgd sgd;
404

405
    @SerializedName("usd")
406
    Usd usd;
407

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

420
      /** Percentages displayed when collecting a tip. */
421
      @SerializedName("percentages")
422
      List<Long> percentages;
423

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

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

444
      /** Percentages displayed when collecting a tip. */
445
      @SerializedName("percentages")
446
      List<Long> percentages;
447

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

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

468
      /** Percentages displayed when collecting a tip. */
469
      @SerializedName("percentages")
470
      List<Long> percentages;
471

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

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

492
      /** Percentages displayed when collecting a tip. */
493
      @SerializedName("percentages")
494
      List<Long> percentages;
495

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

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

516
      /** Percentages displayed when collecting a tip. */
517
      @SerializedName("percentages")
518
      List<Long> percentages;
519

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

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

540
      /** Percentages displayed when collecting a tip. */
541
      @SerializedName("percentages")
542
      List<Long> percentages;
543

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

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

564
      /** Percentages displayed when collecting a tip. */
565
      @SerializedName("percentages")
566
      List<Long> percentages;
567

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

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

588
      /** Percentages displayed when collecting a tip. */
589
      @SerializedName("percentages")
590
      List<Long> percentages;
591

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

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

612
      /** Percentages displayed when collecting a tip. */
613
      @SerializedName("percentages")
614
      List<Long> percentages;
615

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

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

636
      /** Percentages displayed when collecting a tip. */
637
      @SerializedName("percentages")
638
      List<Long> percentages;
639

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

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

660
      /** Percentages displayed when collecting a tip. */
661
      @SerializedName("percentages")
662
      List<Long> percentages;
663

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

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

684
      /** Percentages displayed when collecting a tip. */
685
      @SerializedName("percentages")
686
      List<Long> percentages;
687

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

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

708
      /** Percentages displayed when collecting a tip. */
709
      @SerializedName("percentages")
710
      List<Long> percentages;
711

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

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

732
      /** Percentages displayed when collecting a tip. */
733
      @SerializedName("percentages")
734
      List<Long> percentages;
735

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

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

756
      /** Percentages displayed when collecting a tip. */
757
      @SerializedName("percentages")
758
      List<Long> percentages;
759

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

768
    /**
769
     * For more details about Usd, please refer to the <a href="https://docs.stripe.com/api">API
770
     * Reference.</a>
771
     */
772
    @Getter
773
    @Setter
774
    @EqualsAndHashCode(callSuper = false)
775
    public static class Usd extends StripeObject {
×
776
      /** Fixed amounts displayed when collecting a tip. */
777
      @SerializedName("fixed_amounts")
778
      List<Long> fixedAmounts;
779

780
      /** Percentages displayed when collecting a tip. */
781
      @SerializedName("percentages")
782
      List<Long> percentages;
783

784
      /**
785
       * Below this amount, fixed amounts will be displayed; above it, percentages will be
786
       * displayed.
787
       */
788
      @SerializedName("smart_tip_threshold")
789
      Long smartTipThreshold;
790
    }
791
  }
792

793
  /**
794
   * For more details about VerifoneP400, please refer to the <a
795
   * href="https://docs.stripe.com/api">API Reference.</a>
796
   */
797
  @Getter
798
  @Setter
799
  @EqualsAndHashCode(callSuper = false)
800
  public static class VerifoneP400 extends StripeObject {
×
801
    /** A File ID representing an image you would like displayed on the reader. */
802
    @SerializedName("splashscreen")
803
    @Getter(lombok.AccessLevel.NONE)
804
    @Setter(lombok.AccessLevel.NONE)
805
    ExpandableField<File> splashscreen;
806

807
    /** Get ID of expandable {@code splashscreen} object. */
808
    public String getSplashscreen() {
809
      return (this.splashscreen != null) ? this.splashscreen.getId() : null;
×
810
    }
811

812
    public void setSplashscreen(String id) {
813
      this.splashscreen = ApiResource.setExpandableFieldId(id, this.splashscreen);
×
814
    }
×
815

816
    /** Get expanded {@code splashscreen}. */
817
    public File getSplashscreenObject() {
818
      return (this.splashscreen != null) ? this.splashscreen.getExpanded() : null;
×
819
    }
820

821
    public void setSplashscreenObject(File expandableObject) {
822
      this.splashscreen = new ExpandableField<File>(expandableObject.getId(), expandableObject);
×
823
    }
×
824
  }
825

826
  @Override
827
  public void setResponseGetter(StripeResponseGetter responseGetter) {
828
    super.setResponseGetter(responseGetter);
1✔
829
    trySetResponseGetter(bbposWiseposE, responseGetter);
1✔
830
    trySetResponseGetter(offline, responseGetter);
1✔
831
    trySetResponseGetter(rebootWindow, responseGetter);
1✔
832
    trySetResponseGetter(stripeS700, responseGetter);
1✔
833
    trySetResponseGetter(tipping, responseGetter);
1✔
834
    trySetResponseGetter(verifoneP400, responseGetter);
1✔
835
  }
1✔
836
}
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