Skip to content

Commit ef9233b

Browse files
Release 1.8.24
1 parent 73ba347 commit ef9233b

File tree

8 files changed

+368
-4
lines changed

8 files changed

+368
-4
lines changed

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.23'
49+
version = '1.8.24'
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.23'
80+
version = '1.8.24'
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.23");
35+
put("User-Agent", "com.flagright.api:flagright-java/1.8.24");
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.23");
38+
put("X-Fern-SDK-Version", "1.8.24");
3939
}
4040
});
4141
this.headerSuppliers = headerSuppliers;

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

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public final class AchDetails {
3333

3434
private final Optional<Address> bankAddress;
3535

36+
private final Optional<CountryCode> countryOfNationality;
37+
38+
private final Optional<CountryCode> countryOfResidence;
39+
3640
private final Optional<String> beneficiaryName;
3741

3842
private final Optional<String> emailId;
@@ -48,6 +52,8 @@ private AchDetails(
4852
Optional<String> bankName,
4953
Optional<String> name,
5054
Optional<Address> bankAddress,
55+
Optional<CountryCode> countryOfNationality,
56+
Optional<CountryCode> countryOfResidence,
5157
Optional<String> beneficiaryName,
5258
Optional<String> emailId,
5359
Optional<List<Tag>> tags,
@@ -58,6 +64,8 @@ private AchDetails(
5864
this.bankName = bankName;
5965
this.name = name;
6066
this.bankAddress = bankAddress;
67+
this.countryOfNationality = countryOfNationality;
68+
this.countryOfResidence = countryOfResidence;
6169
this.beneficiaryName = beneficiaryName;
6270
this.emailId = emailId;
6371
this.tags = tags;
@@ -106,6 +114,16 @@ public Optional<Address> getBankAddress() {
106114
return bankAddress;
107115
}
108116

117+
@JsonProperty("countryOfNationality")
118+
public Optional<CountryCode> getCountryOfNationality() {
119+
return countryOfNationality;
120+
}
121+
122+
@JsonProperty("countryOfResidence")
123+
public Optional<CountryCode> getCountryOfResidence() {
124+
return countryOfResidence;
125+
}
126+
109127
/**
110128
* @return Beneficiary name of the account
111129
*/
@@ -145,6 +163,8 @@ private boolean equalTo(AchDetails other) {
145163
&& bankName.equals(other.bankName)
146164
&& name.equals(other.name)
147165
&& bankAddress.equals(other.bankAddress)
166+
&& countryOfNationality.equals(other.countryOfNationality)
167+
&& countryOfResidence.equals(other.countryOfResidence)
148168
&& beneficiaryName.equals(other.beneficiaryName)
149169
&& emailId.equals(other.emailId)
150170
&& tags.equals(other.tags);
@@ -159,6 +179,8 @@ public int hashCode() {
159179
this.bankName,
160180
this.name,
161181
this.bankAddress,
182+
this.countryOfNationality,
183+
this.countryOfResidence,
162184
this.beneficiaryName,
163185
this.emailId,
164186
this.tags);
@@ -187,6 +209,10 @@ public static final class Builder {
187209

188210
private Optional<Address> bankAddress = Optional.empty();
189211

212+
private Optional<CountryCode> countryOfNationality = Optional.empty();
213+
214+
private Optional<CountryCode> countryOfResidence = Optional.empty();
215+
190216
private Optional<String> beneficiaryName = Optional.empty();
191217

192218
private Optional<String> emailId = Optional.empty();
@@ -205,6 +231,8 @@ public Builder from(AchDetails other) {
205231
bankName(other.getBankName());
206232
name(other.getName());
207233
bankAddress(other.getBankAddress());
234+
countryOfNationality(other.getCountryOfNationality());
235+
countryOfResidence(other.getCountryOfResidence());
208236
beneficiaryName(other.getBeneficiaryName());
209237
emailId(other.getEmailId());
210238
tags(other.getTags());
@@ -277,6 +305,28 @@ public Builder bankAddress(Address bankAddress) {
277305
return this;
278306
}
279307

308+
@JsonSetter(value = "countryOfNationality", nulls = Nulls.SKIP)
309+
public Builder countryOfNationality(Optional<CountryCode> countryOfNationality) {
310+
this.countryOfNationality = countryOfNationality;
311+
return this;
312+
}
313+
314+
public Builder countryOfNationality(CountryCode countryOfNationality) {
315+
this.countryOfNationality = Optional.ofNullable(countryOfNationality);
316+
return this;
317+
}
318+
319+
@JsonSetter(value = "countryOfResidence", nulls = Nulls.SKIP)
320+
public Builder countryOfResidence(Optional<CountryCode> countryOfResidence) {
321+
this.countryOfResidence = countryOfResidence;
322+
return this;
323+
}
324+
325+
public Builder countryOfResidence(CountryCode countryOfResidence) {
326+
this.countryOfResidence = Optional.ofNullable(countryOfResidence);
327+
return this;
328+
}
329+
280330
@JsonSetter(value = "beneficiaryName", nulls = Nulls.SKIP)
281331
public Builder beneficiaryName(Optional<String> beneficiaryName) {
282332
this.beneficiaryName = beneficiaryName;
@@ -318,6 +368,8 @@ public AchDetails build() {
318368
bankName,
319369
name,
320370
bankAddress,
371+
countryOfNationality,
372+
countryOfResidence,
321373
beneficiaryName,
322374
emailId,
323375
tags,

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

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ public final class CardDetails {
6363

6464
private final Optional<Address> address;
6565

66+
private final Optional<CountryCode> countryOfNationality;
67+
68+
private final Optional<CountryCode> countryOfResidence;
69+
70+
private final Optional<Address> bankAddress;
71+
6672
private final Optional<List<Tag>> tags;
6773

6874
private final Map<String, Object> additionalProperties;
@@ -89,6 +95,9 @@ private CardDetails(
8995
Optional<CardMerchantDetails> merchantDetails,
9096
Optional<Double> networkProviderRiskScore,
9197
Optional<Address> address,
98+
Optional<CountryCode> countryOfNationality,
99+
Optional<CountryCode> countryOfResidence,
100+
Optional<Address> bankAddress,
92101
Optional<List<Tag>> tags,
93102
Map<String, Object> additionalProperties) {
94103
this.cardFingerprint = cardFingerprint;
@@ -112,6 +121,9 @@ private CardDetails(
112121
this.merchantDetails = merchantDetails;
113122
this.networkProviderRiskScore = networkProviderRiskScore;
114123
this.address = address;
124+
this.countryOfNationality = countryOfNationality;
125+
this.countryOfResidence = countryOfResidence;
126+
this.bankAddress = bankAddress;
115127
this.tags = tags;
116128
this.additionalProperties = additionalProperties;
117129
}
@@ -245,6 +257,21 @@ public Optional<Address> getAddress() {
245257
return address;
246258
}
247259

260+
@JsonProperty("countryOfNationality")
261+
public Optional<CountryCode> getCountryOfNationality() {
262+
return countryOfNationality;
263+
}
264+
265+
@JsonProperty("countryOfResidence")
266+
public Optional<CountryCode> getCountryOfResidence() {
267+
return countryOfResidence;
268+
}
269+
270+
@JsonProperty("bankAddress")
271+
public Optional<Address> getBankAddress() {
272+
return bankAddress;
273+
}
274+
248275
/**
249276
* @return Additional information that can be added via tags
250277
*/
@@ -286,6 +313,9 @@ private boolean equalTo(CardDetails other) {
286313
&& merchantDetails.equals(other.merchantDetails)
287314
&& networkProviderRiskScore.equals(other.networkProviderRiskScore)
288315
&& address.equals(other.address)
316+
&& countryOfNationality.equals(other.countryOfNationality)
317+
&& countryOfResidence.equals(other.countryOfResidence)
318+
&& bankAddress.equals(other.bankAddress)
289319
&& tags.equals(other.tags);
290320
}
291321

@@ -313,6 +343,9 @@ public int hashCode() {
313343
this.merchantDetails,
314344
this.networkProviderRiskScore,
315345
this.address,
346+
this.countryOfNationality,
347+
this.countryOfResidence,
348+
this.bankAddress,
316349
this.tags);
317350
}
318351

@@ -369,6 +402,12 @@ public static final class Builder {
369402

370403
private Optional<Address> address = Optional.empty();
371404

405+
private Optional<CountryCode> countryOfNationality = Optional.empty();
406+
407+
private Optional<CountryCode> countryOfResidence = Optional.empty();
408+
409+
private Optional<Address> bankAddress = Optional.empty();
410+
372411
private Optional<List<Tag>> tags = Optional.empty();
373412

374413
@JsonAnySetter
@@ -398,6 +437,9 @@ public Builder from(CardDetails other) {
398437
merchantDetails(other.getMerchantDetails());
399438
networkProviderRiskScore(other.getNetworkProviderRiskScore());
400439
address(other.getAddress());
440+
countryOfNationality(other.getCountryOfNationality());
441+
countryOfResidence(other.getCountryOfResidence());
442+
bankAddress(other.getBankAddress());
401443
tags(other.getTags());
402444
return this;
403445
}
@@ -633,6 +675,39 @@ public Builder address(Address address) {
633675
return this;
634676
}
635677

678+
@JsonSetter(value = "countryOfNationality", nulls = Nulls.SKIP)
679+
public Builder countryOfNationality(Optional<CountryCode> countryOfNationality) {
680+
this.countryOfNationality = countryOfNationality;
681+
return this;
682+
}
683+
684+
public Builder countryOfNationality(CountryCode countryOfNationality) {
685+
this.countryOfNationality = Optional.ofNullable(countryOfNationality);
686+
return this;
687+
}
688+
689+
@JsonSetter(value = "countryOfResidence", nulls = Nulls.SKIP)
690+
public Builder countryOfResidence(Optional<CountryCode> countryOfResidence) {
691+
this.countryOfResidence = countryOfResidence;
692+
return this;
693+
}
694+
695+
public Builder countryOfResidence(CountryCode countryOfResidence) {
696+
this.countryOfResidence = Optional.ofNullable(countryOfResidence);
697+
return this;
698+
}
699+
700+
@JsonSetter(value = "bankAddress", nulls = Nulls.SKIP)
701+
public Builder bankAddress(Optional<Address> bankAddress) {
702+
this.bankAddress = bankAddress;
703+
return this;
704+
}
705+
706+
public Builder bankAddress(Address bankAddress) {
707+
this.bankAddress = Optional.ofNullable(bankAddress);
708+
return this;
709+
}
710+
636711
@JsonSetter(value = "tags", nulls = Nulls.SKIP)
637712
public Builder tags(Optional<List<Tag>> tags) {
638713
this.tags = tags;
@@ -667,6 +742,9 @@ public CardDetails build() {
667742
merchantDetails,
668743
networkProviderRiskScore,
669744
address,
745+
countryOfNationality,
746+
countryOfResidence,
747+
bankAddress,
670748
tags,
671749
additionalProperties);
672750
}

0 commit comments

Comments
 (0)