• 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/PersonUpdateParams.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 PersonUpdateParams 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 PersonUpdateParams(
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 PersonUpdateParams build() {
295
      return new PersonUpdateParams(
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
        PersonUpdateParams.AdditionalTosAcceptances additionalTosAcceptances) {
332
      this.additionalTosAcceptances = additionalTosAcceptances;
×
333
      return this;
×
334
    }
335

336
    /** The person's address. */
337
    public Builder setAddress(PersonUpdateParams.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(PersonUpdateParams.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(PersonUpdateParams.AddressKanji addressKanji) {
350
      this.addressKanji = addressKanji;
×
351
      return this;
×
352
    }
353

354
    /** The person's date of birth. */
355
    public Builder setDob(PersonUpdateParams.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(PersonUpdateParams.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
     * PersonUpdateParams#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
     * PersonUpdateParams#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
     * PersonUpdateParams#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 PersonUpdateParams#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
     * PersonUpdateParams#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
     * PersonUpdateParams#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
     * PersonUpdateParams#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 PersonUpdateParams#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(PersonUpdateParams.RegisteredAddress registeredAddress) {
746
      this.registeredAddress = registeredAddress;
×
747
      return this;
×
748
    }
749

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

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

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

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

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

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

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

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

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

802
      private Map<String, Object> extraParams;
803

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

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

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

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

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

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

860
      /** The IP address from which the account representative accepted the service agreement. */
861
      @SerializedName("ip")
862
      Object ip;
863

864
      /**
865
       * The user agent of the browser from which the account representative accepted the service
866
       * agreement.
867
       */
868
      @SerializedName("user_agent")
869
      Object userAgent;
870

871
      private Account(Long date, Map<String, Object> extraParams, Object ip, Object userAgent) {
×
872
        this.date = date;
×
873
        this.extraParams = extraParams;
×
874
        this.ip = ip;
×
875
        this.userAgent = userAgent;
×
876
      }
×
877

878
      public static Builder builder() {
879
        return new Builder();
×
880
      }
881

882
      public static class Builder {
×
883
        private Long date;
884

885
        private Map<String, Object> extraParams;
886

887
        private Object ip;
888

889
        private Object userAgent;
890

891
        /** Finalize and obtain parameter instance from this builder. */
892
        public PersonUpdateParams.AdditionalTosAcceptances.Account build() {
893
          return new PersonUpdateParams.AdditionalTosAcceptances.Account(
×
894
              this.date, this.extraParams, this.ip, this.userAgent);
895
        }
896

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

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

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

934
        /** The IP address from which the account representative accepted the service agreement. */
935
        public Builder setIp(String ip) {
936
          this.ip = ip;
×
937
          return this;
×
938
        }
939

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

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

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

967
  @Getter
968
  public static class Address {
969
    /** City, district, suburb, town, or village. */
970
    @SerializedName("city")
971
    Object city;
972

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

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

989
    /** Address line 1 (e.g., street, PO Box, or company name). */
990
    @SerializedName("line1")
991
    Object line1;
992

993
    /** Address line 2 (e.g., apartment, suite, unit, or building). */
994
    @SerializedName("line2")
995
    Object line2;
996

997
    /** ZIP or postal code. */
998
    @SerializedName("postal_code")
999
    Object postalCode;
1000

1001
    /** State, county, province, or region. */
1002
    @SerializedName("state")
1003
    Object state;
1004

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

1022
    public static Builder builder() {
1023
      return new Builder();
×
1024
    }
1025

1026
    public static class Builder {
×
1027
      private Object city;
1028

1029
      private Object country;
1030

1031
      private Map<String, Object> extraParams;
1032

1033
      private Object line1;
1034

1035
      private Object line2;
1036

1037
      private Object postalCode;
1038

1039
      private Object state;
1040

1041
      /** Finalize and obtain parameter instance from this builder. */
1042
      public PersonUpdateParams.Address build() {
1043
        return new PersonUpdateParams.Address(
×
1044
            this.city,
1045
            this.country,
1046
            this.extraParams,
1047
            this.line1,
1048
            this.line2,
1049
            this.postalCode,
1050
            this.state);
1051
      }
1052

1053
      /** City, district, suburb, town, or village. */
1054
      public Builder setCity(String city) {
1055
        this.city = city;
×
1056
        return this;
×
1057
      }
1058

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

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

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

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

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

1109
      /** Address line 1 (e.g., street, PO Box, or company name). */
1110
      public Builder setLine1(String line1) {
1111
        this.line1 = line1;
×
1112
        return this;
×
1113
      }
1114

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

1121
      /** Address line 2 (e.g., apartment, suite, unit, or building). */
1122
      public Builder setLine2(String line2) {
1123
        this.line2 = line2;
×
1124
        return this;
×
1125
      }
1126

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

1133
      /** ZIP or postal code. */
1134
      public Builder setPostalCode(String postalCode) {
1135
        this.postalCode = postalCode;
×
1136
        return this;
×
1137
      }
1138

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

1145
      /** State, county, province, or region. */
1146
      public Builder setState(String state) {
1147
        this.state = state;
×
1148
        return this;
×
1149
      }
1150

1151
      /** State, county, province, or region. */
1152
      public Builder setState(EmptyParam state) {
1153
        this.state = state;
×
1154
        return this;
×
1155
      }
1156
    }
1157
  }
1158

1159
  @Getter
1160
  public static class AddressKana {
1161
    /** City or ward. */
1162
    @SerializedName("city")
1163
    Object city;
1164

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

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

1181
    /** Block or building number. */
1182
    @SerializedName("line1")
1183
    Object line1;
1184

1185
    /** Building details. */
1186
    @SerializedName("line2")
1187
    Object line2;
1188

1189
    /** Postal code. */
1190
    @SerializedName("postal_code")
1191
    Object postalCode;
1192

1193
    /** Prefecture. */
1194
    @SerializedName("state")
1195
    Object state;
1196

1197
    /** Town or cho-me. */
1198
    @SerializedName("town")
1199
    Object town;
1200

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

1220
    public static Builder builder() {
1221
      return new Builder();
×
1222
    }
1223

1224
    public static class Builder {
×
1225
      private Object city;
1226

1227
      private Object country;
1228

1229
      private Map<String, Object> extraParams;
1230

1231
      private Object line1;
1232

1233
      private Object line2;
1234

1235
      private Object postalCode;
1236

1237
      private Object state;
1238

1239
      private Object town;
1240

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

1254
      /** City or ward. */
1255
      public Builder setCity(String city) {
1256
        this.city = city;
×
1257
        return this;
×
1258
      }
1259

1260
      /** City or ward. */
1261
      public Builder setCity(EmptyParam city) {
1262
        this.city = city;
×
1263
        return this;
×
1264
      }
1265

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

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

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

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

1310
      /** Block or building number. */
1311
      public Builder setLine1(String line1) {
1312
        this.line1 = line1;
×
1313
        return this;
×
1314
      }
1315

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

1322
      /** Building details. */
1323
      public Builder setLine2(String line2) {
1324
        this.line2 = line2;
×
1325
        return this;
×
1326
      }
1327

1328
      /** Building details. */
1329
      public Builder setLine2(EmptyParam line2) {
1330
        this.line2 = line2;
×
1331
        return this;
×
1332
      }
1333

1334
      /** Postal code. */
1335
      public Builder setPostalCode(String postalCode) {
1336
        this.postalCode = postalCode;
×
1337
        return this;
×
1338
      }
1339

1340
      /** Postal code. */
1341
      public Builder setPostalCode(EmptyParam postalCode) {
1342
        this.postalCode = postalCode;
×
1343
        return this;
×
1344
      }
1345

1346
      /** Prefecture. */
1347
      public Builder setState(String state) {
1348
        this.state = state;
×
1349
        return this;
×
1350
      }
1351

1352
      /** Prefecture. */
1353
      public Builder setState(EmptyParam state) {
1354
        this.state = state;
×
1355
        return this;
×
1356
      }
1357

1358
      /** Town or cho-me. */
1359
      public Builder setTown(String town) {
1360
        this.town = town;
×
1361
        return this;
×
1362
      }
1363

1364
      /** Town or cho-me. */
1365
      public Builder setTown(EmptyParam town) {
1366
        this.town = town;
×
1367
        return this;
×
1368
      }
1369
    }
1370
  }
1371

1372
  @Getter
1373
  public static class AddressKanji {
1374
    /** City or ward. */
1375
    @SerializedName("city")
1376
    Object city;
1377

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

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

1394
    /** Block or building number. */
1395
    @SerializedName("line1")
1396
    Object line1;
1397

1398
    /** Building details. */
1399
    @SerializedName("line2")
1400
    Object line2;
1401

1402
    /** Postal code. */
1403
    @SerializedName("postal_code")
1404
    Object postalCode;
1405

1406
    /** Prefecture. */
1407
    @SerializedName("state")
1408
    Object state;
1409

1410
    /** Town or cho-me. */
1411
    @SerializedName("town")
1412
    Object town;
1413

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

1433
    public static Builder builder() {
1434
      return new Builder();
×
1435
    }
1436

1437
    public static class Builder {
×
1438
      private Object city;
1439

1440
      private Object country;
1441

1442
      private Map<String, Object> extraParams;
1443

1444
      private Object line1;
1445

1446
      private Object line2;
1447

1448
      private Object postalCode;
1449

1450
      private Object state;
1451

1452
      private Object town;
1453

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

1467
      /** City or ward. */
1468
      public Builder setCity(String city) {
1469
        this.city = city;
×
1470
        return this;
×
1471
      }
1472

1473
      /** City or ward. */
1474
      public Builder setCity(EmptyParam city) {
1475
        this.city = city;
×
1476
        return this;
×
1477
      }
1478

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

1488
      /**
1489
       * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
1490
       * 3166-1 alpha-2</a>).
1491
       */
1492
      public Builder setCountry(EmptyParam country) {
1493
        this.country = country;
×
1494
        return this;
×
1495
      }
1496

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

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

1523
      /** Block or building number. */
1524
      public Builder setLine1(String line1) {
1525
        this.line1 = line1;
×
1526
        return this;
×
1527
      }
1528

1529
      /** Block or building number. */
1530
      public Builder setLine1(EmptyParam line1) {
1531
        this.line1 = line1;
×
1532
        return this;
×
1533
      }
1534

1535
      /** Building details. */
1536
      public Builder setLine2(String line2) {
1537
        this.line2 = line2;
×
1538
        return this;
×
1539
      }
1540

1541
      /** Building details. */
1542
      public Builder setLine2(EmptyParam line2) {
1543
        this.line2 = line2;
×
1544
        return this;
×
1545
      }
1546

1547
      /** Postal code. */
1548
      public Builder setPostalCode(String postalCode) {
1549
        this.postalCode = postalCode;
×
1550
        return this;
×
1551
      }
1552

1553
      /** Postal code. */
1554
      public Builder setPostalCode(EmptyParam postalCode) {
1555
        this.postalCode = postalCode;
×
1556
        return this;
×
1557
      }
1558

1559
      /** Prefecture. */
1560
      public Builder setState(String state) {
1561
        this.state = state;
×
1562
        return this;
×
1563
      }
1564

1565
      /** Prefecture. */
1566
      public Builder setState(EmptyParam state) {
1567
        this.state = state;
×
1568
        return this;
×
1569
      }
1570

1571
      /** Town or cho-me. */
1572
      public Builder setTown(String town) {
1573
        this.town = town;
×
1574
        return this;
×
1575
      }
1576

1577
      /** Town or cho-me. */
1578
      public Builder setTown(EmptyParam town) {
1579
        this.town = town;
×
1580
        return this;
×
1581
      }
1582
    }
1583
  }
1584

1585
  @Getter
1586
  public static class Dob {
1587
    /** <strong>Required.</strong> The day of birth, between 1 and 31. */
1588
    @SerializedName("day")
1589
    Long day;
1590

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

1600
    /** <strong>Required.</strong> The month of birth, between 1 and 12. */
1601
    @SerializedName("month")
1602
    Long month;
1603

1604
    /** <strong>Required.</strong> The four-digit year of birth. */
1605
    @SerializedName("year")
1606
    Long year;
1607

1608
    private Dob(Long day, Map<String, Object> extraParams, Long month, Long year) {
×
1609
      this.day = day;
×
1610
      this.extraParams = extraParams;
×
1611
      this.month = month;
×
1612
      this.year = year;
×
1613
    }
×
1614

1615
    public static Builder builder() {
1616
      return new Builder();
×
1617
    }
1618

1619
    public static class Builder {
×
1620
      private Long day;
1621

1622
      private Map<String, Object> extraParams;
1623

1624
      private Long month;
1625

1626
      private Long year;
1627

1628
      /** Finalize and obtain parameter instance from this builder. */
1629
      public PersonUpdateParams.Dob build() {
1630
        return new PersonUpdateParams.Dob(this.day, this.extraParams, this.month, this.year);
×
1631
      }
1632

1633
      /** <strong>Required.</strong> The day of birth, between 1 and 31. */
1634
      public Builder setDay(Long day) {
1635
        this.day = day;
×
1636
        return this;
×
1637
      }
1638

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

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

1665
      /** <strong>Required.</strong> The month of birth, between 1 and 12. */
1666
      public Builder setMonth(Long month) {
1667
        this.month = month;
×
1668
        return this;
×
1669
      }
1670

1671
      /** <strong>Required.</strong> The four-digit year of birth. */
1672
      public Builder setYear(Long year) {
1673
        this.year = year;
×
1674
        return this;
×
1675
      }
1676
    }
1677
  }
1678

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

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

1697
    /** One or more documents showing the person's passport page with photo and personal data. */
1698
    @SerializedName("passport")
1699
    Passport passport;
1700

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

1708
    private Documents(
1709
        CompanyAuthorization companyAuthorization,
1710
        Map<String, Object> extraParams,
1711
        Passport passport,
1712
        Visa visa) {
×
1713
      this.companyAuthorization = companyAuthorization;
×
1714
      this.extraParams = extraParams;
×
1715
      this.passport = passport;
×
1716
      this.visa = visa;
×
1717
    }
×
1718

1719
    public static Builder builder() {
1720
      return new Builder();
×
1721
    }
1722

1723
    public static class Builder {
×
1724
      private CompanyAuthorization companyAuthorization;
1725

1726
      private Map<String, Object> extraParams;
1727

1728
      private Passport passport;
1729

1730
      private Visa visa;
1731

1732
      /** Finalize and obtain parameter instance from this builder. */
1733
      public PersonUpdateParams.Documents build() {
1734
        return new PersonUpdateParams.Documents(
×
1735
            this.companyAuthorization, this.extraParams, this.passport, this.visa);
1736
      }
1737

1738
      /**
1739
       * One or more documents that demonstrate proof that this person is authorized to represent
1740
       * the company.
1741
       */
1742
      public Builder setCompanyAuthorization(
1743
          PersonUpdateParams.Documents.CompanyAuthorization companyAuthorization) {
1744
        this.companyAuthorization = companyAuthorization;
×
1745
        return this;
×
1746
      }
1747

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

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

1774
      /** One or more documents showing the person's passport page with photo and personal data. */
1775
      public Builder setPassport(PersonUpdateParams.Documents.Passport passport) {
1776
        this.passport = passport;
×
1777
        return this;
×
1778
      }
1779

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

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

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

1809
      private CompanyAuthorization(Map<String, Object> extraParams, List<String> files) {
×
1810
        this.extraParams = extraParams;
×
1811
        this.files = files;
×
1812
      }
×
1813

1814
      public static Builder builder() {
1815
        return new Builder();
×
1816
      }
1817

1818
      public static class Builder {
×
1819
        private Map<String, Object> extraParams;
1820

1821
        private List<String> files;
1822

1823
        /** Finalize and obtain parameter instance from this builder. */
1824
        public PersonUpdateParams.Documents.CompanyAuthorization build() {
1825
          return new PersonUpdateParams.Documents.CompanyAuthorization(
×
1826
              this.extraParams, this.files);
1827
        }
1828

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

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

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

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

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

1896
      /**
1897
       * One or more document ids returned by a <a
1898
       * href="https://stripe.com/docs/api#create_file">file upload</a> with a {@code purpose} value
1899
       * of {@code account_requirement}.
1900
       */
1901
      @SerializedName("files")
1902
      List<String> files;
1903

1904
      private Passport(Map<String, Object> extraParams, List<String> files) {
×
1905
        this.extraParams = extraParams;
×
1906
        this.files = files;
×
1907
      }
×
1908

1909
      public static Builder builder() {
1910
        return new Builder();
×
1911
      }
1912

1913
      public static class Builder {
×
1914
        private Map<String, Object> extraParams;
1915

1916
        private List<String> files;
1917

1918
        /** Finalize and obtain parameter instance from this builder. */
1919
        public PersonUpdateParams.Documents.Passport build() {
1920
          return new PersonUpdateParams.Documents.Passport(this.extraParams, this.files);
×
1921
        }
1922

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

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

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

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

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

1990
      /**
1991
       * One or more document ids returned by a <a
1992
       * href="https://stripe.com/docs/api#create_file">file upload</a> with a {@code purpose} value
1993
       * of {@code account_requirement}.
1994
       */
1995
      @SerializedName("files")
1996
      List<String> files;
1997

1998
      private Visa(Map<String, Object> extraParams, List<String> files) {
×
1999
        this.extraParams = extraParams;
×
2000
        this.files = files;
×
2001
      }
×
2002

2003
      public static Builder builder() {
2004
        return new Builder();
×
2005
      }
2006

2007
      public static class Builder {
×
2008
        private Map<String, Object> extraParams;
2009

2010
        private List<String> files;
2011

2012
        /** Finalize and obtain parameter instance from this builder. */
2013
        public PersonUpdateParams.Documents.Visa build() {
2014
          return new PersonUpdateParams.Documents.Visa(this.extraParams, this.files);
×
2015
        }
2016

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

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

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

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

2074
  @Getter
2075
  public static class RegisteredAddress {
2076
    /** City, district, suburb, town, or village. */
2077
    @SerializedName("city")
2078
    Object city;
2079

2080
    /**
2081
     * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
2082
     * 3166-1 alpha-2</a>).
2083
     */
2084
    @SerializedName("country")
2085
    Object country;
2086

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

2096
    /** Address line 1 (e.g., street, PO Box, or company name). */
2097
    @SerializedName("line1")
2098
    Object line1;
2099

2100
    /** Address line 2 (e.g., apartment, suite, unit, or building). */
2101
    @SerializedName("line2")
2102
    Object line2;
2103

2104
    /** ZIP or postal code. */
2105
    @SerializedName("postal_code")
2106
    Object postalCode;
2107

2108
    /** State, county, province, or region. */
2109
    @SerializedName("state")
2110
    Object state;
2111

2112
    private RegisteredAddress(
2113
        Object city,
2114
        Object country,
2115
        Map<String, Object> extraParams,
2116
        Object line1,
2117
        Object line2,
2118
        Object postalCode,
2119
        Object state) {
×
2120
      this.city = city;
×
2121
      this.country = country;
×
2122
      this.extraParams = extraParams;
×
2123
      this.line1 = line1;
×
2124
      this.line2 = line2;
×
2125
      this.postalCode = postalCode;
×
2126
      this.state = state;
×
2127
    }
×
2128

2129
    public static Builder builder() {
2130
      return new Builder();
×
2131
    }
2132

2133
    public static class Builder {
×
2134
      private Object city;
2135

2136
      private Object country;
2137

2138
      private Map<String, Object> extraParams;
2139

2140
      private Object line1;
2141

2142
      private Object line2;
2143

2144
      private Object postalCode;
2145

2146
      private Object state;
2147

2148
      /** Finalize and obtain parameter instance from this builder. */
2149
      public PersonUpdateParams.RegisteredAddress build() {
2150
        return new PersonUpdateParams.RegisteredAddress(
×
2151
            this.city,
2152
            this.country,
2153
            this.extraParams,
2154
            this.line1,
2155
            this.line2,
2156
            this.postalCode,
2157
            this.state);
2158
      }
2159

2160
      /** City, district, suburb, town, or village. */
2161
      public Builder setCity(String city) {
2162
        this.city = city;
×
2163
        return this;
×
2164
      }
2165

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

2172
      /**
2173
       * Two-letter country code (<a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO
2174
       * 3166-1 alpha-2</a>).
2175
       */
2176
      public Builder setCountry(String country) {
2177
        this.country = country;
×
2178
        return this;
×
2179
      }
2180

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

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

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

2216
      /** Address line 1 (e.g., street, PO Box, or company name). */
2217
      public Builder setLine1(String line1) {
2218
        this.line1 = line1;
×
2219
        return this;
×
2220
      }
2221

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

2228
      /** Address line 2 (e.g., apartment, suite, unit, or building). */
2229
      public Builder setLine2(String line2) {
2230
        this.line2 = line2;
×
2231
        return this;
×
2232
      }
2233

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

2240
      /** ZIP or postal code. */
2241
      public Builder setPostalCode(String postalCode) {
2242
        this.postalCode = postalCode;
×
2243
        return this;
×
2244
      }
2245

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

2252
      /** State, county, province, or region. */
2253
      public Builder setState(String state) {
2254
        this.state = state;
×
2255
        return this;
×
2256
      }
2257

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

2266
  @Getter
2267
  public static class Relationship {
2268
    /** Whether the person is the authorizer of the account's representative. */
2269
    @SerializedName("authorizer")
2270
    Boolean authorizer;
2271

2272
    /**
2273
     * Whether the person is a director of the account's legal entity. Directors are typically
2274
     * members of the governing board of the company, or responsible for ensuring the company meets
2275
     * its regulatory obligations.
2276
     */
2277
    @SerializedName("director")
2278
    Boolean director;
2279

2280
    /**
2281
     * Whether the person has significant responsibility to control, manage, or direct the
2282
     * organization.
2283
     */
2284
    @SerializedName("executive")
2285
    Boolean executive;
2286

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

2296
    /** Whether the person is the legal guardian of the account's representative. */
2297
    @SerializedName("legal_guardian")
2298
    Boolean legalGuardian;
2299

2300
    /** Whether the person is an owner of the account’s legal entity. */
2301
    @SerializedName("owner")
2302
    Boolean owner;
2303

2304
    /** The percent owned by the person of the account's legal entity. */
2305
    @SerializedName("percent_ownership")
2306
    Object percentOwnership;
2307

2308
    /**
2309
     * Whether the person is authorized as the primary representative of the account. This is the
2310
     * person nominated by the business to provide information about themselves, and general
2311
     * information about the account. There can only be one representative at any given time. At the
2312
     * time the account is created, this person should be set to the person responsible for opening
2313
     * the account.
2314
     */
2315
    @SerializedName("representative")
2316
    Boolean representative;
2317

2318
    /** The person's title (e.g., CEO, Support Engineer). */
2319
    @SerializedName("title")
2320
    Object title;
2321

2322
    private Relationship(
2323
        Boolean authorizer,
2324
        Boolean director,
2325
        Boolean executive,
2326
        Map<String, Object> extraParams,
2327
        Boolean legalGuardian,
2328
        Boolean owner,
2329
        Object percentOwnership,
2330
        Boolean representative,
2331
        Object title) {
×
NEW
2332
      this.authorizer = authorizer;
×
2333
      this.director = director;
×
2334
      this.executive = executive;
×
2335
      this.extraParams = extraParams;
×
2336
      this.legalGuardian = legalGuardian;
×
2337
      this.owner = owner;
×
2338
      this.percentOwnership = percentOwnership;
×
2339
      this.representative = representative;
×
2340
      this.title = title;
×
2341
    }
×
2342

2343
    public static Builder builder() {
2344
      return new Builder();
×
2345
    }
2346

2347
    public static class Builder {
×
2348
      private Boolean authorizer;
2349

2350
      private Boolean director;
2351

2352
      private Boolean executive;
2353

2354
      private Map<String, Object> extraParams;
2355

2356
      private Boolean legalGuardian;
2357

2358
      private Boolean owner;
2359

2360
      private Object percentOwnership;
2361

2362
      private Boolean representative;
2363

2364
      private Object title;
2365

2366
      /** Finalize and obtain parameter instance from this builder. */
2367
      public PersonUpdateParams.Relationship build() {
2368
        return new PersonUpdateParams.Relationship(
×
2369
            this.authorizer,
2370
            this.director,
2371
            this.executive,
2372
            this.extraParams,
2373
            this.legalGuardian,
2374
            this.owner,
2375
            this.percentOwnership,
2376
            this.representative,
2377
            this.title);
2378
      }
2379

2380
      /** Whether the person is the authorizer of the account's representative. */
2381
      public Builder setAuthorizer(Boolean authorizer) {
NEW
2382
        this.authorizer = authorizer;
×
NEW
2383
        return this;
×
2384
      }
2385

2386
      /**
2387
       * Whether the person is a director of the account's legal entity. Directors are typically
2388
       * members of the governing board of the company, or responsible for ensuring the company
2389
       * meets its regulatory obligations.
2390
       */
2391
      public Builder setDirector(Boolean director) {
2392
        this.director = director;
×
2393
        return this;
×
2394
      }
2395

2396
      /**
2397
       * Whether the person has significant responsibility to control, manage, or direct the
2398
       * organization.
2399
       */
2400
      public Builder setExecutive(Boolean executive) {
2401
        this.executive = executive;
×
2402
        return this;
×
2403
      }
2404

2405
      /**
2406
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
2407
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
2408
       * PersonUpdateParams.Relationship#extraParams} for the field documentation.
2409
       */
2410
      public Builder putExtraParam(String key, Object value) {
2411
        if (this.extraParams == null) {
×
2412
          this.extraParams = new HashMap<>();
×
2413
        }
2414
        this.extraParams.put(key, value);
×
2415
        return this;
×
2416
      }
2417

2418
      /**
2419
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2420
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
2421
       * See {@link PersonUpdateParams.Relationship#extraParams} for the field documentation.
2422
       */
2423
      public Builder putAllExtraParam(Map<String, Object> map) {
2424
        if (this.extraParams == null) {
×
2425
          this.extraParams = new HashMap<>();
×
2426
        }
2427
        this.extraParams.putAll(map);
×
2428
        return this;
×
2429
      }
2430

2431
      /** Whether the person is the legal guardian of the account's representative. */
2432
      public Builder setLegalGuardian(Boolean legalGuardian) {
2433
        this.legalGuardian = legalGuardian;
×
2434
        return this;
×
2435
      }
2436

2437
      /** Whether the person is an owner of the account’s legal entity. */
2438
      public Builder setOwner(Boolean owner) {
2439
        this.owner = owner;
×
2440
        return this;
×
2441
      }
2442

2443
      /** The percent owned by the person of the account's legal entity. */
2444
      public Builder setPercentOwnership(BigDecimal percentOwnership) {
2445
        this.percentOwnership = percentOwnership;
×
2446
        return this;
×
2447
      }
2448

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

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

2467
      /** The person's title (e.g., CEO, Support Engineer). */
2468
      public Builder setTitle(String title) {
2469
        this.title = title;
×
2470
        return this;
×
2471
      }
2472

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

2481
  @Getter
2482
  public static class Verification {
2483
    /**
2484
     * A document showing address, either a passport, local ID card, or utility bill from a
2485
     * well-known utility company.
2486
     */
2487
    @SerializedName("additional_document")
2488
    AdditionalDocument additionalDocument;
2489

2490
    /** An identifying document, either a passport or local ID card. */
2491
    @SerializedName("document")
2492
    Document document;
2493

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

2503
    private Verification(
2504
        AdditionalDocument additionalDocument, Document document, Map<String, Object> extraParams) {
×
2505
      this.additionalDocument = additionalDocument;
×
2506
      this.document = document;
×
2507
      this.extraParams = extraParams;
×
2508
    }
×
2509

2510
    public static Builder builder() {
2511
      return new Builder();
×
2512
    }
2513

2514
    public static class Builder {
×
2515
      private AdditionalDocument additionalDocument;
2516

2517
      private Document document;
2518

2519
      private Map<String, Object> extraParams;
2520

2521
      /** Finalize and obtain parameter instance from this builder. */
2522
      public PersonUpdateParams.Verification build() {
2523
        return new PersonUpdateParams.Verification(
×
2524
            this.additionalDocument, this.document, this.extraParams);
2525
      }
2526

2527
      /**
2528
       * A document showing address, either a passport, local ID card, or utility bill from a
2529
       * well-known utility company.
2530
       */
2531
      public Builder setAdditionalDocument(
2532
          PersonUpdateParams.Verification.AdditionalDocument additionalDocument) {
2533
        this.additionalDocument = additionalDocument;
×
2534
        return this;
×
2535
      }
2536

2537
      /** An identifying document, either a passport or local ID card. */
2538
      public Builder setDocument(PersonUpdateParams.Verification.Document document) {
2539
        this.document = document;
×
2540
        return this;
×
2541
      }
2542

2543
      /**
2544
       * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
2545
       * call, and subsequent calls add additional key/value pairs to the original map. See {@link
2546
       * PersonUpdateParams.Verification#extraParams} for the field documentation.
2547
       */
2548
      public Builder putExtraParam(String key, Object value) {
2549
        if (this.extraParams == null) {
×
2550
          this.extraParams = new HashMap<>();
×
2551
        }
2552
        this.extraParams.put(key, value);
×
2553
        return this;
×
2554
      }
2555

2556
      /**
2557
       * Add all map key/value pairs to `extraParams` map. A map is initialized for the first
2558
       * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map.
2559
       * See {@link PersonUpdateParams.Verification#extraParams} for the field documentation.
2560
       */
2561
      public Builder putAllExtraParam(Map<String, Object> map) {
2562
        if (this.extraParams == null) {
×
2563
          this.extraParams = new HashMap<>();
×
2564
        }
2565
        this.extraParams.putAll(map);
×
2566
        return this;
×
2567
      }
2568
    }
2569

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

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

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

2599
      private AdditionalDocument(Object back, Map<String, Object> extraParams, Object front) {
×
2600
        this.back = back;
×
2601
        this.extraParams = extraParams;
×
2602
        this.front = front;
×
2603
      }
×
2604

2605
      public static Builder builder() {
2606
        return new Builder();
×
2607
      }
2608

2609
      public static class Builder {
×
2610
        private Object back;
2611

2612
        private Map<String, Object> extraParams;
2613

2614
        private Object front;
2615

2616
        /** Finalize and obtain parameter instance from this builder. */
2617
        public PersonUpdateParams.Verification.AdditionalDocument build() {
2618
          return new PersonUpdateParams.Verification.AdditionalDocument(
×
2619
              this.back, this.extraParams, this.front);
2620
        }
2621

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

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

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

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

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

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

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

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

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

2725
      private Document(Object back, Map<String, Object> extraParams, Object front) {
×
2726
        this.back = back;
×
2727
        this.extraParams = extraParams;
×
2728
        this.front = front;
×
2729
      }
×
2730

2731
      public static Builder builder() {
2732
        return new Builder();
×
2733
      }
2734

2735
      public static class Builder {
×
2736
        private Object back;
2737

2738
        private Map<String, Object> extraParams;
2739

2740
        private Object front;
2741

2742
        /** Finalize and obtain parameter instance from this builder. */
2743
        public PersonUpdateParams.Verification.Document build() {
2744
          return new PersonUpdateParams.Verification.Document(
×
2745
              this.back, this.extraParams, this.front);
2746
        }
2747

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

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

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

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

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

2809
        /**
2810
         * The front of an ID returned by a <a href="https://stripe.com/docs/api#create_file">file
2811
         * upload</a> with a {@code purpose} value of {@code identity_document}. The uploaded file
2812
         * needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format,
2813
         * and less than 10 MB in size.
2814
         */
2815
        public Builder setFront(EmptyParam front) {
2816
          this.front = front;
×
2817
          return this;
×
2818
        }
2819
      }
2820
    }
2821
  }
2822
}
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