Skip to content

Commit ba6d5a7

Browse files
Release 1.8.36
1 parent c95e2d8 commit ba6d5a7

File tree

3 files changed

+77
-6
lines changed

3 files changed

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

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

Lines changed: 73 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public final class LegalEntity {
3434

3535
private final Optional<ContactDetails> contactDetails;
3636

37+
private final Optional<List<Tag>> tags;
38+
39+
private final Optional<List<PepStatus>> pepStatus;
40+
3741
private final Map<String, Object> additionalProperties;
3842

3943
private LegalEntity(
@@ -43,13 +47,17 @@ private LegalEntity(
4347
Optional<List<String>> reasonForAccountOpening,
4448
Optional<List<SourceOfFunds>> sourceOfFunds,
4549
Optional<ContactDetails> contactDetails,
50+
Optional<List<Tag>> tags,
51+
Optional<List<PepStatus>> pepStatus,
4652
Map<String, Object> additionalProperties) {
4753
this.companyGeneralDetails = companyGeneralDetails;
4854
this.companyFinancialDetails = companyFinancialDetails;
4955
this.companyRegistrationDetails = companyRegistrationDetails;
5056
this.reasonForAccountOpening = reasonForAccountOpening;
5157
this.sourceOfFunds = sourceOfFunds;
5258
this.contactDetails = contactDetails;
59+
this.tags = tags;
60+
this.pepStatus = pepStatus;
5361
this.additionalProperties = additionalProperties;
5462
}
5563

@@ -83,6 +91,19 @@ public Optional<ContactDetails> getContactDetails() {
8391
return contactDetails;
8492
}
8593

94+
/**
95+
* @return Additional information that can be added via tags
96+
*/
97+
@JsonProperty("tags")
98+
public Optional<List<Tag>> getTags() {
99+
return tags;
100+
}
101+
102+
@JsonProperty("pepStatus")
103+
public Optional<List<PepStatus>> getPepStatus() {
104+
return pepStatus;
105+
}
106+
86107
@java.lang.Override
87108
public boolean equals(Object other) {
88109
if (this == other) return true;
@@ -100,7 +121,9 @@ private boolean equalTo(LegalEntity other) {
100121
&& companyRegistrationDetails.equals(other.companyRegistrationDetails)
101122
&& reasonForAccountOpening.equals(other.reasonForAccountOpening)
102123
&& sourceOfFunds.equals(other.sourceOfFunds)
103-
&& contactDetails.equals(other.contactDetails);
124+
&& contactDetails.equals(other.contactDetails)
125+
&& tags.equals(other.tags)
126+
&& pepStatus.equals(other.pepStatus);
104127
}
105128

106129
@java.lang.Override
@@ -111,7 +134,9 @@ public int hashCode() {
111134
this.companyRegistrationDetails,
112135
this.reasonForAccountOpening,
113136
this.sourceOfFunds,
114-
this.contactDetails);
137+
this.contactDetails,
138+
this.tags,
139+
this.pepStatus);
115140
}
116141

117142
@java.lang.Override
@@ -151,12 +176,24 @@ public interface _FinalStage {
151176
_FinalStage contactDetails(Optional<ContactDetails> contactDetails);
152177

153178
_FinalStage contactDetails(ContactDetails contactDetails);
179+
180+
_FinalStage tags(Optional<List<Tag>> tags);
181+
182+
_FinalStage tags(List<Tag> tags);
183+
184+
_FinalStage pepStatus(Optional<List<PepStatus>> pepStatus);
185+
186+
_FinalStage pepStatus(List<PepStatus> pepStatus);
154187
}
155188

156189
@JsonIgnoreProperties(ignoreUnknown = true)
157190
public static final class Builder implements CompanyGeneralDetailsStage, _FinalStage {
158191
private CompanyGeneralDetails companyGeneralDetails;
159192

193+
private Optional<List<PepStatus>> pepStatus = Optional.empty();
194+
195+
private Optional<List<Tag>> tags = Optional.empty();
196+
160197
private Optional<ContactDetails> contactDetails = Optional.empty();
161198

162199
private Optional<List<SourceOfFunds>> sourceOfFunds = Optional.empty();
@@ -180,6 +217,8 @@ public Builder from(LegalEntity other) {
180217
reasonForAccountOpening(other.getReasonForAccountOpening());
181218
sourceOfFunds(other.getSourceOfFunds());
182219
contactDetails(other.getContactDetails());
220+
tags(other.getTags());
221+
pepStatus(other.getPepStatus());
183222
return this;
184223
}
185224

@@ -191,6 +230,36 @@ public _FinalStage companyGeneralDetails(@NotNull CompanyGeneralDetails companyG
191230
return this;
192231
}
193232

233+
@java.lang.Override
234+
public _FinalStage pepStatus(List<PepStatus> pepStatus) {
235+
this.pepStatus = Optional.ofNullable(pepStatus);
236+
return this;
237+
}
238+
239+
@java.lang.Override
240+
@JsonSetter(value = "pepStatus", nulls = Nulls.SKIP)
241+
public _FinalStage pepStatus(Optional<List<PepStatus>> pepStatus) {
242+
this.pepStatus = pepStatus;
243+
return this;
244+
}
245+
246+
/**
247+
* <p>Additional information that can be added via tags</p>
248+
* @return Reference to {@code this} so that method calls can be chained together.
249+
*/
250+
@java.lang.Override
251+
public _FinalStage tags(List<Tag> tags) {
252+
this.tags = Optional.ofNullable(tags);
253+
return this;
254+
}
255+
256+
@java.lang.Override
257+
@JsonSetter(value = "tags", nulls = Nulls.SKIP)
258+
public _FinalStage tags(Optional<List<Tag>> tags) {
259+
this.tags = tags;
260+
return this;
261+
}
262+
194263
@java.lang.Override
195264
public _FinalStage contactDetails(ContactDetails contactDetails) {
196265
this.contactDetails = Optional.ofNullable(contactDetails);
@@ -265,6 +334,8 @@ public LegalEntity build() {
265334
reasonForAccountOpening,
266335
sourceOfFunds,
267336
contactDetails,
337+
tags,
338+
pepStatus,
268339
additionalProperties);
269340
}
270341
}

0 commit comments

Comments
 (0)