Skip to content

Commit 3d00550

Browse files
committed
Release 1.8.14
1 parent 8bcf5ee commit 3d00550

6 files changed

Lines changed: 195 additions & 4 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.13'
49+
version = '1.8.14'
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.13'
80+
version = '1.8.14'
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.13");
35+
put("User-Agent", "com.flagright.api:flagright-java/1.8.14");
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.13");
38+
put("X-Fern-SDK-Version", "1.8.14");
3939
}
4040
});
4141
this.headerSuppliers = headerSuppliers;
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
package com.flagright.api.types;
5+
6+
import com.fasterxml.jackson.annotation.JsonAnyGetter;
7+
import com.fasterxml.jackson.annotation.JsonAnySetter;
8+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
9+
import com.fasterxml.jackson.annotation.JsonInclude;
10+
import com.fasterxml.jackson.annotation.JsonProperty;
11+
import com.fasterxml.jackson.annotation.JsonSetter;
12+
import com.fasterxml.jackson.annotation.Nulls;
13+
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
14+
import com.flagright.api.core.ObjectMappers;
15+
import java.util.HashMap;
16+
import java.util.List;
17+
import java.util.Map;
18+
import java.util.Objects;
19+
import java.util.Optional;
20+
21+
@JsonInclude(JsonInclude.Include.NON_ABSENT)
22+
@JsonDeserialize(builder = CorrespondenceBankDetails.Builder.class)
23+
public final class CorrespondenceBankDetails {
24+
private final Optional<String> bankName;
25+
26+
private final Optional<List<Tag>> tags;
27+
28+
private final Map<String, Object> additionalProperties;
29+
30+
private CorrespondenceBankDetails(
31+
Optional<String> bankName, Optional<List<Tag>> tags, Map<String, Object> additionalProperties) {
32+
this.bankName = bankName;
33+
this.tags = tags;
34+
this.additionalProperties = additionalProperties;
35+
}
36+
37+
/**
38+
* @return Name of the bank
39+
*/
40+
@JsonProperty("bankName")
41+
public Optional<String> getBankName() {
42+
return bankName;
43+
}
44+
45+
/**
46+
* @return Additional information that can be added via tags
47+
*/
48+
@JsonProperty("tags")
49+
public Optional<List<Tag>> getTags() {
50+
return tags;
51+
}
52+
53+
@java.lang.Override
54+
public boolean equals(Object other) {
55+
if (this == other) return true;
56+
return other instanceof CorrespondenceBankDetails && equalTo((CorrespondenceBankDetails) other);
57+
}
58+
59+
@JsonAnyGetter
60+
public Map<String, Object> getAdditionalProperties() {
61+
return this.additionalProperties;
62+
}
63+
64+
private boolean equalTo(CorrespondenceBankDetails other) {
65+
return bankName.equals(other.bankName) && tags.equals(other.tags);
66+
}
67+
68+
@java.lang.Override
69+
public int hashCode() {
70+
return Objects.hash(this.bankName, this.tags);
71+
}
72+
73+
@java.lang.Override
74+
public String toString() {
75+
return ObjectMappers.stringify(this);
76+
}
77+
78+
public static Builder builder() {
79+
return new Builder();
80+
}
81+
82+
@JsonIgnoreProperties(ignoreUnknown = true)
83+
public static final class Builder {
84+
private Optional<String> bankName = Optional.empty();
85+
86+
private Optional<List<Tag>> tags = Optional.empty();
87+
88+
@JsonAnySetter
89+
private Map<String, Object> additionalProperties = new HashMap<>();
90+
91+
private Builder() {}
92+
93+
public Builder from(CorrespondenceBankDetails other) {
94+
bankName(other.getBankName());
95+
tags(other.getTags());
96+
return this;
97+
}
98+
99+
@JsonSetter(value = "bankName", nulls = Nulls.SKIP)
100+
public Builder bankName(Optional<String> bankName) {
101+
this.bankName = bankName;
102+
return this;
103+
}
104+
105+
public Builder bankName(String bankName) {
106+
this.bankName = Optional.ofNullable(bankName);
107+
return this;
108+
}
109+
110+
@JsonSetter(value = "tags", nulls = Nulls.SKIP)
111+
public Builder tags(Optional<List<Tag>> tags) {
112+
this.tags = tags;
113+
return this;
114+
}
115+
116+
public Builder tags(List<Tag> tags) {
117+
this.tags = Optional.ofNullable(tags);
118+
return this;
119+
}
120+
121+
public CorrespondenceBankDetails build() {
122+
return new CorrespondenceBankDetails(bankName, tags, additionalProperties);
123+
}
124+
}
125+
}

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ public enum CurrencyCode {
248248

249249
DREP("DREP"),
250250

251+
DYDX("DYDX"),
252+
251253
DYP("DYP"),
252254

253255
DZD("DZD"),
@@ -406,6 +408,8 @@ public enum CurrencyCode {
406408

407409
INV("INV"),
408410

411+
IOTA("IOTA"),
412+
409413
IOTX("IOTX"),
410414

411415
ISLM("ISLM"),
@@ -440,6 +444,8 @@ public enum CurrencyCode {
440444

441445
KHR("KHR"),
442446

447+
KLAY("KLAY"),
448+
443449
KMF("KMF"),
444450

445451
KNC("KNC"),
@@ -492,6 +498,8 @@ public enum CurrencyCode {
492498

493499
LTL("LTL"),
494500

501+
LUNA_2("LUNA2"),
502+
495503
LVL("LVL"),
496504

497505
LYD("LYD"),
@@ -576,6 +584,8 @@ public enum CurrencyCode {
576584

577585
NEAR("NEAR"),
578586

587+
NEO("NEO"),
588+
579589
NEST("NEST"),
580590

581591
NGN("NGN"),
@@ -886,6 +896,8 @@ public enum CurrencyCode {
886896

887897
WAMPL("WAMPL"),
888898

899+
WAVES("WAVES"),
900+
889901
WAXL("WAXL"),
890902

891903
WBTC("WBTC"),
@@ -940,6 +952,8 @@ public enum CurrencyCode {
940952

941953
ZETA("ZETA"),
942954

955+
ZIL("ZIL"),
956+
943957
ZMK("ZMK"),
944958

945959
ZMW("ZMW"),

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

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

4444
private final Optional<Address> address;
4545

46+
private final Optional<List<CorrespondenceBankDetails>> correspondenceBankDetails;
47+
4648
private final Optional<List<Tag>> tags;
4749

4850
private final Map<String, Object> additionalProperties;
@@ -59,6 +61,7 @@ private SwiftDetails(
5961
Optional<String> emailId,
6062
Optional<String> specialInstructions,
6163
Optional<Address> address,
64+
Optional<List<CorrespondenceBankDetails>> correspondenceBankDetails,
6265
Optional<List<Tag>> tags,
6366
Map<String, Object> additionalProperties) {
6467
this.swiftCode = swiftCode;
@@ -72,6 +75,7 @@ private SwiftDetails(
7275
this.emailId = emailId;
7376
this.specialInstructions = specialInstructions;
7477
this.address = address;
78+
this.correspondenceBankDetails = correspondenceBankDetails;
7579
this.tags = tags;
7680
this.additionalProperties = additionalProperties;
7781
}
@@ -152,6 +156,11 @@ public Optional<Address> getAddress() {
152156
return address;
153157
}
154158

159+
@JsonProperty("correspondenceBankDetails")
160+
public Optional<List<CorrespondenceBankDetails>> getCorrespondenceBankDetails() {
161+
return correspondenceBankDetails;
162+
}
163+
155164
/**
156165
* @return Additional information that can be added via tags
157166
*/
@@ -183,6 +192,7 @@ private boolean equalTo(SwiftDetails other) {
183192
&& emailId.equals(other.emailId)
184193
&& specialInstructions.equals(other.specialInstructions)
185194
&& address.equals(other.address)
195+
&& correspondenceBankDetails.equals(other.correspondenceBankDetails)
186196
&& tags.equals(other.tags);
187197
}
188198

@@ -200,6 +210,7 @@ public int hashCode() {
200210
this.emailId,
201211
this.specialInstructions,
202212
this.address,
213+
this.correspondenceBankDetails,
203214
this.tags);
204215
}
205216

@@ -236,6 +247,8 @@ public static final class Builder {
236247

237248
private Optional<Address> address = Optional.empty();
238249

250+
private Optional<List<CorrespondenceBankDetails>> correspondenceBankDetails = Optional.empty();
251+
239252
private Optional<List<Tag>> tags = Optional.empty();
240253

241254
@JsonAnySetter
@@ -255,6 +268,7 @@ public Builder from(SwiftDetails other) {
255268
emailId(other.getEmailId());
256269
specialInstructions(other.getSpecialInstructions());
257270
address(other.getAddress());
271+
correspondenceBankDetails(other.getCorrespondenceBankDetails());
258272
tags(other.getTags());
259273
return this;
260274
}
@@ -380,6 +394,17 @@ public Builder address(Address address) {
380394
return this;
381395
}
382396

397+
@JsonSetter(value = "correspondenceBankDetails", nulls = Nulls.SKIP)
398+
public Builder correspondenceBankDetails(Optional<List<CorrespondenceBankDetails>> correspondenceBankDetails) {
399+
this.correspondenceBankDetails = correspondenceBankDetails;
400+
return this;
401+
}
402+
403+
public Builder correspondenceBankDetails(List<CorrespondenceBankDetails> correspondenceBankDetails) {
404+
this.correspondenceBankDetails = Optional.ofNullable(correspondenceBankDetails);
405+
return this;
406+
}
407+
383408
@JsonSetter(value = "tags", nulls = Nulls.SKIP)
384409
public Builder tags(Optional<List<Tag>> tags) {
385410
this.tags = tags;
@@ -404,6 +429,7 @@ public SwiftDetails build() {
404429
emailId,
405430
specialInstructions,
406431
address,
432+
correspondenceBankDetails,
407433
tags,
408434
additionalProperties);
409435
}

0 commit comments

Comments
 (0)