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
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs
src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultListInner.cs
src/Regula.DocumentReader.WebClient/Model/AuthenticityResult.cs
src/Regula.DocumentReader.WebClient/Model/AuthenticityResultType.cs
src/Regula.DocumentReader.WebClient/Model/BSIV2Item.cs
src/Regula.DocumentReader.WebClient/Model/BSIV2Result.cs
src/Regula.DocumentReader.WebClient/Model/BarCodeModuleType.cs
src/Regula.DocumentReader.WebClient/Model/BarcodePositionItem.cs
src/Regula.DocumentReader.WebClient/Model/BarcodePositionResult.cs
Expand Down
2 changes: 1 addition & 1 deletion generator-templates/lenient/modelGeneric.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
{{#hasOnlyReadOnly}}
[JsonConstructorAttribute]
{{/hasOnlyReadOnly}}
public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{#defaultValue}}{{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}}
public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{#defaultValue}}{{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default{{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default{{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}}
{
{{#vars}}
{{^isInherited}}
Expand Down
2 changes: 1 addition & 1 deletion generator-templates/strict/modelGeneric.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
{{#hasOnlyReadOnly}}
[JsonConstructorAttribute]
{{/hasOnlyReadOnly}}
public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{#defaultValue}}{{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}}
public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{#defaultValue}}{{^isDateTime}}{{#isString}}{{^isEnum}}@{{/isEnum}}{{/isString}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default{{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default{{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}}
{
{{#vars}}
{{^isInherited}}
Expand Down
2 changes: 1 addition & 1 deletion src/Regula.DocumentReader.WebClient/Model/AreaArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected AreaArray() { }
/// <param name="count">Number of elements in List and Points (required).</param>
/// <param name="list">list (required).</param>
/// <param name="points">points (required).</param>
public AreaArray(decimal count = default(decimal), List<RectangleCoordinates> list = default(List<RectangleCoordinates>), List<PointArray> points = default(List<PointArray>))
public AreaArray(decimal count = default, List<RectangleCoordinates> list = default, List<PointArray> points = default)
{
this.Count = count;
// to ensure "list" is required (not null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected AreaContainer() { }
/// <param name="count">count (required).</param>
/// <param name="list">list (required).</param>
/// <param name="points">points (required).</param>
public AreaContainer(int count = default(int), List<RectangleCoordinates> list = default(List<RectangleCoordinates>), List<PointsContainer> points = default(List<PointsContainer>))
public AreaContainer(int count = default, List<RectangleCoordinates> list = default, List<PointsContainer> points = default)
{
this.Count = count;
// to ensure "list" is required (not null)
Expand Down
2 changes: 1 addition & 1 deletion src/Regula.DocumentReader.WebClient/Model/AuthParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public partial class AuthParams : IValidatableObject
/// <param name="checkPhotoComparison">This parameter is used to enable Portrait comparison check.</param>
/// <param name="checkLetterScreen">This parameter is used to enable LetterScreen check.</param>
/// <param name="checkSecurityText">This parameter is used to enable Security text check.</param>
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))
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)
{
this.CheckLiveness = checkLiveness;
this.LivenessParams = livenessParams;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected AuthenticityCheckList() { }
/// </summary>
/// <param name="count">Count of items in List (required).</param>
/// <param name="list">Authenticity Check (required).</param>
public AuthenticityCheckList(int count = default(int), List<AuthenticityCheckResult> list = default(List<AuthenticityCheckResult>))
public AuthenticityCheckList(int count = default, List<AuthenticityCheckResult> list = default)
{
this.Count = count;
// to ensure "list" is required (not null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected AuthenticityCheckListItem() { }
/// Initializes a new instance of the <see cref="AuthenticityCheckListItem" /> class.
/// </summary>
/// <param name="authenticityCheckList">authenticityCheckList (required).</param>
public AuthenticityCheckListItem(AuthenticityCheckList authenticityCheckList = default(AuthenticityCheckList))
public AuthenticityCheckListItem(AuthenticityCheckList authenticityCheckList = default)
{
// to ensure "authenticityCheckList" is required (not null)
if (authenticityCheckList == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected AuthenticityCheckResult() { }
/// <param name="result">result (required).</param>
/// <param name="count">Count of items in List.</param>
/// <param name="list">list (required).</param>
public AuthenticityCheckResult(AuthenticityResultType type = default(AuthenticityResultType), CheckResult result = default(CheckResult), int count = default(int), List<AuthenticityCheckResultItem> list = default(List<AuthenticityCheckResultItem>))
public AuthenticityCheckResult(AuthenticityResultType type = default, CheckResult result = default, int? count = default, List<AuthenticityCheckResultItem> list = default)
{
this.Type = type;
this.Result = result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected AuthenticityCheckResultItem() { }
/// <param name="elementResult">elementResult.</param>
/// <param name="elementDiagnose">elementDiagnose.</param>
/// <param name="percentValue">percentValue.</param>
public AuthenticityCheckResultItem(AuthenticityResultType type = default(AuthenticityResultType), CheckResult? elementResult = default(CheckResult?), CheckDiagnose? elementDiagnose = default(CheckDiagnose?), int percentValue = default(int))
public AuthenticityCheckResultItem(AuthenticityResultType type = default, CheckResult? elementResult = default, CheckDiagnose? elementDiagnose = default, int? percentValue = default)
{
this.Type = type;
this.ElementResult = elementResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
/// <param name="listIdx">listIdx.</param>
/// <param name="pageIdx">pageIdx.</param>
/// <param name="resultType">resultType (required) (default to Result.AUTHENTICITY).</param>
public AuthenticityResult(AuthenticityCheckList authenticityCheckList = default(AuthenticityCheckList), int bufLength = default(int), int light = default(int), int listIdx = default(int), int pageIdx = default(int), Result resultType = Result.AUTHENTICITY) : base(bufLength, light, listIdx, pageIdx, resultType)
public AuthenticityResult(AuthenticityCheckList authenticityCheckList = default, int? bufLength = default, int? light = default, int? listIdx = default, int? pageIdx = default, Result resultType = Result.AUTHENTICITY) : base(bufLength, light, listIdx, pageIdx, resultType)
{
// to ensure "authenticityCheckList" is required (not null)
if (authenticityCheckList == null)
Expand Down Expand Up @@ -101,7 +101,7 @@
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
protected IEnumerable<ValidationResult> BaseValidate(ValidationContext validationContext)

Check warning on line 104 in src/Regula.DocumentReader.WebClient/Model/AuthenticityResult.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

'AuthenticityResult.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
93 changes: 93 additions & 0 deletions src/Regula.DocumentReader.WebClient/Model/BSIV2Item.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/*
* 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>
/// BSIV2Item
/// </summary>
[DataContract(Name = "BSIV2Item")]
public partial class BSIV2Item : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="BSIV2Item" /> class.
/// </summary>
[JsonConstructorAttribute]
protected BSIV2Item() { }
/// <summary>
/// Initializes a new instance of the <see cref="BSIV2Item" /> class.
/// </summary>
/// <param name="xMLBuffer">xMLBuffer (required).</param>
public BSIV2Item(string xMLBuffer = default)
{
// to ensure "xMLBuffer" is required (not null)
if (xMLBuffer == null)
{
throw new ArgumentNullException("xMLBuffer is a required property for BSIV2Item and cannot be null");
}
this.XMLBuffer = xMLBuffer;
}

/// <summary>
/// Gets or Sets XMLBuffer
/// </summary>
[DataMember(Name = "XML_buffer", IsRequired = true, EmitDefaultValue = true)]
public string XMLBuffer { 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 BSIV2Item {\n");
sb.Append(" XMLBuffer: ").Append(XMLBuffer).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;
}
}

}
114 changes: 114 additions & 0 deletions src/Regula.DocumentReader.WebClient/Model/BSIV2Result.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
/*
* 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 JsonSubTypes;
using System.ComponentModel.DataAnnotations;
using FileParameter = Regula.DocumentReader.WebClient.Client.FileParameter;
using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter;

namespace Regula.DocumentReader.WebClient.Model
{
/// <summary>
/// BSIV2Result
/// </summary>
[DataContract(Name = "BSIV2Result")]
public partial class BSIV2Result : ResultItem, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="BSIV2Result" /> class.
/// </summary>
[JsonConstructorAttribute]
protected BSIV2Result() { }
/// <summary>
/// Initializes a new instance of the <see cref="BSIV2Result" /> class.
/// </summary>
/// <param name="xMLBuffer">xMLBuffer (required).</param>
/// <param name="bufLength">bufLength.</param>
/// <param name="light">light.</param>
/// <param name="listIdx">listIdx.</param>
/// <param name="pageIdx">pageIdx.</param>
/// <param name="resultType">resultType (required) (default to Result.BSI_XML_V2).</param>
public BSIV2Result(string xMLBuffer = default, int? bufLength = default, int? light = default, int? listIdx = default, int? pageIdx = default, Result resultType = Result.BSI_XML_V2) : base(bufLength, light, listIdx, pageIdx, resultType)
{
// to ensure "xMLBuffer" is required (not null)
if (xMLBuffer == null)
{
throw new ArgumentNullException("xMLBuffer is a required property for BSIV2Result and cannot be null");
}
this.XMLBuffer = xMLBuffer;
}

/// <summary>
/// Gets or Sets XMLBuffer
/// </summary>
[DataMember(Name = "XML_buffer", IsRequired = true, EmitDefaultValue = true)]
public string XMLBuffer { 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 BSIV2Result {\n");
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
sb.Append(" XMLBuffer: ").Append(XMLBuffer).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 override 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)
{
return this.BaseValidate(validationContext);
}

/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
protected IEnumerable<ValidationResult> BaseValidate(ValidationContext validationContext)

Check warning on line 104 in src/Regula.DocumentReader.WebClient/Model/BSIV2Result.cs

View workflow job for this annotation

GitHub Actions / run_smoke_test

'BSIV2Result.BaseValidate(ValidationContext)' hides inherited member 'ResultItem.BaseValidate(ValidationContext)'. Use the new keyword if hiding was intended.
{
foreach (var x in base.BaseValidate(validationContext))
{
yield return x;
}
yield break;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected BarcodePositionItem() { }
/// Initializes a new instance of the <see cref="BarcodePositionItem" /> class.
/// </summary>
/// <param name="barcodePosition">barcodePosition (required).</param>
public BarcodePositionItem(DocumentPosition barcodePosition = default(DocumentPosition))
public BarcodePositionItem(DocumentPosition barcodePosition = default)
{
// to ensure "barcodePosition" is required (not null)
if (barcodePosition == null)
Expand Down
Loading