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

stripe / stripe-java / #16438

18 Sep 2024 09:46PM UTC coverage: 12.864% (+0.008%) from 12.856%
#16438

push

github

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

Update generated code for beta

0 of 67 new or added lines in 7 files covered. (0.0%)

3 existing lines in 3 files now uncovered.

18469 of 143567 relevant lines covered (12.86%)

0.13 hits per line

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

13.53
/src/main/java/com/stripe/model/tax/Registration.java
1
// File generated from our OpenAPI spec
2
package com.stripe.model.tax;
3

4
import com.google.gson.annotations.SerializedName;
5
import com.stripe.exception.StripeException;
6
import com.stripe.model.HasId;
7
import com.stripe.model.StripeObject;
8
import com.stripe.net.ApiRequest;
9
import com.stripe.net.ApiRequestParams;
10
import com.stripe.net.ApiResource;
11
import com.stripe.net.BaseAddress;
12
import com.stripe.net.RequestOptions;
13
import com.stripe.net.StripeResponseGetter;
14
import com.stripe.param.tax.RegistrationCreateParams;
15
import com.stripe.param.tax.RegistrationListParams;
16
import com.stripe.param.tax.RegistrationRetrieveParams;
17
import com.stripe.param.tax.RegistrationUpdateParams;
18
import java.util.List;
19
import java.util.Map;
20
import lombok.EqualsAndHashCode;
21
import lombok.Getter;
22
import lombok.Setter;
23

24
/**
25
 * A Tax {@code Registration} lets us know that your business is registered to collect tax on
26
 * payments within a region, enabling you to <a href="https://stripe.com/docs/tax">automatically
27
 * collect tax</a>.
28
 *
29
 * <p>Stripe doesn't register on your behalf with the relevant authorities when you create a Tax
30
 * {@code Registration} object. For more information on how to register to collect tax, see <a
31
 * href="https://stripe.com/docs/tax/registering">our guide</a>.
32
 *
33
 * <p>Related guide: <a href="https://stripe.com/docs/tax/registrations-api">Using the Registrations
34
 * API</a>
35
 */
36
@Getter
37
@Setter
38
@EqualsAndHashCode(callSuper = false)
39
public class Registration extends ApiResource implements HasId {
1✔
40
  /** Time at which the registration becomes active. Measured in seconds since the Unix epoch. */
41
  @SerializedName("active_from")
42
  Long activeFrom;
43

44
  /**
45
   * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1
46
   * alpha-2</a>).
47
   */
48
  @SerializedName("country")
49
  String country;
50

51
  @SerializedName("country_options")
52
  CountryOptions countryOptions;
53

54
  /** Time at which the object was created. Measured in seconds since the Unix epoch. */
55
  @SerializedName("created")
56
  Long created;
57

58
  /**
59
   * If set, the registration stops being active at this time. If not set, the registration will be
60
   * active indefinitely. Measured in seconds since the Unix epoch.
61
   */
62
  @SerializedName("expires_at")
63
  Long expiresAt;
64

65
  /** Unique identifier for the object. */
66
  @Getter(onMethod_ = {@Override})
67
  @SerializedName("id")
68
  String id;
69

70
  /**
71
   * Has the value {@code true} if the object exists in live mode or the value {@code false} if the
72
   * object exists in test mode.
73
   */
74
  @SerializedName("livemode")
75
  Boolean livemode;
76

77
  /**
78
   * String representing the object's type. Objects of the same type share the same value.
79
   *
80
   * <p>Equal to {@code tax.registration}.
81
   */
82
  @SerializedName("object")
83
  String object;
84

85
  /**
86
   * The status of the registration. This field is present for convenience and can be deduced from
87
   * {@code active_from} and {@code expires_at}.
88
   *
89
   * <p>One of {@code active}, {@code expired}, or {@code scheduled}.
90
   */
91
  @SerializedName("status")
92
  String status;
93

94
  /** Creates a new Tax {@code Registration} object. */
95
  public static Registration create(Map<String, Object> params) throws StripeException {
96
    return create(params, (RequestOptions) null);
×
97
  }
98

99
  /** Creates a new Tax {@code Registration} object. */
100
  public static Registration create(Map<String, Object> params, RequestOptions options)
101
      throws StripeException {
102
    String path = "/v1/tax/registrations";
×
103
    ApiRequest request =
×
104
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
105
    return getGlobalResponseGetter().request(request, Registration.class);
×
106
  }
107

108
  /** Creates a new Tax {@code Registration} object. */
109
  public static Registration create(RegistrationCreateParams params) throws StripeException {
110
    return create(params, (RequestOptions) null);
1✔
111
  }
112

113
  /** Creates a new Tax {@code Registration} object. */
114
  public static Registration create(RegistrationCreateParams params, RequestOptions options)
115
      throws StripeException {
116
    String path = "/v1/tax/registrations";
1✔
117
    ApiResource.checkNullTypedParams(path, params);
1✔
118
    ApiRequest request =
1✔
119
        new ApiRequest(
120
            BaseAddress.API,
121
            ApiResource.RequestMethod.POST,
122
            path,
123
            ApiRequestParams.paramsToMap(params),
1✔
124
            options);
125
    return getGlobalResponseGetter().request(request, Registration.class);
1✔
126
  }
127

128
  /** Returns a list of Tax {@code Registration} objects. */
129
  public static RegistrationCollection list(Map<String, Object> params) throws StripeException {
130
    return list(params, (RequestOptions) null);
×
131
  }
132

133
  /** Returns a list of Tax {@code Registration} objects. */
134
  public static RegistrationCollection list(Map<String, Object> params, RequestOptions options)
135
      throws StripeException {
136
    String path = "/v1/tax/registrations";
×
137
    ApiRequest request =
×
138
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
139
    return getGlobalResponseGetter().request(request, RegistrationCollection.class);
×
140
  }
141

142
  /** Returns a list of Tax {@code Registration} objects. */
143
  public static RegistrationCollection list(RegistrationListParams params) throws StripeException {
144
    return list(params, (RequestOptions) null);
1✔
145
  }
146

147
  /** Returns a list of Tax {@code Registration} objects. */
148
  public static RegistrationCollection list(RegistrationListParams params, RequestOptions options)
149
      throws StripeException {
150
    String path = "/v1/tax/registrations";
1✔
151
    ApiResource.checkNullTypedParams(path, params);
1✔
152
    ApiRequest request =
1✔
153
        new ApiRequest(
154
            BaseAddress.API,
155
            ApiResource.RequestMethod.GET,
156
            path,
157
            ApiRequestParams.paramsToMap(params),
1✔
158
            options);
159
    return getGlobalResponseGetter().request(request, RegistrationCollection.class);
1✔
160
  }
161

162
  /** Returns a Tax {@code Registration} object. */
163
  public static Registration retrieve(String id) throws StripeException {
164
    return retrieve(id, (Map<String, Object>) null, (RequestOptions) null);
×
165
  }
166

167
  /** Returns a Tax {@code Registration} object. */
168
  public static Registration retrieve(String id, RequestOptions options) throws StripeException {
169
    return retrieve(id, (Map<String, Object>) null, options);
×
170
  }
171

172
  /** Returns a Tax {@code Registration} object. */
173
  public static Registration retrieve(String id, Map<String, Object> params, RequestOptions options)
174
      throws StripeException {
175
    String path = String.format("/v1/tax/registrations/%s", ApiResource.urlEncodeId(id));
×
176
    ApiRequest request =
×
177
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options);
178
    return getGlobalResponseGetter().request(request, Registration.class);
×
179
  }
180

181
  /** Returns a Tax {@code Registration} object. */
182
  public static Registration retrieve(
183
      String id, RegistrationRetrieveParams params, RequestOptions options) throws StripeException {
184
    String path = String.format("/v1/tax/registrations/%s", ApiResource.urlEncodeId(id));
×
185
    ApiResource.checkNullTypedParams(path, params);
×
186
    ApiRequest request =
×
187
        new ApiRequest(
188
            BaseAddress.API,
189
            ApiResource.RequestMethod.GET,
190
            path,
191
            ApiRequestParams.paramsToMap(params),
×
192
            options);
193
    return getGlobalResponseGetter().request(request, Registration.class);
×
194
  }
195

196
  /**
197
   * Updates an existing Tax {@code Registration} object.
198
   *
199
   * <p>A registration cannot be deleted after it has been created. If you wish to end a
200
   * registration you may do so by setting {@code expires_at}.
201
   */
202
  public Registration update(Map<String, Object> params) throws StripeException {
203
    return update(params, (RequestOptions) null);
×
204
  }
205

206
  /**
207
   * Updates an existing Tax {@code Registration} object.
208
   *
209
   * <p>A registration cannot be deleted after it has been created. If you wish to end a
210
   * registration you may do so by setting {@code expires_at}.
211
   */
212
  public Registration update(Map<String, Object> params, RequestOptions options)
213
      throws StripeException {
214
    String path = String.format("/v1/tax/registrations/%s", ApiResource.urlEncodeId(this.getId()));
×
215
    ApiRequest request =
×
216
        new ApiRequest(BaseAddress.API, ApiResource.RequestMethod.POST, path, params, options);
217
    return getResponseGetter().request(request, Registration.class);
×
218
  }
219

220
  /**
221
   * Updates an existing Tax {@code Registration} object.
222
   *
223
   * <p>A registration cannot be deleted after it has been created. If you wish to end a
224
   * registration you may do so by setting {@code expires_at}.
225
   */
226
  public Registration update(RegistrationUpdateParams params) throws StripeException {
227
    return update(params, (RequestOptions) null);
×
228
  }
229

230
  /**
231
   * Updates an existing Tax {@code Registration} object.
232
   *
233
   * <p>A registration cannot be deleted after it has been created. If you wish to end a
234
   * registration you may do so by setting {@code expires_at}.
235
   */
236
  public Registration update(RegistrationUpdateParams params, RequestOptions options)
237
      throws StripeException {
238
    String path = String.format("/v1/tax/registrations/%s", ApiResource.urlEncodeId(this.getId()));
×
239
    ApiResource.checkNullTypedParams(path, params);
×
240
    ApiRequest request =
×
241
        new ApiRequest(
242
            BaseAddress.API,
243
            ApiResource.RequestMethod.POST,
244
            path,
245
            ApiRequestParams.paramsToMap(params),
×
246
            options);
247
    return getResponseGetter().request(request, Registration.class);
×
248
  }
249

250
  @Getter
251
  @Setter
252
  @EqualsAndHashCode(callSuper = false)
253
  public static class CountryOptions extends StripeObject {
1✔
254
    @SerializedName("ae")
255
    Ae ae;
256

257
    @SerializedName("at")
258
    At at;
259

260
    @SerializedName("au")
261
    Au au;
262

263
    @SerializedName("be")
264
    Be be;
265

266
    @SerializedName("bg")
267
    Bg bg;
268

269
    @SerializedName("bh")
270
    Bh bh;
271

272
    @SerializedName("ca")
273
    Ca ca;
274

275
    @SerializedName("ch")
276
    Ch ch;
277

278
    @SerializedName("cl")
279
    Cl cl;
280

281
    @SerializedName("co")
282
    Co co;
283

284
    @SerializedName("cy")
285
    Cy cy;
286

287
    @SerializedName("cz")
288
    Cz cz;
289

290
    @SerializedName("de")
291
    De de;
292

293
    @SerializedName("dk")
294
    Dk dk;
295

296
    @SerializedName("ee")
297
    Ee ee;
298

299
    @SerializedName("eg")
300
    Eg eg;
301

302
    @SerializedName("es")
303
    Es es;
304

305
    @SerializedName("fi")
306
    Fi fi;
307

308
    @SerializedName("fr")
309
    Fr fr;
310

311
    @SerializedName("gb")
312
    Gb gb;
313

314
    @SerializedName("ge")
315
    Ge ge;
316

317
    @SerializedName("gr")
318
    Gr gr;
319

320
    @SerializedName("hr")
321
    Hr hr;
322

323
    @SerializedName("hu")
324
    Hu hu;
325

326
    @SerializedName("id")
327
    Id id;
328

329
    @SerializedName("ie")
330
    Ie ie;
331

332
    @SerializedName("is")
333
    Is is;
334

335
    @SerializedName("it")
336
    It it;
337

338
    @SerializedName("jp")
339
    Jp jp;
340

341
    @SerializedName("ke")
342
    Ke ke;
343

344
    @SerializedName("kr")
345
    Kr kr;
346

347
    @SerializedName("kz")
348
    Kz kz;
349

350
    @SerializedName("lt")
351
    Lt lt;
352

353
    @SerializedName("lu")
354
    Lu lu;
355

356
    @SerializedName("lv")
357
    Lv lv;
358

359
    @SerializedName("mt")
360
    Mt mt;
361

362
    @SerializedName("mx")
363
    Mx mx;
364

365
    @SerializedName("my")
366
    My my;
367

368
    @SerializedName("ng")
369
    Ng ng;
370

371
    @SerializedName("nl")
372
    Nl nl;
373

374
    @SerializedName("no")
375
    No no;
376

377
    @SerializedName("nz")
378
    Nz nz;
379

380
    @SerializedName("om")
381
    Om om;
382

383
    @SerializedName("pl")
384
    Pl pl;
385

386
    @SerializedName("pt")
387
    Pt pt;
388

389
    @SerializedName("ro")
390
    Ro ro;
391

392
    @SerializedName("sa")
393
    Sa sa;
394

395
    @SerializedName("se")
396
    Se se;
397

398
    @SerializedName("sg")
399
    Sg sg;
400

401
    @SerializedName("si")
402
    Si si;
403

404
    @SerializedName("sk")
405
    Sk sk;
406

407
    @SerializedName("th")
408
    Th th;
409

410
    @SerializedName("tr")
411
    Tr tr;
412

413
    @SerializedName("us")
414
    Us us;
415

416
    @SerializedName("vn")
417
    Vn vn;
418

419
    @SerializedName("za")
420
    Za za;
421

422
    @Getter
423
    @Setter
424
    @EqualsAndHashCode(callSuper = false)
425
    public static class Ae extends StripeObject {
×
426
      /**
427
       * Type of registration in {@code country}.
428
       *
429
       * <p>Equal to {@code standard}.
430
       */
431
      @SerializedName("type")
432
      String type;
433
    }
434

435
    @Getter
436
    @Setter
437
    @EqualsAndHashCode(callSuper = false)
438
    public static class At extends StripeObject {
×
439
      @SerializedName("standard")
440
      Standard standard;
441

442
      /**
443
       * Type of registration in an EU country.
444
       *
445
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
446
       */
447
      @SerializedName("type")
448
      String type;
449

450
      @Getter
451
      @Setter
452
      @EqualsAndHashCode(callSuper = false)
453
      public static class Standard extends StripeObject {
×
454
        /**
455
         * Place of supply scheme used in an EU standard registration.
456
         *
457
         * <p>One of {@code small_seller}, or {@code standard}.
458
         */
459
        @SerializedName("place_of_supply_scheme")
460
        String placeOfSupplyScheme;
461
      }
462
    }
463

464
    @Getter
465
    @Setter
466
    @EqualsAndHashCode(callSuper = false)
467
    public static class Au extends StripeObject {
×
468
      /**
469
       * Type of registration in {@code country}.
470
       *
471
       * <p>Equal to {@code standard}.
472
       */
473
      @SerializedName("type")
474
      String type;
475
    }
476

477
    @Getter
478
    @Setter
479
    @EqualsAndHashCode(callSuper = false)
480
    public static class Be extends StripeObject {
×
481
      @SerializedName("standard")
482
      Standard standard;
483

484
      /**
485
       * Type of registration in an EU country.
486
       *
487
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
488
       */
489
      @SerializedName("type")
490
      String type;
491

492
      @Getter
493
      @Setter
494
      @EqualsAndHashCode(callSuper = false)
495
      public static class Standard extends StripeObject {
×
496
        /**
497
         * Place of supply scheme used in an EU standard registration.
498
         *
499
         * <p>One of {@code small_seller}, or {@code standard}.
500
         */
501
        @SerializedName("place_of_supply_scheme")
502
        String placeOfSupplyScheme;
503
      }
504
    }
505

506
    @Getter
507
    @Setter
508
    @EqualsAndHashCode(callSuper = false)
509
    public static class Bg extends StripeObject {
×
510
      @SerializedName("standard")
511
      Standard standard;
512

513
      /**
514
       * Type of registration in an EU country.
515
       *
516
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
517
       */
518
      @SerializedName("type")
519
      String type;
520

521
      @Getter
522
      @Setter
523
      @EqualsAndHashCode(callSuper = false)
524
      public static class Standard extends StripeObject {
×
525
        /**
526
         * Place of supply scheme used in an EU standard registration.
527
         *
528
         * <p>One of {@code small_seller}, or {@code standard}.
529
         */
530
        @SerializedName("place_of_supply_scheme")
531
        String placeOfSupplyScheme;
532
      }
533
    }
534

535
    @Getter
536
    @Setter
537
    @EqualsAndHashCode(callSuper = false)
538
    public static class Bh extends StripeObject {
×
539
      /**
540
       * Type of registration in {@code country}.
541
       *
542
       * <p>Equal to {@code standard}.
543
       */
544
      @SerializedName("type")
545
      String type;
546
    }
547

548
    @Getter
549
    @Setter
550
    @EqualsAndHashCode(callSuper = false)
551
    public static class Ca extends StripeObject {
×
552
      @SerializedName("province_standard")
553
      ProvinceStandard provinceStandard;
554

555
      /**
556
       * Type of registration in Canada.
557
       *
558
       * <p>One of {@code province_standard}, {@code simplified}, or {@code standard}.
559
       */
560
      @SerializedName("type")
561
      String type;
562

563
      @Getter
564
      @Setter
565
      @EqualsAndHashCode(callSuper = false)
566
      public static class ProvinceStandard extends StripeObject {
×
567
        /**
568
         * Two-letter CA province code (<a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO
569
         * 3166-2</a>).
570
         */
571
        @SerializedName("province")
572
        String province;
573
      }
574
    }
575

576
    @Getter
577
    @Setter
578
    @EqualsAndHashCode(callSuper = false)
579
    public static class Ch extends StripeObject {
×
580
      /**
581
       * Type of registration in {@code country}.
582
       *
583
       * <p>Equal to {@code standard}.
584
       */
585
      @SerializedName("type")
586
      String type;
587
    }
588

589
    @Getter
590
    @Setter
591
    @EqualsAndHashCode(callSuper = false)
592
    public static class Cl extends StripeObject {
×
593
      /**
594
       * Type of registration in {@code country}.
595
       *
596
       * <p>Equal to {@code simplified}.
597
       */
598
      @SerializedName("type")
599
      String type;
600
    }
601

602
    @Getter
603
    @Setter
604
    @EqualsAndHashCode(callSuper = false)
605
    public static class Co extends StripeObject {
×
606
      /**
607
       * Type of registration in {@code country}.
608
       *
609
       * <p>Equal to {@code simplified}.
610
       */
611
      @SerializedName("type")
612
      String type;
613
    }
614

615
    @Getter
616
    @Setter
617
    @EqualsAndHashCode(callSuper = false)
618
    public static class Cy extends StripeObject {
×
619
      @SerializedName("standard")
620
      Standard standard;
621

622
      /**
623
       * Type of registration in an EU country.
624
       *
625
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
626
       */
627
      @SerializedName("type")
628
      String type;
629

630
      @Getter
631
      @Setter
632
      @EqualsAndHashCode(callSuper = false)
633
      public static class Standard extends StripeObject {
×
634
        /**
635
         * Place of supply scheme used in an EU standard registration.
636
         *
637
         * <p>One of {@code small_seller}, or {@code standard}.
638
         */
639
        @SerializedName("place_of_supply_scheme")
640
        String placeOfSupplyScheme;
641
      }
642
    }
643

644
    @Getter
645
    @Setter
646
    @EqualsAndHashCode(callSuper = false)
647
    public static class Cz extends StripeObject {
×
648
      @SerializedName("standard")
649
      Standard standard;
650

651
      /**
652
       * Type of registration in an EU country.
653
       *
654
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
655
       */
656
      @SerializedName("type")
657
      String type;
658

659
      @Getter
660
      @Setter
661
      @EqualsAndHashCode(callSuper = false)
662
      public static class Standard extends StripeObject {
×
663
        /**
664
         * Place of supply scheme used in an EU standard registration.
665
         *
666
         * <p>One of {@code small_seller}, or {@code standard}.
667
         */
668
        @SerializedName("place_of_supply_scheme")
669
        String placeOfSupplyScheme;
670
      }
671
    }
672

673
    @Getter
674
    @Setter
675
    @EqualsAndHashCode(callSuper = false)
676
    public static class De extends StripeObject {
×
677
      @SerializedName("standard")
678
      Standard standard;
679

680
      /**
681
       * Type of registration in an EU country.
682
       *
683
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
684
       */
685
      @SerializedName("type")
686
      String type;
687

688
      @Getter
689
      @Setter
690
      @EqualsAndHashCode(callSuper = false)
691
      public static class Standard extends StripeObject {
×
692
        /**
693
         * Place of supply scheme used in an EU standard registration.
694
         *
695
         * <p>One of {@code small_seller}, or {@code standard}.
696
         */
697
        @SerializedName("place_of_supply_scheme")
698
        String placeOfSupplyScheme;
699
      }
700
    }
701

702
    @Getter
703
    @Setter
704
    @EqualsAndHashCode(callSuper = false)
705
    public static class Dk extends StripeObject {
×
706
      @SerializedName("standard")
707
      Standard standard;
708

709
      /**
710
       * Type of registration in an EU country.
711
       *
712
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
713
       */
714
      @SerializedName("type")
715
      String type;
716

717
      @Getter
718
      @Setter
719
      @EqualsAndHashCode(callSuper = false)
720
      public static class Standard extends StripeObject {
×
721
        /**
722
         * Place of supply scheme used in an EU standard registration.
723
         *
724
         * <p>One of {@code small_seller}, or {@code standard}.
725
         */
726
        @SerializedName("place_of_supply_scheme")
727
        String placeOfSupplyScheme;
728
      }
729
    }
730

731
    @Getter
732
    @Setter
733
    @EqualsAndHashCode(callSuper = false)
734
    public static class Ee extends StripeObject {
×
735
      @SerializedName("standard")
736
      Standard standard;
737

738
      /**
739
       * Type of registration in an EU country.
740
       *
741
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
742
       */
743
      @SerializedName("type")
744
      String type;
745

746
      @Getter
747
      @Setter
748
      @EqualsAndHashCode(callSuper = false)
749
      public static class Standard extends StripeObject {
×
750
        /**
751
         * Place of supply scheme used in an EU standard registration.
752
         *
753
         * <p>One of {@code small_seller}, or {@code standard}.
754
         */
755
        @SerializedName("place_of_supply_scheme")
756
        String placeOfSupplyScheme;
757
      }
758
    }
759

760
    @Getter
761
    @Setter
762
    @EqualsAndHashCode(callSuper = false)
763
    public static class Eg extends StripeObject {
×
764
      /**
765
       * Type of registration in {@code country}.
766
       *
767
       * <p>Equal to {@code simplified}.
768
       */
769
      @SerializedName("type")
770
      String type;
771
    }
772

773
    @Getter
774
    @Setter
775
    @EqualsAndHashCode(callSuper = false)
776
    public static class Es extends StripeObject {
×
777
      @SerializedName("standard")
778
      Standard standard;
779

780
      /**
781
       * Type of registration in an EU country.
782
       *
783
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
784
       */
785
      @SerializedName("type")
786
      String type;
787

788
      @Getter
789
      @Setter
790
      @EqualsAndHashCode(callSuper = false)
791
      public static class Standard extends StripeObject {
×
792
        /**
793
         * Place of supply scheme used in an EU standard registration.
794
         *
795
         * <p>One of {@code small_seller}, or {@code standard}.
796
         */
797
        @SerializedName("place_of_supply_scheme")
798
        String placeOfSupplyScheme;
799
      }
800
    }
801

802
    @Getter
803
    @Setter
804
    @EqualsAndHashCode(callSuper = false)
805
    public static class Fi extends StripeObject {
×
806
      @SerializedName("standard")
807
      Standard standard;
808

809
      /**
810
       * Type of registration in an EU country.
811
       *
812
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
813
       */
814
      @SerializedName("type")
815
      String type;
816

817
      @Getter
818
      @Setter
819
      @EqualsAndHashCode(callSuper = false)
820
      public static class Standard extends StripeObject {
×
821
        /**
822
         * Place of supply scheme used in an EU standard registration.
823
         *
824
         * <p>One of {@code small_seller}, or {@code standard}.
825
         */
826
        @SerializedName("place_of_supply_scheme")
827
        String placeOfSupplyScheme;
828
      }
829
    }
830

831
    @Getter
832
    @Setter
833
    @EqualsAndHashCode(callSuper = false)
834
    public static class Fr extends StripeObject {
×
835
      @SerializedName("standard")
836
      Standard standard;
837

838
      /**
839
       * Type of registration in an EU country.
840
       *
841
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
842
       */
843
      @SerializedName("type")
844
      String type;
845

846
      @Getter
847
      @Setter
848
      @EqualsAndHashCode(callSuper = false)
849
      public static class Standard extends StripeObject {
×
850
        /**
851
         * Place of supply scheme used in an EU standard registration.
852
         *
853
         * <p>One of {@code small_seller}, or {@code standard}.
854
         */
855
        @SerializedName("place_of_supply_scheme")
856
        String placeOfSupplyScheme;
857
      }
858
    }
859

860
    @Getter
861
    @Setter
862
    @EqualsAndHashCode(callSuper = false)
863
    public static class Gb extends StripeObject {
×
864
      /**
865
       * Type of registration in {@code country}.
866
       *
867
       * <p>Equal to {@code standard}.
868
       */
869
      @SerializedName("type")
870
      String type;
871
    }
872

873
    @Getter
874
    @Setter
875
    @EqualsAndHashCode(callSuper = false)
876
    public static class Ge extends StripeObject {
×
877
      /**
878
       * Type of registration in {@code country}.
879
       *
880
       * <p>Equal to {@code simplified}.
881
       */
882
      @SerializedName("type")
883
      String type;
884
    }
885

886
    @Getter
887
    @Setter
888
    @EqualsAndHashCode(callSuper = false)
889
    public static class Gr extends StripeObject {
×
890
      @SerializedName("standard")
891
      Standard standard;
892

893
      /**
894
       * Type of registration in an EU country.
895
       *
896
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
897
       */
898
      @SerializedName("type")
899
      String type;
900

901
      @Getter
902
      @Setter
903
      @EqualsAndHashCode(callSuper = false)
904
      public static class Standard extends StripeObject {
×
905
        /**
906
         * Place of supply scheme used in an EU standard registration.
907
         *
908
         * <p>One of {@code small_seller}, or {@code standard}.
909
         */
910
        @SerializedName("place_of_supply_scheme")
911
        String placeOfSupplyScheme;
912
      }
913
    }
914

915
    @Getter
916
    @Setter
917
    @EqualsAndHashCode(callSuper = false)
918
    public static class Hr extends StripeObject {
×
919
      @SerializedName("standard")
920
      Standard standard;
921

922
      /**
923
       * Type of registration in an EU country.
924
       *
925
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
926
       */
927
      @SerializedName("type")
928
      String type;
929

930
      @Getter
931
      @Setter
932
      @EqualsAndHashCode(callSuper = false)
933
      public static class Standard extends StripeObject {
×
934
        /**
935
         * Place of supply scheme used in an EU standard registration.
936
         *
937
         * <p>One of {@code small_seller}, or {@code standard}.
938
         */
939
        @SerializedName("place_of_supply_scheme")
940
        String placeOfSupplyScheme;
941
      }
942
    }
943

944
    @Getter
945
    @Setter
946
    @EqualsAndHashCode(callSuper = false)
947
    public static class Hu extends StripeObject {
×
948
      @SerializedName("standard")
949
      Standard standard;
950

951
      /**
952
       * Type of registration in an EU country.
953
       *
954
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
955
       */
956
      @SerializedName("type")
957
      String type;
958

959
      @Getter
960
      @Setter
961
      @EqualsAndHashCode(callSuper = false)
962
      public static class Standard extends StripeObject {
×
963
        /**
964
         * Place of supply scheme used in an EU standard registration.
965
         *
966
         * <p>One of {@code small_seller}, or {@code standard}.
967
         */
968
        @SerializedName("place_of_supply_scheme")
969
        String placeOfSupplyScheme;
970
      }
971
    }
972

973
    @Getter
974
    @Setter
975
    @EqualsAndHashCode(callSuper = false)
976
    public static class Id extends StripeObject {
×
977
      /**
978
       * Type of registration in {@code country}.
979
       *
980
       * <p>Equal to {@code simplified}.
981
       */
982
      @SerializedName("type")
983
      String type;
984
    }
985

986
    @Getter
987
    @Setter
988
    @EqualsAndHashCode(callSuper = false)
989
    public static class Ie extends StripeObject {
×
990
      @SerializedName("standard")
991
      Standard standard;
992

993
      /**
994
       * Type of registration in an EU country.
995
       *
996
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
997
       */
998
      @SerializedName("type")
999
      String type;
1000

1001
      @Getter
1002
      @Setter
1003
      @EqualsAndHashCode(callSuper = false)
1004
      public static class Standard extends StripeObject {
×
1005
        /**
1006
         * Place of supply scheme used in an EU standard registration.
1007
         *
1008
         * <p>One of {@code small_seller}, or {@code standard}.
1009
         */
1010
        @SerializedName("place_of_supply_scheme")
1011
        String placeOfSupplyScheme;
1012
      }
1013
    }
1014

1015
    @Getter
1016
    @Setter
1017
    @EqualsAndHashCode(callSuper = false)
1018
    public static class Is extends StripeObject {
×
1019
      /**
1020
       * Type of registration in {@code country}.
1021
       *
1022
       * <p>Equal to {@code standard}.
1023
       */
1024
      @SerializedName("type")
1025
      String type;
1026
    }
1027

1028
    @Getter
1029
    @Setter
1030
    @EqualsAndHashCode(callSuper = false)
1031
    public static class It extends StripeObject {
×
1032
      @SerializedName("standard")
1033
      Standard standard;
1034

1035
      /**
1036
       * Type of registration in an EU country.
1037
       *
1038
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
1039
       */
1040
      @SerializedName("type")
1041
      String type;
1042

1043
      @Getter
1044
      @Setter
1045
      @EqualsAndHashCode(callSuper = false)
1046
      public static class Standard extends StripeObject {
×
1047
        /**
1048
         * Place of supply scheme used in an EU standard registration.
1049
         *
1050
         * <p>One of {@code small_seller}, or {@code standard}.
1051
         */
1052
        @SerializedName("place_of_supply_scheme")
1053
        String placeOfSupplyScheme;
1054
      }
1055
    }
1056

1057
    @Getter
1058
    @Setter
1059
    @EqualsAndHashCode(callSuper = false)
1060
    public static class Jp extends StripeObject {
×
1061
      /**
1062
       * Type of registration in {@code country}.
1063
       *
1064
       * <p>Equal to {@code standard}.
1065
       */
1066
      @SerializedName("type")
1067
      String type;
1068
    }
1069

1070
    @Getter
1071
    @Setter
1072
    @EqualsAndHashCode(callSuper = false)
1073
    public static class Ke extends StripeObject {
×
1074
      /**
1075
       * Type of registration in {@code country}.
1076
       *
1077
       * <p>Equal to {@code simplified}.
1078
       */
1079
      @SerializedName("type")
1080
      String type;
1081
    }
1082

1083
    @Getter
1084
    @Setter
1085
    @EqualsAndHashCode(callSuper = false)
1086
    public static class Kr extends StripeObject {
×
1087
      /**
1088
       * Type of registration in {@code country}.
1089
       *
1090
       * <p>Equal to {@code simplified}.
1091
       */
1092
      @SerializedName("type")
1093
      String type;
1094
    }
1095

1096
    @Getter
1097
    @Setter
1098
    @EqualsAndHashCode(callSuper = false)
1099
    public static class Kz extends StripeObject {
×
1100
      /**
1101
       * Type of registration in {@code country}.
1102
       *
1103
       * <p>Equal to {@code simplified}.
1104
       */
1105
      @SerializedName("type")
1106
      String type;
1107
    }
1108

1109
    @Getter
1110
    @Setter
1111
    @EqualsAndHashCode(callSuper = false)
1112
    public static class Lt extends StripeObject {
×
1113
      @SerializedName("standard")
1114
      Standard standard;
1115

1116
      /**
1117
       * Type of registration in an EU country.
1118
       *
1119
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
1120
       */
1121
      @SerializedName("type")
1122
      String type;
1123

1124
      @Getter
1125
      @Setter
1126
      @EqualsAndHashCode(callSuper = false)
1127
      public static class Standard extends StripeObject {
×
1128
        /**
1129
         * Place of supply scheme used in an EU standard registration.
1130
         *
1131
         * <p>One of {@code small_seller}, or {@code standard}.
1132
         */
1133
        @SerializedName("place_of_supply_scheme")
1134
        String placeOfSupplyScheme;
1135
      }
1136
    }
1137

1138
    @Getter
1139
    @Setter
1140
    @EqualsAndHashCode(callSuper = false)
1141
    public static class Lu extends StripeObject {
×
1142
      @SerializedName("standard")
1143
      Standard standard;
1144

1145
      /**
1146
       * Type of registration in an EU country.
1147
       *
1148
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
1149
       */
1150
      @SerializedName("type")
1151
      String type;
1152

1153
      @Getter
1154
      @Setter
1155
      @EqualsAndHashCode(callSuper = false)
1156
      public static class Standard extends StripeObject {
×
1157
        /**
1158
         * Place of supply scheme used in an EU standard registration.
1159
         *
1160
         * <p>One of {@code small_seller}, or {@code standard}.
1161
         */
1162
        @SerializedName("place_of_supply_scheme")
1163
        String placeOfSupplyScheme;
1164
      }
1165
    }
1166

1167
    @Getter
1168
    @Setter
1169
    @EqualsAndHashCode(callSuper = false)
1170
    public static class Lv extends StripeObject {
×
1171
      @SerializedName("standard")
1172
      Standard standard;
1173

1174
      /**
1175
       * Type of registration in an EU country.
1176
       *
1177
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
1178
       */
1179
      @SerializedName("type")
1180
      String type;
1181

1182
      @Getter
1183
      @Setter
1184
      @EqualsAndHashCode(callSuper = false)
1185
      public static class Standard extends StripeObject {
×
1186
        /**
1187
         * Place of supply scheme used in an EU standard registration.
1188
         *
1189
         * <p>One of {@code small_seller}, or {@code standard}.
1190
         */
1191
        @SerializedName("place_of_supply_scheme")
1192
        String placeOfSupplyScheme;
1193
      }
1194
    }
1195

1196
    @Getter
1197
    @Setter
1198
    @EqualsAndHashCode(callSuper = false)
1199
    public static class Mt extends StripeObject {
×
1200
      @SerializedName("standard")
1201
      Standard standard;
1202

1203
      /**
1204
       * Type of registration in an EU country.
1205
       *
1206
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
1207
       */
1208
      @SerializedName("type")
1209
      String type;
1210

1211
      @Getter
1212
      @Setter
1213
      @EqualsAndHashCode(callSuper = false)
1214
      public static class Standard extends StripeObject {
×
1215
        /**
1216
         * Place of supply scheme used in an EU standard registration.
1217
         *
1218
         * <p>One of {@code small_seller}, or {@code standard}.
1219
         */
1220
        @SerializedName("place_of_supply_scheme")
1221
        String placeOfSupplyScheme;
1222
      }
1223
    }
1224

1225
    @Getter
1226
    @Setter
1227
    @EqualsAndHashCode(callSuper = false)
1228
    public static class Mx extends StripeObject {
×
1229
      /**
1230
       * Type of registration in {@code country}.
1231
       *
1232
       * <p>Equal to {@code simplified}.
1233
       */
1234
      @SerializedName("type")
1235
      String type;
1236
    }
1237

1238
    @Getter
1239
    @Setter
1240
    @EqualsAndHashCode(callSuper = false)
1241
    public static class My extends StripeObject {
×
1242
      /**
1243
       * Type of registration in {@code country}.
1244
       *
1245
       * <p>Equal to {@code simplified}.
1246
       */
1247
      @SerializedName("type")
1248
      String type;
1249
    }
1250

1251
    @Getter
1252
    @Setter
1253
    @EqualsAndHashCode(callSuper = false)
1254
    public static class Ng extends StripeObject {
×
1255
      /**
1256
       * Type of registration in {@code country}.
1257
       *
1258
       * <p>Equal to {@code simplified}.
1259
       */
1260
      @SerializedName("type")
1261
      String type;
1262
    }
1263

1264
    @Getter
1265
    @Setter
1266
    @EqualsAndHashCode(callSuper = false)
1267
    public static class Nl extends StripeObject {
×
1268
      @SerializedName("standard")
1269
      Standard standard;
1270

1271
      /**
1272
       * Type of registration in an EU country.
1273
       *
1274
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
1275
       */
1276
      @SerializedName("type")
1277
      String type;
1278

1279
      @Getter
1280
      @Setter
1281
      @EqualsAndHashCode(callSuper = false)
1282
      public static class Standard extends StripeObject {
×
1283
        /**
1284
         * Place of supply scheme used in an EU standard registration.
1285
         *
1286
         * <p>One of {@code small_seller}, or {@code standard}.
1287
         */
1288
        @SerializedName("place_of_supply_scheme")
1289
        String placeOfSupplyScheme;
1290
      }
1291
    }
1292

1293
    @Getter
1294
    @Setter
1295
    @EqualsAndHashCode(callSuper = false)
1296
    public static class No extends StripeObject {
×
1297
      /**
1298
       * Type of registration in {@code country}.
1299
       *
1300
       * <p>Equal to {@code standard}.
1301
       */
1302
      @SerializedName("type")
1303
      String type;
1304
    }
1305

1306
    @Getter
1307
    @Setter
1308
    @EqualsAndHashCode(callSuper = false)
1309
    public static class Nz extends StripeObject {
×
1310
      /**
1311
       * Type of registration in {@code country}.
1312
       *
1313
       * <p>Equal to {@code standard}.
1314
       */
1315
      @SerializedName("type")
1316
      String type;
1317
    }
1318

1319
    @Getter
1320
    @Setter
1321
    @EqualsAndHashCode(callSuper = false)
1322
    public static class Om extends StripeObject {
×
1323
      /**
1324
       * Type of registration in {@code country}.
1325
       *
1326
       * <p>Equal to {@code standard}.
1327
       */
1328
      @SerializedName("type")
1329
      String type;
1330
    }
1331

1332
    @Getter
1333
    @Setter
1334
    @EqualsAndHashCode(callSuper = false)
1335
    public static class Pl extends StripeObject {
×
1336
      @SerializedName("standard")
1337
      Standard standard;
1338

1339
      /**
1340
       * Type of registration in an EU country.
1341
       *
1342
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
1343
       */
1344
      @SerializedName("type")
1345
      String type;
1346

1347
      @Getter
1348
      @Setter
1349
      @EqualsAndHashCode(callSuper = false)
1350
      public static class Standard extends StripeObject {
×
1351
        /**
1352
         * Place of supply scheme used in an EU standard registration.
1353
         *
1354
         * <p>One of {@code small_seller}, or {@code standard}.
1355
         */
1356
        @SerializedName("place_of_supply_scheme")
1357
        String placeOfSupplyScheme;
1358
      }
1359
    }
1360

1361
    @Getter
1362
    @Setter
1363
    @EqualsAndHashCode(callSuper = false)
1364
    public static class Pt extends StripeObject {
×
1365
      @SerializedName("standard")
1366
      Standard standard;
1367

1368
      /**
1369
       * Type of registration in an EU country.
1370
       *
1371
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
1372
       */
1373
      @SerializedName("type")
1374
      String type;
1375

1376
      @Getter
1377
      @Setter
1378
      @EqualsAndHashCode(callSuper = false)
1379
      public static class Standard extends StripeObject {
×
1380
        /**
1381
         * Place of supply scheme used in an EU standard registration.
1382
         *
1383
         * <p>One of {@code small_seller}, or {@code standard}.
1384
         */
1385
        @SerializedName("place_of_supply_scheme")
1386
        String placeOfSupplyScheme;
1387
      }
1388
    }
1389

1390
    @Getter
1391
    @Setter
1392
    @EqualsAndHashCode(callSuper = false)
1393
    public static class Ro extends StripeObject {
×
1394
      @SerializedName("standard")
1395
      Standard standard;
1396

1397
      /**
1398
       * Type of registration in an EU country.
1399
       *
1400
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
1401
       */
1402
      @SerializedName("type")
1403
      String type;
1404

1405
      @Getter
1406
      @Setter
1407
      @EqualsAndHashCode(callSuper = false)
1408
      public static class Standard extends StripeObject {
×
1409
        /**
1410
         * Place of supply scheme used in an EU standard registration.
1411
         *
1412
         * <p>One of {@code small_seller}, or {@code standard}.
1413
         */
1414
        @SerializedName("place_of_supply_scheme")
1415
        String placeOfSupplyScheme;
1416
      }
1417
    }
1418

1419
    @Getter
1420
    @Setter
1421
    @EqualsAndHashCode(callSuper = false)
1422
    public static class Sa extends StripeObject {
×
1423
      /**
1424
       * Type of registration in {@code country}.
1425
       *
1426
       * <p>Equal to {@code simplified}.
1427
       */
1428
      @SerializedName("type")
1429
      String type;
1430
    }
1431

1432
    @Getter
1433
    @Setter
1434
    @EqualsAndHashCode(callSuper = false)
1435
    public static class Se extends StripeObject {
×
1436
      @SerializedName("standard")
1437
      Standard standard;
1438

1439
      /**
1440
       * Type of registration in an EU country.
1441
       *
1442
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
1443
       */
1444
      @SerializedName("type")
1445
      String type;
1446

1447
      @Getter
1448
      @Setter
1449
      @EqualsAndHashCode(callSuper = false)
1450
      public static class Standard extends StripeObject {
×
1451
        /**
1452
         * Place of supply scheme used in an EU standard registration.
1453
         *
1454
         * <p>One of {@code small_seller}, or {@code standard}.
1455
         */
1456
        @SerializedName("place_of_supply_scheme")
1457
        String placeOfSupplyScheme;
1458
      }
1459
    }
1460

1461
    @Getter
1462
    @Setter
1463
    @EqualsAndHashCode(callSuper = false)
1464
    public static class Sg extends StripeObject {
×
1465
      /**
1466
       * Type of registration in {@code country}.
1467
       *
1468
       * <p>Equal to {@code standard}.
1469
       */
1470
      @SerializedName("type")
1471
      String type;
1472
    }
1473

1474
    @Getter
1475
    @Setter
1476
    @EqualsAndHashCode(callSuper = false)
1477
    public static class Si extends StripeObject {
×
1478
      @SerializedName("standard")
1479
      Standard standard;
1480

1481
      /**
1482
       * Type of registration in an EU country.
1483
       *
1484
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
1485
       */
1486
      @SerializedName("type")
1487
      String type;
1488

1489
      @Getter
1490
      @Setter
1491
      @EqualsAndHashCode(callSuper = false)
1492
      public static class Standard extends StripeObject {
×
1493
        /**
1494
         * Place of supply scheme used in an EU standard registration.
1495
         *
1496
         * <p>One of {@code small_seller}, or {@code standard}.
1497
         */
1498
        @SerializedName("place_of_supply_scheme")
1499
        String placeOfSupplyScheme;
1500
      }
1501
    }
1502

1503
    @Getter
1504
    @Setter
1505
    @EqualsAndHashCode(callSuper = false)
1506
    public static class Sk extends StripeObject {
×
1507
      @SerializedName("standard")
1508
      Standard standard;
1509

1510
      /**
1511
       * Type of registration in an EU country.
1512
       *
1513
       * <p>One of {@code ioss}, {@code oss_non_union}, {@code oss_union}, or {@code standard}.
1514
       */
1515
      @SerializedName("type")
1516
      String type;
1517

1518
      @Getter
1519
      @Setter
1520
      @EqualsAndHashCode(callSuper = false)
1521
      public static class Standard extends StripeObject {
×
1522
        /**
1523
         * Place of supply scheme used in an EU standard registration.
1524
         *
1525
         * <p>One of {@code small_seller}, or {@code standard}.
1526
         */
1527
        @SerializedName("place_of_supply_scheme")
1528
        String placeOfSupplyScheme;
1529
      }
1530
    }
1531

1532
    @Getter
1533
    @Setter
1534
    @EqualsAndHashCode(callSuper = false)
1535
    public static class Th extends StripeObject {
×
1536
      /**
1537
       * Type of registration in {@code country}.
1538
       *
1539
       * <p>Equal to {@code simplified}.
1540
       */
1541
      @SerializedName("type")
1542
      String type;
1543
    }
1544

1545
    @Getter
1546
    @Setter
1547
    @EqualsAndHashCode(callSuper = false)
1548
    public static class Tr extends StripeObject {
×
1549
      /**
1550
       * Type of registration in {@code country}.
1551
       *
1552
       * <p>Equal to {@code simplified}.
1553
       */
1554
      @SerializedName("type")
1555
      String type;
1556
    }
1557

1558
    @Getter
1559
    @Setter
1560
    @EqualsAndHashCode(callSuper = false)
1561
    public static class Us extends StripeObject {
1✔
1562
      @SerializedName("local_amusement_tax")
1563
      LocalAmusementTax localAmusementTax;
1564

1565
      @SerializedName("local_lease_tax")
1566
      LocalLeaseTax localLeaseTax;
1567

1568
      /**
1569
       * Two-letter US state code (<a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO
1570
       * 3166-2</a>).
1571
       */
1572
      @SerializedName("state")
1573
      String state;
1574

1575
      @SerializedName("state_sales_tax")
1576
      StateSalesTax stateSalesTax;
1577

1578
      /**
1579
       * Type of registration in the US.
1580
       *
1581
       * <p>One of {@code local_amusement_tax}, {@code local_lease_tax}, {@code
1582
       * state_communications_tax}, or {@code state_sales_tax}.
1583
       */
1584
      @SerializedName("type")
1585
      String type;
1586

1587
      @Getter
1588
      @Setter
1589
      @EqualsAndHashCode(callSuper = false)
1590
      public static class LocalAmusementTax extends StripeObject {
×
1591
        /**
1592
         * A <a href="https://www.census.gov/library/reference/code-lists/ansi.html">FIPS code</a>
1593
         * representing the local jurisdiction.
1594
         */
1595
        @SerializedName("jurisdiction")
1596
        String jurisdiction;
1597
      }
1598

1599
      @Getter
1600
      @Setter
1601
      @EqualsAndHashCode(callSuper = false)
1602
      public static class LocalLeaseTax extends StripeObject {
×
1603
        /**
1604
         * A <a href="https://www.census.gov/library/reference/code-lists/ansi.html">FIPS code</a>
1605
         * representing the local jurisdiction.
1606
         */
1607
        @SerializedName("jurisdiction")
1608
        String jurisdiction;
1609
      }
1610

1611
      @Getter
1612
      @Setter
1613
      @EqualsAndHashCode(callSuper = false)
NEW
1614
      public static class StateSalesTax extends StripeObject {
×
1615
        /** Elections for the state sales tax registration. */
1616
        @SerializedName("elections")
1617
        List<Registration.CountryOptions.Us.StateSalesTax.Election> elections;
1618

1619
        @Getter
1620
        @Setter
1621
        @EqualsAndHashCode(callSuper = false)
NEW
1622
        public static class Election extends StripeObject {
×
1623
          /**
1624
           * A <a href="https://www.census.gov/library/reference/code-lists/ansi.html">FIPS code</a>
1625
           * representing the local jurisdiction.
1626
           */
1627
          @SerializedName("jurisdiction")
1628
          String jurisdiction;
1629

1630
          /**
1631
           * The type of the election for the state sales tax registration.
1632
           *
1633
           * <p>One of {@code local_use_tax}, {@code simplified_sellers_use_tax}, or {@code
1634
           * single_local_use_tax}.
1635
           */
1636
          @SerializedName("type")
1637
          String type;
1638
        }
1639
      }
1640
    }
1641

1642
    @Getter
1643
    @Setter
1644
    @EqualsAndHashCode(callSuper = false)
1645
    public static class Vn extends StripeObject {
×
1646
      /**
1647
       * Type of registration in {@code country}.
1648
       *
1649
       * <p>Equal to {@code simplified}.
1650
       */
1651
      @SerializedName("type")
1652
      String type;
1653
    }
1654

1655
    @Getter
1656
    @Setter
1657
    @EqualsAndHashCode(callSuper = false)
1658
    public static class Za extends StripeObject {
×
1659
      /**
1660
       * Type of registration in {@code country}.
1661
       *
1662
       * <p>Equal to {@code standard}.
1663
       */
1664
      @SerializedName("type")
1665
      String type;
1666
    }
1667
  }
1668

1669
  @Override
1670
  public void setResponseGetter(StripeResponseGetter responseGetter) {
1671
    super.setResponseGetter(responseGetter);
1✔
1672
    trySetResponseGetter(countryOptions, responseGetter);
1✔
1673
  }
1✔
1674
}
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