Skip to content

Commit c4cb662

Browse files
committed
Release 1.8.1
1 parent f0a0c6a commit c4cb662

6 files changed

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

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

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

3434
private final Optional<Address> shippingAddress;
3535

36+
private final Optional<String> accountNumber;
37+
3638
private final Optional<List<Tag>> tags;
3739

3840
private final Map<String, Object> additionalProperties;
@@ -44,6 +46,7 @@ private CheckDetails(
4446
Optional<CheckDeliveryStatus> deliveryStatus,
4547
Optional<Double> etaTimestamp,
4648
Optional<Address> shippingAddress,
49+
Optional<String> accountNumber,
4750
Optional<List<Tag>> tags,
4851
Map<String, Object> additionalProperties) {
4952
this.checkNumber = checkNumber;
@@ -52,6 +55,7 @@ private CheckDetails(
5255
this.deliveryStatus = deliveryStatus;
5356
this.etaTimestamp = etaTimestamp;
5457
this.shippingAddress = shippingAddress;
58+
this.accountNumber = accountNumber;
5559
this.tags = tags;
5660
this.additionalProperties = additionalProperties;
5761
}
@@ -86,6 +90,11 @@ public Optional<Address> getShippingAddress() {
8690
return shippingAddress;
8791
}
8892

93+
@JsonProperty("accountNumber")
94+
public Optional<String> getAccountNumber() {
95+
return accountNumber;
96+
}
97+
8998
/**
9099
* @return Additional information that can be added via tags
91100
*/
@@ -112,6 +121,7 @@ private boolean equalTo(CheckDetails other) {
112121
&& deliveryStatus.equals(other.deliveryStatus)
113122
&& etaTimestamp.equals(other.etaTimestamp)
114123
&& shippingAddress.equals(other.shippingAddress)
124+
&& accountNumber.equals(other.accountNumber)
115125
&& tags.equals(other.tags);
116126
}
117127

@@ -124,6 +134,7 @@ public int hashCode() {
124134
this.deliveryStatus,
125135
this.etaTimestamp,
126136
this.shippingAddress,
137+
this.accountNumber,
127138
this.tags);
128139
}
129140

@@ -150,6 +161,8 @@ public static final class Builder {
150161

151162
private Optional<Address> shippingAddress = Optional.empty();
152163

164+
private Optional<String> accountNumber = Optional.empty();
165+
153166
private Optional<List<Tag>> tags = Optional.empty();
154167

155168
@JsonAnySetter
@@ -164,6 +177,7 @@ public Builder from(CheckDetails other) {
164177
deliveryStatus(other.getDeliveryStatus());
165178
etaTimestamp(other.getEtaTimestamp());
166179
shippingAddress(other.getShippingAddress());
180+
accountNumber(other.getAccountNumber());
167181
tags(other.getTags());
168182
return this;
169183
}
@@ -234,6 +248,17 @@ public Builder shippingAddress(Address shippingAddress) {
234248
return this;
235249
}
236250

251+
@JsonSetter(value = "accountNumber", nulls = Nulls.SKIP)
252+
public Builder accountNumber(Optional<String> accountNumber) {
253+
this.accountNumber = accountNumber;
254+
return this;
255+
}
256+
257+
public Builder accountNumber(String accountNumber) {
258+
this.accountNumber = Optional.ofNullable(accountNumber);
259+
return this;
260+
}
261+
237262
@JsonSetter(value = "tags", nulls = Nulls.SKIP)
238263
public Builder tags(Optional<List<Tag>> tags) {
239264
this.tags = tags;
@@ -253,6 +278,7 @@ public CheckDetails build() {
253278
deliveryStatus,
254279
etaTimestamp,
255280
shippingAddress,
281+
accountNumber,
256282
tags,
257283
additionalProperties);
258284
}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,12 @@ public enum CurrencyCode {
278278

279279
EUR("EUR"),
280280

281+
EURA("EURA"),
282+
281283
EURC("EURC"),
282284

285+
EURT("EURT"),
286+
283287
EUROC("EUROC"),
284288

285289
ETHFI("ETHFI"),
@@ -404,6 +408,8 @@ public enum CurrencyCode {
404408

405409
IOTX("IOTX"),
406410

411+
ISLM("ISLM"),
412+
407413
IQD("IQD"),
408414

409415
IRR("IRR"),
@@ -582,6 +588,8 @@ public enum CurrencyCode {
582588

583589
NOK("NOK"),
584590

591+
NPC("NPC"),
592+
585593
NPR("NPR"),
586594

587595
NU("NU"),

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

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ public final class GenericBankAccountDetails {
5353

5454
private final Optional<Address> address;
5555

56+
private final Optional<String> routingNumber;
57+
5658
private final Map<String, Object> additionalProperties;
5759

5860
private GenericBankAccountDetails(
@@ -72,6 +74,7 @@ private GenericBankAccountDetails(
7274
Optional<List<Tag>> tags,
7375
Optional<String> transitNumber,
7476
Optional<Address> address,
77+
Optional<String> routingNumber,
7578
Map<String, Object> additionalProperties) {
7679
this.accountNumber = accountNumber;
7780
this.accountType = accountType;
@@ -89,6 +92,7 @@ private GenericBankAccountDetails(
8992
this.tags = tags;
9093
this.transitNumber = transitNumber;
9194
this.address = address;
95+
this.routingNumber = routingNumber;
9296
this.additionalProperties = additionalProperties;
9397
}
9498

@@ -202,6 +206,14 @@ public Optional<Address> getAddress() {
202206
return address;
203207
}
204208

209+
/**
210+
* @return Routing number of the bank
211+
*/
212+
@JsonProperty("routingNumber")
213+
public Optional<String> getRoutingNumber() {
214+
return routingNumber;
215+
}
216+
205217
@java.lang.Override
206218
public boolean equals(Object other) {
207219
if (this == other) return true;
@@ -229,7 +241,8 @@ private boolean equalTo(GenericBankAccountDetails other) {
229241
&& paymentChannel.equals(other.paymentChannel)
230242
&& tags.equals(other.tags)
231243
&& transitNumber.equals(other.transitNumber)
232-
&& address.equals(other.address);
244+
&& address.equals(other.address)
245+
&& routingNumber.equals(other.routingNumber);
233246
}
234247

235248
@java.lang.Override
@@ -250,7 +263,8 @@ public int hashCode() {
250263
this.paymentChannel,
251264
this.tags,
252265
this.transitNumber,
253-
this.address);
266+
this.address,
267+
this.routingNumber);
254268
}
255269

256270
@java.lang.Override
@@ -296,6 +310,8 @@ public static final class Builder {
296310

297311
private Optional<Address> address = Optional.empty();
298312

313+
private Optional<String> routingNumber = Optional.empty();
314+
299315
@JsonAnySetter
300316
private Map<String, Object> additionalProperties = new HashMap<>();
301317

@@ -318,6 +334,7 @@ public Builder from(GenericBankAccountDetails other) {
318334
tags(other.getTags());
319335
transitNumber(other.getTransitNumber());
320336
address(other.getAddress());
337+
routingNumber(other.getRoutingNumber());
321338
return this;
322339
}
323340

@@ -497,6 +514,17 @@ public Builder address(Address address) {
497514
return this;
498515
}
499516

517+
@JsonSetter(value = "routingNumber", nulls = Nulls.SKIP)
518+
public Builder routingNumber(Optional<String> routingNumber) {
519+
this.routingNumber = routingNumber;
520+
return this;
521+
}
522+
523+
public Builder routingNumber(String routingNumber) {
524+
this.routingNumber = Optional.ofNullable(routingNumber);
525+
return this;
526+
}
527+
500528
public GenericBankAccountDetails build() {
501529
return new GenericBankAccountDetails(
502530
accountNumber,
@@ -515,6 +543,7 @@ public GenericBankAccountDetails build() {
515543
tags,
516544
transitNumber,
517545
address,
546+
routingNumber,
518547
additionalProperties);
519548
}
520549
}

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public final class SwiftDetails {
3939

4040
private final Optional<String> specialInstructions;
4141

42+
private final Optional<Address> address;
43+
4244
private final Optional<List<Tag>> tags;
4345

4446
private final Map<String, Object> additionalProperties;
@@ -53,6 +55,7 @@ private SwiftDetails(
5355
Optional<Address> bankAddress,
5456
Optional<String> emailId,
5557
Optional<String> specialInstructions,
58+
Optional<Address> address,
5659
Optional<List<Tag>> tags,
5760
Map<String, Object> additionalProperties) {
5861
this.swiftCode = swiftCode;
@@ -64,6 +67,7 @@ private SwiftDetails(
6467
this.bankAddress = bankAddress;
6568
this.emailId = emailId;
6669
this.specialInstructions = specialInstructions;
70+
this.address = address;
6771
this.tags = tags;
6872
this.additionalProperties = additionalProperties;
6973
}
@@ -131,6 +135,11 @@ public Optional<String> getSpecialInstructions() {
131135
return specialInstructions;
132136
}
133137

138+
@JsonProperty("address")
139+
public Optional<Address> getAddress() {
140+
return address;
141+
}
142+
134143
/**
135144
* @return Additional information that can be added via tags
136145
*/
@@ -160,6 +169,7 @@ private boolean equalTo(SwiftDetails other) {
160169
&& bankAddress.equals(other.bankAddress)
161170
&& emailId.equals(other.emailId)
162171
&& specialInstructions.equals(other.specialInstructions)
172+
&& address.equals(other.address)
163173
&& tags.equals(other.tags);
164174
}
165175

@@ -175,6 +185,7 @@ public int hashCode() {
175185
this.bankAddress,
176186
this.emailId,
177187
this.specialInstructions,
188+
this.address,
178189
this.tags);
179190
}
180191

@@ -207,6 +218,8 @@ public static final class Builder {
207218

208219
private Optional<String> specialInstructions = Optional.empty();
209220

221+
private Optional<Address> address = Optional.empty();
222+
210223
private Optional<List<Tag>> tags = Optional.empty();
211224

212225
@JsonAnySetter
@@ -224,6 +237,7 @@ public Builder from(SwiftDetails other) {
224237
bankAddress(other.getBankAddress());
225238
emailId(other.getEmailId());
226239
specialInstructions(other.getSpecialInstructions());
240+
address(other.getAddress());
227241
tags(other.getTags());
228242
return this;
229243
}
@@ -327,6 +341,17 @@ public Builder specialInstructions(String specialInstructions) {
327341
return this;
328342
}
329343

344+
@JsonSetter(value = "address", nulls = Nulls.SKIP)
345+
public Builder address(Optional<Address> address) {
346+
this.address = address;
347+
return this;
348+
}
349+
350+
public Builder address(Address address) {
351+
this.address = Optional.ofNullable(address);
352+
return this;
353+
}
354+
330355
@JsonSetter(value = "tags", nulls = Nulls.SKIP)
331356
public Builder tags(Optional<List<Tag>> tags) {
332357
this.tags = tags;
@@ -349,6 +374,7 @@ public SwiftDetails build() {
349374
bankAddress,
350375
emailId,
351376
specialInstructions,
377+
address,
352378
tags,
353379
additionalProperties);
354380
}

0 commit comments

Comments
 (0)