Skip to content

Commit 2891e66

Browse files
committed
Release 1.8.6
1 parent 3b43275 commit 2891e66

3 files changed

Lines changed: 20 additions & 20 deletions

File tree

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ java {
4646

4747
group = 'com.flagright.api'
4848

49-
version = '1.8.5'
49+
version = '1.8.6'
5050

5151
jar {
5252
dependsOn(":generatePomFileForMavenPublication")
@@ -77,7 +77,7 @@ publishing {
7777
maven(MavenPublication) {
7878
groupId = 'com.flagright.api'
7979
artifactId = 'flagright-java'
80-
version = '1.8.5'
80+
version = '1.8.6'
8181
from components.java
8282
pom {
8383
name = 'flagright'

src/main/java/com/flagright/api/core/ClientOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ private ClientOptions(
3232
this.headers.putAll(headers);
3333
this.headers.putAll(new HashMap<String, String>() {
3434
{
35-
put("User-Agent", "com.flagright.api:flagright-java/1.8.5");
35+
put("User-Agent", "com.flagright.api:flagright-java/1.8.6");
3636
put("X-Fern-Language", "JAVA");
3737
put("X-Fern-SDK-Name", "com.flagright.fern:api-sdk");
38-
put("X-Fern-SDK-Version", "1.8.5");
38+
put("X-Fern-SDK-Version", "1.8.6");
3939
}
4040
});
4141
this.headerSuppliers = headerSuppliers;

src/main/java/com/flagright/api/types/WalletDetails.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)