Skip to content

Commit beb55b6

Browse files
Release 1.8.30
1 parent 4c5e5ec commit beb55b6

14 files changed

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

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public final class BatchBusinessUserWithRulesResult {
4040

4141
private final Optional<List<Person>> directors;
4242

43+
private final Optional<List<LegalEntity>> businessPartners;
44+
4345
private final Optional<TransactionLimits> transactionLimits;
4446

4547
private final Optional<RiskLevel> riskLevel;
@@ -92,6 +94,7 @@ private BatchBusinessUserWithRulesResult(
9294
Optional<List<CorporateEntityDetails>> corporateEntities,
9395
Optional<List<BatchBusinessUserWithRulesResultShareHoldersItem>> shareHolders,
9496
Optional<List<Person>> directors,
97+
Optional<List<LegalEntity>> businessPartners,
9598
Optional<TransactionLimits> transactionLimits,
9699
Optional<RiskLevel> riskLevel,
97100
Optional<RiskLevel> kycRiskLevel,
@@ -122,6 +125,7 @@ private BatchBusinessUserWithRulesResult(
122125
this.corporateEntities = corporateEntities;
123126
this.shareHolders = shareHolders;
124127
this.directors = directors;
128+
this.businessPartners = businessPartners;
125129
this.transactionLimits = transactionLimits;
126130
this.riskLevel = riskLevel;
127131
this.kycRiskLevel = kycRiskLevel;
@@ -208,6 +212,14 @@ public Optional<List<Person>> getDirectors() {
208212
return directors;
209213
}
210214

215+
/**
216+
* @return Business partners of the company
217+
*/
218+
@JsonProperty("businessPartners")
219+
public Optional<List<LegalEntity>> getBusinessPartners() {
220+
return businessPartners;
221+
}
222+
211223
@JsonProperty("transactionLimits")
212224
public Optional<TransactionLimits> getTransactionLimits() {
213225
return transactionLimits;
@@ -347,6 +359,7 @@ private boolean equalTo(BatchBusinessUserWithRulesResult other) {
347359
&& corporateEntities.equals(other.corporateEntities)
348360
&& shareHolders.equals(other.shareHolders)
349361
&& directors.equals(other.directors)
362+
&& businessPartners.equals(other.businessPartners)
350363
&& transactionLimits.equals(other.transactionLimits)
351364
&& riskLevel.equals(other.riskLevel)
352365
&& kycRiskLevel.equals(other.kycRiskLevel)
@@ -381,6 +394,7 @@ public int hashCode() {
381394
this.corporateEntities,
382395
this.shareHolders,
383396
this.directors,
397+
this.businessPartners,
384398
this.transactionLimits,
385399
this.riskLevel,
386400
this.kycRiskLevel,
@@ -453,6 +467,10 @@ public interface _FinalStage {
453467

454468
_FinalStage directors(List<Person> directors);
455469

470+
_FinalStage businessPartners(Optional<List<LegalEntity>> businessPartners);
471+
472+
_FinalStage businessPartners(List<LegalEntity> businessPartners);
473+
456474
_FinalStage transactionLimits(Optional<TransactionLimits> transactionLimits);
457475

458476
_FinalStage transactionLimits(TransactionLimits transactionLimits);
@@ -585,6 +603,8 @@ public static final class Builder implements UserIdStage, CreatedTimestampStage,
585603

586604
private Optional<TransactionLimits> transactionLimits = Optional.empty();
587605

606+
private Optional<List<LegalEntity>> businessPartners = Optional.empty();
607+
588608
private Optional<List<Person>> directors = Optional.empty();
589609

590610
private Optional<List<BatchBusinessUserWithRulesResultShareHoldersItem>> shareHolders = Optional.empty();
@@ -613,6 +633,7 @@ public Builder from(BatchBusinessUserWithRulesResult other) {
613633
corporateEntities(other.getCorporateEntities());
614634
shareHolders(other.getShareHolders());
615635
directors(other.getDirectors());
636+
businessPartners(other.getBusinessPartners());
616637
transactionLimits(other.getTransactionLimits());
617638
riskLevel(other.getRiskLevel());
618639
kycRiskLevel(other.getKycRiskLevel());
@@ -951,6 +972,23 @@ public _FinalStage transactionLimits(Optional<TransactionLimits> transactionLimi
951972
return this;
952973
}
953974

975+
/**
976+
* <p>Business partners of the company</p>
977+
* @return Reference to {@code this} so that method calls can be chained together.
978+
*/
979+
@java.lang.Override
980+
public _FinalStage businessPartners(List<LegalEntity> businessPartners) {
981+
this.businessPartners = Optional.ofNullable(businessPartners);
982+
return this;
983+
}
984+
985+
@java.lang.Override
986+
@JsonSetter(value = "businessPartners", nulls = Nulls.SKIP)
987+
public _FinalStage businessPartners(Optional<List<LegalEntity>> businessPartners) {
988+
this.businessPartners = businessPartners;
989+
return this;
990+
}
991+
954992
/**
955993
* <p>Director(s) of the company. Must be at least one</p>
956994
* @return Reference to {@code this} so that method calls can be chained together.
@@ -1057,6 +1095,7 @@ public BatchBusinessUserWithRulesResult build() {
10571095
corporateEntities,
10581096
shareHolders,
10591097
directors,
1098+
businessPartners,
10601099
transactionLimits,
10611100
riskLevel,
10621101
kycRiskLevel,
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 = BlockChainEntity.Builder.class)
23+
public final class BlockChainEntity {
24+
private final Optional<String> name;
25+
26+
private final Optional<List<Tag>> tags;
27+
28+
private final Map<String, Object> additionalProperties;
29+
30+
private BlockChainEntity(
31+
Optional<String> name, Optional<List<Tag>> tags, Map<String, Object> additionalProperties) {
32+
this.name = name;
33+
this.tags = tags;
34+
this.additionalProperties = additionalProperties;
35+
}
36+
37+
/**
38+
* @return Name of the entity
39+
*/
40+
@JsonProperty("name")
41+
public Optional<String> getName() {
42+
return name;
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 BlockChainEntity && equalTo((BlockChainEntity) other);
57+
}
58+
59+
@JsonAnyGetter
60+
public Map<String, Object> getAdditionalProperties() {
61+
return this.additionalProperties;
62+
}
63+
64+
private boolean equalTo(BlockChainEntity other) {
65+
return name.equals(other.name) && tags.equals(other.tags);
66+
}
67+
68+
@java.lang.Override
69+
public int hashCode() {
70+
return Objects.hash(this.name, 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> name = 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(BlockChainEntity other) {
94+
name(other.getName());
95+
tags(other.getTags());
96+
return this;
97+
}
98+
99+
@JsonSetter(value = "name", nulls = Nulls.SKIP)
100+
public Builder name(Optional<String> name) {
101+
this.name = name;
102+
return this;
103+
}
104+
105+
public Builder name(String name) {
106+
this.name = Optional.ofNullable(name);
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 BlockChainEntity build() {
122+
return new BlockChainEntity(name, tags, additionalProperties);
123+
}
124+
}
125+
}

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

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
1414
import com.flagright.api.core.ObjectMappers;
1515
import java.util.HashMap;
16+
import java.util.List;
1617
import java.util.Map;
1718
import java.util.Objects;
1819
import java.util.Optional;
@@ -24,12 +25,18 @@ public final class BlockchainCounterparty {
2425

2526
private final Optional<String> categoryId;
2627

28+
private final Optional<List<Tag>> tags;
29+
2730
private final Map<String, Object> additionalProperties;
2831

2932
private BlockchainCounterparty(
30-
Optional<String> name, Optional<String> categoryId, Map<String, Object> additionalProperties) {
33+
Optional<String> name,
34+
Optional<String> categoryId,
35+
Optional<List<Tag>> tags,
36+
Map<String, Object> additionalProperties) {
3137
this.name = name;
3238
this.categoryId = categoryId;
39+
this.tags = tags;
3340
this.additionalProperties = additionalProperties;
3441
}
3542

@@ -49,6 +56,14 @@ public Optional<String> getCategoryId() {
4956
return categoryId;
5057
}
5158

59+
/**
60+
* @return Additional information that can be added via tags
61+
*/
62+
@JsonProperty("tags")
63+
public Optional<List<Tag>> getTags() {
64+
return tags;
65+
}
66+
5267
@java.lang.Override
5368
public boolean equals(Object other) {
5469
if (this == other) return true;
@@ -61,12 +76,12 @@ public Map<String, Object> getAdditionalProperties() {
6176
}
6277

6378
private boolean equalTo(BlockchainCounterparty other) {
64-
return name.equals(other.name) && categoryId.equals(other.categoryId);
79+
return name.equals(other.name) && categoryId.equals(other.categoryId) && tags.equals(other.tags);
6580
}
6681

6782
@java.lang.Override
6883
public int hashCode() {
69-
return Objects.hash(this.name, this.categoryId);
84+
return Objects.hash(this.name, this.categoryId, this.tags);
7085
}
7186

7287
@java.lang.Override
@@ -84,6 +99,8 @@ public static final class Builder {
8499

85100
private Optional<String> categoryId = Optional.empty();
86101

102+
private Optional<List<Tag>> tags = Optional.empty();
103+
87104
@JsonAnySetter
88105
private Map<String, Object> additionalProperties = new HashMap<>();
89106

@@ -92,6 +109,7 @@ private Builder() {}
92109
public Builder from(BlockchainCounterparty other) {
93110
name(other.getName());
94111
categoryId(other.getCategoryId());
112+
tags(other.getTags());
95113
return this;
96114
}
97115

@@ -117,8 +135,19 @@ public Builder categoryId(String categoryId) {
117135
return this;
118136
}
119137

138+
@JsonSetter(value = "tags", nulls = Nulls.SKIP)
139+
public Builder tags(Optional<List<Tag>> tags) {
140+
this.tags = tags;
141+
return this;
142+
}
143+
144+
public Builder tags(List<Tag> tags) {
145+
this.tags = Optional.ofNullable(tags);
146+
return this;
147+
}
148+
120149
public BlockchainCounterparty build() {
121-
return new BlockchainCounterparty(name, categoryId, additionalProperties);
150+
return new BlockchainCounterparty(name, categoryId, tags, additionalProperties);
122151
}
123152
}
124153
}

0 commit comments

Comments
 (0)