Skip to content

Commit 692fb7c

Browse files
author
regula-bot
committed
Merge remote-tracking branch 'origin/stable'
2 parents d12ff01 + 7a3b383 commit 692fb7c

32 files changed

+445
-58
lines changed

client/.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ src/main/generated/com/regula/documentreader/webclient/model/InDataTransactionIm
7373
src/main/generated/com/regula/documentreader/webclient/model/InDataVideo.java
7474
src/main/generated/com/regula/documentreader/webclient/model/InlineResponse200.java
7575
src/main/generated/com/regula/documentreader/webclient/model/InlineResponse2001.java
76+
src/main/generated/com/regula/documentreader/webclient/model/InputBarcodeType.java
77+
src/main/generated/com/regula/documentreader/webclient/model/InputImageQualityChecks.java
7678
src/main/generated/com/regula/documentreader/webclient/model/LexicalAnalysisResult.java
7779
src/main/generated/com/regula/documentreader/webclient/model/LicenseResult.java
7880
src/main/generated/com/regula/documentreader/webclient/model/ListTransactionsByTagResponse.java

client/src/main/generated/com/regula/documentreader/webclient/model/AuthParams.java

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ public class AuthParams {
9292
@SerializedName(SERIALIZED_NAME_CHECK_LETTER_SCREEN)
9393
private Boolean checkLetterScreen;
9494

95+
public static final String SERIALIZED_NAME_CHECK_SECURITY_TEXT = "checkSecurityText";
96+
97+
@SerializedName(SERIALIZED_NAME_CHECK_SECURITY_TEXT)
98+
private Boolean checkSecurityText;
99+
95100
public AuthParams withCheckLiveness(Boolean checkLiveness) {
96101
this.checkLiveness = checkLiveness;
97102
return this;
@@ -379,6 +384,25 @@ public void setCheckLetterScreen(Boolean checkLetterScreen) {
379384
this.checkLetterScreen = checkLetterScreen;
380385
}
381386

387+
public AuthParams withCheckSecurityText(Boolean checkSecurityText) {
388+
this.checkSecurityText = checkSecurityText;
389+
return this;
390+
}
391+
392+
/**
393+
* This parameter is used to enable Security text check
394+
*
395+
* @return checkSecurityText
396+
*/
397+
@javax.annotation.Nullable
398+
public Boolean getCheckSecurityText() {
399+
return checkSecurityText;
400+
}
401+
402+
public void setCheckSecurityText(Boolean checkSecurityText) {
403+
this.checkSecurityText = checkSecurityText;
404+
}
405+
382406
@Override
383407
public boolean equals(java.lang.Object o) {
384408
if (this == o) {
@@ -402,7 +426,8 @@ public boolean equals(java.lang.Object o) {
402426
&& Objects.equals(this.checkIPI, authParams.checkIPI)
403427
&& Objects.equals(this.checkPhotoEmbedding, authParams.checkPhotoEmbedding)
404428
&& Objects.equals(this.checkPhotoComparison, authParams.checkPhotoComparison)
405-
&& Objects.equals(this.checkLetterScreen, authParams.checkLetterScreen);
429+
&& Objects.equals(this.checkLetterScreen, authParams.checkLetterScreen)
430+
&& Objects.equals(this.checkSecurityText, authParams.checkSecurityText);
406431
}
407432

408433
@Override
@@ -422,7 +447,8 @@ public int hashCode() {
422447
checkIPI,
423448
checkPhotoEmbedding,
424449
checkPhotoComparison,
425-
checkLetterScreen);
450+
checkLetterScreen,
451+
checkSecurityText);
426452
}
427453

428454
@Override
@@ -450,6 +476,7 @@ public String toString() {
450476
.append(toIndentedString(checkPhotoComparison))
451477
.append("\n");
452478
sb.append(" checkLetterScreen: ").append(toIndentedString(checkLetterScreen)).append("\n");
479+
sb.append(" checkSecurityText: ").append(toIndentedString(checkSecurityText)).append("\n");
453480
sb.append("}");
454481
return sb.toString();
455482
}

client/src/main/generated/com/regula/documentreader/webclient/model/CheckDiagnose.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ public class CheckDiagnose {
242242

243243
public static final int LASINK_INVALID_LINES_FREQUENCY = 230;
244244

245+
public static final int DOC_LIVENESS_DOCUMENT_NOT_LIVE = 238;
246+
245247
public static final int DOC_LIVENESS_BLACK_AND_WHITE_COPY_DETECTED = 239;
246248

247249
public static final int DOC_LIVENESS_ELECTRONIC_DEVICE_DETECTED = 240;

client/src/main/generated/com/regula/documentreader/webclient/model/FaceApi.java

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ public class FaceApi {
5757
@SerializedName(SERIALIZED_NAME_PROXY_TYPE)
5858
private Integer proxyType;
5959

60+
public static final String SERIALIZED_NAME_CHILD_AGE_THRESHOLD = "childAgeThreshold";
61+
62+
@SerializedName(SERIALIZED_NAME_CHILD_AGE_THRESHOLD)
63+
private Integer childAgeThreshold;
64+
65+
public static final String SERIALIZED_NAME_CHILD_DOC_VALIDITY_YEARS = "childDocValidityYears";
66+
67+
@SerializedName(SERIALIZED_NAME_CHILD_DOC_VALIDITY_YEARS)
68+
private Integer childDocValidityYears;
69+
6070
public FaceApi withUrl(String url) {
6171
this.url = url;
6272
return this;
@@ -216,6 +226,44 @@ public void setProxyType(Integer proxyType) {
216226
this.proxyType = proxyType;
217227
}
218228

229+
public FaceApi withChildAgeThreshold(Integer childAgeThreshold) {
230+
this.childAgeThreshold = childAgeThreshold;
231+
return this;
232+
}
233+
234+
/**
235+
* The age threshold for the portrait comparison. Default: 13.
236+
*
237+
* @return childAgeThreshold
238+
*/
239+
@javax.annotation.Nullable
240+
public Integer getChildAgeThreshold() {
241+
return childAgeThreshold;
242+
}
243+
244+
public void setChildAgeThreshold(Integer childAgeThreshold) {
245+
this.childAgeThreshold = childAgeThreshold;
246+
}
247+
248+
public FaceApi withChildDocValidityYears(Integer childDocValidityYears) {
249+
this.childDocValidityYears = childDocValidityYears;
250+
return this;
251+
}
252+
253+
/**
254+
* Estimated duration of validity for a child's passport, years. Default: 5.
255+
*
256+
* @return childDocValidityYears
257+
*/
258+
@javax.annotation.Nullable
259+
public Integer getChildDocValidityYears() {
260+
return childDocValidityYears;
261+
}
262+
263+
public void setChildDocValidityYears(Integer childDocValidityYears) {
264+
this.childDocValidityYears = childDocValidityYears;
265+
}
266+
219267
@Override
220268
public boolean equals(java.lang.Object o) {
221269
if (this == o) {
@@ -232,13 +280,24 @@ public boolean equals(java.lang.Object o) {
232280
&& Objects.equals(this.serviceTimeout, faceApi.serviceTimeout)
233281
&& Objects.equals(this.proxy, faceApi.proxy)
234282
&& Objects.equals(this.proxyUserpwd, faceApi.proxyUserpwd)
235-
&& Objects.equals(this.proxyType, faceApi.proxyType);
283+
&& Objects.equals(this.proxyType, faceApi.proxyType)
284+
&& Objects.equals(this.childAgeThreshold, faceApi.childAgeThreshold)
285+
&& Objects.equals(this.childDocValidityYears, faceApi.childDocValidityYears);
236286
}
237287

238288
@Override
239289
public int hashCode() {
240290
return Objects.hash(
241-
url, mode, search, threshold, serviceTimeout, proxy, proxyUserpwd, proxyType);
291+
url,
292+
mode,
293+
search,
294+
threshold,
295+
serviceTimeout,
296+
proxy,
297+
proxyUserpwd,
298+
proxyType,
299+
childAgeThreshold,
300+
childDocValidityYears);
242301
}
243302

244303
@Override
@@ -253,6 +312,10 @@ public String toString() {
253312
sb.append(" proxy: ").append(toIndentedString(proxy)).append("\n");
254313
sb.append(" proxyUserpwd: ").append(toIndentedString(proxyUserpwd)).append("\n");
255314
sb.append(" proxyType: ").append(toIndentedString(proxyType)).append("\n");
315+
sb.append(" childAgeThreshold: ").append(toIndentedString(childAgeThreshold)).append("\n");
316+
sb.append(" childDocValidityYears: ")
317+
.append(toIndentedString(childDocValidityYears))
318+
.append("\n");
256319
sb.append("}");
257320
return sb.toString();
258321
}

client/src/main/generated/com/regula/documentreader/webclient/model/ImageQA.java

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
package com.regula.documentreader.webclient.model;
1414

1515
import com.google.gson.annotations.SerializedName;
16+
import java.util.ArrayList;
17+
import java.util.List;
1618
import java.util.Objects;
1719

1820
/** ImageQA */
@@ -52,6 +54,11 @@ public class ImageQA {
5254
@SerializedName(SERIALIZED_NAME_DOCUMENT_POSITION_INDENT)
5355
private Integer documentPositionIndent;
5456

57+
public static final String SERIALIZED_NAME_EXPECTED_PASS = "expectedPass";
58+
59+
@SerializedName(SERIALIZED_NAME_EXPECTED_PASS)
60+
private List<InputImageQualityChecks> expectedPass = null;
61+
5562
public ImageQA withBrightnessThreshold(Double brightnessThreshold) {
5663
this.brightnessThreshold = brightnessThreshold;
5764
return this;
@@ -187,6 +194,34 @@ public void setDocumentPositionIndent(Integer documentPositionIndent) {
187194
this.documentPositionIndent = documentPositionIndent;
188195
}
189196

197+
public ImageQA withExpectedPass(List<InputImageQualityChecks> expectedPass) {
198+
this.expectedPass = expectedPass;
199+
return this;
200+
}
201+
202+
public ImageQA addExpectedPassItem(InputImageQualityChecks expectedPassItem) {
203+
if (this.expectedPass == null) {
204+
this.expectedPass = new ArrayList<InputImageQualityChecks>();
205+
}
206+
this.expectedPass.add(expectedPassItem);
207+
return this;
208+
}
209+
210+
/**
211+
* This parameter controls the quality checks that the image should pass to be considered a valid
212+
* input during the scanning process.
213+
*
214+
* @return expectedPass
215+
*/
216+
@javax.annotation.Nullable
217+
public List<InputImageQualityChecks> getExpectedPass() {
218+
return expectedPass;
219+
}
220+
221+
public void setExpectedPass(List<InputImageQualityChecks> expectedPass) {
222+
this.expectedPass = expectedPass;
223+
}
224+
190225
@Override
191226
public boolean equals(java.lang.Object o) {
192227
if (this == o) {
@@ -202,7 +237,8 @@ public boolean equals(java.lang.Object o) {
202237
&& Objects.equals(this.focusCheck, imageQA.focusCheck)
203238
&& Objects.equals(this.glaresCheck, imageQA.glaresCheck)
204239
&& Objects.equals(this.colornessCheck, imageQA.colornessCheck)
205-
&& Objects.equals(this.documentPositionIndent, imageQA.documentPositionIndent);
240+
&& Objects.equals(this.documentPositionIndent, imageQA.documentPositionIndent)
241+
&& Objects.equals(this.expectedPass, imageQA.expectedPass);
206242
}
207243

208244
@Override
@@ -214,7 +250,8 @@ public int hashCode() {
214250
focusCheck,
215251
glaresCheck,
216252
colornessCheck,
217-
documentPositionIndent);
253+
documentPositionIndent,
254+
expectedPass);
218255
}
219256

220257
@Override
@@ -232,6 +269,7 @@ public String toString() {
232269
sb.append(" documentPositionIndent: ")
233270
.append(toIndentedString(documentPositionIndent))
234271
.append("\n");
272+
sb.append(" expectedPass: ").append(toIndentedString(expectedPass)).append("\n");
235273
sb.append("}");
236274
return sb.toString();
237275
}

client/src/main/generated/com/regula/documentreader/webclient/model/ImageQualityCheckType.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,7 @@ public class ImageQualityCheckType {
3737

3838
/** Signals if the document image is bright enough */
3939
public static final int Brightness = 9;
40+
41+
/** Signals if the document image has occlusion */
42+
public static final int Occlusion = 10;
4043
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/*
2+
* Regula Document Reader Web API
3+
* Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
4+
*
5+
* The version of the OpenAPI document: 7.2.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.regula.documentreader.webclient.model;
14+
15+
public class InputBarcodeType {
16+
17+
/** Unknown */
18+
public static final String UNKNOWN = "bct_unknown";
19+
20+
/** Code 128 */
21+
public static final String CODE128 = "bct_Code128";
22+
23+
/** Code 39 */
24+
public static final String CODE39 = "bct_Code39";
25+
26+
/** EAN-8 */
27+
public static final String EAN8 = "bct_EAN8";
28+
29+
/** ITF */
30+
public static final String ITF = "bct_ITF";
31+
32+
/** PDF417 */
33+
public static final String PDF417 = "bct_PDF417";
34+
35+
/** STF */
36+
public static final String STF = "bct_STF";
37+
38+
/** MTF */
39+
public static final String MTF = "bct_MTF";
40+
41+
/** IATA */
42+
public static final String IATA = "bct_IATA";
43+
44+
/** Codabar */
45+
public static final String CODABAR = "bct_CODABAR";
46+
47+
/** UPC-A */
48+
public static final String UPCA = "bct_UPCA";
49+
50+
/** Code 93 */
51+
public static final String CODE93 = "bct_CODE93";
52+
53+
/** UPC-E */
54+
public static final String UPCE = "bct_UPCE";
55+
56+
/** EAN-13 */
57+
public static final String EAN13 = "bct_EAN13";
58+
59+
/** QR code */
60+
public static final String QRCODE = "bct_QRCODE";
61+
62+
/** Aztec code */
63+
public static final String AZTEC = "bct_AZTEC";
64+
65+
/** Datamatrix */
66+
public static final String DATAMATRIX = "bct_DATAMATRIX";
67+
68+
/** All 1D barcodes */
69+
public static final String ALL_1D = "bct_ALL_1D";
70+
71+
/** Code 11 */
72+
public static final String CODE11 = "bct_Code11";
73+
74+
/** JAB code */
75+
public static final String JABCODE = "bct_JABCODE";
76+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Regula Document Reader Web API
3+
* Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
4+
*
5+
* The version of the OpenAPI document: 7.2.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.regula.documentreader.webclient.model;
14+
15+
public class InputImageQualityChecks {
16+
17+
/** Signals glare presence on the image */
18+
public static final String Glares = "glaresCheck";
19+
20+
/** Signals whether image is in focus */
21+
public static final String Focus = "focusCheck";
22+
23+
/** Signals if image resolution is below threshold */
24+
public static final String Resolution = "dpiThreshold";
25+
26+
/** Signals if image is colorless */
27+
public static final String Colorness = "colornessCheck";
28+
29+
/** Signals if document in the image has prespective distortion above threshold */
30+
public static final String Perspective = "perspectiveCheck";
31+
32+
/** Signals if document is not fully present in the image */
33+
public static final String Bounds = "documentPosition";
34+
35+
/** Signals if the portrait is present */
36+
public static final String Portrait = "portraitCheck";
37+
38+
/** Signals if the document image is bright enough */
39+
public static final String Brightness = "brightnessCheck";
40+
41+
/** Signals if the document image has occlusion */
42+
public static final String Occlusion = "occlusionCheck";
43+
}

0 commit comments

Comments
 (0)