@@ -41,7 +41,7 @@ public final class WalletDetails {
4141
4242 private final Optional <Address > address ;
4343
44- private final Optional <CountryCode > nationality ;
44+ private final Optional <CountryCode > countryOfNationality ;
4545
4646 private final Optional <String > dateOfBirth ;
4747
@@ -58,7 +58,7 @@ private WalletDetails(
5858 Optional <Amount > walletBalance ,
5959 Optional <WalletNetwork > network ,
6060 Optional <Address > address ,
61- Optional <CountryCode > nationality ,
61+ Optional <CountryCode > countryOfNationality ,
6262 Optional <String > dateOfBirth ,
6363 Map <String , Object > additionalProperties ) {
6464 this .walletType = walletType ;
@@ -71,7 +71,7 @@ private WalletDetails(
7171 this .walletBalance = walletBalance ;
7272 this .network = network ;
7373 this .address = address ;
74- this .nationality = nationality ;
74+ this .countryOfNationality = countryOfNationality ;
7575 this .dateOfBirth = dateOfBirth ;
7676 this .additionalProperties = additionalProperties ;
7777 }
@@ -144,9 +144,9 @@ public Optional<Address> getAddress() {
144144 return address ;
145145 }
146146
147- @ JsonProperty ("nationality " )
148- public Optional <CountryCode > getNationality () {
149- return nationality ;
147+ @ JsonProperty ("countryOfNationality " )
148+ public Optional <CountryCode > getCountryOfNationality () {
149+ return countryOfNationality ;
150150 }
151151
152152 /**
@@ -179,7 +179,7 @@ private boolean equalTo(WalletDetails other) {
179179 && walletBalance .equals (other .walletBalance )
180180 && network .equals (other .network )
181181 && address .equals (other .address )
182- && nationality .equals (other .nationality )
182+ && countryOfNationality .equals (other .countryOfNationality )
183183 && dateOfBirth .equals (other .dateOfBirth );
184184 }
185185
@@ -196,7 +196,7 @@ public int hashCode() {
196196 this .walletBalance ,
197197 this .network ,
198198 this .address ,
199- this .nationality ,
199+ this .countryOfNationality ,
200200 this .dateOfBirth );
201201 }
202202
@@ -231,7 +231,7 @@ public static final class Builder {
231231
232232 private Optional <Address > address = Optional .empty ();
233233
234- private Optional <CountryCode > nationality = Optional .empty ();
234+ private Optional <CountryCode > countryOfNationality = Optional .empty ();
235235
236236 private Optional <String > dateOfBirth = Optional .empty ();
237237
@@ -251,7 +251,7 @@ public Builder from(WalletDetails other) {
251251 walletBalance (other .getWalletBalance ());
252252 network (other .getNetwork ());
253253 address (other .getAddress ());
254- nationality (other .getNationality ());
254+ countryOfNationality (other .getCountryOfNationality ());
255255 dateOfBirth (other .getDateOfBirth ());
256256 return this ;
257257 }
@@ -366,14 +366,14 @@ public Builder address(Address address) {
366366 return this ;
367367 }
368368
369- @ JsonSetter (value = "nationality " , nulls = Nulls .SKIP )
370- public Builder nationality (Optional <CountryCode > nationality ) {
371- this .nationality = nationality ;
369+ @ JsonSetter (value = "countryOfNationality " , nulls = Nulls .SKIP )
370+ public Builder countryOfNationality (Optional <CountryCode > countryOfNationality ) {
371+ this .countryOfNationality = countryOfNationality ;
372372 return this ;
373373 }
374374
375- public Builder nationality (CountryCode nationality ) {
376- this .nationality = Optional .ofNullable (nationality );
375+ public Builder countryOfNationality (CountryCode countryOfNationality ) {
376+ this .countryOfNationality = Optional .ofNullable (countryOfNationality );
377377 return this ;
378378 }
379379
@@ -400,7 +400,7 @@ public WalletDetails build() {
400400 walletBalance ,
401401 network ,
402402 address ,
403- nationality ,
403+ countryOfNationality ,
404404 dateOfBirth ,
405405 additionalProperties );
406406 }
0 commit comments