Skip to content

Commit fa768c7

Browse files
author
regula-bot
committed
Merge remote-tracking branch 'origin/develop' into stable
2 parents b91f12f + a220489 commit fa768c7

23 files changed

+300
-47
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/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+
* Minimum age of a child, at which portrait comparison result will be effective. 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
}
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: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
}

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

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,11 @@ public class ProcessParams {
316316
@SerializedName(SERIALIZED_NAME_SELECT_LONGEST_NAMES)
317317
private Boolean selectLongestNames;
318318

319+
public static final String SERIALIZED_NAME_DO_BARCODES = "doBarcodes";
320+
321+
@SerializedName(SERIALIZED_NAME_DO_BARCODES)
322+
private List<InputBarcodeType> doBarcodes = null;
323+
319324
public ProcessParams withGenerateDTCVC(Boolean generateDTCVC) {
320325
this.generateDTCVC = generateDTCVC;
321326
return this;
@@ -1543,6 +1548,33 @@ public void setSelectLongestNames(Boolean selectLongestNames) {
15431548
this.selectLongestNames = selectLongestNames;
15441549
}
15451550

1551+
public ProcessParams withDoBarcodes(List<InputBarcodeType> doBarcodes) {
1552+
this.doBarcodes = doBarcodes;
1553+
return this;
1554+
}
1555+
1556+
public ProcessParams addDoBarcodesItem(InputBarcodeType doBarcodesItem) {
1557+
if (this.doBarcodes == null) {
1558+
this.doBarcodes = new ArrayList<InputBarcodeType>();
1559+
}
1560+
this.doBarcodes.add(doBarcodesItem);
1561+
return this;
1562+
}
1563+
1564+
/**
1565+
* Set the types of barcodes to process.
1566+
*
1567+
* @return doBarcodes
1568+
*/
1569+
@javax.annotation.Nullable
1570+
public List<InputBarcodeType> getDoBarcodes() {
1571+
return doBarcodes;
1572+
}
1573+
1574+
public void setDoBarcodes(List<InputBarcodeType> doBarcodes) {
1575+
this.doBarcodes = doBarcodes;
1576+
}
1577+
15461578
@Override
15471579
public boolean equals(java.lang.Object o) {
15481580
if (this == o) {
@@ -1612,7 +1644,8 @@ public boolean equals(java.lang.Object o) {
16121644
&& Objects.equals(
16131645
this.strictBarcodeDigitalSignatureCheck,
16141646
processParams.strictBarcodeDigitalSignatureCheck)
1615-
&& Objects.equals(this.selectLongestNames, processParams.selectLongestNames);
1647+
&& Objects.equals(this.selectLongestNames, processParams.selectLongestNames)
1648+
&& Objects.equals(this.doBarcodes, processParams.doBarcodes);
16161649
}
16171650

16181651
@Override
@@ -1675,7 +1708,8 @@ public int hashCode() {
16751708
mrzDetectMode,
16761709
generateNumericCodes,
16771710
strictBarcodeDigitalSignatureCheck,
1678-
selectLongestNames);
1711+
selectLongestNames,
1712+
doBarcodes);
16791713
}
16801714

16811715
@Override
@@ -1770,6 +1804,7 @@ public String toString() {
17701804
.append(toIndentedString(strictBarcodeDigitalSignatureCheck))
17711805
.append("\n");
17721806
sb.append(" selectLongestNames: ").append(toIndentedString(selectLongestNames)).append("\n");
1807+
sb.append(" doBarcodes: ").append(toIndentedString(doBarcodes)).append("\n");
17731808
sb.append("}");
17741809
return sb.toString();
17751810
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public ProcessRequestImage withImageData(ImageData imageData) {
4242
*
4343
* @return imageData
4444
*/
45+
@javax.annotation.Nullable
4546
public ImageData getImageData() {
4647
return imageData;
4748
}

0 commit comments

Comments
 (0)