Skip to content

Commit 36ce8d8

Browse files
Release 1.8.25
1 parent ef9233b commit 36ce8d8

File tree

6 files changed

+149
-7
lines changed

6 files changed

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

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

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

3434
private final Optional<Address> bankAddress;
3535

36+
private final Optional<Address> address;
37+
3638
private final Optional<CountryCode> countryOfNationality;
3739

3840
private final Optional<CountryCode> countryOfResidence;
@@ -52,6 +54,7 @@ private AchDetails(
5254
Optional<String> bankName,
5355
Optional<String> name,
5456
Optional<Address> bankAddress,
57+
Optional<Address> address,
5558
Optional<CountryCode> countryOfNationality,
5659
Optional<CountryCode> countryOfResidence,
5760
Optional<String> beneficiaryName,
@@ -64,6 +67,7 @@ private AchDetails(
6467
this.bankName = bankName;
6568
this.name = name;
6669
this.bankAddress = bankAddress;
70+
this.address = address;
6771
this.countryOfNationality = countryOfNationality;
6872
this.countryOfResidence = countryOfResidence;
6973
this.beneficiaryName = beneficiaryName;
@@ -114,6 +118,14 @@ public Optional<Address> getBankAddress() {
114118
return bankAddress;
115119
}
116120

121+
/**
122+
* @return Address of the account holder
123+
*/
124+
@JsonProperty("address")
125+
public Optional<Address> getAddress() {
126+
return address;
127+
}
128+
117129
@JsonProperty("countryOfNationality")
118130
public Optional<CountryCode> getCountryOfNationality() {
119131
return countryOfNationality;
@@ -163,6 +175,7 @@ private boolean equalTo(AchDetails other) {
163175
&& bankName.equals(other.bankName)
164176
&& name.equals(other.name)
165177
&& bankAddress.equals(other.bankAddress)
178+
&& address.equals(other.address)
166179
&& countryOfNationality.equals(other.countryOfNationality)
167180
&& countryOfResidence.equals(other.countryOfResidence)
168181
&& beneficiaryName.equals(other.beneficiaryName)
@@ -179,6 +192,7 @@ public int hashCode() {
179192
this.bankName,
180193
this.name,
181194
this.bankAddress,
195+
this.address,
182196
this.countryOfNationality,
183197
this.countryOfResidence,
184198
this.beneficiaryName,
@@ -209,6 +223,8 @@ public static final class Builder {
209223

210224
private Optional<Address> bankAddress = Optional.empty();
211225

226+
private Optional<Address> address = Optional.empty();
227+
212228
private Optional<CountryCode> countryOfNationality = Optional.empty();
213229

214230
private Optional<CountryCode> countryOfResidence = Optional.empty();
@@ -231,6 +247,7 @@ public Builder from(AchDetails other) {
231247
bankName(other.getBankName());
232248
name(other.getName());
233249
bankAddress(other.getBankAddress());
250+
address(other.getAddress());
234251
countryOfNationality(other.getCountryOfNationality());
235252
countryOfResidence(other.getCountryOfResidence());
236253
beneficiaryName(other.getBeneficiaryName());
@@ -305,6 +322,17 @@ public Builder bankAddress(Address bankAddress) {
305322
return this;
306323
}
307324

325+
@JsonSetter(value = "address", nulls = Nulls.SKIP)
326+
public Builder address(Optional<Address> address) {
327+
this.address = address;
328+
return this;
329+
}
330+
331+
public Builder address(Address address) {
332+
this.address = Optional.ofNullable(address);
333+
return this;
334+
}
335+
308336
@JsonSetter(value = "countryOfNationality", nulls = Nulls.SKIP)
309337
public Builder countryOfNationality(Optional<CountryCode> countryOfNationality) {
310338
this.countryOfNationality = countryOfNationality;
@@ -368,6 +396,7 @@ public AchDetails build() {
368396
bankName,
369397
name,
370398
bankAddress,
399+
address,
371400
countryOfNationality,
372401
countryOfResidence,
373402
beneficiaryName,

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

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,20 @@ public final class CashDetails {
2626

2727
private final Optional<String> name;
2828

29+
private final Optional<String> emailId;
30+
2931
private final Map<String, Object> additionalProperties;
3032

3133
private CashDetails(
3234
Optional<String> identifier,
3335
Optional<Address> address,
3436
Optional<String> name,
37+
Optional<String> emailId,
3538
Map<String, Object> additionalProperties) {
3639
this.identifier = identifier;
3740
this.address = address;
3841
this.name = name;
42+
this.emailId = emailId;
3943
this.additionalProperties = additionalProperties;
4044
}
4145

@@ -57,6 +61,11 @@ public Optional<String> getName() {
5761
return name;
5862
}
5963

64+
@JsonProperty("emailId")
65+
public Optional<String> getEmailId() {
66+
return emailId;
67+
}
68+
6069
@java.lang.Override
6170
public boolean equals(Object other) {
6271
if (this == other) return true;
@@ -69,12 +78,15 @@ public Map<String, Object> getAdditionalProperties() {
6978
}
7079

7180
private boolean equalTo(CashDetails other) {
72-
return identifier.equals(other.identifier) && address.equals(other.address) && name.equals(other.name);
81+
return identifier.equals(other.identifier)
82+
&& address.equals(other.address)
83+
&& name.equals(other.name)
84+
&& emailId.equals(other.emailId);
7385
}
7486

7587
@java.lang.Override
7688
public int hashCode() {
77-
return Objects.hash(this.identifier, this.address, this.name);
89+
return Objects.hash(this.identifier, this.address, this.name, this.emailId);
7890
}
7991

8092
@java.lang.Override
@@ -94,6 +106,8 @@ public static final class Builder {
94106

95107
private Optional<String> name = Optional.empty();
96108

109+
private Optional<String> emailId = Optional.empty();
110+
97111
@JsonAnySetter
98112
private Map<String, Object> additionalProperties = new HashMap<>();
99113

@@ -103,6 +117,7 @@ public Builder from(CashDetails other) {
103117
identifier(other.getIdentifier());
104118
address(other.getAddress());
105119
name(other.getName());
120+
emailId(other.getEmailId());
106121
return this;
107122
}
108123

@@ -139,8 +154,19 @@ public Builder name(String name) {
139154
return this;
140155
}
141156

157+
@JsonSetter(value = "emailId", nulls = Nulls.SKIP)
158+
public Builder emailId(Optional<String> emailId) {
159+
this.emailId = emailId;
160+
return this;
161+
}
162+
163+
public Builder emailId(String emailId) {
164+
this.emailId = Optional.ofNullable(emailId);
165+
return this;
166+
}
167+
142168
public CashDetails build() {
143-
return new CashDetails(identifier, address, name, additionalProperties);
169+
return new CashDetails(identifier, address, name, emailId, additionalProperties);
144170
}
145171
}
146172
}

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

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ public final class CheckDetails {
3535

3636
private final Optional<Address> shippingAddress;
3737

38+
private final Optional<Address> address;
39+
3840
private final Optional<String> accountNumber;
3941

42+
private final Optional<String> emailId;
43+
4044
private final Optional<CountryCode> countryOfNationality;
4145

4246
private final Optional<CountryCode> countryOfResidence;
@@ -55,7 +59,9 @@ private CheckDetails(
5559
Optional<CheckDeliveryStatus> deliveryStatus,
5660
Optional<Double> etaTimestamp,
5761
Optional<Address> shippingAddress,
62+
Optional<Address> address,
5863
Optional<String> accountNumber,
64+
Optional<String> emailId,
5965
Optional<CountryCode> countryOfNationality,
6066
Optional<CountryCode> countryOfResidence,
6167
Optional<Address> bankAddress,
@@ -68,7 +74,9 @@ private CheckDetails(
6874
this.deliveryStatus = deliveryStatus;
6975
this.etaTimestamp = etaTimestamp;
7076
this.shippingAddress = shippingAddress;
77+
this.address = address;
7178
this.accountNumber = accountNumber;
79+
this.emailId = emailId;
7280
this.countryOfNationality = countryOfNationality;
7381
this.countryOfResidence = countryOfResidence;
7482
this.bankAddress = bankAddress;
@@ -114,11 +122,27 @@ public Optional<Address> getShippingAddress() {
114122
return shippingAddress;
115123
}
116124

125+
/**
126+
* @return Address of the account holder
127+
*/
128+
@JsonProperty("address")
129+
public Optional<Address> getAddress() {
130+
return address;
131+
}
132+
117133
@JsonProperty("accountNumber")
118134
public Optional<String> getAccountNumber() {
119135
return accountNumber;
120136
}
121137

138+
/**
139+
* @return Email ID of the account holder
140+
*/
141+
@JsonProperty("emailId")
142+
public Optional<String> getEmailId() {
143+
return emailId;
144+
}
145+
122146
@JsonProperty("countryOfNationality")
123147
public Optional<CountryCode> getCountryOfNationality() {
124148
return countryOfNationality;
@@ -161,7 +185,9 @@ private boolean equalTo(CheckDetails other) {
161185
&& deliveryStatus.equals(other.deliveryStatus)
162186
&& etaTimestamp.equals(other.etaTimestamp)
163187
&& shippingAddress.equals(other.shippingAddress)
188+
&& address.equals(other.address)
164189
&& accountNumber.equals(other.accountNumber)
190+
&& emailId.equals(other.emailId)
165191
&& countryOfNationality.equals(other.countryOfNationality)
166192
&& countryOfResidence.equals(other.countryOfResidence)
167193
&& bankAddress.equals(other.bankAddress)
@@ -178,7 +204,9 @@ public int hashCode() {
178204
this.deliveryStatus,
179205
this.etaTimestamp,
180206
this.shippingAddress,
207+
this.address,
181208
this.accountNumber,
209+
this.emailId,
182210
this.countryOfNationality,
183211
this.countryOfResidence,
184212
this.bankAddress,
@@ -210,8 +238,12 @@ public static final class Builder {
210238

211239
private Optional<Address> shippingAddress = Optional.empty();
212240

241+
private Optional<Address> address = Optional.empty();
242+
213243
private Optional<String> accountNumber = Optional.empty();
214244

245+
private Optional<String> emailId = Optional.empty();
246+
215247
private Optional<CountryCode> countryOfNationality = Optional.empty();
216248

217249
private Optional<CountryCode> countryOfResidence = Optional.empty();
@@ -233,7 +265,9 @@ public Builder from(CheckDetails other) {
233265
deliveryStatus(other.getDeliveryStatus());
234266
etaTimestamp(other.getEtaTimestamp());
235267
shippingAddress(other.getShippingAddress());
268+
address(other.getAddress());
236269
accountNumber(other.getAccountNumber());
270+
emailId(other.getEmailId());
237271
countryOfNationality(other.getCountryOfNationality());
238272
countryOfResidence(other.getCountryOfResidence());
239273
bankAddress(other.getBankAddress());
@@ -318,6 +352,17 @@ public Builder shippingAddress(Address shippingAddress) {
318352
return this;
319353
}
320354

355+
@JsonSetter(value = "address", nulls = Nulls.SKIP)
356+
public Builder address(Optional<Address> address) {
357+
this.address = address;
358+
return this;
359+
}
360+
361+
public Builder address(Address address) {
362+
this.address = Optional.ofNullable(address);
363+
return this;
364+
}
365+
321366
@JsonSetter(value = "accountNumber", nulls = Nulls.SKIP)
322367
public Builder accountNumber(Optional<String> accountNumber) {
323368
this.accountNumber = accountNumber;
@@ -329,6 +374,17 @@ public Builder accountNumber(String accountNumber) {
329374
return this;
330375
}
331376

377+
@JsonSetter(value = "emailId", nulls = Nulls.SKIP)
378+
public Builder emailId(Optional<String> emailId) {
379+
this.emailId = emailId;
380+
return this;
381+
}
382+
383+
public Builder emailId(String emailId) {
384+
this.emailId = Optional.ofNullable(emailId);
385+
return this;
386+
}
387+
332388
@JsonSetter(value = "countryOfNationality", nulls = Nulls.SKIP)
333389
public Builder countryOfNationality(Optional<CountryCode> countryOfNationality) {
334390
this.countryOfNationality = countryOfNationality;
@@ -382,7 +438,9 @@ public CheckDetails build() {
382438
deliveryStatus,
383439
etaTimestamp,
384440
shippingAddress,
441+
address,
385442
accountNumber,
443+
emailId,
386444
countryOfNationality,
387445
countryOfResidence,
388446
bankAddress,

0 commit comments

Comments
 (0)