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

stripe / stripe-java / #16644

14 Nov 2024 11:58PM UTC coverage: 12.414% (-0.005%) from 12.419%
#16644

push

github

web-flow
Update generated code for beta (#1922)

* Update generated code for v1334

* Update generated code for v1335

* Update generated code for v1337

* Update generated code for v1339

* Update generated code for v1340

* Update generated code for v1343

* Update generated code for v1345

* Update generated code for v1346

* Update generated code for v1347

* Update generated code for v1348

* Update generated code for v1349

* Update generated code for v1350

* Update generated code for v1352

* Update generated code for v1353

* Update generated code for v1356

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

2 of 79 new or added lines in 17 files covered. (2.53%)

1 existing line in 1 file now uncovered.

18857 of 151907 relevant lines covered (12.41%)

0.12 hits per line

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

6.2
/src/main/java/com/stripe/param/AccountPersonUpdateParams.java
1
// File generated from our OpenAPI spec
2
package com.stripe.param;
3

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

14
@Getter
15
public class AccountPersonUpdateParams extends ApiRequestParams {
16
  /**
17
   * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
18
   */
19
  @SerializedName("additional_tos_acceptances")
20
  AdditionalTosAcceptances additionalTosAcceptances;
21

22
  /** The person's address. */
23
  @SerializedName("address")
24
  Address address;
25

26
  /** The Kana variation of the person's address (Japan only). */
27
  @SerializedName("address_kana")
28
  AddressKana addressKana;
29

30
  /** The Kanji variation of the person's address (Japan only). */
31
  @SerializedName("address_kanji")
32
  AddressKanji addressKanji;
33

34
  /** The person's date of birth. */
35
  @SerializedName("dob")
36
  Object dob;
37

38
  /** Documents that may be submitted to satisfy various informational requests. */
39
  @SerializedName("documents")
40
  Documents documents;
41

42
  /** The person's email address. */
43
  @SerializedName("email")
44
  Object email;
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
  /** The person's first name. */
60
  @SerializedName("first_name")
61
  Object firstName;
62

63
  /** The Kana variation of the person's first name (Japan only). */
64
  @SerializedName("first_name_kana")
65
  Object firstNameKana;
66

67
  /** The Kanji variation of the person's first name (Japan only). */
68
  @SerializedName("first_name_kanji")
69
  Object firstNameKanji;
70

71
  /** A list of alternate names or aliases that the person is known by. */
72
  @SerializedName("full_name_aliases")
73
  Object fullNameAliases;
74

75
  /**
76
   * The person's gender (International regulations require either &quot;male&quot; or
77
   * &quot;female&quot;).
78
   */
79
  @SerializedName("gender")
80
  Object gender;
81

82
  /**
83
   * The person's ID number, as appropriate for their country. For example, a social security number
84
   * in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also
85
   * provide a <a href="https://docs.stripe.com/js/tokens/create_token?type=pii">PII token provided
86
   * by Stripe.js</a>.
87
   */
88
  @SerializedName("id_number")
89
  Object idNumber;
90

91
  /**
92
   * The person's secondary ID number, as appropriate for their country, will be used for enhanced
93
   * verification checks. In Thailand, this would be the laser code found on the back of an ID card.
94
   * Instead of the number itself, you can also provide a <a
95
   * href="https://docs.stripe.com/js/tokens/create_token?type=pii">PII token provided by
96
   * Stripe.js</a>.
97
   */
98
  @SerializedName("id_number_secondary")
99
  Object idNumberSecondary;
100

101
  /** The person's last name. */
102
  @SerializedName("last_name")
103
  Object lastName;
104

105
  /** The Kana variation of the person's last name (Japan only). */
106
  @SerializedName("last_name_kana")
107
  Object lastNameKana;
108

109
  /** The Kanji variation of the person's last name (Japan only). */
110
  @SerializedName("last_name_kanji")
111
  Object lastNameKanji;
112

113
  /** The person's maiden name. */
114
  @SerializedName("maiden_name")
115
  Object maidenName;
116

117
  /**
118
   * Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach
119
   * to an object. This can be useful for storing additional information about the object in a
120
   * structured format. Individual keys can be unset by posting an empty value to them. All keys can
121
   * be unset by posting an empty value to {@code metadata}.
122
   */
123
  @SerializedName("metadata")
124
  Object metadata;
125

126
  /**
127
   * The country where the person is a national. Two-letter country code (<a
128
   * href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>), or
129
   * &quot;XX&quot; if unavailable.
130
   */
131
  @SerializedName("nationality")
132
  Object nationality;
133

134
  /**
135
   * A <a href="https://docs.stripe.com/connect/account-tokens">person token</a>, used to securely
136
   * provide details to the person.
137
   */
138
  @SerializedName("person_token")
139
  Object personToken;
140

141
  /** The person's phone number. */
142
  @SerializedName("phone")
143
  Object phone;
144

145
  /**
146
   * Indicates if the person or any of their representatives, family members, or other closely
147
   * related persons, declares that they hold or have held an important public job or function, in
148
   * any jurisdiction.
149
   */
150
  @SerializedName("political_exposure")
151
  Object politicalExposure;
152

153
  /** The person's registered address. */
154
  @SerializedName("registered_address")
155
  RegisteredAddress registeredAddress;
156

157
  /** The relationship that this person has with the account's legal entity. */
158
  @SerializedName("relationship")
159
  Relationship relationship;
160

161
  /** The last four digits of the person's Social Security number (U.S. only). */
162
  @SerializedName("ssn_last_4")
163
  Object ssnLast4;
164

165
  /** The person's verification status. */
166
  @SerializedName("verification")
167
  Verification verification;
168

169
  private AccountPersonUpdateParams(
170
      AdditionalTosAcceptances additionalTosAcceptances,
171
      Address address,
172
      AddressKana addressKana,
173
      AddressKanji addressKanji,
174
      Object dob,
175
      Documents documents,
176
      Object email,
177
      List<String> expand,
178
      Map<String, Object> extraParams,
179
      Object firstName,
180
      Object firstNameKana,
181
      Object firstNameKanji,
182
      Object fullNameAliases,
183
      Object gender,
184
      Object idNumber,
185
      Object idNumberSecondary,
186
      Object lastName,
187
      Object lastNameKana,
188
      Object lastNameKanji,
189
      Object maidenName,
190
      Object metadata,
191
      Object nationality,
192
      Object personToken,
193
      Object phone,
194
      Object politicalExposure,
195
      RegisteredAddress registeredAddress,
196
      Relationship relationship,
197
      Object ssnLast4,
198
      Verification verification) {
1✔
199
    this.additionalTosAcceptances = additionalTosAcceptances;
1✔
200
    this.address = address;
1✔
201
    this.addressKana = addressKana;
1✔
202
    this.addressKanji = addressKanji;
1✔
203
    this.dob = dob;
1✔
204
    this.documents = documents;
1✔
205
    this.email = email;
1✔
206
    this.expand = expand;
1✔
207
    this.extraParams = extraParams;
1✔
208
    this.firstName = firstName;
1✔
209
    this.firstNameKana = firstNameKana;
1✔
210
    this.firstNameKanji = firstNameKanji;
1✔
211
    this.fullNameAliases = fullNameAliases;
1✔
212
    this.gender = gender;
1✔
213
    this.idNumber = idNumber;
1✔
214
    this.idNumberSecondary = idNumberSecondary;
1✔
215
    this.lastName = lastName;
1✔
216
    this.lastNameKana = lastNameKana;
1✔
217
    this.lastNameKanji = lastNameKanji;
1✔
218
    this.maidenName = maidenName;
1✔
219
    this.metadata = metadata;
1✔
220
    this.nationality = nationality;
1✔
221
    this.personToken = personToken;
1✔
222
    this.phone = phone;
1✔
223
    this.politicalExposure = politicalExposure;
1✔
224
    this.registeredAddress = registeredAddress;
1✔
225
    this.relationship = relationship;
1✔
226
    this.ssnLast4 = ssnLast4;
1✔
227
    this.verification = verification;
1✔
228
  }
1✔
229

230
  public static Builder builder() {
231
    return new Builder();
1✔
232
  }
233

234
  public static class Builder {
1✔
235
    private AdditionalTosAcceptances additionalTosAcceptances;
236

237
    private Address address;
238

239
    private AddressKana addressKana;
240

241
    private AddressKanji addressKanji;
242

243
    private Object dob;
244

245
    private Documents documents;
246

247
    private Object email;
248

249
    private List<String> expand;
250

251
    private Map<String, Object> extraParams;
252

253
    private Object firstName;
254

255
    private Object firstNameKana;
256

257
    private Object firstNameKanji;
258

259
    private Object fullNameAliases;
260

261
    private Object gender;
262

263
    private Object idNumber;
264

265
    private Object idNumberSecondary;
266

267
    private Object lastName;
268

269
    private Object lastNameKana;
270

271
    private Object lastNameKanji;
272

273
    private Object maidenName;
274

275
    private Object metadata;
276

277
    private Object nationality;
278

279
    private Object personToken;
280

281
    private Object phone;
282

283
    private Object politicalExposure;
284

285
    private RegisteredAddress registeredAddress;
286

287
    private Relationship relationship;
288

289
    private Object ssnLast4;
290

291
    private Verification verification;
292

293
    /** Finalize and obtain parameter instance from this builder. */
294
    public AccountPersonUpdateParams build() {
295
      return new AccountPersonUpdateParams(
1✔
296
          this.additionalTosAcceptances,
297
          this.address,
298
          this.addressKana,
299
          this.addressKanji,
300
          this.dob,
301
          this.documents,
302
          this.email,
303
          this.expand,
304
          this.extraParams,
305
          this.firstName,
306
          this.firstNameKana,
307
          this.firstNameKanji,
308
          this.fullNameAliases,
309
          this.gender,
310
          this.idNumber,
311
          this.idNumberSecondary,
312
          this.lastName,
313
          this.lastNameKana,
314
          this.lastNameKanji,
315
          this.maidenName,
316
          this.metadata,
317
          this.nationality,
318
          this.personToken,
319
          this.phone,
320
          this.politicalExposure,
321
          this.registeredAddress,
322
          this.relationship,
323
          this.ssnLast4,
324
          this.verification);
325
    }
326

327
    /**
328
     * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
329
     */
330
    public Builder setAdditionalTosAcceptances(
331
        AccountPersonUpdateParams.AdditionalTosAcceptances additionalTosAcceptances) {
332
      this.additionalTosAcceptances = additionalTosAcceptances;
×
333
      return this;
×
334
    }
335

336
    /** The person's address. */
337
    public Builder setAddress(AccountPersonUpdateParams.Address address) {
338
      this.address = address;
×
339
      return this;
×
340
    }
341

342
    /** The Kana variation of the person's address (Japan only). */
343
    public Builder setAddressKana(AccountPersonUpdateParams.AddressKana addressKana) {
344
      this.addressKana = addressKana;
×
345
      return this;
×
346
    }
347

348
    /** The Kanji variation of the person's address (Japan only). */
349
    public Builder setAddressKanji(AccountPersonUpdateParams.AddressKanji addressKanji) {
350
      this.addressKanji = addressKanji;
×
351
      return this;
×
352
    }
353

354
    /** The person's date of birth. */
355
    public Builder setDob(AccountPersonUpdateParams.Dob dob) {
356
      this.dob = dob;
×
357
      return this;
×
358
    }
359

360
    /** The person's date of birth. */
361
    public Builder setDob(EmptyParam dob) {
362
      this.dob = dob;
×
363
      return this;
×
364
    }
365

366
    /** Documents that may be submitted to satisfy various informational requests. */
367
    public Builder setDocuments(AccountPersonUpdateParams.Documents documents) {
368
      this.documents = documents;
×
369
      return this;
×
370
    }
371

372
    /** The person's email address. */
373
    public Builder setEmail(String email) {
374
      this.email = email;
×
375
      return this;
×
376
    }
377

378
    /** The person's email address. */
379
    public Builder setEmail(EmptyParam email) {
380
      this.email = email;
×
381
      return this;
×
382
    }
383

384
    /**
385
     * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and
386
     * subsequent calls adds additional elements to the original list. See {@link
387
     * AccountPersonUpdateParams#expand} for the field documentation.
388
     */
389
    public Builder addExpand(String element) {
390
      if (this.expand == null) {
×
391
        this.expand = new ArrayList<>();
×
392
      }
393
      this.expand.add(element);
×
394
      return this;
×
395
    }
396

397
    /**
398
     * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and
399
     * subsequent calls adds additional elements to the original list. See {@link
400
     * AccountPersonUpdateParams#expand} for the field documentation.
401
     */
402
    public Builder addAllExpand(List<String> elements) {
403
      if (this.expand == null) {
×
404
        this.expand = new ArrayList<>();
×
405
      }
406
      this.expand.addAll(elements);
×
407
      return this;
×
408
    }
409

410
    /**
411
     * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
412
     * call, and subsequent calls add additional key/value pairs to the original map. See {@link
413
     * AccountPersonUpdateParams#extraParams} for the field documentation.
414
     */
415
    public Builder putExtraParam(String key, Object value) {
416
      if (this.extraParams == null) {
×
417
        this.extraParams = new HashMap<>();
×
418
      }
419
      this.extraParams.put(key, value);
×
420
      return this;
×
421
    }
422

423
    /**
424
     * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
425
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
426
     * See {@link AccountPersonUpdateParams#extraParams} for the field documentation.
427
     */
428
    public Builder putAllExtraParam(Map<String, Object> map) {
429
      if (this.extraParams == null) {
×
430
        this.extraParams = new HashMap<>();
×
431
      }
432
      this.extraParams.putAll(map);
×
433
      return this;
×
434
    }
435

436
    /** The person's first name. */
437
    public Builder setFirstName(String firstName) {
438
      this.firstName = firstName;
×
439
      return this;
×
440
    }
441

442
    /** The person's first name. */
443
    public Builder setFirstName(EmptyParam firstName) {
444
      this.firstName = firstName;
×
445
      return this;
×
446
    }
447

448
    /** The Kana variation of the person's first name (Japan only). */
449
    public Builder setFirstNameKana(String firstNameKana) {
450
      this.firstNameKana = firstNameKana;
×
451
      return this;
×
452
    }
453

454
    /** The Kana variation of the person's first name (Japan only). */
455
    public Builder setFirstNameKana(EmptyParam firstNameKana) {
456
      this.firstNameKana = firstNameKana;
×
457
      return this;
×
458
    }
459

460
    /** The Kanji variation of the person's first name (Japan only). */
461
    public Builder setFirstNameKanji(String firstNameKanji) {
462
      this.firstNameKanji = firstNameKanji;
×
463
      return this;
×
464
    }
465

466
    /** The Kanji variation of the person's first name (Japan only). */
467
    public Builder setFirstNameKanji(EmptyParam firstNameKanji) {
468
      this.firstNameKanji = firstNameKanji;
×
469
      return this;
×
470
    }
471

472
    /**
473
     * Add an element to `fullNameAliases` list. A list is initialized for the first `add/addAll`
474
     * call, and subsequent calls adds additional elements to the original list. See {@link
475
     * AccountPersonUpdateParams#fullNameAliases} for the field documentation.
476
     */
477
    @SuppressWarnings("unchecked")
478
    public Builder addFullNameAlias(String element) {
479
      if (this.fullNameAliases == null || this.fullNameAliases instanceof EmptyParam) {
×
480
        this.fullNameAliases = new ArrayList<String>();
×
481
      }
482
      ((List<String>) this.fullNameAliases).add(element);
×
483
      return this;
×
484
    }
485

486
    /**
487
     * Add all elements to `fullNameAliases` list. A list is initialized for the first `add/addAll`
488
     * call, and subsequent calls adds additional elements to the original list. See {@link
489
     * AccountPersonUpdateParams#fullNameAliases} for the field documentation.
490
     */
491
    @SuppressWarnings("unchecked")
492
    public Builder addAllFullNameAlias(List<String> elements) {
493
      if (this.fullNameAliases == null || this.fullNameAliases instanceof EmptyParam) {
×
494
        this.fullNameAliases = new ArrayList<String>();
×
495
      }
496
      ((List<String>) this.fullNameAliases).addAll(elements);
×
497
      return this;
×
498
    }
499

500
    /** A list of alternate names or aliases that the person is known by. */
501
    public Builder setFullNameAliases(EmptyParam fullNameAliases) {
502
      this.fullNameAliases = fullNameAliases;
×
503
      return this;
×
504
    }
505

506
    /** A list of alternate names or aliases that the person is known by. */
507
    public Builder setFullNameAliases(List<String> fullNameAliases) {
508
      this.fullNameAliases = fullNameAliases;
×
509
      return this;
×
510
    }
511

512
    /**
513
     * The person's gender (International regulations require either &quot;male&quot; or
514
     * &quot;female&quot;).
515
     */
516
    public Builder setGender(String gender) {
517
      this.gender = gender;
×
518
      return this;
×
519
    }
520

521
    /**
522
     * The person's gender (International regulations require either &quot;male&quot; or
523
     * &quot;female&quot;).
524
     */
525
    public Builder setGender(EmptyParam gender) {
526
      this.gender = gender;
×
527
      return this;
×
528
    }
529

530
    /**
531
     * The person's ID number, as appropriate for their country. For example, a social security
532
     * number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you
533
     * can also provide a <a href="https://docs.stripe.com/js/tokens/create_token?type=pii">PII
534
     * token provided by Stripe.js</a>.
535
     */
536
    public Builder setIdNumber(String idNumber) {
537
      this.idNumber = idNumber;
×
538
      return this;
×
539
    }
540

541
    /**
542
     * The person's ID number, as appropriate for their country. For example, a social security
543
     * number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you
544
     * can also provide a <a href="https://docs.stripe.com/js/tokens/create_token?type=pii">PII
545
     * token provided by Stripe.js</a>.
546
     */
547
    public Builder setIdNumber(EmptyParam idNumber) {
548
      this.idNumber = idNumber;
×
549
      return this;
×
550
    }
551

552
    /**
553
     * The person's secondary ID number, as appropriate for their country, will be used for enhanced
554
     * verification checks. In Thailand, this would be the laser code found on the back of an ID
555
     * card. Instead of the number itself, you can also provide a <a
556
     * href="https://docs.stripe.com/js/tokens/create_token?type=pii">PII token provided by
557
     * Stripe.js</a>.
558
     */
559
    public Builder setIdNumberSecondary(String idNumberSecondary) {
560
      this.idNumberSecondary = idNumberSecondary;
×
561
      return this;
×
562
    }
563

564
    /**
565
     * The person's secondary ID number, as appropriate for their country, will be used for enhanced
566
     * verification checks. In Thailand, this would be the laser code found on the back of an ID
567
     * card. Instead of the number itself, you can also provide a <a
568
     * href="https://docs.stripe.com/js/tokens/create_token?type=pii">PII token provided by
569
     * Stripe.js</a>.
570
     */
571
    public Builder setIdNumberSecondary(EmptyParam idNumberSecondary) {
572
      this.idNumberSecondary = idNumberSecondary;
×
573
      return this;
×
574
    }
575

576
    /** The person's last name. */
577
    public Builder setLastName(String lastName) {
578
      this.lastName = lastName;
×
579
      return this;
×
580
    }
581

582
    /** The person's last name. */
583
    public Builder setLastName(EmptyParam lastName) {
584
      this.lastName = lastName;
×
585
      return this;
×
586
    }
587

588
    /** The Kana variation of the person's last name (Japan only). */
589
    public Builder setLastNameKana(String lastNameKana) {
590
      this.lastNameKana = lastNameKana;
×
591
      return this;
×
592
    }
593

594
    /** The Kana variation of the person's last name (Japan only). */
595
    public Builder setLastNameKana(EmptyParam lastNameKana) {
596
      this.lastNameKana = lastNameKana;
×
597
      return this;
×
598
    }
599

600
    /** The Kanji variation of the person's last name (Japan only). */
601
    public Builder setLastNameKanji(String lastNameKanji) {
602
      this.lastNameKanji = lastNameKanji;
×
603
      return this;
×
604
    }
605

606
    /** The Kanji variation of the person's last name (Japan only). */
607
    public Builder setLastNameKanji(EmptyParam lastNameKanji) {
608
      this.lastNameKanji = lastNameKanji;
×
609
      return this;
×
610
    }
611

612
    /** The person's maiden name. */
613
    public Builder setMaidenName(String maidenName) {
614
      this.maidenName = maidenName;
×
615
      return this;
×
616
    }
617

618
    /** The person's maiden name. */
619
    public Builder setMaidenName(EmptyParam maidenName) {
620
      this.maidenName = maidenName;
×
621
      return this;
×
622
    }
623

624
    /**
625
     * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call,
626
     * and subsequent calls add additional key/value pairs to the original map. See {@link
627
     * AccountPersonUpdateParams#metadata} for the field documentation.
628
     */
629
    @SuppressWarnings("unchecked")
630
    public Builder putMetadata(String key, String value) {
631
      if (this.metadata == null || this.metadata instanceof EmptyParam) {
1✔
632
        this.metadata = new HashMap<String, String>();
1✔
633
      }
634
      ((Map<String, String>) this.metadata).put(key, value);
1✔
635
      return this;
1✔
636
    }
637

638
    /**
639
     * Add all map key/value pairs to `metadata` map. A map is initialized for the first
640
     * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
641
     * See {@link AccountPersonUpdateParams#metadata} for the field documentation.
642
     */
643
    @SuppressWarnings("unchecked")
644
    public Builder putAllMetadata(Map<String, String> map) {
645
      if (this.metadata == null || this.metadata instanceof EmptyParam) {
×
646
        this.metadata = new HashMap<String, String>();
×
647
      }
648
      ((Map<String, String>) this.metadata).putAll(map);
×
649
      return this;
×
650
    }
651

652
    /**
653
     * Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach
654
     * to an object. This can be useful for storing additional information about the object in a
655
     * structured format. Individual keys can be unset by posting an empty value to them. All keys
656
     * can be unset by posting an empty value to {@code metadata}.
657
     */
658
    public Builder setMetadata(EmptyParam metadata) {
659
      this.metadata = metadata;
×
660
      return this;
×
661
    }
662

663
    /**
664
     * Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach
665
     * to an object. This can be useful for storing additional information about the object in a
666
     * structured format. Individual keys can be unset by posting an empty value to them. All keys
667
     * can be unset by posting an empty value to {@code metadata}.
668
     */
669
    public Builder setMetadata(Map<String, String> metadata) {
670
      this.metadata = metadata;
×
671
      return this;
×
672
    }
673

674
    /**
675
     * The country where the person is a national. Two-letter country code (<a
676
     * href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>), or
677
     * &quot;XX&quot; if unavailable.
678
     */
679
    public Builder setNationality(String nationality) {
680
      this.nationality = nationality;
×
681
      return this;
×
682
    }
683

684
    /**
685
     * The country where the person is a national. Two-letter country code (<a
686
     * href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a>), or
687
     * &quot;XX&quot; if unavailable.
688
     */
689
    public Builder setNationality(EmptyParam nationality) {
690
      this.nationality = nationality;
×
691
      return this;
×
692
    }
693

694
    /**
695
     * A <a href="https://docs.stripe.com/connect/account-tokens">person token</a>, used to securely
696
     * provide details to the person.
697
     */
698
    public Builder setPersonToken(String personToken) {
699
      this.personToken = personToken;
×
700
      return this;
×
701
    }
702

703
    /**
704
     * A <a href="https://docs.stripe.com/connect/account-tokens">person token</a>, used to securely
705
     * provide details to the person.
706
     */
707
    public Builder setPersonToken(EmptyParam personToken) {
708
      this.personToken = personToken;
×
709
      return this;
×
710
    }
711

712
    /** The person's phone number. */
713
    public Builder setPhone(String phone) {
714
      this.phone = phone;
×
715
      return this;
×
716
    }
717

718
    /** The person's phone number. */
719
    public Builder setPhone(EmptyParam phone) {
720
      this.phone = phone;
×
721
      return this;
×
722
    }
723

724
    /**
725
     * Indicates if the person or any of their representatives, family members, or other closely
726
     * related persons, declares that they hold or have held an important public job or function, in
727
     * any jurisdiction.
728
     */
729
    public Builder setPoliticalExposure(String politicalExposure) {
730
      this.politicalExposure = politicalExposure;
×
731
      return this;
×
732
    }
733

734
    /**
735
     * Indicates if the person or any of their representatives, family members, or other closely
736
     * related persons, declares that they hold or have held an important public job or function, in
737
     * any jurisdiction.
738
     */
739
    public Builder setPoliticalExposure(EmptyParam politicalExposure) {
740
      this.politicalExposure = politicalExposure;
×
741
      return this;
×
742
    }
743

744
    /** The person's registered address. */
745
    public Builder setRegisteredAddress(
746
        AccountPersonUpdateParams.RegisteredAddress registeredAddress) {
747
      this.registeredAddress = registeredAddress;
×
748
      return this;
×
749
    }
750

751
    /** The relationship that this person has with the account's legal entity. */
752
    public Builder setRelationship(AccountPersonUpdateParams.Relationship relationship) {
753
      this.relationship = relationship;
×
754
      return this;
×
755
    }
756

757
    /** The last four digits of the person's Social Security number (U.S. only). */
758
    public Builder setSsnLast4(String ssnLast4) {
759
      this.ssnLast4 = ssnLast4;
×
760
      return this;
×
761
    }
762

763
    /** The last four digits of the person's Social Security number (U.S. only). */
764
    public Builder setSsnLast4(EmptyParam ssnLast4) {
765
      this.ssnLast4 = ssnLast4;
×
766
      return this;
×
767
    }
768

769
    /** The person's verification status. */
770
    public Builder setVerification(AccountPersonUpdateParams.Verification verification) {
771
      this.verification = verification;
×
772
      return this;
×
773
    }
774
  }
775

776
  @Getter
777
  public static class AdditionalTosAcceptances {
778
    /** Details on the legal guardian's acceptance of the main Stripe service agreement. */
779
    @SerializedName("account")
780
    Account account;
781

782
    /**
783
     * Map of extra parameters for custom features not available in this client library. The content
784
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
785
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
786
     * param object. Effectively, this map is flattened to its parent instance.
787
     */
788
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
789
    Map<String, Object> extraParams;
790

791
    private AdditionalTosAcceptances(Account account, Map<String, Object> extraParams) {
×
792
      this.account = account;
×
793
      this.extraParams = extraParams;
×
794
    }
×
795

796
    public static Builder builder() {
797
      return new Builder();
×
798
    }
799

800
    public static class Builder {
×
801
      private Account account;
802

803
      private Map<String, Object> extraParams;
804

805
      /** Finalize and obtain parameter instance from this builder. */
806
      public AccountPersonUpdateParams.AdditionalTosAcceptances build() {
807
        return new AccountPersonUpdateParams.AdditionalTosAcceptances(
×
808
            this.account, this.extraParams);
809
      }
810

811
      /** Details on the legal guardian's acceptance of the main Stripe service agreement. */
812
      public Builder setAccount(
813
          AccountPersonUpdateParams.AdditionalTosAcceptances.Account account) {
814
        this.account = account;
×
815
        return this;
×
816
      }
817

818
      /**
819
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
820
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
821
       * AccountPersonUpdateParams.AdditionalTosAcceptances#extraParams} for the field
822
       * documentation.
823
       */
824
      public Builder putExtraParam(String key, Object value) {
825
        if (this.extraParams == null) {
×
826
          this.extraParams = new HashMap<>();
×
827
        }
828
        this.extraParams.put(key, value);
×
829
        return this;
×
830
      }
831

832
      /**
833
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
834
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
835
       * See {@link AccountPersonUpdateParams.AdditionalTosAcceptances#extraParams} for the field
836
       * documentation.
837
       */
838
      public Builder putAllExtraParam(Map<String, Object> map) {
839
        if (this.extraParams == null) {
×
840
          this.extraParams = new HashMap<>();
×
841
        }
842
        this.extraParams.putAll(map);
×
843
        return this;
×
844
      }
845
    }
846

847
    @Getter
848
    public static class Account {
849
      /**
850
       * The Unix timestamp marking when the account representative accepted the service agreement.
851
       */
852
      @SerializedName("date")
853
      Long date;
854

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

864
      /** The IP address from which the account representative accepted the service agreement. */
865
      @SerializedName("ip")
866
      Object ip;
867

868
      /**
869
       * The user agent of the browser from which the account representative accepted the service
870
       * agreement.
871
       */
872
      @SerializedName("user_agent")
873
      Object userAgent;
874

875
      private Account(Long date, Map<String, Object> extraParams, Object ip, Object userAgent) {
×
876
        this.date = date;
×
877
        this.extraParams = extraParams;
×
878
        this.ip = ip;
×
879
        this.userAgent = userAgent;
×
880
      }
×
881

882
      public static Builder builder() {
883
        return new Builder();
×
884
      }
885

886
      public static class Builder {
×
887
        private Long date;
888

889
        private Map<String, Object> extraParams;
890

891
        private Object ip;
892

893
        private Object userAgent;
894

895
        /** Finalize and obtain parameter instance from this builder. */
896
        public AccountPersonUpdateParams.AdditionalTosAcceptances.Account build() {
897
          return new AccountPersonUpdateParams.AdditionalTosAcceptances.Account(
×
898
              this.date, this.extraParams, this.ip, this.userAgent);
899
        }
900

901
        /**
902
         * The Unix timestamp marking when the account representative accepted the service
903
         * agreement.
904
         */
905
        public Builder setDate(Long date) {
906
          this.date = date;
×
907
          return this;
×
908
        }
909

910
        /**
911
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
912
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
913
         * map. See {@link AccountPersonUpdateParams.AdditionalTosAcceptances.Account#extraParams}
914
         * for the field documentation.
915
         */
916
        public Builder putExtraParam(String key, Object value) {
917
          if (this.extraParams == null) {
×
918
            this.extraParams = new HashMap<>();
×
919
          }
920
          this.extraParams.put(key, value);
×
921
          return this;
×
922
        }
923

924
        /**
925
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
926
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
927
         * map. See {@link AccountPersonUpdateParams.AdditionalTosAcceptances.Account#extraParams}
928
         * for the field documentation.
929
         */
930
        public Builder putAllExtraParam(Map<String, Object> map) {
931
          if (this.extraParams == null) {
×
932
            this.extraParams = new HashMap<>();
×
933
          }
934
          this.extraParams.putAll(map);
×
935
          return this;
×
936
        }
937

938
        /** The IP address from which the account representative accepted the service agreement. */
939
        public Builder setIp(String ip) {
940
          this.ip = ip;
×
941
          return this;
×
942
        }
943

944
        /** The IP address from which the account representative accepted the service agreement. */
945
        public Builder setIp(EmptyParam ip) {
946
          this.ip = ip;
×
947
          return this;
×
948
        }
949

950
        /**
951
         * The user agent of the browser from which the account representative accepted the service
952
         * agreement.
953
         */
954
        public Builder setUserAgent(String userAgent) {
955
          this.userAgent = userAgent;
×
956
          return this;
×
957
        }
958

959
        /**
960
         * The user agent of the browser from which the account representative accepted the service
961
         * agreement.
962
         */
963
        public Builder setUserAgent(EmptyParam userAgent) {
964
          this.userAgent = userAgent;
×
965
          return this;
×
966
        }
967
      }
968
    }
969
  }
970

971
  @Getter
972
  public static class Address {
973
    /** City, district, suburb, town, or village. */
974
    @SerializedName("city")
975
    Object city;
976

977
    /**
978
     * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
979
     * 3166-1 alpha-2</a>).
980
     */
981
    @SerializedName("country")
982
    Object country;
983

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

993
    /** Address line 1 (e.g., street, PO Box, or company name). */
994
    @SerializedName("line1")
995
    Object line1;
996

997
    /** Address line 2 (e.g., apartment, suite, unit, or building). */
998
    @SerializedName("line2")
999
    Object line2;
1000

1001
    /** ZIP or postal code. */
1002
    @SerializedName("postal_code")
1003
    Object postalCode;
1004

1005
    /** State, county, province, or region. */
1006
    @SerializedName("state")
1007
    Object state;
1008

1009
    private Address(
1010
        Object city,
1011
        Object country,
1012
        Map<String, Object> extraParams,
1013
        Object line1,
1014
        Object line2,
1015
        Object postalCode,
1016
        Object state) {
×
1017
      this.city = city;
×
1018
      this.country = country;
×
1019
      this.extraParams = extraParams;
×
1020
      this.line1 = line1;
×
1021
      this.line2 = line2;
×
1022
      this.postalCode = postalCode;
×
1023
      this.state = state;
×
1024
    }
×
1025

1026
    public static Builder builder() {
1027
      return new Builder();
×
1028
    }
1029

1030
    public static class Builder {
×
1031
      private Object city;
1032

1033
      private Object country;
1034

1035
      private Map<String, Object> extraParams;
1036

1037
      private Object line1;
1038

1039
      private Object line2;
1040

1041
      private Object postalCode;
1042

1043
      private Object state;
1044

1045
      /** Finalize and obtain parameter instance from this builder. */
1046
      public AccountPersonUpdateParams.Address build() {
1047
        return new AccountPersonUpdateParams.Address(
×
1048
            this.city,
1049
            this.country,
1050
            this.extraParams,
1051
            this.line1,
1052
            this.line2,
1053
            this.postalCode,
1054
            this.state);
1055
      }
1056

1057
      /** City, district, suburb, town, or village. */
1058
      public Builder setCity(String city) {
1059
        this.city = city;
×
1060
        return this;
×
1061
      }
1062

1063
      /** City, district, suburb, town, or village. */
1064
      public Builder setCity(EmptyParam city) {
1065
        this.city = city;
×
1066
        return this;
×
1067
      }
1068

1069
      /**
1070
       * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
1071
       * 3166-1 alpha-2</a>).
1072
       */
1073
      public Builder setCountry(String country) {
1074
        this.country = country;
×
1075
        return this;
×
1076
      }
1077

1078
      /**
1079
       * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
1080
       * 3166-1 alpha-2</a>).
1081
       */
1082
      public Builder setCountry(EmptyParam country) {
1083
        this.country = country;
×
1084
        return this;
×
1085
      }
1086

1087
      /**
1088
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
1089
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
1090
       * AccountPersonUpdateParams.Address#extraParams} for the field documentation.
1091
       */
1092
      public Builder putExtraParam(String key, Object value) {
1093
        if (this.extraParams == null) {
×
1094
          this.extraParams = new HashMap<>();
×
1095
        }
1096
        this.extraParams.put(key, value);
×
1097
        return this;
×
1098
      }
1099

1100
      /**
1101
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1102
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
1103
       * See {@link AccountPersonUpdateParams.Address#extraParams} for the field documentation.
1104
       */
1105
      public Builder putAllExtraParam(Map<String, Object> map) {
1106
        if (this.extraParams == null) {
×
1107
          this.extraParams = new HashMap<>();
×
1108
        }
1109
        this.extraParams.putAll(map);
×
1110
        return this;
×
1111
      }
1112

1113
      /** Address line 1 (e.g., street, PO Box, or company name). */
1114
      public Builder setLine1(String line1) {
1115
        this.line1 = line1;
×
1116
        return this;
×
1117
      }
1118

1119
      /** Address line 1 (e.g., street, PO Box, or company name). */
1120
      public Builder setLine1(EmptyParam line1) {
1121
        this.line1 = line1;
×
1122
        return this;
×
1123
      }
1124

1125
      /** Address line 2 (e.g., apartment, suite, unit, or building). */
1126
      public Builder setLine2(String line2) {
1127
        this.line2 = line2;
×
1128
        return this;
×
1129
      }
1130

1131
      /** Address line 2 (e.g., apartment, suite, unit, or building). */
1132
      public Builder setLine2(EmptyParam line2) {
1133
        this.line2 = line2;
×
1134
        return this;
×
1135
      }
1136

1137
      /** ZIP or postal code. */
1138
      public Builder setPostalCode(String postalCode) {
1139
        this.postalCode = postalCode;
×
1140
        return this;
×
1141
      }
1142

1143
      /** ZIP or postal code. */
1144
      public Builder setPostalCode(EmptyParam postalCode) {
1145
        this.postalCode = postalCode;
×
1146
        return this;
×
1147
      }
1148

1149
      /** State, county, province, or region. */
1150
      public Builder setState(String state) {
1151
        this.state = state;
×
1152
        return this;
×
1153
      }
1154

1155
      /** State, county, province, or region. */
1156
      public Builder setState(EmptyParam state) {
1157
        this.state = state;
×
1158
        return this;
×
1159
      }
1160
    }
1161
  }
1162

1163
  @Getter
1164
  public static class AddressKana {
1165
    /** City or ward. */
1166
    @SerializedName("city")
1167
    Object city;
1168

1169
    /**
1170
     * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
1171
     * 3166-1 alpha-2</a>).
1172
     */
1173
    @SerializedName("country")
1174
    Object country;
1175

1176
    /**
1177
     * Map of extra parameters for custom features not available in this client library. The content
1178
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
1179
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
1180
     * param object. Effectively, this map is flattened to its parent instance.
1181
     */
1182
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1183
    Map<String, Object> extraParams;
1184

1185
    /** Block or building number. */
1186
    @SerializedName("line1")
1187
    Object line1;
1188

1189
    /** Building details. */
1190
    @SerializedName("line2")
1191
    Object line2;
1192

1193
    /** Postal code. */
1194
    @SerializedName("postal_code")
1195
    Object postalCode;
1196

1197
    /** Prefecture. */
1198
    @SerializedName("state")
1199
    Object state;
1200

1201
    /** Town or cho-me. */
1202
    @SerializedName("town")
1203
    Object town;
1204

1205
    private AddressKana(
1206
        Object city,
1207
        Object country,
1208
        Map<String, Object> extraParams,
1209
        Object line1,
1210
        Object line2,
1211
        Object postalCode,
1212
        Object state,
1213
        Object town) {
×
1214
      this.city = city;
×
1215
      this.country = country;
×
1216
      this.extraParams = extraParams;
×
1217
      this.line1 = line1;
×
1218
      this.line2 = line2;
×
1219
      this.postalCode = postalCode;
×
1220
      this.state = state;
×
1221
      this.town = town;
×
1222
    }
×
1223

1224
    public static Builder builder() {
1225
      return new Builder();
×
1226
    }
1227

1228
    public static class Builder {
×
1229
      private Object city;
1230

1231
      private Object country;
1232

1233
      private Map<String, Object> extraParams;
1234

1235
      private Object line1;
1236

1237
      private Object line2;
1238

1239
      private Object postalCode;
1240

1241
      private Object state;
1242

1243
      private Object town;
1244

1245
      /** Finalize and obtain parameter instance from this builder. */
1246
      public AccountPersonUpdateParams.AddressKana build() {
1247
        return new AccountPersonUpdateParams.AddressKana(
×
1248
            this.city,
1249
            this.country,
1250
            this.extraParams,
1251
            this.line1,
1252
            this.line2,
1253
            this.postalCode,
1254
            this.state,
1255
            this.town);
1256
      }
1257

1258
      /** City or ward. */
1259
      public Builder setCity(String city) {
1260
        this.city = city;
×
1261
        return this;
×
1262
      }
1263

1264
      /** City or ward. */
1265
      public Builder setCity(EmptyParam city) {
1266
        this.city = city;
×
1267
        return this;
×
1268
      }
1269

1270
      /**
1271
       * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
1272
       * 3166-1 alpha-2</a>).
1273
       */
1274
      public Builder setCountry(String country) {
1275
        this.country = country;
×
1276
        return this;
×
1277
      }
1278

1279
      /**
1280
       * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
1281
       * 3166-1 alpha-2</a>).
1282
       */
1283
      public Builder setCountry(EmptyParam country) {
1284
        this.country = country;
×
1285
        return this;
×
1286
      }
1287

1288
      /**
1289
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
1290
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
1291
       * AccountPersonUpdateParams.AddressKana#extraParams} for the field documentation.
1292
       */
1293
      public Builder putExtraParam(String key, Object value) {
1294
        if (this.extraParams == null) {
×
1295
          this.extraParams = new HashMap<>();
×
1296
        }
1297
        this.extraParams.put(key, value);
×
1298
        return this;
×
1299
      }
1300

1301
      /**
1302
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1303
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
1304
       * See {@link AccountPersonUpdateParams.AddressKana#extraParams} for the field documentation.
1305
       */
1306
      public Builder putAllExtraParam(Map<String, Object> map) {
1307
        if (this.extraParams == null) {
×
1308
          this.extraParams = new HashMap<>();
×
1309
        }
1310
        this.extraParams.putAll(map);
×
1311
        return this;
×
1312
      }
1313

1314
      /** Block or building number. */
1315
      public Builder setLine1(String line1) {
1316
        this.line1 = line1;
×
1317
        return this;
×
1318
      }
1319

1320
      /** Block or building number. */
1321
      public Builder setLine1(EmptyParam line1) {
1322
        this.line1 = line1;
×
1323
        return this;
×
1324
      }
1325

1326
      /** Building details. */
1327
      public Builder setLine2(String line2) {
1328
        this.line2 = line2;
×
1329
        return this;
×
1330
      }
1331

1332
      /** Building details. */
1333
      public Builder setLine2(EmptyParam line2) {
1334
        this.line2 = line2;
×
1335
        return this;
×
1336
      }
1337

1338
      /** Postal code. */
1339
      public Builder setPostalCode(String postalCode) {
1340
        this.postalCode = postalCode;
×
1341
        return this;
×
1342
      }
1343

1344
      /** Postal code. */
1345
      public Builder setPostalCode(EmptyParam postalCode) {
1346
        this.postalCode = postalCode;
×
1347
        return this;
×
1348
      }
1349

1350
      /** Prefecture. */
1351
      public Builder setState(String state) {
1352
        this.state = state;
×
1353
        return this;
×
1354
      }
1355

1356
      /** Prefecture. */
1357
      public Builder setState(EmptyParam state) {
1358
        this.state = state;
×
1359
        return this;
×
1360
      }
1361

1362
      /** Town or cho-me. */
1363
      public Builder setTown(String town) {
1364
        this.town = town;
×
1365
        return this;
×
1366
      }
1367

1368
      /** Town or cho-me. */
1369
      public Builder setTown(EmptyParam town) {
1370
        this.town = town;
×
1371
        return this;
×
1372
      }
1373
    }
1374
  }
1375

1376
  @Getter
1377
  public static class AddressKanji {
1378
    /** City or ward. */
1379
    @SerializedName("city")
1380
    Object city;
1381

1382
    /**
1383
     * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
1384
     * 3166-1 alpha-2</a>).
1385
     */
1386
    @SerializedName("country")
1387
    Object country;
1388

1389
    /**
1390
     * Map of extra parameters for custom features not available in this client library. The content
1391
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
1392
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
1393
     * param object. Effectively, this map is flattened to its parent instance.
1394
     */
1395
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1396
    Map<String, Object> extraParams;
1397

1398
    /** Block or building number. */
1399
    @SerializedName("line1")
1400
    Object line1;
1401

1402
    /** Building details. */
1403
    @SerializedName("line2")
1404
    Object line2;
1405

1406
    /** Postal code. */
1407
    @SerializedName("postal_code")
1408
    Object postalCode;
1409

1410
    /** Prefecture. */
1411
    @SerializedName("state")
1412
    Object state;
1413

1414
    /** Town or cho-me. */
1415
    @SerializedName("town")
1416
    Object town;
1417

1418
    private AddressKanji(
1419
        Object city,
1420
        Object country,
1421
        Map<String, Object> extraParams,
1422
        Object line1,
1423
        Object line2,
1424
        Object postalCode,
1425
        Object state,
1426
        Object town) {
×
1427
      this.city = city;
×
1428
      this.country = country;
×
1429
      this.extraParams = extraParams;
×
1430
      this.line1 = line1;
×
1431
      this.line2 = line2;
×
1432
      this.postalCode = postalCode;
×
1433
      this.state = state;
×
1434
      this.town = town;
×
1435
    }
×
1436

1437
    public static Builder builder() {
1438
      return new Builder();
×
1439
    }
1440

1441
    public static class Builder {
×
1442
      private Object city;
1443

1444
      private Object country;
1445

1446
      private Map<String, Object> extraParams;
1447

1448
      private Object line1;
1449

1450
      private Object line2;
1451

1452
      private Object postalCode;
1453

1454
      private Object state;
1455

1456
      private Object town;
1457

1458
      /** Finalize and obtain parameter instance from this builder. */
1459
      public AccountPersonUpdateParams.AddressKanji build() {
1460
        return new AccountPersonUpdateParams.AddressKanji(
×
1461
            this.city,
1462
            this.country,
1463
            this.extraParams,
1464
            this.line1,
1465
            this.line2,
1466
            this.postalCode,
1467
            this.state,
1468
            this.town);
1469
      }
1470

1471
      /** City or ward. */
1472
      public Builder setCity(String city) {
1473
        this.city = city;
×
1474
        return this;
×
1475
      }
1476

1477
      /** City or ward. */
1478
      public Builder setCity(EmptyParam city) {
1479
        this.city = city;
×
1480
        return this;
×
1481
      }
1482

1483
      /**
1484
       * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
1485
       * 3166-1 alpha-2</a>).
1486
       */
1487
      public Builder setCountry(String country) {
1488
        this.country = country;
×
1489
        return this;
×
1490
      }
1491

1492
      /**
1493
       * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
1494
       * 3166-1 alpha-2</a>).
1495
       */
1496
      public Builder setCountry(EmptyParam country) {
1497
        this.country = country;
×
1498
        return this;
×
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
       * AccountPersonUpdateParams.AddressKanji#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 AccountPersonUpdateParams.AddressKanji#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
      /** Block or building number. */
1528
      public Builder setLine1(String line1) {
1529
        this.line1 = line1;
×
1530
        return this;
×
1531
      }
1532

1533
      /** Block or building number. */
1534
      public Builder setLine1(EmptyParam line1) {
1535
        this.line1 = line1;
×
1536
        return this;
×
1537
      }
1538

1539
      /** Building details. */
1540
      public Builder setLine2(String line2) {
1541
        this.line2 = line2;
×
1542
        return this;
×
1543
      }
1544

1545
      /** Building details. */
1546
      public Builder setLine2(EmptyParam line2) {
1547
        this.line2 = line2;
×
1548
        return this;
×
1549
      }
1550

1551
      /** Postal code. */
1552
      public Builder setPostalCode(String postalCode) {
1553
        this.postalCode = postalCode;
×
1554
        return this;
×
1555
      }
1556

1557
      /** Postal code. */
1558
      public Builder setPostalCode(EmptyParam postalCode) {
1559
        this.postalCode = postalCode;
×
1560
        return this;
×
1561
      }
1562

1563
      /** Prefecture. */
1564
      public Builder setState(String state) {
1565
        this.state = state;
×
1566
        return this;
×
1567
      }
1568

1569
      /** Prefecture. */
1570
      public Builder setState(EmptyParam state) {
1571
        this.state = state;
×
1572
        return this;
×
1573
      }
1574

1575
      /** Town or cho-me. */
1576
      public Builder setTown(String town) {
1577
        this.town = town;
×
1578
        return this;
×
1579
      }
1580

1581
      /** Town or cho-me. */
1582
      public Builder setTown(EmptyParam town) {
1583
        this.town = town;
×
1584
        return this;
×
1585
      }
1586
    }
1587
  }
1588

1589
  @Getter
1590
  public static class Dob {
1591
    /** <strong>Required.</strong> The day of birth, between 1 and 31. */
1592
    @SerializedName("day")
1593
    Long day;
1594

1595
    /**
1596
     * Map of extra parameters for custom features not available in this client library. The content
1597
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
1598
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
1599
     * param object. Effectively, this map is flattened to its parent instance.
1600
     */
1601
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1602
    Map<String, Object> extraParams;
1603

1604
    /** <strong>Required.</strong> The month of birth, between 1 and 12. */
1605
    @SerializedName("month")
1606
    Long month;
1607

1608
    /** <strong>Required.</strong> The four-digit year of birth. */
1609
    @SerializedName("year")
1610
    Long year;
1611

1612
    private Dob(Long day, Map<String, Object> extraParams, Long month, Long year) {
×
1613
      this.day = day;
×
1614
      this.extraParams = extraParams;
×
1615
      this.month = month;
×
1616
      this.year = year;
×
1617
    }
×
1618

1619
    public static Builder builder() {
1620
      return new Builder();
×
1621
    }
1622

1623
    public static class Builder {
×
1624
      private Long day;
1625

1626
      private Map<String, Object> extraParams;
1627

1628
      private Long month;
1629

1630
      private Long year;
1631

1632
      /** Finalize and obtain parameter instance from this builder. */
1633
      public AccountPersonUpdateParams.Dob build() {
1634
        return new AccountPersonUpdateParams.Dob(this.day, this.extraParams, this.month, this.year);
×
1635
      }
1636

1637
      /** <strong>Required.</strong> The day of birth, between 1 and 31. */
1638
      public Builder setDay(Long day) {
1639
        this.day = day;
×
1640
        return this;
×
1641
      }
1642

1643
      /**
1644
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
1645
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
1646
       * AccountPersonUpdateParams.Dob#extraParams} for the field documentation.
1647
       */
1648
      public Builder putExtraParam(String key, Object value) {
1649
        if (this.extraParams == null) {
×
1650
          this.extraParams = new HashMap<>();
×
1651
        }
1652
        this.extraParams.put(key, value);
×
1653
        return this;
×
1654
      }
1655

1656
      /**
1657
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1658
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
1659
       * See {@link AccountPersonUpdateParams.Dob#extraParams} for the field documentation.
1660
       */
1661
      public Builder putAllExtraParam(Map<String, Object> map) {
1662
        if (this.extraParams == null) {
×
1663
          this.extraParams = new HashMap<>();
×
1664
        }
1665
        this.extraParams.putAll(map);
×
1666
        return this;
×
1667
      }
1668

1669
      /** <strong>Required.</strong> The month of birth, between 1 and 12. */
1670
      public Builder setMonth(Long month) {
1671
        this.month = month;
×
1672
        return this;
×
1673
      }
1674

1675
      /** <strong>Required.</strong> The four-digit year of birth. */
1676
      public Builder setYear(Long year) {
1677
        this.year = year;
×
1678
        return this;
×
1679
      }
1680
    }
1681
  }
1682

1683
  @Getter
1684
  public static class Documents {
1685
    /**
1686
     * One or more documents that demonstrate proof that this person is authorized to represent the
1687
     * company.
1688
     */
1689
    @SerializedName("company_authorization")
1690
    CompanyAuthorization companyAuthorization;
1691

1692
    /**
1693
     * Map of extra parameters for custom features not available in this client library. The content
1694
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
1695
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
1696
     * param object. Effectively, this map is flattened to its parent instance.
1697
     */
1698
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1699
    Map<String, Object> extraParams;
1700

1701
    /** One or more documents showing the person's passport page with photo and personal data. */
1702
    @SerializedName("passport")
1703
    Passport passport;
1704

1705
    /**
1706
     * One or more documents showing the person's visa required for living in the country where they
1707
     * are residing.
1708
     */
1709
    @SerializedName("visa")
1710
    Visa visa;
1711

1712
    private Documents(
1713
        CompanyAuthorization companyAuthorization,
1714
        Map<String, Object> extraParams,
1715
        Passport passport,
1716
        Visa visa) {
×
1717
      this.companyAuthorization = companyAuthorization;
×
1718
      this.extraParams = extraParams;
×
1719
      this.passport = passport;
×
1720
      this.visa = visa;
×
1721
    }
×
1722

1723
    public static Builder builder() {
1724
      return new Builder();
×
1725
    }
1726

1727
    public static class Builder {
×
1728
      private CompanyAuthorization companyAuthorization;
1729

1730
      private Map<String, Object> extraParams;
1731

1732
      private Passport passport;
1733

1734
      private Visa visa;
1735

1736
      /** Finalize and obtain parameter instance from this builder. */
1737
      public AccountPersonUpdateParams.Documents build() {
1738
        return new AccountPersonUpdateParams.Documents(
×
1739
            this.companyAuthorization, this.extraParams, this.passport, this.visa);
1740
      }
1741

1742
      /**
1743
       * One or more documents that demonstrate proof that this person is authorized to represent
1744
       * the company.
1745
       */
1746
      public Builder setCompanyAuthorization(
1747
          AccountPersonUpdateParams.Documents.CompanyAuthorization companyAuthorization) {
1748
        this.companyAuthorization = companyAuthorization;
×
1749
        return this;
×
1750
      }
1751

1752
      /**
1753
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
1754
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
1755
       * AccountPersonUpdateParams.Documents#extraParams} for the field documentation.
1756
       */
1757
      public Builder putExtraParam(String key, Object value) {
1758
        if (this.extraParams == null) {
×
1759
          this.extraParams = new HashMap<>();
×
1760
        }
1761
        this.extraParams.put(key, value);
×
1762
        return this;
×
1763
      }
1764

1765
      /**
1766
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1767
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
1768
       * See {@link AccountPersonUpdateParams.Documents#extraParams} for the field documentation.
1769
       */
1770
      public Builder putAllExtraParam(Map<String, Object> map) {
1771
        if (this.extraParams == null) {
×
1772
          this.extraParams = new HashMap<>();
×
1773
        }
1774
        this.extraParams.putAll(map);
×
1775
        return this;
×
1776
      }
1777

1778
      /** One or more documents showing the person's passport page with photo and personal data. */
1779
      public Builder setPassport(AccountPersonUpdateParams.Documents.Passport passport) {
1780
        this.passport = passport;
×
1781
        return this;
×
1782
      }
1783

1784
      /**
1785
       * One or more documents showing the person's visa required for living in the country where
1786
       * they are residing.
1787
       */
1788
      public Builder setVisa(AccountPersonUpdateParams.Documents.Visa visa) {
1789
        this.visa = visa;
×
1790
        return this;
×
1791
      }
1792
    }
1793

1794
    @Getter
1795
    public static class CompanyAuthorization {
1796
      /**
1797
       * Map of extra parameters for custom features not available in this client library. The
1798
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1799
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1800
       * name in this param object. Effectively, this map is flattened to its parent instance.
1801
       */
1802
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1803
      Map<String, Object> extraParams;
1804

1805
      /**
1806
       * One or more document ids returned by a <a
1807
       * href="https://stripe.com/docs/api#create_file">file upload</a> with a {@code purpose} value
1808
       * of {@code account_requirement}.
1809
       */
1810
      @SerializedName("files")
1811
      List<String> files;
1812

1813
      private CompanyAuthorization(Map<String, Object> extraParams, List<String> files) {
×
1814
        this.extraParams = extraParams;
×
1815
        this.files = files;
×
1816
      }
×
1817

1818
      public static Builder builder() {
1819
        return new Builder();
×
1820
      }
1821

1822
      public static class Builder {
×
1823
        private Map<String, Object> extraParams;
1824

1825
        private List<String> files;
1826

1827
        /** Finalize and obtain parameter instance from this builder. */
1828
        public AccountPersonUpdateParams.Documents.CompanyAuthorization build() {
1829
          return new AccountPersonUpdateParams.Documents.CompanyAuthorization(
×
1830
              this.extraParams, this.files);
1831
        }
1832

1833
        /**
1834
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1835
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1836
         * map. See {@link AccountPersonUpdateParams.Documents.CompanyAuthorization#extraParams} for
1837
         * the field documentation.
1838
         */
1839
        public Builder putExtraParam(String key, Object value) {
1840
          if (this.extraParams == null) {
×
1841
            this.extraParams = new HashMap<>();
×
1842
          }
1843
          this.extraParams.put(key, value);
×
1844
          return this;
×
1845
        }
1846

1847
        /**
1848
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1849
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1850
         * map. See {@link AccountPersonUpdateParams.Documents.CompanyAuthorization#extraParams} for
1851
         * the field documentation.
1852
         */
1853
        public Builder putAllExtraParam(Map<String, Object> map) {
1854
          if (this.extraParams == null) {
×
1855
            this.extraParams = new HashMap<>();
×
1856
          }
1857
          this.extraParams.putAll(map);
×
1858
          return this;
×
1859
        }
1860

1861
        /**
1862
         * Add an element to `files` list. A list is initialized for the first `add/addAll` call,
1863
         * and subsequent calls adds additional elements to the original list. See {@link
1864
         * AccountPersonUpdateParams.Documents.CompanyAuthorization#files} for the field
1865
         * documentation.
1866
         */
1867
        public Builder addFile(String element) {
1868
          if (this.files == null) {
×
1869
            this.files = new ArrayList<>();
×
1870
          }
1871
          this.files.add(element);
×
1872
          return this;
×
1873
        }
1874

1875
        /**
1876
         * Add all elements to `files` list. A list is initialized for the first `add/addAll` call,
1877
         * and subsequent calls adds additional elements to the original list. See {@link
1878
         * AccountPersonUpdateParams.Documents.CompanyAuthorization#files} for the field
1879
         * documentation.
1880
         */
1881
        public Builder addAllFile(List<String> elements) {
1882
          if (this.files == null) {
×
1883
            this.files = new ArrayList<>();
×
1884
          }
1885
          this.files.addAll(elements);
×
1886
          return this;
×
1887
        }
1888
      }
1889
    }
1890

1891
    @Getter
1892
    public static class Passport {
1893
      /**
1894
       * Map of extra parameters for custom features not available in this client library. The
1895
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1896
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1897
       * name in this param object. Effectively, this map is flattened to its parent instance.
1898
       */
1899
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1900
      Map<String, Object> extraParams;
1901

1902
      /**
1903
       * One or more document ids returned by a <a
1904
       * href="https://stripe.com/docs/api#create_file">file upload</a> with a {@code purpose} value
1905
       * of {@code account_requirement}.
1906
       */
1907
      @SerializedName("files")
1908
      List<String> files;
1909

1910
      private Passport(Map<String, Object> extraParams, List<String> files) {
×
1911
        this.extraParams = extraParams;
×
1912
        this.files = files;
×
1913
      }
×
1914

1915
      public static Builder builder() {
1916
        return new Builder();
×
1917
      }
1918

1919
      public static class Builder {
×
1920
        private Map<String, Object> extraParams;
1921

1922
        private List<String> files;
1923

1924
        /** Finalize and obtain parameter instance from this builder. */
1925
        public AccountPersonUpdateParams.Documents.Passport build() {
1926
          return new AccountPersonUpdateParams.Documents.Passport(this.extraParams, this.files);
×
1927
        }
1928

1929
        /**
1930
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
1931
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1932
         * map. See {@link AccountPersonUpdateParams.Documents.Passport#extraParams} for the field
1933
         * documentation.
1934
         */
1935
        public Builder putExtraParam(String key, Object value) {
1936
          if (this.extraParams == null) {
×
1937
            this.extraParams = new HashMap<>();
×
1938
          }
1939
          this.extraParams.put(key, value);
×
1940
          return this;
×
1941
        }
1942

1943
        /**
1944
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
1945
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
1946
         * map. See {@link AccountPersonUpdateParams.Documents.Passport#extraParams} for the field
1947
         * documentation.
1948
         */
1949
        public Builder putAllExtraParam(Map<String, Object> map) {
1950
          if (this.extraParams == null) {
×
1951
            this.extraParams = new HashMap<>();
×
1952
          }
1953
          this.extraParams.putAll(map);
×
1954
          return this;
×
1955
        }
1956

1957
        /**
1958
         * Add an element to `files` list. A list is initialized for the first `add/addAll` call,
1959
         * and subsequent calls adds additional elements to the original list. See {@link
1960
         * AccountPersonUpdateParams.Documents.Passport#files} for the field documentation.
1961
         */
1962
        public Builder addFile(String element) {
1963
          if (this.files == null) {
×
1964
            this.files = new ArrayList<>();
×
1965
          }
1966
          this.files.add(element);
×
1967
          return this;
×
1968
        }
1969

1970
        /**
1971
         * Add all elements to `files` list. A list is initialized for the first `add/addAll` call,
1972
         * and subsequent calls adds additional elements to the original list. See {@link
1973
         * AccountPersonUpdateParams.Documents.Passport#files} for the field documentation.
1974
         */
1975
        public Builder addAllFile(List<String> elements) {
1976
          if (this.files == null) {
×
1977
            this.files = new ArrayList<>();
×
1978
          }
1979
          this.files.addAll(elements);
×
1980
          return this;
×
1981
        }
1982
      }
1983
    }
1984

1985
    @Getter
1986
    public static class Visa {
1987
      /**
1988
       * Map of extra parameters for custom features not available in this client library. The
1989
       * content in this map is not serialized under this field's {@code @SerializedName} value.
1990
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
1991
       * name in this param object. Effectively, this map is flattened to its parent instance.
1992
       */
1993
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
1994
      Map<String, Object> extraParams;
1995

1996
      /**
1997
       * One or more document ids returned by a <a
1998
       * href="https://stripe.com/docs/api#create_file">file upload</a> with a {@code purpose} value
1999
       * of {@code account_requirement}.
2000
       */
2001
      @SerializedName("files")
2002
      List<String> files;
2003

2004
      private Visa(Map<String, Object> extraParams, List<String> files) {
×
2005
        this.extraParams = extraParams;
×
2006
        this.files = files;
×
2007
      }
×
2008

2009
      public static Builder builder() {
2010
        return new Builder();
×
2011
      }
2012

2013
      public static class Builder {
×
2014
        private Map<String, Object> extraParams;
2015

2016
        private List<String> files;
2017

2018
        /** Finalize and obtain parameter instance from this builder. */
2019
        public AccountPersonUpdateParams.Documents.Visa build() {
2020
          return new AccountPersonUpdateParams.Documents.Visa(this.extraParams, this.files);
×
2021
        }
2022

2023
        /**
2024
         * Add a key/value pair to `extraParams` map. A map is initialized for the first
2025
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2026
         * map. See {@link AccountPersonUpdateParams.Documents.Visa#extraParams} for the field
2027
         * documentation.
2028
         */
2029
        public Builder putExtraParam(String key, Object value) {
2030
          if (this.extraParams == null) {
×
2031
            this.extraParams = new HashMap<>();
×
2032
          }
2033
          this.extraParams.put(key, value);
×
2034
          return this;
×
2035
        }
2036

2037
        /**
2038
         * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2039
         * `put/putAll` call, and subsequent calls add additional key/value pairs to the original
2040
         * map. See {@link AccountPersonUpdateParams.Documents.Visa#extraParams} for the field
2041
         * documentation.
2042
         */
2043
        public Builder putAllExtraParam(Map<String, Object> map) {
2044
          if (this.extraParams == null) {
×
2045
            this.extraParams = new HashMap<>();
×
2046
          }
2047
          this.extraParams.putAll(map);
×
2048
          return this;
×
2049
        }
2050

2051
        /**
2052
         * Add an element to `files` list. A list is initialized for the first `add/addAll` call,
2053
         * and subsequent calls adds additional elements to the original list. See {@link
2054
         * AccountPersonUpdateParams.Documents.Visa#files} for the field documentation.
2055
         */
2056
        public Builder addFile(String element) {
2057
          if (this.files == null) {
×
2058
            this.files = new ArrayList<>();
×
2059
          }
2060
          this.files.add(element);
×
2061
          return this;
×
2062
        }
2063

2064
        /**
2065
         * Add all elements to `files` list. A list is initialized for the first `add/addAll` call,
2066
         * and subsequent calls adds additional elements to the original list. See {@link
2067
         * AccountPersonUpdateParams.Documents.Visa#files} for the field documentation.
2068
         */
2069
        public Builder addAllFile(List<String> elements) {
2070
          if (this.files == null) {
×
2071
            this.files = new ArrayList<>();
×
2072
          }
2073
          this.files.addAll(elements);
×
2074
          return this;
×
2075
        }
2076
      }
2077
    }
2078
  }
2079

2080
  @Getter
2081
  public static class RegisteredAddress {
2082
    /** City, district, suburb, town, or village. */
2083
    @SerializedName("city")
2084
    Object city;
2085

2086
    /**
2087
     * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
2088
     * 3166-1 alpha-2</a>).
2089
     */
2090
    @SerializedName("country")
2091
    Object country;
2092

2093
    /**
2094
     * Map of extra parameters for custom features not available in this client library. The content
2095
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
2096
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
2097
     * param object. Effectively, this map is flattened to its parent instance.
2098
     */
2099
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2100
    Map<String, Object> extraParams;
2101

2102
    /** Address line 1 (e.g., street, PO Box, or company name). */
2103
    @SerializedName("line1")
2104
    Object line1;
2105

2106
    /** Address line 2 (e.g., apartment, suite, unit, or building). */
2107
    @SerializedName("line2")
2108
    Object line2;
2109

2110
    /** ZIP or postal code. */
2111
    @SerializedName("postal_code")
2112
    Object postalCode;
2113

2114
    /** State, county, province, or region. */
2115
    @SerializedName("state")
2116
    Object state;
2117

2118
    private RegisteredAddress(
2119
        Object city,
2120
        Object country,
2121
        Map<String, Object> extraParams,
2122
        Object line1,
2123
        Object line2,
2124
        Object postalCode,
2125
        Object state) {
×
2126
      this.city = city;
×
2127
      this.country = country;
×
2128
      this.extraParams = extraParams;
×
2129
      this.line1 = line1;
×
2130
      this.line2 = line2;
×
2131
      this.postalCode = postalCode;
×
2132
      this.state = state;
×
2133
    }
×
2134

2135
    public static Builder builder() {
2136
      return new Builder();
×
2137
    }
2138

2139
    public static class Builder {
×
2140
      private Object city;
2141

2142
      private Object country;
2143

2144
      private Map<String, Object> extraParams;
2145

2146
      private Object line1;
2147

2148
      private Object line2;
2149

2150
      private Object postalCode;
2151

2152
      private Object state;
2153

2154
      /** Finalize and obtain parameter instance from this builder. */
2155
      public AccountPersonUpdateParams.RegisteredAddress build() {
2156
        return new AccountPersonUpdateParams.RegisteredAddress(
×
2157
            this.city,
2158
            this.country,
2159
            this.extraParams,
2160
            this.line1,
2161
            this.line2,
2162
            this.postalCode,
2163
            this.state);
2164
      }
2165

2166
      /** City, district, suburb, town, or village. */
2167
      public Builder setCity(String city) {
2168
        this.city = city;
×
2169
        return this;
×
2170
      }
2171

2172
      /** City, district, suburb, town, or village. */
2173
      public Builder setCity(EmptyParam city) {
2174
        this.city = city;
×
2175
        return this;
×
2176
      }
2177

2178
      /**
2179
       * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
2180
       * 3166-1 alpha-2</a>).
2181
       */
2182
      public Builder setCountry(String country) {
2183
        this.country = country;
×
2184
        return this;
×
2185
      }
2186

2187
      /**
2188
       * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
2189
       * 3166-1 alpha-2</a>).
2190
       */
2191
      public Builder setCountry(EmptyParam country) {
2192
        this.country = country;
×
2193
        return this;
×
2194
      }
2195

2196
      /**
2197
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
2198
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
2199
       * AccountPersonUpdateParams.RegisteredAddress#extraParams} for the field documentation.
2200
       */
2201
      public Builder putExtraParam(String key, Object value) {
2202
        if (this.extraParams == null) {
×
2203
          this.extraParams = new HashMap<>();
×
2204
        }
2205
        this.extraParams.put(key, value);
×
2206
        return this;
×
2207
      }
2208

2209
      /**
2210
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2211
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
2212
       * See {@link AccountPersonUpdateParams.RegisteredAddress#extraParams} for the field
2213
       * documentation.
2214
       */
2215
      public Builder putAllExtraParam(Map<String, Object> map) {
2216
        if (this.extraParams == null) {
×
2217
          this.extraParams = new HashMap<>();
×
2218
        }
2219
        this.extraParams.putAll(map);
×
2220
        return this;
×
2221
      }
2222

2223
      /** Address line 1 (e.g., street, PO Box, or company name). */
2224
      public Builder setLine1(String line1) {
2225
        this.line1 = line1;
×
2226
        return this;
×
2227
      }
2228

2229
      /** Address line 1 (e.g., street, PO Box, or company name). */
2230
      public Builder setLine1(EmptyParam line1) {
2231
        this.line1 = line1;
×
2232
        return this;
×
2233
      }
2234

2235
      /** Address line 2 (e.g., apartment, suite, unit, or building). */
2236
      public Builder setLine2(String line2) {
2237
        this.line2 = line2;
×
2238
        return this;
×
2239
      }
2240

2241
      /** Address line 2 (e.g., apartment, suite, unit, or building). */
2242
      public Builder setLine2(EmptyParam line2) {
2243
        this.line2 = line2;
×
2244
        return this;
×
2245
      }
2246

2247
      /** ZIP or postal code. */
2248
      public Builder setPostalCode(String postalCode) {
2249
        this.postalCode = postalCode;
×
2250
        return this;
×
2251
      }
2252

2253
      /** ZIP or postal code. */
2254
      public Builder setPostalCode(EmptyParam postalCode) {
2255
        this.postalCode = postalCode;
×
2256
        return this;
×
2257
      }
2258

2259
      /** State, county, province, or region. */
2260
      public Builder setState(String state) {
2261
        this.state = state;
×
2262
        return this;
×
2263
      }
2264

2265
      /** State, county, province, or region. */
2266
      public Builder setState(EmptyParam state) {
2267
        this.state = state;
×
2268
        return this;
×
2269
      }
2270
    }
2271
  }
2272

2273
  @Getter
2274
  public static class Relationship {
2275
    /** Whether the person is the authorizer of the account's representative. */
2276
    @SerializedName("authorizer")
2277
    Boolean authorizer;
2278

2279
    /**
2280
     * Whether the person is a director of the account's legal entity. Directors are typically
2281
     * members of the governing board of the company, or responsible for ensuring the company meets
2282
     * its regulatory obligations.
2283
     */
2284
    @SerializedName("director")
2285
    Boolean director;
2286

2287
    /**
2288
     * Whether the person has significant responsibility to control, manage, or direct the
2289
     * organization.
2290
     */
2291
    @SerializedName("executive")
2292
    Boolean executive;
2293

2294
    /**
2295
     * Map of extra parameters for custom features not available in this client library. The content
2296
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
2297
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
2298
     * param object. Effectively, this map is flattened to its parent instance.
2299
     */
2300
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2301
    Map<String, Object> extraParams;
2302

2303
    /** Whether the person is the legal guardian of the account's representative. */
2304
    @SerializedName("legal_guardian")
2305
    Boolean legalGuardian;
2306

2307
    /** Whether the person is an owner of the account’s legal entity. */
2308
    @SerializedName("owner")
2309
    Boolean owner;
2310

2311
    /** The percent owned by the person of the account's legal entity. */
2312
    @SerializedName("percent_ownership")
2313
    Object percentOwnership;
2314

2315
    /**
2316
     * Whether the person is authorized as the primary representative of the account. This is the
2317
     * person nominated by the business to provide information about themselves, and general
2318
     * information about the account. There can only be one representative at any given time. At the
2319
     * time the account is created, this person should be set to the person responsible for opening
2320
     * the account.
2321
     */
2322
    @SerializedName("representative")
2323
    Boolean representative;
2324

2325
    /** The person's title (e.g., CEO, Support Engineer). */
2326
    @SerializedName("title")
2327
    Object title;
2328

2329
    private Relationship(
2330
        Boolean authorizer,
2331
        Boolean director,
2332
        Boolean executive,
2333
        Map<String, Object> extraParams,
2334
        Boolean legalGuardian,
2335
        Boolean owner,
2336
        Object percentOwnership,
2337
        Boolean representative,
2338
        Object title) {
×
NEW
2339
      this.authorizer = authorizer;
×
2340
      this.director = director;
×
2341
      this.executive = executive;
×
2342
      this.extraParams = extraParams;
×
2343
      this.legalGuardian = legalGuardian;
×
2344
      this.owner = owner;
×
2345
      this.percentOwnership = percentOwnership;
×
2346
      this.representative = representative;
×
2347
      this.title = title;
×
2348
    }
×
2349

2350
    public static Builder builder() {
2351
      return new Builder();
×
2352
    }
2353

2354
    public static class Builder {
×
2355
      private Boolean authorizer;
2356

2357
      private Boolean director;
2358

2359
      private Boolean executive;
2360

2361
      private Map<String, Object> extraParams;
2362

2363
      private Boolean legalGuardian;
2364

2365
      private Boolean owner;
2366

2367
      private Object percentOwnership;
2368

2369
      private Boolean representative;
2370

2371
      private Object title;
2372

2373
      /** Finalize and obtain parameter instance from this builder. */
2374
      public AccountPersonUpdateParams.Relationship build() {
2375
        return new AccountPersonUpdateParams.Relationship(
×
2376
            this.authorizer,
2377
            this.director,
2378
            this.executive,
2379
            this.extraParams,
2380
            this.legalGuardian,
2381
            this.owner,
2382
            this.percentOwnership,
2383
            this.representative,
2384
            this.title);
2385
      }
2386

2387
      /** Whether the person is the authorizer of the account's representative. */
2388
      public Builder setAuthorizer(Boolean authorizer) {
NEW
2389
        this.authorizer = authorizer;
×
NEW
2390
        return this;
×
2391
      }
2392

2393
      /**
2394
       * Whether the person is a director of the account's legal entity. Directors are typically
2395
       * members of the governing board of the company, or responsible for ensuring the company
2396
       * meets its regulatory obligations.
2397
       */
2398
      public Builder setDirector(Boolean director) {
2399
        this.director = director;
×
2400
        return this;
×
2401
      }
2402

2403
      /**
2404
       * Whether the person has significant responsibility to control, manage, or direct the
2405
       * organization.
2406
       */
2407
      public Builder setExecutive(Boolean executive) {
2408
        this.executive = executive;
×
2409
        return this;
×
2410
      }
2411

2412
      /**
2413
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
2414
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
2415
       * AccountPersonUpdateParams.Relationship#extraParams} for the field documentation.
2416
       */
2417
      public Builder putExtraParam(String key, Object value) {
2418
        if (this.extraParams == null) {
×
2419
          this.extraParams = new HashMap<>();
×
2420
        }
2421
        this.extraParams.put(key, value);
×
2422
        return this;
×
2423
      }
2424

2425
      /**
2426
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2427
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
2428
       * See {@link AccountPersonUpdateParams.Relationship#extraParams} for the field documentation.
2429
       */
2430
      public Builder putAllExtraParam(Map<String, Object> map) {
2431
        if (this.extraParams == null) {
×
2432
          this.extraParams = new HashMap<>();
×
2433
        }
2434
        this.extraParams.putAll(map);
×
2435
        return this;
×
2436
      }
2437

2438
      /** Whether the person is the legal guardian of the account's representative. */
2439
      public Builder setLegalGuardian(Boolean legalGuardian) {
2440
        this.legalGuardian = legalGuardian;
×
2441
        return this;
×
2442
      }
2443

2444
      /** Whether the person is an owner of the account’s legal entity. */
2445
      public Builder setOwner(Boolean owner) {
2446
        this.owner = owner;
×
2447
        return this;
×
2448
      }
2449

2450
      /** The percent owned by the person of the account's legal entity. */
2451
      public Builder setPercentOwnership(BigDecimal percentOwnership) {
2452
        this.percentOwnership = percentOwnership;
×
2453
        return this;
×
2454
      }
2455

2456
      /** The percent owned by the person of the account's legal entity. */
2457
      public Builder setPercentOwnership(EmptyParam percentOwnership) {
2458
        this.percentOwnership = percentOwnership;
×
2459
        return this;
×
2460
      }
2461

2462
      /**
2463
       * Whether the person is authorized as the primary representative of the account. This is the
2464
       * person nominated by the business to provide information about themselves, and general
2465
       * information about the account. There can only be one representative at any given time. At
2466
       * the time the account is created, this person should be set to the person responsible for
2467
       * opening the account.
2468
       */
2469
      public Builder setRepresentative(Boolean representative) {
2470
        this.representative = representative;
×
2471
        return this;
×
2472
      }
2473

2474
      /** The person's title (e.g., CEO, Support Engineer). */
2475
      public Builder setTitle(String title) {
2476
        this.title = title;
×
2477
        return this;
×
2478
      }
2479

2480
      /** The person's title (e.g., CEO, Support Engineer). */
2481
      public Builder setTitle(EmptyParam title) {
2482
        this.title = title;
×
2483
        return this;
×
2484
      }
2485
    }
2486
  }
2487

2488
  @Getter
2489
  public static class Verification {
2490
    /**
2491
     * A document showing address, either a passport, local ID card, or utility bill from a
2492
     * well-known utility company.
2493
     */
2494
    @SerializedName("additional_document")
2495
    AdditionalDocument additionalDocument;
2496

2497
    /** An identifying document, either a passport or local ID card. */
2498
    @SerializedName("document")
2499
    Document document;
2500

2501
    /**
2502
     * Map of extra parameters for custom features not available in this client library. The content
2503
     * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
2504
     * key/value pair is serialized as if the key is a root-level field (serialized) name in this
2505
     * param object. Effectively, this map is flattened to its parent instance.
2506
     */
2507
    @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2508
    Map<String, Object> extraParams;
2509

2510
    private Verification(
2511
        AdditionalDocument additionalDocument, Document document, Map<String, Object> extraParams) {
×
2512
      this.additionalDocument = additionalDocument;
×
2513
      this.document = document;
×
2514
      this.extraParams = extraParams;
×
2515
    }
×
2516

2517
    public static Builder builder() {
2518
      return new Builder();
×
2519
    }
2520

2521
    public static class Builder {
×
2522
      private AdditionalDocument additionalDocument;
2523

2524
      private Document document;
2525

2526
      private Map<String, Object> extraParams;
2527

2528
      /** Finalize and obtain parameter instance from this builder. */
2529
      public AccountPersonUpdateParams.Verification build() {
2530
        return new AccountPersonUpdateParams.Verification(
×
2531
            this.additionalDocument, this.document, this.extraParams);
2532
      }
2533

2534
      /**
2535
       * A document showing address, either a passport, local ID card, or utility bill from a
2536
       * well-known utility company.
2537
       */
2538
      public Builder setAdditionalDocument(
2539
          AccountPersonUpdateParams.Verification.AdditionalDocument additionalDocument) {
2540
        this.additionalDocument = additionalDocument;
×
2541
        return this;
×
2542
      }
2543

2544
      /** An identifying document, either a passport or local ID card. */
2545
      public Builder setDocument(AccountPersonUpdateParams.Verification.Document document) {
2546
        this.document = document;
×
2547
        return this;
×
2548
      }
2549

2550
      /**
2551
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
2552
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
2553
       * AccountPersonUpdateParams.Verification#extraParams} for the field documentation.
2554
       */
2555
      public Builder putExtraParam(String key, Object value) {
2556
        if (this.extraParams == null) {
×
2557
          this.extraParams = new HashMap<>();
×
2558
        }
2559
        this.extraParams.put(key, value);
×
2560
        return this;
×
2561
      }
2562

2563
      /**
2564
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2565
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
2566
       * See {@link AccountPersonUpdateParams.Verification#extraParams} for the field documentation.
2567
       */
2568
      public Builder putAllExtraParam(Map<String, Object> map) {
2569
        if (this.extraParams == null) {
×
2570
          this.extraParams = new HashMap<>();
×
2571
        }
2572
        this.extraParams.putAll(map);
×
2573
        return this;
×
2574
      }
2575
    }
2576

2577
    @Getter
2578
    public static class AdditionalDocument {
2579
      /**
2580
       * The back of an ID returned by a <a href="https://stripe.com/docs/api#create_file">file
2581
       * upload</a> with a {@code purpose} value of {@code identity_document}. The uploaded file
2582
       * needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format,
2583
       * and less than 10 MB in size.
2584
       */
2585
      @SerializedName("back")
2586
      Object back;
2587

2588
      /**
2589
       * Map of extra parameters for custom features not available in this client library. The
2590
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2591
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2592
       * name in this param object. Effectively, this map is flattened to its parent instance.
2593
       */
2594
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2595
      Map<String, Object> extraParams;
2596

2597
      /**
2598
       * The front of an ID returned by a <a href="https://stripe.com/docs/api#create_file">file
2599
       * upload</a> with a {@code purpose} value of {@code identity_document}. The uploaded file
2600
       * needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format,
2601
       * and less than 10 MB in size.
2602
       */
2603
      @SerializedName("front")
2604
      Object front;
2605

2606
      private AdditionalDocument(Object back, Map<String, Object> extraParams, Object front) {
×
2607
        this.back = back;
×
2608
        this.extraParams = extraParams;
×
2609
        this.front = front;
×
2610
      }
×
2611

2612
      public static Builder builder() {
2613
        return new Builder();
×
2614
      }
2615

2616
      public static class Builder {
×
2617
        private Object back;
2618

2619
        private Map<String, Object> extraParams;
2620

2621
        private Object front;
2622

2623
        /** Finalize and obtain parameter instance from this builder. */
2624
        public AccountPersonUpdateParams.Verification.AdditionalDocument build() {
2625
          return new AccountPersonUpdateParams.Verification.AdditionalDocument(
×
2626
              this.back, this.extraParams, this.front);
2627
        }
2628

2629
        /**
2630
         * The back of an ID returned by a <a href="https://stripe.com/docs/api#create_file">file
2631
         * upload</a> with a {@code purpose} value of {@code identity_document}. The uploaded file
2632
         * needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format,
2633
         * and less than 10 MB in size.
2634
         */
2635
        public Builder setBack(String back) {
2636
          this.back = back;
×
2637
          return this;
×
2638
        }
2639

2640
        /**
2641
         * The back of an ID returned by a <a href="https://stripe.com/docs/api#create_file">file
2642
         * upload</a> with a {@code purpose} value of {@code identity_document}. The uploaded file
2643
         * needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format,
2644
         * and less than 10 MB in size.
2645
         */
2646
        public Builder setBack(EmptyParam back) {
2647
          this.back = back;
×
2648
          return this;
×
2649
        }
2650

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

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

2679
        /**
2680
         * The front of an ID returned by a <a href="https://stripe.com/docs/api#create_file">file
2681
         * upload</a> with a {@code purpose} value of {@code identity_document}. The uploaded file
2682
         * needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format,
2683
         * and less than 10 MB in size.
2684
         */
2685
        public Builder setFront(String front) {
2686
          this.front = front;
×
2687
          return this;
×
2688
        }
2689

2690
        /**
2691
         * The front of an ID returned by a <a href="https://stripe.com/docs/api#create_file">file
2692
         * upload</a> with a {@code purpose} value of {@code identity_document}. The uploaded file
2693
         * needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format,
2694
         * and less than 10 MB in size.
2695
         */
2696
        public Builder setFront(EmptyParam front) {
2697
          this.front = front;
×
2698
          return this;
×
2699
        }
2700
      }
2701
    }
2702

2703
    @Getter
2704
    public static class Document {
2705
      /**
2706
       * The back of an ID returned by a <a href="https://stripe.com/docs/api#create_file">file
2707
       * upload</a> with a {@code purpose} value of {@code identity_document}. The uploaded file
2708
       * needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format,
2709
       * and less than 10 MB in size.
2710
       */
2711
      @SerializedName("back")
2712
      Object back;
2713

2714
      /**
2715
       * Map of extra parameters for custom features not available in this client library. The
2716
       * content in this map is not serialized under this field's {@code @SerializedName} value.
2717
       * Instead, each key/value pair is serialized as if the key is a root-level field (serialized)
2718
       * name in this param object. Effectively, this map is flattened to its parent instance.
2719
       */
2720
      @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
2721
      Map<String, Object> extraParams;
2722

2723
      /**
2724
       * The front of an ID returned by a <a href="https://stripe.com/docs/api#create_file">file
2725
       * upload</a> with a {@code purpose} value of {@code identity_document}. The uploaded file
2726
       * needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format,
2727
       * and less than 10 MB in size.
2728
       */
2729
      @SerializedName("front")
2730
      Object front;
2731

2732
      private Document(Object back, Map<String, Object> extraParams, Object front) {
×
2733
        this.back = back;
×
2734
        this.extraParams = extraParams;
×
2735
        this.front = front;
×
2736
      }
×
2737

2738
      public static Builder builder() {
2739
        return new Builder();
×
2740
      }
2741

2742
      public static class Builder {
×
2743
        private Object back;
2744

2745
        private Map<String, Object> extraParams;
2746

2747
        private Object front;
2748

2749
        /** Finalize and obtain parameter instance from this builder. */
2750
        public AccountPersonUpdateParams.Verification.Document build() {
2751
          return new AccountPersonUpdateParams.Verification.Document(
×
2752
              this.back, this.extraParams, this.front);
2753
        }
2754

2755
        /**
2756
         * The back of an ID returned by a <a href="https://stripe.com/docs/api#create_file">file
2757
         * upload</a> with a {@code purpose} value of {@code identity_document}. The uploaded file
2758
         * needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format,
2759
         * and less than 10 MB in size.
2760
         */
2761
        public Builder setBack(String back) {
2762
          this.back = back;
×
2763
          return this;
×
2764
        }
2765

2766
        /**
2767
         * The back of an ID returned by a <a href="https://stripe.com/docs/api#create_file">file
2768
         * upload</a> with a {@code purpose} value of {@code identity_document}. The uploaded file
2769
         * needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format,
2770
         * and less than 10 MB in size.
2771
         */
2772
        public Builder setBack(EmptyParam back) {
2773
          this.back = back;
×
2774
          return this;
×
2775
        }
2776

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

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

2805
        /**
2806
         * The front of an ID returned by a <a href="https://stripe.com/docs/api#create_file">file
2807
         * upload</a> with a {@code purpose} value of {@code identity_document}. The uploaded file
2808
         * needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format,
2809
         * and less than 10 MB in size.
2810
         */
2811
        public Builder setFront(String front) {
2812
          this.front = front;
×
2813
          return this;
×
2814
        }
2815

2816
        /**
2817
         * The front of an ID returned by a <a href="https://stripe.com/docs/api#create_file">file
2818
         * upload</a> with a {@code purpose} value of {@code identity_document}. The uploaded file
2819
         * needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format,
2820
         * and less than 10 MB in size.
2821
         */
2822
        public Builder setFront(EmptyParam front) {
2823
          this.front = front;
×
2824
          return this;
×
2825
        }
2826
      }
2827
    }
2828
  }
2829
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc