Skip to content

Commit 13a2141

Browse files
authored
API Updates (#1264)
1 parent 634c199 commit 13a2141

7 files changed

+218
-2
lines changed

src/main/java/com/stripe/model/Person.java

+4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ public class Person extends ApiResource implements HasId, MetadataStore<Person>
6060
@SerializedName("first_name_kanji")
6161
String firstNameKanji;
6262

63+
/** A list of alternate names or aliases that the person is known by. */
64+
@SerializedName("full_name_aliases")
65+
List<String> fullNameAliases;
66+
6367
/**
6468
* Information about the upcoming new requirements for this person, including what information
6569
* needs to be collected, and by when.

src/main/java/com/stripe/param/AccountCreateParams.java

+35
Original file line numberDiff line numberDiff line change
@@ -4925,6 +4925,10 @@ public static class Individual {
49254925
@SerializedName("first_name_kanji")
49264926
String firstNameKanji;
49274927

4928+
/** A list of alternate names or aliases that the individual is known by. */
4929+
@SerializedName("full_name_aliases")
4930+
List<String> fullNameAliases;
4931+
49284932
/**
49294933
* The individual's gender (International regulations require either &quot;male&quot; or
49304934
* &quot;female&quot;).
@@ -4997,6 +5001,7 @@ private Individual(
49975001
String firstName,
49985002
String firstNameKana,
49995003
String firstNameKanji,
5004+
List<String> fullNameAliases,
50005005
String gender,
50015006
String idNumber,
50025007
String lastName,
@@ -5017,6 +5022,7 @@ private Individual(
50175022
this.firstName = firstName;
50185023
this.firstNameKana = firstNameKana;
50195024
this.firstNameKanji = firstNameKanji;
5025+
this.fullNameAliases = fullNameAliases;
50205026
this.gender = gender;
50215027
this.idNumber = idNumber;
50225028
this.lastName = lastName;
@@ -5053,6 +5059,8 @@ public static class Builder {
50535059

50545060
private String firstNameKanji;
50555061

5062+
private List<String> fullNameAliases;
5063+
50565064
private String gender;
50575065

50585066
private String idNumber;
@@ -5087,6 +5095,7 @@ public Individual build() {
50875095
this.firstName,
50885096
this.firstNameKana,
50895097
this.firstNameKanji,
5098+
this.fullNameAliases,
50905099
this.gender,
50915100
this.idNumber,
50925101
this.lastName,
@@ -5180,6 +5189,32 @@ public Builder setFirstNameKanji(String firstNameKanji) {
51805189
return this;
51815190
}
51825191

5192+
/**
5193+
* Add an element to `fullNameAliases` list. A list is initialized for the first `add/addAll`
5194+
* call, and subsequent calls adds additional elements to the original list. See {@link
5195+
* AccountCreateParams.Individual#fullNameAliases} for the field documentation.
5196+
*/
5197+
public Builder addFullNameAliase(String element) {
5198+
if (this.fullNameAliases == null) {
5199+
this.fullNameAliases = new ArrayList<>();
5200+
}
5201+
this.fullNameAliases.add(element);
5202+
return this;
5203+
}
5204+
5205+
/**
5206+
* Add all elements to `fullNameAliases` list. A list is initialized for the first
5207+
* `add/addAll` call, and subsequent calls adds additional elements to the original list. See
5208+
* {@link AccountCreateParams.Individual#fullNameAliases} for the field documentation.
5209+
*/
5210+
public Builder addAllFullNameAliase(List<String> elements) {
5211+
if (this.fullNameAliases == null) {
5212+
this.fullNameAliases = new ArrayList<>();
5213+
}
5214+
this.fullNameAliases.addAll(elements);
5215+
return this;
5216+
}
5217+
51835218
/**
51845219
* The individual's gender (International regulations require either &quot;male&quot; or
51855220
* &quot;female&quot;).

src/main/java/com/stripe/param/AccountUpdateParams.java

+35
Original file line numberDiff line numberDiff line change
@@ -5224,6 +5224,10 @@ public static class Individual {
52245224
@SerializedName("first_name_kanji")
52255225
Object firstNameKanji;
52265226

5227+
/** A list of alternate names or aliases that the individual is known by. */
5228+
@SerializedName("full_name_aliases")
5229+
List<String> fullNameAliases;
5230+
52275231
/**
52285232
* The individual's gender (International regulations require either &quot;male&quot; or
52295233
* &quot;female&quot;).
@@ -5296,6 +5300,7 @@ private Individual(
52965300
Object firstName,
52975301
Object firstNameKana,
52985302
Object firstNameKanji,
5303+
List<String> fullNameAliases,
52995304
Object gender,
53005305
Object idNumber,
53015306
Object lastName,
@@ -5316,6 +5321,7 @@ private Individual(
53165321
this.firstName = firstName;
53175322
this.firstNameKana = firstNameKana;
53185323
this.firstNameKanji = firstNameKanji;
5324+
this.fullNameAliases = fullNameAliases;
53195325
this.gender = gender;
53205326
this.idNumber = idNumber;
53215327
this.lastName = lastName;
@@ -5352,6 +5358,8 @@ public static class Builder {
53525358

53535359
private Object firstNameKanji;
53545360

5361+
private List<String> fullNameAliases;
5362+
53555363
private Object gender;
53565364

53575365
private Object idNumber;
@@ -5386,6 +5394,7 @@ public Individual build() {
53865394
this.firstName,
53875395
this.firstNameKana,
53885396
this.firstNameKanji,
5397+
this.fullNameAliases,
53895398
this.gender,
53905399
this.idNumber,
53915400
this.lastName,
@@ -5503,6 +5512,32 @@ public Builder setFirstNameKanji(EmptyParam firstNameKanji) {
55035512
return this;
55045513
}
55055514

5515+
/**
5516+
* Add an element to `fullNameAliases` list. A list is initialized for the first `add/addAll`
5517+
* call, and subsequent calls adds additional elements to the original list. See {@link
5518+
* AccountUpdateParams.Individual#fullNameAliases} for the field documentation.
5519+
*/
5520+
public Builder addFullNameAliase(String element) {
5521+
if (this.fullNameAliases == null) {
5522+
this.fullNameAliases = new ArrayList<>();
5523+
}
5524+
this.fullNameAliases.add(element);
5525+
return this;
5526+
}
5527+
5528+
/**
5529+
* Add all elements to `fullNameAliases` list. A list is initialized for the first
5530+
* `add/addAll` call, and subsequent calls adds additional elements to the original list. See
5531+
* {@link AccountUpdateParams.Individual#fullNameAliases} for the field documentation.
5532+
*/
5533+
public Builder addAllFullNameAliase(List<String> elements) {
5534+
if (this.fullNameAliases == null) {
5535+
this.fullNameAliases = new ArrayList<>();
5536+
}
5537+
this.fullNameAliases.addAll(elements);
5538+
return this;
5539+
}
5540+
55065541
/**
55075542
* The individual's gender (International regulations require either &quot;male&quot; or
55085543
* &quot;female&quot;).

src/main/java/com/stripe/param/PersonCollectionCreateParams.java

+35
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ public class PersonCollectionCreateParams extends ApiRequestParams {
6262
@SerializedName("first_name_kanji")
6363
String firstNameKanji;
6464

65+
/** A list of alternate names or aliases that the person is known by. */
66+
@SerializedName("full_name_aliases")
67+
List<String> fullNameAliases;
68+
6569
/**
6670
* The person's gender (International regulations require either &quot;male&quot; or
6771
* &quot;female&quot;).
@@ -154,6 +158,7 @@ private PersonCollectionCreateParams(
154158
String firstName,
155159
String firstNameKana,
156160
String firstNameKanji,
161+
List<String> fullNameAliases,
157162
String gender,
158163
String idNumber,
159164
String lastName,
@@ -179,6 +184,7 @@ private PersonCollectionCreateParams(
179184
this.firstName = firstName;
180185
this.firstNameKana = firstNameKana;
181186
this.firstNameKanji = firstNameKanji;
187+
this.fullNameAliases = fullNameAliases;
182188
this.gender = gender;
183189
this.idNumber = idNumber;
184190
this.lastName = lastName;
@@ -222,6 +228,8 @@ public static class Builder {
222228

223229
private String firstNameKanji;
224230

231+
private List<String> fullNameAliases;
232+
225233
private String gender;
226234

227235
private String idNumber;
@@ -264,6 +272,7 @@ public PersonCollectionCreateParams build() {
264272
this.firstName,
265273
this.firstNameKana,
266274
this.firstNameKanji,
275+
this.fullNameAliases,
267276
this.gender,
268277
this.idNumber,
269278
this.lastName,
@@ -392,6 +401,32 @@ public Builder setFirstNameKanji(String firstNameKanji) {
392401
return this;
393402
}
394403

404+
/**
405+
* Add an element to `fullNameAliases` list. A list is initialized for the first `add/addAll`
406+
* call, and subsequent calls adds additional elements to the original list. See {@link
407+
* PersonCollectionCreateParams#fullNameAliases} for the field documentation.
408+
*/
409+
public Builder addFullNameAliase(String element) {
410+
if (this.fullNameAliases == null) {
411+
this.fullNameAliases = new ArrayList<>();
412+
}
413+
this.fullNameAliases.add(element);
414+
return this;
415+
}
416+
417+
/**
418+
* Add all elements to `fullNameAliases` list. A list is initialized for the first `add/addAll`
419+
* call, and subsequent calls adds additional elements to the original list. See {@link
420+
* PersonCollectionCreateParams#fullNameAliases} for the field documentation.
421+
*/
422+
public Builder addAllFullNameAliase(List<String> elements) {
423+
if (this.fullNameAliases == null) {
424+
this.fullNameAliases = new ArrayList<>();
425+
}
426+
this.fullNameAliases.addAll(elements);
427+
return this;
428+
}
429+
395430
/**
396431
* The person's gender (International regulations require either &quot;male&quot; or
397432
* &quot;female&quot;).

src/main/java/com/stripe/param/PersonUpdateParams.java

+35
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ public class PersonUpdateParams extends ApiRequestParams {
6262
@SerializedName("first_name_kanji")
6363
Object firstNameKanji;
6464

65+
/** A list of alternate names or aliases that the person is known by. */
66+
@SerializedName("full_name_aliases")
67+
List<String> fullNameAliases;
68+
6569
/**
6670
* The person's gender (International regulations require either &quot;male&quot; or
6771
* &quot;female&quot;).
@@ -154,6 +158,7 @@ private PersonUpdateParams(
154158
Object firstName,
155159
Object firstNameKana,
156160
Object firstNameKanji,
161+
List<String> fullNameAliases,
157162
Object gender,
158163
Object idNumber,
159164
Object lastName,
@@ -179,6 +184,7 @@ private PersonUpdateParams(
179184
this.firstName = firstName;
180185
this.firstNameKana = firstNameKana;
181186
this.firstNameKanji = firstNameKanji;
187+
this.fullNameAliases = fullNameAliases;
182188
this.gender = gender;
183189
this.idNumber = idNumber;
184190
this.lastName = lastName;
@@ -222,6 +228,8 @@ public static class Builder {
222228

223229
private Object firstNameKanji;
224230

231+
private List<String> fullNameAliases;
232+
225233
private Object gender;
226234

227235
private Object idNumber;
@@ -264,6 +272,7 @@ public PersonUpdateParams build() {
264272
this.firstName,
265273
this.firstNameKana,
266274
this.firstNameKanji,
275+
this.fullNameAliases,
267276
this.gender,
268277
this.idNumber,
269278
this.lastName,
@@ -416,6 +425,32 @@ public Builder setFirstNameKanji(EmptyParam firstNameKanji) {
416425
return this;
417426
}
418427

428+
/**
429+
* Add an element to `fullNameAliases` list. A list is initialized for the first `add/addAll`
430+
* call, and subsequent calls adds additional elements to the original list. See {@link
431+
* PersonUpdateParams#fullNameAliases} for the field documentation.
432+
*/
433+
public Builder addFullNameAliase(String element) {
434+
if (this.fullNameAliases == null) {
435+
this.fullNameAliases = new ArrayList<>();
436+
}
437+
this.fullNameAliases.add(element);
438+
return this;
439+
}
440+
441+
/**
442+
* Add all elements to `fullNameAliases` list. A list is initialized for the first `add/addAll`
443+
* call, and subsequent calls adds additional elements to the original list. See {@link
444+
* PersonUpdateParams#fullNameAliases} for the field documentation.
445+
*/
446+
public Builder addAllFullNameAliase(List<String> elements) {
447+
if (this.fullNameAliases == null) {
448+
this.fullNameAliases = new ArrayList<>();
449+
}
450+
this.fullNameAliases.addAll(elements);
451+
return this;
452+
}
453+
419454
/**
420455
* The person's gender (International regulations require either &quot;male&quot; or
421456
* &quot;female&quot;).

0 commit comments

Comments
 (0)