Skip to content

Commit 2f01aa8

Browse files
author
regula-bot
committed
Merge remote-tracking branch 'origin/develop' into stable
2 parents 15a277e + 631f29b commit 2f01aa8

File tree

12 files changed

+165
-10
lines changed

12 files changed

+165
-10
lines changed

.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ src/Regula.DocumentReader.WebClient/Model/ProcessRequestImage.cs
177177
src/Regula.DocumentReader.WebClient/Model/ProcessResponse.cs
178178
src/Regula.DocumentReader.WebClient/Model/ProcessSystemInfo.cs
179179
src/Regula.DocumentReader.WebClient/Model/ProcessingStatus.cs
180+
src/Regula.DocumentReader.WebClient/Model/PropertiesParams.cs
180181
src/Regula.DocumentReader.WebClient/Model/RFIDDocVisualExtendedField.cs
181182
src/Regula.DocumentReader.WebClient/Model/RFIDDocVisualExtendedFieldItem.cs
182183
src/Regula.DocumentReader.WebClient/Model/RFIDDocVisualExtendedInfo.cs

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ public partial class AuthParams : IValidatableObject
5151
/// <param name="checkPhotoComparison">This parameter is used to enable Portrait comparison check.</param>
5252
/// <param name="checkLetterScreen">This parameter is used to enable LetterScreen check.</param>
5353
/// <param name="checkSecurityText">This parameter is used to enable Security text check.</param>
54-
public AuthParams(bool? checkLiveness = default, LivenessParams? livenessParams = default, bool? checkUVLuminiscence = default, bool? checkIRB900 = default, bool? checkImagePatterns = default, bool? checkFibers = default, bool? checkExtMRZ = default, bool? checkExtOCR = default, bool? checkAxial = default, bool? checkBarcodeFormat = default, bool? checkIRVisibility = default, bool? checkIPI = default, bool? checkPhotoEmbedding = default, bool? checkPhotoComparison = default, bool? checkLetterScreen = default, bool? checkSecurityText = default)
54+
/// <param name="checkProperties">Set to true to enable detection of the document properties, such as holder&#39;s signature and other attributes..</param>
55+
/// <param name="propertiesParams">propertiesParams.</param>
56+
public AuthParams(bool? checkLiveness = default, LivenessParams? livenessParams = default, bool? checkUVLuminiscence = default, bool? checkIRB900 = default, bool? checkImagePatterns = default, bool? checkFibers = default, bool? checkExtMRZ = default, bool? checkExtOCR = default, bool? checkAxial = default, bool? checkBarcodeFormat = default, bool? checkIRVisibility = default, bool? checkIPI = default, bool? checkPhotoEmbedding = default, bool? checkPhotoComparison = default, bool? checkLetterScreen = default, bool? checkSecurityText = default, bool? checkProperties = default, PropertiesParams? propertiesParams = default)
5557
{
5658
this.CheckLiveness = checkLiveness;
5759
this.LivenessParams = livenessParams;
@@ -69,6 +71,8 @@ public AuthParams(bool? checkLiveness = default, LivenessParams? livenessParams
6971
this.CheckPhotoComparison = checkPhotoComparison;
7072
this.CheckLetterScreen = checkLetterScreen;
7173
this.CheckSecurityText = checkSecurityText;
74+
this.CheckProperties = checkProperties;
75+
this.PropertiesParams = propertiesParams;
7276
}
7377

7478
/// <summary>
@@ -182,6 +186,19 @@ public AuthParams(bool? checkLiveness = default, LivenessParams? livenessParams
182186
[DataMember(Name = "checkSecurityText", EmitDefaultValue = false)]
183187
public bool? CheckSecurityText { get; set; }
184188

189+
/// <summary>
190+
/// Set to true to enable detection of the document properties, such as holder&#39;s signature and other attributes.
191+
/// </summary>
192+
/// <value>Set to true to enable detection of the document properties, such as holder&#39;s signature and other attributes.</value>
193+
[DataMember(Name = "checkProperties", EmitDefaultValue = false)]
194+
public bool? CheckProperties { get; set; }
195+
196+
/// <summary>
197+
/// Gets or Sets PropertiesParams
198+
/// </summary>
199+
[DataMember(Name = "propertiesParams", EmitDefaultValue = false)]
200+
public PropertiesParams? PropertiesParams { get; set; }
201+
185202
/// <summary>
186203
/// Returns the string presentation of the object
187204
/// </summary>
@@ -206,6 +223,8 @@ public override string ToString()
206223
sb.Append(" CheckPhotoComparison: ").Append(CheckPhotoComparison).Append("\n");
207224
sb.Append(" CheckLetterScreen: ").Append(CheckLetterScreen).Append("\n");
208225
sb.Append(" CheckSecurityText: ").Append(CheckSecurityText).Append("\n");
226+
sb.Append(" CheckProperties: ").Append(CheckProperties).Append("\n");
227+
sb.Append(" PropertiesParams: ").Append(PropertiesParams).Append("\n");
209228
sb.Append("}\n");
210229
return sb.ToString();
211230
}

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,12 @@ public enum AuthenticityResultType: long
140140
/// <summary>
141141
/// Enum ENCRYPTED_IPI for value: 16777216
142142
/// </summary>
143-
ENCRYPTED_IPI = 16777216
143+
ENCRYPTED_IPI = 16777216,
144+
145+
/// <summary>
146+
/// Enum PROPERTY for value: 33554432
147+
/// </summary>
148+
PROPERTY = 33554432
144149
}
145150

146151
}

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,22 @@ public enum CheckDiagnose
675675
/// <summary>
676676
/// Enum CHD_INCORRECT_OBJECT_COLOR for value: 250
677677
/// </summary>
678-
CHD_INCORRECT_OBJECT_COLOR = 250
678+
CHD_INCORRECT_OBJECT_COLOR = 250,
679+
680+
/// <summary>
681+
/// Enum PROPERTY_NO_SIGNATURE for value: 260
682+
/// </summary>
683+
PROPERTY_NO_SIGNATURE = 260,
684+
685+
/// <summary>
686+
/// Enum PROPERTY_TEXT_AS_SIGNATURE for value: 261
687+
/// </summary>
688+
PROPERTY_TEXT_AS_SIGNATURE = 261,
689+
690+
/// <summary>
691+
/// Enum PROPERTY_FINGERPRINT_AS_SIGNATURE for value: 262
692+
/// </summary>
693+
PROPERTY_FINGERPRINT_AS_SIGNATURE = 262
679694
}
680695

681696
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public EncryptedRCLItem(byte[] encryptedRCL = default)
5656
/// </summary>
5757
/// <value>Base64 encoded data</value>
5858
/*
59-
<example>[B@124677ef</example>
59+
<example>[B@5cf2cd73</example>
6060
*/
6161
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
6262
public byte[] EncryptedRCL { get; set; }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public EncryptedRCLResult(byte[] encryptedRCL = default, int? bufLength = defaul
6262
/// </summary>
6363
/// <value>Base64 encoded data</value>
6464
/*
65-
<example>[B@124677ef</example>
65+
<example>[B@5cf2cd73</example>
6666
*/
6767
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
6868
public byte[] EncryptedRCL { get; set; }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public LicenseItem(byte[] license = default)
5656
/// </summary>
5757
/// <value>Base64 encoded data</value>
5858
/*
59-
<example>[B@17552dd3</example>
59+
<example>[B@934c927</example>
6060
*/
6161
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
6262
public byte[] License { get; set; }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public LicenseResult(byte[] license = default, int? bufLength = default, int? li
6262
/// </summary>
6363
/// <value>Base64 encoded data</value>
6464
/*
65-
<example>[B@17552dd3</example>
65+
<example>[B@934c927</example>
6666
*/
6767
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
6868
public byte[] License { get; set; }

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

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ protected ProcessParams() { }
144144
/// <param name="strictSecurityChecks">When enabled, this parameter marks security checks that don’t meet minimum requirements as &#39;Failed&#39; (instead of &#39;WasNotDone&#39;), which causes the overall security status to be &#39;Failed&#39;..</param>
145145
/// <param name="returnTransliteratedFields">Allows transliteration to be turned on or off; by default, it is enabled..</param>
146146
/// <param name="bsiTr03135">bsiTr03135.</param>
147-
public ProcessParams(bool? generateDTCVC = default, List<LCID> lcidFilter = default, bool? checkLiveness = default, List<LCID> lcidIgnoreFilter = default, bool? oneShotIdentification = default, bool? useFaceApi = default, FaceApi? faceApi = default, bool? doDetectCan = default, int? imageOutputMaxHeight = default, int? imageOutputMaxWidth = default, Scenario scenario = default, List<Result> resultTypeOutput = default, bool? doublePageSpread = default, bool? generateDoublePageSpreadImage = default, List<TextFieldType> fieldTypesFilter = default, List<TextFieldType> fieldTypesIgnoreFilter = default, string? dateFormat = default, MeasureSystem? measureSystem = default, int? imageDpiOutMax = default, bool? alreadyCropped = default, Dictionary<string, Object> customParams = default, List<PerDocumentConfig> config = default, bool? log = default, LogLevel? logLevel = default, int? forceDocID = default, bool? matchTextFieldMask = default, bool? fastDocDetect = default, bool? updateOCRValidityByGlare = default, bool? checkRequiredTextFields = default, bool? returnCroppedBarcode = default, ImageQA? imageQa = default, bool? strictImageQuality = default, bool? respectImageQuality = default, DocumentFormat? forceDocFormat = default, bool? noGraphics = default, bool? depersonalizeLog = default, bool? multiDocOnImage = default, int? shiftExpiryDate = default, int? minimalHolderAge = default, bool? returnUncroppedImage = default, List<MRZFormat> mrzFormatsFilter = default, bool? forceReadMrzBeforeLocate = default, bool? parseBarcodes = default, TextPostProcessing? convertCase = default, bool? splitNames = default, bool? disablePerforationOCR = default, List<DocumentType> documentGroupFilter = default, long? processAuth = default, int? deviceId = default, int? deviceType = default, string? deviceTypeHex = default, bool? ignoreDeviceIdFromImage = default, List<int> documentIdList = default, ProcessParamsRfid? rfid = default, bool? checkAuth = default, AuthParams? authParams = default, MrzDetectModeEnum? mrzDetectMode = default, bool? generateNumericCodes = default, bool? strictBarcodeDigitalSignatureCheck = default, bool? selectLongestNames = default, List<InputBarcodeType> doBarcodes = default, bool? strictDLCategoryExpiry = default, bool? generateAlpha2Codes = default, int? pdfPagesLimit = default, bool? disableAuthResolutionFilter = default, bool? strictSecurityChecks = default, bool? returnTransliteratedFields = default, BsiTr03135? bsiTr03135 = default)
147+
/// <param name="strictExpiryDate">When disabled, date of expiry doesn&#39;t affect the MRZ and text statuses..</param>
148+
/// <param name="checkVDS">This parameter is used to enable Visible Digital Seal check. Disabled by default..</param>
149+
public ProcessParams(bool? generateDTCVC = default, List<LCID> lcidFilter = default, bool? checkLiveness = default, List<LCID> lcidIgnoreFilter = default, bool? oneShotIdentification = default, bool? useFaceApi = default, FaceApi? faceApi = default, bool? doDetectCan = default, int? imageOutputMaxHeight = default, int? imageOutputMaxWidth = default, Scenario scenario = default, List<Result> resultTypeOutput = default, bool? doublePageSpread = default, bool? generateDoublePageSpreadImage = default, List<TextFieldType> fieldTypesFilter = default, List<TextFieldType> fieldTypesIgnoreFilter = default, string? dateFormat = default, MeasureSystem? measureSystem = default, int? imageDpiOutMax = default, bool? alreadyCropped = default, Dictionary<string, Object> customParams = default, List<PerDocumentConfig> config = default, bool? log = default, LogLevel? logLevel = default, int? forceDocID = default, bool? matchTextFieldMask = default, bool? fastDocDetect = default, bool? updateOCRValidityByGlare = default, bool? checkRequiredTextFields = default, bool? returnCroppedBarcode = default, ImageQA? imageQa = default, bool? strictImageQuality = default, bool? respectImageQuality = default, DocumentFormat? forceDocFormat = default, bool? noGraphics = default, bool? depersonalizeLog = default, bool? multiDocOnImage = default, int? shiftExpiryDate = default, int? minimalHolderAge = default, bool? returnUncroppedImage = default, List<MRZFormat> mrzFormatsFilter = default, bool? forceReadMrzBeforeLocate = default, bool? parseBarcodes = default, TextPostProcessing? convertCase = default, bool? splitNames = default, bool? disablePerforationOCR = default, List<DocumentType> documentGroupFilter = default, long? processAuth = default, int? deviceId = default, int? deviceType = default, string? deviceTypeHex = default, bool? ignoreDeviceIdFromImage = default, List<int> documentIdList = default, ProcessParamsRfid? rfid = default, bool? checkAuth = default, AuthParams? authParams = default, MrzDetectModeEnum? mrzDetectMode = default, bool? generateNumericCodes = default, bool? strictBarcodeDigitalSignatureCheck = default, bool? selectLongestNames = default, List<InputBarcodeType> doBarcodes = default, bool? strictDLCategoryExpiry = default, bool? generateAlpha2Codes = default, int? pdfPagesLimit = default, bool? disableAuthResolutionFilter = default, bool? strictSecurityChecks = default, bool? returnTransliteratedFields = default, BsiTr03135? bsiTr03135 = default, bool? strictExpiryDate = default, bool? checkVDS = default)
148150
{
149151
this.Scenario = scenario;
150152
this.GenerateDTCVC = generateDTCVC;
@@ -214,6 +216,8 @@ public ProcessParams(bool? generateDTCVC = default, List<LCID> lcidFilter = defa
214216
this.StrictSecurityChecks = strictSecurityChecks;
215217
this.ReturnTransliteratedFields = returnTransliteratedFields;
216218
this.BsiTr03135 = bsiTr03135;
219+
this.StrictExpiryDate = strictExpiryDate;
220+
this.CheckVDS = checkVDS;
217221
}
218222

219223
/// <summary>
@@ -651,6 +655,20 @@ public ProcessParams(bool? generateDTCVC = default, List<LCID> lcidFilter = defa
651655
[DataMember(Name = "bsiTr03135", EmitDefaultValue = false)]
652656
public BsiTr03135? BsiTr03135 { get; set; }
653657

658+
/// <summary>
659+
/// When disabled, date of expiry doesn&#39;t affect the MRZ and text statuses.
660+
/// </summary>
661+
/// <value>When disabled, date of expiry doesn&#39;t affect the MRZ and text statuses.</value>
662+
[DataMember(Name = "strictExpiryDate", EmitDefaultValue = false)]
663+
public bool? StrictExpiryDate { get; set; }
664+
665+
/// <summary>
666+
/// This parameter is used to enable Visible Digital Seal check. Disabled by default.
667+
/// </summary>
668+
/// <value>This parameter is used to enable Visible Digital Seal check. Disabled by default.</value>
669+
[DataMember(Name = "checkVDS", EmitDefaultValue = false)]
670+
public bool? CheckVDS { get; set; }
671+
654672
/// <summary>
655673
/// Returns the string presentation of the object
656674
/// </summary>
@@ -727,6 +745,8 @@ public override string ToString()
727745
sb.Append(" StrictSecurityChecks: ").Append(StrictSecurityChecks).Append("\n");
728746
sb.Append(" ReturnTransliteratedFields: ").Append(ReturnTransliteratedFields).Append("\n");
729747
sb.Append(" BsiTr03135: ").Append(BsiTr03135).Append("\n");
748+
sb.Append(" StrictExpiryDate: ").Append(StrictExpiryDate).Append("\n");
749+
sb.Append(" CheckVDS: ").Append(CheckVDS).Append("\n");
730750
sb.Append("}\n");
731751
return sb.ToString();
732752
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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: 8.1.0
7+
* Generated by: https://github.com/openapitools/openapi-generator.git
8+
*/
9+
10+
11+
using System;
12+
using System.Collections;
13+
using System.Collections.Generic;
14+
using System.Collections.ObjectModel;
15+
using System.Linq;
16+
using System.IO;
17+
using System.Runtime.Serialization;
18+
using System.Text;
19+
using System.Text.RegularExpressions;
20+
using Newtonsoft.Json;
21+
using Newtonsoft.Json.Converters;
22+
using Newtonsoft.Json.Linq;
23+
using System.ComponentModel.DataAnnotations;
24+
using FileParameter = Regula.DocumentReader.WebClient.Client.FileParameter;
25+
using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter;
26+
27+
namespace Regula.DocumentReader.WebClient.Model
28+
{
29+
/// <summary>
30+
/// PropertiesParams
31+
/// </summary>
32+
[DataContract(Name = "PropertiesParams")]
33+
public partial class PropertiesParams : IValidatableObject
34+
{
35+
/// <summary>
36+
/// Initializes a new instance of the <see cref="PropertiesParams" /> class.
37+
/// </summary>
38+
/// <param name="checkHoldersSignature">Set to true to enable detection of the document holder’s signature..</param>
39+
public PropertiesParams(bool? checkHoldersSignature = default)
40+
{
41+
this.CheckHoldersSignature = checkHoldersSignature;
42+
}
43+
44+
/// <summary>
45+
/// Set to true to enable detection of the document holder’s signature.
46+
/// </summary>
47+
/// <value>Set to true to enable detection of the document holder’s signature.</value>
48+
[DataMember(Name = "checkHoldersSignature", EmitDefaultValue = false)]
49+
public bool? CheckHoldersSignature { get; set; }
50+
51+
/// <summary>
52+
/// Returns the string presentation of the object
53+
/// </summary>
54+
/// <returns>String presentation of the object</returns>
55+
public override string ToString()
56+
{
57+
StringBuilder sb = new StringBuilder();
58+
sb.Append("class PropertiesParams {\n");
59+
sb.Append(" CheckHoldersSignature: ").Append(CheckHoldersSignature).Append("\n");
60+
sb.Append("}\n");
61+
return sb.ToString();
62+
}
63+
64+
/// <summary>
65+
/// Returns the JSON string presentation of the object
66+
/// </summary>
67+
/// <returns>JSON string presentation of the object</returns>
68+
public virtual string ToJson()
69+
{
70+
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
71+
}
72+
73+
/// <summary>
74+
/// To validate all properties of the instance
75+
/// </summary>
76+
/// <param name="validationContext">Validation context</param>
77+
/// <returns>Validation Result</returns>
78+
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
79+
{
80+
yield break;
81+
}
82+
}
83+
84+
}

0 commit comments

Comments
 (0)