Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected EncryptedRCLItem() { }
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@18909ee8</example>
<example>[B@5083a7e</example>
*/
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
public byte[] EncryptedRCL { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@18909ee8</example>
<example>[B@5083a7e</example>
*/
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
public byte[] EncryptedRCL { get; set; }
Expand Down Expand Up @@ -105,7 +105,7 @@
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
protected IEnumerable<ValidationResult> BaseValidate(ValidationContext validationContext)

Check warning on line 108 in src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

'EncryptedRCLResult.BaseValidate(ValidationContext)' hides inherited member 'ResultItem.BaseValidate(ValidationContext)'. Use the new keyword if hiding was intended.
{
foreach (var x in base.BaseValidate(validationContext))
{
Expand Down
100 changes: 100 additions & 0 deletions src/Regula.DocumentReader.WebClient/Model/GlaresCheckParams.cs
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>
/// GlaresCheckParams
/// </summary>
[DataContract(Name = "GlaresCheckParams")]
public partial class GlaresCheckParams : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="GlaresCheckParams" /> class.
/// </summary>
/// <param name="imgMarginPart">Margin from the edges of the image. 0.35 &#x3D; 35%.</param>
/// <param name="maxGlaringPart">The maximum allowable part of the area occupied by the glare. The same: 0.06 &#x3D; 6%.</param>
public GlaresCheckParams(float imgMarginPart = default(float), float maxGlaringPart = default(float))
{
this.ImgMarginPart = imgMarginPart;
this.MaxGlaringPart = maxGlaringPart;
}

/// <summary>
/// Margin from the edges of the image. 0.35 &#x3D; 35%
/// </summary>
/// <value>Margin from the edges of the image. 0.35 &#x3D; 35%</value>
/*
<example>0.35</example>
*/
[DataMember(Name = "imgMarginPart", EmitDefaultValue = false)]
public float? ImgMarginPart { get; set; }

/// <summary>
/// The maximum allowable part of the area occupied by the glare. The same: 0.06 &#x3D; 6%
/// </summary>
/// <value>The maximum allowable part of the area occupied by the glare. The same: 0.06 &#x3D; 6%</value>
/*
<example>0.0</example>
*/
[DataMember(Name = "maxGlaringPart", EmitDefaultValue = false)]
public float? MaxGlaringPart { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
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();
}

/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}

/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}

}
11 changes: 10 additions & 1 deletion src/Regula.DocumentReader.WebClient/Model/ImageQA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public partial class ImageQA : IValidatableObject
/// <param name="moireCheck">This option enables screen capture (moire patterns) check while performing image quality validation..</param>
/// <param name="documentPositionIndent">This parameter specifies the necessary margin. Default 0..</param>
/// <param name="expectedPass">This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process..</param>
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<InputImageQualityChecks> expectedPass = default(List<InputImageQualityChecks>))
/// <param name="glaresCheckParams">glaresCheckParams.</param>
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<InputImageQualityChecks> expectedPass = default(List<InputImageQualityChecks>), GlaresCheckParams glaresCheckParams = default(GlaresCheckParams))
{
this.BrightnessThreshold = brightnessThreshold;
this.DpiThreshold = dpiThreshold;
Expand All @@ -55,6 +56,7 @@ public partial class ImageQA : IValidatableObject
this.MoireCheck = moireCheck;
this.DocumentPositionIndent = documentPositionIndent;
this.ExpectedPass = expectedPass;
this.GlaresCheckParams = glaresCheckParams;
}

/// <summary>
Expand Down Expand Up @@ -120,6 +122,12 @@ public partial class ImageQA : IValidatableObject
[DataMember(Name = "expectedPass", EmitDefaultValue = false)]
public List<InputImageQualityChecks>? ExpectedPass { get; set; }

/// <summary>
/// Gets or Sets GlaresCheckParams
/// </summary>
[DataMember(Name = "glaresCheckParams", EmitDefaultValue = false)]
public GlaresCheckParams? GlaresCheckParams { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected LicenseItem() { }
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@80c35a9</example>
<example>[B@6f333983</example>
*/
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
public byte[] License { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected LicenseResult() { }
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@80c35a9</example>
<example>[B@6f333983</example>
*/
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
public byte[] License { get; set; }
Expand Down
Loading