Skip to content

Commit 0bafb10

Browse files
Release 1.8.33
1 parent 4a48b06 commit 0bafb10

File tree

3 files changed

+39
-7
lines changed

3 files changed

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

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

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

2727
private final Optional<PepRank> pepRank;
2828

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

3133
private PepStatus(
3234
boolean isPepHit,
3335
Optional<CountryCode> pepCountry,
3436
Optional<PepRank> pepRank,
37+
Optional<String> category,
3538
Map<String, Object> additionalProperties) {
3639
this.isPepHit = isPepHit;
3740
this.pepCountry = pepCountry;
3841
this.pepRank = pepRank;
42+
this.category = category;
3943
this.additionalProperties = additionalProperties;
4044
}
4145

@@ -54,6 +58,11 @@ public Optional<PepRank> getPepRank() {
5458
return pepRank;
5559
}
5660

61+
@JsonProperty("category")
62+
public Optional<String> getCategory() {
63+
return category;
64+
}
65+
5766
@java.lang.Override
5867
public boolean equals(Object other) {
5968
if (this == other) return true;
@@ -66,12 +75,15 @@ public Map<String, Object> getAdditionalProperties() {
6675
}
6776

6877
private boolean equalTo(PepStatus other) {
69-
return isPepHit == other.isPepHit && pepCountry.equals(other.pepCountry) && pepRank.equals(other.pepRank);
78+
return isPepHit == other.isPepHit
79+
&& pepCountry.equals(other.pepCountry)
80+
&& pepRank.equals(other.pepRank)
81+
&& category.equals(other.category);
7082
}
7183

7284
@java.lang.Override
7385
public int hashCode() {
74-
return Objects.hash(this.isPepHit, this.pepCountry, this.pepRank);
86+
return Objects.hash(this.isPepHit, this.pepCountry, this.pepRank, this.category);
7587
}
7688

7789
@java.lang.Override
@@ -99,12 +111,18 @@ public interface _FinalStage {
99111
_FinalStage pepRank(Optional<PepRank> pepRank);
100112

101113
_FinalStage pepRank(PepRank pepRank);
114+
115+
_FinalStage category(Optional<String> category);
116+
117+
_FinalStage category(String category);
102118
}
103119

104120
@JsonIgnoreProperties(ignoreUnknown = true)
105121
public static final class Builder implements IsPepHitStage, _FinalStage {
106122
private boolean isPepHit;
107123

124+
private Optional<String> category = Optional.empty();
125+
108126
private Optional<PepRank> pepRank = Optional.empty();
109127

110128
private Optional<CountryCode> pepCountry = Optional.empty();
@@ -119,6 +137,7 @@ public Builder from(PepStatus other) {
119137
isPepHit(other.getIsPepHit());
120138
pepCountry(other.getPepCountry());
121139
pepRank(other.getPepRank());
140+
category(other.getCategory());
122141
return this;
123142
}
124143

@@ -129,6 +148,19 @@ public _FinalStage isPepHit(boolean isPepHit) {
129148
return this;
130149
}
131150

151+
@java.lang.Override
152+
public _FinalStage category(String category) {
153+
this.category = Optional.ofNullable(category);
154+
return this;
155+
}
156+
157+
@java.lang.Override
158+
@JsonSetter(value = "category", nulls = Nulls.SKIP)
159+
public _FinalStage category(Optional<String> category) {
160+
this.category = category;
161+
return this;
162+
}
163+
132164
@java.lang.Override
133165
public _FinalStage pepRank(PepRank pepRank) {
134166
this.pepRank = Optional.ofNullable(pepRank);
@@ -157,7 +189,7 @@ public _FinalStage pepCountry(Optional<CountryCode> pepCountry) {
157189

158190
@java.lang.Override
159191
public PepStatus build() {
160-
return new PepStatus(isPepHit, pepCountry, pepRank, additionalProperties);
192+
return new PepStatus(isPepHit, pepCountry, pepRank, category, additionalProperties);
161193
}
162194
}
163195
}

0 commit comments

Comments
 (0)