Skip to content

Commit e20cbfb

Browse files
actions-userhleb-albau
authored andcommitted
5.7.0 final additions
1 parent ad80e86 commit e20cbfb

File tree

4 files changed

+249
-2
lines changed

4 files changed

+249
-2
lines changed

.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ src/Regula.DocumentReader.WebClient/Model/ListVerifiedFields.cs
4747
src/Regula.DocumentReader.WebClient/Model/OCRSecurityTextResult.cs
4848
src/Regula.DocumentReader.WebClient/Model/OneCandidate.cs
4949
src/Regula.DocumentReader.WebClient/Model/OriginalSymbol.cs
50+
src/Regula.DocumentReader.WebClient/Model/PerDocumentConfig.cs
5051
src/Regula.DocumentReader.WebClient/Model/PhotoIdentResult.cs
5152
src/Regula.DocumentReader.WebClient/Model/Point.cs
5253
src/Regula.DocumentReader.WebClient/Model/PointArray.cs

src/Regula.DocumentReader.WebClient/Model/ImageQA.cs

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,18 @@ public partial class ImageQA : IEquatable<ImageQA>, IValidatableObject
3535
/// </summary>
3636
/// <param name="dpiThreshold">This parameter sets threshold for Image QA check of the presented document physical dpi. If actual document dpi is below this threshold, check will fail..</param>
3737
/// <param name="angleThreshold">This parameter sets threshold for Image QA check of the presented document perspective angle in degrees. If actual document perspective angle is above this threshold, check will fail..</param>
38-
public ImageQA(int dpiThreshold = default(int), int angleThreshold = default(int))
38+
/// <param name="disableFocusCheck">This option disabled focus check during performing image quality validation.</param>
39+
/// <param name="disableGlaresCheck">This option disabled glares check during performing image quality validation.</param>
40+
/// <param name="disableColornessCheck">This option disabled colorness check during performing image quality validation.</param>
41+
/// <param name="disableMoireCheck">This option disabled moire patterns check during performing image quality validation.</param>
42+
public ImageQA(int dpiThreshold = default(int), int angleThreshold = default(int), bool disableFocusCheck = default(bool), bool disableGlaresCheck = default(bool), bool disableColornessCheck = default(bool), bool disableMoireCheck = default(bool))
3943
{
4044
this.DpiThreshold = dpiThreshold;
4145
this.AngleThreshold = angleThreshold;
46+
this.DisableFocusCheck = disableFocusCheck;
47+
this.DisableGlaresCheck = disableGlaresCheck;
48+
this.DisableColornessCheck = disableColornessCheck;
49+
this.DisableMoireCheck = disableMoireCheck;
4250
}
4351

4452
/// <summary>
@@ -55,6 +63,34 @@ public partial class ImageQA : IEquatable<ImageQA>, IValidatableObject
5563
[DataMember(Name="angleThreshold", EmitDefaultValue=false)]
5664
public int AngleThreshold { get; set; }
5765

66+
/// <summary>
67+
/// This option disabled focus check during performing image quality validation
68+
/// </summary>
69+
/// <value>This option disabled focus check during performing image quality validation</value>
70+
[DataMember(Name="disableFocusCheck", EmitDefaultValue=false)]
71+
public bool DisableFocusCheck { get; set; }
72+
73+
/// <summary>
74+
/// This option disabled glares check during performing image quality validation
75+
/// </summary>
76+
/// <value>This option disabled glares check during performing image quality validation</value>
77+
[DataMember(Name="disableGlaresCheck", EmitDefaultValue=false)]
78+
public bool DisableGlaresCheck { get; set; }
79+
80+
/// <summary>
81+
/// This option disabled colorness check during performing image quality validation
82+
/// </summary>
83+
/// <value>This option disabled colorness check during performing image quality validation</value>
84+
[DataMember(Name="disableColornessCheck", EmitDefaultValue=false)]
85+
public bool DisableColornessCheck { get; set; }
86+
87+
/// <summary>
88+
/// This option disabled moire patterns check during performing image quality validation
89+
/// </summary>
90+
/// <value>This option disabled moire patterns check during performing image quality validation</value>
91+
[DataMember(Name="disableMoireCheck", EmitDefaultValue=false)]
92+
public bool DisableMoireCheck { get; set; }
93+
5894
/// <summary>
5995
/// Returns the string presentation of the object
6096
/// </summary>
@@ -65,6 +101,10 @@ public override string ToString()
65101
sb.Append("class ImageQA {\n");
66102
sb.Append(" DpiThreshold: ").Append(DpiThreshold).Append("\n");
67103
sb.Append(" AngleThreshold: ").Append(AngleThreshold).Append("\n");
104+
sb.Append(" DisableFocusCheck: ").Append(DisableFocusCheck).Append("\n");
105+
sb.Append(" DisableGlaresCheck: ").Append(DisableGlaresCheck).Append("\n");
106+
sb.Append(" DisableColornessCheck: ").Append(DisableColornessCheck).Append("\n");
107+
sb.Append(" DisableMoireCheck: ").Append(DisableMoireCheck).Append("\n");
68108
sb.Append("}\n");
69109
return sb.ToString();
70110
}
@@ -108,6 +148,26 @@ public bool Equals(ImageQA input)
108148
this.AngleThreshold == input.AngleThreshold ||
109149
(this.AngleThreshold != null &&
110150
this.AngleThreshold.Equals(input.AngleThreshold))
151+
) &&
152+
(
153+
this.DisableFocusCheck == input.DisableFocusCheck ||
154+
(this.DisableFocusCheck != null &&
155+
this.DisableFocusCheck.Equals(input.DisableFocusCheck))
156+
) &&
157+
(
158+
this.DisableGlaresCheck == input.DisableGlaresCheck ||
159+
(this.DisableGlaresCheck != null &&
160+
this.DisableGlaresCheck.Equals(input.DisableGlaresCheck))
161+
) &&
162+
(
163+
this.DisableColornessCheck == input.DisableColornessCheck ||
164+
(this.DisableColornessCheck != null &&
165+
this.DisableColornessCheck.Equals(input.DisableColornessCheck))
166+
) &&
167+
(
168+
this.DisableMoireCheck == input.DisableMoireCheck ||
169+
(this.DisableMoireCheck != null &&
170+
this.DisableMoireCheck.Equals(input.DisableMoireCheck))
111171
);
112172
}
113173

@@ -124,6 +184,14 @@ public override int GetHashCode()
124184
hashCode = hashCode * 59 + this.DpiThreshold.GetHashCode();
125185
if (this.AngleThreshold != null)
126186
hashCode = hashCode * 59 + this.AngleThreshold.GetHashCode();
187+
if (this.DisableFocusCheck != null)
188+
hashCode = hashCode * 59 + this.DisableFocusCheck.GetHashCode();
189+
if (this.DisableGlaresCheck != null)
190+
hashCode = hashCode * 59 + this.DisableGlaresCheck.GetHashCode();
191+
if (this.DisableColornessCheck != null)
192+
hashCode = hashCode * 59 + this.DisableColornessCheck.GetHashCode();
193+
if (this.DisableMoireCheck != null)
194+
hashCode = hashCode * 59 + this.DisableMoireCheck.GetHashCode();
127195
return hashCode;
128196
}
129197
}
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
/*
2+
* Regula Document Reader Web API
3+
*
4+
* 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
5+
*
6+
* The version of the OpenAPI document: 5.6.0
7+
*
8+
* Generated by: https://github.com/openapitools/openapi-generator.git
9+
*/
10+
11+
using System;
12+
using System.Linq;
13+
using System.IO;
14+
using System.Text;
15+
using System.Text.RegularExpressions;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Collections.ObjectModel;
19+
using System.Runtime.Serialization;
20+
using Newtonsoft.Json;
21+
using Newtonsoft.Json.Converters;
22+
using System.ComponentModel.DataAnnotations;
23+
using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter;
24+
25+
namespace Regula.DocumentReader.WebClient.Model
26+
{
27+
/// <summary>
28+
/// PerDocumentConfig
29+
/// </summary>
30+
[DataContract]
31+
public partial class PerDocumentConfig : IEquatable<PerDocumentConfig>, IValidatableObject
32+
{
33+
/// <summary>
34+
/// Initializes a new instance of the <see cref="PerDocumentConfig" /> class.
35+
/// </summary>
36+
/// <param name="docID">Specific template IDs, for which apply current custom configuration.</param>
37+
/// <param name="excludeAuthChecks">Contains items from AuthenticityResultType as sum via OR operation.</param>
38+
public PerDocumentConfig(List<int> docID = default(List<int>), int excludeAuthChecks = default(int))
39+
{
40+
this.DocID = docID;
41+
this.ExcludeAuthChecks = excludeAuthChecks;
42+
}
43+
44+
/// <summary>
45+
/// Specific template IDs, for which apply current custom configuration
46+
/// </summary>
47+
/// <value>Specific template IDs, for which apply current custom configuration</value>
48+
[DataMember(Name="docID", EmitDefaultValue=false)]
49+
public List<int> DocID { get; set; }
50+
51+
/// <summary>
52+
/// Contains items from AuthenticityResultType as sum via OR operation
53+
/// </summary>
54+
/// <value>Contains items from AuthenticityResultType as sum via OR operation</value>
55+
[DataMember(Name="excludeAuthChecks", EmitDefaultValue=false)]
56+
public int ExcludeAuthChecks { get; set; }
57+
58+
/// <summary>
59+
/// Returns the string presentation of the object
60+
/// </summary>
61+
/// <returns>String presentation of the object</returns>
62+
public override string ToString()
63+
{
64+
var sb = new StringBuilder();
65+
sb.Append("class PerDocumentConfig {\n");
66+
sb.Append(" DocID: ").Append(DocID).Append("\n");
67+
sb.Append(" ExcludeAuthChecks: ").Append(ExcludeAuthChecks).Append("\n");
68+
sb.Append("}\n");
69+
return sb.ToString();
70+
}
71+
72+
/// <summary>
73+
/// Returns the JSON string presentation of the object
74+
/// </summary>
75+
/// <returns>JSON string presentation of the object</returns>
76+
public virtual string ToJson()
77+
{
78+
return JsonConvert.SerializeObject(this, Formatting.Indented);
79+
}
80+
81+
/// <summary>
82+
/// Returns true if objects are equal
83+
/// </summary>
84+
/// <param name="input">Object to be compared</param>
85+
/// <returns>Boolean</returns>
86+
public override bool Equals(object input)
87+
{
88+
return this.Equals(input as PerDocumentConfig);
89+
}
90+
91+
/// <summary>
92+
/// Returns true if PerDocumentConfig instances are equal
93+
/// </summary>
94+
/// <param name="input">Instance of PerDocumentConfig to be compared</param>
95+
/// <returns>Boolean</returns>
96+
public bool Equals(PerDocumentConfig input)
97+
{
98+
if (input == null)
99+
return false;
100+
101+
return
102+
(
103+
this.DocID == input.DocID ||
104+
this.DocID != null &&
105+
input.DocID != null &&
106+
this.DocID.SequenceEqual(input.DocID)
107+
) &&
108+
(
109+
this.ExcludeAuthChecks == input.ExcludeAuthChecks ||
110+
(this.ExcludeAuthChecks != null &&
111+
this.ExcludeAuthChecks.Equals(input.ExcludeAuthChecks))
112+
);
113+
}
114+
115+
/// <summary>
116+
/// Gets the hash code
117+
/// </summary>
118+
/// <returns>Hash code</returns>
119+
public override int GetHashCode()
120+
{
121+
unchecked // Overflow is fine, just wrap
122+
{
123+
int hashCode = 41;
124+
if (this.DocID != null)
125+
hashCode = hashCode * 59 + this.DocID.GetHashCode();
126+
if (this.ExcludeAuthChecks != null)
127+
hashCode = hashCode * 59 + this.ExcludeAuthChecks.GetHashCode();
128+
return hashCode;
129+
}
130+
}
131+
132+
/// <summary>
133+
/// To validate all properties of the instance
134+
/// </summary>
135+
/// <param name="validationContext">Validation context</param>
136+
/// <returns>Validation Result</returns>
137+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
138+
{
139+
yield break;
140+
}
141+
}
142+
143+
}

0 commit comments

Comments
 (0)