@@ -62,6 +62,10 @@ public class PersonCollectionCreateParams extends ApiRequestParams {
62
62
@ SerializedName ("first_name_kanji" )
63
63
String firstNameKanji ;
64
64
65
+ /** A list of alternate names or aliases that the person is known by. */
66
+ @ SerializedName ("full_name_aliases" )
67
+ List <String > fullNameAliases ;
68
+
65
69
/**
66
70
* The person's gender (International regulations require either "male" or
67
71
* "female").
@@ -154,6 +158,7 @@ private PersonCollectionCreateParams(
154
158
String firstName ,
155
159
String firstNameKana ,
156
160
String firstNameKanji ,
161
+ List <String > fullNameAliases ,
157
162
String gender ,
158
163
String idNumber ,
159
164
String lastName ,
@@ -179,6 +184,7 @@ private PersonCollectionCreateParams(
179
184
this .firstName = firstName ;
180
185
this .firstNameKana = firstNameKana ;
181
186
this .firstNameKanji = firstNameKanji ;
187
+ this .fullNameAliases = fullNameAliases ;
182
188
this .gender = gender ;
183
189
this .idNumber = idNumber ;
184
190
this .lastName = lastName ;
@@ -222,6 +228,8 @@ public static class Builder {
222
228
223
229
private String firstNameKanji ;
224
230
231
+ private List <String > fullNameAliases ;
232
+
225
233
private String gender ;
226
234
227
235
private String idNumber ;
@@ -264,6 +272,7 @@ public PersonCollectionCreateParams build() {
264
272
this .firstName ,
265
273
this .firstNameKana ,
266
274
this .firstNameKanji ,
275
+ this .fullNameAliases ,
267
276
this .gender ,
268
277
this .idNumber ,
269
278
this .lastName ,
@@ -392,6 +401,32 @@ public Builder setFirstNameKanji(String firstNameKanji) {
392
401
return this ;
393
402
}
394
403
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
+
395
430
/**
396
431
* The person's gender (International regulations require either "male" or
397
432
* "female").
0 commit comments