From 9f45bda158dc0acff510fa9913449ace72367c4d Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 17 Oct 2025 13:29:25 +0000 Subject: [PATCH] Commit: 66d1067c --- .openapi-generator/FILES | 1 + .../Model/EncryptedRCLItem.cs | 2 +- .../Model/EncryptedRCLResult.cs | 2 +- .../Model/GlaresCheckParams.cs | 100 ++++++++++++++++++ .../Model/ImageQA.cs | 11 +- .../Model/LicenseItem.cs | 2 +- .../Model/LicenseResult.cs | 2 +- 7 files changed, 115 insertions(+), 5 deletions(-) create mode 100644 src/Regula.DocumentReader.WebClient/Model/GlaresCheckParams.cs diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 895a3fd..791ef7a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -89,6 +89,7 @@ src/Regula.DocumentReader.WebClient/Model/FiberResult.cs src/Regula.DocumentReader.WebClient/Model/FieldItem.cs src/Regula.DocumentReader.WebClient/Model/FileImage.cs src/Regula.DocumentReader.WebClient/Model/GetTransactionsByTagResponse.cs +src/Regula.DocumentReader.WebClient/Model/GlaresCheckParams.cs src/Regula.DocumentReader.WebClient/Model/GraphData.cs src/Regula.DocumentReader.WebClient/Model/GraphicField.cs src/Regula.DocumentReader.WebClient/Model/GraphicFieldType.cs diff --git a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs index 5868b4a..ee8439c 100644 --- a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs +++ b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs @@ -56,7 +56,7 @@ protected EncryptedRCLItem() { } /// /// Base64 encoded data /* - [B@18909ee8 + [B@5083a7e */ [DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)] public byte[] EncryptedRCL { get; set; } diff --git a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs index a04a998..93c4c2b 100644 --- a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs @@ -62,7 +62,7 @@ protected EncryptedRCLResult() { } /// /// Base64 encoded data /* - [B@18909ee8 + [B@5083a7e */ [DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)] public byte[] EncryptedRCL { get; set; } diff --git a/src/Regula.DocumentReader.WebClient/Model/GlaresCheckParams.cs b/src/Regula.DocumentReader.WebClient/Model/GlaresCheckParams.cs new file mode 100644 index 0000000..10ff424 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/GlaresCheckParams.cs @@ -0,0 +1,100 @@ +/* + * Regula Document Reader Web API + * + * 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 + * + * The version of the OpenAPI document: 8.1.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Regula.DocumentReader.WebClient.Client.FileParameter; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// GlaresCheckParams + /// + [DataContract(Name = "GlaresCheckParams")] + public partial class GlaresCheckParams : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Margin from the edges of the image. 0.35 = 35%. + /// The maximum allowable part of the area occupied by the glare. The same: 0.06 = 6%. + public GlaresCheckParams(float imgMarginPart = default(float), float maxGlaringPart = default(float)) + { + this.ImgMarginPart = imgMarginPart; + this.MaxGlaringPart = maxGlaringPart; + } + + /// + /// Margin from the edges of the image. 0.35 = 35% + /// + /// Margin from the edges of the image. 0.35 = 35% + /* + 0.35 + */ + [DataMember(Name = "imgMarginPart", EmitDefaultValue = false)] + public float? ImgMarginPart { get; set; } + + /// + /// The maximum allowable part of the area occupied by the glare. The same: 0.06 = 6% + /// + /// The maximum allowable part of the area occupied by the glare. The same: 0.06 = 6% + /* + 0.0 + */ + [DataMember(Name = "maxGlaringPart", EmitDefaultValue = false)] + public float? MaxGlaringPart { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class GlaresCheckParams {\n"); + sb.Append(" ImgMarginPart: ").Append(ImgMarginPart).Append("\n"); + sb.Append(" MaxGlaringPart: ").Append(MaxGlaringPart).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs b/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs index 09c5cbd..5c9b581 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs @@ -44,7 +44,8 @@ public partial class ImageQA : IValidatableObject /// This option enables screen capture (moire patterns) check while performing image quality validation.. /// This parameter specifies the necessary margin. Default 0.. /// This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process.. - public ImageQA(double brightnessThreshold = default(double), int dpiThreshold = default(int), int angleThreshold = default(int), bool focusCheck = default(bool), bool glaresCheck = default(bool), bool colornessCheck = default(bool), bool moireCheck = default(bool), int documentPositionIndent = default(int), List expectedPass = default(List)) + /// glaresCheckParams. + public ImageQA(double brightnessThreshold = default(double), int dpiThreshold = default(int), int angleThreshold = default(int), bool focusCheck = default(bool), bool glaresCheck = default(bool), bool colornessCheck = default(bool), bool moireCheck = default(bool), int documentPositionIndent = default(int), List expectedPass = default(List), GlaresCheckParams glaresCheckParams = default(GlaresCheckParams)) { this.BrightnessThreshold = brightnessThreshold; this.DpiThreshold = dpiThreshold; @@ -55,6 +56,7 @@ public partial class ImageQA : IValidatableObject this.MoireCheck = moireCheck; this.DocumentPositionIndent = documentPositionIndent; this.ExpectedPass = expectedPass; + this.GlaresCheckParams = glaresCheckParams; } /// @@ -120,6 +122,12 @@ public partial class ImageQA : IValidatableObject [DataMember(Name = "expectedPass", EmitDefaultValue = false)] public List? ExpectedPass { get; set; } + /// + /// Gets or Sets GlaresCheckParams + /// + [DataMember(Name = "glaresCheckParams", EmitDefaultValue = false)] + public GlaresCheckParams? GlaresCheckParams { get; set; } + /// /// Returns the string presentation of the object /// @@ -137,6 +145,7 @@ public override string ToString() sb.Append(" MoireCheck: ").Append(MoireCheck).Append("\n"); sb.Append(" DocumentPositionIndent: ").Append(DocumentPositionIndent).Append("\n"); sb.Append(" ExpectedPass: ").Append(ExpectedPass).Append("\n"); + sb.Append(" GlaresCheckParams: ").Append(GlaresCheckParams).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs b/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs index e35cec2..38639d9 100644 --- a/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs +++ b/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs @@ -56,7 +56,7 @@ protected LicenseItem() { } /// /// Base64 encoded data /* - [B@80c35a9 + [B@6f333983 */ [DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)] public byte[] License { get; set; } diff --git a/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs b/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs index 8710354..ed75b4d 100644 --- a/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs @@ -62,7 +62,7 @@ protected LicenseResult() { } /// /// Base64 encoded data /* - [B@80c35a9 + [B@6f333983 */ [DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)] public byte[] License { get; set; }