Skip to content

Commit 8d82312

Browse files
author
regula-bot
committed
Merge remote-tracking branch 'origin/stable'
2 parents a21701a + d7cd102 commit 8d82312

File tree

8 files changed

+293
-8
lines changed

8 files changed

+293
-8
lines changed

.openapi-generator-ignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ src/Regula.DocumentReader.WebClient/Properties/**
1616
# generator bugs, require manual change
1717
src/Regula.DocumentReader.WebClient/Model/ContainerList.cs
1818
src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResult.cs
19+
src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs
1920
**/*AllOf.cs
20-
src/Regula.DocumentReader.WebClient/Model/ResultItem.cs
21+
src/Regula.DocumentReader.WebClient/Model/ResultItem.cs

setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ dotnet build .src/Regula.DocumentReader.NetCoreExample -c Release
22

33
cd ./src/Regula.DocumentReader.NetCoreExample || exit
44

5-
export API_BASE_PATH="https://testapi.regulaforensics.com"
5+
export API_BASE_PATH="https://nightly-api.regulaforensics.com"
66

7-
dotnet run
7+
dotnet run

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ public partial class AuthParams : IEquatable<AuthParams>, IValidatableObject
4848
/// <param name="checkPhotoEmbedding">This parameter is used to enable Owner&#39;s photo embedding check (is photo printed or sticked).</param>
4949
/// <param name="checkPhotoComparison">This parameter is used to enable Portrait comparison check.</param>
5050
/// <param name="checkLetterScreen">This parameter is used to enable LetterScreen check.</param>
51-
public AuthParams(bool? checkLiveness = default(bool?), LivenessParams livenessParams = default(LivenessParams), bool? checkUVLuminiscence = default(bool?), bool? checkIRB900 = default(bool?), bool? checkImagePatterns = default(bool?), bool? checkFibers = default(bool?), bool? checkExtMRZ = default(bool?), bool? checkExtOCR = default(bool?), bool? checkAxial = default(bool?), bool? checkBarcodeFormat = default(bool?), bool? checkIRVisibility = default(bool?), bool? checkIPI = default(bool?), bool? checkPhotoEmbedding = default(bool?), bool? checkPhotoComparison = default(bool?), bool? checkLetterScreen = default(bool?))
51+
/// <param name="checkSecurityText">This parameter is used to enable Security text check.</param>
52+
public AuthParams(bool? checkLiveness = default(bool?), LivenessParams livenessParams = default(LivenessParams), bool? checkUVLuminiscence = default(bool?), bool? checkIRB900 = default(bool?), bool? checkImagePatterns = default(bool?), bool? checkFibers = default(bool?), bool? checkExtMRZ = default(bool?), bool? checkExtOCR = default(bool?), bool? checkAxial = default(bool?), bool? checkBarcodeFormat = default(bool?), bool? checkIRVisibility = default(bool?), bool? checkIPI = default(bool?), bool? checkPhotoEmbedding = default(bool?), bool? checkPhotoComparison = default(bool?), bool? checkLetterScreen = default(bool?), bool? checkSecurityText = default(bool?))
5253
{
5354
this.CheckLiveness = checkLiveness;
5455
this.LivenessParams = livenessParams;
@@ -65,6 +66,7 @@ public partial class AuthParams : IEquatable<AuthParams>, IValidatableObject
6566
this.CheckPhotoEmbedding = checkPhotoEmbedding;
6667
this.CheckPhotoComparison = checkPhotoComparison;
6768
this.CheckLetterScreen = checkLetterScreen;
69+
this.CheckSecurityText = checkSecurityText;
6870
}
6971

7072
/// <summary>
@@ -171,6 +173,13 @@ public partial class AuthParams : IEquatable<AuthParams>, IValidatableObject
171173
[DataMember(Name="checkLetterScreen", EmitDefaultValue=false)]
172174
public bool? CheckLetterScreen { get; set; }
173175

176+
/// <summary>
177+
/// This parameter is used to enable Security text check
178+
/// </summary>
179+
/// <value>This parameter is used to enable Security text check</value>
180+
[DataMember(Name="checkSecurityText", EmitDefaultValue=false)]
181+
public bool? CheckSecurityText { get; set; }
182+
174183
/// <summary>
175184
/// Returns the string presentation of the object
176185
/// </summary>
@@ -194,6 +203,7 @@ public override string ToString()
194203
sb.Append(" CheckPhotoEmbedding: ").Append(CheckPhotoEmbedding).Append("\n");
195204
sb.Append(" CheckPhotoComparison: ").Append(CheckPhotoComparison).Append("\n");
196205
sb.Append(" CheckLetterScreen: ").Append(CheckLetterScreen).Append("\n");
206+
sb.Append(" CheckSecurityText: ").Append(CheckSecurityText).Append("\n");
197207
sb.Append("}\n");
198208
return sb.ToString();
199209
}
@@ -302,6 +312,11 @@ public bool Equals(AuthParams input)
302312
this.CheckLetterScreen == input.CheckLetterScreen ||
303313
(this.CheckLetterScreen != null &&
304314
this.CheckLetterScreen.Equals(input.CheckLetterScreen))
315+
) &&
316+
(
317+
this.CheckSecurityText == input.CheckSecurityText ||
318+
(this.CheckSecurityText != null &&
319+
this.CheckSecurityText.Equals(input.CheckSecurityText))
305320
);
306321
}
307322

@@ -344,6 +359,8 @@ public override int GetHashCode()
344359
hashCode = hashCode * 59 + this.CheckPhotoComparison.GetHashCode();
345360
if (this.CheckLetterScreen != null)
346361
hashCode = hashCode * 59 + this.CheckLetterScreen.GetHashCode();
362+
if (this.CheckSecurityText != null)
363+
hashCode = hashCode * 59 + this.CheckSecurityText.GetHashCode();
347364
return hashCode;
348365
}
349366
}

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

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ public partial class FaceApi : IEquatable<FaceApi>, IValidatableObject
4141
/// <param name="proxy">Proxy to use, should be set according to the &lt;a href&#x3D;\&quot;https://curl.se/libcurl/c/CURLOPT_PROXY.html\&quot; target&#x3D;\&quot;_blank\&quot;&gt;cURL standard&lt;/a&gt;..</param>
4242
/// <param name="proxyUserpwd">Username and password to use for proxy authentication, should be set according to the &lt;a href&#x3D;\&quot;https://curl.se/libcurl/c/CURLOPT_PROXYUSERPWD.html\&quot; target&#x3D;\&quot;_blank\&quot;&gt;cURL standard&lt;/a&gt;..</param>
4343
/// <param name="proxyType">Proxy protocol type, should be set according to the &lt;a href&#x3D;\&quot;https://curl.se/libcurl/c/CURLOPT_PROXYTYPE.html\&quot; target&#x3D;\&quot;_blank\&quot;&gt;cURL standard&lt;/a&gt;..</param>
44-
public FaceApi(string url = default(string), string mode = default(string), FaceApiSearch search = default(FaceApiSearch), int threshold = default(int), int serviceTimeout = default(int), string proxy = default(string), string proxyUserpwd = default(string), int proxyType = default(int))
44+
/// <param name="childAgeThreshold">The age threshold for the portrait comparison. Default: 13..</param>
45+
/// <param name="childDocValidityYears">Estimated duration of validity for a child&#39;s passport, years. Default: 5..</param>
46+
public FaceApi(string url = default(string), string mode = default(string), FaceApiSearch search = default(FaceApiSearch), int threshold = default(int), int serviceTimeout = default(int), string proxy = default(string), string proxyUserpwd = default(string), int proxyType = default(int), int childAgeThreshold = default(int), int childDocValidityYears = default(int))
4547
{
4648
this.Url = url;
4749
this.Mode = mode;
@@ -51,6 +53,8 @@ public partial class FaceApi : IEquatable<FaceApi>, IValidatableObject
5153
this.Proxy = proxy;
5254
this.ProxyUserpwd = proxyUserpwd;
5355
this.ProxyType = proxyType;
56+
this.ChildAgeThreshold = childAgeThreshold;
57+
this.ChildDocValidityYears = childDocValidityYears;
5458
}
5559

5660
/// <summary>
@@ -108,6 +112,20 @@ public partial class FaceApi : IEquatable<FaceApi>, IValidatableObject
108112
[DataMember(Name="proxy_type", EmitDefaultValue=false)]
109113
public int ProxyType { get; set; }
110114

115+
/// <summary>
116+
/// The age threshold for the portrait comparison. Default: 13.
117+
/// </summary>
118+
/// <value>The age threshold for the portrait comparison. Default: 13.</value>
119+
[DataMember(Name="childAgeThreshold", EmitDefaultValue=false)]
120+
public int ChildAgeThreshold { get; set; }
121+
122+
/// <summary>
123+
/// Estimated duration of validity for a child&#39;s passport, years. Default: 5.
124+
/// </summary>
125+
/// <value>Estimated duration of validity for a child&#39;s passport, years. Default: 5.</value>
126+
[DataMember(Name="childDocValidityYears", EmitDefaultValue=false)]
127+
public int ChildDocValidityYears { get; set; }
128+
111129
/// <summary>
112130
/// Returns the string presentation of the object
113131
/// </summary>
@@ -124,6 +142,8 @@ public override string ToString()
124142
sb.Append(" Proxy: ").Append(Proxy).Append("\n");
125143
sb.Append(" ProxyUserpwd: ").Append(ProxyUserpwd).Append("\n");
126144
sb.Append(" ProxyType: ").Append(ProxyType).Append("\n");
145+
sb.Append(" ChildAgeThreshold: ").Append(ChildAgeThreshold).Append("\n");
146+
sb.Append(" ChildDocValidityYears: ").Append(ChildDocValidityYears).Append("\n");
127147
sb.Append("}\n");
128148
return sb.ToString();
129149
}
@@ -197,6 +217,16 @@ public bool Equals(FaceApi input)
197217
this.ProxyType == input.ProxyType ||
198218
(this.ProxyType != null &&
199219
this.ProxyType.Equals(input.ProxyType))
220+
) &&
221+
(
222+
this.ChildAgeThreshold == input.ChildAgeThreshold ||
223+
(this.ChildAgeThreshold != null &&
224+
this.ChildAgeThreshold.Equals(input.ChildAgeThreshold))
225+
) &&
226+
(
227+
this.ChildDocValidityYears == input.ChildDocValidityYears ||
228+
(this.ChildDocValidityYears != null &&
229+
this.ChildDocValidityYears.Equals(input.ChildDocValidityYears))
200230
);
201231
}
202232

@@ -225,6 +255,10 @@ public override int GetHashCode()
225255
hashCode = hashCode * 59 + this.ProxyUserpwd.GetHashCode();
226256
if (this.ProxyType != null)
227257
hashCode = hashCode * 59 + this.ProxyType.GetHashCode();
258+
if (this.ChildAgeThreshold != null)
259+
hashCode = hashCode * 59 + this.ChildAgeThreshold.GetHashCode();
260+
if (this.ChildDocValidityYears != null)
261+
hashCode = hashCode * 59 + this.ChildDocValidityYears.GetHashCode();
228262
return hashCode;
229263
}
230264
}
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
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: 7.2.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+
/// Enumeration contains the types of barcodes that can be processed
29+
/// </summary>
30+
/// <value>Enumeration contains the types of barcodes that can be processed</value>
31+
32+
[JsonConverter(typeof(StringEnumConverter))]
33+
34+
public enum InputBarcodeType
35+
{
36+
/// <summary>
37+
/// Enum UNKNOWN for value: bct_unknown
38+
/// </summary>
39+
[EnumMember(Value = "bct_unknown")]
40+
UNKNOWN = 1,
41+
42+
/// <summary>
43+
/// Enum CODE128 for value: bct_Code128
44+
/// </summary>
45+
[EnumMember(Value = "bct_Code128")]
46+
CODE128 = 2,
47+
48+
/// <summary>
49+
/// Enum CODE39 for value: bct_Code39
50+
/// </summary>
51+
[EnumMember(Value = "bct_Code39")]
52+
CODE39 = 3,
53+
54+
/// <summary>
55+
/// Enum EAN8 for value: bct_EAN8
56+
/// </summary>
57+
[EnumMember(Value = "bct_EAN8")]
58+
EAN8 = 4,
59+
60+
/// <summary>
61+
/// Enum ITF for value: bct_ITF
62+
/// </summary>
63+
[EnumMember(Value = "bct_ITF")]
64+
ITF = 5,
65+
66+
/// <summary>
67+
/// Enum PDF417 for value: bct_PDF417
68+
/// </summary>
69+
[EnumMember(Value = "bct_PDF417")]
70+
PDF417 = 6,
71+
72+
/// <summary>
73+
/// Enum STF for value: bct_STF
74+
/// </summary>
75+
[EnumMember(Value = "bct_STF")]
76+
STF = 7,
77+
78+
/// <summary>
79+
/// Enum MTF for value: bct_MTF
80+
/// </summary>
81+
[EnumMember(Value = "bct_MTF")]
82+
MTF = 8,
83+
84+
/// <summary>
85+
/// Enum IATA for value: bct_IATA
86+
/// </summary>
87+
[EnumMember(Value = "bct_IATA")]
88+
IATA = 9,
89+
90+
/// <summary>
91+
/// Enum CODABAR for value: bct_CODABAR
92+
/// </summary>
93+
[EnumMember(Value = "bct_CODABAR")]
94+
CODABAR = 10,
95+
96+
/// <summary>
97+
/// Enum UPCA for value: bct_UPCA
98+
/// </summary>
99+
[EnumMember(Value = "bct_UPCA")]
100+
UPCA = 11,
101+
102+
/// <summary>
103+
/// Enum CODE93 for value: bct_CODE93
104+
/// </summary>
105+
[EnumMember(Value = "bct_CODE93")]
106+
CODE93 = 12,
107+
108+
/// <summary>
109+
/// Enum UPCE for value: bct_UPCE
110+
/// </summary>
111+
[EnumMember(Value = "bct_UPCE")]
112+
UPCE = 13,
113+
114+
/// <summary>
115+
/// Enum EAN13 for value: bct_EAN13
116+
/// </summary>
117+
[EnumMember(Value = "bct_EAN13")]
118+
EAN13 = 14,
119+
120+
/// <summary>
121+
/// Enum QRCODE for value: bct_QRCODE
122+
/// </summary>
123+
[EnumMember(Value = "bct_QRCODE")]
124+
QRCODE = 15,
125+
126+
/// <summary>
127+
/// Enum AZTEC for value: bct_AZTEC
128+
/// </summary>
129+
[EnumMember(Value = "bct_AZTEC")]
130+
AZTEC = 16,
131+
132+
/// <summary>
133+
/// Enum DATAMATRIX for value: bct_DATAMATRIX
134+
/// </summary>
135+
[EnumMember(Value = "bct_DATAMATRIX")]
136+
DATAMATRIX = 17,
137+
138+
/// <summary>
139+
/// Enum ALL_1D for value: bct_ALL_1D
140+
/// </summary>
141+
[EnumMember(Value = "bct_ALL_1D")]
142+
ALL_1D = 18,
143+
144+
/// <summary>
145+
/// Enum CODE11 for value: bct_Code11
146+
/// </summary>
147+
[EnumMember(Value = "bct_Code11")]
148+
CODE11 = 19,
149+
150+
/// <summary>
151+
/// Enum JABCODE for value: bct_JABCODE
152+
/// </summary>
153+
[EnumMember(Value = "bct_JABCODE")]
154+
JABCODE = 20
155+
156+
}
157+
158+
}

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,13 @@ public enum InputImageQualityChecks
7979
/// Enum Brightness for value: brightnessCheck
8080
/// </summary>
8181
[EnumMember(Value = "brightnessCheck")]
82-
Brightness = 8
82+
Brightness = 8,
83+
84+
/// <summary>
85+
/// Enum Occlusion for value: occlusionCheck
86+
/// </summary>
87+
[EnumMember(Value = "occlusionCheck")]
88+
Occlusion = 9
8389

8490
}
8591

0 commit comments

Comments
 (0)