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

stripe / stripe-java / #16624

07 Nov 2024 10:04PM UTC coverage: 12.419% (-0.1%) from 12.519%
#16624

push

github

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

Update generated code for beta

17 of 1341 new or added lines in 57 files covered. (1.27%)

33 existing lines in 29 files now uncovered.

18855 of 151828 relevant lines covered (12.42%)

0.12 hits per line

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

59.01
/src/main/java/com/stripe/param/issuing/AuthorizationCreateParams.java
1
// File generated from our OpenAPI spec
2
package com.stripe.param.issuing;
3

4
import com.google.gson.annotations.SerializedName;
5
import com.stripe.net.ApiRequestParams;
6
import java.math.BigDecimal;
7
import java.util.ArrayList;
8
import java.util.HashMap;
9
import java.util.List;
10
import java.util.Map;
11
import lombok.Getter;
12

13
@Getter
14
public class AuthorizationCreateParams extends ApiRequestParams {
15
  /**
16
   * The total amount to attempt to authorize. This amount is in the provided currency, or defaults
17
   * to the card's currency, and in the <a
18
   * href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
19
   */
20
  @SerializedName("amount")
21
  Long amount;
22

23
  /**
24
   * Detailed breakdown of amount components. These amounts are denominated in {@code currency} and
25
   * in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
26
   */
27
  @SerializedName("amount_details")
28
  AmountDetails amountDetails;
29

30
  /** How the card details were provided. Defaults to online. */
31
  @SerializedName("authorization_method")
32
  AuthorizationMethod authorizationMethod;
33

34
  /** <strong>Required.</strong> Card associated with this authorization. */
35
  @SerializedName("card")
36
  String card;
37

38
  /**
39
   * The currency of the authorization. If not provided, defaults to the currency of the card.
40
   * Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>,
41
   * in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
42
   */
43
  @SerializedName("currency")
44
  String currency;
45

46
  /** Specifies which fields in the response should be expanded. */
47
  @SerializedName("expand")
48
  List<String> expand;
49

50
  /**
51
   * Map of extra parameters for custom features not available in this client library. The content
52
   * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
53
   * key/value pair is serialized as if the key is a root-level field (serialized) name in this
54
   * param object. Effectively, this map is flattened to its parent instance.
55
   */
56
  @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
57
  Map<String, Object> extraParams;
58

59
  /** Fleet-specific information for authorizations using Fleet cards. */
60
  @SerializedName("fleet")
61
  Fleet fleet;
62

63
  /** Information about fuel that was purchased with this transaction. */
64
  @SerializedName("fuel")
65
  Fuel fuel;
66

67
  /**
68
   * If set {@code true}, you may provide <a
69
   * href="https://stripe.com/docs/api/issuing/authorizations/approve#approve_issuing_authorization-amount">amount</a>
70
   * to control how much to hold for the authorization.
71
   */
72
  @SerializedName("is_amount_controllable")
73
  Boolean isAmountControllable;
74

75
  /**
76
   * The total amount to attempt to authorize. This amount is in the provided merchant currency, and
77
   * in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
78
   */
79
  @SerializedName("merchant_amount")
80
  Long merchantAmount;
81

82
  /**
83
   * The currency of the authorization. If not provided, defaults to the currency of the card.
84
   * Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>,
85
   * in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
86
   */
87
  @SerializedName("merchant_currency")
88
  String merchantCurrency;
89

90
  /**
91
   * Details about the seller (grocery store, e-commerce website, etc.) where the card authorization
92
   * happened.
93
   */
94
  @SerializedName("merchant_data")
95
  MerchantData merchantData;
96

97
  /** Details about the authorization, such as identifiers, set by the card network. */
98
  @SerializedName("network_data")
99
  NetworkData networkData;
100

101
  /**
102
   * Verifications that Stripe performed on information that the cardholder provided to the
103
   * merchant.
104
   */
105
  @SerializedName("verification_data")
106
  VerificationData verificationData;
107

108
  /**
109
   * The digital wallet used for this transaction. One of {@code apple_pay}, {@code google_pay}, or
110
   * {@code samsung_pay}. Will populate as {@code null} when no digital wallet was utilized.
111
   */
112
  @SerializedName("wallet")
113
  Wallet wallet;
114

115
  private AuthorizationCreateParams(
116
      Long amount,
117
      AmountDetails amountDetails,
118
      AuthorizationMethod authorizationMethod,
119
      String card,
120
      String currency,
121
      List<String> expand,
122
      Map<String, Object> extraParams,
123
      Fleet fleet,
124
      Fuel fuel,
125
      Boolean isAmountControllable,
126
      Long merchantAmount,
127
      String merchantCurrency,
128
      MerchantData merchantData,
129
      NetworkData networkData,
130
      VerificationData verificationData,
131
      Wallet wallet) {
1✔
132
    this.amount = amount;
1✔
133
    this.amountDetails = amountDetails;
1✔
134
    this.authorizationMethod = authorizationMethod;
1✔
135
    this.card = card;
1✔
136
    this.currency = currency;
1✔
137
    this.expand = expand;
1✔
138
    this.extraParams = extraParams;
1✔
139
    this.fleet = fleet;
1✔
140
    this.fuel = fuel;
1✔
141
    this.isAmountControllable = isAmountControllable;
1✔
142
    this.merchantAmount = merchantAmount;
1✔
143
    this.merchantCurrency = merchantCurrency;
1✔
144
    this.merchantData = merchantData;
1✔
145
    this.networkData = networkData;
1✔
146
    this.verificationData = verificationData;
1✔
147
    this.wallet = wallet;
1✔
148
  }
1✔
149

150
  public static Builder builder() {
151
    return new Builder();
1✔
152
  }
153

154
  public static class Builder {
1✔
155
    private Long amount;
156

157
    private AmountDetails amountDetails;
158

159
    private AuthorizationMethod authorizationMethod;
160

161
    private String card;
162

163
    private String currency;
164

165
    private List<String> expand;
166

167
    private Map<String, Object> extraParams;
168

169
    private Fleet fleet;
170

171
    private Fuel fuel;
172

173
    private Boolean isAmountControllable;
174

175
    private Long merchantAmount;
176

177
    private String merchantCurrency;
178

179
    private MerchantData merchantData;
180

181
    private NetworkData networkData;
182

183
    private VerificationData verificationData;
184

185
    private Wallet wallet;
186

187
    /** Finalize and obtain parameter instance from this builder. */
188
    public AuthorizationCreateParams build() {
189
      return new AuthorizationCreateParams(
1✔
190
          this.amount,
191
          this.amountDetails,
192
          this.authorizationMethod,
193
          this.card,
194
          this.currency,
195
          this.expand,
196
          this.extraParams,
197
          this.fleet,
198
          this.fuel,
199
          this.isAmountControllable,
200
          this.merchantAmount,
201
          this.merchantCurrency,
202
          this.merchantData,
203
          this.networkData,
204
          this.verificationData,
205
          this.wallet);
206
    }
207

208
    /**
209
     * The total amount to attempt to authorize. This amount is in the provided currency, or
210
     * defaults to the card's currency, and in the <a
211
     * href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
212
     */
213
    public Builder setAmount(Long amount) {
214
      this.amount = amount;
1✔
215
      return this;
1✔
216
    }
217

218
    /**
219
     * Detailed breakdown of amount components. These amounts are denominated in {@code currency}
220
     * and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency
221
     * unit</a>.
222
     */
223
    public Builder setAmountDetails(AuthorizationCreateParams.AmountDetails amountDetails) {
224
      this.amountDetails = amountDetails;
1✔
225
      return this;
1✔
226
    }
227

228
    /** How the card details were provided. Defaults to online. */
229
    public Builder setAuthorizationMethod(
230
        AuthorizationCreateParams.AuthorizationMethod authorizationMethod) {
231
      this.authorizationMethod = authorizationMethod;
1✔
232
      return this;
1✔
233
    }
234

235
    /** <strong>Required.</strong> Card associated with this authorization. */
236
    public Builder setCard(String card) {
237
      this.card = card;
1✔
238
      return this;
1✔
239
    }
240

241
    /**
242
     * The currency of the authorization. If not provided, defaults to the currency of the card.
243
     * Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
244
     * code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
245
     * currency</a>.
246
     */
247
    public Builder setCurrency(String currency) {
248
      this.currency = currency;
1✔
249
      return this;
1✔
250
    }
251

252
    /**
253
     * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
254
     * subsequent calls adds additional elements to the original list. See {@link
255
     * AuthorizationCreateParams#expand} for the field documentation.
256
     */
257
    public Builder addExpand(String element) {
258
      if (this.expand == null) {
×
259
        this.expand = new ArrayList<>();
×
260
      }
261
      this.expand.add(element);
×
262
      return this;
×
263
    }
264

265
    /**
266
     * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
267
     * subsequent calls adds additional elements to the original list. See {@link
268
     * AuthorizationCreateParams#expand} for the field documentation.
269
     */
270
    public Builder addAllExpand(List<String> elements) {
271
      if (this.expand == null) {
×
272
        this.expand = new ArrayList<>();
×
273
      }
274
      this.expand.addAll(elements);
×
275
      return this;
×
276
    }
277

278
    /**
279
     * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
280
     * call, and subsequent calls add additional key/value pairs to the original map. See {@link
281
     * AuthorizationCreateParams#extraParams} for the field documentation.
282
     */
283
    public Builder putExtraParam(String key, Object value) {
284
      if (this.extraParams == null) {
×
285
        this.extraParams = new HashMap<>();
×
286
      }
287
      this.extraParams.put(key, value);
×
288
      return this;
×
289
    }
290

291
    /**
292
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
293
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
294
     * See {@link AuthorizationCreateParams#extraParams} for the field documentation.
295
     */
296
    public Builder putAllExtraParam(Map<String, Object> map) {
297
      if (this.extraParams == null) {
×
298
        this.extraParams = new HashMap<>();
×
299
      }
300
      this.extraParams.putAll(map);
×
301
      return this;
×
302
    }
303

304
    /** Fleet-specific information for authorizations using Fleet cards. */
305
    public Builder setFleet(AuthorizationCreateParams.Fleet fleet) {
306
      this.fleet = fleet;
×
307
      return this;
×
308
    }
309

310
    /** Information about fuel that was purchased with this transaction. */
311
    public Builder setFuel(AuthorizationCreateParams.Fuel fuel) {
312
      this.fuel = fuel;
×
313
      return this;
×
314
    }
315

316
    /**
317
     * If set {@code true}, you may provide <a
318
     * href="https://stripe.com/docs/api/issuing/authorizations/approve#approve_issuing_authorization-amount">amount</a>
319
     * to control how much to hold for the authorization.
320
     */
321
    public Builder setIsAmountControllable(Boolean isAmountControllable) {
322
      this.isAmountControllable = isAmountControllable;
1✔
323
      return this;
1✔
324
    }
325

326
    /**
327
     * The total amount to attempt to authorize. This amount is in the provided merchant currency,
328
     * and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency
329
     * unit</a>.
330
     */
331
    public Builder setMerchantAmount(Long merchantAmount) {
NEW
332
      this.merchantAmount = merchantAmount;
×
NEW
333
      return this;
×
334
    }
335

336
    /**
337
     * The currency of the authorization. If not provided, defaults to the currency of the card.
338
     * Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
339
     * code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
340
     * currency</a>.
341
     */
342
    public Builder setMerchantCurrency(String merchantCurrency) {
NEW
343
      this.merchantCurrency = merchantCurrency;
×
NEW
344
      return this;
×
345
    }
346

347
    /**
348
     * Details about the seller (grocery store, e-commerce website, etc.) where the card
349
     * authorization happened.
350
     */
351
    public Builder setMerchantData(AuthorizationCreateParams.MerchantData merchantData) {
352
      this.merchantData = merchantData;
1✔
353
      return this;
1✔
354
    }
355

356
    /** Details about the authorization, such as identifiers, set by the card network. */
357
    public Builder setNetworkData(AuthorizationCreateParams.NetworkData networkData) {
358
      this.networkData = networkData;
1✔
359
      return this;
1✔
360
    }
361

362
    /**
363
     * Verifications that Stripe performed on information that the cardholder provided to the
364
     * merchant.
365
     */
366
    public Builder setVerificationData(
367
        AuthorizationCreateParams.VerificationData verificationData) {
368
      this.verificationData = verificationData;
1✔
369
      return this;
1✔
370
    }
371

372
    /**
373
     * The digital wallet used for this transaction. One of {@code apple_pay}, {@code google_pay},
374
     * or {@code samsung_pay}. Will populate as {@code null} when no digital wallet was utilized.
375
     */
376
    public Builder setWallet(AuthorizationCreateParams.Wallet wallet) {
377
      this.wallet = wallet;
1✔
378
      return this;
1✔
379
    }
380
  }
381

382
  @Getter
383
  public static class AmountDetails {
384
    /** The ATM withdrawal fee. */
385
    @SerializedName("atm_fee")
386
    Long atmFee;
387

388
    /** The amount of cash requested by the cardholder. */
389
    @SerializedName("cashback_amount")
390
    Long cashbackAmount;
391

392
    /**
393
     * Map of extra parameters for custom features not available in this client library. The content
394
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
395
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
396
     * param object. Effectively, this map is flattened to its parent instance.
397
     */
398
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
399
    Map<String, Object> extraParams;
400

401
    private AmountDetails(Long atmFee, Long cashbackAmount, Map<String, Object> extraParams) {
1✔
402
      this.atmFee = atmFee;
1✔
403
      this.cashbackAmount = cashbackAmount;
1✔
404
      this.extraParams = extraParams;
1✔
405
    }
1✔
406

407
    public static Builder builder() {
408
      return new Builder();
1✔
409
    }
410

411
    public static class Builder {
1✔
412
      private Long atmFee;
413

414
      private Long cashbackAmount;
415

416
      private Map<String, Object> extraParams;
417

418
      /** Finalize and obtain parameter instance from this builder. */
419
      public AuthorizationCreateParams.AmountDetails build() {
420
        return new AuthorizationCreateParams.AmountDetails(
1✔
421
            this.atmFee, this.cashbackAmount, this.extraParams);
422
      }
423

424
      /** The ATM withdrawal fee. */
425
      public Builder setAtmFee(Long atmFee) {
426
        this.atmFee = atmFee;
1✔
427
        return this;
1✔
428
      }
429

430
      /** The amount of cash requested by the cardholder. */
431
      public Builder setCashbackAmount(Long cashbackAmount) {
432
        this.cashbackAmount = cashbackAmount;
1✔
433
        return this;
1✔
434
      }
435

436
      /**
437
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
438
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
439
       * AuthorizationCreateParams.AmountDetails#extraParams} for the field documentation.
440
       */
441
      public Builder putExtraParam(String key, Object value) {
442
        if (this.extraParams == null) {
×
443
          this.extraParams = new HashMap<>();
×
444
        }
445
        this.extraParams.put(key, value);
×
446
        return this;
×
447
      }
448

449
      /**
450
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
451
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
452
       * See {@link AuthorizationCreateParams.AmountDetails#extraParams} for the field
453
       * documentation.
454
       */
455
      public Builder putAllExtraParam(Map<String, Object> map) {
456
        if (this.extraParams == null) {
×
457
          this.extraParams = new HashMap<>();
×
458
        }
459
        this.extraParams.putAll(map);
×
460
        return this;
×
461
      }
462
    }
463
  }
464

465
  @Getter
466
  public static class Fleet {
467
    /**
468
     * Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary
469
     * depending on the configuration of your physical fleet cards. Typical points of sale support
470
     * only numeric entry.
471
     */
472
    @SerializedName("cardholder_prompt_data")
473
    CardholderPromptData cardholderPromptData;
474

475
    /**
476
     * Map of extra parameters for custom features not available in this client library. The content
477
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
478
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
479
     * param object. Effectively, this map is flattened to its parent instance.
480
     */
481
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
482
    Map<String, Object> extraParams;
483

484
    /**
485
     * The type of purchase. One of {@code fuel_purchase}, {@code non_fuel_purchase}, or {@code
486
     * fuel_and_non_fuel_purchase}.
487
     */
488
    @SerializedName("purchase_type")
489
    PurchaseType purchaseType;
490

491
    /**
492
     * More information about the total amount. This information is not guaranteed to be accurate as
493
     * some merchants may provide unreliable data.
494
     */
495
    @SerializedName("reported_breakdown")
496
    ReportedBreakdown reportedBreakdown;
497

498
    /**
499
     * The type of fuel service. One of {@code non_fuel_transaction}, {@code full_service}, or
500
     * {@code self_service}.
501
     */
502
    @SerializedName("service_type")
503
    ServiceType serviceType;
504

505
    private Fleet(
506
        CardholderPromptData cardholderPromptData,
507
        Map<String, Object> extraParams,
508
        PurchaseType purchaseType,
509
        ReportedBreakdown reportedBreakdown,
510
        ServiceType serviceType) {
×
511
      this.cardholderPromptData = cardholderPromptData;
×
512
      this.extraParams = extraParams;
×
513
      this.purchaseType = purchaseType;
×
514
      this.reportedBreakdown = reportedBreakdown;
×
515
      this.serviceType = serviceType;
×
516
    }
×
517

518
    public static Builder builder() {
519
      return new Builder();
×
520
    }
521

522
    public static class Builder {
×
523
      private CardholderPromptData cardholderPromptData;
524

525
      private Map<String, Object> extraParams;
526

527
      private PurchaseType purchaseType;
528

529
      private ReportedBreakdown reportedBreakdown;
530

531
      private ServiceType serviceType;
532

533
      /** Finalize and obtain parameter instance from this builder. */
534
      public AuthorizationCreateParams.Fleet build() {
535
        return new AuthorizationCreateParams.Fleet(
×
536
            this.cardholderPromptData,
537
            this.extraParams,
538
            this.purchaseType,
539
            this.reportedBreakdown,
540
            this.serviceType);
541
      }
542

543
      /**
544
       * Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary
545
       * depending on the configuration of your physical fleet cards. Typical points of sale support
546
       * only numeric entry.
547
       */
548
      public Builder setCardholderPromptData(
549
          AuthorizationCreateParams.Fleet.CardholderPromptData cardholderPromptData) {
550
        this.cardholderPromptData = cardholderPromptData;
×
551
        return this;
×
552
      }
553

554
      /**
555
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
556
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
557
       * AuthorizationCreateParams.Fleet#extraParams} for the field documentation.
558
       */
559
      public Builder putExtraParam(String key, Object value) {
560
        if (this.extraParams == null) {
×
561
          this.extraParams = new HashMap<>();
×
562
        }
563
        this.extraParams.put(key, value);
×
564
        return this;
×
565
      }
566

567
      /**
568
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
569
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
570
       * See {@link AuthorizationCreateParams.Fleet#extraParams} for the field documentation.
571
       */
572
      public Builder putAllExtraParam(Map<String, Object> map) {
573
        if (this.extraParams == null) {
×
574
          this.extraParams = new HashMap<>();
×
575
        }
576
        this.extraParams.putAll(map);
×
577
        return this;
×
578
      }
579

580
      /**
581
       * The type of purchase. One of {@code fuel_purchase}, {@code non_fuel_purchase}, or {@code
582
       * fuel_and_non_fuel_purchase}.
583
       */
584
      public Builder setPurchaseType(AuthorizationCreateParams.Fleet.PurchaseType purchaseType) {
585
        this.purchaseType = purchaseType;
×
586
        return this;
×
587
      }
588

589
      /**
590
       * More information about the total amount. This information is not guaranteed to be accurate
591
       * as some merchants may provide unreliable data.
592
       */
593
      public Builder setReportedBreakdown(
594
          AuthorizationCreateParams.Fleet.ReportedBreakdown reportedBreakdown) {
595
        this.reportedBreakdown = reportedBreakdown;
×
596
        return this;
×
597
      }
598

599
      /**
600
       * The type of fuel service. One of {@code non_fuel_transaction}, {@code full_service}, or
601
       * {@code self_service}.
602
       */
603
      public Builder setServiceType(AuthorizationCreateParams.Fleet.ServiceType serviceType) {
604
        this.serviceType = serviceType;
×
605
        return this;
×
606
      }
607
    }
608

609
    @Getter
610
    public static class CardholderPromptData {
611
      /** Driver ID. */
612
      @SerializedName("driver_id")
613
      String driverId;
614

615
      /**
616
       * Map of extra parameters for custom features not available in this client library. The
617
       * content in this map is not serialized under this field's {@code @SerializedName} value.
618
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
619
       * name in this param object. Effectively, this map is flattened to its parent instance.
620
       */
621
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
622
      Map<String, Object> extraParams;
623

624
      /** Odometer reading. */
625
      @SerializedName("odometer")
626
      Long odometer;
627

628
      /**
629
       * An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is
630
       * entered by the cardholder, but the merchant or card network did not specify the prompt
631
       * type.
632
       */
633
      @SerializedName("unspecified_id")
634
      String unspecifiedId;
635

636
      /** User ID. */
637
      @SerializedName("user_id")
638
      String userId;
639

640
      /** Vehicle number. */
641
      @SerializedName("vehicle_number")
642
      String vehicleNumber;
643

644
      private CardholderPromptData(
645
          String driverId,
646
          Map<String, Object> extraParams,
647
          Long odometer,
648
          String unspecifiedId,
649
          String userId,
650
          String vehicleNumber) {
×
651
        this.driverId = driverId;
×
652
        this.extraParams = extraParams;
×
653
        this.odometer = odometer;
×
654
        this.unspecifiedId = unspecifiedId;
×
655
        this.userId = userId;
×
656
        this.vehicleNumber = vehicleNumber;
×
657
      }
×
658

659
      public static Builder builder() {
660
        return new Builder();
×
661
      }
662

663
      public static class Builder {
×
664
        private String driverId;
665

666
        private Map<String, Object> extraParams;
667

668
        private Long odometer;
669

670
        private String unspecifiedId;
671

672
        private String userId;
673

674
        private String vehicleNumber;
675

676
        /** Finalize and obtain parameter instance from this builder. */
677
        public AuthorizationCreateParams.Fleet.CardholderPromptData build() {
678
          return new AuthorizationCreateParams.Fleet.CardholderPromptData(
×
679
              this.driverId,
680
              this.extraParams,
681
              this.odometer,
682
              this.unspecifiedId,
683
              this.userId,
684
              this.vehicleNumber);
685
        }
686

687
        /** Driver ID. */
688
        public Builder setDriverId(String driverId) {
689
          this.driverId = driverId;
×
690
          return this;
×
691
        }
692

693
        /**
694
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
695
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
696
         * map. See {@link AuthorizationCreateParams.Fleet.CardholderPromptData#extraParams} for the
697
         * field documentation.
698
         */
699
        public Builder putExtraParam(String key, Object value) {
700
          if (this.extraParams == null) {
×
701
            this.extraParams = new HashMap<>();
×
702
          }
703
          this.extraParams.put(key, value);
×
704
          return this;
×
705
        }
706

707
        /**
708
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
709
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
710
         * map. See {@link AuthorizationCreateParams.Fleet.CardholderPromptData#extraParams} for the
711
         * field documentation.
712
         */
713
        public Builder putAllExtraParam(Map<String, Object> map) {
714
          if (this.extraParams == null) {
×
715
            this.extraParams = new HashMap<>();
×
716
          }
717
          this.extraParams.putAll(map);
×
718
          return this;
×
719
        }
720

721
        /** Odometer reading. */
722
        public Builder setOdometer(Long odometer) {
723
          this.odometer = odometer;
×
724
          return this;
×
725
        }
726

727
        /**
728
         * An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is
729
         * entered by the cardholder, but the merchant or card network did not specify the prompt
730
         * type.
731
         */
732
        public Builder setUnspecifiedId(String unspecifiedId) {
733
          this.unspecifiedId = unspecifiedId;
×
734
          return this;
×
735
        }
736

737
        /** User ID. */
738
        public Builder setUserId(String userId) {
739
          this.userId = userId;
×
740
          return this;
×
741
        }
742

743
        /** Vehicle number. */
744
        public Builder setVehicleNumber(String vehicleNumber) {
745
          this.vehicleNumber = vehicleNumber;
×
746
          return this;
×
747
        }
748
      }
749
    }
750

751
    @Getter
752
    public static class ReportedBreakdown {
753
      /**
754
       * Map of extra parameters for custom features not available in this client library. The
755
       * content in this map is not serialized under this field's {@code @SerializedName} value.
756
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
757
       * name in this param object. Effectively, this map is flattened to its parent instance.
758
       */
759
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
760
      Map<String, Object> extraParams;
761

762
      /** Breakdown of fuel portion of the purchase. */
763
      @SerializedName("fuel")
764
      Fuel fuel;
765

766
      /** Breakdown of non-fuel portion of the purchase. */
767
      @SerializedName("non_fuel")
768
      NonFuel nonFuel;
769

770
      /** Information about tax included in this transaction. */
771
      @SerializedName("tax")
772
      Tax tax;
773

774
      private ReportedBreakdown(
775
          Map<String, Object> extraParams, Fuel fuel, NonFuel nonFuel, Tax tax) {
×
776
        this.extraParams = extraParams;
×
777
        this.fuel = fuel;
×
778
        this.nonFuel = nonFuel;
×
779
        this.tax = tax;
×
780
      }
×
781

782
      public static Builder builder() {
783
        return new Builder();
×
784
      }
785

786
      public static class Builder {
×
787
        private Map<String, Object> extraParams;
788

789
        private Fuel fuel;
790

791
        private NonFuel nonFuel;
792

793
        private Tax tax;
794

795
        /** Finalize and obtain parameter instance from this builder. */
796
        public AuthorizationCreateParams.Fleet.ReportedBreakdown build() {
797
          return new AuthorizationCreateParams.Fleet.ReportedBreakdown(
×
798
              this.extraParams, this.fuel, this.nonFuel, this.tax);
799
        }
800

801
        /**
802
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
803
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
804
         * map. See {@link AuthorizationCreateParams.Fleet.ReportedBreakdown#extraParams} for the
805
         * field documentation.
806
         */
807
        public Builder putExtraParam(String key, Object value) {
808
          if (this.extraParams == null) {
×
809
            this.extraParams = new HashMap<>();
×
810
          }
811
          this.extraParams.put(key, value);
×
812
          return this;
×
813
        }
814

815
        /**
816
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
817
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
818
         * map. See {@link AuthorizationCreateParams.Fleet.ReportedBreakdown#extraParams} for the
819
         * field documentation.
820
         */
821
        public Builder putAllExtraParam(Map<String, Object> map) {
822
          if (this.extraParams == null) {
×
823
            this.extraParams = new HashMap<>();
×
824
          }
825
          this.extraParams.putAll(map);
×
826
          return this;
×
827
        }
828

829
        /** Breakdown of fuel portion of the purchase. */
830
        public Builder setFuel(AuthorizationCreateParams.Fleet.ReportedBreakdown.Fuel fuel) {
831
          this.fuel = fuel;
×
832
          return this;
×
833
        }
834

835
        /** Breakdown of non-fuel portion of the purchase. */
836
        public Builder setNonFuel(
837
            AuthorizationCreateParams.Fleet.ReportedBreakdown.NonFuel nonFuel) {
838
          this.nonFuel = nonFuel;
×
839
          return this;
×
840
        }
841

842
        /** Information about tax included in this transaction. */
843
        public Builder setTax(AuthorizationCreateParams.Fleet.ReportedBreakdown.Tax tax) {
844
          this.tax = tax;
×
845
          return this;
×
846
        }
847
      }
848

849
      @Getter
850
      public static class Fuel {
851
        /**
852
         * Map of extra parameters for custom features not available in this client library. The
853
         * content in this map is not serialized under this field's {@code @SerializedName} value.
854
         * Instead, each key/value pair is serialized as if the key is a root-level field
855
         * (serialized) name in this param object. Effectively, this map is flattened to its parent
856
         * instance.
857
         */
858
        @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
859
        Map<String, Object> extraParams;
860

861
        /**
862
         * Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of
863
         * taxes.
864
         */
865
        @SerializedName("gross_amount_decimal")
866
        BigDecimal grossAmountDecimal;
867

868
        private Fuel(Map<String, Object> extraParams, BigDecimal grossAmountDecimal) {
×
869
          this.extraParams = extraParams;
×
870
          this.grossAmountDecimal = grossAmountDecimal;
×
871
        }
×
872

873
        public static Builder builder() {
874
          return new Builder();
×
875
        }
876

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

880
          private BigDecimal grossAmountDecimal;
881

882
          /** Finalize and obtain parameter instance from this builder. */
883
          public AuthorizationCreateParams.Fleet.ReportedBreakdown.Fuel build() {
884
            return new AuthorizationCreateParams.Fleet.ReportedBreakdown.Fuel(
×
885
                this.extraParams, this.grossAmountDecimal);
886
          }
887

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

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

916
          /**
917
           * Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive
918
           * of taxes.
919
           */
920
          public Builder setGrossAmountDecimal(BigDecimal grossAmountDecimal) {
921
            this.grossAmountDecimal = grossAmountDecimal;
×
922
            return this;
×
923
          }
924
        }
925
      }
926

927
      @Getter
928
      public static class NonFuel {
929
        /**
930
         * Map of extra parameters for custom features not available in this client library. The
931
         * content in this map is not serialized under this field's {@code @SerializedName} value.
932
         * Instead, each key/value pair is serialized as if the key is a root-level field
933
         * (serialized) name in this param object. Effectively, this map is flattened to its parent
934
         * instance.
935
         */
936
        @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
937
        Map<String, Object> extraParams;
938

939
        /**
940
         * Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
941
         */
942
        @SerializedName("gross_amount_decimal")
943
        BigDecimal grossAmountDecimal;
944

945
        private NonFuel(Map<String, Object> extraParams, BigDecimal grossAmountDecimal) {
×
946
          this.extraParams = extraParams;
×
947
          this.grossAmountDecimal = grossAmountDecimal;
×
948
        }
×
949

950
        public static Builder builder() {
951
          return new Builder();
×
952
        }
953

954
        public static class Builder {
×
955
          private Map<String, Object> extraParams;
956

957
          private BigDecimal grossAmountDecimal;
958

959
          /** Finalize and obtain parameter instance from this builder. */
960
          public AuthorizationCreateParams.Fleet.ReportedBreakdown.NonFuel build() {
961
            return new AuthorizationCreateParams.Fleet.ReportedBreakdown.NonFuel(
×
962
                this.extraParams, this.grossAmountDecimal);
963
          }
964

965
          /**
966
           * Add a key/value pair to `extraParams` map. A map is initialized for the first
967
           * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
968
           * map. See {@link AuthorizationCreateParams.Fleet.ReportedBreakdown.NonFuel#extraParams}
969
           * for the field documentation.
970
           */
971
          public Builder putExtraParam(String key, Object value) {
972
            if (this.extraParams == null) {
×
973
              this.extraParams = new HashMap<>();
×
974
            }
975
            this.extraParams.put(key, value);
×
976
            return this;
×
977
          }
978

979
          /**
980
           * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
981
           * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
982
           * map. See {@link AuthorizationCreateParams.Fleet.ReportedBreakdown.NonFuel#extraParams}
983
           * for the field documentation.
984
           */
985
          public Builder putAllExtraParam(Map<String, Object> map) {
986
            if (this.extraParams == null) {
×
987
              this.extraParams = new HashMap<>();
×
988
            }
989
            this.extraParams.putAll(map);
×
990
            return this;
×
991
          }
992

993
          /**
994
           * Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
995
           */
996
          public Builder setGrossAmountDecimal(BigDecimal grossAmountDecimal) {
997
            this.grossAmountDecimal = grossAmountDecimal;
×
998
            return this;
×
999
          }
1000
        }
1001
      }
1002

1003
      @Getter
1004
      public static class Tax {
1005
        /**
1006
         * Map of extra parameters for custom features not available in this client library. The
1007
         * content in this map is not serialized under this field's {@code @SerializedName} value.
1008
         * Instead, each key/value pair is serialized as if the key is a root-level field
1009
         * (serialized) name in this param object. Effectively, this map is flattened to its parent
1010
         * instance.
1011
         */
1012
        @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1013
        Map<String, Object> extraParams;
1014

1015
        /**
1016
         * Amount of state or provincial Sales Tax included in the transaction amount. Null if not
1017
         * reported by merchant or not subject to tax.
1018
         */
1019
        @SerializedName("local_amount_decimal")
1020
        BigDecimal localAmountDecimal;
1021

1022
        /**
1023
         * Amount of national Sales Tax or VAT included in the transaction amount. Null if not
1024
         * reported by merchant or not subject to tax.
1025
         */
1026
        @SerializedName("national_amount_decimal")
1027
        BigDecimal nationalAmountDecimal;
1028

1029
        private Tax(
1030
            Map<String, Object> extraParams,
1031
            BigDecimal localAmountDecimal,
1032
            BigDecimal nationalAmountDecimal) {
×
1033
          this.extraParams = extraParams;
×
1034
          this.localAmountDecimal = localAmountDecimal;
×
1035
          this.nationalAmountDecimal = nationalAmountDecimal;
×
1036
        }
×
1037

1038
        public static Builder builder() {
1039
          return new Builder();
×
1040
        }
1041

1042
        public static class Builder {
×
1043
          private Map<String, Object> extraParams;
1044

1045
          private BigDecimal localAmountDecimal;
1046

1047
          private BigDecimal nationalAmountDecimal;
1048

1049
          /** Finalize and obtain parameter instance from this builder. */
1050
          public AuthorizationCreateParams.Fleet.ReportedBreakdown.Tax build() {
1051
            return new AuthorizationCreateParams.Fleet.ReportedBreakdown.Tax(
×
1052
                this.extraParams, this.localAmountDecimal, this.nationalAmountDecimal);
1053
          }
1054

1055
          /**
1056
           * Add a key/value pair to `extraParams` map. A map is initialized for the first
1057
           * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1058
           * map. See {@link AuthorizationCreateParams.Fleet.ReportedBreakdown.Tax#extraParams} for
1059
           * the field documentation.
1060
           */
1061
          public Builder putExtraParam(String key, Object value) {
1062
            if (this.extraParams == null) {
×
1063
              this.extraParams = new HashMap<>();
×
1064
            }
1065
            this.extraParams.put(key, value);
×
1066
            return this;
×
1067
          }
1068

1069
          /**
1070
           * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1071
           * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1072
           * map. See {@link AuthorizationCreateParams.Fleet.ReportedBreakdown.Tax#extraParams} for
1073
           * the field documentation.
1074
           */
1075
          public Builder putAllExtraParam(Map<String, Object> map) {
1076
            if (this.extraParams == null) {
×
1077
              this.extraParams = new HashMap<>();
×
1078
            }
1079
            this.extraParams.putAll(map);
×
1080
            return this;
×
1081
          }
1082

1083
          /**
1084
           * Amount of state or provincial Sales Tax included in the transaction amount. Null if not
1085
           * reported by merchant or not subject to tax.
1086
           */
1087
          public Builder setLocalAmountDecimal(BigDecimal localAmountDecimal) {
1088
            this.localAmountDecimal = localAmountDecimal;
×
1089
            return this;
×
1090
          }
1091

1092
          /**
1093
           * Amount of national Sales Tax or VAT included in the transaction amount. Null if not
1094
           * reported by merchant or not subject to tax.
1095
           */
1096
          public Builder setNationalAmountDecimal(BigDecimal nationalAmountDecimal) {
1097
            this.nationalAmountDecimal = nationalAmountDecimal;
×
1098
            return this;
×
1099
          }
1100
        }
1101
      }
1102
    }
1103

1104
    public enum PurchaseType implements ApiRequestParams.EnumParam {
×
1105
      @SerializedName("fuel_and_non_fuel_purchase")
×
1106
      FUEL_AND_NON_FUEL_PURCHASE("fuel_and_non_fuel_purchase"),
1107

1108
      @SerializedName("fuel_purchase")
×
1109
      FUEL_PURCHASE("fuel_purchase"),
1110

1111
      @SerializedName("non_fuel_purchase")
×
1112
      NON_FUEL_PURCHASE("non_fuel_purchase");
1113

1114
      @Getter(onMethod_ = {@Override})
1115
      private final String value;
1116

1117
      PurchaseType(String value) {
×
1118
        this.value = value;
×
1119
      }
×
1120
    }
1121

1122
    public enum ServiceType implements ApiRequestParams.EnumParam {
×
1123
      @SerializedName("full_service")
×
1124
      FULL_SERVICE("full_service"),
1125

1126
      @SerializedName("non_fuel_transaction")
×
1127
      NON_FUEL_TRANSACTION("non_fuel_transaction"),
1128

1129
      @SerializedName("self_service")
×
1130
      SELF_SERVICE("self_service");
1131

1132
      @Getter(onMethod_ = {@Override})
1133
      private final String value;
1134

1135
      ServiceType(String value) {
×
1136
        this.value = value;
×
1137
      }
×
1138
    }
1139
  }
1140

1141
  @Getter
1142
  public static class Fuel {
1143
    /**
1144
     * Map of extra parameters for custom features not available in this client library. The content
1145
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
1146
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
1147
     * param object. Effectively, this map is flattened to its parent instance.
1148
     */
1149
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1150
    Map<String, Object> extraParams;
1151

1152
    /**
1153
     * <a href="https://www.conexxus.org/conexxus-payment-system-product-codes">Conexxus Payment
1154
     * System Product Code</a> identifying the primary fuel product purchased.
1155
     */
1156
    @SerializedName("industry_product_code")
1157
    String industryProductCode;
1158

1159
    /**
1160
     * The quantity of {@code unit}s of fuel that was dispensed, represented as a decimal string
1161
     * with at most 12 decimal places.
1162
     */
1163
    @SerializedName("quantity_decimal")
1164
    BigDecimal quantityDecimal;
1165

1166
    /**
1167
     * The type of fuel that was purchased. One of {@code diesel}, {@code unleaded_plus}, {@code
1168
     * unleaded_regular}, {@code unleaded_super}, or {@code other}.
1169
     */
1170
    @SerializedName("type")
1171
    Type type;
1172

1173
    /**
1174
     * The units for {@code quantity_decimal}. One of {@code charging_minute}, {@code
1175
     * imperial_gallon}, {@code kilogram}, {@code kilowatt_hour}, {@code liter}, {@code pound},
1176
     * {@code us_gallon}, or {@code other}.
1177
     */
1178
    @SerializedName("unit")
1179
    Unit unit;
1180

1181
    /**
1182
     * The cost in cents per each unit of fuel, represented as a decimal string with at most 12
1183
     * decimal places.
1184
     */
1185
    @SerializedName("unit_cost_decimal")
1186
    BigDecimal unitCostDecimal;
1187

1188
    private Fuel(
1189
        Map<String, Object> extraParams,
1190
        String industryProductCode,
1191
        BigDecimal quantityDecimal,
1192
        Type type,
1193
        Unit unit,
1194
        BigDecimal unitCostDecimal) {
×
1195
      this.extraParams = extraParams;
×
1196
      this.industryProductCode = industryProductCode;
×
1197
      this.quantityDecimal = quantityDecimal;
×
1198
      this.type = type;
×
1199
      this.unit = unit;
×
1200
      this.unitCostDecimal = unitCostDecimal;
×
1201
    }
×
1202

1203
    public static Builder builder() {
1204
      return new Builder();
×
1205
    }
1206

1207
    public static class Builder {
×
1208
      private Map<String, Object> extraParams;
1209

1210
      private String industryProductCode;
1211

1212
      private BigDecimal quantityDecimal;
1213

1214
      private Type type;
1215

1216
      private Unit unit;
1217

1218
      private BigDecimal unitCostDecimal;
1219

1220
      /** Finalize and obtain parameter instance from this builder. */
1221
      public AuthorizationCreateParams.Fuel build() {
1222
        return new AuthorizationCreateParams.Fuel(
×
1223
            this.extraParams,
1224
            this.industryProductCode,
1225
            this.quantityDecimal,
1226
            this.type,
1227
            this.unit,
1228
            this.unitCostDecimal);
1229
      }
1230

1231
      /**
1232
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
1233
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
1234
       * AuthorizationCreateParams.Fuel#extraParams} for the field documentation.
1235
       */
1236
      public Builder putExtraParam(String key, Object value) {
1237
        if (this.extraParams == null) {
×
1238
          this.extraParams = new HashMap<>();
×
1239
        }
1240
        this.extraParams.put(key, value);
×
1241
        return this;
×
1242
      }
1243

1244
      /**
1245
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1246
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
1247
       * See {@link AuthorizationCreateParams.Fuel#extraParams} for the field documentation.
1248
       */
1249
      public Builder putAllExtraParam(Map<String, Object> map) {
1250
        if (this.extraParams == null) {
×
1251
          this.extraParams = new HashMap<>();
×
1252
        }
1253
        this.extraParams.putAll(map);
×
1254
        return this;
×
1255
      }
1256

1257
      /**
1258
       * <a href="https://www.conexxus.org/conexxus-payment-system-product-codes">Conexxus Payment
1259
       * System Product Code</a> identifying the primary fuel product purchased.
1260
       */
1261
      public Builder setIndustryProductCode(String industryProductCode) {
1262
        this.industryProductCode = industryProductCode;
×
1263
        return this;
×
1264
      }
1265

1266
      /**
1267
       * The quantity of {@code unit}s of fuel that was dispensed, represented as a decimal string
1268
       * with at most 12 decimal places.
1269
       */
1270
      public Builder setQuantityDecimal(BigDecimal quantityDecimal) {
1271
        this.quantityDecimal = quantityDecimal;
×
1272
        return this;
×
1273
      }
1274

1275
      /**
1276
       * The type of fuel that was purchased. One of {@code diesel}, {@code unleaded_plus}, {@code
1277
       * unleaded_regular}, {@code unleaded_super}, or {@code other}.
1278
       */
1279
      public Builder setType(AuthorizationCreateParams.Fuel.Type type) {
1280
        this.type = type;
×
1281
        return this;
×
1282
      }
1283

1284
      /**
1285
       * The units for {@code quantity_decimal}. One of {@code charging_minute}, {@code
1286
       * imperial_gallon}, {@code kilogram}, {@code kilowatt_hour}, {@code liter}, {@code pound},
1287
       * {@code us_gallon}, or {@code other}.
1288
       */
1289
      public Builder setUnit(AuthorizationCreateParams.Fuel.Unit unit) {
1290
        this.unit = unit;
×
1291
        return this;
×
1292
      }
1293

1294
      /**
1295
       * The cost in cents per each unit of fuel, represented as a decimal string with at most 12
1296
       * decimal places.
1297
       */
1298
      public Builder setUnitCostDecimal(BigDecimal unitCostDecimal) {
1299
        this.unitCostDecimal = unitCostDecimal;
×
1300
        return this;
×
1301
      }
1302
    }
1303

1304
    public enum Type implements ApiRequestParams.EnumParam {
×
1305
      @SerializedName("diesel")
×
1306
      DIESEL("diesel"),
1307

1308
      @SerializedName("other")
×
1309
      OTHER("other"),
1310

1311
      @SerializedName("unleaded_plus")
×
1312
      UNLEADED_PLUS("unleaded_plus"),
1313

1314
      @SerializedName("unleaded_regular")
×
1315
      UNLEADED_REGULAR("unleaded_regular"),
1316

1317
      @SerializedName("unleaded_super")
×
1318
      UNLEADED_SUPER("unleaded_super");
1319

1320
      @Getter(onMethod_ = {@Override})
1321
      private final String value;
1322

1323
      Type(String value) {
×
1324
        this.value = value;
×
1325
      }
×
1326
    }
1327

1328
    public enum Unit implements ApiRequestParams.EnumParam {
×
1329
      @SerializedName("charging_minute")
×
1330
      CHARGING_MINUTE("charging_minute"),
1331

1332
      @SerializedName("imperial_gallon")
×
1333
      IMPERIAL_GALLON("imperial_gallon"),
1334

1335
      @SerializedName("kilogram")
×
1336
      KILOGRAM("kilogram"),
1337

1338
      @SerializedName("kilowatt_hour")
×
1339
      KILOWATT_HOUR("kilowatt_hour"),
1340

1341
      @SerializedName("liter")
×
1342
      LITER("liter"),
1343

1344
      @SerializedName("other")
×
1345
      OTHER("other"),
1346

1347
      @SerializedName("pound")
×
1348
      POUND("pound"),
1349

1350
      @SerializedName("us_gallon")
×
1351
      US_GALLON("us_gallon");
1352

1353
      @Getter(onMethod_ = {@Override})
1354
      private final String value;
1355

1356
      Unit(String value) {
×
1357
        this.value = value;
×
1358
      }
×
1359
    }
1360
  }
1361

1362
  @Getter
1363
  public static class MerchantData {
1364
    /**
1365
     * A categorization of the seller's type of business. See our <a
1366
     * href="https://stripe.com/docs/issuing/merchant-categories">merchant categories guide</a> for
1367
     * a list of possible values.
1368
     */
1369
    @SerializedName("category")
1370
    Category category;
1371

1372
    /** City where the seller is located. */
1373
    @SerializedName("city")
1374
    String city;
1375

1376
    /** Country where the seller is located. */
1377
    @SerializedName("country")
1378
    String country;
1379

1380
    /**
1381
     * Map of extra parameters for custom features not available in this client library. The content
1382
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
1383
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
1384
     * param object. Effectively, this map is flattened to its parent instance.
1385
     */
1386
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1387
    Map<String, Object> extraParams;
1388

1389
    /** Name of the seller. */
1390
    @SerializedName("name")
1391
    String name;
1392

1393
    /**
1394
     * Identifier assigned to the seller by the card network. Different card networks may assign
1395
     * different network_id fields to the same merchant.
1396
     */
1397
    @SerializedName("network_id")
1398
    String networkId;
1399

1400
    /** Postal code where the seller is located. */
1401
    @SerializedName("postal_code")
1402
    String postalCode;
1403

1404
    /** State where the seller is located. */
1405
    @SerializedName("state")
1406
    String state;
1407

1408
    /** An ID assigned by the seller to the location of the sale. */
1409
    @SerializedName("terminal_id")
1410
    String terminalId;
1411

1412
    /** URL provided by the merchant on a 3DS request. */
1413
    @SerializedName("url")
1414
    String url;
1415

1416
    private MerchantData(
1417
        Category category,
1418
        String city,
1419
        String country,
1420
        Map<String, Object> extraParams,
1421
        String name,
1422
        String networkId,
1423
        String postalCode,
1424
        String state,
1425
        String terminalId,
1426
        String url) {
1✔
1427
      this.category = category;
1✔
1428
      this.city = city;
1✔
1429
      this.country = country;
1✔
1430
      this.extraParams = extraParams;
1✔
1431
      this.name = name;
1✔
1432
      this.networkId = networkId;
1✔
1433
      this.postalCode = postalCode;
1✔
1434
      this.state = state;
1✔
1435
      this.terminalId = terminalId;
1✔
1436
      this.url = url;
1✔
1437
    }
1✔
1438

1439
    public static Builder builder() {
1440
      return new Builder();
1✔
1441
    }
1442

1443
    public static class Builder {
1✔
1444
      private Category category;
1445

1446
      private String city;
1447

1448
      private String country;
1449

1450
      private Map<String, Object> extraParams;
1451

1452
      private String name;
1453

1454
      private String networkId;
1455

1456
      private String postalCode;
1457

1458
      private String state;
1459

1460
      private String terminalId;
1461

1462
      private String url;
1463

1464
      /** Finalize and obtain parameter instance from this builder. */
1465
      public AuthorizationCreateParams.MerchantData build() {
1466
        return new AuthorizationCreateParams.MerchantData(
1✔
1467
            this.category,
1468
            this.city,
1469
            this.country,
1470
            this.extraParams,
1471
            this.name,
1472
            this.networkId,
1473
            this.postalCode,
1474
            this.state,
1475
            this.terminalId,
1476
            this.url);
1477
      }
1478

1479
      /**
1480
       * A categorization of the seller's type of business. See our <a
1481
       * href="https://stripe.com/docs/issuing/merchant-categories">merchant categories guide</a>
1482
       * for a list of possible values.
1483
       */
1484
      public Builder setCategory(AuthorizationCreateParams.MerchantData.Category category) {
1485
        this.category = category;
1✔
1486
        return this;
1✔
1487
      }
1488

1489
      /** City where the seller is located. */
1490
      public Builder setCity(String city) {
1491
        this.city = city;
1✔
1492
        return this;
1✔
1493
      }
1494

1495
      /** Country where the seller is located. */
1496
      public Builder setCountry(String country) {
1497
        this.country = country;
1✔
1498
        return this;
1✔
1499
      }
1500

1501
      /**
1502
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
1503
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
1504
       * AuthorizationCreateParams.MerchantData#extraParams} for the field documentation.
1505
       */
1506
      public Builder putExtraParam(String key, Object value) {
1507
        if (this.extraParams == null) {
×
1508
          this.extraParams = new HashMap<>();
×
1509
        }
1510
        this.extraParams.put(key, value);
×
1511
        return this;
×
1512
      }
1513

1514
      /**
1515
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1516
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
1517
       * See {@link AuthorizationCreateParams.MerchantData#extraParams} for the field documentation.
1518
       */
1519
      public Builder putAllExtraParam(Map<String, Object> map) {
1520
        if (this.extraParams == null) {
×
1521
          this.extraParams = new HashMap<>();
×
1522
        }
1523
        this.extraParams.putAll(map);
×
1524
        return this;
×
1525
      }
1526

1527
      /** Name of the seller. */
1528
      public Builder setName(String name) {
1529
        this.name = name;
1✔
1530
        return this;
1✔
1531
      }
1532

1533
      /**
1534
       * Identifier assigned to the seller by the card network. Different card networks may assign
1535
       * different network_id fields to the same merchant.
1536
       */
1537
      public Builder setNetworkId(String networkId) {
1538
        this.networkId = networkId;
1✔
1539
        return this;
1✔
1540
      }
1541

1542
      /** Postal code where the seller is located. */
1543
      public Builder setPostalCode(String postalCode) {
1544
        this.postalCode = postalCode;
1✔
1545
        return this;
1✔
1546
      }
1547

1548
      /** State where the seller is located. */
1549
      public Builder setState(String state) {
1550
        this.state = state;
1✔
1551
        return this;
1✔
1552
      }
1553

1554
      /** An ID assigned by the seller to the location of the sale. */
1555
      public Builder setTerminalId(String terminalId) {
1556
        this.terminalId = terminalId;
1✔
1557
        return this;
1✔
1558
      }
1559

1560
      /** URL provided by the merchant on a 3DS request. */
1561
      public Builder setUrl(String url) {
1562
        this.url = url;
×
1563
        return this;
×
1564
      }
1565
    }
1566

1567
    public enum Category implements ApiRequestParams.EnumParam {
1✔
1568
      @SerializedName("ac_refrigeration_repair")
1✔
1569
      AC_REFRIGERATION_REPAIR("ac_refrigeration_repair"),
1570

1571
      @SerializedName("accounting_bookkeeping_services")
1✔
1572
      ACCOUNTING_BOOKKEEPING_SERVICES("accounting_bookkeeping_services"),
1573

1574
      @SerializedName("advertising_services")
1✔
1575
      ADVERTISING_SERVICES("advertising_services"),
1576

1577
      @SerializedName("agricultural_cooperative")
1✔
1578
      AGRICULTURAL_COOPERATIVE("agricultural_cooperative"),
1579

1580
      @SerializedName("airlines_air_carriers")
1✔
1581
      AIRLINES_AIR_CARRIERS("airlines_air_carriers"),
1582

1583
      @SerializedName("airports_flying_fields")
1✔
1584
      AIRPORTS_FLYING_FIELDS("airports_flying_fields"),
1585

1586
      @SerializedName("ambulance_services")
1✔
1587
      AMBULANCE_SERVICES("ambulance_services"),
1588

1589
      @SerializedName("amusement_parks_carnivals")
1✔
1590
      AMUSEMENT_PARKS_CARNIVALS("amusement_parks_carnivals"),
1591

1592
      @SerializedName("antique_reproductions")
1✔
1593
      ANTIQUE_REPRODUCTIONS("antique_reproductions"),
1594

1595
      @SerializedName("antique_shops")
1✔
1596
      ANTIQUE_SHOPS("antique_shops"),
1597

1598
      @SerializedName("aquariums")
1✔
1599
      AQUARIUMS("aquariums"),
1600

1601
      @SerializedName("architectural_surveying_services")
1✔
1602
      ARCHITECTURAL_SURVEYING_SERVICES("architectural_surveying_services"),
1603

1604
      @SerializedName("art_dealers_and_galleries")
1✔
1605
      ART_DEALERS_AND_GALLERIES("art_dealers_and_galleries"),
1606

1607
      @SerializedName("artists_supply_and_craft_shops")
1✔
1608
      ARTISTS_SUPPLY_AND_CRAFT_SHOPS("artists_supply_and_craft_shops"),
1609

1610
      @SerializedName("auto_and_home_supply_stores")
1✔
1611
      AUTO_AND_HOME_SUPPLY_STORES("auto_and_home_supply_stores"),
1612

1613
      @SerializedName("auto_body_repair_shops")
1✔
1614
      AUTO_BODY_REPAIR_SHOPS("auto_body_repair_shops"),
1615

1616
      @SerializedName("auto_paint_shops")
1✔
1617
      AUTO_PAINT_SHOPS("auto_paint_shops"),
1618

1619
      @SerializedName("auto_service_shops")
1✔
1620
      AUTO_SERVICE_SHOPS("auto_service_shops"),
1621

1622
      @SerializedName("automated_cash_disburse")
1✔
1623
      AUTOMATED_CASH_DISBURSE("automated_cash_disburse"),
1624

1625
      @SerializedName("automated_fuel_dispensers")
1✔
1626
      AUTOMATED_FUEL_DISPENSERS("automated_fuel_dispensers"),
1627

1628
      @SerializedName("automobile_associations")
1✔
1629
      AUTOMOBILE_ASSOCIATIONS("automobile_associations"),
1630

1631
      @SerializedName("automotive_parts_and_accessories_stores")
1✔
1632
      AUTOMOTIVE_PARTS_AND_ACCESSORIES_STORES("automotive_parts_and_accessories_stores"),
1633

1634
      @SerializedName("automotive_tire_stores")
1✔
1635
      AUTOMOTIVE_TIRE_STORES("automotive_tire_stores"),
1636

1637
      @SerializedName("bail_and_bond_payments")
1✔
1638
      BAIL_AND_BOND_PAYMENTS("bail_and_bond_payments"),
1639

1640
      @SerializedName("bakeries")
1✔
1641
      BAKERIES("bakeries"),
1642

1643
      @SerializedName("bands_orchestras")
1✔
1644
      BANDS_ORCHESTRAS("bands_orchestras"),
1645

1646
      @SerializedName("barber_and_beauty_shops")
1✔
1647
      BARBER_AND_BEAUTY_SHOPS("barber_and_beauty_shops"),
1648

1649
      @SerializedName("betting_casino_gambling")
1✔
1650
      BETTING_CASINO_GAMBLING("betting_casino_gambling"),
1651

1652
      @SerializedName("bicycle_shops")
1✔
1653
      BICYCLE_SHOPS("bicycle_shops"),
1654

1655
      @SerializedName("billiard_pool_establishments")
1✔
1656
      BILLIARD_POOL_ESTABLISHMENTS("billiard_pool_establishments"),
1657

1658
      @SerializedName("boat_dealers")
1✔
1659
      BOAT_DEALERS("boat_dealers"),
1660

1661
      @SerializedName("boat_rentals_and_leases")
1✔
1662
      BOAT_RENTALS_AND_LEASES("boat_rentals_and_leases"),
1663

1664
      @SerializedName("book_stores")
1✔
1665
      BOOK_STORES("book_stores"),
1666

1667
      @SerializedName("books_periodicals_and_newspapers")
1✔
1668
      BOOKS_PERIODICALS_AND_NEWSPAPERS("books_periodicals_and_newspapers"),
1669

1670
      @SerializedName("bowling_alleys")
1✔
1671
      BOWLING_ALLEYS("bowling_alleys"),
1672

1673
      @SerializedName("bus_lines")
1✔
1674
      BUS_LINES("bus_lines"),
1675

1676
      @SerializedName("business_secretarial_schools")
1✔
1677
      BUSINESS_SECRETARIAL_SCHOOLS("business_secretarial_schools"),
1678

1679
      @SerializedName("buying_shopping_services")
1✔
1680
      BUYING_SHOPPING_SERVICES("buying_shopping_services"),
1681

1682
      @SerializedName("cable_satellite_and_other_pay_television_and_radio")
1✔
1683
      CABLE_SATELLITE_AND_OTHER_PAY_TELEVISION_AND_RADIO(
1684
          "cable_satellite_and_other_pay_television_and_radio"),
1685

1686
      @SerializedName("camera_and_photographic_supply_stores")
1✔
1687
      CAMERA_AND_PHOTOGRAPHIC_SUPPLY_STORES("camera_and_photographic_supply_stores"),
1688

1689
      @SerializedName("candy_nut_and_confectionery_stores")
1✔
1690
      CANDY_NUT_AND_CONFECTIONERY_STORES("candy_nut_and_confectionery_stores"),
1691

1692
      @SerializedName("car_and_truck_dealers_new_used")
1✔
1693
      CAR_AND_TRUCK_DEALERS_NEW_USED("car_and_truck_dealers_new_used"),
1694

1695
      @SerializedName("car_and_truck_dealers_used_only")
1✔
1696
      CAR_AND_TRUCK_DEALERS_USED_ONLY("car_and_truck_dealers_used_only"),
1697

1698
      @SerializedName("car_rental_agencies")
1✔
1699
      CAR_RENTAL_AGENCIES("car_rental_agencies"),
1700

1701
      @SerializedName("car_washes")
1✔
1702
      CAR_WASHES("car_washes"),
1703

1704
      @SerializedName("carpentry_services")
1✔
1705
      CARPENTRY_SERVICES("carpentry_services"),
1706

1707
      @SerializedName("carpet_upholstery_cleaning")
1✔
1708
      CARPET_UPHOLSTERY_CLEANING("carpet_upholstery_cleaning"),
1709

1710
      @SerializedName("caterers")
1✔
1711
      CATERERS("caterers"),
1712

1713
      @SerializedName("charitable_and_social_service_organizations_fundraising")
1✔
1714
      CHARITABLE_AND_SOCIAL_SERVICE_ORGANIZATIONS_FUNDRAISING(
1715
          "charitable_and_social_service_organizations_fundraising"),
1716

1717
      @SerializedName("chemicals_and_allied_products")
1✔
1718
      CHEMICALS_AND_ALLIED_PRODUCTS("chemicals_and_allied_products"),
1719

1720
      @SerializedName("child_care_services")
1✔
1721
      CHILD_CARE_SERVICES("child_care_services"),
1722

1723
      @SerializedName("childrens_and_infants_wear_stores")
1✔
1724
      CHILDRENS_AND_INFANTS_WEAR_STORES("childrens_and_infants_wear_stores"),
1725

1726
      @SerializedName("chiropodists_podiatrists")
1✔
1727
      CHIROPODISTS_PODIATRISTS("chiropodists_podiatrists"),
1728

1729
      @SerializedName("chiropractors")
1✔
1730
      CHIROPRACTORS("chiropractors"),
1731

1732
      @SerializedName("cigar_stores_and_stands")
1✔
1733
      CIGAR_STORES_AND_STANDS("cigar_stores_and_stands"),
1734

1735
      @SerializedName("civic_social_fraternal_associations")
1✔
1736
      CIVIC_SOCIAL_FRATERNAL_ASSOCIATIONS("civic_social_fraternal_associations"),
1737

1738
      @SerializedName("cleaning_and_maintenance")
1✔
1739
      CLEANING_AND_MAINTENANCE("cleaning_and_maintenance"),
1740

1741
      @SerializedName("clothing_rental")
1✔
1742
      CLOTHING_RENTAL("clothing_rental"),
1743

1744
      @SerializedName("colleges_universities")
1✔
1745
      COLLEGES_UNIVERSITIES("colleges_universities"),
1746

1747
      @SerializedName("commercial_equipment")
1✔
1748
      COMMERCIAL_EQUIPMENT("commercial_equipment"),
1749

1750
      @SerializedName("commercial_footwear")
1✔
1751
      COMMERCIAL_FOOTWEAR("commercial_footwear"),
1752

1753
      @SerializedName("commercial_photography_art_and_graphics")
1✔
1754
      COMMERCIAL_PHOTOGRAPHY_ART_AND_GRAPHICS("commercial_photography_art_and_graphics"),
1755

1756
      @SerializedName("commuter_transport_and_ferries")
1✔
1757
      COMMUTER_TRANSPORT_AND_FERRIES("commuter_transport_and_ferries"),
1758

1759
      @SerializedName("computer_network_services")
1✔
1760
      COMPUTER_NETWORK_SERVICES("computer_network_services"),
1761

1762
      @SerializedName("computer_programming")
1✔
1763
      COMPUTER_PROGRAMMING("computer_programming"),
1764

1765
      @SerializedName("computer_repair")
1✔
1766
      COMPUTER_REPAIR("computer_repair"),
1767

1768
      @SerializedName("computer_software_stores")
1✔
1769
      COMPUTER_SOFTWARE_STORES("computer_software_stores"),
1770

1771
      @SerializedName("computers_peripherals_and_software")
1✔
1772
      COMPUTERS_PERIPHERALS_AND_SOFTWARE("computers_peripherals_and_software"),
1773

1774
      @SerializedName("concrete_work_services")
1✔
1775
      CONCRETE_WORK_SERVICES("concrete_work_services"),
1776

1777
      @SerializedName("construction_materials")
1✔
1778
      CONSTRUCTION_MATERIALS("construction_materials"),
1779

1780
      @SerializedName("consulting_public_relations")
1✔
1781
      CONSULTING_PUBLIC_RELATIONS("consulting_public_relations"),
1782

1783
      @SerializedName("correspondence_schools")
1✔
1784
      CORRESPONDENCE_SCHOOLS("correspondence_schools"),
1785

1786
      @SerializedName("cosmetic_stores")
1✔
1787
      COSMETIC_STORES("cosmetic_stores"),
1788

1789
      @SerializedName("counseling_services")
1✔
1790
      COUNSELING_SERVICES("counseling_services"),
1791

1792
      @SerializedName("country_clubs")
1✔
1793
      COUNTRY_CLUBS("country_clubs"),
1794

1795
      @SerializedName("courier_services")
1✔
1796
      COURIER_SERVICES("courier_services"),
1797

1798
      @SerializedName("court_costs")
1✔
1799
      COURT_COSTS("court_costs"),
1800

1801
      @SerializedName("credit_reporting_agencies")
1✔
1802
      CREDIT_REPORTING_AGENCIES("credit_reporting_agencies"),
1803

1804
      @SerializedName("cruise_lines")
1✔
1805
      CRUISE_LINES("cruise_lines"),
1806

1807
      @SerializedName("dairy_products_stores")
1✔
1808
      DAIRY_PRODUCTS_STORES("dairy_products_stores"),
1809

1810
      @SerializedName("dance_hall_studios_schools")
1✔
1811
      DANCE_HALL_STUDIOS_SCHOOLS("dance_hall_studios_schools"),
1812

1813
      @SerializedName("dating_escort_services")
1✔
1814
      DATING_ESCORT_SERVICES("dating_escort_services"),
1815

1816
      @SerializedName("dentists_orthodontists")
1✔
1817
      DENTISTS_ORTHODONTISTS("dentists_orthodontists"),
1818

1819
      @SerializedName("department_stores")
1✔
1820
      DEPARTMENT_STORES("department_stores"),
1821

1822
      @SerializedName("detective_agencies")
1✔
1823
      DETECTIVE_AGENCIES("detective_agencies"),
1824

1825
      @SerializedName("digital_goods_applications")
1✔
1826
      DIGITAL_GOODS_APPLICATIONS("digital_goods_applications"),
1827

1828
      @SerializedName("digital_goods_games")
1✔
1829
      DIGITAL_GOODS_GAMES("digital_goods_games"),
1830

1831
      @SerializedName("digital_goods_large_volume")
1✔
1832
      DIGITAL_GOODS_LARGE_VOLUME("digital_goods_large_volume"),
1833

1834
      @SerializedName("digital_goods_media")
1✔
1835
      DIGITAL_GOODS_MEDIA("digital_goods_media"),
1836

1837
      @SerializedName("direct_marketing_catalog_merchant")
1✔
1838
      DIRECT_MARKETING_CATALOG_MERCHANT("direct_marketing_catalog_merchant"),
1839

1840
      @SerializedName("direct_marketing_combination_catalog_and_retail_merchant")
1✔
1841
      DIRECT_MARKETING_COMBINATION_CATALOG_AND_RETAIL_MERCHANT(
1842
          "direct_marketing_combination_catalog_and_retail_merchant"),
1843

1844
      @SerializedName("direct_marketing_inbound_telemarketing")
1✔
1845
      DIRECT_MARKETING_INBOUND_TELEMARKETING("direct_marketing_inbound_telemarketing"),
1846

1847
      @SerializedName("direct_marketing_insurance_services")
1✔
1848
      DIRECT_MARKETING_INSURANCE_SERVICES("direct_marketing_insurance_services"),
1849

1850
      @SerializedName("direct_marketing_other")
1✔
1851
      DIRECT_MARKETING_OTHER("direct_marketing_other"),
1852

1853
      @SerializedName("direct_marketing_outbound_telemarketing")
1✔
1854
      DIRECT_MARKETING_OUTBOUND_TELEMARKETING("direct_marketing_outbound_telemarketing"),
1855

1856
      @SerializedName("direct_marketing_subscription")
1✔
1857
      DIRECT_MARKETING_SUBSCRIPTION("direct_marketing_subscription"),
1858

1859
      @SerializedName("direct_marketing_travel")
1✔
1860
      DIRECT_MARKETING_TRAVEL("direct_marketing_travel"),
1861

1862
      @SerializedName("discount_stores")
1✔
1863
      DISCOUNT_STORES("discount_stores"),
1864

1865
      @SerializedName("doctors")
1✔
1866
      DOCTORS("doctors"),
1867

1868
      @SerializedName("door_to_door_sales")
1✔
1869
      DOOR_TO_DOOR_SALES("door_to_door_sales"),
1870

1871
      @SerializedName("drapery_window_covering_and_upholstery_stores")
1✔
1872
      DRAPERY_WINDOW_COVERING_AND_UPHOLSTERY_STORES(
1873
          "drapery_window_covering_and_upholstery_stores"),
1874

1875
      @SerializedName("drinking_places")
1✔
1876
      DRINKING_PLACES("drinking_places"),
1877

1878
      @SerializedName("drug_stores_and_pharmacies")
1✔
1879
      DRUG_STORES_AND_PHARMACIES("drug_stores_and_pharmacies"),
1880

1881
      @SerializedName("drugs_drug_proprietaries_and_druggist_sundries")
1✔
1882
      DRUGS_DRUG_PROPRIETARIES_AND_DRUGGIST_SUNDRIES(
1883
          "drugs_drug_proprietaries_and_druggist_sundries"),
1884

1885
      @SerializedName("dry_cleaners")
1✔
1886
      DRY_CLEANERS("dry_cleaners"),
1887

1888
      @SerializedName("durable_goods")
1✔
1889
      DURABLE_GOODS("durable_goods"),
1890

1891
      @SerializedName("duty_free_stores")
1✔
1892
      DUTY_FREE_STORES("duty_free_stores"),
1893

1894
      @SerializedName("eating_places_restaurants")
1✔
1895
      EATING_PLACES_RESTAURANTS("eating_places_restaurants"),
1896

1897
      @SerializedName("educational_services")
1✔
1898
      EDUCATIONAL_SERVICES("educational_services"),
1899

1900
      @SerializedName("electric_razor_stores")
1✔
1901
      ELECTRIC_RAZOR_STORES("electric_razor_stores"),
1902

1903
      @SerializedName("electric_vehicle_charging")
1✔
1904
      ELECTRIC_VEHICLE_CHARGING("electric_vehicle_charging"),
1905

1906
      @SerializedName("electrical_parts_and_equipment")
1✔
1907
      ELECTRICAL_PARTS_AND_EQUIPMENT("electrical_parts_and_equipment"),
1908

1909
      @SerializedName("electrical_services")
1✔
1910
      ELECTRICAL_SERVICES("electrical_services"),
1911

1912
      @SerializedName("electronics_repair_shops")
1✔
1913
      ELECTRONICS_REPAIR_SHOPS("electronics_repair_shops"),
1914

1915
      @SerializedName("electronics_stores")
1✔
1916
      ELECTRONICS_STORES("electronics_stores"),
1917

1918
      @SerializedName("elementary_secondary_schools")
1✔
1919
      ELEMENTARY_SECONDARY_SCHOOLS("elementary_secondary_schools"),
1920

1921
      @SerializedName("emergency_services_gcas_visa_use_only")
1✔
1922
      EMERGENCY_SERVICES_GCAS_VISA_USE_ONLY("emergency_services_gcas_visa_use_only"),
1923

1924
      @SerializedName("employment_temp_agencies")
1✔
1925
      EMPLOYMENT_TEMP_AGENCIES("employment_temp_agencies"),
1926

1927
      @SerializedName("equipment_rental")
1✔
1928
      EQUIPMENT_RENTAL("equipment_rental"),
1929

1930
      @SerializedName("exterminating_services")
1✔
1931
      EXTERMINATING_SERVICES("exterminating_services"),
1932

1933
      @SerializedName("family_clothing_stores")
1✔
1934
      FAMILY_CLOTHING_STORES("family_clothing_stores"),
1935

1936
      @SerializedName("fast_food_restaurants")
1✔
1937
      FAST_FOOD_RESTAURANTS("fast_food_restaurants"),
1938

1939
      @SerializedName("financial_institutions")
1✔
1940
      FINANCIAL_INSTITUTIONS("financial_institutions"),
1941

1942
      @SerializedName("fines_government_administrative_entities")
1✔
1943
      FINES_GOVERNMENT_ADMINISTRATIVE_ENTITIES("fines_government_administrative_entities"),
1944

1945
      @SerializedName("fireplace_fireplace_screens_and_accessories_stores")
1✔
1946
      FIREPLACE_FIREPLACE_SCREENS_AND_ACCESSORIES_STORES(
1947
          "fireplace_fireplace_screens_and_accessories_stores"),
1948

1949
      @SerializedName("floor_covering_stores")
1✔
1950
      FLOOR_COVERING_STORES("floor_covering_stores"),
1951

1952
      @SerializedName("florists")
1✔
1953
      FLORISTS("florists"),
1954

1955
      @SerializedName("florists_supplies_nursery_stock_and_flowers")
1✔
1956
      FLORISTS_SUPPLIES_NURSERY_STOCK_AND_FLOWERS("florists_supplies_nursery_stock_and_flowers"),
1957

1958
      @SerializedName("freezer_and_locker_meat_provisioners")
1✔
1959
      FREEZER_AND_LOCKER_MEAT_PROVISIONERS("freezer_and_locker_meat_provisioners"),
1960

1961
      @SerializedName("fuel_dealers_non_automotive")
1✔
1962
      FUEL_DEALERS_NON_AUTOMOTIVE("fuel_dealers_non_automotive"),
1963

1964
      @SerializedName("funeral_services_crematories")
1✔
1965
      FUNERAL_SERVICES_CREMATORIES("funeral_services_crematories"),
1966

1967
      @SerializedName("furniture_home_furnishings_and_equipment_stores_except_appliances")
1✔
1968
      FURNITURE_HOME_FURNISHINGS_AND_EQUIPMENT_STORES_EXCEPT_APPLIANCES(
1969
          "furniture_home_furnishings_and_equipment_stores_except_appliances"),
1970

1971
      @SerializedName("furniture_repair_refinishing")
1✔
1972
      FURNITURE_REPAIR_REFINISHING("furniture_repair_refinishing"),
1973

1974
      @SerializedName("furriers_and_fur_shops")
1✔
1975
      FURRIERS_AND_FUR_SHOPS("furriers_and_fur_shops"),
1976

1977
      @SerializedName("general_services")
1✔
1978
      GENERAL_SERVICES("general_services"),
1979

1980
      @SerializedName("gift_card_novelty_and_souvenir_shops")
1✔
1981
      GIFT_CARD_NOVELTY_AND_SOUVENIR_SHOPS("gift_card_novelty_and_souvenir_shops"),
1982

1983
      @SerializedName("glass_paint_and_wallpaper_stores")
1✔
1984
      GLASS_PAINT_AND_WALLPAPER_STORES("glass_paint_and_wallpaper_stores"),
1985

1986
      @SerializedName("glassware_crystal_stores")
1✔
1987
      GLASSWARE_CRYSTAL_STORES("glassware_crystal_stores"),
1988

1989
      @SerializedName("golf_courses_public")
1✔
1990
      GOLF_COURSES_PUBLIC("golf_courses_public"),
1991

1992
      @SerializedName("government_licensed_horse_dog_racing_us_region_only")
1✔
1993
      GOVERNMENT_LICENSED_HORSE_DOG_RACING_US_REGION_ONLY(
1994
          "government_licensed_horse_dog_racing_us_region_only"),
1995

1996
      @SerializedName("government_licensed_online_casions_online_gambling_us_region_only")
1✔
1997
      GOVERNMENT_LICENSED_ONLINE_CASIONS_ONLINE_GAMBLING_US_REGION_ONLY(
1998
          "government_licensed_online_casions_online_gambling_us_region_only"),
1999

2000
      @SerializedName("government_owned_lotteries_non_us_region")
1✔
2001
      GOVERNMENT_OWNED_LOTTERIES_NON_US_REGION("government_owned_lotteries_non_us_region"),
2002

2003
      @SerializedName("government_owned_lotteries_us_region_only")
1✔
2004
      GOVERNMENT_OWNED_LOTTERIES_US_REGION_ONLY("government_owned_lotteries_us_region_only"),
2005

2006
      @SerializedName("government_services")
1✔
2007
      GOVERNMENT_SERVICES("government_services"),
2008

2009
      @SerializedName("grocery_stores_supermarkets")
1✔
2010
      GROCERY_STORES_SUPERMARKETS("grocery_stores_supermarkets"),
2011

2012
      @SerializedName("hardware_equipment_and_supplies")
1✔
2013
      HARDWARE_EQUIPMENT_AND_SUPPLIES("hardware_equipment_and_supplies"),
2014

2015
      @SerializedName("hardware_stores")
1✔
2016
      HARDWARE_STORES("hardware_stores"),
2017

2018
      @SerializedName("health_and_beauty_spas")
1✔
2019
      HEALTH_AND_BEAUTY_SPAS("health_and_beauty_spas"),
2020

2021
      @SerializedName("hearing_aids_sales_and_supplies")
1✔
2022
      HEARING_AIDS_SALES_AND_SUPPLIES("hearing_aids_sales_and_supplies"),
2023

2024
      @SerializedName("heating_plumbing_a_c")
1✔
2025
      HEATING_PLUMBING_A_C("heating_plumbing_a_c"),
2026

2027
      @SerializedName("hobby_toy_and_game_shops")
1✔
2028
      HOBBY_TOY_AND_GAME_SHOPS("hobby_toy_and_game_shops"),
2029

2030
      @SerializedName("home_supply_warehouse_stores")
1✔
2031
      HOME_SUPPLY_WAREHOUSE_STORES("home_supply_warehouse_stores"),
2032

2033
      @SerializedName("hospitals")
1✔
2034
      HOSPITALS("hospitals"),
2035

2036
      @SerializedName("hotels_motels_and_resorts")
1✔
2037
      HOTELS_MOTELS_AND_RESORTS("hotels_motels_and_resorts"),
2038

2039
      @SerializedName("household_appliance_stores")
1✔
2040
      HOUSEHOLD_APPLIANCE_STORES("household_appliance_stores"),
2041

2042
      @SerializedName("industrial_supplies")
1✔
2043
      INDUSTRIAL_SUPPLIES("industrial_supplies"),
2044

2045
      @SerializedName("information_retrieval_services")
1✔
2046
      INFORMATION_RETRIEVAL_SERVICES("information_retrieval_services"),
2047

2048
      @SerializedName("insurance_default")
1✔
2049
      INSURANCE_DEFAULT("insurance_default"),
2050

2051
      @SerializedName("insurance_underwriting_premiums")
1✔
2052
      INSURANCE_UNDERWRITING_PREMIUMS("insurance_underwriting_premiums"),
2053

2054
      @SerializedName("intra_company_purchases")
1✔
2055
      INTRA_COMPANY_PURCHASES("intra_company_purchases"),
2056

2057
      @SerializedName("jewelry_stores_watches_clocks_and_silverware_stores")
1✔
2058
      JEWELRY_STORES_WATCHES_CLOCKS_AND_SILVERWARE_STORES(
2059
          "jewelry_stores_watches_clocks_and_silverware_stores"),
2060

2061
      @SerializedName("landscaping_services")
1✔
2062
      LANDSCAPING_SERVICES("landscaping_services"),
2063

2064
      @SerializedName("laundries")
1✔
2065
      LAUNDRIES("laundries"),
2066

2067
      @SerializedName("laundry_cleaning_services")
1✔
2068
      LAUNDRY_CLEANING_SERVICES("laundry_cleaning_services"),
2069

2070
      @SerializedName("legal_services_attorneys")
1✔
2071
      LEGAL_SERVICES_ATTORNEYS("legal_services_attorneys"),
2072

2073
      @SerializedName("luggage_and_leather_goods_stores")
1✔
2074
      LUGGAGE_AND_LEATHER_GOODS_STORES("luggage_and_leather_goods_stores"),
2075

2076
      @SerializedName("lumber_building_materials_stores")
1✔
2077
      LUMBER_BUILDING_MATERIALS_STORES("lumber_building_materials_stores"),
2078

2079
      @SerializedName("manual_cash_disburse")
1✔
2080
      MANUAL_CASH_DISBURSE("manual_cash_disburse"),
2081

2082
      @SerializedName("marinas_service_and_supplies")
1✔
2083
      MARINAS_SERVICE_AND_SUPPLIES("marinas_service_and_supplies"),
2084

2085
      @SerializedName("marketplaces")
1✔
2086
      MARKETPLACES("marketplaces"),
2087

2088
      @SerializedName("masonry_stonework_and_plaster")
1✔
2089
      MASONRY_STONEWORK_AND_PLASTER("masonry_stonework_and_plaster"),
2090

2091
      @SerializedName("massage_parlors")
1✔
2092
      MASSAGE_PARLORS("massage_parlors"),
2093

2094
      @SerializedName("medical_and_dental_labs")
1✔
2095
      MEDICAL_AND_DENTAL_LABS("medical_and_dental_labs"),
2096

2097
      @SerializedName("medical_dental_ophthalmic_and_hospital_equipment_and_supplies")
1✔
2098
      MEDICAL_DENTAL_OPHTHALMIC_AND_HOSPITAL_EQUIPMENT_AND_SUPPLIES(
2099
          "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"),
2100

2101
      @SerializedName("medical_services")
1✔
2102
      MEDICAL_SERVICES("medical_services"),
2103

2104
      @SerializedName("membership_organizations")
1✔
2105
      MEMBERSHIP_ORGANIZATIONS("membership_organizations"),
2106

2107
      @SerializedName("mens_and_boys_clothing_and_accessories_stores")
1✔
2108
      MENS_AND_BOYS_CLOTHING_AND_ACCESSORIES_STORES(
2109
          "mens_and_boys_clothing_and_accessories_stores"),
2110

2111
      @SerializedName("mens_womens_clothing_stores")
1✔
2112
      MENS_WOMENS_CLOTHING_STORES("mens_womens_clothing_stores"),
2113

2114
      @SerializedName("metal_service_centers")
1✔
2115
      METAL_SERVICE_CENTERS("metal_service_centers"),
2116

2117
      @SerializedName("miscellaneous_apparel_and_accessory_shops")
1✔
2118
      MISCELLANEOUS_APPAREL_AND_ACCESSORY_SHOPS("miscellaneous_apparel_and_accessory_shops"),
2119

2120
      @SerializedName("miscellaneous_auto_dealers")
1✔
2121
      MISCELLANEOUS_AUTO_DEALERS("miscellaneous_auto_dealers"),
2122

2123
      @SerializedName("miscellaneous_business_services")
1✔
2124
      MISCELLANEOUS_BUSINESS_SERVICES("miscellaneous_business_services"),
2125

2126
      @SerializedName("miscellaneous_food_stores")
1✔
2127
      MISCELLANEOUS_FOOD_STORES("miscellaneous_food_stores"),
2128

2129
      @SerializedName("miscellaneous_general_merchandise")
1✔
2130
      MISCELLANEOUS_GENERAL_MERCHANDISE("miscellaneous_general_merchandise"),
2131

2132
      @SerializedName("miscellaneous_general_services")
1✔
2133
      MISCELLANEOUS_GENERAL_SERVICES("miscellaneous_general_services"),
2134

2135
      @SerializedName("miscellaneous_home_furnishing_specialty_stores")
1✔
2136
      MISCELLANEOUS_HOME_FURNISHING_SPECIALTY_STORES(
2137
          "miscellaneous_home_furnishing_specialty_stores"),
2138

2139
      @SerializedName("miscellaneous_publishing_and_printing")
1✔
2140
      MISCELLANEOUS_PUBLISHING_AND_PRINTING("miscellaneous_publishing_and_printing"),
2141

2142
      @SerializedName("miscellaneous_recreation_services")
1✔
2143
      MISCELLANEOUS_RECREATION_SERVICES("miscellaneous_recreation_services"),
2144

2145
      @SerializedName("miscellaneous_repair_shops")
1✔
2146
      MISCELLANEOUS_REPAIR_SHOPS("miscellaneous_repair_shops"),
2147

2148
      @SerializedName("miscellaneous_specialty_retail")
1✔
2149
      MISCELLANEOUS_SPECIALTY_RETAIL("miscellaneous_specialty_retail"),
2150

2151
      @SerializedName("mobile_home_dealers")
1✔
2152
      MOBILE_HOME_DEALERS("mobile_home_dealers"),
2153

2154
      @SerializedName("motion_picture_theaters")
1✔
2155
      MOTION_PICTURE_THEATERS("motion_picture_theaters"),
2156

2157
      @SerializedName("motor_freight_carriers_and_trucking")
1✔
2158
      MOTOR_FREIGHT_CARRIERS_AND_TRUCKING("motor_freight_carriers_and_trucking"),
2159

2160
      @SerializedName("motor_homes_dealers")
1✔
2161
      MOTOR_HOMES_DEALERS("motor_homes_dealers"),
2162

2163
      @SerializedName("motor_vehicle_supplies_and_new_parts")
1✔
2164
      MOTOR_VEHICLE_SUPPLIES_AND_NEW_PARTS("motor_vehicle_supplies_and_new_parts"),
2165

2166
      @SerializedName("motorcycle_shops_and_dealers")
1✔
2167
      MOTORCYCLE_SHOPS_AND_DEALERS("motorcycle_shops_and_dealers"),
2168

2169
      @SerializedName("motorcycle_shops_dealers")
1✔
2170
      MOTORCYCLE_SHOPS_DEALERS("motorcycle_shops_dealers"),
2171

2172
      @SerializedName("music_stores_musical_instruments_pianos_and_sheet_music")
1✔
2173
      MUSIC_STORES_MUSICAL_INSTRUMENTS_PIANOS_AND_SHEET_MUSIC(
2174
          "music_stores_musical_instruments_pianos_and_sheet_music"),
2175

2176
      @SerializedName("news_dealers_and_newsstands")
1✔
2177
      NEWS_DEALERS_AND_NEWSSTANDS("news_dealers_and_newsstands"),
2178

2179
      @SerializedName("non_fi_money_orders")
1✔
2180
      NON_FI_MONEY_ORDERS("non_fi_money_orders"),
2181

2182
      @SerializedName("non_fi_stored_value_card_purchase_load")
1✔
2183
      NON_FI_STORED_VALUE_CARD_PURCHASE_LOAD("non_fi_stored_value_card_purchase_load"),
2184

2185
      @SerializedName("nondurable_goods")
1✔
2186
      NONDURABLE_GOODS("nondurable_goods"),
2187

2188
      @SerializedName("nurseries_lawn_and_garden_supply_stores")
1✔
2189
      NURSERIES_LAWN_AND_GARDEN_SUPPLY_STORES("nurseries_lawn_and_garden_supply_stores"),
2190

2191
      @SerializedName("nursing_personal_care")
1✔
2192
      NURSING_PERSONAL_CARE("nursing_personal_care"),
2193

2194
      @SerializedName("office_and_commercial_furniture")
1✔
2195
      OFFICE_AND_COMMERCIAL_FURNITURE("office_and_commercial_furniture"),
2196

2197
      @SerializedName("opticians_eyeglasses")
1✔
2198
      OPTICIANS_EYEGLASSES("opticians_eyeglasses"),
2199

2200
      @SerializedName("optometrists_ophthalmologist")
1✔
2201
      OPTOMETRISTS_OPHTHALMOLOGIST("optometrists_ophthalmologist"),
2202

2203
      @SerializedName("orthopedic_goods_prosthetic_devices")
1✔
2204
      ORTHOPEDIC_GOODS_PROSTHETIC_DEVICES("orthopedic_goods_prosthetic_devices"),
2205

2206
      @SerializedName("osteopaths")
1✔
2207
      OSTEOPATHS("osteopaths"),
2208

2209
      @SerializedName("package_stores_beer_wine_and_liquor")
1✔
2210
      PACKAGE_STORES_BEER_WINE_AND_LIQUOR("package_stores_beer_wine_and_liquor"),
2211

2212
      @SerializedName("paints_varnishes_and_supplies")
1✔
2213
      PAINTS_VARNISHES_AND_SUPPLIES("paints_varnishes_and_supplies"),
2214

2215
      @SerializedName("parking_lots_garages")
1✔
2216
      PARKING_LOTS_GARAGES("parking_lots_garages"),
2217

2218
      @SerializedName("passenger_railways")
1✔
2219
      PASSENGER_RAILWAYS("passenger_railways"),
2220

2221
      @SerializedName("pawn_shops")
1✔
2222
      PAWN_SHOPS("pawn_shops"),
2223

2224
      @SerializedName("pet_shops_pet_food_and_supplies")
1✔
2225
      PET_SHOPS_PET_FOOD_AND_SUPPLIES("pet_shops_pet_food_and_supplies"),
2226

2227
      @SerializedName("petroleum_and_petroleum_products")
1✔
2228
      PETROLEUM_AND_PETROLEUM_PRODUCTS("petroleum_and_petroleum_products"),
2229

2230
      @SerializedName("photo_developing")
1✔
2231
      PHOTO_DEVELOPING("photo_developing"),
2232

2233
      @SerializedName("photographic_photocopy_microfilm_equipment_and_supplies")
1✔
2234
      PHOTOGRAPHIC_PHOTOCOPY_MICROFILM_EQUIPMENT_AND_SUPPLIES(
2235
          "photographic_photocopy_microfilm_equipment_and_supplies"),
2236

2237
      @SerializedName("photographic_studios")
1✔
2238
      PHOTOGRAPHIC_STUDIOS("photographic_studios"),
2239

2240
      @SerializedName("picture_video_production")
1✔
2241
      PICTURE_VIDEO_PRODUCTION("picture_video_production"),
2242

2243
      @SerializedName("piece_goods_notions_and_other_dry_goods")
1✔
2244
      PIECE_GOODS_NOTIONS_AND_OTHER_DRY_GOODS("piece_goods_notions_and_other_dry_goods"),
2245

2246
      @SerializedName("plumbing_heating_equipment_and_supplies")
1✔
2247
      PLUMBING_HEATING_EQUIPMENT_AND_SUPPLIES("plumbing_heating_equipment_and_supplies"),
2248

2249
      @SerializedName("political_organizations")
1✔
2250
      POLITICAL_ORGANIZATIONS("political_organizations"),
2251

2252
      @SerializedName("postal_services_government_only")
1✔
2253
      POSTAL_SERVICES_GOVERNMENT_ONLY("postal_services_government_only"),
2254

2255
      @SerializedName("precious_stones_and_metals_watches_and_jewelry")
1✔
2256
      PRECIOUS_STONES_AND_METALS_WATCHES_AND_JEWELRY(
2257
          "precious_stones_and_metals_watches_and_jewelry"),
2258

2259
      @SerializedName("professional_services")
1✔
2260
      PROFESSIONAL_SERVICES("professional_services"),
2261

2262
      @SerializedName("public_warehousing_and_storage")
1✔
2263
      PUBLIC_WAREHOUSING_AND_STORAGE("public_warehousing_and_storage"),
2264

2265
      @SerializedName("quick_copy_repro_and_blueprint")
1✔
2266
      QUICK_COPY_REPRO_AND_BLUEPRINT("quick_copy_repro_and_blueprint"),
2267

2268
      @SerializedName("railroads")
1✔
2269
      RAILROADS("railroads"),
2270

2271
      @SerializedName("real_estate_agents_and_managers_rentals")
1✔
2272
      REAL_ESTATE_AGENTS_AND_MANAGERS_RENTALS("real_estate_agents_and_managers_rentals"),
2273

2274
      @SerializedName("record_stores")
1✔
2275
      RECORD_STORES("record_stores"),
2276

2277
      @SerializedName("recreational_vehicle_rentals")
1✔
2278
      RECREATIONAL_VEHICLE_RENTALS("recreational_vehicle_rentals"),
2279

2280
      @SerializedName("religious_goods_stores")
1✔
2281
      RELIGIOUS_GOODS_STORES("religious_goods_stores"),
2282

2283
      @SerializedName("religious_organizations")
1✔
2284
      RELIGIOUS_ORGANIZATIONS("religious_organizations"),
2285

2286
      @SerializedName("roofing_siding_sheet_metal")
1✔
2287
      ROOFING_SIDING_SHEET_METAL("roofing_siding_sheet_metal"),
2288

2289
      @SerializedName("secretarial_support_services")
1✔
2290
      SECRETARIAL_SUPPORT_SERVICES("secretarial_support_services"),
2291

2292
      @SerializedName("security_brokers_dealers")
1✔
2293
      SECURITY_BROKERS_DEALERS("security_brokers_dealers"),
2294

2295
      @SerializedName("service_stations")
1✔
2296
      SERVICE_STATIONS("service_stations"),
2297

2298
      @SerializedName("sewing_needlework_fabric_and_piece_goods_stores")
1✔
2299
      SEWING_NEEDLEWORK_FABRIC_AND_PIECE_GOODS_STORES(
2300
          "sewing_needlework_fabric_and_piece_goods_stores"),
2301

2302
      @SerializedName("shoe_repair_hat_cleaning")
1✔
2303
      SHOE_REPAIR_HAT_CLEANING("shoe_repair_hat_cleaning"),
2304

2305
      @SerializedName("shoe_stores")
1✔
2306
      SHOE_STORES("shoe_stores"),
2307

2308
      @SerializedName("small_appliance_repair")
1✔
2309
      SMALL_APPLIANCE_REPAIR("small_appliance_repair"),
2310

2311
      @SerializedName("snowmobile_dealers")
1✔
2312
      SNOWMOBILE_DEALERS("snowmobile_dealers"),
2313

2314
      @SerializedName("special_trade_services")
1✔
2315
      SPECIAL_TRADE_SERVICES("special_trade_services"),
2316

2317
      @SerializedName("specialty_cleaning")
1✔
2318
      SPECIALTY_CLEANING("specialty_cleaning"),
2319

2320
      @SerializedName("sporting_goods_stores")
1✔
2321
      SPORTING_GOODS_STORES("sporting_goods_stores"),
2322

2323
      @SerializedName("sporting_recreation_camps")
1✔
2324
      SPORTING_RECREATION_CAMPS("sporting_recreation_camps"),
2325

2326
      @SerializedName("sports_and_riding_apparel_stores")
1✔
2327
      SPORTS_AND_RIDING_APPAREL_STORES("sports_and_riding_apparel_stores"),
2328

2329
      @SerializedName("sports_clubs_fields")
1✔
2330
      SPORTS_CLUBS_FIELDS("sports_clubs_fields"),
2331

2332
      @SerializedName("stamp_and_coin_stores")
1✔
2333
      STAMP_AND_COIN_STORES("stamp_and_coin_stores"),
2334

2335
      @SerializedName("stationary_office_supplies_printing_and_writing_paper")
1✔
2336
      STATIONARY_OFFICE_SUPPLIES_PRINTING_AND_WRITING_PAPER(
2337
          "stationary_office_supplies_printing_and_writing_paper"),
2338

2339
      @SerializedName("stationery_stores_office_and_school_supply_stores")
1✔
2340
      STATIONERY_STORES_OFFICE_AND_SCHOOL_SUPPLY_STORES(
2341
          "stationery_stores_office_and_school_supply_stores"),
2342

2343
      @SerializedName("swimming_pools_sales")
1✔
2344
      SWIMMING_POOLS_SALES("swimming_pools_sales"),
2345

2346
      @SerializedName("t_ui_travel_germany")
1✔
2347
      T_UI_TRAVEL_GERMANY("t_ui_travel_germany"),
2348

2349
      @SerializedName("tailors_alterations")
1✔
2350
      TAILORS_ALTERATIONS("tailors_alterations"),
2351

2352
      @SerializedName("tax_payments_government_agencies")
1✔
2353
      TAX_PAYMENTS_GOVERNMENT_AGENCIES("tax_payments_government_agencies"),
2354

2355
      @SerializedName("tax_preparation_services")
1✔
2356
      TAX_PREPARATION_SERVICES("tax_preparation_services"),
2357

2358
      @SerializedName("taxicabs_limousines")
1✔
2359
      TAXICABS_LIMOUSINES("taxicabs_limousines"),
2360

2361
      @SerializedName("telecommunication_equipment_and_telephone_sales")
1✔
2362
      TELECOMMUNICATION_EQUIPMENT_AND_TELEPHONE_SALES(
2363
          "telecommunication_equipment_and_telephone_sales"),
2364

2365
      @SerializedName("telecommunication_services")
1✔
2366
      TELECOMMUNICATION_SERVICES("telecommunication_services"),
2367

2368
      @SerializedName("telegraph_services")
1✔
2369
      TELEGRAPH_SERVICES("telegraph_services"),
2370

2371
      @SerializedName("tent_and_awning_shops")
1✔
2372
      TENT_AND_AWNING_SHOPS("tent_and_awning_shops"),
2373

2374
      @SerializedName("testing_laboratories")
1✔
2375
      TESTING_LABORATORIES("testing_laboratories"),
2376

2377
      @SerializedName("theatrical_ticket_agencies")
1✔
2378
      THEATRICAL_TICKET_AGENCIES("theatrical_ticket_agencies"),
2379

2380
      @SerializedName("timeshares")
1✔
2381
      TIMESHARES("timeshares"),
2382

2383
      @SerializedName("tire_retreading_and_repair")
1✔
2384
      TIRE_RETREADING_AND_REPAIR("tire_retreading_and_repair"),
2385

2386
      @SerializedName("tolls_bridge_fees")
1✔
2387
      TOLLS_BRIDGE_FEES("tolls_bridge_fees"),
2388

2389
      @SerializedName("tourist_attractions_and_exhibits")
1✔
2390
      TOURIST_ATTRACTIONS_AND_EXHIBITS("tourist_attractions_and_exhibits"),
2391

2392
      @SerializedName("towing_services")
1✔
2393
      TOWING_SERVICES("towing_services"),
2394

2395
      @SerializedName("trailer_parks_campgrounds")
1✔
2396
      TRAILER_PARKS_CAMPGROUNDS("trailer_parks_campgrounds"),
2397

2398
      @SerializedName("transportation_services")
1✔
2399
      TRANSPORTATION_SERVICES("transportation_services"),
2400

2401
      @SerializedName("travel_agencies_tour_operators")
1✔
2402
      TRAVEL_AGENCIES_TOUR_OPERATORS("travel_agencies_tour_operators"),
2403

2404
      @SerializedName("truck_stop_iteration")
1✔
2405
      TRUCK_STOP_ITERATION("truck_stop_iteration"),
2406

2407
      @SerializedName("truck_utility_trailer_rentals")
1✔
2408
      TRUCK_UTILITY_TRAILER_RENTALS("truck_utility_trailer_rentals"),
2409

2410
      @SerializedName("typesetting_plate_making_and_related_services")
1✔
2411
      TYPESETTING_PLATE_MAKING_AND_RELATED_SERVICES(
2412
          "typesetting_plate_making_and_related_services"),
2413

2414
      @SerializedName("typewriter_stores")
1✔
2415
      TYPEWRITER_STORES("typewriter_stores"),
2416

2417
      @SerializedName("u_s_federal_government_agencies_or_departments")
1✔
2418
      U_S_FEDERAL_GOVERNMENT_AGENCIES_OR_DEPARTMENTS(
2419
          "u_s_federal_government_agencies_or_departments"),
2420

2421
      @SerializedName("uniforms_commercial_clothing")
1✔
2422
      UNIFORMS_COMMERCIAL_CLOTHING("uniforms_commercial_clothing"),
2423

2424
      @SerializedName("used_merchandise_and_secondhand_stores")
1✔
2425
      USED_MERCHANDISE_AND_SECONDHAND_STORES("used_merchandise_and_secondhand_stores"),
2426

2427
      @SerializedName("utilities")
1✔
2428
      UTILITIES("utilities"),
2429

2430
      @SerializedName("variety_stores")
1✔
2431
      VARIETY_STORES("variety_stores"),
2432

2433
      @SerializedName("veterinary_services")
1✔
2434
      VETERINARY_SERVICES("veterinary_services"),
2435

2436
      @SerializedName("video_amusement_game_supplies")
1✔
2437
      VIDEO_AMUSEMENT_GAME_SUPPLIES("video_amusement_game_supplies"),
2438

2439
      @SerializedName("video_game_arcades")
1✔
2440
      VIDEO_GAME_ARCADES("video_game_arcades"),
2441

2442
      @SerializedName("video_tape_rental_stores")
1✔
2443
      VIDEO_TAPE_RENTAL_STORES("video_tape_rental_stores"),
2444

2445
      @SerializedName("vocational_trade_schools")
1✔
2446
      VOCATIONAL_TRADE_SCHOOLS("vocational_trade_schools"),
2447

2448
      @SerializedName("watch_jewelry_repair")
1✔
2449
      WATCH_JEWELRY_REPAIR("watch_jewelry_repair"),
2450

2451
      @SerializedName("welding_repair")
1✔
2452
      WELDING_REPAIR("welding_repair"),
2453

2454
      @SerializedName("wholesale_clubs")
1✔
2455
      WHOLESALE_CLUBS("wholesale_clubs"),
2456

2457
      @SerializedName("wig_and_toupee_stores")
1✔
2458
      WIG_AND_TOUPEE_STORES("wig_and_toupee_stores"),
2459

2460
      @SerializedName("wires_money_orders")
1✔
2461
      WIRES_MONEY_ORDERS("wires_money_orders"),
2462

2463
      @SerializedName("womens_accessory_and_specialty_shops")
1✔
2464
      WOMENS_ACCESSORY_AND_SPECIALTY_SHOPS("womens_accessory_and_specialty_shops"),
2465

2466
      @SerializedName("womens_ready_to_wear_stores")
1✔
2467
      WOMENS_READY_TO_WEAR_STORES("womens_ready_to_wear_stores"),
2468

2469
      @SerializedName("wrecking_and_salvage_yards")
1✔
2470
      WRECKING_AND_SALVAGE_YARDS("wrecking_and_salvage_yards");
2471

2472
      @Getter(onMethod_ = {@Override})
2473
      private final String value;
2474

2475
      Category(String value) {
1✔
2476
        this.value = value;
1✔
2477
      }
1✔
2478
    }
2479
  }
2480

2481
  @Getter
2482
  public static class NetworkData {
2483
    /** Identifier assigned to the acquirer by the card network. */
2484
    @SerializedName("acquiring_institution_id")
2485
    String acquiringInstitutionId;
2486

2487
    /**
2488
     * Map of extra parameters for custom features not available in this client library. The content
2489
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
2490
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
2491
     * param object. Effectively, this map is flattened to its parent instance.
2492
     */
2493
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2494
    Map<String, Object> extraParams;
2495

2496
    private NetworkData(String acquiringInstitutionId, Map<String, Object> extraParams) {
1✔
2497
      this.acquiringInstitutionId = acquiringInstitutionId;
1✔
2498
      this.extraParams = extraParams;
1✔
2499
    }
1✔
2500

2501
    public static Builder builder() {
2502
      return new Builder();
1✔
2503
    }
2504

2505
    public static class Builder {
1✔
2506
      private String acquiringInstitutionId;
2507

2508
      private Map<String, Object> extraParams;
2509

2510
      /** Finalize and obtain parameter instance from this builder. */
2511
      public AuthorizationCreateParams.NetworkData build() {
2512
        return new AuthorizationCreateParams.NetworkData(
1✔
2513
            this.acquiringInstitutionId, this.extraParams);
2514
      }
2515

2516
      /** Identifier assigned to the acquirer by the card network. */
2517
      public Builder setAcquiringInstitutionId(String acquiringInstitutionId) {
2518
        this.acquiringInstitutionId = acquiringInstitutionId;
1✔
2519
        return this;
1✔
2520
      }
2521

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

2535
      /**
2536
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2537
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
2538
       * See {@link AuthorizationCreateParams.NetworkData#extraParams} for the field documentation.
2539
       */
2540
      public Builder putAllExtraParam(Map<String, Object> map) {
2541
        if (this.extraParams == null) {
×
2542
          this.extraParams = new HashMap<>();
×
2543
        }
2544
        this.extraParams.putAll(map);
×
2545
        return this;
×
2546
      }
2547
    }
2548
  }
2549

2550
  @Getter
2551
  public static class VerificationData {
2552
    /**
2553
     * Whether the cardholder provided an address first line and if it matched the cardholder’s
2554
     * {@code billing.address.line1}.
2555
     */
2556
    @SerializedName("address_line1_check")
2557
    AddressLine1Check addressLine1Check;
2558

2559
    /**
2560
     * Whether the cardholder provided a postal code and if it matched the cardholder’s {@code
2561
     * billing.address.postal_code}.
2562
     */
2563
    @SerializedName("address_postal_code_check")
2564
    AddressPostalCodeCheck addressPostalCodeCheck;
2565

2566
    /** The exemption applied to this authorization. */
2567
    @SerializedName("authentication_exemption")
2568
    AuthenticationExemption authenticationExemption;
2569

2570
    /** Whether the cardholder provided a CVC and if it matched Stripe’s record. */
2571
    @SerializedName("cvc_check")
2572
    CvcCheck cvcCheck;
2573

2574
    /** Whether the cardholder provided an expiry date and if it matched Stripe’s record. */
2575
    @SerializedName("expiry_check")
2576
    ExpiryCheck expiryCheck;
2577

2578
    /**
2579
     * Map of extra parameters for custom features not available in this client library. The content
2580
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
2581
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
2582
     * param object. Effectively, this map is flattened to its parent instance.
2583
     */
2584
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2585
    Map<String, Object> extraParams;
2586

2587
    /** 3D Secure details. */
2588
    @SerializedName("three_d_secure")
2589
    ThreeDSecure threeDSecure;
2590

2591
    private VerificationData(
2592
        AddressLine1Check addressLine1Check,
2593
        AddressPostalCodeCheck addressPostalCodeCheck,
2594
        AuthenticationExemption authenticationExemption,
2595
        CvcCheck cvcCheck,
2596
        ExpiryCheck expiryCheck,
2597
        Map<String, Object> extraParams,
2598
        ThreeDSecure threeDSecure) {
1✔
2599
      this.addressLine1Check = addressLine1Check;
1✔
2600
      this.addressPostalCodeCheck = addressPostalCodeCheck;
1✔
2601
      this.authenticationExemption = authenticationExemption;
1✔
2602
      this.cvcCheck = cvcCheck;
1✔
2603
      this.expiryCheck = expiryCheck;
1✔
2604
      this.extraParams = extraParams;
1✔
2605
      this.threeDSecure = threeDSecure;
1✔
2606
    }
1✔
2607

2608
    public static Builder builder() {
2609
      return new Builder();
1✔
2610
    }
2611

2612
    public static class Builder {
1✔
2613
      private AddressLine1Check addressLine1Check;
2614

2615
      private AddressPostalCodeCheck addressPostalCodeCheck;
2616

2617
      private AuthenticationExemption authenticationExemption;
2618

2619
      private CvcCheck cvcCheck;
2620

2621
      private ExpiryCheck expiryCheck;
2622

2623
      private Map<String, Object> extraParams;
2624

2625
      private ThreeDSecure threeDSecure;
2626

2627
      /** Finalize and obtain parameter instance from this builder. */
2628
      public AuthorizationCreateParams.VerificationData build() {
2629
        return new AuthorizationCreateParams.VerificationData(
1✔
2630
            this.addressLine1Check,
2631
            this.addressPostalCodeCheck,
2632
            this.authenticationExemption,
2633
            this.cvcCheck,
2634
            this.expiryCheck,
2635
            this.extraParams,
2636
            this.threeDSecure);
2637
      }
2638

2639
      /**
2640
       * Whether the cardholder provided an address first line and if it matched the cardholder’s
2641
       * {@code billing.address.line1}.
2642
       */
2643
      public Builder setAddressLine1Check(
2644
          AuthorizationCreateParams.VerificationData.AddressLine1Check addressLine1Check) {
2645
        this.addressLine1Check = addressLine1Check;
1✔
2646
        return this;
1✔
2647
      }
2648

2649
      /**
2650
       * Whether the cardholder provided a postal code and if it matched the cardholder’s {@code
2651
       * billing.address.postal_code}.
2652
       */
2653
      public Builder setAddressPostalCodeCheck(
2654
          AuthorizationCreateParams.VerificationData.AddressPostalCodeCheck
2655
              addressPostalCodeCheck) {
2656
        this.addressPostalCodeCheck = addressPostalCodeCheck;
1✔
2657
        return this;
1✔
2658
      }
2659

2660
      /** The exemption applied to this authorization. */
2661
      public Builder setAuthenticationExemption(
2662
          AuthorizationCreateParams.VerificationData.AuthenticationExemption
2663
              authenticationExemption) {
2664
        this.authenticationExemption = authenticationExemption;
×
2665
        return this;
×
2666
      }
2667

2668
      /** Whether the cardholder provided a CVC and if it matched Stripe’s record. */
2669
      public Builder setCvcCheck(AuthorizationCreateParams.VerificationData.CvcCheck cvcCheck) {
2670
        this.cvcCheck = cvcCheck;
1✔
2671
        return this;
1✔
2672
      }
2673

2674
      /** Whether the cardholder provided an expiry date and if it matched Stripe’s record. */
2675
      public Builder setExpiryCheck(
2676
          AuthorizationCreateParams.VerificationData.ExpiryCheck expiryCheck) {
2677
        this.expiryCheck = expiryCheck;
1✔
2678
        return this;
1✔
2679
      }
2680

2681
      /**
2682
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
2683
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
2684
       * AuthorizationCreateParams.VerificationData#extraParams} for the field documentation.
2685
       */
2686
      public Builder putExtraParam(String key, Object value) {
2687
        if (this.extraParams == null) {
×
2688
          this.extraParams = new HashMap<>();
×
2689
        }
2690
        this.extraParams.put(key, value);
×
2691
        return this;
×
2692
      }
2693

2694
      /**
2695
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2696
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
2697
       * See {@link AuthorizationCreateParams.VerificationData#extraParams} for the field
2698
       * documentation.
2699
       */
2700
      public Builder putAllExtraParam(Map<String, Object> map) {
2701
        if (this.extraParams == null) {
×
2702
          this.extraParams = new HashMap<>();
×
2703
        }
2704
        this.extraParams.putAll(map);
×
2705
        return this;
×
2706
      }
2707

2708
      /** 3D Secure details. */
2709
      public Builder setThreeDSecure(
2710
          AuthorizationCreateParams.VerificationData.ThreeDSecure threeDSecure) {
2711
        this.threeDSecure = threeDSecure;
×
2712
        return this;
×
2713
      }
2714
    }
2715

2716
    @Getter
2717
    public static class AuthenticationExemption {
2718
      /**
2719
       * <strong>Required.</strong> The entity that requested the exemption, either the acquiring
2720
       * merchant or the Issuing user.
2721
       */
2722
      @SerializedName("claimed_by")
2723
      ClaimedBy claimedBy;
2724

2725
      /**
2726
       * Map of extra parameters for custom features not available in this client library. The
2727
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2728
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2729
       * name in this param object. Effectively, this map is flattened to its parent instance.
2730
       */
2731
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2732
      Map<String, Object> extraParams;
2733

2734
      /** <strong>Required.</strong> The specific exemption claimed for this authorization. */
2735
      @SerializedName("type")
2736
      Type type;
2737

2738
      private AuthenticationExemption(
2739
          ClaimedBy claimedBy, Map<String, Object> extraParams, Type type) {
×
2740
        this.claimedBy = claimedBy;
×
2741
        this.extraParams = extraParams;
×
2742
        this.type = type;
×
2743
      }
×
2744

2745
      public static Builder builder() {
2746
        return new Builder();
×
2747
      }
2748

2749
      public static class Builder {
×
2750
        private ClaimedBy claimedBy;
2751

2752
        private Map<String, Object> extraParams;
2753

2754
        private Type type;
2755

2756
        /** Finalize and obtain parameter instance from this builder. */
2757
        public AuthorizationCreateParams.VerificationData.AuthenticationExemption build() {
2758
          return new AuthorizationCreateParams.VerificationData.AuthenticationExemption(
×
2759
              this.claimedBy, this.extraParams, this.type);
2760
        }
2761

2762
        /**
2763
         * <strong>Required.</strong> The entity that requested the exemption, either the acquiring
2764
         * merchant or the Issuing user.
2765
         */
2766
        public Builder setClaimedBy(
2767
            AuthorizationCreateParams.VerificationData.AuthenticationExemption.ClaimedBy
2768
                claimedBy) {
2769
          this.claimedBy = claimedBy;
×
2770
          return this;
×
2771
        }
2772

2773
        /**
2774
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2775
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2776
         * map. See {@link
2777
         * AuthorizationCreateParams.VerificationData.AuthenticationExemption#extraParams} for the
2778
         * field documentation.
2779
         */
2780
        public Builder putExtraParam(String key, Object value) {
2781
          if (this.extraParams == null) {
×
2782
            this.extraParams = new HashMap<>();
×
2783
          }
2784
          this.extraParams.put(key, value);
×
2785
          return this;
×
2786
        }
2787

2788
        /**
2789
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2790
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2791
         * map. See {@link
2792
         * AuthorizationCreateParams.VerificationData.AuthenticationExemption#extraParams} for the
2793
         * field documentation.
2794
         */
2795
        public Builder putAllExtraParam(Map<String, Object> map) {
2796
          if (this.extraParams == null) {
×
2797
            this.extraParams = new HashMap<>();
×
2798
          }
2799
          this.extraParams.putAll(map);
×
2800
          return this;
×
2801
        }
2802

2803
        /** <strong>Required.</strong> The specific exemption claimed for this authorization. */
2804
        public Builder setType(
2805
            AuthorizationCreateParams.VerificationData.AuthenticationExemption.Type type) {
2806
          this.type = type;
×
2807
          return this;
×
2808
        }
2809
      }
2810

2811
      public enum ClaimedBy implements ApiRequestParams.EnumParam {
×
2812
        @SerializedName("acquirer")
×
2813
        ACQUIRER("acquirer"),
2814

2815
        @SerializedName("issuer")
×
2816
        ISSUER("issuer");
2817

2818
        @Getter(onMethod_ = {@Override})
2819
        private final String value;
2820

2821
        ClaimedBy(String value) {
×
2822
          this.value = value;
×
2823
        }
×
2824
      }
2825

2826
      public enum Type implements ApiRequestParams.EnumParam {
×
2827
        @SerializedName("low_value_transaction")
×
2828
        LOW_VALUE_TRANSACTION("low_value_transaction"),
2829

2830
        @SerializedName("transaction_risk_analysis")
×
2831
        TRANSACTION_RISK_ANALYSIS("transaction_risk_analysis"),
2832

2833
        @SerializedName("unknown")
×
2834
        UNKNOWN("unknown");
2835

2836
        @Getter(onMethod_ = {@Override})
2837
        private final String value;
2838

2839
        Type(String value) {
×
2840
          this.value = value;
×
2841
        }
×
2842
      }
2843
    }
2844

2845
    @Getter
2846
    public static class ThreeDSecure {
2847
      /**
2848
       * Map of extra parameters for custom features not available in this client library. The
2849
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2850
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2851
       * name in this param object. Effectively, this map is flattened to its parent instance.
2852
       */
2853
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2854
      Map<String, Object> extraParams;
2855

2856
      /** <strong>Required.</strong> The outcome of the 3D Secure authentication request. */
2857
      @SerializedName("result")
2858
      Result result;
2859

2860
      private ThreeDSecure(Map<String, Object> extraParams, Result result) {
×
2861
        this.extraParams = extraParams;
×
2862
        this.result = result;
×
2863
      }
×
2864

2865
      public static Builder builder() {
2866
        return new Builder();
×
2867
      }
2868

2869
      public static class Builder {
×
2870
        private Map<String, Object> extraParams;
2871

2872
        private Result result;
2873

2874
        /** Finalize and obtain parameter instance from this builder. */
2875
        public AuthorizationCreateParams.VerificationData.ThreeDSecure build() {
2876
          return new AuthorizationCreateParams.VerificationData.ThreeDSecure(
×
2877
              this.extraParams, this.result);
2878
        }
2879

2880
        /**
2881
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2882
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2883
         * map. See {@link AuthorizationCreateParams.VerificationData.ThreeDSecure#extraParams} for
2884
         * the field documentation.
2885
         */
2886
        public Builder putExtraParam(String key, Object value) {
2887
          if (this.extraParams == null) {
×
2888
            this.extraParams = new HashMap<>();
×
2889
          }
2890
          this.extraParams.put(key, value);
×
2891
          return this;
×
2892
        }
2893

2894
        /**
2895
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2896
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2897
         * map. See {@link AuthorizationCreateParams.VerificationData.ThreeDSecure#extraParams} for
2898
         * the field documentation.
2899
         */
2900
        public Builder putAllExtraParam(Map<String, Object> map) {
2901
          if (this.extraParams == null) {
×
2902
            this.extraParams = new HashMap<>();
×
2903
          }
2904
          this.extraParams.putAll(map);
×
2905
          return this;
×
2906
        }
2907

2908
        /** <strong>Required.</strong> The outcome of the 3D Secure authentication request. */
2909
        public Builder setResult(
2910
            AuthorizationCreateParams.VerificationData.ThreeDSecure.Result result) {
2911
          this.result = result;
×
2912
          return this;
×
2913
        }
2914
      }
2915

2916
      public enum Result implements ApiRequestParams.EnumParam {
×
2917
        @SerializedName("attempt_acknowledged")
×
2918
        ATTEMPT_ACKNOWLEDGED("attempt_acknowledged"),
2919

2920
        @SerializedName("authenticated")
×
2921
        AUTHENTICATED("authenticated"),
2922

2923
        @SerializedName("failed")
×
2924
        FAILED("failed"),
2925

2926
        @SerializedName("required")
×
2927
        REQUIRED("required");
2928

2929
        @Getter(onMethod_ = {@Override})
2930
        private final String value;
2931

2932
        Result(String value) {
×
2933
          this.value = value;
×
2934
        }
×
2935
      }
2936
    }
2937

2938
    public enum AddressLine1Check implements ApiRequestParams.EnumParam {
1✔
2939
      @SerializedName("match")
1✔
2940
      MATCH("match"),
2941

2942
      @SerializedName("mismatch")
1✔
2943
      MISMATCH("mismatch"),
2944

2945
      @SerializedName("not_provided")
1✔
2946
      NOT_PROVIDED("not_provided");
2947

2948
      @Getter(onMethod_ = {@Override})
2949
      private final String value;
2950

2951
      AddressLine1Check(String value) {
1✔
2952
        this.value = value;
1✔
2953
      }
1✔
2954
    }
2955

2956
    public enum AddressPostalCodeCheck implements ApiRequestParams.EnumParam {
1✔
2957
      @SerializedName("match")
1✔
2958
      MATCH("match"),
2959

2960
      @SerializedName("mismatch")
1✔
2961
      MISMATCH("mismatch"),
2962

2963
      @SerializedName("not_provided")
1✔
2964
      NOT_PROVIDED("not_provided");
2965

2966
      @Getter(onMethod_ = {@Override})
2967
      private final String value;
2968

2969
      AddressPostalCodeCheck(String value) {
1✔
2970
        this.value = value;
1✔
2971
      }
1✔
2972
    }
2973

2974
    public enum CvcCheck implements ApiRequestParams.EnumParam {
1✔
2975
      @SerializedName("match")
1✔
2976
      MATCH("match"),
2977

2978
      @SerializedName("mismatch")
1✔
2979
      MISMATCH("mismatch"),
2980

2981
      @SerializedName("not_provided")
1✔
2982
      NOT_PROVIDED("not_provided");
2983

2984
      @Getter(onMethod_ = {@Override})
2985
      private final String value;
2986

2987
      CvcCheck(String value) {
1✔
2988
        this.value = value;
1✔
2989
      }
1✔
2990
    }
2991

2992
    public enum ExpiryCheck implements ApiRequestParams.EnumParam {
1✔
2993
      @SerializedName("match")
1✔
2994
      MATCH("match"),
2995

2996
      @SerializedName("mismatch")
1✔
2997
      MISMATCH("mismatch"),
2998

2999
      @SerializedName("not_provided")
1✔
3000
      NOT_PROVIDED("not_provided");
3001

3002
      @Getter(onMethod_ = {@Override})
3003
      private final String value;
3004

3005
      ExpiryCheck(String value) {
1✔
3006
        this.value = value;
1✔
3007
      }
1✔
3008
    }
3009
  }
3010

3011
  public enum AuthorizationMethod implements ApiRequestParams.EnumParam {
1✔
3012
    @SerializedName("chip")
1✔
3013
    CHIP("chip"),
3014

3015
    @SerializedName("contactless")
1✔
3016
    CONTACTLESS("contactless"),
3017

3018
    @SerializedName("keyed_in")
1✔
3019
    KEYED_IN("keyed_in"),
3020

3021
    @SerializedName("online")
1✔
3022
    ONLINE("online"),
3023

3024
    @SerializedName("swipe")
1✔
3025
    SWIPE("swipe");
3026

3027
    @Getter(onMethod_ = {@Override})
3028
    private final String value;
3029

3030
    AuthorizationMethod(String value) {
1✔
3031
      this.value = value;
1✔
3032
    }
1✔
3033
  }
3034

3035
  public enum Wallet implements ApiRequestParams.EnumParam {
1✔
3036
    @SerializedName("apple_pay")
1✔
3037
    APPLE_PAY("apple_pay"),
3038

3039
    @SerializedName("google_pay")
1✔
3040
    GOOGLE_PAY("google_pay"),
3041

3042
    @SerializedName("samsung_pay")
1✔
3043
    SAMSUNG_PAY("samsung_pay");
3044

3045
    @Getter(onMethod_ = {@Override})
3046
    private final String value;
3047

3048
    Wallet(String value) {
1✔
3049
      this.value = value;
1✔
3050
    }
1✔
3051
  }
3052
}
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