Skip to content

Commit 5dbb53b

Browse files
actions-userhleb-albau
authored andcommitted
5.7.0 final additions
1 parent a85ca2c commit 5dbb53b

File tree

4 files changed

+301
-4
lines changed

4 files changed

+301
-4
lines changed

client/.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ src/main/generated/com/regula/documentreader/webclient/model/ListVerifiedFields.
5555
src/main/generated/com/regula/documentreader/webclient/model/OCRSecurityTextResult.java
5656
src/main/generated/com/regula/documentreader/webclient/model/OneCandidate.java
5757
src/main/generated/com/regula/documentreader/webclient/model/OriginalSymbol.java
58+
src/main/generated/com/regula/documentreader/webclient/model/PerDocumentConfig.java
5859
src/main/generated/com/regula/documentreader/webclient/model/PhotoIdentResult.java
5960
src/main/generated/com/regula/documentreader/webclient/model/Point.java
6061
src/main/generated/com/regula/documentreader/webclient/model/PointArray.java

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

Lines changed: 114 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,26 @@ public class ImageQA {
2727
@SerializedName(SERIALIZED_NAME_ANGLE_THRESHOLD)
2828
private Integer angleThreshold;
2929

30+
public static final String SERIALIZED_NAME_DISABLE_FOCUS_CHECK = "disableFocusCheck";
31+
32+
@SerializedName(SERIALIZED_NAME_DISABLE_FOCUS_CHECK)
33+
private Boolean disableFocusCheck;
34+
35+
public static final String SERIALIZED_NAME_DISABLE_GLARES_CHECK = "disableGlaresCheck";
36+
37+
@SerializedName(SERIALIZED_NAME_DISABLE_GLARES_CHECK)
38+
private Boolean disableGlaresCheck;
39+
40+
public static final String SERIALIZED_NAME_DISABLE_COLORNESS_CHECK = "disableColornessCheck";
41+
42+
@SerializedName(SERIALIZED_NAME_DISABLE_COLORNESS_CHECK)
43+
private Boolean disableColornessCheck;
44+
45+
public static final String SERIALIZED_NAME_DISABLE_MOIRE_CHECK = "disableMoireCheck";
46+
47+
@SerializedName(SERIALIZED_NAME_DISABLE_MOIRE_CHECK)
48+
private Boolean disableMoireCheck;
49+
3050
public ImageQA withDpiThreshold(Integer dpiThreshold) {
3151
this.dpiThreshold = dpiThreshold;
3252
return this;
@@ -67,6 +87,82 @@ public void setAngleThreshold(Integer angleThreshold) {
6787
this.angleThreshold = angleThreshold;
6888
}
6989

90+
public ImageQA withDisableFocusCheck(Boolean disableFocusCheck) {
91+
this.disableFocusCheck = disableFocusCheck;
92+
return this;
93+
}
94+
95+
/**
96+
* This option disabled focus check during performing image quality validation
97+
*
98+
* @return disableFocusCheck
99+
*/
100+
@javax.annotation.Nullable
101+
public Boolean getDisableFocusCheck() {
102+
return disableFocusCheck;
103+
}
104+
105+
public void setDisableFocusCheck(Boolean disableFocusCheck) {
106+
this.disableFocusCheck = disableFocusCheck;
107+
}
108+
109+
public ImageQA withDisableGlaresCheck(Boolean disableGlaresCheck) {
110+
this.disableGlaresCheck = disableGlaresCheck;
111+
return this;
112+
}
113+
114+
/**
115+
* This option disabled glares check during performing image quality validation
116+
*
117+
* @return disableGlaresCheck
118+
*/
119+
@javax.annotation.Nullable
120+
public Boolean getDisableGlaresCheck() {
121+
return disableGlaresCheck;
122+
}
123+
124+
public void setDisableGlaresCheck(Boolean disableGlaresCheck) {
125+
this.disableGlaresCheck = disableGlaresCheck;
126+
}
127+
128+
public ImageQA withDisableColornessCheck(Boolean disableColornessCheck) {
129+
this.disableColornessCheck = disableColornessCheck;
130+
return this;
131+
}
132+
133+
/**
134+
* This option disabled colorness check during performing image quality validation
135+
*
136+
* @return disableColornessCheck
137+
*/
138+
@javax.annotation.Nullable
139+
public Boolean getDisableColornessCheck() {
140+
return disableColornessCheck;
141+
}
142+
143+
public void setDisableColornessCheck(Boolean disableColornessCheck) {
144+
this.disableColornessCheck = disableColornessCheck;
145+
}
146+
147+
public ImageQA withDisableMoireCheck(Boolean disableMoireCheck) {
148+
this.disableMoireCheck = disableMoireCheck;
149+
return this;
150+
}
151+
152+
/**
153+
* This option disabled moire patterns check during performing image quality validation
154+
*
155+
* @return disableMoireCheck
156+
*/
157+
@javax.annotation.Nullable
158+
public Boolean getDisableMoireCheck() {
159+
return disableMoireCheck;
160+
}
161+
162+
public void setDisableMoireCheck(Boolean disableMoireCheck) {
163+
this.disableMoireCheck = disableMoireCheck;
164+
}
165+
70166
@Override
71167
public boolean equals(java.lang.Object o) {
72168
if (this == o) {
@@ -77,12 +173,22 @@ public boolean equals(java.lang.Object o) {
77173
}
78174
ImageQA imageQA = (ImageQA) o;
79175
return Objects.equals(this.dpiThreshold, imageQA.dpiThreshold)
80-
&& Objects.equals(this.angleThreshold, imageQA.angleThreshold);
176+
&& Objects.equals(this.angleThreshold, imageQA.angleThreshold)
177+
&& Objects.equals(this.disableFocusCheck, imageQA.disableFocusCheck)
178+
&& Objects.equals(this.disableGlaresCheck, imageQA.disableGlaresCheck)
179+
&& Objects.equals(this.disableColornessCheck, imageQA.disableColornessCheck)
180+
&& Objects.equals(this.disableMoireCheck, imageQA.disableMoireCheck);
81181
}
82182

83183
@Override
84184
public int hashCode() {
85-
return Objects.hash(dpiThreshold, angleThreshold);
185+
return Objects.hash(
186+
dpiThreshold,
187+
angleThreshold,
188+
disableFocusCheck,
189+
disableGlaresCheck,
190+
disableColornessCheck,
191+
disableMoireCheck);
86192
}
87193

88194
@Override
@@ -91,6 +197,12 @@ public String toString() {
91197
sb.append("class ImageQA {\n");
92198
sb.append(" dpiThreshold: ").append(toIndentedString(dpiThreshold)).append("\n");
93199
sb.append(" angleThreshold: ").append(toIndentedString(angleThreshold)).append("\n");
200+
sb.append(" disableFocusCheck: ").append(toIndentedString(disableFocusCheck)).append("\n");
201+
sb.append(" disableGlaresCheck: ").append(toIndentedString(disableGlaresCheck)).append("\n");
202+
sb.append(" disableColornessCheck: ")
203+
.append(toIndentedString(disableColornessCheck))
204+
.append("\n");
205+
sb.append(" disableMoireCheck: ").append(toIndentedString(disableMoireCheck)).append("\n");
94206
sb.append("}");
95207
return sb.toString();
96208
}
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
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: 5.6.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+
import com.google.gson.annotations.SerializedName;
16+
import java.util.ArrayList;
17+
import java.util.List;
18+
import java.util.Objects;
19+
20+
/** PerDocumentConfig */
21+
public class PerDocumentConfig {
22+
public static final String SERIALIZED_NAME_DOC_I_D = "docID";
23+
24+
@SerializedName(SERIALIZED_NAME_DOC_I_D)
25+
private List<Integer> docID = null;
26+
27+
public static final String SERIALIZED_NAME_EXCLUDE_AUTH_CHECKS = "excludeAuthChecks";
28+
29+
@SerializedName(SERIALIZED_NAME_EXCLUDE_AUTH_CHECKS)
30+
private Integer excludeAuthChecks;
31+
32+
public PerDocumentConfig withDocID(List<Integer> docID) {
33+
this.docID = docID;
34+
return this;
35+
}
36+
37+
public PerDocumentConfig addDocIDItem(Integer docIDItem) {
38+
if (this.docID == null) {
39+
this.docID = new ArrayList<Integer>();
40+
}
41+
this.docID.add(docIDItem);
42+
return this;
43+
}
44+
45+
/**
46+
* Specific template IDs, for which apply current custom configuration
47+
*
48+
* @return docID
49+
*/
50+
@javax.annotation.Nullable
51+
public List<Integer> getDocID() {
52+
return docID;
53+
}
54+
55+
public void setDocID(List<Integer> docID) {
56+
this.docID = docID;
57+
}
58+
59+
public PerDocumentConfig withExcludeAuthChecks(Integer excludeAuthChecks) {
60+
this.excludeAuthChecks = excludeAuthChecks;
61+
return this;
62+
}
63+
64+
/**
65+
* Contains items from AuthenticityResultType as sum via OR operation
66+
*
67+
* @return excludeAuthChecks
68+
*/
69+
@javax.annotation.Nullable
70+
public Integer getExcludeAuthChecks() {
71+
return excludeAuthChecks;
72+
}
73+
74+
public void setExcludeAuthChecks(Integer excludeAuthChecks) {
75+
this.excludeAuthChecks = excludeAuthChecks;
76+
}
77+
78+
@Override
79+
public boolean equals(java.lang.Object o) {
80+
if (this == o) {
81+
return true;
82+
}
83+
if (o == null || getClass() != o.getClass()) {
84+
return false;
85+
}
86+
PerDocumentConfig perDocumentConfig = (PerDocumentConfig) o;
87+
return Objects.equals(this.docID, perDocumentConfig.docID)
88+
&& Objects.equals(this.excludeAuthChecks, perDocumentConfig.excludeAuthChecks);
89+
}
90+
91+
@Override
92+
public int hashCode() {
93+
return Objects.hash(docID, excludeAuthChecks);
94+
}
95+
96+
@Override
97+
public String toString() {
98+
StringBuilder sb = new StringBuilder();
99+
sb.append("class PerDocumentConfig {\n");
100+
sb.append(" docID: ").append(toIndentedString(docID)).append("\n");
101+
sb.append(" excludeAuthChecks: ").append(toIndentedString(excludeAuthChecks)).append("\n");
102+
sb.append("}");
103+
return sb.toString();
104+
}
105+
106+
/**
107+
* Convert the given object to string with each line indented by 4 spaces (except the first line).
108+
*/
109+
private String toIndentedString(java.lang.Object o) {
110+
if (o == null) {
111+
return "null";
112+
}
113+
return o.toString().replace("\n", "\n ");
114+
}
115+
}

0 commit comments

Comments
 (0)