Skip to content

Commit 14f2496

Browse files
committed
Release v1.7.15
1 parent b561b97 commit 14f2496

5 files changed

Lines changed: 141 additions & 13 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 = 'v1.7.14'
49+
version = 'v1.7.15'
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 = 'v1.7.14'
80+
version = 'v1.7.15'
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/v1.7.14");
35+
put("User-Agent", "com.flagright.api:flagright-java/v1.7.15");
3636
put("X-Fern-Language", "JAVA");
3737
put("X-Fern-SDK-Name", "com.flagright.fern:api-sdk");
38-
put("X-Fern-SDK-Version", "v1.7.14");
38+
put("X-Fern-SDK-Version", "v1.7.15");
3939
}
4040
});
4141
this.headerSuppliers = headerSuppliers;

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

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public final class PersonAttachment {
3535

3636
private final Optional<Double> deletedAt;
3737

38+
private final Optional<List<String>> tags;
39+
3840
private final Map<String, Object> additionalProperties;
3941

4042
private PersonAttachment(
@@ -44,13 +46,15 @@ private PersonAttachment(
4446
String userId,
4547
Optional<Double> createdAt,
4648
Optional<Double> deletedAt,
49+
Optional<List<String>> tags,
4750
Map<String, Object> additionalProperties) {
4851
this.id = id;
4952
this.comment = comment;
5053
this.files = files;
5154
this.userId = userId;
5255
this.createdAt = createdAt;
5356
this.deletedAt = deletedAt;
57+
this.tags = tags;
5458
this.additionalProperties = additionalProperties;
5559
}
5660

@@ -87,6 +91,11 @@ public Optional<Double> getDeletedAt() {
8791
return deletedAt;
8892
}
8993

94+
@JsonProperty("tags")
95+
public Optional<List<String>> getTags() {
96+
return tags;
97+
}
98+
9099
@java.lang.Override
91100
public boolean equals(Object other) {
92101
if (this == other) return true;
@@ -104,12 +113,13 @@ private boolean equalTo(PersonAttachment other) {
104113
&& files.equals(other.files)
105114
&& userId.equals(other.userId)
106115
&& createdAt.equals(other.createdAt)
107-
&& deletedAt.equals(other.deletedAt);
116+
&& deletedAt.equals(other.deletedAt)
117+
&& tags.equals(other.tags);
108118
}
109119

110120
@java.lang.Override
111121
public int hashCode() {
112-
return Objects.hash(this.id, this.comment, this.files, this.userId, this.createdAt, this.deletedAt);
122+
return Objects.hash(this.id, this.comment, this.files, this.userId, this.createdAt, this.deletedAt, this.tags);
113123
}
114124

115125
@java.lang.Override
@@ -151,12 +161,18 @@ public interface _FinalStage {
151161
_FinalStage deletedAt(Optional<Double> deletedAt);
152162

153163
_FinalStage deletedAt(Double deletedAt);
164+
165+
_FinalStage tags(Optional<List<String>> tags);
166+
167+
_FinalStage tags(List<String> tags);
154168
}
155169

156170
@JsonIgnoreProperties(ignoreUnknown = true)
157171
public static final class Builder implements UserIdStage, _FinalStage {
158172
private String userId;
159173

174+
private Optional<List<String>> tags = Optional.empty();
175+
160176
private Optional<Double> deletedAt = Optional.empty();
161177

162178
private Optional<Double> createdAt = Optional.empty();
@@ -180,6 +196,7 @@ public Builder from(PersonAttachment other) {
180196
userId(other.getUserId());
181197
createdAt(other.getCreatedAt());
182198
deletedAt(other.getDeletedAt());
199+
tags(other.getTags());
183200
return this;
184201
}
185202

@@ -190,6 +207,19 @@ public _FinalStage userId(@NotNull String userId) {
190207
return this;
191208
}
192209

210+
@java.lang.Override
211+
public _FinalStage tags(List<String> tags) {
212+
this.tags = Optional.ofNullable(tags);
213+
return this;
214+
}
215+
216+
@java.lang.Override
217+
@JsonSetter(value = "tags", nulls = Nulls.SKIP)
218+
public _FinalStage tags(Optional<List<String>> tags) {
219+
this.tags = tags;
220+
return this;
221+
}
222+
193223
@java.lang.Override
194224
public _FinalStage deletedAt(Double deletedAt) {
195225
this.deletedAt = Optional.ofNullable(deletedAt);
@@ -268,7 +298,7 @@ public _FinalStage id(Optional<String> id) {
268298

269299
@java.lang.Override
270300
public PersonAttachment build() {
271-
return new PersonAttachment(id, comment, files, userId, createdAt, deletedAt, additionalProperties);
301+
return new PersonAttachment(id, comment, files, userId, createdAt, deletedAt, tags, additionalProperties);
272302
}
273303
}
274304
}

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

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public final class SanctionsDetails {
3434

3535
private final Optional<SanctionsHitContext> hitContext;
3636

37+
private final Optional<RuleHitDirection> hitDirection;
38+
3739
private final Map<String, Object> additionalProperties;
3840

3941
private SanctionsDetails(
@@ -43,13 +45,15 @@ private SanctionsDetails(
4345
Optional<SanctionsDetailsEntityType> entityType,
4446
Optional<List<String>> sanctionHitIds,
4547
Optional<SanctionsHitContext> hitContext,
48+
Optional<RuleHitDirection> hitDirection,
4649
Map<String, Object> additionalProperties) {
4750
this.name = name;
4851
this.searchId = searchId;
4952
this.iban = iban;
5053
this.entityType = entityType;
5154
this.sanctionHitIds = sanctionHitIds;
5255
this.hitContext = hitContext;
56+
this.hitDirection = hitDirection;
5357
this.additionalProperties = additionalProperties;
5458
}
5559

@@ -83,6 +87,11 @@ public Optional<SanctionsHitContext> getHitContext() {
8387
return hitContext;
8488
}
8589

90+
@JsonProperty("hitDirection")
91+
public Optional<RuleHitDirection> getHitDirection() {
92+
return hitDirection;
93+
}
94+
8695
@java.lang.Override
8796
public boolean equals(Object other) {
8897
if (this == other) return true;
@@ -100,12 +109,20 @@ private boolean equalTo(SanctionsDetails other) {
100109
&& iban.equals(other.iban)
101110
&& entityType.equals(other.entityType)
102111
&& sanctionHitIds.equals(other.sanctionHitIds)
103-
&& hitContext.equals(other.hitContext);
112+
&& hitContext.equals(other.hitContext)
113+
&& hitDirection.equals(other.hitDirection);
104114
}
105115

106116
@java.lang.Override
107117
public int hashCode() {
108-
return Objects.hash(this.name, this.searchId, this.iban, this.entityType, this.sanctionHitIds, this.hitContext);
118+
return Objects.hash(
119+
this.name,
120+
this.searchId,
121+
this.iban,
122+
this.entityType,
123+
this.sanctionHitIds,
124+
this.hitContext,
125+
this.hitDirection);
109126
}
110127

111128
@java.lang.Override
@@ -145,6 +162,10 @@ public interface _FinalStage {
145162
_FinalStage hitContext(Optional<SanctionsHitContext> hitContext);
146163

147164
_FinalStage hitContext(SanctionsHitContext hitContext);
165+
166+
_FinalStage hitDirection(Optional<RuleHitDirection> hitDirection);
167+
168+
_FinalStage hitDirection(RuleHitDirection hitDirection);
148169
}
149170

150171
@JsonIgnoreProperties(ignoreUnknown = true)
@@ -153,6 +174,8 @@ public static final class Builder implements NameStage, SearchIdStage, _FinalSta
153174

154175
private String searchId;
155176

177+
private Optional<RuleHitDirection> hitDirection = Optional.empty();
178+
156179
private Optional<SanctionsHitContext> hitContext = Optional.empty();
157180

158181
private Optional<List<String>> sanctionHitIds = Optional.empty();
@@ -174,6 +197,7 @@ public Builder from(SanctionsDetails other) {
174197
entityType(other.getEntityType());
175198
sanctionHitIds(other.getSanctionHitIds());
176199
hitContext(other.getHitContext());
200+
hitDirection(other.getHitDirection());
177201
return this;
178202
}
179203

@@ -191,6 +215,19 @@ public _FinalStage searchId(@NotNull String searchId) {
191215
return this;
192216
}
193217

218+
@java.lang.Override
219+
public _FinalStage hitDirection(RuleHitDirection hitDirection) {
220+
this.hitDirection = Optional.ofNullable(hitDirection);
221+
return this;
222+
}
223+
224+
@java.lang.Override
225+
@JsonSetter(value = "hitDirection", nulls = Nulls.SKIP)
226+
public _FinalStage hitDirection(Optional<RuleHitDirection> hitDirection) {
227+
this.hitDirection = hitDirection;
228+
return this;
229+
}
230+
194231
@java.lang.Override
195232
public _FinalStage hitContext(SanctionsHitContext hitContext) {
196233
this.hitContext = Optional.ofNullable(hitContext);
@@ -246,7 +283,7 @@ public _FinalStage iban(Optional<String> iban) {
246283
@java.lang.Override
247284
public SanctionsDetails build() {
248285
return new SanctionsDetails(
249-
name, searchId, iban, entityType, sanctionHitIds, hitContext, additionalProperties);
286+
name, searchId, iban, entityType, sanctionHitIds, hitContext, hitDirection, additionalProperties);
250287
}
251288
}
252289
}

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

Lines changed: 64 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ public final class TransactionLimitsPaymentMethodLimits {
3838

3939
private final Optional<TransactionLimit> check;
4040

41+
private final Optional<TransactionLimit> cash;
42+
43+
private final Optional<TransactionLimit> npp;
44+
4145
private final Map<String, Object> additionalProperties;
4246

4347
private TransactionLimitsPaymentMethodLimits(
@@ -50,6 +54,8 @@ private TransactionLimitsPaymentMethodLimits(
5054
Optional<TransactionLimit> swift,
5155
Optional<TransactionLimit> wallet,
5256
Optional<TransactionLimit> check,
57+
Optional<TransactionLimit> cash,
58+
Optional<TransactionLimit> npp,
5359
Map<String, Object> additionalProperties) {
5460
this.ach = ach;
5561
this.card = card;
@@ -60,6 +66,8 @@ private TransactionLimitsPaymentMethodLimits(
6066
this.swift = swift;
6167
this.wallet = wallet;
6268
this.check = check;
69+
this.cash = cash;
70+
this.npp = npp;
6371
this.additionalProperties = additionalProperties;
6472
}
6573

@@ -108,6 +116,16 @@ public Optional<TransactionLimit> getCheck() {
108116
return check;
109117
}
110118

119+
@JsonProperty("CASH")
120+
public Optional<TransactionLimit> getCash() {
121+
return cash;
122+
}
123+
124+
@JsonProperty("NPP")
125+
public Optional<TransactionLimit> getNpp() {
126+
return npp;
127+
}
128+
111129
@java.lang.Override
112130
public boolean equals(Object other) {
113131
if (this == other) return true;
@@ -129,7 +147,9 @@ private boolean equalTo(TransactionLimitsPaymentMethodLimits other) {
129147
&& mpesa.equals(other.mpesa)
130148
&& swift.equals(other.swift)
131149
&& wallet.equals(other.wallet)
132-
&& check.equals(other.check);
150+
&& check.equals(other.check)
151+
&& cash.equals(other.cash)
152+
&& npp.equals(other.npp);
133153
}
134154

135155
@java.lang.Override
@@ -143,7 +163,9 @@ public int hashCode() {
143163
this.mpesa,
144164
this.swift,
145165
this.wallet,
146-
this.check);
166+
this.check,
167+
this.cash,
168+
this.npp);
147169
}
148170

149171
@java.lang.Override
@@ -175,6 +197,10 @@ public static final class Builder {
175197

176198
private Optional<TransactionLimit> check = Optional.empty();
177199

200+
private Optional<TransactionLimit> cash = Optional.empty();
201+
202+
private Optional<TransactionLimit> npp = Optional.empty();
203+
178204
@JsonAnySetter
179205
private Map<String, Object> additionalProperties = new HashMap<>();
180206

@@ -190,6 +216,8 @@ public Builder from(TransactionLimitsPaymentMethodLimits other) {
190216
swift(other.getSwift());
191217
wallet(other.getWallet());
192218
check(other.getCheck());
219+
cash(other.getCash());
220+
npp(other.getNpp());
193221
return this;
194222
}
195223

@@ -292,9 +320,42 @@ public Builder check(TransactionLimit check) {
292320
return this;
293321
}
294322

323+
@JsonSetter(value = "CASH", nulls = Nulls.SKIP)
324+
public Builder cash(Optional<TransactionLimit> cash) {
325+
this.cash = cash;
326+
return this;
327+
}
328+
329+
public Builder cash(TransactionLimit cash) {
330+
this.cash = Optional.ofNullable(cash);
331+
return this;
332+
}
333+
334+
@JsonSetter(value = "NPP", nulls = Nulls.SKIP)
335+
public Builder npp(Optional<TransactionLimit> npp) {
336+
this.npp = npp;
337+
return this;
338+
}
339+
340+
public Builder npp(TransactionLimit npp) {
341+
this.npp = Optional.ofNullable(npp);
342+
return this;
343+
}
344+
295345
public TransactionLimitsPaymentMethodLimits build() {
296346
return new TransactionLimitsPaymentMethodLimits(
297-
ach, card, iban, upi, genericBankAccount, mpesa, swift, wallet, check, additionalProperties);
347+
ach,
348+
card,
349+
iban,
350+
upi,
351+
genericBankAccount,
352+
mpesa,
353+
swift,
354+
wallet,
355+
check,
356+
cash,
357+
npp,
358+
additionalProperties);
298359
}
299360
}
300361
}

0 commit comments

Comments
 (0)