diff --git a/src/Regula.DocumentReader.WebClient/Model/AreaArray.cs b/src/Regula.DocumentReader.WebClient/Model/AreaArray.cs index 62b9cbb..c4e961c 100644 --- a/src/Regula.DocumentReader.WebClient/Model/AreaArray.cs +++ b/src/Regula.DocumentReader.WebClient/Model/AreaArray.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,24 +33,65 @@ public partial class AreaArray : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// list. - /// points. - public AreaArray(List list = default(List), List points = default(List)) + [JsonConstructorAttribute] + protected AreaArray() { } + /// + /// Initializes a new instance of the class. + /// + /// Number of elements in List and Points (required). + /// list (required). + /// points (required). + public AreaArray(decimal count = default(decimal), List list = default(List), List points = default(List)) { - this.List = list; - this.Points = points; + // to ensure "count" is required (not null) + if (count == null) + { + throw new InvalidDataException("count is a required property for AreaArray and cannot be null"); + } + else + { + this.Count = count; + } + + // to ensure "list" is required (not null) + if (list == null) + { + throw new InvalidDataException("list is a required property for AreaArray and cannot be null"); + } + else + { + this.List = list; + } + + // to ensure "points" is required (not null) + if (points == null) + { + throw new InvalidDataException("points is a required property for AreaArray and cannot be null"); + } + else + { + this.Points = points; + } + } + /// + /// Number of elements in List and Points + /// + /// Number of elements in List and Points + [DataMember(Name="Count", EmitDefaultValue=true)] + public decimal Count { get; set; } + /// /// Gets or Sets List /// - [DataMember(Name="List", EmitDefaultValue=false)] + [DataMember(Name="List", EmitDefaultValue=true)] public List List { get; set; } /// /// Gets or Sets Points /// - [DataMember(Name="Points", EmitDefaultValue=false)] + [DataMember(Name="Points", EmitDefaultValue=true)] public List Points { get; set; } /// @@ -61,6 +102,7 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class AreaArray {\n"); + sb.Append(" Count: ").Append(Count).Append("\n"); sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Points: ").Append(Points).Append("\n"); sb.Append("}\n"); @@ -97,6 +139,11 @@ public bool Equals(AreaArray input) return false; return + ( + this.Count == input.Count || + (this.Count != null && + this.Count.Equals(input.Count)) + ) && ( this.List == input.List || this.List != null && @@ -120,6 +167,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.Count != null) + hashCode = hashCode * 59 + this.Count.GetHashCode(); if (this.List != null) hashCode = hashCode * 59 + this.List.GetHashCode(); if (this.Points != null) diff --git a/src/Regula.DocumentReader.WebClient/Model/AreaContainer.cs b/src/Regula.DocumentReader.WebClient/Model/AreaContainer.cs index 037636b..5d92514 100644 --- a/src/Regula.DocumentReader.WebClient/Model/AreaContainer.cs +++ b/src/Regula.DocumentReader.WebClient/Model/AreaContainer.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,32 +33,64 @@ public partial class AreaContainer : IEquatable, IValidatableObj /// /// Initializes a new instance of the class. /// - /// count. - /// list. - /// points. + [JsonConstructorAttribute] + protected AreaContainer() { } + /// + /// Initializes a new instance of the class. + /// + /// count (required). + /// list (required). + /// points (required). public AreaContainer(int count = default(int), List list = default(List), List points = default(List)) { - this.Count = count; - this.List = list; - this.Points = points; + // to ensure "count" is required (not null) + if (count == null) + { + throw new InvalidDataException("count is a required property for AreaContainer and cannot be null"); + } + else + { + this.Count = count; + } + + // to ensure "list" is required (not null) + if (list == null) + { + throw new InvalidDataException("list is a required property for AreaContainer and cannot be null"); + } + else + { + this.List = list; + } + + // to ensure "points" is required (not null) + if (points == null) + { + throw new InvalidDataException("points is a required property for AreaContainer and cannot be null"); + } + else + { + this.Points = points; + } + } /// /// Gets or Sets Count /// - [DataMember(Name="Count", EmitDefaultValue=false)] + [DataMember(Name="Count", EmitDefaultValue=true)] public int Count { get; set; } /// /// Gets or Sets List /// - [DataMember(Name="List", EmitDefaultValue=false)] + [DataMember(Name="List", EmitDefaultValue=true)] public List List { get; set; } /// /// Gets or Sets Points /// - [DataMember(Name="Points", EmitDefaultValue=false)] + [DataMember(Name="Points", EmitDefaultValue=true)] public List Points { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/AuthParams.cs b/src/Regula.DocumentReader.WebClient/Model/AuthParams.cs index 5cb278d..aee69cf 100644 --- a/src/Regula.DocumentReader.WebClient/Model/AuthParams.cs +++ b/src/Regula.DocumentReader.WebClient/Model/AuthParams.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckList.cs b/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckList.cs index 37e1226..6f7beb2 100644 --- a/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckList.cs +++ b/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckList.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,10 +38,20 @@ protected AuthenticityCheckList() { } /// /// Initializes a new instance of the class. /// - /// Count of items in List. + /// Count of items in List (required). /// Authenticity Check (required). public AuthenticityCheckList(int count = default(int), List list = default(List)) { + // to ensure "count" is required (not null) + if (count == null) + { + throw new InvalidDataException("count is a required property for AuthenticityCheckList and cannot be null"); + } + else + { + this.Count = count; + } + // to ensure "list" is required (not null) if (list == null) { @@ -52,14 +62,13 @@ protected AuthenticityCheckList() { } this.List = list; } - this.Count = count; } /// /// Count of items in List /// /// Count of items in List - [DataMember(Name="Count", EmitDefaultValue=false)] + [DataMember(Name="Count", EmitDefaultValue=true)] public int Count { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs b/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs index 4a4360b..5a5299b 100644 --- a/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs +++ b/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -19,7 +19,6 @@ using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; -using JsonSubTypes; using System.ComponentModel.DataAnnotations; using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; @@ -29,12 +28,6 @@ namespace Regula.DocumentReader.WebClient.Model /// Common fields for all authenticity result objects /// [DataContract] - [JsonConverter(typeof(JsonSubtypes), "type")] - [JsonSubtypes.KnownSubType(typeof(PhotoIdentResult), "PhotoIdentResult")] - [JsonSubtypes.KnownSubType(typeof(OCRSecurityTextResult), "OCRSecurityTextResult")] - [JsonSubtypes.KnownSubType(typeof(SecurityFeatureResult), "SecurityFeatureResult")] - [JsonSubtypes.KnownSubType(typeof(IdentResult), "IdentResult")] - [JsonSubtypes.KnownSubType(typeof(FiberResult), "FiberResult")] public partial class AuthenticityCheckResultItem : IEquatable, IValidatableObject { /// @@ -186,16 +179,6 @@ public override int GetHashCode() /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - return this.BaseValidate(validationContext); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - protected IEnumerable BaseValidate(ValidationContext validationContext) { yield break; } diff --git a/src/Regula.DocumentReader.WebClient/Model/AuthenticityResult.cs b/src/Regula.DocumentReader.WebClient/Model/AuthenticityResult.cs index b010c2d..1cce87a 100644 --- a/src/Regula.DocumentReader.WebClient/Model/AuthenticityResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/AuthenticityResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/BarCodeModuleType.cs b/src/Regula.DocumentReader.WebClient/Model/BarCodeModuleType.cs new file mode 100644 index 0000000..1fe258f --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/BarCodeModuleType.cs @@ -0,0 +1,67 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Defines BarCodeModuleType + /// + + [JsonConverter(typeof(StringEnumConverter))] + + public enum BarCodeModuleType + { + /// + /// Enum TEXT for value: 0 + /// + [EnumMember(Value = "0")] + TEXT = 1, + + /// + /// Enum BYTE for value: 1 + /// + [EnumMember(Value = "1")] + BYTE = 2, + + /// + /// Enum NUM for value: 2 + /// + [EnumMember(Value = "2")] + NUM = 3, + + /// + /// Enum SHIFT for value: 3 + /// + [EnumMember(Value = "3")] + SHIFT = 4, + + /// + /// Enum ALL for value: 4 + /// + [EnumMember(Value = "4")] + ALL = 5 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/BarcodeType.cs b/src/Regula.DocumentReader.WebClient/Model/BarcodeType.cs new file mode 100644 index 0000000..7d05786 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/BarcodeType.cs @@ -0,0 +1,164 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration contains the types of barcodes that can be processed + /// + /// Enumeration contains the types of barcodes that can be processed + + [JsonConverter(typeof(StringEnumConverter))] + + public enum BarcodeType + { + /// + /// Enum UNKNOWN for value: 0 + /// + [EnumMember(Value = "0")] + UNKNOWN = 1, + + /// + /// Enum CODE128 for value: 1 + /// + [EnumMember(Value = "1")] + CODE128 = 2, + + /// + /// Enum CODE39 for value: 2 + /// + [EnumMember(Value = "2")] + CODE39 = 3, + + /// + /// Enum EAN8 for value: 3 + /// + [EnumMember(Value = "3")] + EAN8 = 4, + + /// + /// Enum ITF for value: 4 + /// + [EnumMember(Value = "4")] + ITF = 5, + + /// + /// Enum PDF417 for value: 5 + /// + [EnumMember(Value = "5")] + PDF417 = 6, + + /// + /// Enum STF for value: 6 + /// + [EnumMember(Value = "6")] + STF = 7, + + /// + /// Enum MTF for value: 7 + /// + [EnumMember(Value = "7")] + MTF = 8, + + /// + /// Enum IATA for value: 8 + /// + [EnumMember(Value = "8")] + IATA = 9, + + /// + /// Enum CODABAR for value: 9 + /// + [EnumMember(Value = "9")] + CODABAR = 10, + + /// + /// Enum UPCA for value: 10 + /// + [EnumMember(Value = "10")] + UPCA = 11, + + /// + /// Enum CODE93 for value: 11 + /// + [EnumMember(Value = "11")] + CODE93 = 12, + + /// + /// Enum UPCE for value: 12 + /// + [EnumMember(Value = "12")] + UPCE = 13, + + /// + /// Enum EAN13 for value: 13 + /// + [EnumMember(Value = "13")] + EAN13 = 14, + + /// + /// Enum QRCODE for value: 14 + /// + [EnumMember(Value = "14")] + QRCODE = 15, + + /// + /// Enum AZTEC for value: 15 + /// + [EnumMember(Value = "15")] + AZTEC = 16, + + /// + /// Enum DATAMATRIX for value: 16 + /// + [EnumMember(Value = "16")] + DATAMATRIX = 17, + + /// + /// Enum ALL_1D for value: 17 + /// + [EnumMember(Value = "17")] + ALL_1D = 18, + + /// + /// Enum CODE11 for value: 18 + /// + [EnumMember(Value = "18")] + CODE11 = 19, + + /// + /// Enum JABCODE for value: 19 + /// + [EnumMember(Value = "19")] + JABCODE = 20, + + /// + /// Enum END for value: 20 + /// + [EnumMember(Value = "20")] + END = 21 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/BcPDF417INFO.cs b/src/Regula.DocumentReader.WebClient/Model/BcPDF417INFO.cs index a1c7dff..3955c74 100644 --- a/src/Regula.DocumentReader.WebClient/Model/BcPDF417INFO.cs +++ b/src/Regula.DocumentReader.WebClient/Model/BcPDF417INFO.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,56 +33,115 @@ public partial class BcPDF417INFO : IEquatable, IValidatableObjec /// /// Initializes a new instance of the class. /// - /// angle. - /// bcColumn. - /// bcErrorLevel. - /// bcRow. - /// minX. - /// minY. + [JsonConstructorAttribute] + protected BcPDF417INFO() { } + /// + /// Initializes a new instance of the class. + /// + /// angle (required). + /// bcColumn (required). + /// bcErrorLevel (required). + /// bcRow (required). + /// minX (required). + /// minY (required). public BcPDF417INFO(float angle = default(float), int bcColumn = default(int), int bcErrorLevel = default(int), int bcRow = default(int), float minX = default(float), float minY = default(float)) { - this.Angle = angle; - this.BcColumn = bcColumn; - this.BcErrorLevel = bcErrorLevel; - this.BcRow = bcRow; - this.MinX = minX; - this.MinY = minY; + // to ensure "angle" is required (not null) + if (angle == null) + { + throw new InvalidDataException("angle is a required property for BcPDF417INFO and cannot be null"); + } + else + { + this.Angle = angle; + } + + // to ensure "bcColumn" is required (not null) + if (bcColumn == null) + { + throw new InvalidDataException("bcColumn is a required property for BcPDF417INFO and cannot be null"); + } + else + { + this.BcColumn = bcColumn; + } + + // to ensure "bcErrorLevel" is required (not null) + if (bcErrorLevel == null) + { + throw new InvalidDataException("bcErrorLevel is a required property for BcPDF417INFO and cannot be null"); + } + else + { + this.BcErrorLevel = bcErrorLevel; + } + + // to ensure "bcRow" is required (not null) + if (bcRow == null) + { + throw new InvalidDataException("bcRow is a required property for BcPDF417INFO and cannot be null"); + } + else + { + this.BcRow = bcRow; + } + + // to ensure "minX" is required (not null) + if (minX == null) + { + throw new InvalidDataException("minX is a required property for BcPDF417INFO and cannot be null"); + } + else + { + this.MinX = minX; + } + + // to ensure "minY" is required (not null) + if (minY == null) + { + throw new InvalidDataException("minY is a required property for BcPDF417INFO and cannot be null"); + } + else + { + this.MinY = minY; + } + } /// /// Gets or Sets Angle /// - [DataMember(Name="Angle", EmitDefaultValue=false)] + [DataMember(Name="Angle", EmitDefaultValue=true)] public float Angle { get; set; } /// /// Gets or Sets BcColumn /// - [DataMember(Name="bcColumn", EmitDefaultValue=false)] + [DataMember(Name="bcColumn", EmitDefaultValue=true)] public int BcColumn { get; set; } /// /// Gets or Sets BcErrorLevel /// - [DataMember(Name="bcErrorLevel", EmitDefaultValue=false)] + [DataMember(Name="bcErrorLevel", EmitDefaultValue=true)] public int BcErrorLevel { get; set; } /// /// Gets or Sets BcRow /// - [DataMember(Name="bcRow", EmitDefaultValue=false)] + [DataMember(Name="bcRow", EmitDefaultValue=true)] public int BcRow { get; set; } /// /// Gets or Sets MinX /// - [DataMember(Name="minX", EmitDefaultValue=false)] + [DataMember(Name="minX", EmitDefaultValue=true)] public float MinX { get; set; } /// /// Gets or Sets MinY /// - [DataMember(Name="minY", EmitDefaultValue=false)] + [DataMember(Name="minY", EmitDefaultValue=true)] public float MinY { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/BcROIDETECT.cs b/src/Regula.DocumentReader.WebClient/Model/BcROIDETECT.cs index 32eb628..ebaed83 100644 --- a/src/Regula.DocumentReader.WebClient/Model/BcROIDETECT.cs +++ b/src/Regula.DocumentReader.WebClient/Model/BcROIDETECT.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,40 +33,81 @@ public partial class BcROIDETECT : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// bottom. - /// left. - /// right. - /// top. + [JsonConstructorAttribute] + protected BcROIDETECT() { } + /// + /// Initializes a new instance of the class. + /// + /// bottom (required). + /// left (required). + /// right (required). + /// top (required). public BcROIDETECT(int bottom = default(int), int left = default(int), int right = default(int), int top = default(int)) { - this.Bottom = bottom; - this.Left = left; - this.Right = right; - this.Top = top; + // to ensure "bottom" is required (not null) + if (bottom == null) + { + throw new InvalidDataException("bottom is a required property for BcROIDETECT and cannot be null"); + } + else + { + this.Bottom = bottom; + } + + // to ensure "left" is required (not null) + if (left == null) + { + throw new InvalidDataException("left is a required property for BcROIDETECT and cannot be null"); + } + else + { + this.Left = left; + } + + // to ensure "right" is required (not null) + if (right == null) + { + throw new InvalidDataException("right is a required property for BcROIDETECT and cannot be null"); + } + else + { + this.Right = right; + } + + // to ensure "top" is required (not null) + if (top == null) + { + throw new InvalidDataException("top is a required property for BcROIDETECT and cannot be null"); + } + else + { + this.Top = top; + } + } /// /// Gets or Sets Bottom /// - [DataMember(Name="bottom", EmitDefaultValue=false)] + [DataMember(Name="bottom", EmitDefaultValue=true)] public int Bottom { get; set; } /// /// Gets or Sets Left /// - [DataMember(Name="left", EmitDefaultValue=false)] + [DataMember(Name="left", EmitDefaultValue=true)] public int Left { get; set; } /// /// Gets or Sets Right /// - [DataMember(Name="right", EmitDefaultValue=false)] + [DataMember(Name="right", EmitDefaultValue=true)] public int Right { get; set; } /// /// Gets or Sets Top /// - [DataMember(Name="top", EmitDefaultValue=false)] + [DataMember(Name="top", EmitDefaultValue=true)] public int Top { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/BinaryData.cs b/src/Regula.DocumentReader.WebClient/Model/BinaryData.cs new file mode 100644 index 0000000..79ff3f3 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/BinaryData.cs @@ -0,0 +1,1194 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure is used for storing the results of one bar-code module reading. + /// + [DataContract] + public partial class BinaryData : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// rFIDAuthenticationInfo. + /// rFIDMIFAREDataValidity. + /// rFIDMIFAREData. + /// rFIDEFCOM. + /// rFIDDG1. + /// rFIDDG2. + /// rFIDDG3. + /// rFIDDG4. + /// rFIDDG5. + /// rFIDDG6. + /// rFIDDG7. + /// rFIDDG8. + /// rFIDDG9. + /// rFIDDG10. + /// rFIDDG11. + /// rFIDDG12. + /// rFIDDG13. + /// rFIDDG14. + /// rFIDDG15. + /// rFIDDG16. + /// rFIDEFSOD. + /// eIDDG1. + /// eIDDG2. + /// eIDDG3. + /// eIDDG4. + /// eIDDG5. + /// eIDDG6. + /// eIDDG7. + /// eIDDG8. + /// eIDDG9. + /// eIDDG10. + /// eIDDG11. + /// eIDDG12. + /// eIDDG13. + /// eIDDG14. + /// eIDDG15. + /// eIDDG16. + /// eIDDG17. + /// eIDDG18. + /// eIDDG19. + /// eIDDG20. + /// eIDDG21. + /// eDLCOM. + /// eDLSOD. + /// eDLDG1. + /// eDLDG2. + /// eDLDG3. + /// eDLDG4. + /// eDLDG5. + /// eDLDG6. + /// eDLDG7. + /// eDLDG8. + /// eDLDG9. + /// eDLDG10. + /// eDLDG11. + /// eDLDG12. + /// eDLDG13. + /// eDLDG14. + /// visibleDigitalSeal. + /// visibleDigitalSealNC. + /// digitalSignature. + /// rFIDSessionData. + /// rFIDSessionDataStatus. + /// Indexes of groups that aren't read. + public BinaryData(Dictionary rFIDAuthenticationInfo = default(Dictionary), Dictionary rFIDMIFAREDataValidity = default(Dictionary), Dictionary rFIDMIFAREData = default(Dictionary), Dictionary rFIDEFCOM = default(Dictionary), RfidDG1 rFIDDG1 = default(RfidDG1), Dictionary rFIDDG2 = default(Dictionary), Dictionary rFIDDG3 = default(Dictionary), Dictionary rFIDDG4 = default(Dictionary), Dictionary rFIDDG5 = default(Dictionary), Dictionary rFIDDG6 = default(Dictionary), Dictionary rFIDDG7 = default(Dictionary), Dictionary rFIDDG8 = default(Dictionary), Dictionary rFIDDG9 = default(Dictionary), Dictionary rFIDDG10 = default(Dictionary), Dictionary rFIDDG11 = default(Dictionary), Dictionary rFIDDG12 = default(Dictionary), Dictionary rFIDDG13 = default(Dictionary), Dictionary rFIDDG14 = default(Dictionary), Dictionary rFIDDG15 = default(Dictionary), Dictionary rFIDDG16 = default(Dictionary), Dictionary rFIDEFSOD = default(Dictionary), Dictionary eIDDG1 = default(Dictionary), Dictionary eIDDG2 = default(Dictionary), Dictionary eIDDG3 = default(Dictionary), Dictionary eIDDG4 = default(Dictionary), Dictionary eIDDG5 = default(Dictionary), Dictionary eIDDG6 = default(Dictionary), Dictionary eIDDG7 = default(Dictionary), Dictionary eIDDG8 = default(Dictionary), Dictionary eIDDG9 = default(Dictionary), Dictionary eIDDG10 = default(Dictionary), Dictionary eIDDG11 = default(Dictionary), Dictionary eIDDG12 = default(Dictionary), Dictionary eIDDG13 = default(Dictionary), Dictionary eIDDG14 = default(Dictionary), Dictionary eIDDG15 = default(Dictionary), Dictionary eIDDG16 = default(Dictionary), Dictionary eIDDG17 = default(Dictionary), Dictionary eIDDG18 = default(Dictionary), Dictionary eIDDG19 = default(Dictionary), Dictionary eIDDG20 = default(Dictionary), Dictionary eIDDG21 = default(Dictionary), Dictionary eDLCOM = default(Dictionary), Dictionary eDLSOD = default(Dictionary), Dictionary eDLDG1 = default(Dictionary), Dictionary eDLDG2 = default(Dictionary), Dictionary eDLDG3 = default(Dictionary), Dictionary eDLDG4 = default(Dictionary), Dictionary eDLDG5 = default(Dictionary), Dictionary eDLDG6 = default(Dictionary), Dictionary eDLDG7 = default(Dictionary), Dictionary eDLDG8 = default(Dictionary), Dictionary eDLDG9 = default(Dictionary), Dictionary eDLDG10 = default(Dictionary), Dictionary eDLDG11 = default(Dictionary), Dictionary eDLDG12 = default(Dictionary), Dictionary eDLDG13 = default(Dictionary), Dictionary eDLDG14 = default(Dictionary), Dictionary visibleDigitalSeal = default(Dictionary), Dictionary visibleDigitalSealNC = default(Dictionary), Dictionary digitalSignature = default(Dictionary), RfidSessionData rFIDSessionData = default(RfidSessionData), DetailsRFID rFIDSessionDataStatus = default(DetailsRFID), List rFIDEPasspDirectory = default(List)) + { + this.RFIDAuthenticationInfo = rFIDAuthenticationInfo; + this.RFIDMIFAREDataValidity = rFIDMIFAREDataValidity; + this.RFIDMIFAREData = rFIDMIFAREData; + this.RFID_EF_COM = rFIDEFCOM; + this.RFIDDG1 = rFIDDG1; + this.RFIDDG2 = rFIDDG2; + this.RFIDDG3 = rFIDDG3; + this.RFIDDG4 = rFIDDG4; + this.RFIDDG5 = rFIDDG5; + this.RFIDDG6 = rFIDDG6; + this.RFIDDG7 = rFIDDG7; + this.RFIDDG8 = rFIDDG8; + this.RFIDDG9 = rFIDDG9; + this.RFIDDG10 = rFIDDG10; + this.RFIDDG11 = rFIDDG11; + this.RFIDDG12 = rFIDDG12; + this.RFIDDG13 = rFIDDG13; + this.RFIDDG14 = rFIDDG14; + this.RFIDDG15 = rFIDDG15; + this.RFIDDG16 = rFIDDG16; + this.RFID_EF_SOD = rFIDEFSOD; + this.EIDDG1 = eIDDG1; + this.EIDDG2 = eIDDG2; + this.EIDDG3 = eIDDG3; + this.EIDDG4 = eIDDG4; + this.EIDDG5 = eIDDG5; + this.EIDDG6 = eIDDG6; + this.EIDDG7 = eIDDG7; + this.EIDDG8 = eIDDG8; + this.EIDDG9 = eIDDG9; + this.EIDDG10 = eIDDG10; + this.EIDDG11 = eIDDG11; + this.EIDDG12 = eIDDG12; + this.EIDDG13 = eIDDG13; + this.EIDDG14 = eIDDG14; + this.EIDDG15 = eIDDG15; + this.EIDDG16 = eIDDG16; + this.EIDDG17 = eIDDG17; + this.EIDDG18 = eIDDG18; + this.EIDDG19 = eIDDG19; + this.EIDDG20 = eIDDG20; + this.EIDDG21 = eIDDG21; + this.EDLCOM = eDLCOM; + this.EDLSOD = eDLSOD; + this.EDLDG1 = eDLDG1; + this.EDLDG2 = eDLDG2; + this.EDLDG3 = eDLDG3; + this.EDLDG4 = eDLDG4; + this.EDLDG5 = eDLDG5; + this.EDLDG6 = eDLDG6; + this.EDLDG7 = eDLDG7; + this.EDLDG8 = eDLDG8; + this.EDLDG9 = eDLDG9; + this.EDLDG10 = eDLDG10; + this.EDLDG11 = eDLDG11; + this.EDLDG12 = eDLDG12; + this.EDLDG13 = eDLDG13; + this.EDLDG14 = eDLDG14; + this.VisibleDigitalSeal = visibleDigitalSeal; + this.VisibleDigitalSealNC = visibleDigitalSealNC; + this.DigitalSignature = digitalSignature; + this.RFIDSessionData = rFIDSessionData; + this.RFIDSessionDataStatus = rFIDSessionDataStatus; + this.RFIDEPasspDirectory = rFIDEPasspDirectory; + } + + /// + /// Gets or Sets RFIDAuthenticationInfo + /// + [DataMember(Name="RFID_Authentication_Info", EmitDefaultValue=false)] + public Dictionary RFIDAuthenticationInfo { get; set; } + + /// + /// Gets or Sets RFIDMIFAREDataValidity + /// + [DataMember(Name="RFID_MIFARE_Data_Validity", EmitDefaultValue=false)] + public Dictionary RFIDMIFAREDataValidity { get; set; } + + /// + /// Gets or Sets RFIDMIFAREData + /// + [DataMember(Name="RFID_MIFARE_Data", EmitDefaultValue=false)] + public Dictionary RFIDMIFAREData { get; set; } + + /// + /// Gets or Sets RFID_EF_COM + /// + [DataMember(Name="RFID_EF_COM", EmitDefaultValue=false)] + public Dictionary RFID_EF_COM { get; set; } + + /// + /// Gets or Sets RFIDDG1 + /// + [DataMember(Name="RFID_DG1", EmitDefaultValue=false)] + public RfidDG1 RFIDDG1 { get; set; } + + /// + /// Gets or Sets RFIDDG2 + /// + [DataMember(Name="RFID_DG2", EmitDefaultValue=false)] + public Dictionary RFIDDG2 { get; set; } + + /// + /// Gets or Sets RFIDDG3 + /// + [DataMember(Name="RFID_DG3", EmitDefaultValue=false)] + public Dictionary RFIDDG3 { get; set; } + + /// + /// Gets or Sets RFIDDG4 + /// + [DataMember(Name="RFID_DG4", EmitDefaultValue=false)] + public Dictionary RFIDDG4 { get; set; } + + /// + /// Gets or Sets RFIDDG5 + /// + [DataMember(Name="RFID_DG5", EmitDefaultValue=false)] + public Dictionary RFIDDG5 { get; set; } + + /// + /// Gets or Sets RFIDDG6 + /// + [DataMember(Name="RFID_DG6", EmitDefaultValue=false)] + public Dictionary RFIDDG6 { get; set; } + + /// + /// Gets or Sets RFIDDG7 + /// + [DataMember(Name="RFID_DG7", EmitDefaultValue=false)] + public Dictionary RFIDDG7 { get; set; } + + /// + /// Gets or Sets RFIDDG8 + /// + [DataMember(Name="RFID_DG8", EmitDefaultValue=false)] + public Dictionary RFIDDG8 { get; set; } + + /// + /// Gets or Sets RFIDDG9 + /// + [DataMember(Name="RFID_DG9", EmitDefaultValue=false)] + public Dictionary RFIDDG9 { get; set; } + + /// + /// Gets or Sets RFIDDG10 + /// + [DataMember(Name="RFID_DG10", EmitDefaultValue=false)] + public Dictionary RFIDDG10 { get; set; } + + /// + /// Gets or Sets RFIDDG11 + /// + [DataMember(Name="RFID_DG11", EmitDefaultValue=false)] + public Dictionary RFIDDG11 { get; set; } + + /// + /// Gets or Sets RFIDDG12 + /// + [DataMember(Name="RFID_DG12", EmitDefaultValue=false)] + public Dictionary RFIDDG12 { get; set; } + + /// + /// Gets or Sets RFIDDG13 + /// + [DataMember(Name="RFID_DG13", EmitDefaultValue=false)] + public Dictionary RFIDDG13 { get; set; } + + /// + /// Gets or Sets RFIDDG14 + /// + [DataMember(Name="RFID_DG14", EmitDefaultValue=false)] + public Dictionary RFIDDG14 { get; set; } + + /// + /// Gets or Sets RFIDDG15 + /// + [DataMember(Name="RFID_DG15", EmitDefaultValue=false)] + public Dictionary RFIDDG15 { get; set; } + + /// + /// Gets or Sets RFIDDG16 + /// + [DataMember(Name="RFID_DG16", EmitDefaultValue=false)] + public Dictionary RFIDDG16 { get; set; } + + /// + /// Gets or Sets RFID_EF_SOD + /// + [DataMember(Name="RFID_EF_SOD", EmitDefaultValue=false)] + public Dictionary RFID_EF_SOD { get; set; } + + /// + /// Gets or Sets EIDDG1 + /// + [DataMember(Name="eID_DG1", EmitDefaultValue=false)] + public Dictionary EIDDG1 { get; set; } + + /// + /// Gets or Sets EIDDG2 + /// + [DataMember(Name="eID_DG2", EmitDefaultValue=false)] + public Dictionary EIDDG2 { get; set; } + + /// + /// Gets or Sets EIDDG3 + /// + [DataMember(Name="eID_DG3", EmitDefaultValue=false)] + public Dictionary EIDDG3 { get; set; } + + /// + /// Gets or Sets EIDDG4 + /// + [DataMember(Name="eID_DG4", EmitDefaultValue=false)] + public Dictionary EIDDG4 { get; set; } + + /// + /// Gets or Sets EIDDG5 + /// + [DataMember(Name="eID_DG5", EmitDefaultValue=false)] + public Dictionary EIDDG5 { get; set; } + + /// + /// Gets or Sets EIDDG6 + /// + [DataMember(Name="eID_DG6", EmitDefaultValue=false)] + public Dictionary EIDDG6 { get; set; } + + /// + /// Gets or Sets EIDDG7 + /// + [DataMember(Name="eID_DG7", EmitDefaultValue=false)] + public Dictionary EIDDG7 { get; set; } + + /// + /// Gets or Sets EIDDG8 + /// + [DataMember(Name="eID_DG8", EmitDefaultValue=false)] + public Dictionary EIDDG8 { get; set; } + + /// + /// Gets or Sets EIDDG9 + /// + [DataMember(Name="eID_DG9", EmitDefaultValue=false)] + public Dictionary EIDDG9 { get; set; } + + /// + /// Gets or Sets EIDDG10 + /// + [DataMember(Name="eID_DG10", EmitDefaultValue=false)] + public Dictionary EIDDG10 { get; set; } + + /// + /// Gets or Sets EIDDG11 + /// + [DataMember(Name="eID_DG11", EmitDefaultValue=false)] + public Dictionary EIDDG11 { get; set; } + + /// + /// Gets or Sets EIDDG12 + /// + [DataMember(Name="eID_DG12", EmitDefaultValue=false)] + public Dictionary EIDDG12 { get; set; } + + /// + /// Gets or Sets EIDDG13 + /// + [DataMember(Name="eID_DG13", EmitDefaultValue=false)] + public Dictionary EIDDG13 { get; set; } + + /// + /// Gets or Sets EIDDG14 + /// + [DataMember(Name="eID_DG14", EmitDefaultValue=false)] + public Dictionary EIDDG14 { get; set; } + + /// + /// Gets or Sets EIDDG15 + /// + [DataMember(Name="eID_DG15", EmitDefaultValue=false)] + public Dictionary EIDDG15 { get; set; } + + /// + /// Gets or Sets EIDDG16 + /// + [DataMember(Name="eID_DG16", EmitDefaultValue=false)] + public Dictionary EIDDG16 { get; set; } + + /// + /// Gets or Sets EIDDG17 + /// + [DataMember(Name="eID_DG17", EmitDefaultValue=false)] + public Dictionary EIDDG17 { get; set; } + + /// + /// Gets or Sets EIDDG18 + /// + [DataMember(Name="eID_DG18", EmitDefaultValue=false)] + public Dictionary EIDDG18 { get; set; } + + /// + /// Gets or Sets EIDDG19 + /// + [DataMember(Name="eID_DG19", EmitDefaultValue=false)] + public Dictionary EIDDG19 { get; set; } + + /// + /// Gets or Sets EIDDG20 + /// + [DataMember(Name="eID_DG20", EmitDefaultValue=false)] + public Dictionary EIDDG20 { get; set; } + + /// + /// Gets or Sets EIDDG21 + /// + [DataMember(Name="eID_DG21", EmitDefaultValue=false)] + public Dictionary EIDDG21 { get; set; } + + /// + /// Gets or Sets EDLCOM + /// + [DataMember(Name="eDL_COM", EmitDefaultValue=false)] + public Dictionary EDLCOM { get; set; } + + /// + /// Gets or Sets EDLSOD + /// + [DataMember(Name="eDL_SOD", EmitDefaultValue=false)] + public Dictionary EDLSOD { get; set; } + + /// + /// Gets or Sets EDLDG1 + /// + [DataMember(Name="eDL_DG1", EmitDefaultValue=false)] + public Dictionary EDLDG1 { get; set; } + + /// + /// Gets or Sets EDLDG2 + /// + [DataMember(Name="eDL_DG2", EmitDefaultValue=false)] + public Dictionary EDLDG2 { get; set; } + + /// + /// Gets or Sets EDLDG3 + /// + [DataMember(Name="eDL_DG3", EmitDefaultValue=false)] + public Dictionary EDLDG3 { get; set; } + + /// + /// Gets or Sets EDLDG4 + /// + [DataMember(Name="eDL_DG4", EmitDefaultValue=false)] + public Dictionary EDLDG4 { get; set; } + + /// + /// Gets or Sets EDLDG5 + /// + [DataMember(Name="eDL_DG5", EmitDefaultValue=false)] + public Dictionary EDLDG5 { get; set; } + + /// + /// Gets or Sets EDLDG6 + /// + [DataMember(Name="eDL_DG6", EmitDefaultValue=false)] + public Dictionary EDLDG6 { get; set; } + + /// + /// Gets or Sets EDLDG7 + /// + [DataMember(Name="eDL_DG7", EmitDefaultValue=false)] + public Dictionary EDLDG7 { get; set; } + + /// + /// Gets or Sets EDLDG8 + /// + [DataMember(Name="eDL_DG8", EmitDefaultValue=false)] + public Dictionary EDLDG8 { get; set; } + + /// + /// Gets or Sets EDLDG9 + /// + [DataMember(Name="eDL_DG9", EmitDefaultValue=false)] + public Dictionary EDLDG9 { get; set; } + + /// + /// Gets or Sets EDLDG10 + /// + [DataMember(Name="eDL_DG10", EmitDefaultValue=false)] + public Dictionary EDLDG10 { get; set; } + + /// + /// Gets or Sets EDLDG11 + /// + [DataMember(Name="eDL_DG11", EmitDefaultValue=false)] + public Dictionary EDLDG11 { get; set; } + + /// + /// Gets or Sets EDLDG12 + /// + [DataMember(Name="eDL_DG12", EmitDefaultValue=false)] + public Dictionary EDLDG12 { get; set; } + + /// + /// Gets or Sets EDLDG13 + /// + [DataMember(Name="eDL_DG13", EmitDefaultValue=false)] + public Dictionary EDLDG13 { get; set; } + + /// + /// Gets or Sets EDLDG14 + /// + [DataMember(Name="eDL_DG14", EmitDefaultValue=false)] + public Dictionary EDLDG14 { get; set; } + + /// + /// Gets or Sets VisibleDigitalSeal + /// + [DataMember(Name="Visible_Digital_Seal", EmitDefaultValue=false)] + public Dictionary VisibleDigitalSeal { get; set; } + + /// + /// Gets or Sets VisibleDigitalSealNC + /// + [DataMember(Name="Visible_Digital_Seal_NC", EmitDefaultValue=false)] + public Dictionary VisibleDigitalSealNC { get; set; } + + /// + /// Gets or Sets DigitalSignature + /// + [DataMember(Name="Digital_Signature", EmitDefaultValue=false)] + public Dictionary DigitalSignature { get; set; } + + /// + /// Gets or Sets RFIDSessionData + /// + [DataMember(Name="RFID_Session_Data", EmitDefaultValue=false)] + public RfidSessionData RFIDSessionData { get; set; } + + /// + /// Gets or Sets RFIDSessionDataStatus + /// + [DataMember(Name="RFID_Session_Data_Status", EmitDefaultValue=false)] + public DetailsRFID RFIDSessionDataStatus { get; set; } + + /// + /// Indexes of groups that aren't read + /// + /// Indexes of groups that aren't read + [DataMember(Name="RFID_ePassp_Directory", EmitDefaultValue=false)] + public List RFIDEPasspDirectory { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class BinaryData {\n"); + sb.Append(" RFIDAuthenticationInfo: ").Append(RFIDAuthenticationInfo).Append("\n"); + sb.Append(" RFIDMIFAREDataValidity: ").Append(RFIDMIFAREDataValidity).Append("\n"); + sb.Append(" RFIDMIFAREData: ").Append(RFIDMIFAREData).Append("\n"); + sb.Append(" RFID_EF_COM: ").Append(RFID_EF_COM).Append("\n"); + sb.Append(" RFIDDG1: ").Append(RFIDDG1).Append("\n"); + sb.Append(" RFIDDG2: ").Append(RFIDDG2).Append("\n"); + sb.Append(" RFIDDG3: ").Append(RFIDDG3).Append("\n"); + sb.Append(" RFIDDG4: ").Append(RFIDDG4).Append("\n"); + sb.Append(" RFIDDG5: ").Append(RFIDDG5).Append("\n"); + sb.Append(" RFIDDG6: ").Append(RFIDDG6).Append("\n"); + sb.Append(" RFIDDG7: ").Append(RFIDDG7).Append("\n"); + sb.Append(" RFIDDG8: ").Append(RFIDDG8).Append("\n"); + sb.Append(" RFIDDG9: ").Append(RFIDDG9).Append("\n"); + sb.Append(" RFIDDG10: ").Append(RFIDDG10).Append("\n"); + sb.Append(" RFIDDG11: ").Append(RFIDDG11).Append("\n"); + sb.Append(" RFIDDG12: ").Append(RFIDDG12).Append("\n"); + sb.Append(" RFIDDG13: ").Append(RFIDDG13).Append("\n"); + sb.Append(" RFIDDG14: ").Append(RFIDDG14).Append("\n"); + sb.Append(" RFIDDG15: ").Append(RFIDDG15).Append("\n"); + sb.Append(" RFIDDG16: ").Append(RFIDDG16).Append("\n"); + sb.Append(" RFID_EF_SOD: ").Append(RFID_EF_SOD).Append("\n"); + sb.Append(" EIDDG1: ").Append(EIDDG1).Append("\n"); + sb.Append(" EIDDG2: ").Append(EIDDG2).Append("\n"); + sb.Append(" EIDDG3: ").Append(EIDDG3).Append("\n"); + sb.Append(" EIDDG4: ").Append(EIDDG4).Append("\n"); + sb.Append(" EIDDG5: ").Append(EIDDG5).Append("\n"); + sb.Append(" EIDDG6: ").Append(EIDDG6).Append("\n"); + sb.Append(" EIDDG7: ").Append(EIDDG7).Append("\n"); + sb.Append(" EIDDG8: ").Append(EIDDG8).Append("\n"); + sb.Append(" EIDDG9: ").Append(EIDDG9).Append("\n"); + sb.Append(" EIDDG10: ").Append(EIDDG10).Append("\n"); + sb.Append(" EIDDG11: ").Append(EIDDG11).Append("\n"); + sb.Append(" EIDDG12: ").Append(EIDDG12).Append("\n"); + sb.Append(" EIDDG13: ").Append(EIDDG13).Append("\n"); + sb.Append(" EIDDG14: ").Append(EIDDG14).Append("\n"); + sb.Append(" EIDDG15: ").Append(EIDDG15).Append("\n"); + sb.Append(" EIDDG16: ").Append(EIDDG16).Append("\n"); + sb.Append(" EIDDG17: ").Append(EIDDG17).Append("\n"); + sb.Append(" EIDDG18: ").Append(EIDDG18).Append("\n"); + sb.Append(" EIDDG19: ").Append(EIDDG19).Append("\n"); + sb.Append(" EIDDG20: ").Append(EIDDG20).Append("\n"); + sb.Append(" EIDDG21: ").Append(EIDDG21).Append("\n"); + sb.Append(" EDLCOM: ").Append(EDLCOM).Append("\n"); + sb.Append(" EDLSOD: ").Append(EDLSOD).Append("\n"); + sb.Append(" EDLDG1: ").Append(EDLDG1).Append("\n"); + sb.Append(" EDLDG2: ").Append(EDLDG2).Append("\n"); + sb.Append(" EDLDG3: ").Append(EDLDG3).Append("\n"); + sb.Append(" EDLDG4: ").Append(EDLDG4).Append("\n"); + sb.Append(" EDLDG5: ").Append(EDLDG5).Append("\n"); + sb.Append(" EDLDG6: ").Append(EDLDG6).Append("\n"); + sb.Append(" EDLDG7: ").Append(EDLDG7).Append("\n"); + sb.Append(" EDLDG8: ").Append(EDLDG8).Append("\n"); + sb.Append(" EDLDG9: ").Append(EDLDG9).Append("\n"); + sb.Append(" EDLDG10: ").Append(EDLDG10).Append("\n"); + sb.Append(" EDLDG11: ").Append(EDLDG11).Append("\n"); + sb.Append(" EDLDG12: ").Append(EDLDG12).Append("\n"); + sb.Append(" EDLDG13: ").Append(EDLDG13).Append("\n"); + sb.Append(" EDLDG14: ").Append(EDLDG14).Append("\n"); + sb.Append(" VisibleDigitalSeal: ").Append(VisibleDigitalSeal).Append("\n"); + sb.Append(" VisibleDigitalSealNC: ").Append(VisibleDigitalSealNC).Append("\n"); + sb.Append(" DigitalSignature: ").Append(DigitalSignature).Append("\n"); + sb.Append(" RFIDSessionData: ").Append(RFIDSessionData).Append("\n"); + sb.Append(" RFIDSessionDataStatus: ").Append(RFIDSessionDataStatus).Append("\n"); + sb.Append(" RFIDEPasspDirectory: ").Append(RFIDEPasspDirectory).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BinaryData); + } + + /// + /// Returns true if BinaryData instances are equal + /// + /// Instance of BinaryData to be compared + /// Boolean + public bool Equals(BinaryData input) + { + if (input == null) + return false; + + return + ( + this.RFIDAuthenticationInfo == input.RFIDAuthenticationInfo || + this.RFIDAuthenticationInfo != null && + input.RFIDAuthenticationInfo != null && + this.RFIDAuthenticationInfo.SequenceEqual(input.RFIDAuthenticationInfo) + ) && + ( + this.RFIDMIFAREDataValidity == input.RFIDMIFAREDataValidity || + this.RFIDMIFAREDataValidity != null && + input.RFIDMIFAREDataValidity != null && + this.RFIDMIFAREDataValidity.SequenceEqual(input.RFIDMIFAREDataValidity) + ) && + ( + this.RFIDMIFAREData == input.RFIDMIFAREData || + this.RFIDMIFAREData != null && + input.RFIDMIFAREData != null && + this.RFIDMIFAREData.SequenceEqual(input.RFIDMIFAREData) + ) && + ( + this.RFID_EF_COM == input.RFID_EF_COM || + this.RFID_EF_COM != null && + input.RFID_EF_COM != null && + this.RFID_EF_COM.SequenceEqual(input.RFID_EF_COM) + ) && + ( + this.RFIDDG1 == input.RFIDDG1 || + (this.RFIDDG1 != null && + this.RFIDDG1.Equals(input.RFIDDG1)) + ) && + ( + this.RFIDDG2 == input.RFIDDG2 || + this.RFIDDG2 != null && + input.RFIDDG2 != null && + this.RFIDDG2.SequenceEqual(input.RFIDDG2) + ) && + ( + this.RFIDDG3 == input.RFIDDG3 || + this.RFIDDG3 != null && + input.RFIDDG3 != null && + this.RFIDDG3.SequenceEqual(input.RFIDDG3) + ) && + ( + this.RFIDDG4 == input.RFIDDG4 || + this.RFIDDG4 != null && + input.RFIDDG4 != null && + this.RFIDDG4.SequenceEqual(input.RFIDDG4) + ) && + ( + this.RFIDDG5 == input.RFIDDG5 || + this.RFIDDG5 != null && + input.RFIDDG5 != null && + this.RFIDDG5.SequenceEqual(input.RFIDDG5) + ) && + ( + this.RFIDDG6 == input.RFIDDG6 || + this.RFIDDG6 != null && + input.RFIDDG6 != null && + this.RFIDDG6.SequenceEqual(input.RFIDDG6) + ) && + ( + this.RFIDDG7 == input.RFIDDG7 || + this.RFIDDG7 != null && + input.RFIDDG7 != null && + this.RFIDDG7.SequenceEqual(input.RFIDDG7) + ) && + ( + this.RFIDDG8 == input.RFIDDG8 || + this.RFIDDG8 != null && + input.RFIDDG8 != null && + this.RFIDDG8.SequenceEqual(input.RFIDDG8) + ) && + ( + this.RFIDDG9 == input.RFIDDG9 || + this.RFIDDG9 != null && + input.RFIDDG9 != null && + this.RFIDDG9.SequenceEqual(input.RFIDDG9) + ) && + ( + this.RFIDDG10 == input.RFIDDG10 || + this.RFIDDG10 != null && + input.RFIDDG10 != null && + this.RFIDDG10.SequenceEqual(input.RFIDDG10) + ) && + ( + this.RFIDDG11 == input.RFIDDG11 || + this.RFIDDG11 != null && + input.RFIDDG11 != null && + this.RFIDDG11.SequenceEqual(input.RFIDDG11) + ) && + ( + this.RFIDDG12 == input.RFIDDG12 || + this.RFIDDG12 != null && + input.RFIDDG12 != null && + this.RFIDDG12.SequenceEqual(input.RFIDDG12) + ) && + ( + this.RFIDDG13 == input.RFIDDG13 || + this.RFIDDG13 != null && + input.RFIDDG13 != null && + this.RFIDDG13.SequenceEqual(input.RFIDDG13) + ) && + ( + this.RFIDDG14 == input.RFIDDG14 || + this.RFIDDG14 != null && + input.RFIDDG14 != null && + this.RFIDDG14.SequenceEqual(input.RFIDDG14) + ) && + ( + this.RFIDDG15 == input.RFIDDG15 || + this.RFIDDG15 != null && + input.RFIDDG15 != null && + this.RFIDDG15.SequenceEqual(input.RFIDDG15) + ) && + ( + this.RFIDDG16 == input.RFIDDG16 || + this.RFIDDG16 != null && + input.RFIDDG16 != null && + this.RFIDDG16.SequenceEqual(input.RFIDDG16) + ) && + ( + this.RFID_EF_SOD == input.RFID_EF_SOD || + this.RFID_EF_SOD != null && + input.RFID_EF_SOD != null && + this.RFID_EF_SOD.SequenceEqual(input.RFID_EF_SOD) + ) && + ( + this.EIDDG1 == input.EIDDG1 || + this.EIDDG1 != null && + input.EIDDG1 != null && + this.EIDDG1.SequenceEqual(input.EIDDG1) + ) && + ( + this.EIDDG2 == input.EIDDG2 || + this.EIDDG2 != null && + input.EIDDG2 != null && + this.EIDDG2.SequenceEqual(input.EIDDG2) + ) && + ( + this.EIDDG3 == input.EIDDG3 || + this.EIDDG3 != null && + input.EIDDG3 != null && + this.EIDDG3.SequenceEqual(input.EIDDG3) + ) && + ( + this.EIDDG4 == input.EIDDG4 || + this.EIDDG4 != null && + input.EIDDG4 != null && + this.EIDDG4.SequenceEqual(input.EIDDG4) + ) && + ( + this.EIDDG5 == input.EIDDG5 || + this.EIDDG5 != null && + input.EIDDG5 != null && + this.EIDDG5.SequenceEqual(input.EIDDG5) + ) && + ( + this.EIDDG6 == input.EIDDG6 || + this.EIDDG6 != null && + input.EIDDG6 != null && + this.EIDDG6.SequenceEqual(input.EIDDG6) + ) && + ( + this.EIDDG7 == input.EIDDG7 || + this.EIDDG7 != null && + input.EIDDG7 != null && + this.EIDDG7.SequenceEqual(input.EIDDG7) + ) && + ( + this.EIDDG8 == input.EIDDG8 || + this.EIDDG8 != null && + input.EIDDG8 != null && + this.EIDDG8.SequenceEqual(input.EIDDG8) + ) && + ( + this.EIDDG9 == input.EIDDG9 || + this.EIDDG9 != null && + input.EIDDG9 != null && + this.EIDDG9.SequenceEqual(input.EIDDG9) + ) && + ( + this.EIDDG10 == input.EIDDG10 || + this.EIDDG10 != null && + input.EIDDG10 != null && + this.EIDDG10.SequenceEqual(input.EIDDG10) + ) && + ( + this.EIDDG11 == input.EIDDG11 || + this.EIDDG11 != null && + input.EIDDG11 != null && + this.EIDDG11.SequenceEqual(input.EIDDG11) + ) && + ( + this.EIDDG12 == input.EIDDG12 || + this.EIDDG12 != null && + input.EIDDG12 != null && + this.EIDDG12.SequenceEqual(input.EIDDG12) + ) && + ( + this.EIDDG13 == input.EIDDG13 || + this.EIDDG13 != null && + input.EIDDG13 != null && + this.EIDDG13.SequenceEqual(input.EIDDG13) + ) && + ( + this.EIDDG14 == input.EIDDG14 || + this.EIDDG14 != null && + input.EIDDG14 != null && + this.EIDDG14.SequenceEqual(input.EIDDG14) + ) && + ( + this.EIDDG15 == input.EIDDG15 || + this.EIDDG15 != null && + input.EIDDG15 != null && + this.EIDDG15.SequenceEqual(input.EIDDG15) + ) && + ( + this.EIDDG16 == input.EIDDG16 || + this.EIDDG16 != null && + input.EIDDG16 != null && + this.EIDDG16.SequenceEqual(input.EIDDG16) + ) && + ( + this.EIDDG17 == input.EIDDG17 || + this.EIDDG17 != null && + input.EIDDG17 != null && + this.EIDDG17.SequenceEqual(input.EIDDG17) + ) && + ( + this.EIDDG18 == input.EIDDG18 || + this.EIDDG18 != null && + input.EIDDG18 != null && + this.EIDDG18.SequenceEqual(input.EIDDG18) + ) && + ( + this.EIDDG19 == input.EIDDG19 || + this.EIDDG19 != null && + input.EIDDG19 != null && + this.EIDDG19.SequenceEqual(input.EIDDG19) + ) && + ( + this.EIDDG20 == input.EIDDG20 || + this.EIDDG20 != null && + input.EIDDG20 != null && + this.EIDDG20.SequenceEqual(input.EIDDG20) + ) && + ( + this.EIDDG21 == input.EIDDG21 || + this.EIDDG21 != null && + input.EIDDG21 != null && + this.EIDDG21.SequenceEqual(input.EIDDG21) + ) && + ( + this.EDLCOM == input.EDLCOM || + this.EDLCOM != null && + input.EDLCOM != null && + this.EDLCOM.SequenceEqual(input.EDLCOM) + ) && + ( + this.EDLSOD == input.EDLSOD || + this.EDLSOD != null && + input.EDLSOD != null && + this.EDLSOD.SequenceEqual(input.EDLSOD) + ) && + ( + this.EDLDG1 == input.EDLDG1 || + this.EDLDG1 != null && + input.EDLDG1 != null && + this.EDLDG1.SequenceEqual(input.EDLDG1) + ) && + ( + this.EDLDG2 == input.EDLDG2 || + this.EDLDG2 != null && + input.EDLDG2 != null && + this.EDLDG2.SequenceEqual(input.EDLDG2) + ) && + ( + this.EDLDG3 == input.EDLDG3 || + this.EDLDG3 != null && + input.EDLDG3 != null && + this.EDLDG3.SequenceEqual(input.EDLDG3) + ) && + ( + this.EDLDG4 == input.EDLDG4 || + this.EDLDG4 != null && + input.EDLDG4 != null && + this.EDLDG4.SequenceEqual(input.EDLDG4) + ) && + ( + this.EDLDG5 == input.EDLDG5 || + this.EDLDG5 != null && + input.EDLDG5 != null && + this.EDLDG5.SequenceEqual(input.EDLDG5) + ) && + ( + this.EDLDG6 == input.EDLDG6 || + this.EDLDG6 != null && + input.EDLDG6 != null && + this.EDLDG6.SequenceEqual(input.EDLDG6) + ) && + ( + this.EDLDG7 == input.EDLDG7 || + this.EDLDG7 != null && + input.EDLDG7 != null && + this.EDLDG7.SequenceEqual(input.EDLDG7) + ) && + ( + this.EDLDG8 == input.EDLDG8 || + this.EDLDG8 != null && + input.EDLDG8 != null && + this.EDLDG8.SequenceEqual(input.EDLDG8) + ) && + ( + this.EDLDG9 == input.EDLDG9 || + this.EDLDG9 != null && + input.EDLDG9 != null && + this.EDLDG9.SequenceEqual(input.EDLDG9) + ) && + ( + this.EDLDG10 == input.EDLDG10 || + this.EDLDG10 != null && + input.EDLDG10 != null && + this.EDLDG10.SequenceEqual(input.EDLDG10) + ) && + ( + this.EDLDG11 == input.EDLDG11 || + this.EDLDG11 != null && + input.EDLDG11 != null && + this.EDLDG11.SequenceEqual(input.EDLDG11) + ) && + ( + this.EDLDG12 == input.EDLDG12 || + this.EDLDG12 != null && + input.EDLDG12 != null && + this.EDLDG12.SequenceEqual(input.EDLDG12) + ) && + ( + this.EDLDG13 == input.EDLDG13 || + this.EDLDG13 != null && + input.EDLDG13 != null && + this.EDLDG13.SequenceEqual(input.EDLDG13) + ) && + ( + this.EDLDG14 == input.EDLDG14 || + this.EDLDG14 != null && + input.EDLDG14 != null && + this.EDLDG14.SequenceEqual(input.EDLDG14) + ) && + ( + this.VisibleDigitalSeal == input.VisibleDigitalSeal || + this.VisibleDigitalSeal != null && + input.VisibleDigitalSeal != null && + this.VisibleDigitalSeal.SequenceEqual(input.VisibleDigitalSeal) + ) && + ( + this.VisibleDigitalSealNC == input.VisibleDigitalSealNC || + this.VisibleDigitalSealNC != null && + input.VisibleDigitalSealNC != null && + this.VisibleDigitalSealNC.SequenceEqual(input.VisibleDigitalSealNC) + ) && + ( + this.DigitalSignature == input.DigitalSignature || + this.DigitalSignature != null && + input.DigitalSignature != null && + this.DigitalSignature.SequenceEqual(input.DigitalSignature) + ) && + ( + this.RFIDSessionData == input.RFIDSessionData || + (this.RFIDSessionData != null && + this.RFIDSessionData.Equals(input.RFIDSessionData)) + ) && + ( + this.RFIDSessionDataStatus == input.RFIDSessionDataStatus || + (this.RFIDSessionDataStatus != null && + this.RFIDSessionDataStatus.Equals(input.RFIDSessionDataStatus)) + ) && + ( + this.RFIDEPasspDirectory == input.RFIDEPasspDirectory || + this.RFIDEPasspDirectory != null && + input.RFIDEPasspDirectory != null && + this.RFIDEPasspDirectory.SequenceEqual(input.RFIDEPasspDirectory) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RFIDAuthenticationInfo != null) + hashCode = hashCode * 59 + this.RFIDAuthenticationInfo.GetHashCode(); + if (this.RFIDMIFAREDataValidity != null) + hashCode = hashCode * 59 + this.RFIDMIFAREDataValidity.GetHashCode(); + if (this.RFIDMIFAREData != null) + hashCode = hashCode * 59 + this.RFIDMIFAREData.GetHashCode(); + if (this.RFID_EF_COM != null) + hashCode = hashCode * 59 + this.RFID_EF_COM.GetHashCode(); + if (this.RFIDDG1 != null) + hashCode = hashCode * 59 + this.RFIDDG1.GetHashCode(); + if (this.RFIDDG2 != null) + hashCode = hashCode * 59 + this.RFIDDG2.GetHashCode(); + if (this.RFIDDG3 != null) + hashCode = hashCode * 59 + this.RFIDDG3.GetHashCode(); + if (this.RFIDDG4 != null) + hashCode = hashCode * 59 + this.RFIDDG4.GetHashCode(); + if (this.RFIDDG5 != null) + hashCode = hashCode * 59 + this.RFIDDG5.GetHashCode(); + if (this.RFIDDG6 != null) + hashCode = hashCode * 59 + this.RFIDDG6.GetHashCode(); + if (this.RFIDDG7 != null) + hashCode = hashCode * 59 + this.RFIDDG7.GetHashCode(); + if (this.RFIDDG8 != null) + hashCode = hashCode * 59 + this.RFIDDG8.GetHashCode(); + if (this.RFIDDG9 != null) + hashCode = hashCode * 59 + this.RFIDDG9.GetHashCode(); + if (this.RFIDDG10 != null) + hashCode = hashCode * 59 + this.RFIDDG10.GetHashCode(); + if (this.RFIDDG11 != null) + hashCode = hashCode * 59 + this.RFIDDG11.GetHashCode(); + if (this.RFIDDG12 != null) + hashCode = hashCode * 59 + this.RFIDDG12.GetHashCode(); + if (this.RFIDDG13 != null) + hashCode = hashCode * 59 + this.RFIDDG13.GetHashCode(); + if (this.RFIDDG14 != null) + hashCode = hashCode * 59 + this.RFIDDG14.GetHashCode(); + if (this.RFIDDG15 != null) + hashCode = hashCode * 59 + this.RFIDDG15.GetHashCode(); + if (this.RFIDDG16 != null) + hashCode = hashCode * 59 + this.RFIDDG16.GetHashCode(); + if (this.RFID_EF_SOD != null) + hashCode = hashCode * 59 + this.RFID_EF_SOD.GetHashCode(); + if (this.EIDDG1 != null) + hashCode = hashCode * 59 + this.EIDDG1.GetHashCode(); + if (this.EIDDG2 != null) + hashCode = hashCode * 59 + this.EIDDG2.GetHashCode(); + if (this.EIDDG3 != null) + hashCode = hashCode * 59 + this.EIDDG3.GetHashCode(); + if (this.EIDDG4 != null) + hashCode = hashCode * 59 + this.EIDDG4.GetHashCode(); + if (this.EIDDG5 != null) + hashCode = hashCode * 59 + this.EIDDG5.GetHashCode(); + if (this.EIDDG6 != null) + hashCode = hashCode * 59 + this.EIDDG6.GetHashCode(); + if (this.EIDDG7 != null) + hashCode = hashCode * 59 + this.EIDDG7.GetHashCode(); + if (this.EIDDG8 != null) + hashCode = hashCode * 59 + this.EIDDG8.GetHashCode(); + if (this.EIDDG9 != null) + hashCode = hashCode * 59 + this.EIDDG9.GetHashCode(); + if (this.EIDDG10 != null) + hashCode = hashCode * 59 + this.EIDDG10.GetHashCode(); + if (this.EIDDG11 != null) + hashCode = hashCode * 59 + this.EIDDG11.GetHashCode(); + if (this.EIDDG12 != null) + hashCode = hashCode * 59 + this.EIDDG12.GetHashCode(); + if (this.EIDDG13 != null) + hashCode = hashCode * 59 + this.EIDDG13.GetHashCode(); + if (this.EIDDG14 != null) + hashCode = hashCode * 59 + this.EIDDG14.GetHashCode(); + if (this.EIDDG15 != null) + hashCode = hashCode * 59 + this.EIDDG15.GetHashCode(); + if (this.EIDDG16 != null) + hashCode = hashCode * 59 + this.EIDDG16.GetHashCode(); + if (this.EIDDG17 != null) + hashCode = hashCode * 59 + this.EIDDG17.GetHashCode(); + if (this.EIDDG18 != null) + hashCode = hashCode * 59 + this.EIDDG18.GetHashCode(); + if (this.EIDDG19 != null) + hashCode = hashCode * 59 + this.EIDDG19.GetHashCode(); + if (this.EIDDG20 != null) + hashCode = hashCode * 59 + this.EIDDG20.GetHashCode(); + if (this.EIDDG21 != null) + hashCode = hashCode * 59 + this.EIDDG21.GetHashCode(); + if (this.EDLCOM != null) + hashCode = hashCode * 59 + this.EDLCOM.GetHashCode(); + if (this.EDLSOD != null) + hashCode = hashCode * 59 + this.EDLSOD.GetHashCode(); + if (this.EDLDG1 != null) + hashCode = hashCode * 59 + this.EDLDG1.GetHashCode(); + if (this.EDLDG2 != null) + hashCode = hashCode * 59 + this.EDLDG2.GetHashCode(); + if (this.EDLDG3 != null) + hashCode = hashCode * 59 + this.EDLDG3.GetHashCode(); + if (this.EDLDG4 != null) + hashCode = hashCode * 59 + this.EDLDG4.GetHashCode(); + if (this.EDLDG5 != null) + hashCode = hashCode * 59 + this.EDLDG5.GetHashCode(); + if (this.EDLDG6 != null) + hashCode = hashCode * 59 + this.EDLDG6.GetHashCode(); + if (this.EDLDG7 != null) + hashCode = hashCode * 59 + this.EDLDG7.GetHashCode(); + if (this.EDLDG8 != null) + hashCode = hashCode * 59 + this.EDLDG8.GetHashCode(); + if (this.EDLDG9 != null) + hashCode = hashCode * 59 + this.EDLDG9.GetHashCode(); + if (this.EDLDG10 != null) + hashCode = hashCode * 59 + this.EDLDG10.GetHashCode(); + if (this.EDLDG11 != null) + hashCode = hashCode * 59 + this.EDLDG11.GetHashCode(); + if (this.EDLDG12 != null) + hashCode = hashCode * 59 + this.EDLDG12.GetHashCode(); + if (this.EDLDG13 != null) + hashCode = hashCode * 59 + this.EDLDG13.GetHashCode(); + if (this.EDLDG14 != null) + hashCode = hashCode * 59 + this.EDLDG14.GetHashCode(); + if (this.VisibleDigitalSeal != null) + hashCode = hashCode * 59 + this.VisibleDigitalSeal.GetHashCode(); + if (this.VisibleDigitalSealNC != null) + hashCode = hashCode * 59 + this.VisibleDigitalSealNC.GetHashCode(); + if (this.DigitalSignature != null) + hashCode = hashCode * 59 + this.DigitalSignature.GetHashCode(); + if (this.RFIDSessionData != null) + hashCode = hashCode * 59 + this.RFIDSessionData.GetHashCode(); + if (this.RFIDSessionDataStatus != null) + hashCode = hashCode * 59 + this.RFIDSessionDataStatus.GetHashCode(); + if (this.RFIDEPasspDirectory != null) + hashCode = hashCode * 59 + this.RFIDEPasspDirectory.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/ByteArrayResult.cs b/src/Regula.DocumentReader.WebClient/Model/ByteArrayResult.cs index e1d68d1..684feb0 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ByteArrayResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ByteArrayResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/ChosenDocumentType.cs b/src/Regula.DocumentReader.WebClient/Model/ChosenDocumentType.cs index a748d3a..2fddea0 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ChosenDocumentType.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ChosenDocumentType.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,89 +33,211 @@ public partial class ChosenDocumentType : IEquatable, IVali /// /// Initializes a new instance of the class. /// - /// Document name. - /// Unique document type template identifier (Regula's internal numeric code). - /// A measure of the likelihood of correct recognition in the analysis of this type of document. - /// rFIDPresence. - /// fDSIDList. - /// Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document. - /// Set of authentication options provided for this type of document (combination of Authenticity enum). - /// The required exposure value of the camera when receiving images of a document of this type for a UV lighting scheme. - /// Combination of lighting scheme identifiers (combination of Light enum) needed to perform all authenticity checks specified in CheckAuthenticity. - public ChosenDocumentType(string documentName = default(string), int iD = default(int), decimal p = default(decimal), int rFIDPresence = default(int), FDSIDList fDSIDList = default(FDSIDList), int necessaryLights = default(int), int checkAuthenticity = default(int), int uVExp = default(int), int authenticityNecessaryLights = default(int)) + [JsonConstructorAttribute] + protected ChosenDocumentType() { } + /// + /// Initializes a new instance of the class. + /// + /// Document name (required). + /// Unique document type template identifier (Regula's internal numeric code) (required). + /// A measure of the likelihood of correct recognition in the analysis of this type of document (required). + /// true if the document of the given type is rotated by 180 degrees (required). + /// rFIDPresence (required). + /// fDSIDList (required). + /// Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document (required). + /// Set of authentication options provided for this type of document (combination of Authenticity enum) (required). + /// The required exposure value of the camera when receiving images of a document of this type for a UV lighting scheme (required). + /// Combination of lighting scheme identifiers (combination of Light enum) needed to perform all authenticity checks specified in CheckAuthenticity (required). + /// Camera exposure value necessary when obtaining document images of the given type for AXIAL lighting scheme (required). + public ChosenDocumentType(string documentName = default(string), int iD = default(int), decimal p = default(decimal), bool? rotated180 = default(bool?), int rFIDPresence = default(int), FDSIDList fDSIDList = default(FDSIDList), int necessaryLights = default(int), int checkAuthenticity = default(int), int uVExp = default(int), int authenticityNecessaryLights = default(int), decimal oVIExp = default(decimal)) { - this.DocumentName = documentName; - this.ID = iD; - this.P = p; - this.RFIDPresence = rFIDPresence; - this.FDSIDList = fDSIDList; - this.NecessaryLights = necessaryLights; - this.CheckAuthenticity = checkAuthenticity; - this.UVExp = uVExp; - this.AuthenticityNecessaryLights = authenticityNecessaryLights; + // to ensure "documentName" is required (not null) + if (documentName == null) + { + throw new InvalidDataException("documentName is a required property for ChosenDocumentType and cannot be null"); + } + else + { + this.DocumentName = documentName; + } + + // to ensure "iD" is required (not null) + if (iD == null) + { + throw new InvalidDataException("iD is a required property for ChosenDocumentType and cannot be null"); + } + else + { + this.ID = iD; + } + + // to ensure "p" is required (not null) + if (p == null) + { + throw new InvalidDataException("p is a required property for ChosenDocumentType and cannot be null"); + } + else + { + this.P = p; + } + + // to ensure "rotated180" is required (not null) + if (rotated180 == null) + { + throw new InvalidDataException("rotated180 is a required property for ChosenDocumentType and cannot be null"); + } + else + { + this.Rotated180 = rotated180; + } + + // to ensure "rFIDPresence" is required (not null) + if (rFIDPresence == null) + { + throw new InvalidDataException("rFIDPresence is a required property for ChosenDocumentType and cannot be null"); + } + else + { + this.RFIDPresence = rFIDPresence; + } + + // to ensure "fDSIDList" is required (not null) + if (fDSIDList == null) + { + throw new InvalidDataException("fDSIDList is a required property for ChosenDocumentType and cannot be null"); + } + else + { + this.FDSIDList = fDSIDList; + } + + // to ensure "necessaryLights" is required (not null) + if (necessaryLights == null) + { + throw new InvalidDataException("necessaryLights is a required property for ChosenDocumentType and cannot be null"); + } + else + { + this.NecessaryLights = necessaryLights; + } + + // to ensure "checkAuthenticity" is required (not null) + if (checkAuthenticity == null) + { + throw new InvalidDataException("checkAuthenticity is a required property for ChosenDocumentType and cannot be null"); + } + else + { + this.CheckAuthenticity = checkAuthenticity; + } + + // to ensure "uVExp" is required (not null) + if (uVExp == null) + { + throw new InvalidDataException("uVExp is a required property for ChosenDocumentType and cannot be null"); + } + else + { + this.UVExp = uVExp; + } + + // to ensure "authenticityNecessaryLights" is required (not null) + if (authenticityNecessaryLights == null) + { + throw new InvalidDataException("authenticityNecessaryLights is a required property for ChosenDocumentType and cannot be null"); + } + else + { + this.AuthenticityNecessaryLights = authenticityNecessaryLights; + } + + // to ensure "oVIExp" is required (not null) + if (oVIExp == null) + { + throw new InvalidDataException("oVIExp is a required property for ChosenDocumentType and cannot be null"); + } + else + { + this.OVIExp = oVIExp; + } + } /// /// Document name /// /// Document name - [DataMember(Name="DocumentName", EmitDefaultValue=false)] + [DataMember(Name="DocumentName", EmitDefaultValue=true)] public string DocumentName { get; set; } /// /// Unique document type template identifier (Regula's internal numeric code) /// /// Unique document type template identifier (Regula's internal numeric code) - [DataMember(Name="ID", EmitDefaultValue=false)] + [DataMember(Name="ID", EmitDefaultValue=true)] public int ID { get; set; } /// /// A measure of the likelihood of correct recognition in the analysis of this type of document /// /// A measure of the likelihood of correct recognition in the analysis of this type of document - [DataMember(Name="P", EmitDefaultValue=false)] + [DataMember(Name="P", EmitDefaultValue=true)] public decimal P { get; set; } + /// + /// true if the document of the given type is rotated by 180 degrees + /// + /// true if the document of the given type is rotated by 180 degrees + [DataMember(Name="Rotated180", EmitDefaultValue=true)] + public bool? Rotated180 { get; set; } + /// /// Gets or Sets RFIDPresence /// - [DataMember(Name="RFID_Presence", EmitDefaultValue=false)] + [DataMember(Name="RFID_Presence", EmitDefaultValue=true)] public int RFIDPresence { get; set; } /// /// Gets or Sets FDSIDList /// - [DataMember(Name="FDSIDList", EmitDefaultValue=false)] + [DataMember(Name="FDSIDList", EmitDefaultValue=true)] public FDSIDList FDSIDList { get; set; } /// /// Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document /// /// Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document - [DataMember(Name="NecessaryLights", EmitDefaultValue=false)] + [DataMember(Name="NecessaryLights", EmitDefaultValue=true)] public int NecessaryLights { get; set; } /// /// Set of authentication options provided for this type of document (combination of Authenticity enum) /// /// Set of authentication options provided for this type of document (combination of Authenticity enum) - [DataMember(Name="CheckAuthenticity", EmitDefaultValue=false)] + [DataMember(Name="CheckAuthenticity", EmitDefaultValue=true)] public int CheckAuthenticity { get; set; } /// /// The required exposure value of the camera when receiving images of a document of this type for a UV lighting scheme /// /// The required exposure value of the camera when receiving images of a document of this type for a UV lighting scheme - [DataMember(Name="UVExp", EmitDefaultValue=false)] + [DataMember(Name="UVExp", EmitDefaultValue=true)] public int UVExp { get; set; } /// /// Combination of lighting scheme identifiers (combination of Light enum) needed to perform all authenticity checks specified in CheckAuthenticity /// /// Combination of lighting scheme identifiers (combination of Light enum) needed to perform all authenticity checks specified in CheckAuthenticity - [DataMember(Name="AuthenticityNecessaryLights", EmitDefaultValue=false)] + [DataMember(Name="AuthenticityNecessaryLights", EmitDefaultValue=true)] public int AuthenticityNecessaryLights { get; set; } + /// + /// Camera exposure value necessary when obtaining document images of the given type for AXIAL lighting scheme + /// + /// Camera exposure value necessary when obtaining document images of the given type for AXIAL lighting scheme + [DataMember(Name="OVIExp", EmitDefaultValue=true)] + public decimal OVIExp { get; set; } + /// /// Returns the string presentation of the object /// @@ -127,12 +249,14 @@ public override string ToString() sb.Append(" DocumentName: ").Append(DocumentName).Append("\n"); sb.Append(" ID: ").Append(ID).Append("\n"); sb.Append(" P: ").Append(P).Append("\n"); + sb.Append(" Rotated180: ").Append(Rotated180).Append("\n"); sb.Append(" RFIDPresence: ").Append(RFIDPresence).Append("\n"); sb.Append(" FDSIDList: ").Append(FDSIDList).Append("\n"); sb.Append(" NecessaryLights: ").Append(NecessaryLights).Append("\n"); sb.Append(" CheckAuthenticity: ").Append(CheckAuthenticity).Append("\n"); sb.Append(" UVExp: ").Append(UVExp).Append("\n"); sb.Append(" AuthenticityNecessaryLights: ").Append(AuthenticityNecessaryLights).Append("\n"); + sb.Append(" OVIExp: ").Append(OVIExp).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -182,6 +306,11 @@ public bool Equals(ChosenDocumentType input) (this.P != null && this.P.Equals(input.P)) ) && + ( + this.Rotated180 == input.Rotated180 || + (this.Rotated180 != null && + this.Rotated180.Equals(input.Rotated180)) + ) && ( this.RFIDPresence == input.RFIDPresence || (this.RFIDPresence != null && @@ -211,6 +340,11 @@ public bool Equals(ChosenDocumentType input) this.AuthenticityNecessaryLights == input.AuthenticityNecessaryLights || (this.AuthenticityNecessaryLights != null && this.AuthenticityNecessaryLights.Equals(input.AuthenticityNecessaryLights)) + ) && + ( + this.OVIExp == input.OVIExp || + (this.OVIExp != null && + this.OVIExp.Equals(input.OVIExp)) ); } @@ -229,6 +363,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.ID.GetHashCode(); if (this.P != null) hashCode = hashCode * 59 + this.P.GetHashCode(); + if (this.Rotated180 != null) + hashCode = hashCode * 59 + this.Rotated180.GetHashCode(); if (this.RFIDPresence != null) hashCode = hashCode * 59 + this.RFIDPresence.GetHashCode(); if (this.FDSIDList != null) @@ -241,6 +377,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.UVExp.GetHashCode(); if (this.AuthenticityNecessaryLights != null) hashCode = hashCode * 59 + this.AuthenticityNecessaryLights.GetHashCode(); + if (this.OVIExp != null) + hashCode = hashCode * 59 + this.OVIExp.GetHashCode(); return hashCode; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/ChosenDocumentTypeResult.cs b/src/Regula.DocumentReader.WebClient/Model/ChosenDocumentTypeResult.cs index 5d5ce4f..765af9f 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ChosenDocumentTypeResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ChosenDocumentTypeResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,16 +38,25 @@ protected ChosenDocumentTypeResult() { } /// /// Initializes a new instance of the class. /// - /// oneCandidate. + /// oneCandidate (required). public ChosenDocumentTypeResult(OneCandidate oneCandidate = default(OneCandidate), int bufLength = default(int), int light = default(int), int listIdx = default(int), int pageIdx = default(int), int resultType = 0) : base(bufLength, light, listIdx, pageIdx, resultType) { - this.OneCandidate = oneCandidate; + // to ensure "oneCandidate" is required (not null) + if (oneCandidate == null) + { + throw new InvalidDataException("oneCandidate is a required property for ChosenDocumentTypeResult and cannot be null"); + } + else + { + this.OneCandidate = oneCandidate; + } + } /// /// Gets or Sets OneCandidate /// - [DataMember(Name="OneCandidate", EmitDefaultValue=false)] + [DataMember(Name="OneCandidate", EmitDefaultValue=true)] public OneCandidate OneCandidate { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/CrossSourceValueComparison.cs b/src/Regula.DocumentReader.WebClient/Model/CrossSourceValueComparison.cs index 882791c..5f5dc6c 100644 --- a/src/Regula.DocumentReader.WebClient/Model/CrossSourceValueComparison.cs +++ b/src/Regula.DocumentReader.WebClient/Model/CrossSourceValueComparison.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/DataModule.cs b/src/Regula.DocumentReader.WebClient/Model/DataModule.cs index 2096925..19ff43c 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DataModule.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DataModule.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -30,33 +30,70 @@ namespace Regula.DocumentReader.WebClient.Model [DataContract] public partial class DataModule : IEquatable, IValidatableObject { + /// + /// Gets or Sets MType + /// + [DataMember(Name="mType", EmitDefaultValue=true)] + public BarCodeModuleType MType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DataModule() { } /// /// Initializes a new instance of the class. /// - /// mData. - /// mLength. + /// mData (required). + /// mLength (required). /// mReserved1. /// mReserver2. - /// mType. - public DataModule(string mData = default(string), int mLength = default(int), int mReserved1 = default(int), int mReserver2 = default(int), int mType = default(int)) + /// mType (required). + public DataModule(string mData = default(string), int mLength = default(int), int mReserved1 = default(int), int mReserver2 = default(int), BarCodeModuleType mType = default(BarCodeModuleType)) { - this.MData = mData; - this.MLength = mLength; + // to ensure "mData" is required (not null) + if (mData == null) + { + throw new InvalidDataException("mData is a required property for DataModule and cannot be null"); + } + else + { + this.MData = mData; + } + + // to ensure "mLength" is required (not null) + if (mLength == null) + { + throw new InvalidDataException("mLength is a required property for DataModule and cannot be null"); + } + else + { + this.MLength = mLength; + } + + // to ensure "mType" is required (not null) + if (mType == null) + { + throw new InvalidDataException("mType is a required property for DataModule and cannot be null"); + } + else + { + this.MType = mType; + } + this.MReserved1 = mReserved1; this.MReserver2 = mReserver2; - this.MType = mType; } /// /// Gets or Sets MData /// - [DataMember(Name="mData", EmitDefaultValue=false)] + [DataMember(Name="mData", EmitDefaultValue=true)] public string MData { get; set; } /// /// Gets or Sets MLength /// - [DataMember(Name="mLength", EmitDefaultValue=false)] + [DataMember(Name="mLength", EmitDefaultValue=true)] public int MLength { get; set; } /// @@ -71,11 +108,6 @@ public partial class DataModule : IEquatable, IValidatableObject [DataMember(Name="mReserver2", EmitDefaultValue=false)] public int MReserver2 { get; set; } - /// - /// Gets or Sets MType - /// - [DataMember(Name="mType", EmitDefaultValue=false)] - public int MType { get; set; } /// /// Returns the string presentation of the object diff --git a/src/Regula.DocumentReader.WebClient/Model/DetailsOptical.cs b/src/Regula.DocumentReader.WebClient/Model/DetailsOptical.cs index 13f077d..37a403a 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DetailsOptical.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DetailsOptical.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/DetailsRFID.cs b/src/Regula.DocumentReader.WebClient/Model/DetailsRFID.cs index fc6077f..4e198ad 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DetailsRFID.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DetailsRFID.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/DeviceInfo.cs b/src/Regula.DocumentReader.WebClient/Model/DeviceInfo.cs index ef377c0..a44d630 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DeviceInfo.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DeviceInfo.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/DocBarCodeInfo.cs b/src/Regula.DocumentReader.WebClient/Model/DocBarCodeInfo.cs index 5873cd6..5158a5c 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DocBarCodeInfo.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DocBarCodeInfo.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,16 +38,25 @@ protected DocBarCodeInfo() { } /// /// Initializes a new instance of the class. /// - /// docBarCodeInfo. + /// docBarCodeInfo (required). public DocBarCodeInfo(DocBarCodeInfoFieldsList docBarCodeInfo = default(DocBarCodeInfoFieldsList), int bufLength = default(int), int light = default(int), int listIdx = default(int), int pageIdx = default(int), int resultType = 0) : base(bufLength, light, listIdx, pageIdx, resultType) { - this._DocBarCodeInfo = docBarCodeInfo; + // to ensure "docBarCodeInfo" is required (not null) + if (docBarCodeInfo == null) + { + throw new InvalidDataException("docBarCodeInfo is a required property for DocBarCodeInfo and cannot be null"); + } + else + { + this._DocBarCodeInfo = docBarCodeInfo; + } + } /// /// Gets or Sets _DocBarCodeInfo /// - [DataMember(Name="DocBarCodeInfo", EmitDefaultValue=false)] + [DataMember(Name="DocBarCodeInfo", EmitDefaultValue=true)] public DocBarCodeInfoFieldsList _DocBarCodeInfo { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/DocBarCodeInfoFieldsList.cs b/src/Regula.DocumentReader.WebClient/Model/DocBarCodeInfoFieldsList.cs index dd67d51..6b47c3f 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DocBarCodeInfoFieldsList.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DocBarCodeInfoFieldsList.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,26 +33,49 @@ public partial class DocBarCodeInfoFieldsList : IEquatable /// Initializes a new instance of the class. /// - /// Count of array fields. - /// Data from barcode. + [JsonConstructorAttribute] + protected DocBarCodeInfoFieldsList() { } + /// + /// Initializes a new instance of the class. + /// + /// Count of array fields (required). + /// Data from barcode (required). public DocBarCodeInfoFieldsList(int nFields = default(int), List pArrayFields = default(List)) { - this.NFields = nFields; - this.PArrayFields = pArrayFields; + // to ensure "nFields" is required (not null) + if (nFields == null) + { + throw new InvalidDataException("nFields is a required property for DocBarCodeInfoFieldsList and cannot be null"); + } + else + { + this.NFields = nFields; + } + + // to ensure "pArrayFields" is required (not null) + if (pArrayFields == null) + { + throw new InvalidDataException("pArrayFields is a required property for DocBarCodeInfoFieldsList and cannot be null"); + } + else + { + this.PArrayFields = pArrayFields; + } + } /// /// Count of array fields /// /// Count of array fields - [DataMember(Name="nFields", EmitDefaultValue=false)] + [DataMember(Name="nFields", EmitDefaultValue=true)] public int NFields { get; set; } /// /// Data from barcode /// /// Data from barcode - [DataMember(Name="pArrayFields", EmitDefaultValue=false)] + [DataMember(Name="pArrayFields", EmitDefaultValue=true)] public List PArrayFields { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/DocVisualExtendedField.cs b/src/Regula.DocumentReader.WebClient/Model/DocVisualExtendedField.cs index 64c291b..2cba5e1 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DocVisualExtendedField.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DocVisualExtendedField.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,16 +38,31 @@ protected DocVisualExtendedField() { } /// /// Initializes a new instance of the class. /// + /// fieldType (required). /// wFieldType (required). - /// Field name. Only use to search values for fields with fieldType=50(other). In general, use wFieldType for lookup. (required). - /// wLCID (required). - /// Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results.. - /// Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^'. - /// fieldRect. - /// Origin data group information. Only for Result.RFID_TEXT results.. - /// Index of the text field record in origin data group. Only for Result.RFID_TEXT results.. - public DocVisualExtendedField(int wFieldType = default(int), string fieldName = default(string), int wLCID = default(int), List stringsResult = default(List), string bufText = default(string), RectangleCoordinates fieldRect = default(RectangleCoordinates), int rFIDOriginDG = default(int), int rFIDOriginTagEntry = default(int)) + /// Field symbolic name (null-terminated string) (required). + /// Number of StringsResult array elements (required). + /// Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. (required). + /// Buf_Text text string length (required). + /// Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' (required). + /// fieldMask. + /// validity. + /// inComparison. + /// reserved2. + /// reserved3. + public DocVisualExtendedField(Object fieldType = default(Object), int wFieldType = default(int), string fieldName = default(string), decimal stringsCount = default(decimal), List stringsResult = default(List), decimal bufLength = default(decimal), string bufText = default(string), Object fieldMask = default(Object), Object validity = default(Object), Object inComparison = default(Object), Object reserved2 = default(Object), Object reserved3 = default(Object)) { + // to ensure "fieldType" is required (not null) + if (fieldType == null) + { + throw new InvalidDataException("fieldType is a required property for DocVisualExtendedField and cannot be null"); + } + else + { + this.FieldType = fieldType; + } + + this.FieldType = fieldType; // to ensure "wFieldType" is required (not null) if (wFieldType == null) { @@ -68,23 +83,64 @@ protected DocVisualExtendedField() { } this.FieldName = fieldName; } - // to ensure "wLCID" is required (not null) - if (wLCID == null) + // to ensure "stringsCount" is required (not null) + if (stringsCount == null) + { + throw new InvalidDataException("stringsCount is a required property for DocVisualExtendedField and cannot be null"); + } + else + { + this.StringsCount = stringsCount; + } + + // to ensure "stringsResult" is required (not null) + if (stringsResult == null) + { + throw new InvalidDataException("stringsResult is a required property for DocVisualExtendedField and cannot be null"); + } + else + { + this.StringsResult = stringsResult; + } + + // to ensure "bufLength" is required (not null) + if (bufLength == null) + { + throw new InvalidDataException("bufLength is a required property for DocVisualExtendedField and cannot be null"); + } + else + { + this.BufLength = bufLength; + } + + // to ensure "bufText" is required (not null) + if (bufText == null) { - throw new InvalidDataException("wLCID is a required property for DocVisualExtendedField and cannot be null"); + throw new InvalidDataException("bufText is a required property for DocVisualExtendedField and cannot be null"); } else { - this.WLCID = wLCID; + this.BufText = bufText; } - this.StringsResult = stringsResult; - this.BufText = bufText; - this.FieldRect = fieldRect; - this.RFIDOriginDG = rFIDOriginDG; - this.RFIDOriginTagEntry = rFIDOriginTagEntry; + this.FieldMask = fieldMask; + this.Validity = validity; + this.InComparison = inComparison; + this.Reserved2 = reserved2; + this.Reserved3 = reserved3; + this.FieldMask = fieldMask; + this.Validity = validity; + this.InComparison = inComparison; + this.Reserved2 = reserved2; + this.Reserved3 = reserved3; } + /// + /// Gets or Sets FieldType + /// + [DataMember(Name="FieldType", EmitDefaultValue=true)] + public Object FieldType { get; set; } + /// /// Gets or Sets WFieldType /// @@ -92,51 +148,69 @@ protected DocVisualExtendedField() { } public int WFieldType { get; set; } /// - /// Field name. Only use to search values for fields with fieldType=50(other). In general, use wFieldType for lookup. + /// Field symbolic name (null-terminated string) /// - /// Field name. Only use to search values for fields with fieldType=50(other). In general, use wFieldType for lookup. + /// Field symbolic name (null-terminated string) [DataMember(Name="FieldName", EmitDefaultValue=true)] public string FieldName { get; set; } /// - /// Gets or Sets WLCID + /// Number of StringsResult array elements /// - [DataMember(Name="wLCID", EmitDefaultValue=true)] - public int WLCID { get; set; } + /// Number of StringsResult array elements + [DataMember(Name="StringsCount", EmitDefaultValue=true)] + public decimal StringsCount { get; set; } /// /// Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. /// /// Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. - [DataMember(Name="StringsResult", EmitDefaultValue=false)] + [DataMember(Name="StringsResult", EmitDefaultValue=true)] public List StringsResult { get; set; } + /// + /// Buf_Text text string length + /// + /// Buf_Text text string length + [DataMember(Name="Buf_Length", EmitDefaultValue=true)] + public decimal BufLength { get; set; } + /// /// Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' /// /// Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' - [DataMember(Name="Buf_Text", EmitDefaultValue=false)] + [DataMember(Name="Buf_Text", EmitDefaultValue=true)] public string BufText { get; set; } /// - /// Gets or Sets FieldRect + /// Gets or Sets FieldMask + /// + [DataMember(Name="FieldMask", EmitDefaultValue=true)] + public Object FieldMask { get; set; } + + /// + /// Gets or Sets Validity /// - [DataMember(Name="FieldRect", EmitDefaultValue=false)] - public RectangleCoordinates FieldRect { get; set; } + [DataMember(Name="Validity", EmitDefaultValue=true)] + public Object Validity { get; set; } /// - /// Origin data group information. Only for Result.RFID_TEXT results. + /// Gets or Sets InComparison /// - /// Origin data group information. Only for Result.RFID_TEXT results. - [DataMember(Name="RFID_OriginDG", EmitDefaultValue=false)] - public int RFIDOriginDG { get; set; } + [DataMember(Name="InComparison", EmitDefaultValue=true)] + public Object InComparison { get; set; } /// - /// Index of the text field record in origin data group. Only for Result.RFID_TEXT results. + /// Gets or Sets Reserved2 /// - /// Index of the text field record in origin data group. Only for Result.RFID_TEXT results. - [DataMember(Name="RFID_OriginTagEntry", EmitDefaultValue=false)] - public int RFIDOriginTagEntry { get; set; } + [DataMember(Name="Reserved2", EmitDefaultValue=true)] + public Object Reserved2 { get; set; } + + /// + /// Gets or Sets Reserved3 + /// + [DataMember(Name="Reserved3", EmitDefaultValue=true)] + public Object Reserved3 { get; set; } /// /// Returns the string presentation of the object @@ -146,14 +220,18 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class DocVisualExtendedField {\n"); + sb.Append(" FieldType: ").Append(FieldType).Append("\n"); sb.Append(" WFieldType: ").Append(WFieldType).Append("\n"); sb.Append(" FieldName: ").Append(FieldName).Append("\n"); - sb.Append(" WLCID: ").Append(WLCID).Append("\n"); + sb.Append(" StringsCount: ").Append(StringsCount).Append("\n"); sb.Append(" StringsResult: ").Append(StringsResult).Append("\n"); + sb.Append(" BufLength: ").Append(BufLength).Append("\n"); sb.Append(" BufText: ").Append(BufText).Append("\n"); - sb.Append(" FieldRect: ").Append(FieldRect).Append("\n"); - sb.Append(" RFIDOriginDG: ").Append(RFIDOriginDG).Append("\n"); - sb.Append(" RFIDOriginTagEntry: ").Append(RFIDOriginTagEntry).Append("\n"); + sb.Append(" FieldMask: ").Append(FieldMask).Append("\n"); + sb.Append(" Validity: ").Append(Validity).Append("\n"); + sb.Append(" InComparison: ").Append(InComparison).Append("\n"); + sb.Append(" Reserved2: ").Append(Reserved2).Append("\n"); + sb.Append(" Reserved3: ").Append(Reserved3).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -188,6 +266,11 @@ public bool Equals(DocVisualExtendedField input) return false; return + ( + this.FieldType == input.FieldType || + (this.FieldType != null && + this.FieldType.Equals(input.FieldType)) + ) && ( this.WFieldType == input.WFieldType || (this.WFieldType != null && @@ -199,9 +282,9 @@ public bool Equals(DocVisualExtendedField input) this.FieldName.Equals(input.FieldName)) ) && ( - this.WLCID == input.WLCID || - (this.WLCID != null && - this.WLCID.Equals(input.WLCID)) + this.StringsCount == input.StringsCount || + (this.StringsCount != null && + this.StringsCount.Equals(input.StringsCount)) ) && ( this.StringsResult == input.StringsResult || @@ -209,25 +292,40 @@ public bool Equals(DocVisualExtendedField input) input.StringsResult != null && this.StringsResult.SequenceEqual(input.StringsResult) ) && + ( + this.BufLength == input.BufLength || + (this.BufLength != null && + this.BufLength.Equals(input.BufLength)) + ) && ( this.BufText == input.BufText || (this.BufText != null && this.BufText.Equals(input.BufText)) ) && ( - this.FieldRect == input.FieldRect || - (this.FieldRect != null && - this.FieldRect.Equals(input.FieldRect)) + this.FieldMask == input.FieldMask || + (this.FieldMask != null && + this.FieldMask.Equals(input.FieldMask)) + ) && + ( + this.Validity == input.Validity || + (this.Validity != null && + this.Validity.Equals(input.Validity)) + ) && + ( + this.InComparison == input.InComparison || + (this.InComparison != null && + this.InComparison.Equals(input.InComparison)) ) && ( - this.RFIDOriginDG == input.RFIDOriginDG || - (this.RFIDOriginDG != null && - this.RFIDOriginDG.Equals(input.RFIDOriginDG)) + this.Reserved2 == input.Reserved2 || + (this.Reserved2 != null && + this.Reserved2.Equals(input.Reserved2)) ) && ( - this.RFIDOriginTagEntry == input.RFIDOriginTagEntry || - (this.RFIDOriginTagEntry != null && - this.RFIDOriginTagEntry.Equals(input.RFIDOriginTagEntry)) + this.Reserved3 == input.Reserved3 || + (this.Reserved3 != null && + this.Reserved3.Equals(input.Reserved3)) ); } @@ -240,22 +338,30 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.FieldType != null) + hashCode = hashCode * 59 + this.FieldType.GetHashCode(); if (this.WFieldType != null) hashCode = hashCode * 59 + this.WFieldType.GetHashCode(); if (this.FieldName != null) hashCode = hashCode * 59 + this.FieldName.GetHashCode(); - if (this.WLCID != null) - hashCode = hashCode * 59 + this.WLCID.GetHashCode(); + if (this.StringsCount != null) + hashCode = hashCode * 59 + this.StringsCount.GetHashCode(); if (this.StringsResult != null) hashCode = hashCode * 59 + this.StringsResult.GetHashCode(); + if (this.BufLength != null) + hashCode = hashCode * 59 + this.BufLength.GetHashCode(); if (this.BufText != null) hashCode = hashCode * 59 + this.BufText.GetHashCode(); - if (this.FieldRect != null) - hashCode = hashCode * 59 + this.FieldRect.GetHashCode(); - if (this.RFIDOriginDG != null) - hashCode = hashCode * 59 + this.RFIDOriginDG.GetHashCode(); - if (this.RFIDOriginTagEntry != null) - hashCode = hashCode * 59 + this.RFIDOriginTagEntry.GetHashCode(); + if (this.FieldMask != null) + hashCode = hashCode * 59 + this.FieldMask.GetHashCode(); + if (this.Validity != null) + hashCode = hashCode * 59 + this.Validity.GetHashCode(); + if (this.InComparison != null) + hashCode = hashCode * 59 + this.InComparison.GetHashCode(); + if (this.Reserved2 != null) + hashCode = hashCode * 59 + this.Reserved2.GetHashCode(); + if (this.Reserved3 != null) + hashCode = hashCode * 59 + this.Reserved3.GetHashCode(); return hashCode; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/DocVisualExtendedFieldRect.cs b/src/Regula.DocumentReader.WebClient/Model/DocVisualExtendedFieldRect.cs new file mode 100644 index 0000000..d47c032 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/DocVisualExtendedFieldRect.cs @@ -0,0 +1,396 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure and serves for storing information from one text data field. Variant with field logical type and field rectangular area coordinates on the image. + /// + [DataContract] + public partial class DocVisualExtendedFieldRect : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DocVisualExtendedFieldRect() { } + /// + /// Initializes a new instance of the class. + /// + /// fieldRect. + /// fieldType (required). + /// wFieldType (required). + /// Field symbolic name (null-terminated string) (required). + /// Number of StringsResult array elements (required). + /// Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. (required). + /// Buf_Text text string length (required). + /// Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' (required). + /// fieldMask. + /// validity. + /// inComparison. + /// reserved2. + /// reserved3. + public DocVisualExtendedFieldRect(RectangleCoordinates fieldRect = default(RectangleCoordinates), Object fieldType = default(Object), int wFieldType = default(int), string fieldName = default(string), decimal stringsCount = default(decimal), List stringsResult = default(List), decimal bufLength = default(decimal), string bufText = default(string), Object fieldMask = default(Object), Object validity = default(Object), Object inComparison = default(Object), Object reserved2 = default(Object), Object reserved3 = default(Object)) + { + // to ensure "fieldType" is required (not null) + if (fieldType == null) + { + throw new InvalidDataException("fieldType is a required property for DocVisualExtendedFieldRect and cannot be null"); + } + else + { + this.FieldType = fieldType; + } + + this.FieldType = fieldType; + // to ensure "wFieldType" is required (not null) + if (wFieldType == null) + { + throw new InvalidDataException("wFieldType is a required property for DocVisualExtendedFieldRect and cannot be null"); + } + else + { + this.WFieldType = wFieldType; + } + + // to ensure "fieldName" is required (not null) + if (fieldName == null) + { + throw new InvalidDataException("fieldName is a required property for DocVisualExtendedFieldRect and cannot be null"); + } + else + { + this.FieldName = fieldName; + } + + // to ensure "stringsCount" is required (not null) + if (stringsCount == null) + { + throw new InvalidDataException("stringsCount is a required property for DocVisualExtendedFieldRect and cannot be null"); + } + else + { + this.StringsCount = stringsCount; + } + + // to ensure "stringsResult" is required (not null) + if (stringsResult == null) + { + throw new InvalidDataException("stringsResult is a required property for DocVisualExtendedFieldRect and cannot be null"); + } + else + { + this.StringsResult = stringsResult; + } + + // to ensure "bufLength" is required (not null) + if (bufLength == null) + { + throw new InvalidDataException("bufLength is a required property for DocVisualExtendedFieldRect and cannot be null"); + } + else + { + this.BufLength = bufLength; + } + + // to ensure "bufText" is required (not null) + if (bufText == null) + { + throw new InvalidDataException("bufText is a required property for DocVisualExtendedFieldRect and cannot be null"); + } + else + { + this.BufText = bufText; + } + + this.FieldMask = fieldMask; + this.Validity = validity; + this.InComparison = inComparison; + this.Reserved2 = reserved2; + this.Reserved3 = reserved3; + this.FieldRect = fieldRect; + this.FieldMask = fieldMask; + this.Validity = validity; + this.InComparison = inComparison; + this.Reserved2 = reserved2; + this.Reserved3 = reserved3; + } + + /// + /// Gets or Sets FieldRect + /// + [DataMember(Name="FieldRect", EmitDefaultValue=false)] + public RectangleCoordinates FieldRect { get; set; } + + /// + /// Gets or Sets FieldType + /// + [DataMember(Name="FieldType", EmitDefaultValue=true)] + public Object FieldType { get; set; } + + /// + /// Gets or Sets WFieldType + /// + [DataMember(Name="wFieldType", EmitDefaultValue=true)] + public int WFieldType { get; set; } + + /// + /// Field symbolic name (null-terminated string) + /// + /// Field symbolic name (null-terminated string) + [DataMember(Name="FieldName", EmitDefaultValue=true)] + public string FieldName { get; set; } + + /// + /// Number of StringsResult array elements + /// + /// Number of StringsResult array elements + [DataMember(Name="StringsCount", EmitDefaultValue=true)] + public decimal StringsCount { get; set; } + + /// + /// Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. + /// + /// Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. + [DataMember(Name="StringsResult", EmitDefaultValue=true)] + public List StringsResult { get; set; } + + /// + /// Buf_Text text string length + /// + /// Buf_Text text string length + [DataMember(Name="Buf_Length", EmitDefaultValue=true)] + public decimal BufLength { get; set; } + + /// + /// Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' + /// + /// Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' + [DataMember(Name="Buf_Text", EmitDefaultValue=true)] + public string BufText { get; set; } + + /// + /// Gets or Sets FieldMask + /// + [DataMember(Name="FieldMask", EmitDefaultValue=true)] + public Object FieldMask { get; set; } + + /// + /// Gets or Sets Validity + /// + [DataMember(Name="Validity", EmitDefaultValue=true)] + public Object Validity { get; set; } + + /// + /// Gets or Sets InComparison + /// + [DataMember(Name="InComparison", EmitDefaultValue=true)] + public Object InComparison { get; set; } + + /// + /// Gets or Sets Reserved2 + /// + [DataMember(Name="Reserved2", EmitDefaultValue=true)] + public Object Reserved2 { get; set; } + + /// + /// Gets or Sets Reserved3 + /// + [DataMember(Name="Reserved3", EmitDefaultValue=true)] + public Object Reserved3 { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DocVisualExtendedFieldRect {\n"); + sb.Append(" FieldRect: ").Append(FieldRect).Append("\n"); + sb.Append(" FieldType: ").Append(FieldType).Append("\n"); + sb.Append(" WFieldType: ").Append(WFieldType).Append("\n"); + sb.Append(" FieldName: ").Append(FieldName).Append("\n"); + sb.Append(" StringsCount: ").Append(StringsCount).Append("\n"); + sb.Append(" StringsResult: ").Append(StringsResult).Append("\n"); + sb.Append(" BufLength: ").Append(BufLength).Append("\n"); + sb.Append(" BufText: ").Append(BufText).Append("\n"); + sb.Append(" FieldMask: ").Append(FieldMask).Append("\n"); + sb.Append(" Validity: ").Append(Validity).Append("\n"); + sb.Append(" InComparison: ").Append(InComparison).Append("\n"); + sb.Append(" Reserved2: ").Append(Reserved2).Append("\n"); + sb.Append(" Reserved3: ").Append(Reserved3).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DocVisualExtendedFieldRect); + } + + /// + /// Returns true if DocVisualExtendedFieldRect instances are equal + /// + /// Instance of DocVisualExtendedFieldRect to be compared + /// Boolean + public bool Equals(DocVisualExtendedFieldRect input) + { + if (input == null) + return false; + + return + ( + this.FieldRect == input.FieldRect || + (this.FieldRect != null && + this.FieldRect.Equals(input.FieldRect)) + ) && + ( + this.FieldType == input.FieldType || + (this.FieldType != null && + this.FieldType.Equals(input.FieldType)) + ) && + ( + this.WFieldType == input.WFieldType || + (this.WFieldType != null && + this.WFieldType.Equals(input.WFieldType)) + ) && + ( + this.FieldName == input.FieldName || + (this.FieldName != null && + this.FieldName.Equals(input.FieldName)) + ) && + ( + this.StringsCount == input.StringsCount || + (this.StringsCount != null && + this.StringsCount.Equals(input.StringsCount)) + ) && + ( + this.StringsResult == input.StringsResult || + this.StringsResult != null && + input.StringsResult != null && + this.StringsResult.SequenceEqual(input.StringsResult) + ) && + ( + this.BufLength == input.BufLength || + (this.BufLength != null && + this.BufLength.Equals(input.BufLength)) + ) && + ( + this.BufText == input.BufText || + (this.BufText != null && + this.BufText.Equals(input.BufText)) + ) && + ( + this.FieldMask == input.FieldMask || + (this.FieldMask != null && + this.FieldMask.Equals(input.FieldMask)) + ) && + ( + this.Validity == input.Validity || + (this.Validity != null && + this.Validity.Equals(input.Validity)) + ) && + ( + this.InComparison == input.InComparison || + (this.InComparison != null && + this.InComparison.Equals(input.InComparison)) + ) && + ( + this.Reserved2 == input.Reserved2 || + (this.Reserved2 != null && + this.Reserved2.Equals(input.Reserved2)) + ) && + ( + this.Reserved3 == input.Reserved3 || + (this.Reserved3 != null && + this.Reserved3.Equals(input.Reserved3)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.FieldRect != null) + hashCode = hashCode * 59 + this.FieldRect.GetHashCode(); + if (this.FieldType != null) + hashCode = hashCode * 59 + this.FieldType.GetHashCode(); + if (this.WFieldType != null) + hashCode = hashCode * 59 + this.WFieldType.GetHashCode(); + if (this.FieldName != null) + hashCode = hashCode * 59 + this.FieldName.GetHashCode(); + if (this.StringsCount != null) + hashCode = hashCode * 59 + this.StringsCount.GetHashCode(); + if (this.StringsResult != null) + hashCode = hashCode * 59 + this.StringsResult.GetHashCode(); + if (this.BufLength != null) + hashCode = hashCode * 59 + this.BufLength.GetHashCode(); + if (this.BufText != null) + hashCode = hashCode * 59 + this.BufText.GetHashCode(); + if (this.FieldMask != null) + hashCode = hashCode * 59 + this.FieldMask.GetHashCode(); + if (this.Validity != null) + hashCode = hashCode * 59 + this.Validity.GetHashCode(); + if (this.InComparison != null) + hashCode = hashCode * 59 + this.InComparison.GetHashCode(); + if (this.Reserved2 != null) + hashCode = hashCode * 59 + this.Reserved2.GetHashCode(); + if (this.Reserved3 != null) + hashCode = hashCode * 59 + this.Reserved3.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/DocVisualExtendedFieldRfid.cs b/src/Regula.DocumentReader.WebClient/Model/DocVisualExtendedFieldRfid.cs new file mode 100644 index 0000000..d381d0f --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/DocVisualExtendedFieldRfid.cs @@ -0,0 +1,465 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure and serves for storing information from one text data field. Variant with field logical type and RFID data. + /// + [DataContract] + public partial class DocVisualExtendedFieldRfid : IEquatable, IValidatableObject + { + /// + /// Gets or Sets RFIDOriginDG + /// + [DataMember(Name="RFID_OriginDG", EmitDefaultValue=true)] + public RfidDataGroupTypeTag RFIDOriginDG { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DocVisualExtendedFieldRfid() { } + /// + /// Initializes a new instance of the class. + /// + /// rFIDOriginDG (required). + /// rFIDOriginDGTag. + /// Record index of the text field source in the data group (required). + /// rFIDOriginEntryView. + /// fieldType (required). + /// wFieldType (required). + /// Field symbolic name (null-terminated string) (required). + /// Number of StringsResult array elements (required). + /// Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. (required). + /// Buf_Text text string length (required). + /// Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' (required). + /// fieldMask. + /// validity. + /// inComparison. + /// reserved2. + /// reserved3. + public DocVisualExtendedFieldRfid(RfidDataGroupTypeTag rFIDOriginDG = default(RfidDataGroupTypeTag), Object rFIDOriginDGTag = default(Object), decimal rFIDOriginTagEntry = default(decimal), Object rFIDOriginEntryView = default(Object), Object fieldType = default(Object), int wFieldType = default(int), string fieldName = default(string), decimal stringsCount = default(decimal), List stringsResult = default(List), decimal bufLength = default(decimal), string bufText = default(string), Object fieldMask = default(Object), Object validity = default(Object), Object inComparison = default(Object), Object reserved2 = default(Object), Object reserved3 = default(Object)) + { + // to ensure "rFIDOriginDG" is required (not null) + if (rFIDOriginDG == null) + { + throw new InvalidDataException("rFIDOriginDG is a required property for DocVisualExtendedFieldRfid and cannot be null"); + } + else + { + this.RFIDOriginDG = rFIDOriginDG; + } + + this.RFIDOriginDGTag = rFIDOriginDGTag; + // to ensure "rFIDOriginTagEntry" is required (not null) + if (rFIDOriginTagEntry == null) + { + throw new InvalidDataException("rFIDOriginTagEntry is a required property for DocVisualExtendedFieldRfid and cannot be null"); + } + else + { + this.RFIDOriginTagEntry = rFIDOriginTagEntry; + } + + this.RFIDOriginEntryView = rFIDOriginEntryView; + // to ensure "fieldType" is required (not null) + if (fieldType == null) + { + throw new InvalidDataException("fieldType is a required property for DocVisualExtendedFieldRfid and cannot be null"); + } + else + { + this.FieldType = fieldType; + } + + this.FieldType = fieldType; + // to ensure "wFieldType" is required (not null) + if (wFieldType == null) + { + throw new InvalidDataException("wFieldType is a required property for DocVisualExtendedFieldRfid and cannot be null"); + } + else + { + this.WFieldType = wFieldType; + } + + // to ensure "fieldName" is required (not null) + if (fieldName == null) + { + throw new InvalidDataException("fieldName is a required property for DocVisualExtendedFieldRfid and cannot be null"); + } + else + { + this.FieldName = fieldName; + } + + // to ensure "stringsCount" is required (not null) + if (stringsCount == null) + { + throw new InvalidDataException("stringsCount is a required property for DocVisualExtendedFieldRfid and cannot be null"); + } + else + { + this.StringsCount = stringsCount; + } + + // to ensure "stringsResult" is required (not null) + if (stringsResult == null) + { + throw new InvalidDataException("stringsResult is a required property for DocVisualExtendedFieldRfid and cannot be null"); + } + else + { + this.StringsResult = stringsResult; + } + + // to ensure "bufLength" is required (not null) + if (bufLength == null) + { + throw new InvalidDataException("bufLength is a required property for DocVisualExtendedFieldRfid and cannot be null"); + } + else + { + this.BufLength = bufLength; + } + + // to ensure "bufText" is required (not null) + if (bufText == null) + { + throw new InvalidDataException("bufText is a required property for DocVisualExtendedFieldRfid and cannot be null"); + } + else + { + this.BufText = bufText; + } + + this.FieldMask = fieldMask; + this.Validity = validity; + this.InComparison = inComparison; + this.Reserved2 = reserved2; + this.Reserved3 = reserved3; + this.RFIDOriginDGTag = rFIDOriginDGTag; + this.RFIDOriginEntryView = rFIDOriginEntryView; + this.FieldMask = fieldMask; + this.Validity = validity; + this.InComparison = inComparison; + this.Reserved2 = reserved2; + this.Reserved3 = reserved3; + } + + + /// + /// Gets or Sets RFIDOriginDGTag + /// + [DataMember(Name="RFID_OriginDGTag", EmitDefaultValue=true)] + public Object RFIDOriginDGTag { get; set; } + + /// + /// Record index of the text field source in the data group + /// + /// Record index of the text field source in the data group + [DataMember(Name="RFID_OriginTagEntry", EmitDefaultValue=true)] + public decimal RFIDOriginTagEntry { get; set; } + + /// + /// Gets or Sets RFIDOriginEntryView + /// + [DataMember(Name="RFID_OriginEntryView", EmitDefaultValue=true)] + public Object RFIDOriginEntryView { get; set; } + + /// + /// Gets or Sets FieldType + /// + [DataMember(Name="FieldType", EmitDefaultValue=true)] + public Object FieldType { get; set; } + + /// + /// Gets or Sets WFieldType + /// + [DataMember(Name="wFieldType", EmitDefaultValue=true)] + public int WFieldType { get; set; } + + /// + /// Field symbolic name (null-terminated string) + /// + /// Field symbolic name (null-terminated string) + [DataMember(Name="FieldName", EmitDefaultValue=true)] + public string FieldName { get; set; } + + /// + /// Number of StringsResult array elements + /// + /// Number of StringsResult array elements + [DataMember(Name="StringsCount", EmitDefaultValue=true)] + public decimal StringsCount { get; set; } + + /// + /// Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. + /// + /// Array of recognizing probabilities for a each line of text field. Only for Result.VISUAL_TEXT and Result.MRZ_TEXT results. + [DataMember(Name="StringsResult", EmitDefaultValue=true)] + public List StringsResult { get; set; } + + /// + /// Buf_Text text string length + /// + /// Buf_Text text string length + [DataMember(Name="Buf_Length", EmitDefaultValue=true)] + public decimal BufLength { get; set; } + + /// + /// Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' + /// + /// Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' + [DataMember(Name="Buf_Text", EmitDefaultValue=true)] + public string BufText { get; set; } + + /// + /// Gets or Sets FieldMask + /// + [DataMember(Name="FieldMask", EmitDefaultValue=true)] + public Object FieldMask { get; set; } + + /// + /// Gets or Sets Validity + /// + [DataMember(Name="Validity", EmitDefaultValue=true)] + public Object Validity { get; set; } + + /// + /// Gets or Sets InComparison + /// + [DataMember(Name="InComparison", EmitDefaultValue=true)] + public Object InComparison { get; set; } + + /// + /// Gets or Sets Reserved2 + /// + [DataMember(Name="Reserved2", EmitDefaultValue=true)] + public Object Reserved2 { get; set; } + + /// + /// Gets or Sets Reserved3 + /// + [DataMember(Name="Reserved3", EmitDefaultValue=true)] + public Object Reserved3 { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DocVisualExtendedFieldRfid {\n"); + sb.Append(" RFIDOriginDG: ").Append(RFIDOriginDG).Append("\n"); + sb.Append(" RFIDOriginDGTag: ").Append(RFIDOriginDGTag).Append("\n"); + sb.Append(" RFIDOriginTagEntry: ").Append(RFIDOriginTagEntry).Append("\n"); + sb.Append(" RFIDOriginEntryView: ").Append(RFIDOriginEntryView).Append("\n"); + sb.Append(" FieldType: ").Append(FieldType).Append("\n"); + sb.Append(" WFieldType: ").Append(WFieldType).Append("\n"); + sb.Append(" FieldName: ").Append(FieldName).Append("\n"); + sb.Append(" StringsCount: ").Append(StringsCount).Append("\n"); + sb.Append(" StringsResult: ").Append(StringsResult).Append("\n"); + sb.Append(" BufLength: ").Append(BufLength).Append("\n"); + sb.Append(" BufText: ").Append(BufText).Append("\n"); + sb.Append(" FieldMask: ").Append(FieldMask).Append("\n"); + sb.Append(" Validity: ").Append(Validity).Append("\n"); + sb.Append(" InComparison: ").Append(InComparison).Append("\n"); + sb.Append(" Reserved2: ").Append(Reserved2).Append("\n"); + sb.Append(" Reserved3: ").Append(Reserved3).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DocVisualExtendedFieldRfid); + } + + /// + /// Returns true if DocVisualExtendedFieldRfid instances are equal + /// + /// Instance of DocVisualExtendedFieldRfid to be compared + /// Boolean + public bool Equals(DocVisualExtendedFieldRfid input) + { + if (input == null) + return false; + + return + ( + this.RFIDOriginDG == input.RFIDOriginDG || + (this.RFIDOriginDG != null && + this.RFIDOriginDG.Equals(input.RFIDOriginDG)) + ) && + ( + this.RFIDOriginDGTag == input.RFIDOriginDGTag || + (this.RFIDOriginDGTag != null && + this.RFIDOriginDGTag.Equals(input.RFIDOriginDGTag)) + ) && + ( + this.RFIDOriginTagEntry == input.RFIDOriginTagEntry || + (this.RFIDOriginTagEntry != null && + this.RFIDOriginTagEntry.Equals(input.RFIDOriginTagEntry)) + ) && + ( + this.RFIDOriginEntryView == input.RFIDOriginEntryView || + (this.RFIDOriginEntryView != null && + this.RFIDOriginEntryView.Equals(input.RFIDOriginEntryView)) + ) && + ( + this.FieldType == input.FieldType || + (this.FieldType != null && + this.FieldType.Equals(input.FieldType)) + ) && + ( + this.WFieldType == input.WFieldType || + (this.WFieldType != null && + this.WFieldType.Equals(input.WFieldType)) + ) && + ( + this.FieldName == input.FieldName || + (this.FieldName != null && + this.FieldName.Equals(input.FieldName)) + ) && + ( + this.StringsCount == input.StringsCount || + (this.StringsCount != null && + this.StringsCount.Equals(input.StringsCount)) + ) && + ( + this.StringsResult == input.StringsResult || + this.StringsResult != null && + input.StringsResult != null && + this.StringsResult.SequenceEqual(input.StringsResult) + ) && + ( + this.BufLength == input.BufLength || + (this.BufLength != null && + this.BufLength.Equals(input.BufLength)) + ) && + ( + this.BufText == input.BufText || + (this.BufText != null && + this.BufText.Equals(input.BufText)) + ) && + ( + this.FieldMask == input.FieldMask || + (this.FieldMask != null && + this.FieldMask.Equals(input.FieldMask)) + ) && + ( + this.Validity == input.Validity || + (this.Validity != null && + this.Validity.Equals(input.Validity)) + ) && + ( + this.InComparison == input.InComparison || + (this.InComparison != null && + this.InComparison.Equals(input.InComparison)) + ) && + ( + this.Reserved2 == input.Reserved2 || + (this.Reserved2 != null && + this.Reserved2.Equals(input.Reserved2)) + ) && + ( + this.Reserved3 == input.Reserved3 || + (this.Reserved3 != null && + this.Reserved3.Equals(input.Reserved3)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RFIDOriginDG != null) + hashCode = hashCode * 59 + this.RFIDOriginDG.GetHashCode(); + if (this.RFIDOriginDGTag != null) + hashCode = hashCode * 59 + this.RFIDOriginDGTag.GetHashCode(); + if (this.RFIDOriginTagEntry != null) + hashCode = hashCode * 59 + this.RFIDOriginTagEntry.GetHashCode(); + if (this.RFIDOriginEntryView != null) + hashCode = hashCode * 59 + this.RFIDOriginEntryView.GetHashCode(); + if (this.FieldType != null) + hashCode = hashCode * 59 + this.FieldType.GetHashCode(); + if (this.WFieldType != null) + hashCode = hashCode * 59 + this.WFieldType.GetHashCode(); + if (this.FieldName != null) + hashCode = hashCode * 59 + this.FieldName.GetHashCode(); + if (this.StringsCount != null) + hashCode = hashCode * 59 + this.StringsCount.GetHashCode(); + if (this.StringsResult != null) + hashCode = hashCode * 59 + this.StringsResult.GetHashCode(); + if (this.BufLength != null) + hashCode = hashCode * 59 + this.BufLength.GetHashCode(); + if (this.BufText != null) + hashCode = hashCode * 59 + this.BufText.GetHashCode(); + if (this.FieldMask != null) + hashCode = hashCode * 59 + this.FieldMask.GetHashCode(); + if (this.Validity != null) + hashCode = hashCode * 59 + this.Validity.GetHashCode(); + if (this.InComparison != null) + hashCode = hashCode * 59 + this.InComparison.GetHashCode(); + if (this.Reserved2 != null) + hashCode = hashCode * 59 + this.Reserved2.GetHashCode(); + if (this.Reserved3 != null) + hashCode = hashCode * 59 + this.Reserved3.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/DocVisualExtendedInfo.cs b/src/Regula.DocumentReader.WebClient/Model/DocVisualExtendedInfo.cs index e510960..31fffb0 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DocVisualExtendedInfo.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DocVisualExtendedInfo.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,9 +38,20 @@ protected DocVisualExtendedInfo() { } /// /// Initializes a new instance of the class. /// + /// Number of pArrayFields array elements (required). /// pArrayFields (required). - public DocVisualExtendedInfo(List pArrayFields = default(List)) + public DocVisualExtendedInfo(decimal nFields = default(decimal), List pArrayFields = default(List)) { + // to ensure "nFields" is required (not null) + if (nFields == null) + { + throw new InvalidDataException("nFields is a required property for DocVisualExtendedInfo and cannot be null"); + } + else + { + this.NFields = nFields; + } + // to ensure "pArrayFields" is required (not null) if (pArrayFields == null) { @@ -53,11 +64,18 @@ protected DocVisualExtendedInfo() { } } + /// + /// Number of pArrayFields array elements + /// + /// Number of pArrayFields array elements + [DataMember(Name="nFields", EmitDefaultValue=true)] + public decimal NFields { get; set; } + /// /// Gets or Sets PArrayFields /// [DataMember(Name="pArrayFields", EmitDefaultValue=true)] - public List PArrayFields { get; set; } + public List PArrayFields { get; set; } /// /// Returns the string presentation of the object @@ -67,6 +85,7 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class DocVisualExtendedInfo {\n"); + sb.Append(" NFields: ").Append(NFields).Append("\n"); sb.Append(" PArrayFields: ").Append(PArrayFields).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -102,6 +121,11 @@ public bool Equals(DocVisualExtendedInfo input) return false; return + ( + this.NFields == input.NFields || + (this.NFields != null && + this.NFields.Equals(input.NFields)) + ) && ( this.PArrayFields == input.PArrayFields || this.PArrayFields != null && @@ -119,6 +143,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.NFields != null) + hashCode = hashCode * 59 + this.NFields.GetHashCode(); if (this.PArrayFields != null) hashCode = hashCode * 59 + this.PArrayFields.GetHashCode(); return hashCode; diff --git a/src/Regula.DocumentReader.WebClient/Model/DocumentBinaryInfoResult.cs b/src/Regula.DocumentReader.WebClient/Model/DocumentBinaryInfoResult.cs new file mode 100644 index 0000000..39a31c2 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/DocumentBinaryInfoResult.cs @@ -0,0 +1,140 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// DocumentBinaryInfoResult + /// + [DataContract] + public partial class DocumentBinaryInfoResult : ResultItem, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected DocumentBinaryInfoResult() { } + /// + /// Initializes a new instance of the class. + /// + /// tDocBinaryInfo (required). + public DocumentBinaryInfoResult(TDocBinaryInfo tDocBinaryInfo = default(TDocBinaryInfo), int bufLength = default(int), int light = default(int), int listIdx = default(int), int pageIdx = default(int), int resultType = 0) : base(bufLength, light, listIdx, pageIdx, resultType) + { + // to ensure "tDocBinaryInfo" is required (not null) + if (tDocBinaryInfo == null) + { + throw new InvalidDataException("tDocBinaryInfo is a required property for DocumentBinaryInfoResult and cannot be null"); + } + else + { + this.TDocBinaryInfo = tDocBinaryInfo; + } + + } + + /// + /// Gets or Sets TDocBinaryInfo + /// + [DataMember(Name="TDocBinaryInfo", EmitDefaultValue=true)] + public TDocBinaryInfo TDocBinaryInfo { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DocumentBinaryInfoResult {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append(" TDocBinaryInfo: ").Append(TDocBinaryInfo).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DocumentBinaryInfoResult); + } + + /// + /// Returns true if DocumentBinaryInfoResult instances are equal + /// + /// Instance of DocumentBinaryInfoResult to be compared + /// Boolean + public bool Equals(DocumentBinaryInfoResult input) + { + if (input == null) + return false; + + return base.Equals(input) && + ( + this.TDocBinaryInfo == input.TDocBinaryInfo || + (this.TDocBinaryInfo != null && + this.TDocBinaryInfo.Equals(input.TDocBinaryInfo)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + if (this.TDocBinaryInfo != null) + hashCode = hashCode * 59 + this.TDocBinaryInfo.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + foreach(var x in base.BaseValidate(validationContext)) yield return x; + yield break; + } + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/DocumentImage.cs b/src/Regula.DocumentReader.WebClient/Model/DocumentImage.cs index 1dde17b..0238a54 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DocumentImage.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DocumentImage.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/DocumentImageResult.cs b/src/Regula.DocumentReader.WebClient/Model/DocumentImageResult.cs index 1fca4e7..abcb1e5 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DocumentImageResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DocumentImageResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/DocumentPosition.cs b/src/Regula.DocumentReader.WebClient/Model/DocumentPosition.cs index 0560d1a..f1c4767 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DocumentPosition.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DocumentPosition.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,88 +33,186 @@ public partial class DocumentPosition : IEquatable, IValidata /// /// Initializes a new instance of the class. /// - /// docFormat. - /// angle. - /// width. - /// height. - /// center. - /// leftBottom. - /// leftTop. - /// rightBottom. - /// rightTop. - /// dpi. + [JsonConstructorAttribute] + protected DocumentPosition() { } + /// + /// Initializes a new instance of the class. + /// + /// docFormat (required). + /// Document rotation angle (required). + /// Document width (required). + /// Document height (required). + /// center (required). + /// leftBottom (required). + /// leftTop (required). + /// rightBottom (required). + /// rightTop (required). + /// dpi (required). public DocumentPosition(int docFormat = default(int), decimal angle = default(decimal), int width = default(int), int height = default(int), Point center = default(Point), Point leftBottom = default(Point), Point leftTop = default(Point), Point rightBottom = default(Point), Point rightTop = default(Point), int dpi = default(int)) { - this.DocFormat = docFormat; - this.Angle = angle; - this.Width = width; - this.Height = height; - this.Center = center; - this.LeftBottom = leftBottom; - this.LeftTop = leftTop; - this.RightBottom = rightBottom; - this.RightTop = rightTop; - this.Dpi = dpi; + // to ensure "docFormat" is required (not null) + if (docFormat == null) + { + throw new InvalidDataException("docFormat is a required property for DocumentPosition and cannot be null"); + } + else + { + this.DocFormat = docFormat; + } + + // to ensure "angle" is required (not null) + if (angle == null) + { + throw new InvalidDataException("angle is a required property for DocumentPosition and cannot be null"); + } + else + { + this.Angle = angle; + } + + // to ensure "width" is required (not null) + if (width == null) + { + throw new InvalidDataException("width is a required property for DocumentPosition and cannot be null"); + } + else + { + this.Width = width; + } + + // to ensure "height" is required (not null) + if (height == null) + { + throw new InvalidDataException("height is a required property for DocumentPosition and cannot be null"); + } + else + { + this.Height = height; + } + + // to ensure "center" is required (not null) + if (center == null) + { + throw new InvalidDataException("center is a required property for DocumentPosition and cannot be null"); + } + else + { + this.Center = center; + } + + // to ensure "leftBottom" is required (not null) + if (leftBottom == null) + { + throw new InvalidDataException("leftBottom is a required property for DocumentPosition and cannot be null"); + } + else + { + this.LeftBottom = leftBottom; + } + + // to ensure "leftTop" is required (not null) + if (leftTop == null) + { + throw new InvalidDataException("leftTop is a required property for DocumentPosition and cannot be null"); + } + else + { + this.LeftTop = leftTop; + } + + // to ensure "rightBottom" is required (not null) + if (rightBottom == null) + { + throw new InvalidDataException("rightBottom is a required property for DocumentPosition and cannot be null"); + } + else + { + this.RightBottom = rightBottom; + } + + // to ensure "rightTop" is required (not null) + if (rightTop == null) + { + throw new InvalidDataException("rightTop is a required property for DocumentPosition and cannot be null"); + } + else + { + this.RightTop = rightTop; + } + + // to ensure "dpi" is required (not null) + if (dpi == null) + { + throw new InvalidDataException("dpi is a required property for DocumentPosition and cannot be null"); + } + else + { + this.Dpi = dpi; + } + } /// /// Gets or Sets DocFormat /// - [DataMember(Name="docFormat", EmitDefaultValue=false)] + [DataMember(Name="docFormat", EmitDefaultValue=true)] public int DocFormat { get; set; } /// - /// Gets or Sets Angle + /// Document rotation angle /// - [DataMember(Name="Angle", EmitDefaultValue=false)] + /// Document rotation angle + [DataMember(Name="Angle", EmitDefaultValue=true)] public decimal Angle { get; set; } /// - /// Gets or Sets Width + /// Document width /// - [DataMember(Name="Width", EmitDefaultValue=false)] + /// Document width + [DataMember(Name="Width", EmitDefaultValue=true)] public int Width { get; set; } /// - /// Gets or Sets Height + /// Document height /// - [DataMember(Name="Height", EmitDefaultValue=false)] + /// Document height + [DataMember(Name="Height", EmitDefaultValue=true)] public int Height { get; set; } /// /// Gets or Sets Center /// - [DataMember(Name="Center", EmitDefaultValue=false)] + [DataMember(Name="Center", EmitDefaultValue=true)] public Point Center { get; set; } /// /// Gets or Sets LeftBottom /// - [DataMember(Name="LeftBottom", EmitDefaultValue=false)] + [DataMember(Name="LeftBottom", EmitDefaultValue=true)] public Point LeftBottom { get; set; } /// /// Gets or Sets LeftTop /// - [DataMember(Name="LeftTop", EmitDefaultValue=false)] + [DataMember(Name="LeftTop", EmitDefaultValue=true)] public Point LeftTop { get; set; } /// /// Gets or Sets RightBottom /// - [DataMember(Name="RightBottom", EmitDefaultValue=false)] + [DataMember(Name="RightBottom", EmitDefaultValue=true)] public Point RightBottom { get; set; } /// /// Gets or Sets RightTop /// - [DataMember(Name="RightTop", EmitDefaultValue=false)] + [DataMember(Name="RightTop", EmitDefaultValue=true)] public Point RightTop { get; set; } /// /// Gets or Sets Dpi /// - [DataMember(Name="Dpi", EmitDefaultValue=false)] + [DataMember(Name="Dpi", EmitDefaultValue=true)] public int Dpi { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/DocumentPositionResult.cs b/src/Regula.DocumentReader.WebClient/Model/DocumentPositionResult.cs index fa14439..dd3f227 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DocumentPositionResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DocumentPositionResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,16 +38,25 @@ protected DocumentPositionResult() { } /// /// Initializes a new instance of the class. /// - /// documentPosition. + /// documentPosition (required). public DocumentPositionResult(DocumentPosition documentPosition = default(DocumentPosition), int bufLength = default(int), int light = default(int), int listIdx = default(int), int pageIdx = default(int), int resultType = 0) : base(bufLength, light, listIdx, pageIdx, resultType) { - this.DocumentPosition = documentPosition; + // to ensure "documentPosition" is required (not null) + if (documentPosition == null) + { + throw new InvalidDataException("documentPosition is a required property for DocumentPositionResult and cannot be null"); + } + else + { + this.DocumentPosition = documentPosition; + } + } /// /// Gets or Sets DocumentPosition /// - [DataMember(Name="DocumentPosition", EmitDefaultValue=false)] + [DataMember(Name="DocumentPosition", EmitDefaultValue=true)] public DocumentPosition DocumentPosition { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/DocumentTypesCandidates.cs b/src/Regula.DocumentReader.WebClient/Model/DocumentTypesCandidates.cs index e6a7d77..11573fe 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DocumentTypesCandidates.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DocumentTypesCandidates.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/DocumentTypesCandidatesList.cs b/src/Regula.DocumentReader.WebClient/Model/DocumentTypesCandidatesList.cs index fd81fe4..9f7b8d1 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DocumentTypesCandidatesList.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DocumentTypesCandidatesList.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/DocumentTypesCandidatesResult.cs b/src/Regula.DocumentReader.WebClient/Model/DocumentTypesCandidatesResult.cs index ad58fa5..b355068 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DocumentTypesCandidatesResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DocumentTypesCandidatesResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/DocumentsDatabase.cs b/src/Regula.DocumentReader.WebClient/Model/DocumentsDatabase.cs index c1ddd9c..0c0d39e 100644 --- a/src/Regula.DocumentReader.WebClient/Model/DocumentsDatabase.cs +++ b/src/Regula.DocumentReader.WebClient/Model/DocumentsDatabase.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs index 12ee290..1855c1b 100644 --- a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/FDSIDList.cs b/src/Regula.DocumentReader.WebClient/Model/FDSIDList.cs index 697ec54..c294fb8 100644 --- a/src/Regula.DocumentReader.WebClient/Model/FDSIDList.cs +++ b/src/Regula.DocumentReader.WebClient/Model/FDSIDList.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,63 +33,158 @@ public partial class FDSIDList : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// ICAO code of the issuing country. - /// Document identifiers in 'Information Reference Systems'. - /// dType. - /// dFormat. - /// Flag indicating the presence of MRZ on the document. + [JsonConstructorAttribute] + protected FDSIDList() { } + /// + /// Initializes a new instance of the class. + /// + /// ICAO code of the issuing country (required). + /// Number of elements in the List (required). + /// Document identifiers in 'Information Reference Systems' (required). + /// dType (required). + /// dFormat (required). + /// Flag indicating the presence of MRZ on the document (required). /// Document description. - /// Year of publication of the document. - /// Issuing country name. + /// Year of publication of the document (required). + /// Issuing country name (required). /// Issuing state code. /// Issuing state name. - /// Whether the document is deprecated. - public FDSIDList(string iCAOCode = default(string), List list = default(List), int dType = default(int), int dFormat = default(int), bool? dMRZ = default(bool?), string dDescription = default(string), string dYear = default(string), string dCountryName = default(string), string dStateCode = default(string), string dStateName = default(string), bool? isDeprecated = default(bool?)) + /// Whether the document is deprecated (required). + public FDSIDList(string iCAOCode = default(string), decimal count = default(decimal), List list = default(List), int dType = default(int), int dFormat = default(int), bool? dMRZ = default(bool?), string dDescription = default(string), string dYear = default(string), string dCountryName = default(string), string dStateCode = default(string), string dStateName = default(string), bool? isDeprecated = default(bool?)) { - this.ICAOCode = iCAOCode; - this.List = list; - this.DType = dType; - this.DFormat = dFormat; - this.DMRZ = dMRZ; + // to ensure "iCAOCode" is required (not null) + if (iCAOCode == null) + { + throw new InvalidDataException("iCAOCode is a required property for FDSIDList and cannot be null"); + } + else + { + this.ICAOCode = iCAOCode; + } + + // to ensure "count" is required (not null) + if (count == null) + { + throw new InvalidDataException("count is a required property for FDSIDList and cannot be null"); + } + else + { + this.Count = count; + } + + // to ensure "list" is required (not null) + if (list == null) + { + throw new InvalidDataException("list is a required property for FDSIDList and cannot be null"); + } + else + { + this.List = list; + } + + // to ensure "dType" is required (not null) + if (dType == null) + { + throw new InvalidDataException("dType is a required property for FDSIDList and cannot be null"); + } + else + { + this.DType = dType; + } + + // to ensure "dFormat" is required (not null) + if (dFormat == null) + { + throw new InvalidDataException("dFormat is a required property for FDSIDList and cannot be null"); + } + else + { + this.DFormat = dFormat; + } + + // to ensure "dMRZ" is required (not null) + if (dMRZ == null) + { + throw new InvalidDataException("dMRZ is a required property for FDSIDList and cannot be null"); + } + else + { + this.DMRZ = dMRZ; + } + + // to ensure "dYear" is required (not null) + if (dYear == null) + { + throw new InvalidDataException("dYear is a required property for FDSIDList and cannot be null"); + } + else + { + this.DYear = dYear; + } + + // to ensure "dCountryName" is required (not null) + if (dCountryName == null) + { + throw new InvalidDataException("dCountryName is a required property for FDSIDList and cannot be null"); + } + else + { + this.DCountryName = dCountryName; + } + + // to ensure "isDeprecated" is required (not null) + if (isDeprecated == null) + { + throw new InvalidDataException("isDeprecated is a required property for FDSIDList and cannot be null"); + } + else + { + this.IsDeprecated = isDeprecated; + } + this.DDescription = dDescription; - this.DYear = dYear; - this.DCountryName = dCountryName; this.DStateCode = dStateCode; this.DStateName = dStateName; - this.IsDeprecated = isDeprecated; } /// /// ICAO code of the issuing country /// /// ICAO code of the issuing country - [DataMember(Name="ICAOCode", EmitDefaultValue=false)] + [DataMember(Name="ICAOCode", EmitDefaultValue=true)] public string ICAOCode { get; set; } + /// + /// Number of elements in the List + /// + /// Number of elements in the List + [DataMember(Name="Count", EmitDefaultValue=true)] + public decimal Count { get; set; } + /// /// Document identifiers in 'Information Reference Systems' /// /// Document identifiers in 'Information Reference Systems' - [DataMember(Name="List", EmitDefaultValue=false)] + [DataMember(Name="List", EmitDefaultValue=true)] public List List { get; set; } /// /// Gets or Sets DType /// - [DataMember(Name="dType", EmitDefaultValue=false)] + [DataMember(Name="dType", EmitDefaultValue=true)] public int DType { get; set; } /// /// Gets or Sets DFormat /// - [DataMember(Name="dFormat", EmitDefaultValue=false)] + [DataMember(Name="dFormat", EmitDefaultValue=true)] public int DFormat { get; set; } /// /// Flag indicating the presence of MRZ on the document /// /// Flag indicating the presence of MRZ on the document - [DataMember(Name="dMRZ", EmitDefaultValue=false)] + [DataMember(Name="dMRZ", EmitDefaultValue=true)] public bool? DMRZ { get; set; } /// @@ -103,14 +198,14 @@ public partial class FDSIDList : IEquatable, IValidatableObject /// Year of publication of the document /// /// Year of publication of the document - [DataMember(Name="dYear", EmitDefaultValue=false)] + [DataMember(Name="dYear", EmitDefaultValue=true)] public string DYear { get; set; } /// /// Issuing country name /// /// Issuing country name - [DataMember(Name="dCountryName", EmitDefaultValue=false)] + [DataMember(Name="dCountryName", EmitDefaultValue=true)] public string DCountryName { get; set; } /// @@ -131,7 +226,7 @@ public partial class FDSIDList : IEquatable, IValidatableObject /// Whether the document is deprecated /// /// Whether the document is deprecated - [DataMember(Name="isDeprecated", EmitDefaultValue=false)] + [DataMember(Name="isDeprecated", EmitDefaultValue=true)] public bool? IsDeprecated { get; set; } /// @@ -143,6 +238,7 @@ public override string ToString() var sb = new StringBuilder(); sb.Append("class FDSIDList {\n"); sb.Append(" ICAOCode: ").Append(ICAOCode).Append("\n"); + sb.Append(" Count: ").Append(Count).Append("\n"); sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" DType: ").Append(DType).Append("\n"); sb.Append(" DFormat: ").Append(DFormat).Append("\n"); @@ -192,6 +288,11 @@ public bool Equals(FDSIDList input) (this.ICAOCode != null && this.ICAOCode.Equals(input.ICAOCode)) ) && + ( + this.Count == input.Count || + (this.Count != null && + this.Count.Equals(input.Count)) + ) && ( this.List == input.List || this.List != null && @@ -256,6 +357,8 @@ public override int GetHashCode() int hashCode = 41; if (this.ICAOCode != null) hashCode = hashCode * 59 + this.ICAOCode.GetHashCode(); + if (this.Count != null) + hashCode = hashCode * 59 + this.Count.GetHashCode(); if (this.List != null) hashCode = hashCode * 59 + this.List.GetHashCode(); if (this.DType != null) diff --git a/src/Regula.DocumentReader.WebClient/Model/FaceApi.cs b/src/Regula.DocumentReader.WebClient/Model/FaceApi.cs index c38b00f..fddb0aa 100644 --- a/src/Regula.DocumentReader.WebClient/Model/FaceApi.cs +++ b/src/Regula.DocumentReader.WebClient/Model/FaceApi.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/FaceApiSearch.cs b/src/Regula.DocumentReader.WebClient/Model/FaceApiSearch.cs index 3c6520f..8a35d13 100644 --- a/src/Regula.DocumentReader.WebClient/Model/FaceApiSearch.cs +++ b/src/Regula.DocumentReader.WebClient/Model/FaceApiSearch.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/FiberResult.cs b/src/Regula.DocumentReader.WebClient/Model/FiberResult.cs index 28e5056..674604d 100644 --- a/src/Regula.DocumentReader.WebClient/Model/FiberResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/FiberResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -28,7 +28,7 @@ namespace Regula.DocumentReader.WebClient.Model /// FiberResult /// [DataContract] - public partial class FiberResult : AuthenticityCheckResultItem, IEquatable, IValidatableObject + public partial class FiberResult : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -38,40 +38,145 @@ protected FiberResult() { } /// /// Initializes a new instance of the class. /// - /// For UV_Fibers authenticity result type. - /// Expected fibers number. For UV_Fibers authentication result type. + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ (required) (default to 0). + /// elementResult. + /// elementDiagnose. + /// percentValue. + /// For UV_Fibers authenticity result type (required). + /// Expected fibers number. For UV_Fibers authentication result type (required). /// lightValue. /// For UV_Background authentication result type. - /// Coordinates of located areas for defined fibers type. - /// Fibers width value for located areas (in pixels). - /// Fibers length value for located areas (in pixels). - /// Fibers value for areas (in pixels). - /// Fibers color value. - public FiberResult(int rectCount = default(int), int expectedCount = default(int), int lightValue = default(int), int lightDisp = default(int), List rectArray = default(List), List width = default(List), List length = default(List), List area = default(List), List colorValues = default(List), int type = 0, int elementResult = default(int), int elementDiagnose = default(int), int percentValue = default(int)) : base(type, elementResult, elementDiagnose, percentValue) + /// Coordinates of located areas for defined fibers type (required). + /// Fibers width value for located areas (in pixels) (required). + /// Fibers length value for located areas (in pixels) (required). + /// Fibers value for areas (in pixels) (required). + /// Fibers color value (required). + public FiberResult(int type = 0, int elementResult = default(int), int elementDiagnose = default(int), int percentValue = default(int), int rectCount = default(int), int expectedCount = default(int), int lightValue = default(int), int lightDisp = default(int), List rectArray = default(List), List width = default(List), List length = default(List), List area = default(List), List colorValues = default(List)) { - this.RectCount = rectCount; - this.ExpectedCount = expectedCount; + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for FiberResult and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "rectCount" is required (not null) + if (rectCount == null) + { + throw new InvalidDataException("rectCount is a required property for FiberResult and cannot be null"); + } + else + { + this.RectCount = rectCount; + } + + // to ensure "expectedCount" is required (not null) + if (expectedCount == null) + { + throw new InvalidDataException("expectedCount is a required property for FiberResult and cannot be null"); + } + else + { + this.ExpectedCount = expectedCount; + } + + // to ensure "rectArray" is required (not null) + if (rectArray == null) + { + throw new InvalidDataException("rectArray is a required property for FiberResult and cannot be null"); + } + else + { + this.RectArray = rectArray; + } + + // to ensure "width" is required (not null) + if (width == null) + { + throw new InvalidDataException("width is a required property for FiberResult and cannot be null"); + } + else + { + this.Width = width; + } + + // to ensure "length" is required (not null) + if (length == null) + { + throw new InvalidDataException("length is a required property for FiberResult and cannot be null"); + } + else + { + this.Length = length; + } + + // to ensure "area" is required (not null) + if (area == null) + { + throw new InvalidDataException("area is a required property for FiberResult and cannot be null"); + } + else + { + this.Area = area; + } + + // to ensure "colorValues" is required (not null) + if (colorValues == null) + { + throw new InvalidDataException("colorValues is a required property for FiberResult and cannot be null"); + } + else + { + this.ColorValues = colorValues; + } + + this.ElementResult = elementResult; + this.ElementDiagnose = elementDiagnose; + this.PercentValue = percentValue; this.LightValue = lightValue; this.LightDisp = lightDisp; - this.RectArray = rectArray; - this.Width = width; - this.Length = length; - this.Area = area; - this.ColorValues = colorValues; } + /// + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ + /// + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ + [DataMember(Name="Type", EmitDefaultValue=true)] + public int Type { get; set; } + + /// + /// Gets or Sets ElementResult + /// + [DataMember(Name="ElementResult", EmitDefaultValue=false)] + public int ElementResult { get; set; } + + /// + /// Gets or Sets ElementDiagnose + /// + [DataMember(Name="ElementDiagnose", EmitDefaultValue=false)] + public int ElementDiagnose { get; set; } + + /// + /// Gets or Sets PercentValue + /// + [DataMember(Name="PercentValue", EmitDefaultValue=false)] + public int PercentValue { get; set; } + /// /// For UV_Fibers authenticity result type /// /// For UV_Fibers authenticity result type - [DataMember(Name="RectCount", EmitDefaultValue=false)] + [DataMember(Name="RectCount", EmitDefaultValue=true)] public int RectCount { get; set; } /// /// Expected fibers number. For UV_Fibers authentication result type /// /// Expected fibers number. For UV_Fibers authentication result type - [DataMember(Name="ExpectedCount", EmitDefaultValue=false)] + [DataMember(Name="ExpectedCount", EmitDefaultValue=true)] public int ExpectedCount { get; set; } /// @@ -91,35 +196,35 @@ protected FiberResult() { } /// Coordinates of located areas for defined fibers type /// /// Coordinates of located areas for defined fibers type - [DataMember(Name="RectArray", EmitDefaultValue=false)] + [DataMember(Name="RectArray", EmitDefaultValue=true)] public List RectArray { get; set; } /// /// Fibers width value for located areas (in pixels) /// /// Fibers width value for located areas (in pixels) - [DataMember(Name="Width", EmitDefaultValue=false)] + [DataMember(Name="Width", EmitDefaultValue=true)] public List Width { get; set; } /// /// Fibers length value for located areas (in pixels) /// /// Fibers length value for located areas (in pixels) - [DataMember(Name="Length", EmitDefaultValue=false)] + [DataMember(Name="Length", EmitDefaultValue=true)] public List Length { get; set; } /// /// Fibers value for areas (in pixels) /// /// Fibers value for areas (in pixels) - [DataMember(Name="Area", EmitDefaultValue=false)] + [DataMember(Name="Area", EmitDefaultValue=true)] public List Area { get; set; } /// /// Fibers color value /// /// Fibers color value - [DataMember(Name="ColorValues", EmitDefaultValue=false)] + [DataMember(Name="ColorValues", EmitDefaultValue=true)] public List ColorValues { get; set; } /// @@ -130,7 +235,10 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class FiberResult {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ElementResult: ").Append(ElementResult).Append("\n"); + sb.Append(" ElementDiagnose: ").Append(ElementDiagnose).Append("\n"); + sb.Append(" PercentValue: ").Append(PercentValue).Append("\n"); sb.Append(" RectCount: ").Append(RectCount).Append("\n"); sb.Append(" ExpectedCount: ").Append(ExpectedCount).Append("\n"); sb.Append(" LightValue: ").Append(LightValue).Append("\n"); @@ -148,7 +256,7 @@ public override string ToString() /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object - public override string ToJson() + public virtual string ToJson() { return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } @@ -173,51 +281,71 @@ public bool Equals(FiberResult input) if (input == null) return false; - return base.Equals(input) && + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.ElementResult == input.ElementResult || + (this.ElementResult != null && + this.ElementResult.Equals(input.ElementResult)) + ) && + ( + this.ElementDiagnose == input.ElementDiagnose || + (this.ElementDiagnose != null && + this.ElementDiagnose.Equals(input.ElementDiagnose)) + ) && + ( + this.PercentValue == input.PercentValue || + (this.PercentValue != null && + this.PercentValue.Equals(input.PercentValue)) + ) && ( this.RectCount == input.RectCount || (this.RectCount != null && this.RectCount.Equals(input.RectCount)) - ) && base.Equals(input) && + ) && ( this.ExpectedCount == input.ExpectedCount || (this.ExpectedCount != null && this.ExpectedCount.Equals(input.ExpectedCount)) - ) && base.Equals(input) && + ) && ( this.LightValue == input.LightValue || (this.LightValue != null && this.LightValue.Equals(input.LightValue)) - ) && base.Equals(input) && + ) && ( this.LightDisp == input.LightDisp || (this.LightDisp != null && this.LightDisp.Equals(input.LightDisp)) - ) && base.Equals(input) && + ) && ( this.RectArray == input.RectArray || this.RectArray != null && input.RectArray != null && this.RectArray.SequenceEqual(input.RectArray) - ) && base.Equals(input) && + ) && ( this.Width == input.Width || this.Width != null && input.Width != null && this.Width.SequenceEqual(input.Width) - ) && base.Equals(input) && + ) && ( this.Length == input.Length || this.Length != null && input.Length != null && this.Length.SequenceEqual(input.Length) - ) && base.Equals(input) && + ) && ( this.Area == input.Area || this.Area != null && input.Area != null && this.Area.SequenceEqual(input.Area) - ) && base.Equals(input) && + ) && ( this.ColorValues == input.ColorValues || this.ColorValues != null && @@ -234,7 +362,15 @@ public override int GetHashCode() { unchecked // Overflow is fine, just wrap { - int hashCode = base.GetHashCode(); + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.ElementResult != null) + hashCode = hashCode * 59 + this.ElementResult.GetHashCode(); + if (this.ElementDiagnose != null) + hashCode = hashCode * 59 + this.ElementDiagnose.GetHashCode(); + if (this.PercentValue != null) + hashCode = hashCode * 59 + this.PercentValue.GetHashCode(); if (this.RectCount != null) hashCode = hashCode * 59 + this.RectCount.GetHashCode(); if (this.ExpectedCount != null) @@ -264,7 +400,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - foreach(var x in base.BaseValidate(validationContext)) yield return x; yield break; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/GetTransactionsByTagResponse.cs b/src/Regula.DocumentReader.WebClient/Model/GetTransactionsByTagResponse.cs index eb6eb63..178f714 100644 --- a/src/Regula.DocumentReader.WebClient/Model/GetTransactionsByTagResponse.cs +++ b/src/Regula.DocumentReader.WebClient/Model/GetTransactionsByTagResponse.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/GraphicField.cs b/src/Regula.DocumentReader.WebClient/Model/GraphicField.cs index ac9f592..cfba6ab 100644 --- a/src/Regula.DocumentReader.WebClient/Model/GraphicField.cs +++ b/src/Regula.DocumentReader.WebClient/Model/GraphicField.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -25,7 +25,7 @@ namespace Regula.DocumentReader.WebClient.Model { /// - /// GraphicField + /// Information about one graphic field - abstract class /// [DataContract] public partial class GraphicField : IEquatable, IValidatableObject @@ -39,13 +39,9 @@ protected GraphicField() { } /// Initializes a new instance of the class. /// /// fieldType (required). + /// Graphic field symbolic name (required). /// image (required). - /// fieldRect. - /// Source data group file. Only for Result.RFID_GRAPHICS result.. - /// Index of the source record of the image with biometric information in the information data group. Only for Result.RFID_GRAPHICS result.. - /// Index of the template in the record with biometric data. Only for Result.RFID_GRAPHICS result.. - /// Index of the variant of the biometric data template. Only for Result.RFID_GRAPHICS result.. - public GraphicField(int fieldType = default(int), ImageData image = default(ImageData), RectangleCoordinates fieldRect = default(RectangleCoordinates), int rFIDOriginDG = default(int), int rFIDOriginDGTag = default(int), int rFIDOriginTagEntry = default(int), int rFIDOriginEntryView = default(int)) + public GraphicField(int fieldType = default(int), string fieldName = default(string), ImageData image = default(ImageData)) { // to ensure "fieldType" is required (not null) if (fieldType == null) @@ -57,6 +53,16 @@ protected GraphicField() { } this.FieldType = fieldType; } + // to ensure "fieldName" is required (not null) + if (fieldName == null) + { + throw new InvalidDataException("fieldName is a required property for GraphicField and cannot be null"); + } + else + { + this.FieldName = fieldName; + } + // to ensure "image" is required (not null) if (image == null) { @@ -67,11 +73,6 @@ protected GraphicField() { } this.Image = image; } - this.FieldRect = fieldRect; - this.RFIDOriginDG = rFIDOriginDG; - this.RFIDOriginDGTag = rFIDOriginDGTag; - this.RFIDOriginTagEntry = rFIDOriginTagEntry; - this.RFIDOriginEntryView = rFIDOriginEntryView; } /// @@ -81,44 +82,17 @@ protected GraphicField() { } public int FieldType { get; set; } /// - /// Gets or Sets Image - /// - [DataMember(Name="image", EmitDefaultValue=true)] - public ImageData Image { get; set; } - - /// - /// Gets or Sets FieldRect - /// - [DataMember(Name="FieldRect", EmitDefaultValue=false)] - public RectangleCoordinates FieldRect { get; set; } - - /// - /// Source data group file. Only for Result.RFID_GRAPHICS result. - /// - /// Source data group file. Only for Result.RFID_GRAPHICS result. - [DataMember(Name="RFID_OriginDG", EmitDefaultValue=false)] - public int RFIDOriginDG { get; set; } - - /// - /// Index of the source record of the image with biometric information in the information data group. Only for Result.RFID_GRAPHICS result. + /// Graphic field symbolic name /// - /// Index of the source record of the image with biometric information in the information data group. Only for Result.RFID_GRAPHICS result. - [DataMember(Name="RFID_OriginDGTag", EmitDefaultValue=false)] - public int RFIDOriginDGTag { get; set; } + /// Graphic field symbolic name + [DataMember(Name="FieldName", EmitDefaultValue=true)] + public string FieldName { get; set; } /// - /// Index of the template in the record with biometric data. Only for Result.RFID_GRAPHICS result. - /// - /// Index of the template in the record with biometric data. Only for Result.RFID_GRAPHICS result. - [DataMember(Name="RFID_OriginTagEntry", EmitDefaultValue=false)] - public int RFIDOriginTagEntry { get; set; } - - /// - /// Index of the variant of the biometric data template. Only for Result.RFID_GRAPHICS result. + /// Gets or Sets Image /// - /// Index of the variant of the biometric data template. Only for Result.RFID_GRAPHICS result. - [DataMember(Name="RFID_OriginEntryView", EmitDefaultValue=false)] - public int RFIDOriginEntryView { get; set; } + [DataMember(Name="image", EmitDefaultValue=true)] + public ImageData Image { get; set; } /// /// Returns the string presentation of the object @@ -129,12 +103,8 @@ public override string ToString() var sb = new StringBuilder(); sb.Append("class GraphicField {\n"); sb.Append(" FieldType: ").Append(FieldType).Append("\n"); + sb.Append(" FieldName: ").Append(FieldName).Append("\n"); sb.Append(" Image: ").Append(Image).Append("\n"); - sb.Append(" FieldRect: ").Append(FieldRect).Append("\n"); - sb.Append(" RFIDOriginDG: ").Append(RFIDOriginDG).Append("\n"); - sb.Append(" RFIDOriginDGTag: ").Append(RFIDOriginDGTag).Append("\n"); - sb.Append(" RFIDOriginTagEntry: ").Append(RFIDOriginTagEntry).Append("\n"); - sb.Append(" RFIDOriginEntryView: ").Append(RFIDOriginEntryView).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -174,35 +144,15 @@ public bool Equals(GraphicField input) (this.FieldType != null && this.FieldType.Equals(input.FieldType)) ) && + ( + this.FieldName == input.FieldName || + (this.FieldName != null && + this.FieldName.Equals(input.FieldName)) + ) && ( this.Image == input.Image || (this.Image != null && this.Image.Equals(input.Image)) - ) && - ( - this.FieldRect == input.FieldRect || - (this.FieldRect != null && - this.FieldRect.Equals(input.FieldRect)) - ) && - ( - this.RFIDOriginDG == input.RFIDOriginDG || - (this.RFIDOriginDG != null && - this.RFIDOriginDG.Equals(input.RFIDOriginDG)) - ) && - ( - this.RFIDOriginDGTag == input.RFIDOriginDGTag || - (this.RFIDOriginDGTag != null && - this.RFIDOriginDGTag.Equals(input.RFIDOriginDGTag)) - ) && - ( - this.RFIDOriginTagEntry == input.RFIDOriginTagEntry || - (this.RFIDOriginTagEntry != null && - this.RFIDOriginTagEntry.Equals(input.RFIDOriginTagEntry)) - ) && - ( - this.RFIDOriginEntryView == input.RFIDOriginEntryView || - (this.RFIDOriginEntryView != null && - this.RFIDOriginEntryView.Equals(input.RFIDOriginEntryView)) ); } @@ -217,18 +167,10 @@ public override int GetHashCode() int hashCode = 41; if (this.FieldType != null) hashCode = hashCode * 59 + this.FieldType.GetHashCode(); + if (this.FieldName != null) + hashCode = hashCode * 59 + this.FieldName.GetHashCode(); if (this.Image != null) hashCode = hashCode * 59 + this.Image.GetHashCode(); - if (this.FieldRect != null) - hashCode = hashCode * 59 + this.FieldRect.GetHashCode(); - if (this.RFIDOriginDG != null) - hashCode = hashCode * 59 + this.RFIDOriginDG.GetHashCode(); - if (this.RFIDOriginDGTag != null) - hashCode = hashCode * 59 + this.RFIDOriginDGTag.GetHashCode(); - if (this.RFIDOriginTagEntry != null) - hashCode = hashCode * 59 + this.RFIDOriginTagEntry.GetHashCode(); - if (this.RFIDOriginEntryView != null) - hashCode = hashCode * 59 + this.RFIDOriginEntryView.GetHashCode(); return hashCode; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/GraphicFieldRect.cs b/src/Regula.DocumentReader.WebClient/Model/GraphicFieldRect.cs new file mode 100644 index 0000000..04f3cca --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/GraphicFieldRect.cs @@ -0,0 +1,214 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Information about one graphic field, which is a rectangle + /// + [DataContract] + public partial class GraphicFieldRect : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GraphicFieldRect() { } + /// + /// Initializes a new instance of the class. + /// + /// fieldRect (required). + /// fieldType (required). + /// Graphic field symbolic name (required). + /// image (required). + public GraphicFieldRect(RectangleCoordinates fieldRect = default(RectangleCoordinates), int fieldType = default(int), string fieldName = default(string), ImageData image = default(ImageData)) + { + // to ensure "fieldRect" is required (not null) + if (fieldRect == null) + { + throw new InvalidDataException("fieldRect is a required property for GraphicFieldRect and cannot be null"); + } + else + { + this.FieldRect = fieldRect; + } + + // to ensure "fieldType" is required (not null) + if (fieldType == null) + { + throw new InvalidDataException("fieldType is a required property for GraphicFieldRect and cannot be null"); + } + else + { + this.FieldType = fieldType; + } + + // to ensure "fieldName" is required (not null) + if (fieldName == null) + { + throw new InvalidDataException("fieldName is a required property for GraphicFieldRect and cannot be null"); + } + else + { + this.FieldName = fieldName; + } + + // to ensure "image" is required (not null) + if (image == null) + { + throw new InvalidDataException("image is a required property for GraphicFieldRect and cannot be null"); + } + else + { + this.Image = image; + } + + } + + /// + /// Gets or Sets FieldRect + /// + [DataMember(Name="FieldRect", EmitDefaultValue=true)] + public RectangleCoordinates FieldRect { get; set; } + + /// + /// Gets or Sets FieldType + /// + [DataMember(Name="FieldType", EmitDefaultValue=true)] + public int FieldType { get; set; } + + /// + /// Graphic field symbolic name + /// + /// Graphic field symbolic name + [DataMember(Name="FieldName", EmitDefaultValue=true)] + public string FieldName { get; set; } + + /// + /// Gets or Sets Image + /// + [DataMember(Name="image", EmitDefaultValue=true)] + public ImageData Image { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GraphicFieldRect {\n"); + sb.Append(" FieldRect: ").Append(FieldRect).Append("\n"); + sb.Append(" FieldType: ").Append(FieldType).Append("\n"); + sb.Append(" FieldName: ").Append(FieldName).Append("\n"); + sb.Append(" Image: ").Append(Image).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GraphicFieldRect); + } + + /// + /// Returns true if GraphicFieldRect instances are equal + /// + /// Instance of GraphicFieldRect to be compared + /// Boolean + public bool Equals(GraphicFieldRect input) + { + if (input == null) + return false; + + return + ( + this.FieldRect == input.FieldRect || + (this.FieldRect != null && + this.FieldRect.Equals(input.FieldRect)) + ) && + ( + this.FieldType == input.FieldType || + (this.FieldType != null && + this.FieldType.Equals(input.FieldType)) + ) && + ( + this.FieldName == input.FieldName || + (this.FieldName != null && + this.FieldName.Equals(input.FieldName)) + ) && + ( + this.Image == input.Image || + (this.Image != null && + this.Image.Equals(input.Image)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.FieldRect != null) + hashCode = hashCode * 59 + this.FieldRect.GetHashCode(); + if (this.FieldType != null) + hashCode = hashCode * 59 + this.FieldType.GetHashCode(); + if (this.FieldName != null) + hashCode = hashCode * 59 + this.FieldName.GetHashCode(); + if (this.Image != null) + hashCode = hashCode * 59 + this.Image.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/GraphicFieldRfid.cs b/src/Regula.DocumentReader.WebClient/Model/GraphicFieldRfid.cs new file mode 100644 index 0000000..b8399d4 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/GraphicFieldRfid.cs @@ -0,0 +1,292 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Information about one graphic field, which is a RFID + /// + [DataContract] + public partial class GraphicFieldRfid : IEquatable, IValidatableObject + { + /// + /// Gets or Sets RFIDOriginDG + /// + [DataMember(Name="RFID_OriginDG", EmitDefaultValue=true)] + public RfidDataGroupTypeTag RFIDOriginDG { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected GraphicFieldRfid() { } + /// + /// Initializes a new instance of the class. + /// + /// rFIDOriginDG (required). + /// Index of the source record of the image with biometric information in the information data group. Only for Result.RFID_GRAPHICS result. (required). + /// Index of the template in the record with biometric data. Only for Result.RFID_GRAPHICS result. (required). + /// Index of the variant of the biometric data template. Only for Result.RFID_GRAPHICS result. (required). + /// fieldType (required). + /// Graphic field symbolic name (required). + /// image (required). + public GraphicFieldRfid(RfidDataGroupTypeTag rFIDOriginDG = default(RfidDataGroupTypeTag), int rFIDOriginDGTag = default(int), int rFIDOriginTagEntry = default(int), int rFIDOriginEntryView = default(int), int fieldType = default(int), string fieldName = default(string), ImageData image = default(ImageData)) + { + // to ensure "rFIDOriginDG" is required (not null) + if (rFIDOriginDG == null) + { + throw new InvalidDataException("rFIDOriginDG is a required property for GraphicFieldRfid and cannot be null"); + } + else + { + this.RFIDOriginDG = rFIDOriginDG; + } + + // to ensure "rFIDOriginDGTag" is required (not null) + if (rFIDOriginDGTag == null) + { + throw new InvalidDataException("rFIDOriginDGTag is a required property for GraphicFieldRfid and cannot be null"); + } + else + { + this.RFIDOriginDGTag = rFIDOriginDGTag; + } + + // to ensure "rFIDOriginTagEntry" is required (not null) + if (rFIDOriginTagEntry == null) + { + throw new InvalidDataException("rFIDOriginTagEntry is a required property for GraphicFieldRfid and cannot be null"); + } + else + { + this.RFIDOriginTagEntry = rFIDOriginTagEntry; + } + + // to ensure "rFIDOriginEntryView" is required (not null) + if (rFIDOriginEntryView == null) + { + throw new InvalidDataException("rFIDOriginEntryView is a required property for GraphicFieldRfid and cannot be null"); + } + else + { + this.RFIDOriginEntryView = rFIDOriginEntryView; + } + + // to ensure "fieldType" is required (not null) + if (fieldType == null) + { + throw new InvalidDataException("fieldType is a required property for GraphicFieldRfid and cannot be null"); + } + else + { + this.FieldType = fieldType; + } + + // to ensure "fieldName" is required (not null) + if (fieldName == null) + { + throw new InvalidDataException("fieldName is a required property for GraphicFieldRfid and cannot be null"); + } + else + { + this.FieldName = fieldName; + } + + // to ensure "image" is required (not null) + if (image == null) + { + throw new InvalidDataException("image is a required property for GraphicFieldRfid and cannot be null"); + } + else + { + this.Image = image; + } + + } + + + /// + /// Index of the source record of the image with biometric information in the information data group. Only for Result.RFID_GRAPHICS result. + /// + /// Index of the source record of the image with biometric information in the information data group. Only for Result.RFID_GRAPHICS result. + [DataMember(Name="RFID_OriginDGTag", EmitDefaultValue=true)] + public int RFIDOriginDGTag { get; set; } + + /// + /// Index of the template in the record with biometric data. Only for Result.RFID_GRAPHICS result. + /// + /// Index of the template in the record with biometric data. Only for Result.RFID_GRAPHICS result. + [DataMember(Name="RFID_OriginTagEntry", EmitDefaultValue=true)] + public int RFIDOriginTagEntry { get; set; } + + /// + /// Index of the variant of the biometric data template. Only for Result.RFID_GRAPHICS result. + /// + /// Index of the variant of the biometric data template. Only for Result.RFID_GRAPHICS result. + [DataMember(Name="RFID_OriginEntryView", EmitDefaultValue=true)] + public int RFIDOriginEntryView { get; set; } + + /// + /// Gets or Sets FieldType + /// + [DataMember(Name="FieldType", EmitDefaultValue=true)] + public int FieldType { get; set; } + + /// + /// Graphic field symbolic name + /// + /// Graphic field symbolic name + [DataMember(Name="FieldName", EmitDefaultValue=true)] + public string FieldName { get; set; } + + /// + /// Gets or Sets Image + /// + [DataMember(Name="image", EmitDefaultValue=true)] + public ImageData Image { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GraphicFieldRfid {\n"); + sb.Append(" RFIDOriginDG: ").Append(RFIDOriginDG).Append("\n"); + sb.Append(" RFIDOriginDGTag: ").Append(RFIDOriginDGTag).Append("\n"); + sb.Append(" RFIDOriginTagEntry: ").Append(RFIDOriginTagEntry).Append("\n"); + sb.Append(" RFIDOriginEntryView: ").Append(RFIDOriginEntryView).Append("\n"); + sb.Append(" FieldType: ").Append(FieldType).Append("\n"); + sb.Append(" FieldName: ").Append(FieldName).Append("\n"); + sb.Append(" Image: ").Append(Image).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GraphicFieldRfid); + } + + /// + /// Returns true if GraphicFieldRfid instances are equal + /// + /// Instance of GraphicFieldRfid to be compared + /// Boolean + public bool Equals(GraphicFieldRfid input) + { + if (input == null) + return false; + + return + ( + this.RFIDOriginDG == input.RFIDOriginDG || + (this.RFIDOriginDG != null && + this.RFIDOriginDG.Equals(input.RFIDOriginDG)) + ) && + ( + this.RFIDOriginDGTag == input.RFIDOriginDGTag || + (this.RFIDOriginDGTag != null && + this.RFIDOriginDGTag.Equals(input.RFIDOriginDGTag)) + ) && + ( + this.RFIDOriginTagEntry == input.RFIDOriginTagEntry || + (this.RFIDOriginTagEntry != null && + this.RFIDOriginTagEntry.Equals(input.RFIDOriginTagEntry)) + ) && + ( + this.RFIDOriginEntryView == input.RFIDOriginEntryView || + (this.RFIDOriginEntryView != null && + this.RFIDOriginEntryView.Equals(input.RFIDOriginEntryView)) + ) && + ( + this.FieldType == input.FieldType || + (this.FieldType != null && + this.FieldType.Equals(input.FieldType)) + ) && + ( + this.FieldName == input.FieldName || + (this.FieldName != null && + this.FieldName.Equals(input.FieldName)) + ) && + ( + this.Image == input.Image || + (this.Image != null && + this.Image.Equals(input.Image)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RFIDOriginDG != null) + hashCode = hashCode * 59 + this.RFIDOriginDG.GetHashCode(); + if (this.RFIDOriginDGTag != null) + hashCode = hashCode * 59 + this.RFIDOriginDGTag.GetHashCode(); + if (this.RFIDOriginTagEntry != null) + hashCode = hashCode * 59 + this.RFIDOriginTagEntry.GetHashCode(); + if (this.RFIDOriginEntryView != null) + hashCode = hashCode * 59 + this.RFIDOriginEntryView.GetHashCode(); + if (this.FieldType != null) + hashCode = hashCode * 59 + this.FieldType.GetHashCode(); + if (this.FieldName != null) + hashCode = hashCode * 59 + this.FieldName.GetHashCode(); + if (this.Image != null) + hashCode = hashCode * 59 + this.Image.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/GraphicFieldsList.cs b/src/Regula.DocumentReader.WebClient/Model/GraphicFieldsList.cs index 78fc60a..00d0836 100644 --- a/src/Regula.DocumentReader.WebClient/Model/GraphicFieldsList.cs +++ b/src/Regula.DocumentReader.WebClient/Model/GraphicFieldsList.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,7 +39,8 @@ protected GraphicFieldsList() { } /// Initializes a new instance of the class. /// /// pArrayFields (required). - public GraphicFieldsList(List pArrayFields = default(List)) + /// Number of pArrayFields array elements (required). + public GraphicFieldsList(List pArrayFields = default(List), decimal nFields = default(decimal)) { // to ensure "pArrayFields" is required (not null) if (pArrayFields == null) @@ -51,13 +52,30 @@ protected GraphicFieldsList() { } this.PArrayFields = pArrayFields; } + // to ensure "nFields" is required (not null) + if (nFields == null) + { + throw new InvalidDataException("nFields is a required property for GraphicFieldsList and cannot be null"); + } + else + { + this.NFields = nFields; + } + } /// /// Gets or Sets PArrayFields /// [DataMember(Name="pArrayFields", EmitDefaultValue=true)] - public List PArrayFields { get; set; } + public List PArrayFields { get; set; } + + /// + /// Number of pArrayFields array elements + /// + /// Number of pArrayFields array elements + [DataMember(Name="nFields", EmitDefaultValue=true)] + public decimal NFields { get; set; } /// /// Returns the string presentation of the object @@ -68,6 +86,7 @@ public override string ToString() var sb = new StringBuilder(); sb.Append("class GraphicFieldsList {\n"); sb.Append(" PArrayFields: ").Append(PArrayFields).Append("\n"); + sb.Append(" NFields: ").Append(NFields).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -107,6 +126,11 @@ public bool Equals(GraphicFieldsList input) this.PArrayFields != null && input.PArrayFields != null && this.PArrayFields.SequenceEqual(input.PArrayFields) + ) && + ( + this.NFields == input.NFields || + (this.NFields != null && + this.NFields.Equals(input.NFields)) ); } @@ -121,6 +145,8 @@ public override int GetHashCode() int hashCode = 41; if (this.PArrayFields != null) hashCode = hashCode * 59 + this.PArrayFields.GetHashCode(); + if (this.NFields != null) + hashCode = hashCode * 59 + this.NFields.GetHashCode(); return hashCode; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/GraphicsResult.cs b/src/Regula.DocumentReader.WebClient/Model/GraphicsResult.cs index 6713880..7919e7e 100644 --- a/src/Regula.DocumentReader.WebClient/Model/GraphicsResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/GraphicsResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/Healthcheck.cs b/src/Regula.DocumentReader.WebClient/Model/Healthcheck.cs index 3bb58d7..4abff1e 100644 --- a/src/Regula.DocumentReader.WebClient/Model/Healthcheck.cs +++ b/src/Regula.DocumentReader.WebClient/Model/Healthcheck.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/HealthcheckDocumentsDatabase.cs b/src/Regula.DocumentReader.WebClient/Model/HealthcheckDocumentsDatabase.cs index 8374551..4270e2c 100644 --- a/src/Regula.DocumentReader.WebClient/Model/HealthcheckDocumentsDatabase.cs +++ b/src/Regula.DocumentReader.WebClient/Model/HealthcheckDocumentsDatabase.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/IdentResult.cs b/src/Regula.DocumentReader.WebClient/Model/IdentResult.cs index bacec7f..a04b751 100644 --- a/src/Regula.DocumentReader.WebClient/Model/IdentResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/IdentResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -28,7 +28,7 @@ namespace Regula.DocumentReader.WebClient.Model /// IdentResult /// [DataContract] - public partial class IdentResult : AuthenticityCheckResultItem, IEquatable, IValidatableObject + public partial class IdentResult : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -38,50 +38,137 @@ protected IdentResult() { } /// /// Initializes a new instance of the class. /// - /// elementType. - /// lightIndex. - /// area. - /// image. - /// etalonImage. + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ (required) (default to 0). + /// elementResult. + /// elementDiagnose. + /// percentValue. + /// elementType (required). + /// lightIndex (required). + /// area (required). + /// image (required). + /// etalonImage (required). /// areaList. - public IdentResult(int elementType = default(int), int lightIndex = default(int), RectangleCoordinates area = default(RectangleCoordinates), ImageData image = default(ImageData), ImageData etalonImage = default(ImageData), AreaContainer areaList = default(AreaContainer), int type = 0, int elementResult = default(int), int elementDiagnose = default(int), int percentValue = default(int)) : base(type, elementResult, elementDiagnose, percentValue) + public IdentResult(int type = 0, int elementResult = default(int), int elementDiagnose = default(int), int percentValue = default(int), int elementType = default(int), int lightIndex = default(int), RectangleCoordinates area = default(RectangleCoordinates), ImageData image = default(ImageData), ImageData etalonImage = default(ImageData), AreaContainer areaList = default(AreaContainer)) { - this.ElementType = elementType; - this.LightIndex = lightIndex; - this.Area = area; - this.Image = image; - this.EtalonImage = etalonImage; + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for IdentResult and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "elementType" is required (not null) + if (elementType == null) + { + throw new InvalidDataException("elementType is a required property for IdentResult and cannot be null"); + } + else + { + this.ElementType = elementType; + } + + // to ensure "lightIndex" is required (not null) + if (lightIndex == null) + { + throw new InvalidDataException("lightIndex is a required property for IdentResult and cannot be null"); + } + else + { + this.LightIndex = lightIndex; + } + + // to ensure "area" is required (not null) + if (area == null) + { + throw new InvalidDataException("area is a required property for IdentResult and cannot be null"); + } + else + { + this.Area = area; + } + + // to ensure "image" is required (not null) + if (image == null) + { + throw new InvalidDataException("image is a required property for IdentResult and cannot be null"); + } + else + { + this.Image = image; + } + + // to ensure "etalonImage" is required (not null) + if (etalonImage == null) + { + throw new InvalidDataException("etalonImage is a required property for IdentResult and cannot be null"); + } + else + { + this.EtalonImage = etalonImage; + } + + this.ElementResult = elementResult; + this.ElementDiagnose = elementDiagnose; + this.PercentValue = percentValue; this.AreaList = areaList; } + /// + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ + /// + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ + [DataMember(Name="Type", EmitDefaultValue=true)] + public int Type { get; set; } + + /// + /// Gets or Sets ElementResult + /// + [DataMember(Name="ElementResult", EmitDefaultValue=false)] + public int ElementResult { get; set; } + + /// + /// Gets or Sets ElementDiagnose + /// + [DataMember(Name="ElementDiagnose", EmitDefaultValue=false)] + public int ElementDiagnose { get; set; } + + /// + /// Gets or Sets PercentValue + /// + [DataMember(Name="PercentValue", EmitDefaultValue=false)] + public int PercentValue { get; set; } + /// /// Gets or Sets ElementType /// - [DataMember(Name="ElementType", EmitDefaultValue=false)] + [DataMember(Name="ElementType", EmitDefaultValue=true)] public int ElementType { get; set; } /// /// Gets or Sets LightIndex /// - [DataMember(Name="LightIndex", EmitDefaultValue=false)] + [DataMember(Name="LightIndex", EmitDefaultValue=true)] public int LightIndex { get; set; } /// /// Gets or Sets Area /// - [DataMember(Name="Area", EmitDefaultValue=false)] + [DataMember(Name="Area", EmitDefaultValue=true)] public RectangleCoordinates Area { get; set; } /// /// Gets or Sets Image /// - [DataMember(Name="Image", EmitDefaultValue=false)] + [DataMember(Name="Image", EmitDefaultValue=true)] public ImageData Image { get; set; } /// /// Gets or Sets EtalonImage /// - [DataMember(Name="EtalonImage", EmitDefaultValue=false)] + [DataMember(Name="EtalonImage", EmitDefaultValue=true)] public ImageData EtalonImage { get; set; } /// @@ -98,7 +185,10 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class IdentResult {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ElementResult: ").Append(ElementResult).Append("\n"); + sb.Append(" ElementDiagnose: ").Append(ElementDiagnose).Append("\n"); + sb.Append(" PercentValue: ").Append(PercentValue).Append("\n"); sb.Append(" ElementType: ").Append(ElementType).Append("\n"); sb.Append(" LightIndex: ").Append(LightIndex).Append("\n"); sb.Append(" Area: ").Append(Area).Append("\n"); @@ -113,7 +203,7 @@ public override string ToString() /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object - public override string ToJson() + public virtual string ToJson() { return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } @@ -138,32 +228,52 @@ public bool Equals(IdentResult input) if (input == null) return false; - return base.Equals(input) && + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.ElementResult == input.ElementResult || + (this.ElementResult != null && + this.ElementResult.Equals(input.ElementResult)) + ) && + ( + this.ElementDiagnose == input.ElementDiagnose || + (this.ElementDiagnose != null && + this.ElementDiagnose.Equals(input.ElementDiagnose)) + ) && + ( + this.PercentValue == input.PercentValue || + (this.PercentValue != null && + this.PercentValue.Equals(input.PercentValue)) + ) && ( this.ElementType == input.ElementType || (this.ElementType != null && this.ElementType.Equals(input.ElementType)) - ) && base.Equals(input) && + ) && ( this.LightIndex == input.LightIndex || (this.LightIndex != null && this.LightIndex.Equals(input.LightIndex)) - ) && base.Equals(input) && + ) && ( this.Area == input.Area || (this.Area != null && this.Area.Equals(input.Area)) - ) && base.Equals(input) && + ) && ( this.Image == input.Image || (this.Image != null && this.Image.Equals(input.Image)) - ) && base.Equals(input) && + ) && ( this.EtalonImage == input.EtalonImage || (this.EtalonImage != null && this.EtalonImage.Equals(input.EtalonImage)) - ) && base.Equals(input) && + ) && ( this.AreaList == input.AreaList || (this.AreaList != null && @@ -179,7 +289,15 @@ public override int GetHashCode() { unchecked // Overflow is fine, just wrap { - int hashCode = base.GetHashCode(); + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.ElementResult != null) + hashCode = hashCode * 59 + this.ElementResult.GetHashCode(); + if (this.ElementDiagnose != null) + hashCode = hashCode * 59 + this.ElementDiagnose.GetHashCode(); + if (this.PercentValue != null) + hashCode = hashCode * 59 + this.PercentValue.GetHashCode(); if (this.ElementType != null) hashCode = hashCode * 59 + this.ElementType.GetHashCode(); if (this.LightIndex != null) @@ -203,7 +321,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - foreach(var x in base.BaseValidate(validationContext)) yield return x; yield break; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/ImageData.cs b/src/Regula.DocumentReader.WebClient/Model/ImageData.cs index 9dd1825..985f00d 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ImageData.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ImageData.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs b/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs index f9aa0c0..8a331b9 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,8 +39,9 @@ public partial class ImageQA : IEquatable, IValidatableObject /// This option enables focus check while performing image quality validation.. /// This option enables glares check while performing image quality validation.. /// This option enables colorness check while performing image quality validation.. + /// This option enables screen capture (moire patterns) check while performing image quality validation.. /// This parameter specifies the necessary margin. Default 0.. - 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?), int documentPositionIndent = default(int)) + 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)) { this.BrightnessThreshold = brightnessThreshold; this.DpiThreshold = dpiThreshold; @@ -48,6 +49,7 @@ public partial class ImageQA : IEquatable, IValidatableObject this.FocusCheck = focusCheck; this.GlaresCheck = glaresCheck; this.ColornessCheck = colornessCheck; + this.MoireCheck = moireCheck; this.DocumentPositionIndent = documentPositionIndent; } @@ -93,6 +95,13 @@ public partial class ImageQA : IEquatable, IValidatableObject [DataMember(Name="colornessCheck", EmitDefaultValue=false)] public bool? ColornessCheck { get; set; } + /// + /// This option enables screen capture (moire patterns) check while performing image quality validation. + /// + /// This option enables screen capture (moire patterns) check while performing image quality validation. + [DataMember(Name="moireCheck", EmitDefaultValue=false)] + public bool? MoireCheck { get; set; } + /// /// This parameter specifies the necessary margin. Default 0. /// @@ -114,6 +123,7 @@ public override string ToString() sb.Append(" FocusCheck: ").Append(FocusCheck).Append("\n"); sb.Append(" GlaresCheck: ").Append(GlaresCheck).Append("\n"); sb.Append(" ColornessCheck: ").Append(ColornessCheck).Append("\n"); + sb.Append(" MoireCheck: ").Append(MoireCheck).Append("\n"); sb.Append(" DocumentPositionIndent: ").Append(DocumentPositionIndent).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -179,6 +189,11 @@ public bool Equals(ImageQA input) (this.ColornessCheck != null && this.ColornessCheck.Equals(input.ColornessCheck)) ) && + ( + this.MoireCheck == input.MoireCheck || + (this.MoireCheck != null && + this.MoireCheck.Equals(input.MoireCheck)) + ) && ( this.DocumentPositionIndent == input.DocumentPositionIndent || (this.DocumentPositionIndent != null && @@ -207,6 +222,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.GlaresCheck.GetHashCode(); if (this.ColornessCheck != null) hashCode = hashCode * 59 + this.ColornessCheck.GetHashCode(); + if (this.MoireCheck != null) + hashCode = hashCode * 59 + this.MoireCheck.GetHashCode(); if (this.DocumentPositionIndent != null) hashCode = hashCode * 59 + this.DocumentPositionIndent.GetHashCode(); return hashCode; diff --git a/src/Regula.DocumentReader.WebClient/Model/ImageQualityCheck.cs b/src/Regula.DocumentReader.WebClient/Model/ImageQualityCheck.cs index 21a6566..25d6478 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ImageQualityCheck.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ImageQualityCheck.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,40 +33,99 @@ public partial class ImageQualityCheck : IEquatable, IValida /// /// Initializes a new instance of the class. /// - /// type. - /// result. - /// featureType. + [JsonConstructorAttribute] + protected ImageQualityCheck() { } + /// + /// Initializes a new instance of the class. + /// + /// type (required). + /// result (required). + /// featureType (required). /// areas. - /// mean. - /// stdDev. - /// probability. + /// Check mean value (required). + /// Check deviation value (required). + /// Check probability value (required). public ImageQualityCheck(int type = default(int), int result = default(int), int featureType = default(int), AreaArray areas = default(AreaArray), float mean = default(float), float stdDev = default(float), int probability = default(int)) { - this.Type = type; - this.Result = result; - this.FeatureType = featureType; + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for ImageQualityCheck and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "result" is required (not null) + if (result == null) + { + throw new InvalidDataException("result is a required property for ImageQualityCheck and cannot be null"); + } + else + { + this.Result = result; + } + + // to ensure "featureType" is required (not null) + if (featureType == null) + { + throw new InvalidDataException("featureType is a required property for ImageQualityCheck and cannot be null"); + } + else + { + this.FeatureType = featureType; + } + + // to ensure "mean" is required (not null) + if (mean == null) + { + throw new InvalidDataException("mean is a required property for ImageQualityCheck and cannot be null"); + } + else + { + this.Mean = mean; + } + + // to ensure "stdDev" is required (not null) + if (stdDev == null) + { + throw new InvalidDataException("stdDev is a required property for ImageQualityCheck and cannot be null"); + } + else + { + this.StdDev = stdDev; + } + + // to ensure "probability" is required (not null) + if (probability == null) + { + throw new InvalidDataException("probability is a required property for ImageQualityCheck and cannot be null"); + } + else + { + this.Probability = probability; + } + this.Areas = areas; - this.Mean = mean; - this.StdDev = stdDev; - this.Probability = probability; } /// /// Gets or Sets Type /// - [DataMember(Name="type", EmitDefaultValue=false)] + [DataMember(Name="type", EmitDefaultValue=true)] public int Type { get; set; } /// /// Gets or Sets Result /// - [DataMember(Name="result", EmitDefaultValue=false)] + [DataMember(Name="result", EmitDefaultValue=true)] public int Result { get; set; } /// /// Gets or Sets FeatureType /// - [DataMember(Name="featureType", EmitDefaultValue=false)] + [DataMember(Name="featureType", EmitDefaultValue=true)] public int FeatureType { get; set; } /// @@ -76,21 +135,24 @@ public partial class ImageQualityCheck : IEquatable, IValida public AreaArray Areas { get; set; } /// - /// Gets or Sets Mean + /// Check mean value /// - [DataMember(Name="mean", EmitDefaultValue=false)] + /// Check mean value + [DataMember(Name="mean", EmitDefaultValue=true)] public float Mean { get; set; } /// - /// Gets or Sets StdDev + /// Check deviation value /// - [DataMember(Name="std_dev", EmitDefaultValue=false)] + /// Check deviation value + [DataMember(Name="std_dev", EmitDefaultValue=true)] public float StdDev { get; set; } /// - /// Gets or Sets Probability + /// Check probability value /// - [DataMember(Name="probability", EmitDefaultValue=false)] + /// Check probability value + [DataMember(Name="probability", EmitDefaultValue=true)] public int Probability { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/ImageQualityCheckList.cs b/src/Regula.DocumentReader.WebClient/Model/ImageQualityCheckList.cs index 168aedb..e9a533f 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ImageQualityCheckList.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ImageQualityCheckList.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,7 +40,8 @@ protected ImageQualityCheckList() { } /// /// result (required). /// list (required). - public ImageQualityCheckList(int result = default(int), List list = default(List)) + /// Number of List array elements (required). + public ImageQualityCheckList(int result = default(int), List list = default(List), decimal count = default(decimal)) { // to ensure "result" is required (not null) if (result == null) @@ -62,6 +63,16 @@ protected ImageQualityCheckList() { } this.List = list; } + // to ensure "count" is required (not null) + if (count == null) + { + throw new InvalidDataException("count is a required property for ImageQualityCheckList and cannot be null"); + } + else + { + this.Count = count; + } + } /// @@ -76,6 +87,13 @@ protected ImageQualityCheckList() { } [DataMember(Name="List", EmitDefaultValue=true)] public List List { get; set; } + /// + /// Number of List array elements + /// + /// Number of List array elements + [DataMember(Name="Count", EmitDefaultValue=true)] + public decimal Count { get; set; } + /// /// Returns the string presentation of the object /// @@ -86,6 +104,7 @@ public override string ToString() sb.Append("class ImageQualityCheckList {\n"); sb.Append(" Result: ").Append(Result).Append("\n"); sb.Append(" List: ").Append(List).Append("\n"); + sb.Append(" Count: ").Append(Count).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -130,6 +149,11 @@ public bool Equals(ImageQualityCheckList input) this.List != null && input.List != null && this.List.SequenceEqual(input.List) + ) && + ( + this.Count == input.Count || + (this.Count != null && + this.Count.Equals(input.Count)) ); } @@ -146,6 +170,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Result.GetHashCode(); if (this.List != null) hashCode = hashCode * 59 + this.List.GetHashCode(); + if (this.Count != null) + hashCode = hashCode * 59 + this.Count.GetHashCode(); return hashCode; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/ImageQualityResult.cs b/src/Regula.DocumentReader.WebClient/Model/ImageQualityResult.cs index 3bf8fd2..fe4a8bf 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ImageQualityResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ImageQualityResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/ImageTransactionData.cs b/src/Regula.DocumentReader.WebClient/Model/ImageTransactionData.cs index 9267b54..cb7786a 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ImageTransactionData.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ImageTransactionData.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/Images.cs b/src/Regula.DocumentReader.WebClient/Model/Images.cs index deb51b7..a8fc124 100644 --- a/src/Regula.DocumentReader.WebClient/Model/Images.cs +++ b/src/Regula.DocumentReader.WebClient/Model/Images.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,10 +38,32 @@ protected Images() { } /// /// Initializes a new instance of the class. /// + /// Fields count (required). + /// Available sources count (required). /// availableSourceList (required). /// fieldList (required). - public Images(List availableSourceList = default(List), List fieldList = default(List)) + public Images(int fieldCount = default(int), int availableSourceCount = default(int), List availableSourceList = default(List), List fieldList = default(List)) { + // to ensure "fieldCount" is required (not null) + if (fieldCount == null) + { + throw new InvalidDataException("fieldCount is a required property for Images and cannot be null"); + } + else + { + this.FieldCount = fieldCount; + } + + // to ensure "availableSourceCount" is required (not null) + if (availableSourceCount == null) + { + throw new InvalidDataException("availableSourceCount is a required property for Images and cannot be null"); + } + else + { + this.AvailableSourceCount = availableSourceCount; + } + // to ensure "availableSourceList" is required (not null) if (availableSourceList == null) { @@ -64,6 +86,20 @@ protected Images() { } } + /// + /// Fields count + /// + /// Fields count + [DataMember(Name="fieldCount", EmitDefaultValue=true)] + public int FieldCount { get; set; } + + /// + /// Available sources count + /// + /// Available sources count + [DataMember(Name="availableSourceCount", EmitDefaultValue=true)] + public int AvailableSourceCount { get; set; } + /// /// Gets or Sets AvailableSourceList /// @@ -84,6 +120,8 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class Images {\n"); + sb.Append(" FieldCount: ").Append(FieldCount).Append("\n"); + sb.Append(" AvailableSourceCount: ").Append(AvailableSourceCount).Append("\n"); sb.Append(" AvailableSourceList: ").Append(AvailableSourceList).Append("\n"); sb.Append(" FieldList: ").Append(FieldList).Append("\n"); sb.Append("}\n"); @@ -120,6 +158,16 @@ public bool Equals(Images input) return false; return + ( + this.FieldCount == input.FieldCount || + (this.FieldCount != null && + this.FieldCount.Equals(input.FieldCount)) + ) && + ( + this.AvailableSourceCount == input.AvailableSourceCount || + (this.AvailableSourceCount != null && + this.AvailableSourceCount.Equals(input.AvailableSourceCount)) + ) && ( this.AvailableSourceList == input.AvailableSourceList || this.AvailableSourceList != null && @@ -143,6 +191,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.FieldCount != null) + hashCode = hashCode * 59 + this.FieldCount.GetHashCode(); + if (this.AvailableSourceCount != null) + hashCode = hashCode * 59 + this.AvailableSourceCount.GetHashCode(); if (this.AvailableSourceList != null) hashCode = hashCode * 59 + this.AvailableSourceList.GetHashCode(); if (this.FieldList != null) diff --git a/src/Regula.DocumentReader.WebClient/Model/ImagesAvailableSource.cs b/src/Regula.DocumentReader.WebClient/Model/ImagesAvailableSource.cs index fb6c082..baacf68 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ImagesAvailableSource.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ImagesAvailableSource.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,36 +38,37 @@ protected ImagesAvailableSource() { } /// /// Initializes a new instance of the class. /// - /// Same as Result type, but used for safe parsing of not-described values. See Result type. (default to 0). + /// Same as Result type, but used for safe parsing of not-described values. See Result type. (required) (default to 0). /// source (required). public ImagesAvailableSource(int containerType = 0, string source = default(string)) { - // to ensure "source" is required (not null) - if (source == null) + // to ensure "containerType" is required (not null) + if (containerType == null) { - throw new InvalidDataException("source is a required property for ImagesAvailableSource and cannot be null"); + throw new InvalidDataException("containerType is a required property for ImagesAvailableSource and cannot be null"); } else { - this.Source = source; + this.ContainerType = containerType; } - // use default value if no "containerType" provided - if (containerType == null) + // to ensure "source" is required (not null) + if (source == null) { - this.ContainerType = 0; + throw new InvalidDataException("source is a required property for ImagesAvailableSource and cannot be null"); } else { - this.ContainerType = containerType; + this.Source = source; } + } /// /// Same as Result type, but used for safe parsing of not-described values. See Result type. /// /// Same as Result type, but used for safe parsing of not-described values. See Result type. - [DataMember(Name="containerType", EmitDefaultValue=false)] + [DataMember(Name="containerType", EmitDefaultValue=true)] public int ContainerType { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/ImagesField.cs b/src/Regula.DocumentReader.WebClient/Model/ImagesField.cs index 5af43c0..87eecf1 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ImagesField.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ImagesField.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,7 +41,8 @@ protected ImagesField() { } /// Human readable field name. Do not bind to this name - use GraphicFieldType instead. (required). /// fieldType (required). /// valueList (required). - public ImagesField(string fieldName = default(string), int fieldType = default(int), List valueList = default(List)) + /// Field value count (required). + public ImagesField(string fieldName = default(string), int fieldType = default(int), List valueList = default(List), decimal valueCount = default(decimal)) { // to ensure "fieldName" is required (not null) if (fieldName == null) @@ -73,6 +74,16 @@ protected ImagesField() { } this.ValueList = valueList; } + // to ensure "valueCount" is required (not null) + if (valueCount == null) + { + throw new InvalidDataException("valueCount is a required property for ImagesField and cannot be null"); + } + else + { + this.ValueCount = valueCount; + } + } /// @@ -94,6 +105,13 @@ protected ImagesField() { } [DataMember(Name="valueList", EmitDefaultValue=true)] public List ValueList { get; set; } + /// + /// Field value count + /// + /// Field value count + [DataMember(Name="valueCount", EmitDefaultValue=true)] + public decimal ValueCount { get; set; } + /// /// Returns the string presentation of the object /// @@ -105,6 +123,7 @@ public override string ToString() sb.Append(" FieldName: ").Append(FieldName).Append("\n"); sb.Append(" FieldType: ").Append(FieldType).Append("\n"); sb.Append(" ValueList: ").Append(ValueList).Append("\n"); + sb.Append(" ValueCount: ").Append(ValueCount).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -154,6 +173,11 @@ public bool Equals(ImagesField input) this.ValueList != null && input.ValueList != null && this.ValueList.SequenceEqual(input.ValueList) + ) && + ( + this.ValueCount == input.ValueCount || + (this.ValueCount != null && + this.ValueCount.Equals(input.ValueCount)) ); } @@ -172,6 +196,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.FieldType.GetHashCode(); if (this.ValueList != null) hashCode = hashCode * 59 + this.ValueList.GetHashCode(); + if (this.ValueCount != null) + hashCode = hashCode * 59 + this.ValueCount.GetHashCode(); return hashCode; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/ImagesFieldValue.cs b/src/Regula.DocumentReader.WebClient/Model/ImagesFieldValue.cs index 0e3f49e..0e4364f 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ImagesFieldValue.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ImagesFieldValue.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,7 +39,7 @@ protected ImagesFieldValue() { } /// Initializes a new instance of the class. /// /// source (required). - /// Base64 encoded image (required). + /// Base64 encoded image. /// Base64 encoded image. /// Original page index. /// Page index of the image from input list (required). @@ -59,16 +59,6 @@ protected ImagesFieldValue() { } this.Source = source; } - // to ensure "value" is required (not null) - if (value == null) - { - throw new InvalidDataException("value is a required property for ImagesFieldValue and cannot be null"); - } - else - { - this.Value = value; - } - // to ensure "pageIndex" is required (not null) if (pageIndex == null) { @@ -99,6 +89,7 @@ protected ImagesFieldValue() { } this.ContainerType = containerType; } + this.Value = value; this.OriginalValue = originalValue; this.OriginalPageIndex = originalPageIndex; this.FieldRect = fieldRect; @@ -115,7 +106,7 @@ protected ImagesFieldValue() { } /// Base64 encoded image /// /// Base64 encoded image - [DataMember(Name="value", EmitDefaultValue=true)] + [DataMember(Name="value", EmitDefaultValue=false)] public string Value { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/ImagesResult.cs b/src/Regula.DocumentReader.WebClient/Model/ImagesResult.cs index 9bfc43c..dac704a 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ImagesResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ImagesResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/InData.cs b/src/Regula.DocumentReader.WebClient/Model/InData.cs index 07198cf..2ce6f24 100644 --- a/src/Regula.DocumentReader.WebClient/Model/InData.cs +++ b/src/Regula.DocumentReader.WebClient/Model/InData.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/InDataTransactionImagesFieldValue.cs b/src/Regula.DocumentReader.WebClient/Model/InDataTransactionImagesFieldValue.cs index 1ecd17b..93bf92d 100644 --- a/src/Regula.DocumentReader.WebClient/Model/InDataTransactionImagesFieldValue.cs +++ b/src/Regula.DocumentReader.WebClient/Model/InDataTransactionImagesFieldValue.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/InDataVideo.cs b/src/Regula.DocumentReader.WebClient/Model/InDataVideo.cs index d423b9f..587fabc 100644 --- a/src/Regula.DocumentReader.WebClient/Model/InDataVideo.cs +++ b/src/Regula.DocumentReader.WebClient/Model/InDataVideo.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/LexicalAnalysisResult.cs b/src/Regula.DocumentReader.WebClient/Model/LexicalAnalysisResult.cs index d0425d9..17b7d87 100644 --- a/src/Regula.DocumentReader.WebClient/Model/LexicalAnalysisResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/LexicalAnalysisResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,16 +38,25 @@ protected LexicalAnalysisResult() { } /// /// Initializes a new instance of the class. /// - /// listVerifiedFields. + /// listVerifiedFields (required). public LexicalAnalysisResult(ListVerifiedFields listVerifiedFields = default(ListVerifiedFields), int bufLength = default(int), int light = default(int), int listIdx = default(int), int pageIdx = default(int), int resultType = 0) : base(bufLength, light, listIdx, pageIdx, resultType) { - this.ListVerifiedFields = listVerifiedFields; + // to ensure "listVerifiedFields" is required (not null) + if (listVerifiedFields == null) + { + throw new InvalidDataException("listVerifiedFields is a required property for LexicalAnalysisResult and cannot be null"); + } + else + { + this.ListVerifiedFields = listVerifiedFields; + } + } /// /// Gets or Sets ListVerifiedFields /// - [DataMember(Name="ListVerifiedFields", EmitDefaultValue=false)] + [DataMember(Name="ListVerifiedFields", EmitDefaultValue=true)] public ListVerifiedFields ListVerifiedFields { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs b/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs index ab65b9c..d025790 100644 --- a/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/ListTransactionsByTagResponse.cs b/src/Regula.DocumentReader.WebClient/Model/ListTransactionsByTagResponse.cs index ce5be83..1de0c9e 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ListTransactionsByTagResponse.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ListTransactionsByTagResponse.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/ListVerifiedFields.cs b/src/Regula.DocumentReader.WebClient/Model/ListVerifiedFields.cs index 850e92e..ecf8356 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ListVerifiedFields.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ListVerifiedFields.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,16 +33,48 @@ public partial class ListVerifiedFields : IEquatable, IVali /// /// Initializes a new instance of the class. /// - /// pFieldMaps. - public ListVerifiedFields(List pFieldMaps = default(List)) + [JsonConstructorAttribute] + protected ListVerifiedFields() { } + /// + /// Initializes a new instance of the class. + /// + /// Number of pFieldMaps array elements (required). + /// pFieldMaps (required). + public ListVerifiedFields(decimal count = default(decimal), List pFieldMaps = default(List)) { - this.PFieldMaps = pFieldMaps; + // to ensure "count" is required (not null) + if (count == null) + { + throw new InvalidDataException("count is a required property for ListVerifiedFields and cannot be null"); + } + else + { + this.Count = count; + } + + // to ensure "pFieldMaps" is required (not null) + if (pFieldMaps == null) + { + throw new InvalidDataException("pFieldMaps is a required property for ListVerifiedFields and cannot be null"); + } + else + { + this.PFieldMaps = pFieldMaps; + } + } + /// + /// Number of pFieldMaps array elements + /// + /// Number of pFieldMaps array elements + [DataMember(Name="Count", EmitDefaultValue=true)] + public decimal Count { get; set; } + /// /// Gets or Sets PFieldMaps /// - [DataMember(Name="pFieldMaps", EmitDefaultValue=false)] + [DataMember(Name="pFieldMaps", EmitDefaultValue=true)] public List PFieldMaps { get; set; } /// @@ -53,6 +85,7 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class ListVerifiedFields {\n"); + sb.Append(" Count: ").Append(Count).Append("\n"); sb.Append(" PFieldMaps: ").Append(PFieldMaps).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -88,6 +121,11 @@ public bool Equals(ListVerifiedFields input) return false; return + ( + this.Count == input.Count || + (this.Count != null && + this.Count.Equals(input.Count)) + ) && ( this.PFieldMaps == input.PFieldMaps || this.PFieldMaps != null && @@ -105,6 +143,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.Count != null) + hashCode = hashCode * 59 + this.Count.GetHashCode(); if (this.PFieldMaps != null) hashCode = hashCode * 59 + this.PFieldMaps.GetHashCode(); return hashCode; diff --git a/src/Regula.DocumentReader.WebClient/Model/LivenessParams.cs b/src/Regula.DocumentReader.WebClient/Model/LivenessParams.cs index c269a15..daab738 100644 --- a/src/Regula.DocumentReader.WebClient/Model/LivenessParams.cs +++ b/src/Regula.DocumentReader.WebClient/Model/LivenessParams.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/MrzDetectModeEnum.cs b/src/Regula.DocumentReader.WebClient/Model/MrzDetectModeEnum.cs index 201fb38..11d9da4 100644 --- a/src/Regula.DocumentReader.WebClient/Model/MrzDetectModeEnum.cs +++ b/src/Regula.DocumentReader.WebClient/Model/MrzDetectModeEnum.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/OCRSecurityTextResult.cs b/src/Regula.DocumentReader.WebClient/Model/OCRSecurityTextResult.cs index 1119507..8ed79bd 100644 --- a/src/Regula.DocumentReader.WebClient/Model/OCRSecurityTextResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/OCRSecurityTextResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -28,7 +28,7 @@ namespace Regula.DocumentReader.WebClient.Model /// OCRSecurityTextResult /// [DataContract] - public partial class OCRSecurityTextResult : AuthenticityCheckResultItem, IEquatable, IValidatableObject + public partial class OCRSecurityTextResult : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -38,76 +38,207 @@ protected OCRSecurityTextResult() { } /// /// Initializes a new instance of the class. /// - /// criticalFlag. - /// lightType. - /// fieldRect. - /// etalonResultType. - /// etalonFieldType. - /// etalonLightType. - /// securityTextResultOCR. - /// etalonResultOCR. + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ (required) (default to 0). + /// elementResult. + /// elementDiagnose. + /// percentValue. + /// criticalFlag (required). + /// lightType (required). + /// fieldRect (required). + /// etalonResultType (required). + /// etalonFieldType (required). + /// etalonLightType (required). + /// etalonFieldRect (required). + /// securityTextResultOCR (required). + /// etalonResultOCR (required). /// reserved1. /// reserved2. - public OCRSecurityTextResult(int criticalFlag = default(int), int lightType = default(int), RectangleCoordinates fieldRect = default(RectangleCoordinates), int etalonResultType = default(int), int etalonFieldType = default(int), int etalonLightType = default(int), string securityTextResultOCR = default(string), string etalonResultOCR = default(string), int reserved1 = default(int), int reserved2 = default(int), int type = 0, int elementResult = default(int), int elementDiagnose = default(int), int percentValue = default(int)) : base(type, elementResult, elementDiagnose, percentValue) + public OCRSecurityTextResult(int type = 0, int elementResult = default(int), int elementDiagnose = default(int), int percentValue = default(int), int criticalFlag = default(int), int lightType = default(int), RectangleCoordinates fieldRect = default(RectangleCoordinates), int etalonResultType = default(int), int etalonFieldType = default(int), int etalonLightType = default(int), RectangleCoordinates etalonFieldRect = default(RectangleCoordinates), string securityTextResultOCR = default(string), string etalonResultOCR = default(string), int reserved1 = default(int), int reserved2 = default(int)) { - this.CriticalFlag = criticalFlag; - this.LightType = lightType; - this.FieldRect = fieldRect; - this.EtalonResultType = etalonResultType; - this.EtalonFieldType = etalonFieldType; - this.EtalonLightType = etalonLightType; - this.SecurityTextResultOCR = securityTextResultOCR; - this.EtalonResultOCR = etalonResultOCR; + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for OCRSecurityTextResult and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "criticalFlag" is required (not null) + if (criticalFlag == null) + { + throw new InvalidDataException("criticalFlag is a required property for OCRSecurityTextResult and cannot be null"); + } + else + { + this.CriticalFlag = criticalFlag; + } + + // to ensure "lightType" is required (not null) + if (lightType == null) + { + throw new InvalidDataException("lightType is a required property for OCRSecurityTextResult and cannot be null"); + } + else + { + this.LightType = lightType; + } + + // to ensure "fieldRect" is required (not null) + if (fieldRect == null) + { + throw new InvalidDataException("fieldRect is a required property for OCRSecurityTextResult and cannot be null"); + } + else + { + this.FieldRect = fieldRect; + } + + // to ensure "etalonResultType" is required (not null) + if (etalonResultType == null) + { + throw new InvalidDataException("etalonResultType is a required property for OCRSecurityTextResult and cannot be null"); + } + else + { + this.EtalonResultType = etalonResultType; + } + + // to ensure "etalonFieldType" is required (not null) + if (etalonFieldType == null) + { + throw new InvalidDataException("etalonFieldType is a required property for OCRSecurityTextResult and cannot be null"); + } + else + { + this.EtalonFieldType = etalonFieldType; + } + + // to ensure "etalonLightType" is required (not null) + if (etalonLightType == null) + { + throw new InvalidDataException("etalonLightType is a required property for OCRSecurityTextResult and cannot be null"); + } + else + { + this.EtalonLightType = etalonLightType; + } + + // to ensure "etalonFieldRect" is required (not null) + if (etalonFieldRect == null) + { + throw new InvalidDataException("etalonFieldRect is a required property for OCRSecurityTextResult and cannot be null"); + } + else + { + this.EtalonFieldRect = etalonFieldRect; + } + + // to ensure "securityTextResultOCR" is required (not null) + if (securityTextResultOCR == null) + { + throw new InvalidDataException("securityTextResultOCR is a required property for OCRSecurityTextResult and cannot be null"); + } + else + { + this.SecurityTextResultOCR = securityTextResultOCR; + } + + // to ensure "etalonResultOCR" is required (not null) + if (etalonResultOCR == null) + { + throw new InvalidDataException("etalonResultOCR is a required property for OCRSecurityTextResult and cannot be null"); + } + else + { + this.EtalonResultOCR = etalonResultOCR; + } + + this.ElementResult = elementResult; + this.ElementDiagnose = elementDiagnose; + this.PercentValue = percentValue; this.Reserved1 = reserved1; this.Reserved2 = reserved2; } + /// + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ + /// + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ + [DataMember(Name="Type", EmitDefaultValue=true)] + public int Type { get; set; } + + /// + /// Gets or Sets ElementResult + /// + [DataMember(Name="ElementResult", EmitDefaultValue=false)] + public int ElementResult { get; set; } + + /// + /// Gets or Sets ElementDiagnose + /// + [DataMember(Name="ElementDiagnose", EmitDefaultValue=false)] + public int ElementDiagnose { get; set; } + + /// + /// Gets or Sets PercentValue + /// + [DataMember(Name="PercentValue", EmitDefaultValue=false)] + public int PercentValue { get; set; } + /// /// Gets or Sets CriticalFlag /// - [DataMember(Name="CriticalFlag", EmitDefaultValue=false)] + [DataMember(Name="CriticalFlag", EmitDefaultValue=true)] public int CriticalFlag { get; set; } /// /// Gets or Sets LightType /// - [DataMember(Name="LightType", EmitDefaultValue=false)] + [DataMember(Name="LightType", EmitDefaultValue=true)] public int LightType { get; set; } /// /// Gets or Sets FieldRect /// - [DataMember(Name="FieldRect", EmitDefaultValue=false)] + [DataMember(Name="FieldRect", EmitDefaultValue=true)] public RectangleCoordinates FieldRect { get; set; } /// /// Gets or Sets EtalonResultType /// - [DataMember(Name="EtalonResultType", EmitDefaultValue=false)] + [DataMember(Name="EtalonResultType", EmitDefaultValue=true)] public int EtalonResultType { get; set; } /// /// Gets or Sets EtalonFieldType /// - [DataMember(Name="EtalonFieldType", EmitDefaultValue=false)] + [DataMember(Name="EtalonFieldType", EmitDefaultValue=true)] public int EtalonFieldType { get; set; } /// /// Gets or Sets EtalonLightType /// - [DataMember(Name="EtalonLightType", EmitDefaultValue=false)] + [DataMember(Name="EtalonLightType", EmitDefaultValue=true)] public int EtalonLightType { get; set; } + /// + /// Gets or Sets EtalonFieldRect + /// + [DataMember(Name="EtalonFieldRect", EmitDefaultValue=true)] + public RectangleCoordinates EtalonFieldRect { get; set; } + /// /// Gets or Sets SecurityTextResultOCR /// - [DataMember(Name="SecurityTextResultOCR", EmitDefaultValue=false)] + [DataMember(Name="SecurityTextResultOCR", EmitDefaultValue=true)] public string SecurityTextResultOCR { get; set; } /// /// Gets or Sets EtalonResultOCR /// - [DataMember(Name="EtalonResultOCR", EmitDefaultValue=false)] + [DataMember(Name="EtalonResultOCR", EmitDefaultValue=true)] public string EtalonResultOCR { get; set; } /// @@ -130,13 +261,17 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class OCRSecurityTextResult {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ElementResult: ").Append(ElementResult).Append("\n"); + sb.Append(" ElementDiagnose: ").Append(ElementDiagnose).Append("\n"); + sb.Append(" PercentValue: ").Append(PercentValue).Append("\n"); sb.Append(" CriticalFlag: ").Append(CriticalFlag).Append("\n"); sb.Append(" LightType: ").Append(LightType).Append("\n"); sb.Append(" FieldRect: ").Append(FieldRect).Append("\n"); sb.Append(" EtalonResultType: ").Append(EtalonResultType).Append("\n"); sb.Append(" EtalonFieldType: ").Append(EtalonFieldType).Append("\n"); sb.Append(" EtalonLightType: ").Append(EtalonLightType).Append("\n"); + sb.Append(" EtalonFieldRect: ").Append(EtalonFieldRect).Append("\n"); sb.Append(" SecurityTextResultOCR: ").Append(SecurityTextResultOCR).Append("\n"); sb.Append(" EtalonResultOCR: ").Append(EtalonResultOCR).Append("\n"); sb.Append(" Reserved1: ").Append(Reserved1).Append("\n"); @@ -149,7 +284,7 @@ public override string ToString() /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object - public override string ToJson() + public virtual string ToJson() { return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } @@ -174,52 +309,77 @@ public bool Equals(OCRSecurityTextResult input) if (input == null) return false; - return base.Equals(input) && + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.ElementResult == input.ElementResult || + (this.ElementResult != null && + this.ElementResult.Equals(input.ElementResult)) + ) && + ( + this.ElementDiagnose == input.ElementDiagnose || + (this.ElementDiagnose != null && + this.ElementDiagnose.Equals(input.ElementDiagnose)) + ) && + ( + this.PercentValue == input.PercentValue || + (this.PercentValue != null && + this.PercentValue.Equals(input.PercentValue)) + ) && ( this.CriticalFlag == input.CriticalFlag || (this.CriticalFlag != null && this.CriticalFlag.Equals(input.CriticalFlag)) - ) && base.Equals(input) && + ) && ( this.LightType == input.LightType || (this.LightType != null && this.LightType.Equals(input.LightType)) - ) && base.Equals(input) && + ) && ( this.FieldRect == input.FieldRect || (this.FieldRect != null && this.FieldRect.Equals(input.FieldRect)) - ) && base.Equals(input) && + ) && ( this.EtalonResultType == input.EtalonResultType || (this.EtalonResultType != null && this.EtalonResultType.Equals(input.EtalonResultType)) - ) && base.Equals(input) && + ) && ( this.EtalonFieldType == input.EtalonFieldType || (this.EtalonFieldType != null && this.EtalonFieldType.Equals(input.EtalonFieldType)) - ) && base.Equals(input) && + ) && ( this.EtalonLightType == input.EtalonLightType || (this.EtalonLightType != null && this.EtalonLightType.Equals(input.EtalonLightType)) - ) && base.Equals(input) && + ) && + ( + this.EtalonFieldRect == input.EtalonFieldRect || + (this.EtalonFieldRect != null && + this.EtalonFieldRect.Equals(input.EtalonFieldRect)) + ) && ( this.SecurityTextResultOCR == input.SecurityTextResultOCR || (this.SecurityTextResultOCR != null && this.SecurityTextResultOCR.Equals(input.SecurityTextResultOCR)) - ) && base.Equals(input) && + ) && ( this.EtalonResultOCR == input.EtalonResultOCR || (this.EtalonResultOCR != null && this.EtalonResultOCR.Equals(input.EtalonResultOCR)) - ) && base.Equals(input) && + ) && ( this.Reserved1 == input.Reserved1 || (this.Reserved1 != null && this.Reserved1.Equals(input.Reserved1)) - ) && base.Equals(input) && + ) && ( this.Reserved2 == input.Reserved2 || (this.Reserved2 != null && @@ -235,7 +395,15 @@ public override int GetHashCode() { unchecked // Overflow is fine, just wrap { - int hashCode = base.GetHashCode(); + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.ElementResult != null) + hashCode = hashCode * 59 + this.ElementResult.GetHashCode(); + if (this.ElementDiagnose != null) + hashCode = hashCode * 59 + this.ElementDiagnose.GetHashCode(); + if (this.PercentValue != null) + hashCode = hashCode * 59 + this.PercentValue.GetHashCode(); if (this.CriticalFlag != null) hashCode = hashCode * 59 + this.CriticalFlag.GetHashCode(); if (this.LightType != null) @@ -248,6 +416,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.EtalonFieldType.GetHashCode(); if (this.EtalonLightType != null) hashCode = hashCode * 59 + this.EtalonLightType.GetHashCode(); + if (this.EtalonFieldRect != null) + hashCode = hashCode * 59 + this.EtalonFieldRect.GetHashCode(); if (this.SecurityTextResultOCR != null) hashCode = hashCode * 59 + this.SecurityTextResultOCR.GetHashCode(); if (this.EtalonResultOCR != null) @@ -267,7 +437,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - foreach(var x in base.BaseValidate(validationContext)) yield return x; yield break; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/OneCandidate.cs b/src/Regula.DocumentReader.WebClient/Model/OneCandidate.cs index bb5232d..1fb9845 100644 --- a/src/Regula.DocumentReader.WebClient/Model/OneCandidate.cs +++ b/src/Regula.DocumentReader.WebClient/Model/OneCandidate.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,89 +33,211 @@ public partial class OneCandidate : IEquatable, IValidatableObjec /// /// Initializes a new instance of the class. /// - /// Document name. - /// Unique document type template identifier (Regula's internal numeric code). - /// A measure of the likelihood of correct recognition in the analysis of this type of document. - /// rFIDPresence. - /// fDSIDList. - /// Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document. - /// Set of authentication options provided for this type of document (combination of Authenticity enum). - /// The required exposure value of the camera when receiving images of a document of this type for a UV lighting scheme. - /// Combination of lighting scheme identifiers (combination of Light enum) needed to perform all authenticity checks specified in CheckAuthenticity. - public OneCandidate(string documentName = default(string), int iD = default(int), decimal p = default(decimal), int rFIDPresence = default(int), FDSIDList fDSIDList = default(FDSIDList), int necessaryLights = default(int), int checkAuthenticity = default(int), int uVExp = default(int), int authenticityNecessaryLights = default(int)) + [JsonConstructorAttribute] + protected OneCandidate() { } + /// + /// Initializes a new instance of the class. + /// + /// Document name (required). + /// Unique document type template identifier (Regula's internal numeric code) (required). + /// A measure of the likelihood of correct recognition in the analysis of this type of document (required). + /// true if the document of the given type is rotated by 180 degrees (required). + /// rFIDPresence (required). + /// fDSIDList (required). + /// Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document (required). + /// Set of authentication options provided for this type of document (combination of Authenticity enum) (required). + /// The required exposure value of the camera when receiving images of a document of this type for a UV lighting scheme (required). + /// Combination of lighting scheme identifiers (combination of Light enum) needed to perform all authenticity checks specified in CheckAuthenticity (required). + /// Camera exposure value necessary when obtaining document images of the given type for AXIAL lighting scheme (required). + public OneCandidate(string documentName = default(string), int iD = default(int), decimal p = default(decimal), bool? rotated180 = default(bool?), int rFIDPresence = default(int), FDSIDList fDSIDList = default(FDSIDList), int necessaryLights = default(int), int checkAuthenticity = default(int), int uVExp = default(int), int authenticityNecessaryLights = default(int), decimal oVIExp = default(decimal)) { - this.DocumentName = documentName; - this.ID = iD; - this.P = p; - this.RFIDPresence = rFIDPresence; - this.FDSIDList = fDSIDList; - this.NecessaryLights = necessaryLights; - this.CheckAuthenticity = checkAuthenticity; - this.UVExp = uVExp; - this.AuthenticityNecessaryLights = authenticityNecessaryLights; + // to ensure "documentName" is required (not null) + if (documentName == null) + { + throw new InvalidDataException("documentName is a required property for OneCandidate and cannot be null"); + } + else + { + this.DocumentName = documentName; + } + + // to ensure "iD" is required (not null) + if (iD == null) + { + throw new InvalidDataException("iD is a required property for OneCandidate and cannot be null"); + } + else + { + this.ID = iD; + } + + // to ensure "p" is required (not null) + if (p == null) + { + throw new InvalidDataException("p is a required property for OneCandidate and cannot be null"); + } + else + { + this.P = p; + } + + // to ensure "rotated180" is required (not null) + if (rotated180 == null) + { + throw new InvalidDataException("rotated180 is a required property for OneCandidate and cannot be null"); + } + else + { + this.Rotated180 = rotated180; + } + + // to ensure "rFIDPresence" is required (not null) + if (rFIDPresence == null) + { + throw new InvalidDataException("rFIDPresence is a required property for OneCandidate and cannot be null"); + } + else + { + this.RFIDPresence = rFIDPresence; + } + + // to ensure "fDSIDList" is required (not null) + if (fDSIDList == null) + { + throw new InvalidDataException("fDSIDList is a required property for OneCandidate and cannot be null"); + } + else + { + this.FDSIDList = fDSIDList; + } + + // to ensure "necessaryLights" is required (not null) + if (necessaryLights == null) + { + throw new InvalidDataException("necessaryLights is a required property for OneCandidate and cannot be null"); + } + else + { + this.NecessaryLights = necessaryLights; + } + + // to ensure "checkAuthenticity" is required (not null) + if (checkAuthenticity == null) + { + throw new InvalidDataException("checkAuthenticity is a required property for OneCandidate and cannot be null"); + } + else + { + this.CheckAuthenticity = checkAuthenticity; + } + + // to ensure "uVExp" is required (not null) + if (uVExp == null) + { + throw new InvalidDataException("uVExp is a required property for OneCandidate and cannot be null"); + } + else + { + this.UVExp = uVExp; + } + + // to ensure "authenticityNecessaryLights" is required (not null) + if (authenticityNecessaryLights == null) + { + throw new InvalidDataException("authenticityNecessaryLights is a required property for OneCandidate and cannot be null"); + } + else + { + this.AuthenticityNecessaryLights = authenticityNecessaryLights; + } + + // to ensure "oVIExp" is required (not null) + if (oVIExp == null) + { + throw new InvalidDataException("oVIExp is a required property for OneCandidate and cannot be null"); + } + else + { + this.OVIExp = oVIExp; + } + } /// /// Document name /// /// Document name - [DataMember(Name="DocumentName", EmitDefaultValue=false)] + [DataMember(Name="DocumentName", EmitDefaultValue=true)] public string DocumentName { get; set; } /// /// Unique document type template identifier (Regula's internal numeric code) /// /// Unique document type template identifier (Regula's internal numeric code) - [DataMember(Name="ID", EmitDefaultValue=false)] + [DataMember(Name="ID", EmitDefaultValue=true)] public int ID { get; set; } /// /// A measure of the likelihood of correct recognition in the analysis of this type of document /// /// A measure of the likelihood of correct recognition in the analysis of this type of document - [DataMember(Name="P", EmitDefaultValue=false)] + [DataMember(Name="P", EmitDefaultValue=true)] public decimal P { get; set; } + /// + /// true if the document of the given type is rotated by 180 degrees + /// + /// true if the document of the given type is rotated by 180 degrees + [DataMember(Name="Rotated180", EmitDefaultValue=true)] + public bool? Rotated180 { get; set; } + /// /// Gets or Sets RFIDPresence /// - [DataMember(Name="RFID_Presence", EmitDefaultValue=false)] + [DataMember(Name="RFID_Presence", EmitDefaultValue=true)] public int RFIDPresence { get; set; } /// /// Gets or Sets FDSIDList /// - [DataMember(Name="FDSIDList", EmitDefaultValue=false)] + [DataMember(Name="FDSIDList", EmitDefaultValue=true)] public FDSIDList FDSIDList { get; set; } /// /// Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document /// /// Combination of lighting scheme identifiers (Light enum) required to conduct OCR for this type of document - [DataMember(Name="NecessaryLights", EmitDefaultValue=false)] + [DataMember(Name="NecessaryLights", EmitDefaultValue=true)] public int NecessaryLights { get; set; } /// /// Set of authentication options provided for this type of document (combination of Authenticity enum) /// /// Set of authentication options provided for this type of document (combination of Authenticity enum) - [DataMember(Name="CheckAuthenticity", EmitDefaultValue=false)] + [DataMember(Name="CheckAuthenticity", EmitDefaultValue=true)] public int CheckAuthenticity { get; set; } /// /// The required exposure value of the camera when receiving images of a document of this type for a UV lighting scheme /// /// The required exposure value of the camera when receiving images of a document of this type for a UV lighting scheme - [DataMember(Name="UVExp", EmitDefaultValue=false)] + [DataMember(Name="UVExp", EmitDefaultValue=true)] public int UVExp { get; set; } /// /// Combination of lighting scheme identifiers (combination of Light enum) needed to perform all authenticity checks specified in CheckAuthenticity /// /// Combination of lighting scheme identifiers (combination of Light enum) needed to perform all authenticity checks specified in CheckAuthenticity - [DataMember(Name="AuthenticityNecessaryLights", EmitDefaultValue=false)] + [DataMember(Name="AuthenticityNecessaryLights", EmitDefaultValue=true)] public int AuthenticityNecessaryLights { get; set; } + /// + /// Camera exposure value necessary when obtaining document images of the given type for AXIAL lighting scheme + /// + /// Camera exposure value necessary when obtaining document images of the given type for AXIAL lighting scheme + [DataMember(Name="OVIExp", EmitDefaultValue=true)] + public decimal OVIExp { get; set; } + /// /// Returns the string presentation of the object /// @@ -127,12 +249,14 @@ public override string ToString() sb.Append(" DocumentName: ").Append(DocumentName).Append("\n"); sb.Append(" ID: ").Append(ID).Append("\n"); sb.Append(" P: ").Append(P).Append("\n"); + sb.Append(" Rotated180: ").Append(Rotated180).Append("\n"); sb.Append(" RFIDPresence: ").Append(RFIDPresence).Append("\n"); sb.Append(" FDSIDList: ").Append(FDSIDList).Append("\n"); sb.Append(" NecessaryLights: ").Append(NecessaryLights).Append("\n"); sb.Append(" CheckAuthenticity: ").Append(CheckAuthenticity).Append("\n"); sb.Append(" UVExp: ").Append(UVExp).Append("\n"); sb.Append(" AuthenticityNecessaryLights: ").Append(AuthenticityNecessaryLights).Append("\n"); + sb.Append(" OVIExp: ").Append(OVIExp).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -182,6 +306,11 @@ public bool Equals(OneCandidate input) (this.P != null && this.P.Equals(input.P)) ) && + ( + this.Rotated180 == input.Rotated180 || + (this.Rotated180 != null && + this.Rotated180.Equals(input.Rotated180)) + ) && ( this.RFIDPresence == input.RFIDPresence || (this.RFIDPresence != null && @@ -211,6 +340,11 @@ public bool Equals(OneCandidate input) this.AuthenticityNecessaryLights == input.AuthenticityNecessaryLights || (this.AuthenticityNecessaryLights != null && this.AuthenticityNecessaryLights.Equals(input.AuthenticityNecessaryLights)) + ) && + ( + this.OVIExp == input.OVIExp || + (this.OVIExp != null && + this.OVIExp.Equals(input.OVIExp)) ); } @@ -229,6 +363,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.ID.GetHashCode(); if (this.P != null) hashCode = hashCode * 59 + this.P.GetHashCode(); + if (this.Rotated180 != null) + hashCode = hashCode * 59 + this.Rotated180.GetHashCode(); if (this.RFIDPresence != null) hashCode = hashCode * 59 + this.RFIDPresence.GetHashCode(); if (this.FDSIDList != null) @@ -241,6 +377,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.UVExp.GetHashCode(); if (this.AuthenticityNecessaryLights != null) hashCode = hashCode * 59 + this.AuthenticityNecessaryLights.GetHashCode(); + if (this.OVIExp != null) + hashCode = hashCode * 59 + this.OVIExp.GetHashCode(); return hashCode; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/OriginalSymbol.cs b/src/Regula.DocumentReader.WebClient/Model/OriginalSymbol.cs index b304e9a..d9d17ab 100644 --- a/src/Regula.DocumentReader.WebClient/Model/OriginalSymbol.cs +++ b/src/Regula.DocumentReader.WebClient/Model/OriginalSymbol.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,13 +33,36 @@ public partial class OriginalSymbol : IEquatable, IValidatableO /// /// Initializes a new instance of the class. /// - /// Unicode symbol code. - /// Probability of correctness reading of a single character. + [JsonConstructorAttribute] + protected OriginalSymbol() { } + /// + /// Initializes a new instance of the class. + /// + /// Unicode symbol code (required). + /// Probability of correctness reading of a single character (required). /// rect. public OriginalSymbol(long code = default(long), int probability = default(int), RectangleCoordinates rect = default(RectangleCoordinates)) { - this.Code = code; - this.Probability = probability; + // to ensure "code" is required (not null) + if (code == null) + { + throw new InvalidDataException("code is a required property for OriginalSymbol and cannot be null"); + } + else + { + this.Code = code; + } + + // to ensure "probability" is required (not null) + if (probability == null) + { + throw new InvalidDataException("probability is a required property for OriginalSymbol and cannot be null"); + } + else + { + this.Probability = probability; + } + this.Rect = rect; } @@ -47,14 +70,14 @@ public partial class OriginalSymbol : IEquatable, IValidatableO /// Unicode symbol code /// /// Unicode symbol code - [DataMember(Name="code", EmitDefaultValue=false)] + [DataMember(Name="code", EmitDefaultValue=true)] public long Code { get; set; } /// /// Probability of correctness reading of a single character /// /// Probability of correctness reading of a single character - [DataMember(Name="probability", EmitDefaultValue=false)] + [DataMember(Name="probability", EmitDefaultValue=true)] public int Probability { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/OutData.cs b/src/Regula.DocumentReader.WebClient/Model/OutData.cs index 07b1811..7f75760 100644 --- a/src/Regula.DocumentReader.WebClient/Model/OutData.cs +++ b/src/Regula.DocumentReader.WebClient/Model/OutData.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/OutDataTransactionImagesFieldValue.cs b/src/Regula.DocumentReader.WebClient/Model/OutDataTransactionImagesFieldValue.cs index 8b747da..0ba74e9 100644 --- a/src/Regula.DocumentReader.WebClient/Model/OutDataTransactionImagesFieldValue.cs +++ b/src/Regula.DocumentReader.WebClient/Model/OutDataTransactionImagesFieldValue.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/PArrayField.cs b/src/Regula.DocumentReader.WebClient/Model/PArrayField.cs index ef7e66b..36f73b7 100644 --- a/src/Regula.DocumentReader.WebClient/Model/PArrayField.cs +++ b/src/Regula.DocumentReader.WebClient/Model/PArrayField.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -30,55 +30,128 @@ namespace Regula.DocumentReader.WebClient.Model [DataContract] public partial class PArrayField : IEquatable, IValidatableObject { + /// + /// Gets or Sets BcTypeDECODE + /// + [DataMember(Name="bcType_DECODE", EmitDefaultValue=true)] + public BarcodeType BcTypeDECODE { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PArrayField() { } /// /// Initializes a new instance of the class. /// - /// bcAngleDETECT. - /// bcCodeResult. - /// bcCountModule. - /// bcDataModule. + /// bcAngleDETECT (required). + /// bcCodeResult (required). + /// bcCountModule (required). + /// bcDataModule (required). /// bcPDF417INFO. - /// bcROIDETECT. + /// bcROIDETECT (required). /// bcTextDecoderTypes. /// bcTextFieldType. - /// bcTypeDECODE. - /// bcTypeDETECT. - public PArrayField(float bcAngleDETECT = default(float), int bcCodeResult = default(int), int bcCountModule = default(int), List bcDataModule = default(List), BcPDF417INFO bcPDF417INFO = default(BcPDF417INFO), BcROIDETECT bcROIDETECT = default(BcROIDETECT), int bcTextDecoderTypes = default(int), int bcTextFieldType = default(int), int bcTypeDECODE = default(int), int bcTypeDETECT = default(int)) + /// bcTypeDECODE (required). + /// bcTypeDETECT (required). + public PArrayField(float bcAngleDETECT = default(float), int bcCodeResult = default(int), int bcCountModule = default(int), List bcDataModule = default(List), BcPDF417INFO bcPDF417INFO = default(BcPDF417INFO), BcROIDETECT bcROIDETECT = default(BcROIDETECT), int bcTextDecoderTypes = default(int), int bcTextFieldType = default(int), BarcodeType bcTypeDECODE = default(BarcodeType), int bcTypeDETECT = default(int)) { - this.BcAngleDETECT = bcAngleDETECT; - this.BcCodeResult = bcCodeResult; - this.BcCountModule = bcCountModule; - this.BcDataModule = bcDataModule; + // to ensure "bcAngleDETECT" is required (not null) + if (bcAngleDETECT == null) + { + throw new InvalidDataException("bcAngleDETECT is a required property for PArrayField and cannot be null"); + } + else + { + this.BcAngleDETECT = bcAngleDETECT; + } + + // to ensure "bcCodeResult" is required (not null) + if (bcCodeResult == null) + { + throw new InvalidDataException("bcCodeResult is a required property for PArrayField and cannot be null"); + } + else + { + this.BcCodeResult = bcCodeResult; + } + + // to ensure "bcCountModule" is required (not null) + if (bcCountModule == null) + { + throw new InvalidDataException("bcCountModule is a required property for PArrayField and cannot be null"); + } + else + { + this.BcCountModule = bcCountModule; + } + + // to ensure "bcDataModule" is required (not null) + if (bcDataModule == null) + { + throw new InvalidDataException("bcDataModule is a required property for PArrayField and cannot be null"); + } + else + { + this.BcDataModule = bcDataModule; + } + + // to ensure "bcROIDETECT" is required (not null) + if (bcROIDETECT == null) + { + throw new InvalidDataException("bcROIDETECT is a required property for PArrayField and cannot be null"); + } + else + { + this.BcROIDETECT = bcROIDETECT; + } + + // to ensure "bcTypeDECODE" is required (not null) + if (bcTypeDECODE == null) + { + throw new InvalidDataException("bcTypeDECODE is a required property for PArrayField and cannot be null"); + } + else + { + this.BcTypeDECODE = bcTypeDECODE; + } + + // to ensure "bcTypeDETECT" is required (not null) + if (bcTypeDETECT == null) + { + throw new InvalidDataException("bcTypeDETECT is a required property for PArrayField and cannot be null"); + } + else + { + this.BcTypeDETECT = bcTypeDETECT; + } + this.BcPDF417INFO = bcPDF417INFO; - this.BcROIDETECT = bcROIDETECT; this.BcTextDecoderTypes = bcTextDecoderTypes; this.BcTextFieldType = bcTextFieldType; - this.BcTypeDECODE = bcTypeDECODE; - this.BcTypeDETECT = bcTypeDETECT; } /// /// Gets or Sets BcAngleDETECT /// - [DataMember(Name="bcAngle_DETECT", EmitDefaultValue=false)] + [DataMember(Name="bcAngle_DETECT", EmitDefaultValue=true)] public float BcAngleDETECT { get; set; } /// /// Gets or Sets BcCodeResult /// - [DataMember(Name="bcCodeResult", EmitDefaultValue=false)] + [DataMember(Name="bcCodeResult", EmitDefaultValue=true)] public int BcCodeResult { get; set; } /// /// Gets or Sets BcCountModule /// - [DataMember(Name="bcCountModule", EmitDefaultValue=false)] + [DataMember(Name="bcCountModule", EmitDefaultValue=true)] public int BcCountModule { get; set; } /// /// Gets or Sets BcDataModule /// - [DataMember(Name="bcDataModule", EmitDefaultValue=false)] + [DataMember(Name="bcDataModule", EmitDefaultValue=true)] public List BcDataModule { get; set; } /// @@ -90,7 +163,7 @@ public partial class PArrayField : IEquatable, IValidatableObject /// /// Gets or Sets BcROIDETECT /// - [DataMember(Name="bcROI_DETECT", EmitDefaultValue=false)] + [DataMember(Name="bcROI_DETECT", EmitDefaultValue=true)] public BcROIDETECT BcROIDETECT { get; set; } /// @@ -105,16 +178,11 @@ public partial class PArrayField : IEquatable, IValidatableObject [DataMember(Name="bcTextFieldType", EmitDefaultValue=false)] public int BcTextFieldType { get; set; } - /// - /// Gets or Sets BcTypeDECODE - /// - [DataMember(Name="bcType_DECODE", EmitDefaultValue=false)] - public int BcTypeDECODE { get; set; } /// /// Gets or Sets BcTypeDETECT /// - [DataMember(Name="bcType_DETECT", EmitDefaultValue=false)] + [DataMember(Name="bcType_DETECT", EmitDefaultValue=true)] public int BcTypeDETECT { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/ParsingErrorCodes.cs b/src/Regula.DocumentReader.WebClient/Model/ParsingErrorCodes.cs new file mode 100644 index 0000000..095d6dc --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/ParsingErrorCodes.cs @@ -0,0 +1,794 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// The enumeration contains error codes that can return during the RFID chip processing. + /// + /// The enumeration contains error codes that can return during the RFID chip processing. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum ParsingErrorCodes + { + /// + /// Enum errLDS_Ok for value: 1 + /// + [EnumMember(Value = "1")] + errLDS_Ok = 1, + + /// + /// Enum errLDS_ASN_IncorrectData for value: 2147483649 + /// + [EnumMember(Value = "2147483649")] + errLDS_ASN_IncorrectData = 2, + + /// + /// Enum errLDS_ASN_NotEnoughData for value: 2147483650 + /// + [EnumMember(Value = "2147483650")] + errLDS_ASN_NotEnoughData = 3, + + /// + /// Enum errLDS_ASN_Contents_UnexpectedData for value: 2147483651 + /// + [EnumMember(Value = "2147483651")] + errLDS_ASN_Contents_UnexpectedData = 4, + + /// + /// Enum errLDS_ASN_SignedData_IncorrectData for value: 2147483656 + /// + [EnumMember(Value = "2147483656")] + errLDS_ASN_SignedData_IncorrectData = 5, + + /// + /// Enum errLDS_ASN_SignedData_EncapContents_IncorrectData for value: 2147483657 + /// + [EnumMember(Value = "2147483657")] + errLDS_ASN_SignedData_EncapContents_IncorrectData = 6, + + /// + /// Enum errLDS_ASN_SignedData_Version_IncorrectData for value: 2147483658 + /// + [EnumMember(Value = "2147483658")] + errLDS_ASN_SignedData_Version_IncorrectData = 7, + + /// + /// Enum errLDS_ASN_SignedData_DigestAlgorithms_IncorrectData for value: 2147483665 + /// + [EnumMember(Value = "2147483665")] + errLDS_ASN_SignedData_DigestAlgorithms_IncorrectData = 8, + + /// + /// Enum errLDS_ASN_LDSObject_IncorrectData for value: 2147483667 + /// + [EnumMember(Value = "2147483667")] + errLDS_ASN_LDSObject_IncorrectData = 9, + + /// + /// Enum errLDS_ASN_LDSObject_Version_IncorrectData for value: 2147483668 + /// + [EnumMember(Value = "2147483668")] + errLDS_ASN_LDSObject_Version_IncorrectData = 10, + + /// + /// Enum errLDS_ASN_LDSObject_DigestAlgorithm_IncorrectData for value: 2147483669 + /// + [EnumMember(Value = "2147483669")] + errLDS_ASN_LDSObject_DigestAlgorithm_IncorrectData = 11, + + /// + /// Enum errLDS_ASN_LDSObject_DGHashes_IncorrectData for value: 2147483670 + /// + [EnumMember(Value = "2147483670")] + errLDS_ASN_LDSObject_DGHashes_IncorrectData = 12, + + /// + /// Enum errLDS_ASN_LDSObject_VersionInfo_IncorrectData for value: 2147483666 + /// + [EnumMember(Value = "2147483666")] + errLDS_ASN_LDSObject_VersionInfo_IncorrectData = 13, + + /// + /// Enum errLDS_ASN_Certificate_IncorrectData for value: 2147483671 + /// + [EnumMember(Value = "2147483671")] + errLDS_ASN_Certificate_IncorrectData = 14, + + /// + /// Enum errLDS_ASN_Certificate_Version_IncorrectData for value: 2147483672 + /// + [EnumMember(Value = "2147483672")] + errLDS_ASN_Certificate_Version_IncorrectData = 15, + + /// + /// Enum errLDS_ASN_Certificate_SN_IncorrectData for value: 2147483673 + /// + [EnumMember(Value = "2147483673")] + errLDS_ASN_Certificate_SN_IncorrectData = 16, + + /// + /// Enum errLDS_ASN_Certificate_Signature_IncorrectData for value: 2147483674 + /// + [EnumMember(Value = "2147483674")] + errLDS_ASN_Certificate_Signature_IncorrectData = 17, + + /// + /// Enum errLDS_ASN_Certificate_Issuer_IncorrectData for value: 2147483675 + /// + [EnumMember(Value = "2147483675")] + errLDS_ASN_Certificate_Issuer_IncorrectData = 18, + + /// + /// Enum errLDS_ASN_Certificate_Validity_IncorrectData for value: 2147483676 + /// + [EnumMember(Value = "2147483676")] + errLDS_ASN_Certificate_Validity_IncorrectData = 19, + + /// + /// Enum errLDS_ASN_Certificate_Subject_IncorrectData for value: 2147483677 + /// + [EnumMember(Value = "2147483677")] + errLDS_ASN_Certificate_Subject_IncorrectData = 20, + + /// + /// Enum errLDS_ASN_Certificate_SubjectPK_IncorrectData for value: 2147483678 + /// + [EnumMember(Value = "2147483678")] + errLDS_ASN_Certificate_SubjectPK_IncorrectData = 21, + + /// + /// Enum errLDS_ASN_Certificate_Extensions_IncorrectData for value: 2147483679 + /// + [EnumMember(Value = "2147483679")] + errLDS_ASN_Certificate_Extensions_IncorrectData = 22, + + /// + /// Enum errLDS_ASN_SignerInfo_IncorrectData for value: 2147483680 + /// + [EnumMember(Value = "2147483680")] + errLDS_ASN_SignerInfo_IncorrectData = 23, + + /// + /// Enum errLDS_ASN_SignerInfo_Version_IncorrectData for value: 2147483681 + /// + [EnumMember(Value = "2147483681")] + errLDS_ASN_SignerInfo_Version_IncorrectData = 24, + + /// + /// Enum errLDS_ASN_SignerInfo_SID_IncorrectData for value: 2147483682 + /// + [EnumMember(Value = "2147483682")] + errLDS_ASN_SignerInfo_SID_IncorrectData = 25, + + /// + /// Enum errLDS_ASN_SignerInfo_DigestAlg_IncorrectData for value: 2147483683 + /// + [EnumMember(Value = "2147483683")] + errLDS_ASN_SignerInfo_DigestAlg_IncorrectData = 26, + + /// + /// Enum errLDS_ASN_SignerInfo_SignedAttrs_IncorrectData for value: 2147483684 + /// + [EnumMember(Value = "2147483684")] + errLDS_ASN_SignerInfo_SignedAttrs_IncorrectData = 27, + + /// + /// Enum errLDS_ASN_SignerInfo_SignAlg_IncorrectData for value: 2147483685 + /// + [EnumMember(Value = "2147483685")] + errLDS_ASN_SignerInfo_SignAlg_IncorrectData = 28, + + /// + /// Enum errLDS_ASN_SignerInfo_Signature_IncorrectData for value: 2147483686 + /// + [EnumMember(Value = "2147483686")] + errLDS_ASN_SignerInfo_Signature_IncorrectData = 29, + + /// + /// Enum errLDS_ASN_SignerInfo_UnsignedAttrs_IncorrectData for value: 2147483687 + /// + [EnumMember(Value = "2147483687")] + errLDS_ASN_SignerInfo_UnsignedAttrs_IncorrectData = 30, + + /// + /// Enum errLDS_ICAO_LDSObject_UnsupportedDigestAlgorithm for value: 2147483696 + /// + [EnumMember(Value = "2147483696")] + errLDS_ICAO_LDSObject_UnsupportedDigestAlgorithm = 31, + + /// + /// Enum errLDS_ICAO_SignedData_SignerInfos_Empty for value: 2147483697 + /// + [EnumMember(Value = "2147483697")] + errLDS_ICAO_SignedData_SignerInfos_Empty = 32, + + /// + /// Enum errLDS_ICAO_SignerInfo_UnsupportedDigestAlgorithm for value: 2147483698 + /// + [EnumMember(Value = "2147483698")] + errLDS_ICAO_SignerInfo_UnsupportedDigestAlgorithm = 33, + + /// + /// Enum errLDS_ICAO_SignerInfo_UnsupportedSignatureAlgorithm for value: 2147483699 + /// + [EnumMember(Value = "2147483699")] + errLDS_ICAO_SignerInfo_UnsupportedSignatureAlgorithm = 34, + + /// + /// Enum errLDS_ICAO_SignerInfo_MessageDigestError for value: 2147483700 + /// + [EnumMember(Value = "2147483700")] + errLDS_ICAO_SignerInfo_MessageDigestError = 35, + + /// + /// Enum errLDS_ICAO_SignerInfo_SignedAttrs_Missed for value: 2147483702 + /// + [EnumMember(Value = "2147483702")] + errLDS_ICAO_SignerInfo_SignedAttrs_Missed = 36, + + /// + /// Enum errLDS_Auth_SignerInfo_CantFindCertificate for value: 2147483701 + /// + [EnumMember(Value = "2147483701")] + errLDS_Auth_SignerInfo_CantFindCertificate = 37, + + /// + /// Enum errLDS_Auth_Error for value: 2147483728 + /// + [EnumMember(Value = "2147483728")] + errLDS_Auth_Error = 38, + + /// + /// Enum errLDS_Auth_UnsupportedSignatureAlgorithm for value: 2147483729 + /// + [EnumMember(Value = "2147483729")] + errLDS_Auth_UnsupportedSignatureAlgorithm = 39, + + /// + /// Enum errLDS_Auth_UnsupportedPublicKeyAlgorithm for value: 2147483730 + /// + [EnumMember(Value = "2147483730")] + errLDS_Auth_UnsupportedPublicKeyAlgorithm = 40, + + /// + /// Enum errLDS_Auth_MessedAlgorithms for value: 2147483731 + /// + [EnumMember(Value = "2147483731")] + errLDS_Auth_MessedAlgorithms = 41, + + /// + /// Enum errLDS_Auth_PublicKeyDataInvalid for value: 2147483732 + /// + [EnumMember(Value = "2147483732")] + errLDS_Auth_PublicKeyDataInvalid = 42, + + /// + /// Enum errLDS_Auth_AlgorithmParametersDataInvalid for value: 2147483733 + /// + [EnumMember(Value = "2147483733")] + errLDS_Auth_AlgorithmParametersDataInvalid = 43, + + /// + /// Enum errLDS_Auth_SignatureDataInvalid for value: 2147483734 + /// + [EnumMember(Value = "2147483734")] + errLDS_Auth_SignatureDataInvalid = 44, + + /// + /// Enum errLDS_Auth_UnsupportedDigestAlgorithm for value: 2147483735 + /// + [EnumMember(Value = "2147483735")] + errLDS_Auth_UnsupportedDigestAlgorithm = 45, + + /// + /// Enum errLDS_Auth_SignatureDataIncorrect for value: 2147483736 + /// + [EnumMember(Value = "2147483736")] + errLDS_Auth_SignatureDataIncorrect = 46, + + /// + /// Enum errLDS_Auth_AlgorithmParametersNotDefined for value: 2147483737 + /// + [EnumMember(Value = "2147483737")] + errLDS_Auth_AlgorithmParametersNotDefined = 47, + + /// + /// Enum errLDS_Auth_SignatureCheckFailed for value: 2147483738 + /// + [EnumMember(Value = "2147483738")] + errLDS_Auth_SignatureCheckFailed = 48, + + /// + /// Enum errLDS_DG_WrongTag for value: 2147483760 + /// + [EnumMember(Value = "2147483760")] + errLDS_DG_WrongTag = 49, + + /// + /// Enum errLDS_DG_Contents_UnexpectedData for value: 2147483761 + /// + [EnumMember(Value = "2147483761")] + errLDS_DG_Contents_UnexpectedData = 50, + + /// + /// Enum errLDS_BAP_SymmetricCypher_CantInitialize for value: 2164260881 + /// + [EnumMember(Value = "2164260881")] + errLDS_BAP_SymmetricCypher_CantInitialize = 51, + + /// + /// Enum errLDS_PACE_Info_NotAvailable for value: 2164260896 + /// + [EnumMember(Value = "2164260896")] + errLDS_PACE_Info_NotAvailable = 52, + + /// + /// Enum errLDS_PACE_SymmetricCypher_CantInitialize for value: 2164260897 + /// + [EnumMember(Value = "2164260897")] + errLDS_PACE_SymmetricCypher_CantInitialize = 53, + + /// + /// Enum errLDS_PACE_KeyAgreement_CantInitialize for value: 2164260898 + /// + [EnumMember(Value = "2164260898")] + errLDS_PACE_KeyAgreement_CantInitialize = 54, + + /// + /// Enum errLDS_PACE_EphemeralKeys_CantCreate for value: 2164260899 + /// + [EnumMember(Value = "2164260899")] + errLDS_PACE_EphemeralKeys_CantCreate = 55, + + /// + /// Enum errLDS_PACE_Mapping_CantDecodeNonce for value: 2164260900 + /// + [EnumMember(Value = "2164260900")] + errLDS_PACE_Mapping_CantDecodeNonce = 56, + + /// + /// Enum errLDS_PACE_SharedSecret_CantCreate for value: 2164260901 + /// + [EnumMember(Value = "2164260901")] + errLDS_PACE_SharedSecret_CantCreate = 57, + + /// + /// Enum errLDS_PACE_DomainParams_UnsupportedFormat for value: 2164260902 + /// + [EnumMember(Value = "2164260902")] + errLDS_PACE_DomainParams_UnsupportedFormat = 58, + + /// + /// Enum errLDS_PACE_EphemeralKeys_Incorrect for value: 2164260903 + /// + [EnumMember(Value = "2164260903")] + errLDS_PACE_EphemeralKeys_Incorrect = 59, + + /// + /// Enum errLDS_PACE_Mapping_EphemeralKeys_Incorrect for value: 2164260904 + /// + [EnumMember(Value = "2164260904")] + errLDS_PACE_Mapping_EphemeralKeys_Incorrect = 60, + + /// + /// Enum errLDS_PACE_Mapping_CantPerform for value: 2164260905 + /// + [EnumMember(Value = "2164260905")] + errLDS_PACE_Mapping_CantPerform = 61, + + /// + /// Enum errLDS_PACE_NonMatchingAuthTokens for value: 2164260906 + /// + [EnumMember(Value = "2164260906")] + errLDS_PACE_NonMatchingAuthTokens = 62, + + /// + /// Enum errLDS_PACE_CAM_Data_Incorrect for value: 2164260907 + /// + [EnumMember(Value = "2164260907")] + errLDS_PACE_CAM_Data_Incorrect = 63, + + /// + /// Enum errLDS_PACE_CAM_Data_CantVerify for value: 2164260908 + /// + [EnumMember(Value = "2164260908")] + errLDS_PACE_CAM_Data_CantVerify = 64, + + /// + /// Enum errLDS_PACE_CAM_Data_NonMatching for value: 2164260909 + /// + [EnumMember(Value = "2164260909")] + errLDS_PACE_CAM_Data_NonMatching = 65, + + /// + /// Enum errLDS_PACE_IM_Scheme_Incorrect for value: 2164260910 + /// + [EnumMember(Value = "2164260910")] + errLDS_PACE_IM_Scheme_Incorrect = 66, + + /// + /// Enum errLDS_PACE_IM_RandomMapping_Failed for value: 2164260911 + /// + [EnumMember(Value = "2164260911")] + errLDS_PACE_IM_RandomMapping_Failed = 67, + + /// + /// Enum errLDS_CA_CantFindPublicKey for value: 2164260912 + /// + [EnumMember(Value = "2164260912")] + errLDS_CA_CantFindPublicKey = 68, + + /// + /// Enum errLDS_CA_CantFindInfo for value: 2164260913 + /// + [EnumMember(Value = "2164260913")] + errLDS_CA_CantFindInfo = 69, + + /// + /// Enum errLDS_CA_IncorrectVersion for value: 2164260914 + /// + [EnumMember(Value = "2164260914")] + errLDS_CA_IncorrectVersion = 70, + + /// + /// Enum errLDS_CA_CantFindDomainParameters for value: 2164260915 + /// + [EnumMember(Value = "2164260915")] + errLDS_CA_CantFindDomainParameters = 71, + + /// + /// Enum errLDS_CA_KeyAgreement_CantInitialize for value: 2164260916 + /// + [EnumMember(Value = "2164260916")] + errLDS_CA_KeyAgreement_CantInitialize = 72, + + /// + /// Enum errLDS_CA_PublicKey_UnsupportedAlgorithm for value: 2164260917 + /// + [EnumMember(Value = "2164260917")] + errLDS_CA_PublicKey_UnsupportedAlgorithm = 73, + + /// + /// Enum errLDS_CA_EphemeralKeys_CantCreate for value: 2164260918 + /// + [EnumMember(Value = "2164260918")] + errLDS_CA_EphemeralKeys_CantCreate = 74, + + /// + /// Enum errLDS_CA_SharedSecret_CantCreate for value: 2164260919 + /// + [EnumMember(Value = "2164260919")] + errLDS_CA_SharedSecret_CantCreate = 75, + + /// + /// Enum errLDS_CA_NonMatchingAuthTokens for value: 2164260920 + /// + [EnumMember(Value = "2164260920")] + errLDS_CA_NonMatchingAuthTokens = 76, + + /// + /// Enum errLDS_TA_IncorrectVersion for value: 2164260928 + /// + [EnumMember(Value = "2164260928")] + errLDS_TA_IncorrectVersion = 77, + + /// + /// Enum errLDS_TA_CantBuildCertificateChain for value: 2164260929 + /// + [EnumMember(Value = "2164260929")] + errLDS_TA_CantBuildCertificateChain = 78, + + /// + /// Enum errLDS_TA_CantFindISPrivateKey for value: 2164260930 + /// + [EnumMember(Value = "2164260930")] + errLDS_TA_CantFindISPrivateKey = 79, + + /// + /// Enum errLDS_TA_PublicKey_UnsupportedAlgorithm for value: 2164260931 + /// + [EnumMember(Value = "2164260931")] + errLDS_TA_PublicKey_UnsupportedAlgorithm = 80, + + /// + /// Enum errLDS_TA_SignatureBuildingError for value: 2164260932 + /// + [EnumMember(Value = "2164260932")] + errLDS_TA_SignatureBuildingError = 81, + + /// + /// Enum errLDS_TA_InvalidKeyAlgorithmParameters for value: 2164260933 + /// + [EnumMember(Value = "2164260933")] + errLDS_TA_InvalidKeyAlgorithmParameters = 82, + + /// + /// Enum errLDS_AA_PublicKey_UnsupportedAlgorithm for value: 2164260944 + /// + [EnumMember(Value = "2164260944")] + errLDS_AA_PublicKey_UnsupportedAlgorithm = 83, + + /// + /// Enum errLDS_AA_PublicKey_IncorrectData for value: 2164260945 + /// + [EnumMember(Value = "2164260945")] + errLDS_AA_PublicKey_IncorrectData = 84, + + /// + /// Enum errLDS_AA_PublicKey_IncorrectParameters for value: 2164260946 + /// + [EnumMember(Value = "2164260946")] + errLDS_AA_PublicKey_IncorrectParameters = 85, + + /// + /// Enum errLDS_AA_PublicKey_UndefinedParameters for value: 2164260947 + /// + [EnumMember(Value = "2164260947")] + errLDS_AA_PublicKey_UndefinedParameters = 86, + + /// + /// Enum errLDS_AA_Signature_IncorrectData for value: 2164260948 + /// + [EnumMember(Value = "2164260948")] + errLDS_AA_Signature_IncorrectData = 87, + + /// + /// Enum errLDS_AA_UnsupportedRecoveryScheme for value: 2164260949 + /// + [EnumMember(Value = "2164260949")] + errLDS_AA_UnsupportedRecoveryScheme = 88, + + /// + /// Enum errLDS_AA_IncorrectTrailer for value: 2164260950 + /// + [EnumMember(Value = "2164260950")] + errLDS_AA_IncorrectTrailer = 89, + + /// + /// Enum errLDS_AA_UnsupportedDigestAlgorithm for value: 2164260951 + /// + [EnumMember(Value = "2164260951")] + errLDS_AA_UnsupportedDigestAlgorithm = 90, + + /// + /// Enum errLDS_RI_SectorKey_CantFind for value: 2164260976 + /// + [EnumMember(Value = "2164260976")] + errLDS_RI_SectorKey_CantFind = 91, + + /// + /// Enum errLDS_RI_SectorKey_IncorrectData for value: 2164260977 + /// + [EnumMember(Value = "2164260977")] + errLDS_RI_SectorKey_IncorrectData = 92, + + /// + /// Enum errLDS_RI_SectorKey_IncompleteData for value: 2164260978 + /// + [EnumMember(Value = "2164260978")] + errLDS_RI_SectorKey_IncompleteData = 93, + + /// + /// Enum errLDS_CV_Certificate_MissingMandatoryData_PK for value: 2164260960 + /// + [EnumMember(Value = "2164260960")] + errLDS_CV_Certificate_MissingMandatoryData_PK = 94, + + /// + /// Enum errLDS_CV_Certificate_PublicKey_Unsupported for value: 2164260962 + /// + [EnumMember(Value = "2164260962")] + errLDS_CV_Certificate_PublicKey_Unsupported = 95, + + /// + /// Enum errLDS_CV_Certificate_CHAT_UnsupportedTerminalType for value: 2164260963 + /// + [EnumMember(Value = "2164260963")] + errLDS_CV_Certificate_CHAT_UnsupportedTerminalType = 96, + + /// + /// Enum errLDS_CV_Certificate_PrivateKey_Unsupported for value: 2164260964 + /// + [EnumMember(Value = "2164260964")] + errLDS_CV_Certificate_PrivateKey_Unsupported = 97, + + /// + /// Enum errLDS_CV_Certificate_PrivateKey_InvalidParams for value: 2164260965 + /// + [EnumMember(Value = "2164260965")] + errLDS_CV_Certificate_PrivateKey_InvalidParams = 98, + + /// + /// Enum errLDS_CV_Certificate_IncorrectData for value: 2164261216 + /// + [EnumMember(Value = "2164261216")] + errLDS_CV_Certificate_IncorrectData = 99, + + /// + /// Enum errLDS_CV_Certificate_CPI_IncorrectData for value: 2164261217 + /// + [EnumMember(Value = "2164261217")] + errLDS_CV_Certificate_CPI_IncorrectData = 100, + + /// + /// Enum errLDS_CV_Certificate_CAR_IncorrectData for value: 2164261218 + /// + [EnumMember(Value = "2164261218")] + errLDS_CV_Certificate_CAR_IncorrectData = 101, + + /// + /// Enum errLDS_CV_Certificate_PublicKey_IncorrectData for value: 2164261219 + /// + [EnumMember(Value = "2164261219")] + errLDS_CV_Certificate_PublicKey_IncorrectData = 102, + + /// + /// Enum errLDS_CV_Certificate_CHR_IncorrectData for value: 2164261220 + /// + [EnumMember(Value = "2164261220")] + errLDS_CV_Certificate_CHR_IncorrectData = 103, + + /// + /// Enum errLDS_CV_Certificate_CHAT_IncorrectData for value: 2164261221 + /// + [EnumMember(Value = "2164261221")] + errLDS_CV_Certificate_CHAT_IncorrectData = 104, + + /// + /// Enum errLDS_CV_Certificate_ValidFrom_IncorrectData for value: 2164261222 + /// + [EnumMember(Value = "2164261222")] + errLDS_CV_Certificate_ValidFrom_IncorrectData = 105, + + /// + /// Enum errLDS_CV_Certificate_ValidTo_IncorrectData for value: 2164261223 + /// + [EnumMember(Value = "2164261223")] + errLDS_CV_Certificate_ValidTo_IncorrectData = 106, + + /// + /// Enum errLDS_CV_Certificate_Extensions_IncorrectData for value: 2164261224 + /// + [EnumMember(Value = "2164261224")] + errLDS_CV_Certificate_Extensions_IncorrectData = 107, + + /// + /// Enum errLDS_CV_Certificate_PrivateKey_IncorrectData for value: 2164261225 + /// + [EnumMember(Value = "2164261225")] + errLDS_CV_Certificate_PrivateKey_IncorrectData = 108, + + /// + /// Enum errLDS_CV_Certificate_PrivateKey_Missing for value: 2164261226 + /// + [EnumMember(Value = "2164261226")] + errLDS_CV_Certificate_PrivateKey_Missing = 109, + + /// + /// Enum errLDS_VDS_UnsupportedVersion for value: 2164261376 + /// + [EnumMember(Value = "2164261376")] + errLDS_VDS_UnsupportedVersion = 110, + + /// + /// Enum errLDS_VDS_Issuing_Country_Size for value: 2164261377 + /// + [EnumMember(Value = "2164261377")] + errLDS_VDS_Issuing_Country_Size = 111, + + /// + /// Enum errLDS_VDS_Issuing_Country_IncorrectData for value: 2164261378 + /// + [EnumMember(Value = "2164261378")] + errLDS_VDS_Issuing_Country_IncorrectData = 112, + + /// + /// Enum errLDS_VDS_Signer_Certificate_Size for value: 2164261379 + /// + [EnumMember(Value = "2164261379")] + errLDS_VDS_Signer_Certificate_Size = 113, + + /// + /// Enum errLDS_VDS_Signer_Certificate_Data for value: 2164261380 + /// + [EnumMember(Value = "2164261380")] + errLDS_VDS_Signer_Certificate_Data = 114, + + /// + /// Enum errLDS_VDS_Signature_IncorrectData for value: 2164261381 + /// + [EnumMember(Value = "2164261381")] + errLDS_VDS_Signature_IncorrectData = 115, + + /// + /// Enum errLDS_VDS_NC_IncorrectData for value: 2164261632 + /// + [EnumMember(Value = "2164261632")] + errLDS_VDS_NC_IncorrectData = 116, + + /// + /// Enum errLDS_VDS_NC_MissingOrIncorrect_Data for value: 2164261633 + /// + [EnumMember(Value = "2164261633")] + errLDS_VDS_NC_MissingOrIncorrect_Data = 117, + + /// + /// Enum errLDS_VDS_NC_MissingOrIncorrect_Header for value: 2164261634 + /// + [EnumMember(Value = "2164261634")] + errLDS_VDS_NC_MissingOrIncorrect_Header = 118, + + /// + /// Enum errLDS_VDS_NC_MissingOrIncorrect_Type for value: 2164261635 + /// + [EnumMember(Value = "2164261635")] + errLDS_VDS_NC_MissingOrIncorrect_Type = 119, + + /// + /// Enum errLDS_VDS_NC_MissingOrIncorrect_Version for value: 2164261636 + /// + [EnumMember(Value = "2164261636")] + errLDS_VDS_NC_MissingOrIncorrect_Version = 120, + + /// + /// Enum errLDS_VDS_NC_MissingOrIncorrect_IssuingCountry for value: 2164261637 + /// + [EnumMember(Value = "2164261637")] + errLDS_VDS_NC_MissingOrIncorrect_IssuingCountry = 121, + + /// + /// Enum errLDS_VDS_NC_MissingOrIncorrect_Message for value: 2164261638 + /// + [EnumMember(Value = "2164261638")] + errLDS_VDS_NC_MissingOrIncorrect_Message = 122, + + /// + /// Enum errLDS_VDS_NC_MissingOrIncorrect_Signature for value: 2164261639 + /// + [EnumMember(Value = "2164261639")] + errLDS_VDS_NC_MissingOrIncorrect_Signature = 123, + + /// + /// Enum errLDS_VDS_NC_MissingOrIncorrect_SigAlgorithm for value: 2164261640 + /// + [EnumMember(Value = "2164261640")] + errLDS_VDS_NC_MissingOrIncorrect_SigAlgorithm = 124, + + /// + /// Enum errLDS_VDS_NC_MissingOrIncorrect_Certificate for value: 2164261641 + /// + [EnumMember(Value = "2164261641")] + errLDS_VDS_NC_MissingOrIncorrect_Certificate = 125, + + /// + /// Enum errLDS_VDS_NC_MissingOrIncorrect_SigValue for value: 2164261642 + /// + [EnumMember(Value = "2164261642")] + errLDS_VDS_NC_MissingOrIncorrect_SigValue = 126 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/ParsingNotificationCodes.cs b/src/Regula.DocumentReader.WebClient/Model/ParsingNotificationCodes.cs index a28e301..d360751 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ParsingNotificationCodes.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ParsingNotificationCodes.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -34,837 +34,837 @@ namespace Regula.DocumentReader.WebClient.Model public enum ParsingNotificationCodes { /// - /// Enum ntfLDS_ASN_Certificate_IncorrectVersion for value: -1879048191 + /// Enum ntfLDS_ASN_Certificate_IncorrectVersion for value: 2415919105 /// - [EnumMember(Value = "-1879048191")] + [EnumMember(Value = "2415919105")] ntfLDS_ASN_Certificate_IncorrectVersion = 1, /// - /// Enum ntfLDS_ASN_Certificate_NonMatchingSignatureAlgorithm for value: -1879048190 + /// Enum ntfLDS_ASN_Certificate_NonMatchingSignatureAlgorithm for value: 2415919106 /// - [EnumMember(Value = "-1879048190")] + [EnumMember(Value = "2415919106")] ntfLDS_ASN_Certificate_NonMatchingSignatureAlgorithm = 2, /// - /// Enum ntfLDS_ASN_Certificate_IncorrectTimeCoding for value: -1879048189 + /// Enum ntfLDS_ASN_Certificate_IncorrectTimeCoding for value: 2415919107 /// - [EnumMember(Value = "-1879048189")] + [EnumMember(Value = "2415919107")] ntfLDS_ASN_Certificate_IncorrectTimeCoding = 3, /// - /// Enum ntfLDS_ASN_Certificate_IncorrectUseOfGeneralizedTime for value: -1879048188 + /// Enum ntfLDS_ASN_Certificate_IncorrectUseOfGeneralizedTime for value: 2415919108 /// - [EnumMember(Value = "-1879048188")] + [EnumMember(Value = "2415919108")] ntfLDS_ASN_Certificate_IncorrectUseOfGeneralizedTime = 4, /// - /// Enum ntfLDS_ASN_Certificate_EmptyIssuer for value: -1879048187 + /// Enum ntfLDS_ASN_Certificate_EmptyIssuer for value: 2415919109 /// - [EnumMember(Value = "-1879048187")] + [EnumMember(Value = "2415919109")] ntfLDS_ASN_Certificate_EmptyIssuer = 5, /// - /// Enum ntfLDS_ASN_Certificate_EmptySubject for value: -1879048186 + /// Enum ntfLDS_ASN_Certificate_EmptySubject for value: 2415919110 /// - [EnumMember(Value = "-1879048186")] + [EnumMember(Value = "2415919110")] ntfLDS_ASN_Certificate_EmptySubject = 6, /// - /// Enum ntfLDS_ASN_Certificate_UnsupportedCriticalExtension for value: -1879048184 + /// Enum ntfLDS_ASN_Certificate_UnsupportedCriticalExtension for value: 2415919112 /// - [EnumMember(Value = "-1879048184")] + [EnumMember(Value = "2415919112")] ntfLDS_ASN_Certificate_UnsupportedCriticalExtension = 7, /// - /// Enum ntfLDS_ASN_Certificate_ForcedDefaultCSCARole for value: -1879048178 + /// Enum ntfLDS_ASN_Certificate_ForcedDefaultCSCARole for value: 2415919118 /// - [EnumMember(Value = "-1879048178")] + [EnumMember(Value = "2415919118")] ntfLDS_ASN_Certificate_ForcedDefaultCSCARole = 8, /// - /// Enum ntfLDS_ASN_Certificate_ForcedDefaultDSRole for value: -1879048177 + /// Enum ntfLDS_ASN_Certificate_ForcedDefaultDSRole for value: 2415919119 /// - [EnumMember(Value = "-1879048177")] + [EnumMember(Value = "2415919119")] ntfLDS_ASN_Certificate_ForcedDefaultDSRole = 9, /// - /// Enum ntfLDS_ASN_Certificate_IncorrectIssuerSubjectDS for value: -1879048176 + /// Enum ntfLDS_ASN_Certificate_IncorrectIssuerSubjectDS for value: 2415919120 /// - [EnumMember(Value = "-1879048176")] + [EnumMember(Value = "2415919120")] ntfLDS_ASN_Certificate_IncorrectIssuerSubjectDS = 10, /// - /// Enum ntfLDS_ASN_Certificate_DuplicatingExtensions for value: -1879048169 + /// Enum ntfLDS_ASN_Certificate_DuplicatingExtensions for value: 2415919127 /// - [EnumMember(Value = "-1879048169")] + [EnumMember(Value = "2415919127")] ntfLDS_ASN_Certificate_DuplicatingExtensions = 11, /// - /// Enum ntfLDS_ICAO_Certificate_Version_Missed for value: -1879047680 + /// Enum ntfLDS_ICAO_Certificate_Version_Missed for value: 2415919616 /// - [EnumMember(Value = "-1879047680")] + [EnumMember(Value = "2415919616")] ntfLDS_ICAO_Certificate_Version_Missed = 12, /// - /// Enum ntfLDS_ICAO_Certificate_Version_Incorrect for value: -1879047679 + /// Enum ntfLDS_ICAO_Certificate_Version_Incorrect for value: 2415919617 /// - [EnumMember(Value = "-1879047679")] + [EnumMember(Value = "2415919617")] ntfLDS_ICAO_Certificate_Version_Incorrect = 13, /// - /// Enum ntfLDS_ICAO_Certificate_Issuer_Country_Missed for value: -1879047678 + /// Enum ntfLDS_ICAO_Certificate_Issuer_Country_Missed for value: 2415919618 /// - [EnumMember(Value = "-1879047678")] + [EnumMember(Value = "2415919618")] ntfLDS_ICAO_Certificate_Issuer_Country_Missed = 14, /// - /// Enum ntfLDS_ICAO_Certificate_Issuer_CommonName_Missed for value: -1879047677 + /// Enum ntfLDS_ICAO_Certificate_Issuer_CommonName_Missed for value: 2415919619 /// - [EnumMember(Value = "-1879047677")] + [EnumMember(Value = "2415919619")] ntfLDS_ICAO_Certificate_Issuer_CommonName_Missed = 15, /// - /// Enum ntfLDS_ICAO_Certificate_Issuer_CountryNonCompliant for value: -1879047676 + /// Enum ntfLDS_ICAO_Certificate_Issuer_CountryNonCompliant for value: 2415919620 /// - [EnumMember(Value = "-1879047676")] + [EnumMember(Value = "2415919620")] ntfLDS_ICAO_Certificate_Issuer_CountryNonCompliant = 16, /// - /// Enum ntfLDS_ICAO_Certificate_Subject_Country_Missed for value: -1879047675 + /// Enum ntfLDS_ICAO_Certificate_Subject_Country_Missed for value: 2415919621 /// - [EnumMember(Value = "-1879047675")] + [EnumMember(Value = "2415919621")] ntfLDS_ICAO_Certificate_Subject_Country_Missed = 17, /// - /// Enum ntfLDS_ICAO_Certificate_Subject_CommonName_Missed for value: -1879047674 + /// Enum ntfLDS_ICAO_Certificate_Subject_CommonName_Missed for value: 2415919622 /// - [EnumMember(Value = "-1879047674")] + [EnumMember(Value = "2415919622")] ntfLDS_ICAO_Certificate_Subject_CommonName_Missed = 18, /// - /// Enum ntfLDS_ICAO_Certificate_Subject_CountryNonCompliant for value: -1879047673 + /// Enum ntfLDS_ICAO_Certificate_Subject_CountryNonCompliant for value: 2415919623 /// - [EnumMember(Value = "-1879047673")] + [EnumMember(Value = "2415919623")] ntfLDS_ICAO_Certificate_Subject_CountryNonCompliant = 19, /// - /// Enum ntfLDS_ICAO_Certificate_UsingNonCompliantData for value: -1879047672 + /// Enum ntfLDS_ICAO_Certificate_UsingNonCompliantData for value: 2415919624 /// - [EnumMember(Value = "-1879047672")] + [EnumMember(Value = "2415919624")] ntfLDS_ICAO_Certificate_UsingNonCompliantData = 20, /// - /// Enum ntfLDS_ICAO_Certificate_UnsupportedSignatureAlgorithm for value: -1879047671 + /// Enum ntfLDS_ICAO_Certificate_UnsupportedSignatureAlgorithm for value: 2415919625 /// - [EnumMember(Value = "-1879047671")] + [EnumMember(Value = "2415919625")] ntfLDS_ICAO_Certificate_UnsupportedSignatureAlgorithm = 21, /// - /// Enum ntfLDS_ICAO_Certificate_UnsupportedPublicKeyAlgorithm for value: -1879047670 + /// Enum ntfLDS_ICAO_Certificate_UnsupportedPublicKeyAlgorithm for value: 2415919626 /// - [EnumMember(Value = "-1879047670")] + [EnumMember(Value = "2415919626")] ntfLDS_ICAO_Certificate_UnsupportedPublicKeyAlgorithm = 22, /// - /// Enum ntfLDS_ICAO_Certificate_MissedExtensions for value: -1879047669 + /// Enum ntfLDS_ICAO_Certificate_MissedExtensions for value: 2415919627 /// - [EnumMember(Value = "-1879047669")] + [EnumMember(Value = "2415919627")] ntfLDS_ICAO_Certificate_MissedExtensions = 23, /// - /// Enum ntfLDS_ICAO_Certificate_Validity for value: -1879047668 + /// Enum ntfLDS_ICAO_Certificate_Validity for value: 2415919628 /// - [EnumMember(Value = "-1879047668")] + [EnumMember(Value = "2415919628")] ntfLDS_ICAO_Certificate_Validity = 24, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_UsingNonCompliantData for value: -1879047667 + /// Enum ntfLDS_ICAO_Certificate_Ext_UsingNonCompliantData for value: 2415919629 /// - [EnumMember(Value = "-1879047667")] + [EnumMember(Value = "2415919629")] ntfLDS_ICAO_Certificate_Ext_UsingNonCompliantData = 25, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_KeyUsage_Missed for value: -1879047666 + /// Enum ntfLDS_ICAO_Certificate_Ext_KeyUsage_Missed for value: 2415919630 /// - [EnumMember(Value = "-1879047666")] + [EnumMember(Value = "2415919630")] ntfLDS_ICAO_Certificate_Ext_KeyUsage_Missed = 26, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_KeyUsage_NotCritical for value: -1879047665 + /// Enum ntfLDS_ICAO_Certificate_Ext_KeyUsage_NotCritical for value: 2415919631 /// - [EnumMember(Value = "-1879047665")] + [EnumMember(Value = "2415919631")] ntfLDS_ICAO_Certificate_Ext_KeyUsage_NotCritical = 27, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_KeyUsage_IncorrectData for value: -1879047664 + /// Enum ntfLDS_ICAO_Certificate_Ext_KeyUsage_IncorrectData for value: 2415919632 /// - [EnumMember(Value = "-1879047664")] + [EnumMember(Value = "2415919632")] ntfLDS_ICAO_Certificate_Ext_KeyUsage_IncorrectData = 28, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_BasicC_Missed for value: -1879047663 + /// Enum ntfLDS_ICAO_Certificate_Ext_BasicC_Missed for value: 2415919633 /// - [EnumMember(Value = "-1879047663")] + [EnumMember(Value = "2415919633")] ntfLDS_ICAO_Certificate_Ext_BasicC_Missed = 29, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectUsage1 for value: -1879047662 + /// Enum ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectUsage1 for value: 2415919634 /// - [EnumMember(Value = "-1879047662")] + [EnumMember(Value = "2415919634")] ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectUsage1 = 30, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectUsage2 for value: -1879047661 + /// Enum ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectUsage2 for value: 2415919635 /// - [EnumMember(Value = "-1879047661")] + [EnumMember(Value = "2415919635")] ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectUsage2 = 31, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_BasicC_NotCritical for value: -1879047660 + /// Enum ntfLDS_ICAO_Certificate_Ext_BasicC_NotCritical for value: 2415919636 /// - [EnumMember(Value = "-1879047660")] + [EnumMember(Value = "2415919636")] ntfLDS_ICAO_Certificate_Ext_BasicC_NotCritical = 32, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectData for value: -1879047659 + /// Enum ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectData for value: 2415919637 /// - [EnumMember(Value = "-1879047659")] + [EnumMember(Value = "2415919637")] ntfLDS_ICAO_Certificate_Ext_BasicC_IncorrectData = 33, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_BasicC_PathLenC_Missed for value: -1879047658 + /// Enum ntfLDS_ICAO_Certificate_Ext_BasicC_PathLenC_Missed for value: 2415919638 /// - [EnumMember(Value = "-1879047658")] + [EnumMember(Value = "2415919638")] ntfLDS_ICAO_Certificate_Ext_BasicC_PathLenC_Missed = 34, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_BasicC_PathLenC_Incorrect for value: -1879047657 + /// Enum ntfLDS_ICAO_Certificate_Ext_BasicC_PathLenC_Incorrect for value: 2415919639 /// - [EnumMember(Value = "-1879047657")] + [EnumMember(Value = "2415919639")] ntfLDS_ICAO_Certificate_Ext_BasicC_PathLenC_Incorrect = 35, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_NotCritical for value: -1879047656 + /// Enum ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_NotCritical for value: 2415919640 /// - [EnumMember(Value = "-1879047656")] + [EnumMember(Value = "2415919640")] ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_NotCritical = 36, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_IncorrectUsage for value: -1879047655 + /// Enum ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_IncorrectUsage for value: 2415919641 /// - [EnumMember(Value = "-1879047655")] + [EnumMember(Value = "2415919641")] ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_IncorrectUsage = 37, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_IncorrectData for value: -1879047654 + /// Enum ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_IncorrectData for value: 2415919642 /// - [EnumMember(Value = "-1879047654")] + [EnumMember(Value = "2415919642")] ntfLDS_ICAO_Certificate_Ext_ExtKeyUsage_IncorrectData = 38, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_AuthKeyID_Missed for value: -1879047653 + /// Enum ntfLDS_ICAO_Certificate_Ext_AuthKeyID_Missed for value: 2415919643 /// - [EnumMember(Value = "-1879047653")] + [EnumMember(Value = "2415919643")] ntfLDS_ICAO_Certificate_Ext_AuthKeyID_Missed = 39, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_AuthKeyID_IncorrectData for value: -1879047652 + /// Enum ntfLDS_ICAO_Certificate_Ext_AuthKeyID_IncorrectData for value: 2415919644 /// - [EnumMember(Value = "-1879047652")] + [EnumMember(Value = "2415919644")] ntfLDS_ICAO_Certificate_Ext_AuthKeyID_IncorrectData = 40, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_AuthKeyID_KeyID_Missed for value: -1879047651 + /// Enum ntfLDS_ICAO_Certificate_Ext_AuthKeyID_KeyID_Missed for value: 2415919645 /// - [EnumMember(Value = "-1879047651")] + [EnumMember(Value = "2415919645")] ntfLDS_ICAO_Certificate_Ext_AuthKeyID_KeyID_Missed = 41, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectKeyID_Missed for value: -1879047650 + /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectKeyID_Missed for value: 2415919646 /// - [EnumMember(Value = "-1879047650")] + [EnumMember(Value = "2415919646")] ntfLDS_ICAO_Certificate_Ext_SubjectKeyID_Missed = 42, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectKeyID_IncorrectData for value: -1879047649 + /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectKeyID_IncorrectData for value: 2415919647 /// - [EnumMember(Value = "-1879047649")] + [EnumMember(Value = "2415919647")] ntfLDS_ICAO_Certificate_Ext_SubjectKeyID_IncorrectData = 43, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_Missed for value: -1879047648 + /// Enum ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_Missed for value: 2415919648 /// - [EnumMember(Value = "-1879047648")] + [EnumMember(Value = "2415919648")] ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_Missed = 44, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_IncorrectData for value: -1879047647 + /// Enum ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_IncorrectData for value: 2415919649 /// - [EnumMember(Value = "-1879047647")] + [EnumMember(Value = "2415919649")] ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_IncorrectData = 45, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_Empty for value: -1879047646 + /// Enum ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_Empty for value: 2415919650 /// - [EnumMember(Value = "-1879047646")] + [EnumMember(Value = "2415919650")] ntfLDS_ICAO_Certificate_Ext_PrivateKeyUP_Empty = 46, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Missed for value: -1879047645 + /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Missed for value: 2415919651 /// - [EnumMember(Value = "-1879047645")] + [EnumMember(Value = "2415919651")] ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Missed = 47, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_IncorrectData for value: -1879047644 + /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_IncorrectData for value: 2415919652 /// - [EnumMember(Value = "-1879047644")] + [EnumMember(Value = "2415919652")] ntfLDS_ICAO_Certificate_Ext_SubjectAltName_IncorrectData = 48, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Empty for value: -1879047643 + /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Empty for value: 2415919653 /// - [EnumMember(Value = "-1879047643")] + [EnumMember(Value = "2415919653")] ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Empty = 49, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_NonCompliant for value: -1879047642 + /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_NonCompliant for value: 2415919654 /// - [EnumMember(Value = "-1879047642")] + [EnumMember(Value = "2415919654")] ntfLDS_ICAO_Certificate_Ext_SubjectAltName_NonCompliant = 50, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Critical for value: -1879047640 + /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Critical for value: 2415919656 /// - [EnumMember(Value = "-1879047640")] + [EnumMember(Value = "2415919656")] ntfLDS_ICAO_Certificate_Ext_SubjectAltName_Critical = 51, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_Empty for value: -1879047639 + /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_Empty for value: 2415919657 /// - [EnumMember(Value = "-1879047639")] + [EnumMember(Value = "2415919657")] ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_Empty = 52, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_Incorrect for value: -1879047638 + /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_Incorrect for value: 2415919658 /// - [EnumMember(Value = "-1879047638")] + [EnumMember(Value = "2415919658")] ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_Incorrect = 53, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_NonCompliant for value: -1879047637 + /// Enum ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_NonCompliant for value: 2415919659 /// - [EnumMember(Value = "-1879047637")] + [EnumMember(Value = "2415919659")] ntfLDS_ICAO_Certificate_Ext_SubjectAltName_DN_NonCompliant = 54, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Missed for value: -1879047636 + /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Missed for value: 2415919660 /// - [EnumMember(Value = "-1879047636")] + [EnumMember(Value = "2415919660")] ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Missed = 55, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_IncorrectData for value: -1879047635 + /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_IncorrectData for value: 2415919661 /// - [EnumMember(Value = "-1879047635")] + [EnumMember(Value = "2415919661")] ntfLDS_ICAO_Certificate_Ext_IssuerAltName_IncorrectData = 56, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Empty for value: -1879047634 + /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Empty for value: 2415919662 /// - [EnumMember(Value = "-1879047634")] + [EnumMember(Value = "2415919662")] ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Empty = 57, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_NonCompliant for value: -1879047633 + /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_NonCompliant for value: 2415919663 /// - [EnumMember(Value = "-1879047633")] + [EnumMember(Value = "2415919663")] ntfLDS_ICAO_Certificate_Ext_IssuerAltName_NonCompliant = 58, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Critical for value: -1879047631 + /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Critical for value: 2415919665 /// - [EnumMember(Value = "-1879047631")] + [EnumMember(Value = "2415919665")] ntfLDS_ICAO_Certificate_Ext_IssuerAltName_Critical = 59, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_Empty for value: -1879047630 + /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_Empty for value: 2415919666 /// - [EnumMember(Value = "-1879047630")] + [EnumMember(Value = "2415919666")] ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_Empty = 60, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_Incorrect for value: -1879047629 + /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_Incorrect for value: 2415919667 /// - [EnumMember(Value = "-1879047629")] + [EnumMember(Value = "2415919667")] ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_Incorrect = 61, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_NonCompliant for value: -1879047628 + /// Enum ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_NonCompliant for value: 2415919668 /// - [EnumMember(Value = "-1879047628")] + [EnumMember(Value = "2415919668")] ntfLDS_ICAO_Certificate_Ext_IssuerAltName_DN_NonCompliant = 62, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_DocTypeList_Missed for value: -1879047627 + /// Enum ntfLDS_ICAO_Certificate_Ext_DocTypeList_Missed for value: 2415919669 /// - [EnumMember(Value = "-1879047627")] + [EnumMember(Value = "2415919669")] ntfLDS_ICAO_Certificate_Ext_DocTypeList_Missed = 63, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_DocTypeList_IncorrectData for value: -1879047626 + /// Enum ntfLDS_ICAO_Certificate_Ext_DocTypeList_IncorrectData for value: 2415919670 /// - [EnumMember(Value = "-1879047626")] + [EnumMember(Value = "2415919670")] ntfLDS_ICAO_Certificate_Ext_DocTypeList_IncorrectData = 64, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_DocTypeList_Version for value: -1879047625 + /// Enum ntfLDS_ICAO_Certificate_Ext_DocTypeList_Version for value: 2415919671 /// - [EnumMember(Value = "-1879047625")] + [EnumMember(Value = "2415919671")] ntfLDS_ICAO_Certificate_Ext_DocTypeList_Version = 65, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_DocTypeList_DocTypes for value: -1879047624 + /// Enum ntfLDS_ICAO_Certificate_Ext_DocTypeList_DocTypes for value: 2415919672 /// - [EnumMember(Value = "-1879047624")] + [EnumMember(Value = "2415919672")] ntfLDS_ICAO_Certificate_Ext_DocTypeList_DocTypes = 66, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_DocTypeList_DocTypes_Empty for value: -1879047623 + /// Enum ntfLDS_ICAO_Certificate_Ext_DocTypeList_DocTypes_Empty for value: 2415919673 /// - [EnumMember(Value = "-1879047623")] + [EnumMember(Value = "2415919673")] ntfLDS_ICAO_Certificate_Ext_DocTypeList_DocTypes_Empty = 67, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_CertPolicies_IncorrectData for value: -1879047622 + /// Enum ntfLDS_ICAO_Certificate_Ext_CertPolicies_IncorrectData for value: 2415919674 /// - [EnumMember(Value = "-1879047622")] + [EnumMember(Value = "2415919674")] ntfLDS_ICAO_Certificate_Ext_CertPolicies_IncorrectData = 68, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_CertPolicies_Empty for value: -1879047621 + /// Enum ntfLDS_ICAO_Certificate_Ext_CertPolicies_Empty for value: 2415919675 /// - [EnumMember(Value = "-1879047621")] + [EnumMember(Value = "2415919675")] ntfLDS_ICAO_Certificate_Ext_CertPolicies_Empty = 69, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_CertPolicies_PolicyID_Missed for value: -1879047620 + /// Enum ntfLDS_ICAO_Certificate_Ext_CertPolicies_PolicyID_Missed for value: 2415919676 /// - [EnumMember(Value = "-1879047620")] + [EnumMember(Value = "2415919676")] ntfLDS_ICAO_Certificate_Ext_CertPolicies_PolicyID_Missed = 70, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_Missed for value: -1879047619 + /// Enum ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_Missed for value: 2415919677 /// - [EnumMember(Value = "-1879047619")] + [EnumMember(Value = "2415919677")] ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_Missed = 71, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_IncorrectData for value: -1879047618 + /// Enum ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_IncorrectData for value: 2415919678 /// - [EnumMember(Value = "-1879047618")] + [EnumMember(Value = "2415919678")] ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_IncorrectData = 72, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_Empty for value: -1879047617 + /// Enum ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_Empty for value: 2415919679 /// - [EnumMember(Value = "-1879047617")] + [EnumMember(Value = "2415919679")] ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_Empty = 73, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_PointMissed for value: -1879047616 + /// Enum ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_PointMissed for value: 2415919680 /// - [EnumMember(Value = "-1879047616")] + [EnumMember(Value = "2415919680")] ntfLDS_ICAO_Certificate_Ext_CRLDistPoint_PointMissed = 74, /// - /// Enum ntfLDS_ICAO_Certificate_SN_NonCompliant for value: -1879047615 + /// Enum ntfLDS_ICAO_Certificate_SN_NonCompliant for value: 2415919681 /// - [EnumMember(Value = "-1879047615")] + [EnumMember(Value = "2415919681")] ntfLDS_ICAO_Certificate_SN_NonCompliant = 75, /// - /// Enum ntfLDS_ICAO_Certificate_Issuer_SN_NonCompliant for value: -1879047614 + /// Enum ntfLDS_ICAO_Certificate_Issuer_SN_NonCompliant for value: 2415919682 /// - [EnumMember(Value = "-1879047614")] + [EnumMember(Value = "2415919682")] ntfLDS_ICAO_Certificate_Issuer_SN_NonCompliant = 76, /// - /// Enum ntfLDS_ICAO_Certificate_Subject_SN_NonCompliant for value: -1879047613 + /// Enum ntfLDS_ICAO_Certificate_Subject_SN_NonCompliant for value: 2415919683 /// - [EnumMember(Value = "-1879047613")] + [EnumMember(Value = "2415919683")] ntfLDS_ICAO_Certificate_Subject_SN_NonCompliant = 77, /// - /// Enum ntfLDS_ICAO_Certificate_Issuer_AttributeNonCompliant for value: -1879047612 + /// Enum ntfLDS_ICAO_Certificate_Issuer_AttributeNonCompliant for value: 2415919684 /// - [EnumMember(Value = "-1879047612")] + [EnumMember(Value = "2415919684")] ntfLDS_ICAO_Certificate_Issuer_AttributeNonCompliant = 78, /// - /// Enum ntfLDS_ICAO_Certificate_Subject_AttributeNonCompliant for value: -1879047611 + /// Enum ntfLDS_ICAO_Certificate_Subject_AttributeNonCompliant for value: 2415919685 /// - [EnumMember(Value = "-1879047611")] + [EnumMember(Value = "2415919685")] ntfLDS_ICAO_Certificate_Subject_AttributeNonCompliant = 79, /// - /// Enum ntfLDS_ICAO_Certificate_IssuerSubject_Country_NonMatching for value: -1879047610 + /// Enum ntfLDS_ICAO_Certificate_IssuerSubject_Country_NonMatching for value: 2415919686 /// - [EnumMember(Value = "-1879047610")] + [EnumMember(Value = "2415919686")] ntfLDS_ICAO_Certificate_IssuerSubject_Country_NonMatching = 80, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_CSCA_AltNames_NonMatching for value: -1879047609 + /// Enum ntfLDS_ICAO_Certificate_Ext_CSCA_AltNames_NonMatching for value: 2415919687 /// - [EnumMember(Value = "-1879047609")] + [EnumMember(Value = "2415919687")] ntfLDS_ICAO_Certificate_Ext_CSCA_AltNames_NonMatching = 81, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_NameChange_IncorrectData for value: -1879047608 + /// Enum ntfLDS_ICAO_Certificate_Ext_NameChange_IncorrectData for value: 2415919688 /// - [EnumMember(Value = "-1879047608")] + [EnumMember(Value = "2415919688")] ntfLDS_ICAO_Certificate_Ext_NameChange_IncorrectData = 82, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_NameChange_NonCompliant for value: -1879047607 + /// Enum ntfLDS_ICAO_Certificate_Ext_NameChange_NonCompliant for value: 2415919689 /// - [EnumMember(Value = "-1879047607")] + [EnumMember(Value = "2415919689")] ntfLDS_ICAO_Certificate_Ext_NameChange_NonCompliant = 83, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_NameChange_Critical for value: -1879047606 + /// Enum ntfLDS_ICAO_Certificate_Ext_NameChange_Critical for value: 2415919690 /// - [EnumMember(Value = "-1879047606")] + [EnumMember(Value = "2415919690")] ntfLDS_ICAO_Certificate_Ext_NameChange_Critical = 84, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_DocTypeList_NonCompliant for value: -1879047605 + /// Enum ntfLDS_ICAO_Certificate_Ext_DocTypeList_NonCompliant for value: 2415919691 /// - [EnumMember(Value = "-1879047605")] + [EnumMember(Value = "2415919691")] ntfLDS_ICAO_Certificate_Ext_DocTypeList_NonCompliant = 85, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_DocTypeList_Critical for value: -1879047604 + /// Enum ntfLDS_ICAO_Certificate_Ext_DocTypeList_Critical for value: 2415919692 /// - [EnumMember(Value = "-1879047604")] + [EnumMember(Value = "2415919692")] ntfLDS_ICAO_Certificate_Ext_DocTypeList_Critical = 86, /// - /// Enum ntfLDS_ICAO_Certificate_Ext_Optional_Critical for value: -1879047603 + /// Enum ntfLDS_ICAO_Certificate_Ext_Optional_Critical for value: 2415919693 /// - [EnumMember(Value = "-1879047603")] + [EnumMember(Value = "2415919693")] ntfLDS_ICAO_Certificate_Ext_Optional_Critical = 87, /// - /// Enum ntfLDS_ICAO_Certificate_Subject_NonCompliant for value: -1879047602 + /// Enum ntfLDS_ICAO_Certificate_Subject_NonCompliant for value: 2415919694 /// - [EnumMember(Value = "-1879047602")] + [EnumMember(Value = "2415919694")] ntfLDS_ICAO_Certificate_Subject_NonCompliant = 88, /// - /// Enum ntfLDS_ICAO_Certificate_Subject_CommonNameNonCompliant for value: -1879047601 + /// Enum ntfLDS_ICAO_Certificate_Subject_CommonNameNonCompliant for value: 2415919695 /// - [EnumMember(Value = "-1879047601")] + [EnumMember(Value = "2415919695")] ntfLDS_ICAO_Certificate_Subject_CommonNameNonCompliant = 89, /// - /// Enum ntfLDS_ICAO_COM_LDS_Version_Incorrect for value: -1879048160 + /// Enum ntfLDS_ICAO_COM_LDS_Version_Incorrect for value: 2415919136 /// - [EnumMember(Value = "-1879048160")] + [EnumMember(Value = "2415919136")] ntfLDS_ICAO_COM_LDS_Version_Incorrect = 90, /// - /// Enum ntfLDS_ICAO_COM_LDS_Version_Missing for value: -1879048159 + /// Enum ntfLDS_ICAO_COM_LDS_Version_Missing for value: 2415919137 /// - [EnumMember(Value = "-1879048159")] + [EnumMember(Value = "2415919137")] ntfLDS_ICAO_COM_LDS_Version_Missing = 91, /// - /// Enum ntfLDS_ICAO_COM_Unicode_Version_Incorrect for value: -1879048158 + /// Enum ntfLDS_ICAO_COM_Unicode_Version_Incorrect for value: 2415919138 /// - [EnumMember(Value = "-1879048158")] + [EnumMember(Value = "2415919138")] ntfLDS_ICAO_COM_Unicode_Version_Incorrect = 92, /// - /// Enum ntfLDS_ICAO_COM_Unicode_Version_Missing for value: -1879048157 + /// Enum ntfLDS_ICAO_COM_Unicode_Version_Missing for value: 2415919139 /// - [EnumMember(Value = "-1879048157")] + [EnumMember(Value = "2415919139")] ntfLDS_ICAO_COM_Unicode_Version_Missing = 93, /// - /// Enum ntfLDS_ICAO_COM_DGPM_Incorrect for value: -1879048156 + /// Enum ntfLDS_ICAO_COM_DGPM_Incorrect for value: 2415919140 /// - [EnumMember(Value = "-1879048156")] + [EnumMember(Value = "2415919140")] ntfLDS_ICAO_COM_DGPM_Incorrect = 94, /// - /// Enum ntfLDS_ICAO_COM_DGPM_Missing for value: -1879048155 + /// Enum ntfLDS_ICAO_COM_DGPM_Missing for value: 2415919141 /// - [EnumMember(Value = "-1879048155")] + [EnumMember(Value = "2415919141")] ntfLDS_ICAO_COM_DGPM_Missing = 95, /// - /// Enum ntfLDS_ICAO_COM_DGPM_Unexpected for value: -1879048154 + /// Enum ntfLDS_ICAO_COM_DGPM_Unexpected for value: 2415919142 /// - [EnumMember(Value = "-1879048154")] + [EnumMember(Value = "2415919142")] ntfLDS_ICAO_COM_DGPM_Unexpected = 96, /// - /// Enum ntfLDS_ICAO_Application_LDSVersion_Unsupported for value: -1879048144 + /// Enum ntfLDS_ICAO_Application_LDSVersion_Unsupported for value: 2415919152 /// - [EnumMember(Value = "-1879048144")] + [EnumMember(Value = "2415919152")] ntfLDS_ICAO_Application_LDSVersion_Unsupported = 97, /// - /// Enum ntfLDS_ICAO_Application_UnicodeVersion_Unsupported for value: -1879048143 + /// Enum ntfLDS_ICAO_Application_UnicodeVersion_Unsupported for value: 2415919153 /// - [EnumMember(Value = "-1879048143")] + [EnumMember(Value = "2415919153")] ntfLDS_ICAO_Application_UnicodeVersion_Unsupported = 98, /// - /// Enum ntfLDS_ICAO_Application_LDSVersion_Inconsistent for value: -1879048142 + /// Enum ntfLDS_ICAO_Application_LDSVersion_Inconsistent for value: 2415919154 /// - [EnumMember(Value = "-1879048142")] + [EnumMember(Value = "2415919154")] ntfLDS_ICAO_Application_LDSVersion_Inconsistent = 99, /// - /// Enum ntfLDS_ICAO_Application_UnicodeVersion_Inconsistent for value: -1879048141 + /// Enum ntfLDS_ICAO_Application_UnicodeVersion_Inconsistent for value: 2415919155 /// - [EnumMember(Value = "-1879048141")] + [EnumMember(Value = "2415919155")] ntfLDS_ICAO_Application_UnicodeVersion_Inconsistent = 100, /// - /// Enum ntfLDS_ASN_SignedData_OID_Incorrect for value: -1879047936 + /// Enum ntfLDS_ASN_SignedData_OID_Incorrect for value: 2415919360 /// - [EnumMember(Value = "-1879047936")] + [EnumMember(Value = "2415919360")] ntfLDS_ASN_SignedData_OID_Incorrect = 101, /// - /// Enum ntfLDS_ASN_SignedData_Version_Incorrect for value: -1879047776 + /// Enum ntfLDS_ASN_SignedData_Version_Incorrect for value: 2415919520 /// - [EnumMember(Value = "-1879047776")] + [EnumMember(Value = "2415919520")] ntfLDS_ASN_SignedData_Version_Incorrect = 102, /// - /// Enum ntfLDS_ASN_SignedData_ContentOID_Incorrect for value: -1879047775 + /// Enum ntfLDS_ASN_SignedData_ContentOID_Incorrect for value: 2415919521 /// - [EnumMember(Value = "-1879047775")] + [EnumMember(Value = "2415919521")] ntfLDS_ASN_SignedData_ContentOID_Incorrect = 103, /// - /// Enum ntfLDS_ICAO_SignedData_Version_Incorrect for value: -1879047935 + /// Enum ntfLDS_ICAO_SignedData_Version_Incorrect for value: 2415919361 /// - [EnumMember(Value = "-1879047935")] + [EnumMember(Value = "2415919361")] ntfLDS_ICAO_SignedData_Version_Incorrect = 104, /// - /// Enum ntfLDS_ICAO_SignedData_DigestAlgorithms_Empty for value: -1879047934 + /// Enum ntfLDS_ICAO_SignedData_DigestAlgorithms_Empty for value: 2415919362 /// - [EnumMember(Value = "-1879047934")] + [EnumMember(Value = "2415919362")] ntfLDS_ICAO_SignedData_DigestAlgorithms_Empty = 105, /// - /// Enum ntfLDS_ICAO_SignedData_DigestAlgorithms_Unsupported for value: -1879047933 + /// Enum ntfLDS_ICAO_SignedData_DigestAlgorithms_Unsupported for value: 2415919363 /// - [EnumMember(Value = "-1879047933")] + [EnumMember(Value = "2415919363")] ntfLDS_ICAO_SignedData_DigestAlgorithms_Unsupported = 106, /// - /// Enum ntfLDS_ICAO_SignedData_SignerInfos_MultipleEntries for value: -1879047927 + /// Enum ntfLDS_ICAO_SignedData_SignerInfos_MultipleEntries for value: 2415919369 /// - [EnumMember(Value = "-1879047927")] + [EnumMember(Value = "2415919369")] ntfLDS_ICAO_SignedData_SignerInfos_MultipleEntries = 107, /// - /// Enum ntfLDS_ICAO_SignedData_Certificates_Missed for value: -1879047760 + /// Enum ntfLDS_ICAO_SignedData_Certificates_Missed for value: 2415919536 /// - [EnumMember(Value = "-1879047760")] + [EnumMember(Value = "2415919536")] ntfLDS_ICAO_SignedData_Certificates_Missed = 108, /// - /// Enum ntfLDS_ICAO_SignedData_Certificates_Empty for value: -1879047759 + /// Enum ntfLDS_ICAO_SignedData_Certificates_Empty for value: 2415919537 /// - [EnumMember(Value = "-1879047759")] + [EnumMember(Value = "2415919537")] ntfLDS_ICAO_SignedData_Certificates_Empty = 109, /// - /// Enum ntfLDS_ICAO_SignedData_CRLs_IncorrectUsage for value: -1879047758 + /// Enum ntfLDS_ICAO_SignedData_CRLs_IncorrectUsage for value: 2415919538 /// - [EnumMember(Value = "-1879047758")] + [EnumMember(Value = "2415919538")] ntfLDS_ICAO_SignedData_CRLs_IncorrectUsage = 110, /// - /// Enum ntfLDS_ICAO_LDSObject_IncorrectContentOID for value: -1879047932 + /// Enum ntfLDS_ICAO_LDSObject_IncorrectContentOID for value: 2415919364 /// - [EnumMember(Value = "-1879047932")] + [EnumMember(Value = "2415919364")] ntfLDS_ICAO_LDSObject_IncorrectContentOID = 111, /// - /// Enum ntfLDS_ICAO_LDSObject_DGNumber_Incorrect for value: -1879047931 + /// Enum ntfLDS_ICAO_LDSObject_DGNumber_Incorrect for value: 2415919365 /// - [EnumMember(Value = "-1879047931")] + [EnumMember(Value = "2415919365")] ntfLDS_ICAO_LDSObject_DGNumber_Incorrect = 112, /// - /// Enum ntfLDS_ICAO_LDSObject_DGHash_Missing for value: -1879047930 + /// Enum ntfLDS_ICAO_LDSObject_DGHash_Missing for value: 2415919366 /// - [EnumMember(Value = "-1879047930")] + [EnumMember(Value = "2415919366")] ntfLDS_ICAO_LDSObject_DGHash_Missing = 113, /// - /// Enum ntfLDS_ICAO_LDSObject_DGHash_Extra for value: -1879047929 + /// Enum ntfLDS_ICAO_LDSObject_DGHash_Extra for value: 2415919367 /// - [EnumMember(Value = "-1879047929")] + [EnumMember(Value = "2415919367")] ntfLDS_ICAO_LDSObject_DGHash_Extra = 114, /// - /// Enum ntfLDS_ICAO_LDSObject_Version_Incorrect for value: -1879047928 + /// Enum ntfLDS_ICAO_LDSObject_Version_Incorrect for value: 2415919368 /// - [EnumMember(Value = "-1879047928")] + [EnumMember(Value = "2415919368")] ntfLDS_ICAO_LDSObject_Version_Incorrect = 115, /// - /// Enum ntfLDS_ICAO_MasterList_Version_Incorrect for value: -1879047744 + /// Enum ntfLDS_ICAO_MasterList_Version_Incorrect for value: 2415919552 /// - [EnumMember(Value = "-1879047744")] + [EnumMember(Value = "2415919552")] ntfLDS_ICAO_MasterList_Version_Incorrect = 116, /// - /// Enum ntfLDS_ICAO_DeviationList_Version_Incorrect for value: -1879047736 + /// Enum ntfLDS_ICAO_DeviationList_Version_Incorrect for value: 2415919560 /// - [EnumMember(Value = "-1879047736")] + [EnumMember(Value = "2415919560")] ntfLDS_ICAO_DeviationList_Version_Incorrect = 117, /// - /// Enum ntfLDS_BSI_DefectList_Version_Incorrect for value: -1879047728 + /// Enum ntfLDS_BSI_DefectList_Version_Incorrect for value: 2415919568 /// - [EnumMember(Value = "-1879047728")] + [EnumMember(Value = "2415919568")] ntfLDS_BSI_DefectList_Version_Incorrect = 118, /// - /// Enum ntfLDS_BSI_BlackList_Version_Incorrect for value: -1879047720 + /// Enum ntfLDS_BSI_BlackList_Version_Incorrect for value: 2415919576 /// - [EnumMember(Value = "-1879047720")] + [EnumMember(Value = "2415919576")] ntfLDS_BSI_BlackList_Version_Incorrect = 119, /// - /// Enum ntfLDS_ASN_SignerInfo_Version_Incorrect for value: -1879047926 + /// Enum ntfLDS_ASN_SignerInfo_Version_Incorrect for value: 2415919370 /// - [EnumMember(Value = "-1879047926")] + [EnumMember(Value = "2415919370")] ntfLDS_ASN_SignerInfo_Version_Incorrect = 120, /// - /// Enum ntfLDS_ASN_SignerInfo_SID_IncorrectChoice for value: -1879047925 + /// Enum ntfLDS_ASN_SignerInfo_SID_IncorrectChoice for value: 2415919371 /// - [EnumMember(Value = "-1879047925")] + [EnumMember(Value = "2415919371")] ntfLDS_ASN_SignerInfo_SID_IncorrectChoice = 121, /// - /// Enum ntfLDS_ASN_SignerInfo_SID_DigestAlgorithmNotListed for value: -1879047924 + /// Enum ntfLDS_ASN_SignerInfo_SID_DigestAlgorithmNotListed for value: 2415919372 /// - [EnumMember(Value = "-1879047924")] + [EnumMember(Value = "2415919372")] ntfLDS_ASN_SignerInfo_SID_DigestAlgorithmNotListed = 122, /// - /// Enum ntfLDS_ASN_SignerInfo_MessageDigestAttr_Missing for value: -1879047923 + /// Enum ntfLDS_ASN_SignerInfo_MessageDigestAttr_Missing for value: 2415919373 /// - [EnumMember(Value = "-1879047923")] + [EnumMember(Value = "2415919373")] ntfLDS_ASN_SignerInfo_MessageDigestAttr_Missing = 123, /// - /// Enum ntfLDS_ASN_SignerInfo_MessageDigestAttr_Data for value: -1879047922 + /// Enum ntfLDS_ASN_SignerInfo_MessageDigestAttr_Data for value: 2415919374 /// - [EnumMember(Value = "-1879047922")] + [EnumMember(Value = "2415919374")] ntfLDS_ASN_SignerInfo_MessageDigestAttr_Data = 124, /// - /// Enum ntfLDS_ASN_SignerInfo_MessageDigestAttr_Value for value: -1879047921 + /// Enum ntfLDS_ASN_SignerInfo_MessageDigestAttr_Value for value: 2415919375 /// - [EnumMember(Value = "-1879047921")] + [EnumMember(Value = "2415919375")] ntfLDS_ASN_SignerInfo_MessageDigestAttr_Value = 125, /// - /// Enum ntfLDS_ASN_SignerInfo_ContentTypeAttr_Missing for value: -1879047920 + /// Enum ntfLDS_ASN_SignerInfo_ContentTypeAttr_Missing for value: 2415919376 /// - [EnumMember(Value = "-1879047920")] + [EnumMember(Value = "2415919376")] ntfLDS_ASN_SignerInfo_ContentTypeAttr_Missing = 126, /// - /// Enum ntfLDS_ASN_SignerInfo_ContentTypeAttr_Data for value: -1879047919 + /// Enum ntfLDS_ASN_SignerInfo_ContentTypeAttr_Data for value: 2415919377 /// - [EnumMember(Value = "-1879047919")] + [EnumMember(Value = "2415919377")] ntfLDS_ASN_SignerInfo_ContentTypeAttr_Data = 127, /// - /// Enum ntfLDS_ASN_SignerInfo_ContentTypeAttr_Value for value: -1879047918 + /// Enum ntfLDS_ASN_SignerInfo_ContentTypeAttr_Value for value: 2415919378 /// - [EnumMember(Value = "-1879047918")] + [EnumMember(Value = "2415919378")] ntfLDS_ASN_SignerInfo_ContentTypeAttr_Value = 128, /// - /// Enum ntfLDS_ASN_SignerInfo_SigningTimeAttr_Missing for value: -1879047909 + /// Enum ntfLDS_ASN_SignerInfo_SigningTimeAttr_Missing for value: 2415919387 /// - [EnumMember(Value = "-1879047909")] + [EnumMember(Value = "2415919387")] ntfLDS_ASN_SignerInfo_SigningTimeAttr_Missing = 129, /// - /// Enum ntfLDS_ASN_SignerInfo_SigningTimeAttr_Data for value: -1879047908 + /// Enum ntfLDS_ASN_SignerInfo_SigningTimeAttr_Data for value: 2415919388 /// - [EnumMember(Value = "-1879047908")] + [EnumMember(Value = "2415919388")] ntfLDS_ASN_SignerInfo_SigningTimeAttr_Data = 130, /// - /// Enum ntfLDS_ASN_SignerInfo_SigningTimeAttr_Value for value: -1879047907 + /// Enum ntfLDS_ASN_SignerInfo_SigningTimeAttr_Value for value: 2415919389 /// - [EnumMember(Value = "-1879047907")] + [EnumMember(Value = "2415919389")] ntfLDS_ASN_SignerInfo_SigningTimeAttr_Value = 131, /// - /// Enum ntfLDS_ASN_SignerInfo_ListContentDescriptionAttr_Missing for value: -1879047906 + /// Enum ntfLDS_ASN_SignerInfo_ListContentDescriptionAttr_Missing for value: 2415919390 /// - [EnumMember(Value = "-1879047906")] + [EnumMember(Value = "2415919390")] ntfLDS_ASN_SignerInfo_ListContentDescriptionAttr_Missing = 132, /// - /// Enum ntfLDS_ASN_SignerInfo_ListContentDescriptionAttr_Data for value: -1879047905 + /// Enum ntfLDS_ASN_SignerInfo_ListContentDescriptionAttr_Data for value: 2415919391 /// - [EnumMember(Value = "-1879047905")] + [EnumMember(Value = "2415919391")] ntfLDS_ASN_SignerInfo_ListContentDescriptionAttr_Data = 133, /// - /// Enum ntfLDS_Auth_SignerInfo_Certificate_Validity for value: -1879047915 + /// Enum ntfLDS_Auth_SignerInfo_Certificate_Validity for value: 2415919381 /// - [EnumMember(Value = "-1879047915")] + [EnumMember(Value = "2415919381")] ntfLDS_Auth_SignerInfo_Certificate_Validity = 134, /// - /// Enum ntfLDS_Auth_SignerInfo_Certificate_RootIsNotTrusted for value: -1879047914 + /// Enum ntfLDS_Auth_SignerInfo_Certificate_RootIsNotTrusted for value: 2415919382 /// - [EnumMember(Value = "-1879047914")] + [EnumMember(Value = "2415919382")] ntfLDS_Auth_SignerInfo_Certificate_RootIsNotTrusted = 135, /// - /// Enum ntfLDS_Auth_SignerInfo_Certificate_CantFindCSCA for value: -1879047913 + /// Enum ntfLDS_Auth_SignerInfo_Certificate_CantFindCSCA for value: 2415919383 /// - [EnumMember(Value = "-1879047913")] + [EnumMember(Value = "2415919383")] ntfLDS_Auth_SignerInfo_Certificate_CantFindCSCA = 136, /// - /// Enum ntfLDS_Auth_SignerInfo_Certificate_Revoked for value: -1879047912 + /// Enum ntfLDS_Auth_SignerInfo_Certificate_Revoked for value: 2415919384 /// - [EnumMember(Value = "-1879047912")] + [EnumMember(Value = "2415919384")] ntfLDS_Auth_SignerInfo_Certificate_Revoked = 137, /// - /// Enum ntfLDS_Auth_SignerInfo_Certificate_SignatureInvalid for value: -1879047911 + /// Enum ntfLDS_Auth_SignerInfo_Certificate_SignatureInvalid for value: 2415919385 /// - [EnumMember(Value = "-1879047911")] + [EnumMember(Value = "2415919385")] ntfLDS_Auth_SignerInfo_Certificate_SignatureInvalid = 138, /// - /// Enum ntfLDS_UnsupportedImageFormat for value: -1879047910 + /// Enum ntfLDS_UnsupportedImageFormat for value: 2415919386 /// - [EnumMember(Value = "-1879047910")] + [EnumMember(Value = "2415919386")] ntfLDS_UnsupportedImageFormat = 139, /// @@ -958,399 +958,399 @@ public enum ParsingNotificationCodes ntfLDS_MRZ_Incorrect = 154, /// - /// Enum ntfLDS_Biometrics_FormatOwner_Missing for value: -1878982656 + /// Enum ntfLDS_Biometrics_FormatOwner_Missing for value: 2415984640 /// - [EnumMember(Value = "-1878982656")] + [EnumMember(Value = "2415984640")] ntfLDS_Biometrics_FormatOwner_Missing = 155, /// - /// Enum ntfLDS_Biometrics_FormatOwner_Incorrect for value: -1878917120 + /// Enum ntfLDS_Biometrics_FormatOwner_Incorrect for value: 2416050176 /// - [EnumMember(Value = "-1878917120")] + [EnumMember(Value = "2416050176")] ntfLDS_Biometrics_FormatOwner_Incorrect = 156, /// - /// Enum ntfLDS_Biometrics_FormatType_Missing for value: -1878851584 + /// Enum ntfLDS_Biometrics_FormatType_Missing for value: 2416115712 /// - [EnumMember(Value = "-1878851584")] + [EnumMember(Value = "2416115712")] ntfLDS_Biometrics_FormatType_Missing = 157, /// - /// Enum ntfLDS_Biometrics_FormatType_Incorrect for value: -1878786048 + /// Enum ntfLDS_Biometrics_FormatType_Incorrect for value: 2416181248 /// - [EnumMember(Value = "-1878786048")] + [EnumMember(Value = "2416181248")] ntfLDS_Biometrics_FormatType_Incorrect = 158, /// - /// Enum ntfLDS_Biometrics_Type_Incorrect for value: -1878720512 + /// Enum ntfLDS_Biometrics_Type_Incorrect for value: 2416246784 /// - [EnumMember(Value = "-1878720512")] + [EnumMember(Value = "2416246784")] ntfLDS_Biometrics_Type_Incorrect = 159, /// - /// Enum ntfLDS_Biometrics_SubType_Missing for value: -1878654976 + /// Enum ntfLDS_Biometrics_SubType_Missing for value: 2416312320 /// - [EnumMember(Value = "-1878654976")] + [EnumMember(Value = "2416312320")] ntfLDS_Biometrics_SubType_Missing = 160, /// - /// Enum ntfLDS_Biometrics_SubType_Incorrect for value: -1878589440 + /// Enum ntfLDS_Biometrics_SubType_Incorrect for value: 2416377856 /// - [EnumMember(Value = "-1878589440")] + [EnumMember(Value = "2416377856")] ntfLDS_Biometrics_SubType_Incorrect = 161, /// - /// Enum ntfLDS_Biometrics_BDB_Image_Missing for value: -1878523904 + /// Enum ntfLDS_Biometrics_BDB_Image_Missing for value: 2416443392 /// - [EnumMember(Value = "-1878523904")] + [EnumMember(Value = "2416443392")] ntfLDS_Biometrics_BDB_Image_Missing = 162, /// - /// Enum ntfLDS_Biometrics_BDB_FormatID_Incorrect for value: -1878458368 + /// Enum ntfLDS_Biometrics_BDB_FormatID_Incorrect for value: 2416508928 /// - [EnumMember(Value = "-1878458368")] + [EnumMember(Value = "2416508928")] ntfLDS_Biometrics_BDB_FormatID_Incorrect = 163, /// - /// Enum ntfLDS_Biometrics_BDB_Version_Incorrect for value: -1878392832 + /// Enum ntfLDS_Biometrics_BDB_Version_Incorrect for value: 2416574464 /// - [EnumMember(Value = "-1878392832")] + [EnumMember(Value = "2416574464")] ntfLDS_Biometrics_BDB_Version_Incorrect = 164, /// - /// Enum ntfLDS_Biometrics_BDB_DataLength_Incorrect for value: -1878327296 + /// Enum ntfLDS_Biometrics_BDB_DataLength_Incorrect for value: 2416640000 /// - [EnumMember(Value = "-1878327296")] + [EnumMember(Value = "2416640000")] ntfLDS_Biometrics_BDB_DataLength_Incorrect = 165, /// - /// Enum ntfLDS_Biometrics_BDB_Data_Gender for value: -1877999616 + /// Enum ntfLDS_Biometrics_BDB_Data_Gender for value: 2416967680 /// - [EnumMember(Value = "-1877999616")] + [EnumMember(Value = "2416967680")] ntfLDS_Biometrics_BDB_Data_Gender = 166, /// - /// Enum ntfLDS_Biometrics_BDB_Data_EyeColor for value: -1877934080 + /// Enum ntfLDS_Biometrics_BDB_Data_EyeColor for value: 2417033216 /// - [EnumMember(Value = "-1877934080")] + [EnumMember(Value = "2417033216")] ntfLDS_Biometrics_BDB_Data_EyeColor = 167, /// - /// Enum ntfLDS_Biometrics_BDB_Data_HairColor for value: -1877868544 + /// Enum ntfLDS_Biometrics_BDB_Data_HairColor for value: 2417098752 /// - [EnumMember(Value = "-1877868544")] + [EnumMember(Value = "2417098752")] ntfLDS_Biometrics_BDB_Data_HairColor = 168, /// - /// Enum ntfLDS_Biometrics_BDB_Data_PoseAngle_Yaw for value: -1877803008 + /// Enum ntfLDS_Biometrics_BDB_Data_PoseAngle_Yaw for value: 2417164288 /// - [EnumMember(Value = "-1877803008")] + [EnumMember(Value = "2417164288")] ntfLDS_Biometrics_BDB_Data_PoseAngle_Yaw = 169, /// - /// Enum ntfLDS_Biometrics_BDB_Data_PoseAngle_Pitch for value: -1877737472 + /// Enum ntfLDS_Biometrics_BDB_Data_PoseAngle_Pitch for value: 2417229824 /// - [EnumMember(Value = "-1877737472")] + [EnumMember(Value = "2417229824")] ntfLDS_Biometrics_BDB_Data_PoseAngle_Pitch = 170, /// - /// Enum ntfLDS_Biometrics_BDB_Data_PoseAngle_Roll for value: -1877671936 + /// Enum ntfLDS_Biometrics_BDB_Data_PoseAngle_Roll for value: 2417295360 /// - [EnumMember(Value = "-1877671936")] + [EnumMember(Value = "2417295360")] ntfLDS_Biometrics_BDB_Data_PoseAngle_Roll = 171, /// - /// Enum ntfLDS_Biometrics_BDB_Data_PoseAngleU_Yaw for value: -1877606400 + /// Enum ntfLDS_Biometrics_BDB_Data_PoseAngleU_Yaw for value: 2417360896 /// - [EnumMember(Value = "-1877606400")] + [EnumMember(Value = "2417360896")] ntfLDS_Biometrics_BDB_Data_PoseAngleU_Yaw = 172, /// - /// Enum ntfLDS_Biometrics_BDB_Data_PoseAngleU_Pitch for value: -1877540864 + /// Enum ntfLDS_Biometrics_BDB_Data_PoseAngleU_Pitch for value: 2417426432 /// - [EnumMember(Value = "-1877540864")] + [EnumMember(Value = "2417426432")] ntfLDS_Biometrics_BDB_Data_PoseAngleU_Pitch = 173, /// - /// Enum ntfLDS_Biometrics_BDB_Data_PoseAngleU_Roll for value: -1877475328 + /// Enum ntfLDS_Biometrics_BDB_Data_PoseAngleU_Roll for value: 2417491968 /// - [EnumMember(Value = "-1877475328")] + [EnumMember(Value = "2417491968")] ntfLDS_Biometrics_BDB_Data_PoseAngleU_Roll = 174, /// - /// Enum ntfLDS_Biometrics_BDB_Data_FaceImageType for value: -1877409792 + /// Enum ntfLDS_Biometrics_BDB_Data_FaceImageType for value: 2417557504 /// - [EnumMember(Value = "-1877409792")] + [EnumMember(Value = "2417557504")] ntfLDS_Biometrics_BDB_Data_FaceImageType = 175, /// - /// Enum ntfLDS_Biometrics_BDB_Data_ImageDataType for value: -1877344256 + /// Enum ntfLDS_Biometrics_BDB_Data_ImageDataType for value: 2417623040 /// - [EnumMember(Value = "-1877344256")] + [EnumMember(Value = "2417623040")] ntfLDS_Biometrics_BDB_Data_ImageDataType = 176, /// - /// Enum ntfLDS_SI_PACE_Info_UnsupportedStdParameters for value: -1862270976 + /// Enum ntfLDS_SI_PACE_Info_UnsupportedStdParameters for value: 2432696320 /// - [EnumMember(Value = "-1862270976")] + [EnumMember(Value = "2432696320")] ntfLDS_SI_PACE_Info_UnsupportedStdParameters = 177, /// - /// Enum ntfLDS_SI_PACE_Info_DeprecatedVersion for value: -1862270975 + /// Enum ntfLDS_SI_PACE_Info_DeprecatedVersion for value: 2432696321 /// - [EnumMember(Value = "-1862270975")] + [EnumMember(Value = "2432696321")] ntfLDS_SI_PACE_Info_DeprecatedVersion = 178, /// - /// Enum ntfLDS_SI_PACE_DomainParams_UsingStdRef for value: -1862270974 + /// Enum ntfLDS_SI_PACE_DomainParams_UsingStdRef for value: 2432696322 /// - [EnumMember(Value = "-1862270974")] + [EnumMember(Value = "2432696322")] ntfLDS_SI_PACE_DomainParams_UsingStdRef = 179, /// - /// Enum ntfLDS_SI_PACE_DomainParams_UnsupportedAlgorithm for value: -1862270973 + /// Enum ntfLDS_SI_PACE_DomainParams_UnsupportedAlgorithm for value: 2432696323 /// - [EnumMember(Value = "-1862270973")] + [EnumMember(Value = "2432696323")] ntfLDS_SI_PACE_DomainParams_UnsupportedAlgorithm = 180, /// - /// Enum ntfLDS_SI_CA_Info_IncorrectVersion for value: -1862270972 + /// Enum ntfLDS_SI_CA_Info_IncorrectVersion for value: 2432696324 /// - [EnumMember(Value = "-1862270972")] + [EnumMember(Value = "2432696324")] ntfLDS_SI_CA_Info_IncorrectVersion = 181, /// - /// Enum ntfLDS_SI_CA_PublicKey_UnsupportedAlgorithm for value: -1862270971 + /// Enum ntfLDS_SI_CA_PublicKey_UnsupportedAlgorithm for value: 2432696325 /// - [EnumMember(Value = "-1862270971")] + [EnumMember(Value = "2432696325")] ntfLDS_SI_CA_PublicKey_UnsupportedAlgorithm = 182, /// - /// Enum ntfLDS_SI_CA_DomainParams_UnsupportedAlgorithm for value: -1862270970 + /// Enum ntfLDS_SI_CA_DomainParams_UnsupportedAlgorithm for value: 2432696326 /// - [EnumMember(Value = "-1862270970")] + [EnumMember(Value = "2432696326")] ntfLDS_SI_CA_DomainParams_UnsupportedAlgorithm = 183, /// - /// Enum ntfLDS_SI_TA_Info_IncorrectVersion for value: -1862270969 + /// Enum ntfLDS_SI_TA_Info_IncorrectVersion for value: 2432696327 /// - [EnumMember(Value = "-1862270969")] + [EnumMember(Value = "2432696327")] ntfLDS_SI_TA_Info_IncorrectVersion = 184, /// - /// Enum ntfLDS_SI_TA_Info_FileIDForVersion2 for value: -1862270968 + /// Enum ntfLDS_SI_TA_Info_FileIDForVersion2 for value: 2432696328 /// - [EnumMember(Value = "-1862270968")] + [EnumMember(Value = "2432696328")] ntfLDS_SI_TA_Info_FileIDForVersion2 = 185, /// - /// Enum ntfLDS_SI_eIDSecurity_UnsupportedDigestAlgorithm for value: -1862270967 + /// Enum ntfLDS_SI_eIDSecurity_UnsupportedDigestAlgorithm for value: 2432696329 /// - [EnumMember(Value = "-1862270967")] + [EnumMember(Value = "2432696329")] ntfLDS_SI_eIDSecurity_UnsupportedDigestAlgorithm = 186, /// - /// Enum ntfLDS_SI_RI_Info_IncorrectVersion for value: -1862270966 + /// Enum ntfLDS_SI_RI_Info_IncorrectVersion for value: 2432696330 /// - [EnumMember(Value = "-1862270966")] + [EnumMember(Value = "2432696330")] ntfLDS_SI_RI_Info_IncorrectVersion = 187, /// - /// Enum ntfLDS_SI_RI_DomainParams_UnsupportedAlgorithm for value: -1862270965 + /// Enum ntfLDS_SI_RI_DomainParams_UnsupportedAlgorithm for value: 2432696331 /// - [EnumMember(Value = "-1862270965")] + [EnumMember(Value = "2432696331")] ntfLDS_SI_RI_DomainParams_UnsupportedAlgorithm = 188, /// - /// Enum ntfLDS_SI_AA_Info_IncorrectVersion for value: -1862270964 + /// Enum ntfLDS_SI_AA_Info_IncorrectVersion for value: 2432696332 /// - [EnumMember(Value = "-1862270964")] + [EnumMember(Value = "2432696332")] ntfLDS_SI_AA_Info_IncorrectVersion = 189, /// - /// Enum ntfLDS_SI_AA_Info_UnsupportedAlgorithm for value: -1862270963 + /// Enum ntfLDS_SI_AA_Info_UnsupportedAlgorithm for value: 2432696333 /// - [EnumMember(Value = "-1862270963")] + [EnumMember(Value = "2432696333")] ntfLDS_SI_AA_Info_UnsupportedAlgorithm = 190, /// - /// Enum ntfLDS_SI_AA_Info_InconsistentAlgorithmReference for value: -1862270962 + /// Enum ntfLDS_SI_AA_Info_InconsistentAlgorithmReference for value: 2432696334 /// - [EnumMember(Value = "-1862270962")] + [EnumMember(Value = "2432696334")] ntfLDS_SI_AA_Info_InconsistentAlgorithmReference = 191, /// - /// Enum ntfLDS_SI_Storage_PACE_Info_NotAvailable for value: -1862270720 + /// Enum ntfLDS_SI_Storage_PACE_Info_NotAvailable for value: 2432696576 /// - [EnumMember(Value = "-1862270720")] + [EnumMember(Value = "2432696576")] ntfLDS_SI_Storage_PACE_Info_NotAvailable = 192, /// - /// Enum ntfLDS_SI_Storage_PACE_Info_NoStdParameters for value: -1862270719 + /// Enum ntfLDS_SI_Storage_PACE_Info_NoStdParameters for value: 2432696577 /// - [EnumMember(Value = "-1862270719")] + [EnumMember(Value = "2432696577")] ntfLDS_SI_Storage_PACE_Info_NoStdParameters = 193, /// - /// Enum ntfLDS_SI_Storage_PACE_Info_NoMatchingDomainParams for value: -1862270718 + /// Enum ntfLDS_SI_Storage_PACE_Info_NoMatchingDomainParams for value: 2432696578 /// - [EnumMember(Value = "-1862270718")] + [EnumMember(Value = "2432696578")] ntfLDS_SI_Storage_PACE_Info_NoMatchingDomainParams = 194, /// - /// Enum ntfLDS_SI_Storage_CA_Info_NotAvailable for value: -1862270717 + /// Enum ntfLDS_SI_Storage_CA_Info_NotAvailable for value: 2432696579 /// - [EnumMember(Value = "-1862270717")] + [EnumMember(Value = "2432696579")] ntfLDS_SI_Storage_CA_Info_NotAvailable = 195, /// - /// Enum ntfLDS_SI_Storage_CA_DomainParams_NoRequiredOption for value: -1862270716 + /// Enum ntfLDS_SI_Storage_CA_DomainParams_NoRequiredOption for value: 2432696580 /// - [EnumMember(Value = "-1862270716")] + [EnumMember(Value = "2432696580")] ntfLDS_SI_Storage_CA_DomainParams_NoRequiredOption = 196, /// - /// Enum ntfLDS_SI_Storage_CA_DomainParams_NotAvailable for value: -1862270715 + /// Enum ntfLDS_SI_Storage_CA_DomainParams_NotAvailable for value: 2432696581 /// - [EnumMember(Value = "-1862270715")] + [EnumMember(Value = "2432696581")] ntfLDS_SI_Storage_CA_DomainParams_NotAvailable = 197, /// - /// Enum ntfLDS_SI_Storage_CA_AnonymousInfos for value: -1862270714 + /// Enum ntfLDS_SI_Storage_CA_AnonymousInfos for value: 2432696582 /// - [EnumMember(Value = "-1862270714")] + [EnumMember(Value = "2432696582")] ntfLDS_SI_Storage_CA_AnonymousInfos = 198, /// - /// Enum ntfLDS_SI_Storage_CA_Info_NoMatchingDomainParams for value: -1862270713 + /// Enum ntfLDS_SI_Storage_CA_Info_NoMatchingDomainParams for value: 2432696583 /// - [EnumMember(Value = "-1862270713")] + [EnumMember(Value = "2432696583")] ntfLDS_SI_Storage_CA_Info_NoMatchingDomainParams = 199, /// - /// Enum ntfLDS_SI_Storage_CA_Info_NoMatchingPublicKey for value: -1862270712 + /// Enum ntfLDS_SI_Storage_CA_Info_NoMatchingPublicKey for value: 2432696584 /// - [EnumMember(Value = "-1862270712")] + [EnumMember(Value = "2432696584")] ntfLDS_SI_Storage_CA_Info_NoMatchingPublicKey = 200, /// - /// Enum ntfLDS_SI_Storage_CA_IncorrectInfosQuantity for value: -1862270711 + /// Enum ntfLDS_SI_Storage_CA_IncorrectInfosQuantity for value: 2432696585 /// - [EnumMember(Value = "-1862270711")] + [EnumMember(Value = "2432696585")] ntfLDS_SI_Storage_CA_IncorrectInfosQuantity = 201, /// - /// Enum ntfLDS_SI_Storage_TA_Info_NotAvailable for value: -1862270710 + /// Enum ntfLDS_SI_Storage_TA_Info_NotAvailable for value: 2432696586 /// - [EnumMember(Value = "-1862270710")] + [EnumMember(Value = "2432696586")] ntfLDS_SI_Storage_TA_Info_NotAvailable = 202, /// - /// Enum ntfLDS_SI_Storage_CardInfoLocator_MultipleEntries for value: -1862270709 + /// Enum ntfLDS_SI_Storage_CardInfoLocator_MultipleEntries for value: 2432696587 /// - [EnumMember(Value = "-1862270709")] + [EnumMember(Value = "2432696587")] ntfLDS_SI_Storage_CardInfoLocator_MultipleEntries = 203, /// - /// Enum ntfLDS_SI_Storage_eIDSecurityInfo_MultipleEntries for value: -1862270708 + /// Enum ntfLDS_SI_Storage_eIDSecurityInfo_MultipleEntries for value: 2432696588 /// - [EnumMember(Value = "-1862270708")] + [EnumMember(Value = "2432696588")] ntfLDS_SI_Storage_eIDSecurityInfo_MultipleEntries = 204, /// - /// Enum ntfLDS_SI_Storage_PrivilegedTI_MultipleEntries for value: -1862270707 + /// Enum ntfLDS_SI_Storage_PrivilegedTI_MultipleEntries for value: 2432696589 /// - [EnumMember(Value = "-1862270707")] + [EnumMember(Value = "2432696589")] ntfLDS_SI_Storage_PrivilegedTI_MultipleEntries = 205, /// - /// Enum ntfLDS_SI_Storage_PrivilegedTI_IncorrectUsage for value: -1862270706 + /// Enum ntfLDS_SI_Storage_PrivilegedTI_IncorrectUsage for value: 2432696590 /// - [EnumMember(Value = "-1862270706")] + [EnumMember(Value = "2432696590")] ntfLDS_SI_Storage_PrivilegedTI_IncorrectUsage = 206, /// - /// Enum ntfLDS_SI_Storage_RI_DomainParams_MultipleEntries for value: -1862270705 + /// Enum ntfLDS_SI_Storage_RI_DomainParams_MultipleEntries for value: 2432696591 /// - [EnumMember(Value = "-1862270705")] + [EnumMember(Value = "2432696591")] ntfLDS_SI_Storage_RI_DomainParams_MultipleEntries = 207, /// - /// Enum ntfLDS_SI_Storage_PACEInfos_NonConsistant for value: -1862270704 + /// Enum ntfLDS_SI_Storage_PACEInfos_NonConsistant for value: 2432696592 /// - [EnumMember(Value = "-1862270704")] + [EnumMember(Value = "2432696592")] ntfLDS_SI_Storage_PACEInfos_NonConsistant = 208, /// - /// Enum ntfLDS_CVCertificate_Profile_IncorrectVersion for value: -1862270463 + /// Enum ntfLDS_CVCertificate_Profile_IncorrectVersion for value: 2432696833 /// - [EnumMember(Value = "-1862270463")] + [EnumMember(Value = "2432696833")] ntfLDS_CVCertificate_Profile_IncorrectVersion = 209, /// - /// Enum ntfLDS_CVCertificate_Validity for value: -1862270462 + /// Enum ntfLDS_CVCertificate_Validity for value: 2432696834 /// - [EnumMember(Value = "-1862270462")] + [EnumMember(Value = "2432696834")] ntfLDS_CVCertificate_Validity = 210, /// - /// Enum ntfLDS_CVCertificate_NonCVCADomainParameters for value: -1862270461 + /// Enum ntfLDS_CVCertificate_NonCVCADomainParameters for value: 2432696835 /// - [EnumMember(Value = "-1862270461")] + [EnumMember(Value = "2432696835")] ntfLDS_CVCertificate_NonCVCADomainParameters = 211, /// - /// Enum ntfLDS_CV_Certificate_PrivateKey_IncorrectVersion for value: -1862270460 + /// Enum ntfLDS_CV_Certificate_PrivateKey_IncorrectVersion for value: 2432696836 /// - [EnumMember(Value = "-1862270460")] + [EnumMember(Value = "2432696836")] ntfLDS_CV_Certificate_PrivateKey_IncorrectVersion = 212, /// - /// Enum ntfLDS_TA_PACEStaticBindingUsed for value: -1862270208 + /// Enum ntfLDS_TA_PACEStaticBindingUsed for value: 2432697088 /// - [EnumMember(Value = "-1862270208")] + [EnumMember(Value = "2432697088")] ntfLDS_TA_PACEStaticBindingUsed = 213, /// - /// Enum ntfLDS_Auth_MLSignerInfo_Certificate_Validity for value: -1845493483 + /// Enum ntfLDS_Auth_MLSignerInfo_Certificate_Validity for value: 2449473813 /// - [EnumMember(Value = "-1845493483")] + [EnumMember(Value = "2449473813")] ntfLDS_Auth_MLSignerInfo_Certificate_Validity = 214, /// - /// Enum ntfLDS_Auth_MLSignerInfo_Certificate_RootIsNotTrusted for value: -1845493482 + /// Enum ntfLDS_Auth_MLSignerInfo_Certificate_RootIsNotTrusted for value: 2449473814 /// - [EnumMember(Value = "-1845493482")] + [EnumMember(Value = "2449473814")] ntfLDS_Auth_MLSignerInfo_Certificate_RootIsNotTrusted = 215, /// - /// Enum ntfLDS_Auth_MLSignerInfo_Certificate_CantFindCSCA for value: -1845493481 + /// Enum ntfLDS_Auth_MLSignerInfo_Certificate_CantFindCSCA for value: 2449473815 /// - [EnumMember(Value = "-1845493481")] + [EnumMember(Value = "2449473815")] ntfLDS_Auth_MLSignerInfo_Certificate_CantFindCSCA = 216, /// - /// Enum ntfLDS_Auth_MLSignerInfo_Certificate_Revoked for value: -1845493480 + /// Enum ntfLDS_Auth_MLSignerInfo_Certificate_Revoked for value: 2449473816 /// - [EnumMember(Value = "-1845493480")] + [EnumMember(Value = "2449473816")] ntfLDS_Auth_MLSignerInfo_Certificate_Revoked = 217, /// - /// Enum ntfLDS_Auth_MLSignerInfo_Certificate_SignatureInvalid for value: -1845493479 + /// Enum ntfLDS_Auth_MLSignerInfo_Certificate_SignatureInvalid for value: 2449473817 /// - [EnumMember(Value = "-1845493479")] + [EnumMember(Value = "2449473817")] ntfLDS_Auth_MLSignerInfo_Certificate_SignatureInvalid = 218, /// - /// Enum ntfLDS_ICAO_Certificate_Chain_Country_NonMatching for value: -1879047600 + /// Enum ntfLDS_ICAO_Certificate_Chain_Country_NonMatching for value: 2415919696 /// - [EnumMember(Value = "-1879047600")] + [EnumMember(Value = "2415919696")] ntfLDS_ICAO_Certificate_Chain_Country_NonMatching = 219, /// - /// Enum ntfLDS_ICAO_Certificate_VisualMrz_Country_NonMatching for value: -1879047599 + /// Enum ntfLDS_ICAO_Certificate_VisualMrz_Country_NonMatching for value: 2415919697 /// - [EnumMember(Value = "-1879047599")] + [EnumMember(Value = "2415919697")] ntfLDS_ICAO_Certificate_VisualMrz_Country_NonMatching = 220, /// @@ -1360,9 +1360,9 @@ public enum ParsingNotificationCodes ntfLDS_MRZ_CountryCode_VisualMrz_NonMatching = 221, /// - /// Enum ntfLDS_ICAO_Certificate_MRZ_Country_NonMatching for value: -1879047598 + /// Enum ntfLDS_ICAO_Certificate_MRZ_Country_NonMatching for value: 2415919698 /// - [EnumMember(Value = "-1879047598")] + [EnumMember(Value = "2415919698")] ntfLDS_ICAO_Certificate_MRZ_Country_NonMatching = 222 } diff --git a/src/Regula.DocumentReader.WebClient/Model/PerDocumentConfig.cs b/src/Regula.DocumentReader.WebClient/Model/PerDocumentConfig.cs index 6ab4246..b1d3931 100644 --- a/src/Regula.DocumentReader.WebClient/Model/PerDocumentConfig.cs +++ b/src/Regula.DocumentReader.WebClient/Model/PerDocumentConfig.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/PhotoIdentResult.cs b/src/Regula.DocumentReader.WebClient/Model/PhotoIdentResult.cs index 4b3d55e..c108d1f 100644 --- a/src/Regula.DocumentReader.WebClient/Model/PhotoIdentResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/PhotoIdentResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -28,7 +28,7 @@ namespace Regula.DocumentReader.WebClient.Model /// PhotoIdentResult /// [DataContract] - public partial class PhotoIdentResult : AuthenticityCheckResultItem, IEquatable, IValidatableObject + public partial class PhotoIdentResult : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -38,50 +38,132 @@ protected PhotoIdentResult() { } /// /// Initializes a new instance of the class. /// - /// lightIndex. - /// area. - /// sourceImage. - /// resultImages. + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ (required) (default to 0). + /// elementResult. + /// elementDiagnose. + /// percentValue. + /// lightIndex (required). + /// area (required). + /// sourceImage (required). + /// resultImages (required). /// fieldTypesCount. /// fieldTypesList. /// step. /// angle. + /// reserved1. + /// reserved2. /// reserved3. - public PhotoIdentResult(int lightIndex = default(int), RectangleCoordinates area = default(RectangleCoordinates), ImageData sourceImage = default(ImageData), RawImageContainerList resultImages = default(RawImageContainerList), int fieldTypesCount = default(int), List fieldTypesList = default(List), int step = default(int), int angle = default(int), int reserved3 = default(int), int type = 0, int elementResult = default(int), int elementDiagnose = default(int), int percentValue = default(int)) : base(type, elementResult, elementDiagnose, percentValue) + public PhotoIdentResult(int type = 0, int elementResult = default(int), int elementDiagnose = default(int), int percentValue = default(int), int lightIndex = default(int), RectangleCoordinates area = default(RectangleCoordinates), ImageData sourceImage = default(ImageData), RawImageContainerList resultImages = default(RawImageContainerList), int fieldTypesCount = default(int), List fieldTypesList = default(List), int step = default(int), int angle = default(int), int reserved1 = default(int), int reserved2 = default(int), int reserved3 = default(int)) { - this.LightIndex = lightIndex; - this.Area = area; - this.SourceImage = sourceImage; - this.ResultImages = resultImages; + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for PhotoIdentResult and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "lightIndex" is required (not null) + if (lightIndex == null) + { + throw new InvalidDataException("lightIndex is a required property for PhotoIdentResult and cannot be null"); + } + else + { + this.LightIndex = lightIndex; + } + + // to ensure "area" is required (not null) + if (area == null) + { + throw new InvalidDataException("area is a required property for PhotoIdentResult and cannot be null"); + } + else + { + this.Area = area; + } + + // to ensure "sourceImage" is required (not null) + if (sourceImage == null) + { + throw new InvalidDataException("sourceImage is a required property for PhotoIdentResult and cannot be null"); + } + else + { + this.SourceImage = sourceImage; + } + + // to ensure "resultImages" is required (not null) + if (resultImages == null) + { + throw new InvalidDataException("resultImages is a required property for PhotoIdentResult and cannot be null"); + } + else + { + this.ResultImages = resultImages; + } + + this.ElementResult = elementResult; + this.ElementDiagnose = elementDiagnose; + this.PercentValue = percentValue; this.FieldTypesCount = fieldTypesCount; this.FieldTypesList = fieldTypesList; this.Step = step; this.Angle = angle; + this.Reserved1 = reserved1; + this.Reserved2 = reserved2; this.Reserved3 = reserved3; } + /// + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ + /// + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ + [DataMember(Name="Type", EmitDefaultValue=true)] + public int Type { get; set; } + + /// + /// Gets or Sets ElementResult + /// + [DataMember(Name="ElementResult", EmitDefaultValue=false)] + public int ElementResult { get; set; } + + /// + /// Gets or Sets ElementDiagnose + /// + [DataMember(Name="ElementDiagnose", EmitDefaultValue=false)] + public int ElementDiagnose { get; set; } + + /// + /// Gets or Sets PercentValue + /// + [DataMember(Name="PercentValue", EmitDefaultValue=false)] + public int PercentValue { get; set; } + /// /// Gets or Sets LightIndex /// - [DataMember(Name="LightIndex", EmitDefaultValue=false)] + [DataMember(Name="LightIndex", EmitDefaultValue=true)] public int LightIndex { get; set; } /// /// Gets or Sets Area /// - [DataMember(Name="Area", EmitDefaultValue=false)] + [DataMember(Name="Area", EmitDefaultValue=true)] public RectangleCoordinates Area { get; set; } /// /// Gets or Sets SourceImage /// - [DataMember(Name="SourceImage", EmitDefaultValue=false)] + [DataMember(Name="SourceImage", EmitDefaultValue=true)] public ImageData SourceImage { get; set; } /// /// Gets or Sets ResultImages /// - [DataMember(Name="ResultImages", EmitDefaultValue=false)] + [DataMember(Name="ResultImages", EmitDefaultValue=true)] public RawImageContainerList ResultImages { get; set; } /// @@ -108,6 +190,18 @@ protected PhotoIdentResult() { } [DataMember(Name="Angle", EmitDefaultValue=false)] public int Angle { get; set; } + /// + /// Gets or Sets Reserved1 + /// + [DataMember(Name="Reserved1", EmitDefaultValue=false)] + public int Reserved1 { get; set; } + + /// + /// Gets or Sets Reserved2 + /// + [DataMember(Name="Reserved2", EmitDefaultValue=false)] + public int Reserved2 { get; set; } + /// /// Gets or Sets Reserved3 /// @@ -122,7 +216,10 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class PhotoIdentResult {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ElementResult: ").Append(ElementResult).Append("\n"); + sb.Append(" ElementDiagnose: ").Append(ElementDiagnose).Append("\n"); + sb.Append(" PercentValue: ").Append(PercentValue).Append("\n"); sb.Append(" LightIndex: ").Append(LightIndex).Append("\n"); sb.Append(" Area: ").Append(Area).Append("\n"); sb.Append(" SourceImage: ").Append(SourceImage).Append("\n"); @@ -131,6 +228,8 @@ public override string ToString() sb.Append(" FieldTypesList: ").Append(FieldTypesList).Append("\n"); sb.Append(" Step: ").Append(Step).Append("\n"); sb.Append(" Angle: ").Append(Angle).Append("\n"); + sb.Append(" Reserved1: ").Append(Reserved1).Append("\n"); + sb.Append(" Reserved2: ").Append(Reserved2).Append("\n"); sb.Append(" Reserved3: ").Append(Reserved3).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -140,7 +239,7 @@ public override string ToString() /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object - public override string ToJson() + public virtual string ToJson() { return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } @@ -165,48 +264,78 @@ public bool Equals(PhotoIdentResult input) if (input == null) return false; - return base.Equals(input) && + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.ElementResult == input.ElementResult || + (this.ElementResult != null && + this.ElementResult.Equals(input.ElementResult)) + ) && + ( + this.ElementDiagnose == input.ElementDiagnose || + (this.ElementDiagnose != null && + this.ElementDiagnose.Equals(input.ElementDiagnose)) + ) && + ( + this.PercentValue == input.PercentValue || + (this.PercentValue != null && + this.PercentValue.Equals(input.PercentValue)) + ) && ( this.LightIndex == input.LightIndex || (this.LightIndex != null && this.LightIndex.Equals(input.LightIndex)) - ) && base.Equals(input) && + ) && ( this.Area == input.Area || (this.Area != null && this.Area.Equals(input.Area)) - ) && base.Equals(input) && + ) && ( this.SourceImage == input.SourceImage || (this.SourceImage != null && this.SourceImage.Equals(input.SourceImage)) - ) && base.Equals(input) && + ) && ( this.ResultImages == input.ResultImages || (this.ResultImages != null && this.ResultImages.Equals(input.ResultImages)) - ) && base.Equals(input) && + ) && ( this.FieldTypesCount == input.FieldTypesCount || (this.FieldTypesCount != null && this.FieldTypesCount.Equals(input.FieldTypesCount)) - ) && base.Equals(input) && + ) && ( this.FieldTypesList == input.FieldTypesList || this.FieldTypesList != null && input.FieldTypesList != null && this.FieldTypesList.SequenceEqual(input.FieldTypesList) - ) && base.Equals(input) && + ) && ( this.Step == input.Step || (this.Step != null && this.Step.Equals(input.Step)) - ) && base.Equals(input) && + ) && ( this.Angle == input.Angle || (this.Angle != null && this.Angle.Equals(input.Angle)) - ) && base.Equals(input) && + ) && + ( + this.Reserved1 == input.Reserved1 || + (this.Reserved1 != null && + this.Reserved1.Equals(input.Reserved1)) + ) && + ( + this.Reserved2 == input.Reserved2 || + (this.Reserved2 != null && + this.Reserved2.Equals(input.Reserved2)) + ) && ( this.Reserved3 == input.Reserved3 || (this.Reserved3 != null && @@ -222,7 +351,15 @@ public override int GetHashCode() { unchecked // Overflow is fine, just wrap { - int hashCode = base.GetHashCode(); + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.ElementResult != null) + hashCode = hashCode * 59 + this.ElementResult.GetHashCode(); + if (this.ElementDiagnose != null) + hashCode = hashCode * 59 + this.ElementDiagnose.GetHashCode(); + if (this.PercentValue != null) + hashCode = hashCode * 59 + this.PercentValue.GetHashCode(); if (this.LightIndex != null) hashCode = hashCode * 59 + this.LightIndex.GetHashCode(); if (this.Area != null) @@ -239,6 +376,10 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Step.GetHashCode(); if (this.Angle != null) hashCode = hashCode * 59 + this.Angle.GetHashCode(); + if (this.Reserved1 != null) + hashCode = hashCode * 59 + this.Reserved1.GetHashCode(); + if (this.Reserved2 != null) + hashCode = hashCode * 59 + this.Reserved2.GetHashCode(); if (this.Reserved3 != null) hashCode = hashCode * 59 + this.Reserved3.GetHashCode(); return hashCode; @@ -252,7 +393,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - foreach(var x in base.BaseValidate(validationContext)) yield return x; yield break; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/Point.cs b/src/Regula.DocumentReader.WebClient/Model/Point.cs index e1fe496..5057368 100644 --- a/src/Regula.DocumentReader.WebClient/Model/Point.cs +++ b/src/Regula.DocumentReader.WebClient/Model/Point.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,24 +33,47 @@ public partial class Point : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// x. - /// y. + [JsonConstructorAttribute] + protected Point() { } + /// + /// Initializes a new instance of the class. + /// + /// x (required). + /// y (required). public Point(int x = default(int), int y = default(int)) { - this.X = x; - this.Y = y; + // to ensure "x" is required (not null) + if (x == null) + { + throw new InvalidDataException("x is a required property for Point and cannot be null"); + } + else + { + this.X = x; + } + + // to ensure "y" is required (not null) + if (y == null) + { + throw new InvalidDataException("y is a required property for Point and cannot be null"); + } + else + { + this.Y = y; + } + } /// /// Gets or Sets X /// - [DataMember(Name="x", EmitDefaultValue=false)] + [DataMember(Name="x", EmitDefaultValue=true)] public int X { get; set; } /// /// Gets or Sets Y /// - [DataMember(Name="y", EmitDefaultValue=false)] + [DataMember(Name="y", EmitDefaultValue=true)] public int Y { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/PointArray.cs b/src/Regula.DocumentReader.WebClient/Model/PointArray.cs index 4e82cbc..3652b06 100644 --- a/src/Regula.DocumentReader.WebClient/Model/PointArray.cs +++ b/src/Regula.DocumentReader.WebClient/Model/PointArray.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,16 +33,30 @@ public partial class PointArray : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// pointsList. + [JsonConstructorAttribute] + protected PointArray() { } + /// + /// Initializes a new instance of the class. + /// + /// pointsList (required). public PointArray(List pointsList = default(List)) { - this.PointsList = pointsList; + // to ensure "pointsList" is required (not null) + if (pointsList == null) + { + throw new InvalidDataException("pointsList is a required property for PointArray and cannot be null"); + } + else + { + this.PointsList = pointsList; + } + } /// /// Gets or Sets PointsList /// - [DataMember(Name="PointsList", EmitDefaultValue=false)] + [DataMember(Name="PointsList", EmitDefaultValue=true)] public List PointsList { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/PointsContainer.cs b/src/Regula.DocumentReader.WebClient/Model/PointsContainer.cs index 6ac3aa5..7fa5d48 100644 --- a/src/Regula.DocumentReader.WebClient/Model/PointsContainer.cs +++ b/src/Regula.DocumentReader.WebClient/Model/PointsContainer.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -30,15 +30,29 @@ namespace Regula.DocumentReader.WebClient.Model [DataContract] public partial class PointsContainer : IEquatable, IValidatableObject { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PointsContainer() { } /// /// Initializes a new instance of the class. /// /// pointCount. - /// pointsList. + /// pointsList (required). public PointsContainer(int pointCount = default(int), List pointsList = default(List)) { + // to ensure "pointsList" is required (not null) + if (pointsList == null) + { + throw new InvalidDataException("pointsList is a required property for PointsContainer and cannot be null"); + } + else + { + this.PointsList = pointsList; + } + this.PointCount = pointCount; - this.PointsList = pointsList; } /// @@ -50,7 +64,7 @@ public partial class PointsContainer : IEquatable, IValidatabl /// /// Gets or Sets PointsList /// - [DataMember(Name="PointsList", EmitDefaultValue=false)] + [DataMember(Name="PointsList", EmitDefaultValue=true)] public List PointsList { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs b/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs index 955da82..a2c96df 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,6 +40,7 @@ protected ProcessParams() { } /// /// This parameter is used to generate separate DTC-VC data container from RFID session data.. /// The list of LCID types to recognize. If empty, values with all LCID types will be extracted. Empty by default.. + /// This parameter is used to enable document liveness check.. /// The list of LCID types to ignore during the recognition. If empty, values with all LCID types will be extracted. Narrowing down the list can reduce processing time. Empty by default.. /// This parameter allows processing an image that contains a person and a document and compare the portrait photo from the document with the person's face. /// This parameter allows comparing faces on Regula Face Web Service. @@ -96,7 +97,7 @@ protected ProcessParams() { } /// This parameter is used to generate numeric representation for issuing state and nationality codes. /// This parameter if enabled will require all necessary certificates to verify digital signature in barcode data to be present in order for the Barcode format check to succeed.. /// Select the longest value from the different value sources and write it to the value field if comparison is done successfully. The parameter applies this logic to the personal names, such as given name, surname, surname and given name, middle name and etc.. - public ProcessParams(bool? generateDTCVC = default(bool?), List lcidFilter = default(List), List lcidIgnoreFilter = default(List), bool? oneShotIdentification = default(bool?), bool? useFaceApi = default(bool?), FaceApi faceApi = default(FaceApi), bool? doDetectCan = default(bool?), int imageOutputMaxHeight = default(int), int imageOutputMaxWidth = default(int), string scenario = default(string), List resultTypeOutput = default(List), bool? doublePageSpread = default(bool?), bool? generateDoublePageSpreadImage = default(bool?), List fieldTypesFilter = default(List), string dateFormat = default(string), int measureSystem = default(int), int imageDpiOutMax = default(int), bool? alreadyCropped = default(bool?), Dictionary customParams = default(Dictionary), List config = default(List), bool? log = default(bool?), string logLevel = default(string), int forceDocID = default(int), bool? matchTextFieldMask = default(bool?), bool? fastDocDetect = default(bool?), bool? updateOCRValidityByGlare = default(bool?), bool? checkRequiredTextFields = default(bool?), bool? returnCroppedBarcode = default(bool?), ImageQA imageQa = default(ImageQA), bool? strictImageQuality = default(bool?), bool? respectImageQuality = default(bool?), int forceDocFormat = default(int), bool? noGraphics = default(bool?), bool? depersonalizeLog = default(bool?), bool? multiDocOnImage = default(bool?), int shiftExpiryDate = default(int), int minimalHolderAge = default(int), bool? returnUncroppedImage = default(bool?), List mrzFormatsFilter = default(List), bool? forceReadMrzBeforeLocate = default(bool?), bool? parseBarcodes = default(bool?), int convertCase = default(int), bool? splitNames = default(bool?), bool? disablePerforationOCR = default(bool?), List documentGroupFilter = default(List), long processAuth = default(long), int deviceId = default(int), int deviceType = default(int), string deviceTypeHex = default(string), bool? ignoreDeviceIdFromImage = default(bool?), List documentIdList = default(List), ProcessParamsRfid rfid = default(ProcessParamsRfid), bool? checkAuth = default(bool?), AuthParams authParams = default(AuthParams), MrzDetectModeEnum mrzDetectMode = default(MrzDetectModeEnum), bool? generateNumericCodes = default(bool?), bool? strictBarcodeDigitalSignatureCheck = default(bool?), bool? selectLongestNames = default(bool?)) + public ProcessParams(bool? generateDTCVC = default(bool?), List lcidFilter = default(List), bool? checkLiveness = default(bool?), List lcidIgnoreFilter = default(List), bool? oneShotIdentification = default(bool?), bool? useFaceApi = default(bool?), FaceApi faceApi = default(FaceApi), bool? doDetectCan = default(bool?), int imageOutputMaxHeight = default(int), int imageOutputMaxWidth = default(int), string scenario = default(string), List resultTypeOutput = default(List), bool? doublePageSpread = default(bool?), bool? generateDoublePageSpreadImage = default(bool?), List fieldTypesFilter = default(List), string dateFormat = default(string), int measureSystem = default(int), int imageDpiOutMax = default(int), bool? alreadyCropped = default(bool?), Dictionary customParams = default(Dictionary), List config = default(List), bool? log = default(bool?), string logLevel = default(string), int forceDocID = default(int), bool? matchTextFieldMask = default(bool?), bool? fastDocDetect = default(bool?), bool? updateOCRValidityByGlare = default(bool?), bool? checkRequiredTextFields = default(bool?), bool? returnCroppedBarcode = default(bool?), ImageQA imageQa = default(ImageQA), bool? strictImageQuality = default(bool?), bool? respectImageQuality = default(bool?), int forceDocFormat = default(int), bool? noGraphics = default(bool?), bool? depersonalizeLog = default(bool?), bool? multiDocOnImage = default(bool?), int shiftExpiryDate = default(int), int minimalHolderAge = default(int), bool? returnUncroppedImage = default(bool?), List mrzFormatsFilter = default(List), bool? forceReadMrzBeforeLocate = default(bool?), bool? parseBarcodes = default(bool?), int convertCase = default(int), bool? splitNames = default(bool?), bool? disablePerforationOCR = default(bool?), List documentGroupFilter = default(List), long processAuth = default(long), int deviceId = default(int), int deviceType = default(int), string deviceTypeHex = default(string), bool? ignoreDeviceIdFromImage = default(bool?), List documentIdList = default(List), ProcessParamsRfid rfid = default(ProcessParamsRfid), bool? checkAuth = default(bool?), AuthParams authParams = default(AuthParams), MrzDetectModeEnum mrzDetectMode = default(MrzDetectModeEnum), bool? generateNumericCodes = default(bool?), bool? strictBarcodeDigitalSignatureCheck = default(bool?), bool? selectLongestNames = default(bool?)) { // to ensure "scenario" is required (not null) if (scenario == null) @@ -110,6 +111,7 @@ protected ProcessParams() { } this.GenerateDTCVC = generateDTCVC; this.LcidFilter = lcidFilter; + this.CheckLiveness = checkLiveness; this.LcidIgnoreFilter = lcidIgnoreFilter; this.OneShotIdentification = oneShotIdentification; this.UseFaceApi = useFaceApi; @@ -181,6 +183,13 @@ protected ProcessParams() { } [DataMember(Name="lcidFilter", EmitDefaultValue=false)] public List LcidFilter { get; set; } + /// + /// This parameter is used to enable document liveness check. + /// + /// This parameter is used to enable document liveness check. + [DataMember(Name="checkLiveness", EmitDefaultValue=false)] + public bool? CheckLiveness { get; set; } + /// /// The list of LCID types to ignore during the recognition. If empty, values with all LCID types will be extracted. Narrowing down the list can reduce processing time. Empty by default. /// @@ -573,6 +582,7 @@ public override string ToString() sb.Append("class ProcessParams {\n"); sb.Append(" GenerateDTCVC: ").Append(GenerateDTCVC).Append("\n"); sb.Append(" LcidFilter: ").Append(LcidFilter).Append("\n"); + sb.Append(" CheckLiveness: ").Append(CheckLiveness).Append("\n"); sb.Append(" LcidIgnoreFilter: ").Append(LcidIgnoreFilter).Append("\n"); sb.Append(" OneShotIdentification: ").Append(OneShotIdentification).Append("\n"); sb.Append(" UseFaceApi: ").Append(UseFaceApi).Append("\n"); @@ -674,6 +684,11 @@ public bool Equals(ProcessParams input) input.LcidFilter != null && this.LcidFilter.SequenceEqual(input.LcidFilter) ) && + ( + this.CheckLiveness == input.CheckLiveness || + (this.CheckLiveness != null && + this.CheckLiveness.Equals(input.CheckLiveness)) + ) && ( this.LcidIgnoreFilter == input.LcidIgnoreFilter || this.LcidIgnoreFilter != null && @@ -977,6 +992,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.GenerateDTCVC.GetHashCode(); if (this.LcidFilter != null) hashCode = hashCode * 59 + this.LcidFilter.GetHashCode(); + if (this.CheckLiveness != null) + hashCode = hashCode * 59 + this.CheckLiveness.GetHashCode(); if (this.LcidIgnoreFilter != null) hashCode = hashCode * 59 + this.LcidIgnoreFilter.GetHashCode(); if (this.OneShotIdentification != null) diff --git a/src/Regula.DocumentReader.WebClient/Model/ProcessParamsRfid.cs b/src/Regula.DocumentReader.WebClient/Model/ProcessParamsRfid.cs index 9809f39..68237d3 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ProcessParamsRfid.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ProcessParamsRfid.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/ProcessRequest.cs b/src/Regula.DocumentReader.WebClient/Model/ProcessRequest.cs index 856208a..f927415 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ProcessRequest.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ProcessRequest.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,6 +38,7 @@ protected ProcessRequest() { } /// /// Initializes a new instance of the class. /// + /// The list of LCID types to recognize. If empty, values with all LCID types will be extracted. Empty by default.. /// processParam (required). /// list. /// Session ID. @@ -50,7 +51,7 @@ protected ProcessRequest() { } /// Free-form object to be included in response. Must be object, not list or simple value. Do not affect document processing. Use it freely to pass your app params. Stored in process logs.. /// Digital Travel Credential (DTC-VC) data in base64 format for processing. /// URLs to the document images for processing.. - public ProcessRequest(ProcessParams processParam = default(ProcessParams), List list = default(List), string tag = default(string), string tenant = default(string), string env = default(string), string livePortrait = default(string), string extPortrait = default(string), ContainerList containerList = default(ContainerList), ProcessSystemInfo systemInfo = default(ProcessSystemInfo), Dictionary passBackObject = default(Dictionary), string dtc = default(string), List imageUrls = default(List)) + public ProcessRequest(List lcidFilter = default(List), ProcessParams processParam = default(ProcessParams), List list = default(List), string tag = default(string), string tenant = default(string), string env = default(string), string livePortrait = default(string), string extPortrait = default(string), ContainerList containerList = default(ContainerList), ProcessSystemInfo systemInfo = default(ProcessSystemInfo), Dictionary passBackObject = default(Dictionary), string dtc = default(string), List imageUrls = default(List)) { // to ensure "processParam" is required (not null) if (processParam == null) @@ -62,6 +63,7 @@ protected ProcessRequest() { } this.ProcessParam = processParam; } + this.LcidFilter = lcidFilter; this.List = list; this.Tag = tag; this.Tenant = tenant; @@ -75,6 +77,13 @@ protected ProcessRequest() { } this.ImageUrls = imageUrls; } + /// + /// The list of LCID types to recognize. If empty, values with all LCID types will be extracted. Empty by default. + /// + /// The list of LCID types to recognize. If empty, values with all LCID types will be extracted. Empty by default. + [DataMember(Name="lcidFilter", EmitDefaultValue=false)] + public List LcidFilter { get; set; } + /// /// Gets or Sets ProcessParam /// @@ -163,6 +172,7 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class ProcessRequest {\n"); + sb.Append(" LcidFilter: ").Append(LcidFilter).Append("\n"); sb.Append(" ProcessParam: ").Append(ProcessParam).Append("\n"); sb.Append(" List: ").Append(List).Append("\n"); sb.Append(" Tag: ").Append(Tag).Append("\n"); @@ -209,6 +219,12 @@ public bool Equals(ProcessRequest input) return false; return + ( + this.LcidFilter == input.LcidFilter || + this.LcidFilter != null && + input.LcidFilter != null && + this.LcidFilter.SequenceEqual(input.LcidFilter) + ) && ( this.ProcessParam == input.ProcessParam || (this.ProcessParam != null && @@ -283,6 +299,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.LcidFilter != null) + hashCode = hashCode * 59 + this.LcidFilter.GetHashCode(); if (this.ProcessParam != null) hashCode = hashCode * 59 + this.ProcessParam.GetHashCode(); if (this.List != null) diff --git a/src/Regula.DocumentReader.WebClient/Model/ProcessRequestImage.cs b/src/Regula.DocumentReader.WebClient/Model/ProcessRequestImage.cs index e19ceae..2dbecf9 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ProcessRequestImage.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ProcessRequestImage.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/ProcessResponse.cs b/src/Regula.DocumentReader.WebClient/Model/ProcessResponse.cs index f29c160..f41a1b5 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ProcessResponse.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ProcessResponse.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,16 +38,27 @@ protected ProcessResponse() { } /// /// Initializes a new instance of the class. /// - /// chipPage. + /// chipPage (required). /// processingFinished (required). /// containerList (required). /// transactionInfo (required). /// Base64 encoded transaction processing log. /// Free-form object provided in request. See passBackObject property of ProcessRequest.. - /// morePagesAvailable. - /// Time the document processing has taken, ms.. - public ProcessResponse(int chipPage = default(int), int processingFinished = default(int), ContainerList containerList = default(ContainerList), TransactionInfo transactionInfo = default(TransactionInfo), string log = default(string), Dictionary passBackObject = default(Dictionary), int morePagesAvailable = default(int), int elapsedTime = default(int)) + /// morePagesAvailable (required). + /// Time the document processing has taken, ms. (required). + /// metadata. + public ProcessResponse(int chipPage = default(int), int processingFinished = default(int), ContainerList containerList = default(ContainerList), TransactionInfo transactionInfo = default(TransactionInfo), string log = default(string), Dictionary passBackObject = default(Dictionary), int morePagesAvailable = default(int), int elapsedTime = default(int), Dictionary metadata = default(Dictionary)) { + // to ensure "chipPage" is required (not null) + if (chipPage == null) + { + throw new InvalidDataException("chipPage is a required property for ProcessResponse and cannot be null"); + } + else + { + this.ChipPage = chipPage; + } + // to ensure "processingFinished" is required (not null) if (processingFinished == null) { @@ -78,17 +89,35 @@ protected ProcessResponse() { } this.TransactionInfo = transactionInfo; } - this.ChipPage = chipPage; + // to ensure "morePagesAvailable" is required (not null) + if (morePagesAvailable == null) + { + throw new InvalidDataException("morePagesAvailable is a required property for ProcessResponse and cannot be null"); + } + else + { + this.MorePagesAvailable = morePagesAvailable; + } + + // to ensure "elapsedTime" is required (not null) + if (elapsedTime == null) + { + throw new InvalidDataException("elapsedTime is a required property for ProcessResponse and cannot be null"); + } + else + { + this.ElapsedTime = elapsedTime; + } + this.Log = log; this.PassBackObject = passBackObject; - this.MorePagesAvailable = morePagesAvailable; - this.ElapsedTime = elapsedTime; + this.Metadata = metadata; } /// /// Gets or Sets ChipPage /// - [DataMember(Name="ChipPage", EmitDefaultValue=false)] + [DataMember(Name="ChipPage", EmitDefaultValue=true)] public int ChipPage { get; set; } /// @@ -126,16 +155,22 @@ protected ProcessResponse() { } /// /// Gets or Sets MorePagesAvailable /// - [DataMember(Name="morePagesAvailable", EmitDefaultValue=false)] + [DataMember(Name="morePagesAvailable", EmitDefaultValue=true)] public int MorePagesAvailable { get; set; } /// /// Time the document processing has taken, ms. /// /// Time the document processing has taken, ms. - [DataMember(Name="elapsedTime", EmitDefaultValue=false)] + [DataMember(Name="elapsedTime", EmitDefaultValue=true)] public int ElapsedTime { get; set; } + /// + /// Gets or Sets Metadata + /// + [DataMember(Name="metadata", EmitDefaultValue=false)] + public Dictionary Metadata { get; set; } + /// /// Returns the string presentation of the object /// @@ -152,6 +187,7 @@ public override string ToString() sb.Append(" PassBackObject: ").Append(PassBackObject).Append("\n"); sb.Append(" MorePagesAvailable: ").Append(MorePagesAvailable).Append("\n"); sb.Append(" ElapsedTime: ").Append(ElapsedTime).Append("\n"); + sb.Append(" Metadata: ").Append(Metadata).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -226,6 +262,12 @@ public bool Equals(ProcessResponse input) this.ElapsedTime == input.ElapsedTime || (this.ElapsedTime != null && this.ElapsedTime.Equals(input.ElapsedTime)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) ); } @@ -254,6 +296,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.MorePagesAvailable.GetHashCode(); if (this.ElapsedTime != null) hashCode = hashCode * 59 + this.ElapsedTime.GetHashCode(); + if (this.Metadata != null) + hashCode = hashCode * 59 + this.Metadata.GetHashCode(); return hashCode; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/ProcessSystemInfo.cs b/src/Regula.DocumentReader.WebClient/Model/ProcessSystemInfo.cs index 54f3235..9e18078 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ProcessSystemInfo.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ProcessSystemInfo.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/RFIDErrorCodes.cs b/src/Regula.DocumentReader.WebClient/Model/RFIDErrorCodes.cs new file mode 100644 index 0000000..d6da387 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RFIDErrorCodes.cs @@ -0,0 +1,722 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration contains a set of error codes returned by SDK + /// + /// Enumeration contains a set of error codes returned by SDK + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RFIDErrorCodes + { + /// + /// Enum RFID_ERROR_LAYER6_FILE_EOF1 for value: 2147508866 + /// + [EnumMember(Value = "2147508866")] + RFID_ERROR_LAYER6_FILE_EOF1 = 1, + + /// + /// Enum RFID_ERROR_LAYER6_PWD_DEACTIVATED for value: 2147508867 + /// + [EnumMember(Value = "2147508867")] + RFID_ERROR_LAYER6_PWD_DEACTIVATED = 2, + + /// + /// Enum RFID_ERROR_LAYER6_PWD_BLOCKED for value: 2147509184 + /// + [EnumMember(Value = "2147509184")] + RFID_ERROR_LAYER6_PWD_BLOCKED = 3, + + /// + /// Enum RFID_ERROR_LAYER6_PWD_SUSPEND for value: 2147509185 + /// + [EnumMember(Value = "2147509185")] + RFID_ERROR_LAYER6_PWD_SUSPEND = 4, + + /// + /// Enum RFID_ERROR_LAYER6_PWD_BLOCKED2 for value: 2147510659 + /// + [EnumMember(Value = "2147510659")] + RFID_ERROR_LAYER6_PWD_BLOCKED2 = 5, + + /// + /// Enum RFID_ERROR_LAYER6_PWD_DEACTIVATED2 for value: 2147510660 + /// + [EnumMember(Value = "2147510660")] + RFID_ERROR_LAYER6_PWD_DEACTIVATED2 = 6, + + /// + /// Enum RFID_ERROR_LAYER6_PWD_SUSPEND2 for value: 2147510661 + /// + [EnumMember(Value = "2147510661")] + RFID_ERROR_LAYER6_PWD_SUSPEND2 = 7, + + /// + /// Enum RFID_ERROR_LAYER6_INCORRECT_PARAMS for value: 2147510912 + /// + [EnumMember(Value = "2147510912")] + RFID_ERROR_LAYER6_INCORRECT_PARAMS = 8, + + /// + /// Enum RFID_ERROR_LAYER6_FILE_NOT_FOUND for value: 2147510914 + /// + [EnumMember(Value = "2147510914")] + RFID_ERROR_LAYER6_FILE_NOT_FOUND = 9, + + /// + /// Enum RFID_ERROR_LAYER6_NO_REFERENCE_DATA for value: 2147510920 + /// + [EnumMember(Value = "2147510920")] + RFID_ERROR_LAYER6_NO_REFERENCE_DATA = 10, + + /// + /// Enum RFID_ERROR_LAYER6_FILE_EOF2 for value: 2147511040 + /// + [EnumMember(Value = "2147511040")] + RFID_ERROR_LAYER6_FILE_EOF2 = 11, + + /// + /// Enum RFID_ERROR_NO_CHIP_DETECTED for value: 2147549185 + /// + [EnumMember(Value = "2147549185")] + RFID_ERROR_NO_CHIP_DETECTED = 12, + + /// + /// Enum RFID_ERROR_NOT_AVAILABLE for value: 2147549186 + /// + [EnumMember(Value = "2147549186")] + RFID_ERROR_NOT_AVAILABLE = 13, + + /// + /// Enum RFID_ERROR_INVALID_PARAMETER for value: 2147549188 + /// + [EnumMember(Value = "2147549188")] + RFID_ERROR_INVALID_PARAMETER = 14, + + /// + /// Enum RFID_ERROR_NOT_INITIALIZED for value: 2147549189 + /// + [EnumMember(Value = "2147549189")] + RFID_ERROR_NOT_INITIALIZED = 15, + + /// + /// Enum RFID_ERROR_NOT_ENOUGH_MEMORY for value: 2147549190 + /// + [EnumMember(Value = "2147549190")] + RFID_ERROR_NOT_ENOUGH_MEMORY = 16, + + /// + /// Enum RFID_ERROR_INVALID_DIRECTORY for value: 2147549192 + /// + [EnumMember(Value = "2147549192")] + RFID_ERROR_INVALID_DIRECTORY = 17, + + /// + /// Enum RFID_ERROR_UNKNOWN_COMMAND for value: 2147549193 + /// + [EnumMember(Value = "2147549193")] + RFID_ERROR_UNKNOWN_COMMAND = 18, + + /// + /// Enum RFID_ERROR_FILE_IO_ERROR for value: 2147549194 + /// + [EnumMember(Value = "2147549194")] + RFID_ERROR_FILE_IO_ERROR = 19, + + /// + /// Enum RFID_ERROR_BUSY for value: 2147549195 + /// + [EnumMember(Value = "2147549195")] + RFID_ERROR_BUSY = 20, + + /// + /// Enum RFID_ERROR_OLD_FIRMWARE for value: 2147549196 + /// + [EnumMember(Value = "2147549196")] + RFID_ERROR_OLD_FIRMWARE = 21, + + /// + /// Enum RFID_ERROR_PCSC_FAILED for value: 2147614720 + /// + [EnumMember(Value = "2147614720")] + RFID_ERROR_PCSC_FAILED = 22, + + /// + /// Enum RFID_ERROR_PCSC_READER_NOT_AVAILABLE for value: 2147614721 + /// + [EnumMember(Value = "2147614721")] + RFID_ERROR_PCSC_READER_NOT_AVAILABLE = 23, + + /// + /// Enum RFID_ERROR_PCSC_CANT_CONNECT_CARD for value: 2147614722 + /// + [EnumMember(Value = "2147614722")] + RFID_ERROR_PCSC_CANT_CONNECT_CARD = 24, + + /// + /// Enum RFID_ERROR_PCSC_CARD_IS_NOT_CONNECTED for value: 2147614723 + /// + [EnumMember(Value = "2147614723")] + RFID_ERROR_PCSC_CARD_IS_NOT_CONNECTED = 25, + + /// + /// Enum RFID_ERROR_PCSC_OPERATION_CANCELLED for value: 2147614724 + /// + [EnumMember(Value = "2147614724")] + RFID_ERROR_PCSC_OPERATION_CANCELLED = 26, + + /// + /// Enum RFID_ERROR_PCSC_CARD_IS_BUSY for value: 2147614725 + /// + [EnumMember(Value = "2147614725")] + RFID_ERROR_PCSC_CARD_IS_BUSY = 27, + + /// + /// Enum RFID_ERROR_PCSC_FAILED_SCARD for value: 2147614726 + /// + [EnumMember(Value = "2147614726")] + RFID_ERROR_PCSC_FAILED_SCARD = 28, + + /// + /// Enum RFID_ERROR_PCSC_EXT_LE_FAILED for value: 2147614736 + /// + [EnumMember(Value = "2147614736")] + RFID_ERROR_PCSC_EXT_LE_FAILED = 29, + + /// + /// Enum RFID_ERROR_LAYER6_PWD_FAILED for value: 2148557760 + /// + [EnumMember(Value = "2148557760")] + RFID_ERROR_LAYER6_PWD_FAILED = 30, + + /// + /// Enum RFID_ERROR_NOT_PERFORMED for value: 2197815296 + /// + [EnumMember(Value = "2197815296")] + RFID_ERROR_NOT_PERFORMED = 31, + + /// + /// Enum RFID_ERROR_SESSION_IS_CLOSED for value: 2197815297 + /// + [EnumMember(Value = "2197815297")] + RFID_ERROR_SESSION_IS_CLOSED = 32, + + /// + /// Enum RFID_ERROR_SESSION_TERMINAL_UNSUPPORTED_OPERATION for value: 2197815298 + /// + [EnumMember(Value = "2197815298")] + RFID_ERROR_SESSION_TERMINAL_UNSUPPORTED_OPERATION = 33, + + /// + /// Enum RFID_ERROR_SESSION_TERMINAL_TYPE_UNKNOWN for value: 2197815312 + /// + [EnumMember(Value = "2197815312")] + RFID_ERROR_SESSION_TERMINAL_TYPE_UNKNOWN = 34, + + /// + /// Enum RFID_ERROR_SESSION_TERMINAL_TYPE_BAD_CERTIFICATE for value: 2197815313 + /// + [EnumMember(Value = "2197815313")] + RFID_ERROR_SESSION_TERMINAL_TYPE_BAD_CERTIFICATE = 35, + + /// + /// Enum RFID_ERROR_SESSION_TERMINAL_TYPE_NOT_SET for value: 2197815314 + /// + [EnumMember(Value = "2197815314")] + RFID_ERROR_SESSION_TERMINAL_TYPE_NOT_SET = 36, + + /// + /// Enum RFID_ERROR_SESSION_PROCEDURE_TYPE_UNKNOWN for value: 2197815315 + /// + [EnumMember(Value = "2197815315")] + RFID_ERROR_SESSION_PROCEDURE_TYPE_UNKNOWN = 37, + + /// + /// Enum RFID_ERROR_Session_Procedure_Type_Unsupported for value: 2197815316 + /// + [EnumMember(Value = "2197815316")] + RFID_ERROR_Session_Procedure_Type_Unsupported = 38, + + /// + /// Enum RFID_ERROR_SESSION_PROCEDURE_TYPE_NOT_SET for value: 2197815317 + /// + [EnumMember(Value = "2197815317")] + RFID_ERROR_SESSION_PROCEDURE_TYPE_NOT_SET = 39, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_KEY_UNKNOWN_TYPE for value: 2197815318 + /// + [EnumMember(Value = "2197815318")] + RFID_ERROR_SESSION_ACCESS_KEY_UNKNOWN_TYPE = 40, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_KEY_UNSUPPORTED_SM_TYPE for value: 2197815319 + /// + [EnumMember(Value = "2197815319")] + RFID_ERROR_SESSION_ACCESS_KEY_UNSUPPORTED_SM_TYPE = 41, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_KEY_INCORRECT_SM_TYPE for value: 2197815320 + /// + [EnumMember(Value = "2197815320")] + RFID_ERROR_SESSION_ACCESS_KEY_INCORRECT_SM_TYPE = 42, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_KEY_RESTRICTED for value: 2197815321 + /// + [EnumMember(Value = "2197815321")] + RFID_ERROR_SESSION_ACCESS_KEY_RESTRICTED = 43, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_KEY_INCORRECT_DATA for value: 2197815322 + /// + [EnumMember(Value = "2197815322")] + RFID_ERROR_SESSION_ACCESS_KEY_INCORRECT_DATA = 44, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_KEY_NOT_SET for value: 2197815323 + /// + [EnumMember(Value = "2197815323")] + RFID_ERROR_SESSION_ACCESS_KEY_NOT_SET = 45, + + /// + /// Enum RFID_ERROR_SESSION_PWD_MANAGEMENT_NOT_AUTHORIZED for value: 2197815324 + /// + [EnumMember(Value = "2197815324")] + RFID_ERROR_SESSION_PWD_MANAGEMENT_NOT_AUTHORIZED = 46, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_CONTROL_UNKNOWN_TYPE for value: 2197815328 + /// + [EnumMember(Value = "2197815328")] + RFID_ERROR_SESSION_ACCESS_CONTROL_UNKNOWN_TYPE = 47, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_SM for value: 2197815329 + /// + [EnumMember(Value = "2197815329")] + RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_SM = 48, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_PACE for value: 2197815330 + /// + [EnumMember(Value = "2197815330")] + RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_PACE = 49, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_CA_KEYS for value: 2197815331 + /// + [EnumMember(Value = "2197815331")] + RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_CA_KEYS = 50, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_TA for value: 2197815332 + /// + [EnumMember(Value = "2197815332")] + RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_TA = 51, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_CA for value: 2197815333 + /// + [EnumMember(Value = "2197815333")] + RFID_ERROR_SESSION_ACCESS_CONTROL_REQUIRES_CA = 52, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_CONTROL_INCORRECT_OPTION_CA for value: 2197815334 + /// + [EnumMember(Value = "2197815334")] + RFID_ERROR_SESSION_ACCESS_CONTROL_INCORRECT_OPTION_CA = 53, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_CONTROL_CA_FAILED for value: 2197815335 + /// + [EnumMember(Value = "2197815335")] + RFID_ERROR_SESSION_ACCESS_CONTROL_CA_FAILED = 54, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_CONTROL_TA_FAILED for value: 2197815336 + /// + [EnumMember(Value = "2197815336")] + RFID_ERROR_SESSION_ACCESS_CONTROL_TA_FAILED = 55, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_CONTROL_AA_FAILED for value: 2197815337 + /// + [EnumMember(Value = "2197815337")] + RFID_ERROR_SESSION_ACCESS_CONTROL_AA_FAILED = 56, + + /// + /// Enum RFID_ERROR_SESSION_ACCESS_CONTROL_RI_FAILED for value: 2197815338 + /// + [EnumMember(Value = "2197815338")] + RFID_ERROR_SESSION_ACCESS_CONTROL_RI_FAILED = 57, + + /// + /// Enum RFID_ERROR_SESSION_PA_SIGNATURE_CHECK_FAILED for value: 2197815344 + /// + [EnumMember(Value = "2197815344")] + RFID_ERROR_SESSION_PA_SIGNATURE_CHECK_FAILED = 58, + + /// + /// Enum RFID_ERROR_SESSION_PA_HASH_CHECK_FAILED for value: 2197815345 + /// + [EnumMember(Value = "2197815345")] + RFID_ERROR_SESSION_PA_HASH_CHECK_FAILED = 59, + + /// + /// Enum RFID_ERROR_SESSION_INVALID_AUX_DATA_DATE_OF_EXPIRY for value: 2197815360 + /// + [EnumMember(Value = "2197815360")] + RFID_ERROR_SESSION_INVALID_AUX_DATA_DATE_OF_EXPIRY = 60, + + /// + /// Enum RFID_ERROR_SESSION_INVALID_AUX_DATA_DATE_OF_BIRTH for value: 2197815361 + /// + [EnumMember(Value = "2197815361")] + RFID_ERROR_SESSION_INVALID_AUX_DATA_DATE_OF_BIRTH = 61, + + /// + /// Enum RFID_ERROR_SESSION_INVALID_AUX_DATA_COMMUNITY_ID for value: 2197815362 + /// + [EnumMember(Value = "2197815362")] + RFID_ERROR_SESSION_INVALID_AUX_DATA_COMMUNITY_ID = 62, + + /// + /// Enum RFID_ERROR_SESSION_E_SIGN_REQUIRES_APP_SELECTION for value: 2197815376 + /// + [EnumMember(Value = "2197815376")] + RFID_ERROR_SESSION_E_SIGN_REQUIRES_APP_SELECTION = 63, + + /// + /// Enum RFID_ERROR_SESSION_E_SIGN_PIN_NOT_SET for value: 2197815377 + /// + [EnumMember(Value = "2197815377")] + RFID_ERROR_SESSION_E_SIGN_PIN_NOT_SET = 64, + + /// + /// Enum RFID_ERROR_SESSION_E_SIGN_PIN_NOT_VERIFIED for value: 2197815378 + /// + [EnumMember(Value = "2197815378")] + RFID_ERROR_SESSION_E_SIGN_PIN_NOT_VERIFIED = 65, + + /// + /// Enum RFID_ERROR_SESSION_INCORRECT_DATA for value: 2197815392 + /// + [EnumMember(Value = "2197815392")] + RFID_ERROR_SESSION_INCORRECT_DATA = 66, + + /// + /// Enum RFID_ERROR_SESSION_FILE_NOT_ENOUGH_DATA for value: 2197880832 + /// + [EnumMember(Value = "2197880832")] + RFID_ERROR_SESSION_FILE_NOT_ENOUGH_DATA = 67, + + /// + /// Enum RFID_ERROR_SESSION_FILE_INCORRECT_DATA for value: 2197946368 + /// + [EnumMember(Value = "2197946368")] + RFID_ERROR_SESSION_FILE_INCORRECT_DATA = 68, + + /// + /// Enum RFID_ERROR_SESSION_FILE_UNEXPECTED_DATA for value: 2198011904 + /// + [EnumMember(Value = "2198011904")] + RFID_ERROR_SESSION_FILE_UNEXPECTED_DATA = 69, + + /// + /// Enum RFID_ERROR_SESSION_FILE_CONTENTS_UNEXPECTED_DATA for value: 2198077440 + /// + [EnumMember(Value = "2198077440")] + RFID_ERROR_SESSION_FILE_CONTENTS_UNEXPECTED_DATA = 70, + + /// + /// Enum RFID_ERROR_SESSION_FILE_WRONG_TAG for value: 2198142976 + /// + [EnumMember(Value = "2198142976")] + RFID_ERROR_SESSION_FILE_WRONG_TAG = 71, + + /// + /// Enum RFID_ERROR_SESSION_FILE_CANT_USE_DATA for value: 2198208512 + /// + [EnumMember(Value = "2198208512")] + RFID_ERROR_SESSION_FILE_CANT_USE_DATA = 72, + + /// + /// Enum RFID_ERROR_SESSION_FILE_CANT_READ_DATA for value: 2198274048 + /// + [EnumMember(Value = "2198274048")] + RFID_ERROR_SESSION_FILE_CANT_READ_DATA = 73, + + /// + /// Enum RFID_ERROR_SESSION_FILE_ACCESS_DENIED for value: 2198339584 + /// + [EnumMember(Value = "2198339584")] + RFID_ERROR_SESSION_FILE_ACCESS_DENIED = 74, + + /// + /// Enum RFID_ERROR_LAYER34_NO_ERROR for value: 2214592512 + /// + [EnumMember(Value = "2214592512")] + RFID_ERROR_LAYER34_NO_ERROR = 75, + + /// + /// Enum RFID_ERROR_LAYER34_TIME_OUT for value: 2214658048 + /// + [EnumMember(Value = "2214658048")] + RFID_ERROR_LAYER34_TIME_OUT = 76, + + /// + /// Enum RFID_ERROR_LAYER34_COLLISION for value: 2214723584 + /// + [EnumMember(Value = "2214723584")] + RFID_ERROR_LAYER34_COLLISION = 77, + + /// + /// Enum RFID_ERROR_LAYER34_CRC for value: 2214789120 + /// + [EnumMember(Value = "2214789120")] + RFID_ERROR_LAYER34_CRC = 78, + + /// + /// Enum RFID_ERROR_LAYER34_DATA_INTEGRITY for value: 2214854656 + /// + [EnumMember(Value = "2214854656")] + RFID_ERROR_LAYER34_DATA_INTEGRITY = 79, + + /// + /// Enum RFID_ERROR_LAYER34_DATA_LENGTH for value: 2214920192 + /// + [EnumMember(Value = "2214920192")] + RFID_ERROR_LAYER34_DATA_LENGTH = 80, + + /// + /// Enum RFID_ERROR_Layer34_RFU for value: 2214985728 + /// + [EnumMember(Value = "2214985728")] + RFID_ERROR_Layer34_RFU = 81, + + /// + /// Enum RFID_ERROR_LAYER34_COLLISION_TOO_MANY for value: 2215051264 + /// + [EnumMember(Value = "2215051264")] + RFID_ERROR_LAYER34_COLLISION_TOO_MANY = 82, + + /// + /// Enum RFID_ERROR_LAYER34_PROTOCOL_B for value: 2215116800 + /// + [EnumMember(Value = "2215116800")] + RFID_ERROR_LAYER34_PROTOCOL_B = 83, + + /// + /// Enum RFID_ERROR_LAYER34_DATA_CONTENTS for value: 2215182336 + /// + [EnumMember(Value = "2215182336")] + RFID_ERROR_LAYER34_DATA_CONTENTS = 84, + + /// + /// Enum RFID_ERROR_LAYER34_PROTOCOL for value: 2215247872 + /// + [EnumMember(Value = "2215247872")] + RFID_ERROR_LAYER34_PROTOCOL = 85, + + /// + /// Enum RFID_ERROR_LAYER34_GLOBAL_TIME_OUT for value: 2215313408 + /// + [EnumMember(Value = "2215313408")] + RFID_ERROR_LAYER34_GLOBAL_TIME_OUT = 86, + + /// + /// Enum RFID_ERROR_LAYER34_MIFARE_AUTH for value: 2215378944 + /// + [EnumMember(Value = "2215378944")] + RFID_ERROR_LAYER34_MIFARE_AUTH = 87, + + /// + /// Enum RFID_ERROR_LAYER34_SAM_ERROR for value: 2215444480 + /// + [EnumMember(Value = "2215444480")] + RFID_ERROR_LAYER34_SAM_ERROR = 88, + + /// + /// Enum RFID_ERROR_LAYER34_SAM_COLLISION for value: 2215510016 + /// + [EnumMember(Value = "2215510016")] + RFID_ERROR_LAYER34_SAM_COLLISION = 89, + + /// + /// Enum RFID_ERROR_LAYER34_SAM_ACKNOWLEDGE for value: 2215575552 + /// + [EnumMember(Value = "2215575552")] + RFID_ERROR_LAYER34_SAM_ACKNOWLEDGE = 90, + + /// + /// Enum RFID_ERROR_LAYER6_SECURITY_MANAGER for value: 2248146944 + /// + [EnumMember(Value = "2248146944")] + RFID_ERROR_LAYER6_SECURITY_MANAGER = 91, + + /// + /// Enum RFID_ERROR_LAYER6_APP_SELECTION_FAILURE for value: 2248146945 + /// + [EnumMember(Value = "2248146945")] + RFID_ERROR_LAYER6_APP_SELECTION_FAILURE = 92, + + /// + /// Enum RFID_ERROR_LAYER6_MUTUAL_AUTH_MAC_FAIL for value: 2248147200 + /// + [EnumMember(Value = "2248147200")] + RFID_ERROR_LAYER6_MUTUAL_AUTH_MAC_FAIL = 93, + + /// + /// Enum RFID_ERROR_LAYER6_MUTUAL_AUTH_ENC_FAIL for value: 2248147201 + /// + [EnumMember(Value = "2248147201")] + RFID_ERROR_LAYER6_MUTUAL_AUTH_ENC_FAIL = 94, + + /// + /// Enum RFID_ERROR_LAYER6_MUTUAL_AUTH_FAILURE for value: 2248147202 + /// + [EnumMember(Value = "2248147202")] + RFID_ERROR_LAYER6_MUTUAL_AUTH_FAILURE = 95, + + /// + /// Enum RFID_ERROR_LAYER6_MUTUAL_AUTH_FAILURE_DATA for value: 2248147203 + /// + [EnumMember(Value = "2248147203")] + RFID_ERROR_LAYER6_MUTUAL_AUTH_FAILURE_DATA = 96, + + /// + /// Enum RFID_ERROR_LAYER6_SM_DO_8E_MISSING for value: 2248147456 + /// + [EnumMember(Value = "2248147456")] + RFID_ERROR_LAYER6_SM_DO_8E_MISSING = 97, + + /// + /// Enum RFID_ERROR_LAYER6_SM_DO_87_MISSING for value: 2248147457 + /// + [EnumMember(Value = "2248147457")] + RFID_ERROR_LAYER6_SM_DO_87_MISSING = 98, + + /// + /// Enum RFID_ERROR_LAYER6_SM_DO_99_MISSING for value: 2248147458 + /// + [EnumMember(Value = "2248147458")] + RFID_ERROR_LAYER6_SM_DO_99_MISSING = 99, + + /// + /// Enum RFID_ERROR_LAYER6_SM_MAC_INCORRECT for value: 2248147459 + /// + [EnumMember(Value = "2248147459")] + RFID_ERROR_LAYER6_SM_MAC_INCORRECT = 100, + + /// + /// Enum RFID_ERROR_LAYER6_SM_DO_87_INCORRECT for value: 2248147460 + /// + [EnumMember(Value = "2248147460")] + RFID_ERROR_LAYER6_SM_DO_87_INCORRECT = 101, + + /// + /// Enum RFID_ERROR_LAYER6_NON_TLV_RESPONSE_DATA for value: 2248147712 + /// + [EnumMember(Value = "2248147712")] + RFID_ERROR_LAYER6_NON_TLV_RESPONSE_DATA = 102, + + /// + /// Enum RFID_ERROR_LAYER6_WRONG_RND_ICC_LENGTH for value: 2248147713 + /// + [EnumMember(Value = "2248147713")] + RFID_ERROR_LAYER6_WRONG_RND_ICC_LENGTH = 103, + + /// + /// Enum RFID_ERROR_LAYER6_INT_AUTH_FAILURE for value: 2248147714 + /// + [EnumMember(Value = "2248147714")] + RFID_ERROR_LAYER6_INT_AUTH_FAILURE = 104, + + /// + /// Enum RFID_ERROR_LAYER6_MSE_SET_KAT_FAILURE for value: 2248147715 + /// + [EnumMember(Value = "2248147715")] + RFID_ERROR_LAYER6_MSE_SET_KAT_FAILURE = 105, + + /// + /// Enum RFID_ERROR_LAYER6_MSE_SET_DST_FAILURE for value: 2248147716 + /// + [EnumMember(Value = "2248147716")] + RFID_ERROR_LAYER6_MSE_SET_DST_FAILURE = 106, + + /// + /// Enum RFID_ERROR_LAYER6_PSO_CERTIFICATE_FAILURE for value: 2248147717 + /// + [EnumMember(Value = "2248147717")] + RFID_ERROR_LAYER6_PSO_CERTIFICATE_FAILURE = 107, + + /// + /// Enum RFID_ERROR_LAYER6_MSE_SET_AT_FAILURE for value: 2248147718 + /// + [EnumMember(Value = "2248147718")] + RFID_ERROR_LAYER6_MSE_SET_AT_FAILURE = 108, + + /// + /// Enum RFID_ERROR_LAYER6_GET_CHALLENGE_FAILURE for value: 2248147719 + /// + [EnumMember(Value = "2248147719")] + RFID_ERROR_LAYER6_GET_CHALLENGE_FAILURE = 109, + + /// + /// Enum RFID_ERROR_LAYER6_EXT_AUTH_FAILURE for value: 2248147720 + /// + [EnumMember(Value = "2248147720")] + RFID_ERROR_LAYER6_EXT_AUTH_FAILURE = 110, + + /// + /// Enum RFID_ERROR_LAYER6_GENERAL_AUTH_FAILURE for value: 2248147721 + /// + [EnumMember(Value = "2248147721")] + RFID_ERROR_LAYER6_GENERAL_AUTH_FAILURE = 111, + + /// + /// Enum RFID_ERROR_FAILED for value: 4294967295 + /// + [EnumMember(Value = "4294967295")] + RFID_ERROR_FAILED = 112, + + /// + /// Enum RFID_ERROR_NO_ERROR for value: 1 + /// + [EnumMember(Value = "1")] + RFID_ERROR_NO_ERROR = 113, + + /// + /// Enum RFID_ERROR_ALREADY_DONE for value: 2 + /// + [EnumMember(Value = "2")] + RFID_ERROR_ALREADY_DONE = 114 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/RFIDPKDResourceType.cs b/src/Regula.DocumentReader.WebClient/Model/RFIDPKDResourceType.cs new file mode 100644 index 0000000..f0fbceb --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RFIDPKDResourceType.cs @@ -0,0 +1,86 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration contains a set of constants that define the type of certificate + /// + /// Enumeration contains a set of constants that define the type of certificate + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RFIDPKDResourceType + { + /// + /// Enum CERTIFICATE_PA for value: 0 + /// + [EnumMember(Value = "0")] + CERTIFICATE_PA = 1, + + /// + /// Enum CERTIFICATE_TA for value: 1 + /// + [EnumMember(Value = "1")] + CERTIFICATE_TA = 2, + + /// + /// Enum LDIF for value: 2 + /// + [EnumMember(Value = "2")] + LDIF = 3, + + /// + /// Enum CRL for value: 3 + /// + [EnumMember(Value = "3")] + CRL = 4, + + /// + /// Enum ML for value: 4 + /// + [EnumMember(Value = "4")] + ML = 5, + + /// + /// Enum DEFL for value: 5 + /// + [EnumMember(Value = "5")] + DEFL = 6, + + /// + /// Enum DEVL for value: 6 + /// + [EnumMember(Value = "6")] + DEVL = 7, + + /// + /// Enum BL for value: 7 + /// + [EnumMember(Value = "7")] + BL = 8 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/RawImageContainerList.cs b/src/Regula.DocumentReader.WebClient/Model/RawImageContainerList.cs index 37eadba..1e89771 100644 --- a/src/Regula.DocumentReader.WebClient/Model/RawImageContainerList.cs +++ b/src/Regula.DocumentReader.WebClient/Model/RawImageContainerList.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,24 +33,47 @@ public partial class RawImageContainerList : IEquatable, /// /// Initializes a new instance of the class. /// - /// count. - /// images. + [JsonConstructorAttribute] + protected RawImageContainerList() { } + /// + /// Initializes a new instance of the class. + /// + /// count (required). + /// images (required). public RawImageContainerList(int count = default(int), List images = default(List)) { - this.Count = count; - this.Images = images; + // to ensure "count" is required (not null) + if (count == null) + { + throw new InvalidDataException("count is a required property for RawImageContainerList and cannot be null"); + } + else + { + this.Count = count; + } + + // to ensure "images" is required (not null) + if (images == null) + { + throw new InvalidDataException("images is a required property for RawImageContainerList and cannot be null"); + } + else + { + this.Images = images; + } + } /// /// Gets or Sets Count /// - [DataMember(Name="Count", EmitDefaultValue=false)] + [DataMember(Name="Count", EmitDefaultValue=true)] public int Count { get; set; } /// /// Gets or Sets Images /// - [DataMember(Name="Images", EmitDefaultValue=false)] + [DataMember(Name="Images", EmitDefaultValue=true)] public List Images { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/RectangleCoordinates.cs b/src/Regula.DocumentReader.WebClient/Model/RectangleCoordinates.cs index 43adbd9..c35bda1 100644 --- a/src/Regula.DocumentReader.WebClient/Model/RectangleCoordinates.cs +++ b/src/Regula.DocumentReader.WebClient/Model/RectangleCoordinates.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/RfidAChip.cs b/src/Regula.DocumentReader.WebClient/Model/RfidAChip.cs new file mode 100644 index 0000000..9b5c3c4 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidAChip.cs @@ -0,0 +1,74 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration contains a set of constants specifying the type of the RFIDchip from MIFARE® family (for chips of type A) + /// + /// Enumeration contains a set of constants specifying the type of the RFIDchip from MIFARE® family (for chips of type A) + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RfidAChip + { + /// + /// Enum UNKNOWN for value: 0 + /// + [EnumMember(Value = "0")] + UNKNOWN = 1, + + /// + /// Enum MIFARE_1K for value: 1 + /// + [EnumMember(Value = "1")] + MIFARE_1K = 2, + + /// + /// Enum MIFARE_4K for value: 2 + /// + [EnumMember(Value = "2")] + MIFARE_4K = 3, + + /// + /// Enum MIFARE_ULTRALIGHT for value: 3 + /// + [EnumMember(Value = "3")] + MIFARE_ULTRALIGHT = 4, + + /// + /// Enum MIFARE_DES_FIRE for value: 4 + /// + [EnumMember(Value = "4")] + MIFARE_DES_FIRE = 5, + + /// + /// Enum MIFARE_PROX for value: 5 + /// + [EnumMember(Value = "5")] + MIFARE_PROX = 6 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/RfidAccessControlInfo.cs b/src/Regula.DocumentReader.WebClient/Model/RfidAccessControlInfo.cs new file mode 100644 index 0000000..987d275 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidAccessControlInfo.cs @@ -0,0 +1,225 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure is used to describe the results of a single authentication procedure or a procedure of secure data access within the context of the communication session with electronic document + /// + [DataContract] + public partial class RfidAccessControlInfo : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Type + /// + [DataMember(Name="Type", EmitDefaultValue=true)] + public RfidAccessControlProcedureType Type { get; set; } + /// + /// Gets or Sets Status + /// + [DataMember(Name="Status", EmitDefaultValue=true)] + public RFIDErrorCodes Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidAccessControlInfo() { } + /// + /// Initializes a new instance of the class. + /// + /// type (required). + /// status (required). + /// Index of the active variant of the procedure. + /// List of remarks arisen during the procedure. (required). + /// List of structures with are used to describe the variants of the authentication or secure data access procedure performance within the context of the communication session with electronic document. + public RfidAccessControlInfo(RfidAccessControlProcedureType type = default(RfidAccessControlProcedureType), RFIDErrorCodes status = default(RFIDErrorCodes), decimal activeOptionIdx = default(decimal), List notifications = default(List), List accessControlOptions = default(List)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for RfidAccessControlInfo and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "status" is required (not null) + if (status == null) + { + throw new InvalidDataException("status is a required property for RfidAccessControlInfo and cannot be null"); + } + else + { + this.Status = status; + } + + // to ensure "notifications" is required (not null) + if (notifications == null) + { + throw new InvalidDataException("notifications is a required property for RfidAccessControlInfo and cannot be null"); + } + else + { + this.Notifications = notifications; + } + + this.ActiveOptionIdx = activeOptionIdx; + this.AccessControlOptions = accessControlOptions; + } + + + + /// + /// Index of the active variant of the procedure + /// + /// Index of the active variant of the procedure + [DataMember(Name="ActiveOptionIdx", EmitDefaultValue=false)] + public decimal ActiveOptionIdx { get; set; } + + /// + /// List of remarks arisen during the procedure. + /// + /// List of remarks arisen during the procedure. + [DataMember(Name="Notifications", EmitDefaultValue=true)] + public List Notifications { get; set; } + + /// + /// List of structures with are used to describe the variants of the authentication or secure data access procedure performance within the context of the communication session with electronic document + /// + /// List of structures with are used to describe the variants of the authentication or secure data access procedure performance within the context of the communication session with electronic document + [DataMember(Name="AccessControlOptions", EmitDefaultValue=false)] + public List AccessControlOptions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidAccessControlInfo {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" ActiveOptionIdx: ").Append(ActiveOptionIdx).Append("\n"); + sb.Append(" Notifications: ").Append(Notifications).Append("\n"); + sb.Append(" AccessControlOptions: ").Append(AccessControlOptions).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidAccessControlInfo); + } + + /// + /// Returns true if RfidAccessControlInfo instances are equal + /// + /// Instance of RfidAccessControlInfo to be compared + /// Boolean + public bool Equals(RfidAccessControlInfo input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.ActiveOptionIdx == input.ActiveOptionIdx || + (this.ActiveOptionIdx != null && + this.ActiveOptionIdx.Equals(input.ActiveOptionIdx)) + ) && + ( + this.Notifications == input.Notifications || + this.Notifications != null && + input.Notifications != null && + this.Notifications.SequenceEqual(input.Notifications) + ) && + ( + this.AccessControlOptions == input.AccessControlOptions || + this.AccessControlOptions != null && + input.AccessControlOptions != null && + this.AccessControlOptions.SequenceEqual(input.AccessControlOptions) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.ActiveOptionIdx != null) + hashCode = hashCode * 59 + this.ActiveOptionIdx.GetHashCode(); + if (this.Notifications != null) + hashCode = hashCode * 59 + this.Notifications.GetHashCode(); + if (this.AccessControlOptions != null) + hashCode = hashCode * 59 + this.AccessControlOptions.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidAccessControlProcedureType.cs b/src/Regula.DocumentReader.WebClient/Model/RfidAccessControlProcedureType.cs new file mode 100644 index 0000000..4831ac6 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidAccessControlProcedureType.cs @@ -0,0 +1,86 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration contains a set of constants that define the type of authentication or secure data access procedure + /// + /// Enumeration contains a set of constants that define the type of authentication or secure data access procedure + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RfidAccessControlProcedureType + { + /// + /// Enum UNDEFINED for value: 0 + /// + [EnumMember(Value = "0")] + UNDEFINED = 1, + + /// + /// Enum BAC for value: 1 + /// + [EnumMember(Value = "1")] + BAC = 2, + + /// + /// Enum PACE for value: 2 + /// + [EnumMember(Value = "2")] + PACE = 3, + + /// + /// Enum CA for value: 3 + /// + [EnumMember(Value = "3")] + CA = 4, + + /// + /// Enum TA for value: 4 + /// + [EnumMember(Value = "4")] + TA = 5, + + /// + /// Enum AA for value: 5 + /// + [EnumMember(Value = "5")] + AA = 6, + + /// + /// Enum RI for value: 6 + /// + [EnumMember(Value = "6")] + RI = 7, + + /// + /// Enum CARD_INFO for value: 10 + /// + [EnumMember(Value = "10")] + CARD_INFO = 8 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/RfidAccessKey.cs b/src/Regula.DocumentReader.WebClient/Model/RfidAccessKey.cs new file mode 100644 index 0000000..8f80ec4 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidAccessKey.cs @@ -0,0 +1,215 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure is used to describe the contents of secure data access key within the context of the communication session with electronic document + /// + [DataContract] + public partial class RfidAccessKey : IEquatable, IValidatableObject + { + /// + /// Gets or Sets KeyType + /// + [DataMember(Name="KeyType", EmitDefaultValue=true)] + public RfidPasswordType KeyType { get; set; } + /// + /// Gets or Sets AccessType + /// + [DataMember(Name="AccessType", EmitDefaultValue=true)] + public RfidAccessControlProcedureType AccessType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidAccessKey() { } + /// + /// Initializes a new instance of the class. + /// + /// Key contents (required). + /// keyType (required). + /// accessType (required). + /// Logical sign of the need for a full comparison of AccessKey contents with the contents of DG1 (MRZ) data group (required). + public RfidAccessKey(string accessKey = default(string), RfidPasswordType keyType = default(RfidPasswordType), RfidAccessControlProcedureType accessType = default(RfidAccessControlProcedureType), bool? checkFullKeyMatching = default(bool?)) + { + // to ensure "accessKey" is required (not null) + if (accessKey == null) + { + throw new InvalidDataException("accessKey is a required property for RfidAccessKey and cannot be null"); + } + else + { + this.AccessKey = accessKey; + } + + // to ensure "keyType" is required (not null) + if (keyType == null) + { + throw new InvalidDataException("keyType is a required property for RfidAccessKey and cannot be null"); + } + else + { + this.KeyType = keyType; + } + + // to ensure "accessType" is required (not null) + if (accessType == null) + { + throw new InvalidDataException("accessType is a required property for RfidAccessKey and cannot be null"); + } + else + { + this.AccessType = accessType; + } + + // to ensure "checkFullKeyMatching" is required (not null) + if (checkFullKeyMatching == null) + { + throw new InvalidDataException("checkFullKeyMatching is a required property for RfidAccessKey and cannot be null"); + } + else + { + this.CheckFullKeyMatching = checkFullKeyMatching; + } + + } + + /// + /// Key contents + /// + /// Key contents + [DataMember(Name="AccessKey", EmitDefaultValue=true)] + public string AccessKey { get; set; } + + + + /// + /// Logical sign of the need for a full comparison of AccessKey contents with the contents of DG1 (MRZ) data group + /// + /// Logical sign of the need for a full comparison of AccessKey contents with the contents of DG1 (MRZ) data group + [DataMember(Name="CheckFullKeyMatching", EmitDefaultValue=true)] + public bool? CheckFullKeyMatching { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidAccessKey {\n"); + sb.Append(" AccessKey: ").Append(AccessKey).Append("\n"); + sb.Append(" KeyType: ").Append(KeyType).Append("\n"); + sb.Append(" AccessType: ").Append(AccessType).Append("\n"); + sb.Append(" CheckFullKeyMatching: ").Append(CheckFullKeyMatching).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidAccessKey); + } + + /// + /// Returns true if RfidAccessKey instances are equal + /// + /// Instance of RfidAccessKey to be compared + /// Boolean + public bool Equals(RfidAccessKey input) + { + if (input == null) + return false; + + return + ( + this.AccessKey == input.AccessKey || + (this.AccessKey != null && + this.AccessKey.Equals(input.AccessKey)) + ) && + ( + this.KeyType == input.KeyType || + (this.KeyType != null && + this.KeyType.Equals(input.KeyType)) + ) && + ( + this.AccessType == input.AccessType || + (this.AccessType != null && + this.AccessType.Equals(input.AccessType)) + ) && + ( + this.CheckFullKeyMatching == input.CheckFullKeyMatching || + (this.CheckFullKeyMatching != null && + this.CheckFullKeyMatching.Equals(input.CheckFullKeyMatching)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AccessKey != null) + hashCode = hashCode * 59 + this.AccessKey.GetHashCode(); + if (this.KeyType != null) + hashCode = hashCode * 59 + this.KeyType.GetHashCode(); + if (this.AccessType != null) + hashCode = hashCode * 59 + this.AccessType.GetHashCode(); + if (this.CheckFullKeyMatching != null) + hashCode = hashCode * 59 + this.CheckFullKeyMatching.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidApplication.cs b/src/Regula.DocumentReader.WebClient/Model/RfidApplication.cs new file mode 100644 index 0000000..a701993 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidApplication.cs @@ -0,0 +1,294 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure is used to describe the contents of a single LDS application and their analysis within the context of the communication session with electronic document + /// + [DataContract] + public partial class RfidApplication : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Type + /// + [DataMember(Name="Type", EmitDefaultValue=true)] + public RfidApplicationType Type { get; set; } + /// + /// Gets or Sets Status + /// + [DataMember(Name="Status", EmitDefaultValue=true)] + public RFIDErrorCodes Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidApplication() { } + /// + /// Initializes a new instance of the class. + /// + /// type (required). + /// status (required). + /// Application identifier (required). + /// Version of the application (required). + /// Unicode version for application (required). + /// Algorithm for calculating hash values for files for the procedure of PA (required). + /// List of containers to store information about the read files of the application (required). + public RfidApplication(RfidApplicationType type = default(RfidApplicationType), RFIDErrorCodes status = default(RFIDErrorCodes), string applicationID = default(string), string version = default(string), string unicodeVersion = default(string), string dataHashAlgorithm = default(string), List files = default(List)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for RfidApplication and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "status" is required (not null) + if (status == null) + { + throw new InvalidDataException("status is a required property for RfidApplication and cannot be null"); + } + else + { + this.Status = status; + } + + // to ensure "applicationID" is required (not null) + if (applicationID == null) + { + throw new InvalidDataException("applicationID is a required property for RfidApplication and cannot be null"); + } + else + { + this.ApplicationID = applicationID; + } + + // to ensure "version" is required (not null) + if (version == null) + { + throw new InvalidDataException("version is a required property for RfidApplication and cannot be null"); + } + else + { + this.Version = version; + } + + // to ensure "unicodeVersion" is required (not null) + if (unicodeVersion == null) + { + throw new InvalidDataException("unicodeVersion is a required property for RfidApplication and cannot be null"); + } + else + { + this.UnicodeVersion = unicodeVersion; + } + + // to ensure "dataHashAlgorithm" is required (not null) + if (dataHashAlgorithm == null) + { + throw new InvalidDataException("dataHashAlgorithm is a required property for RfidApplication and cannot be null"); + } + else + { + this.DataHashAlgorithm = dataHashAlgorithm; + } + + // to ensure "files" is required (not null) + if (files == null) + { + throw new InvalidDataException("files is a required property for RfidApplication and cannot be null"); + } + else + { + this.Files = files; + } + + } + + + + /// + /// Application identifier + /// + /// Application identifier + [DataMember(Name="ApplicationID", EmitDefaultValue=true)] + public string ApplicationID { get; set; } + + /// + /// Version of the application + /// + /// Version of the application + [DataMember(Name="Version", EmitDefaultValue=true)] + public string Version { get; set; } + + /// + /// Unicode version for application + /// + /// Unicode version for application + [DataMember(Name="UnicodeVersion", EmitDefaultValue=true)] + public string UnicodeVersion { get; set; } + + /// + /// Algorithm for calculating hash values for files for the procedure of PA + /// + /// Algorithm for calculating hash values for files for the procedure of PA + [DataMember(Name="DataHashAlgorithm", EmitDefaultValue=true)] + public string DataHashAlgorithm { get; set; } + + /// + /// List of containers to store information about the read files of the application + /// + /// List of containers to store information about the read files of the application + [DataMember(Name="Files", EmitDefaultValue=true)] + public List Files { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidApplication {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" ApplicationID: ").Append(ApplicationID).Append("\n"); + sb.Append(" Version: ").Append(Version).Append("\n"); + sb.Append(" UnicodeVersion: ").Append(UnicodeVersion).Append("\n"); + sb.Append(" DataHashAlgorithm: ").Append(DataHashAlgorithm).Append("\n"); + sb.Append(" Files: ").Append(Files).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidApplication); + } + + /// + /// Returns true if RfidApplication instances are equal + /// + /// Instance of RfidApplication to be compared + /// Boolean + public bool Equals(RfidApplication input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.ApplicationID == input.ApplicationID || + (this.ApplicationID != null && + this.ApplicationID.Equals(input.ApplicationID)) + ) && + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.UnicodeVersion == input.UnicodeVersion || + (this.UnicodeVersion != null && + this.UnicodeVersion.Equals(input.UnicodeVersion)) + ) && + ( + this.DataHashAlgorithm == input.DataHashAlgorithm || + (this.DataHashAlgorithm != null && + this.DataHashAlgorithm.Equals(input.DataHashAlgorithm)) + ) && + ( + this.Files == input.Files || + this.Files != null && + input.Files != null && + this.Files.SequenceEqual(input.Files) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.ApplicationID != null) + hashCode = hashCode * 59 + this.ApplicationID.GetHashCode(); + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.UnicodeVersion != null) + hashCode = hashCode * 59 + this.UnicodeVersion.GetHashCode(); + if (this.DataHashAlgorithm != null) + hashCode = hashCode * 59 + this.DataHashAlgorithm.GetHashCode(); + if (this.Files != null) + hashCode = hashCode * 59 + this.Files.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidApplicationType.cs b/src/Regula.DocumentReader.WebClient/Model/RfidApplicationType.cs new file mode 100644 index 0000000..ce60d2e --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidApplicationType.cs @@ -0,0 +1,98 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration contains a set of constants that define the type of application within the context of the communication session with electronic document + /// + /// Enumeration contains a set of constants that define the type of application within the context of the communication session with electronic document + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RfidApplicationType + { + /// + /// Enum UNSPECIFIED for value: 0 + /// + [EnumMember(Value = "0")] + UNSPECIFIED = 1, + + /// + /// Enum E_PASSPORT for value: 1 + /// + [EnumMember(Value = "1")] + E_PASSPORT = 2, + + /// + /// Enum E_ID for value: 2 + /// + [EnumMember(Value = "2")] + E_ID = 3, + + /// + /// Enum E_SIGN for value: 3 + /// + [EnumMember(Value = "3")] + E_SIGN = 4, + + /// + /// Enum E_DL for value: 4 + /// + [EnumMember(Value = "4")] + E_DL = 5, + + /// + /// Enum LDS2_TravelRecords for value: 5 + /// + [EnumMember(Value = "5")] + LDS2_TravelRecords = 6, + + /// + /// Enum LDS2_VisaRecords for value: 6 + /// + [EnumMember(Value = "6")] + LDS2_VisaRecords = 7, + + /// + /// Enum LDS2_AddBiometrics for value: 7 + /// + [EnumMember(Value = "7")] + LDS2_AddBiometrics = 8, + + /// + /// Enum eDTC_PC for value: 8 + /// + [EnumMember(Value = "8")] + eDTC_PC = 9, + + /// + /// Enum ROOT_FILES for value: 0 + /// + [EnumMember(Value = "0")] + ROOT_FILES = 10 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/RfidAttributeData.cs b/src/Regula.DocumentReader.WebClient/Model/RfidAttributeData.cs new file mode 100644 index 0000000..1be6a3b --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidAttributeData.cs @@ -0,0 +1,165 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure contains the data of one attribute of the digital signature object. + /// + [DataContract] + public partial class RfidAttributeData : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidAttributeData() { } + /// + /// Initializes a new instance of the class. + /// + /// Contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) (required). + /// Attribute binary data. Base64 encoded. (required). + public RfidAttributeData(string type = default(string), string data = default(string)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for RfidAttributeData and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RfidAttributeData and cannot be null"); + } + else + { + this.Data = data; + } + + } + + /// + /// Contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) + /// + /// Contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) + [DataMember(Name="Type", EmitDefaultValue=true)] + public string Type { get; set; } + + /// + /// Attribute binary data. Base64 encoded. + /// + /// Attribute binary data. Base64 encoded. + [DataMember(Name="Data", EmitDefaultValue=true)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidAttributeData {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Data: ").Append(Data).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidAttributeData); + } + + /// + /// Returns true if RfidAttributeData instances are equal + /// + /// Instance of RfidAttributeData to be compared + /// Boolean + public bool Equals(RfidAttributeData input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidAttributeName.cs b/src/Regula.DocumentReader.WebClient/Model/RfidAttributeName.cs new file mode 100644 index 0000000..d5ee7b2 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidAttributeName.cs @@ -0,0 +1,164 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure contains information that serves as the distinguished name (identifier) of an object. + /// + [DataContract] + public partial class RfidAttributeName : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidAttributeName() { } + /// + /// Initializes a new instance of the class. + /// + /// Attribute identifier (OID ASCII string); contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) (required). + /// value (required). + public RfidAttributeName(string type = default(string), TrfFtString value = default(TrfFtString)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for RfidAttributeName and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "value" is required (not null) + if (value == null) + { + throw new InvalidDataException("value is a required property for RfidAttributeName and cannot be null"); + } + else + { + this.Value = value; + } + + } + + /// + /// Attribute identifier (OID ASCII string); contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) + /// + /// Attribute identifier (OID ASCII string); contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) + [DataMember(Name="Type", EmitDefaultValue=true)] + public string Type { get; set; } + + /// + /// Gets or Sets Value + /// + [DataMember(Name="Value", EmitDefaultValue=true)] + public TrfFtString Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidAttributeName {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Value: ").Append(Value).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidAttributeName); + } + + /// + /// Returns true if RfidAttributeName instances are equal + /// + /// Instance of RfidAttributeName to be compared + /// Boolean + public bool Equals(RfidAttributeName input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidAuthenticationProcedureType.cs b/src/Regula.DocumentReader.WebClient/Model/RfidAuthenticationProcedureType.cs new file mode 100644 index 0000000..db63b53 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidAuthenticationProcedureType.cs @@ -0,0 +1,62 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration contains a set of constants that define the type of performed procedure of document authentication within the current session + /// + /// Enumeration contains a set of constants that define the type of performed procedure of document authentication within the current session + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RfidAuthenticationProcedureType + { + /// + /// Enum UNDEFINED for value: 0 + /// + [EnumMember(Value = "0")] + UNDEFINED = 1, + + /// + /// Enum STANDARD for value: 1 + /// + [EnumMember(Value = "1")] + STANDARD = 2, + + /// + /// Enum ADVANCED for value: 2 + /// + [EnumMember(Value = "2")] + ADVANCED = 3, + + /// + /// Enum GENERAL for value: 3 + /// + [EnumMember(Value = "3")] + GENERAL = 4 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/RfidBaudRate.cs b/src/Regula.DocumentReader.WebClient/Model/RfidBaudRate.cs new file mode 100644 index 0000000..41e42ec --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidBaudRate.cs @@ -0,0 +1,68 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration contains a set of constants specifying the rate of data exchange between the reader and the RFID-chip + /// + /// Enumeration contains a set of constants specifying the rate of data exchange between the reader and the RFID-chip + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RfidBaudRate + { + /// + /// Enum UNKNOWN for value: 0 + /// + [EnumMember(Value = "0")] + UNKNOWN = 1, + + /// + /// Enum RFBR_106 for value: 1 + /// + [EnumMember(Value = "1")] + RFBR_106 = 2, + + /// + /// Enum RFBR_212 for value: 2 + /// + [EnumMember(Value = "2")] + RFBR_212 = 3, + + /// + /// Enum RFBR_424 for value: 4 + /// + [EnumMember(Value = "4")] + RFBR_424 = 4, + + /// + /// Enum RFBR_848 for value: 8 + /// + [EnumMember(Value = "8")] + RFBR_848 = 5 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/RfidCardPropertiesExt.cs b/src/Regula.DocumentReader.WebClient/Model/RfidCardPropertiesExt.cs new file mode 100644 index 0000000..7abb595 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidCardPropertiesExt.cs @@ -0,0 +1,476 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure is used to store extended information about the characteristics of the RFID-chip located in the scope of the reader + /// + [DataContract] + public partial class RfidCardPropertiesExt : IEquatable, IValidatableObject + { + /// + /// Gets or Sets RFIDType + /// + [DataMember(Name="RFID_Type", EmitDefaultValue=true)] + public RfidType RFIDType { get; set; } + /// + /// Gets or Sets ChipTypeA + /// + [DataMember(Name="ChipType_A", EmitDefaultValue=true)] + public RfidAChip ChipTypeA { get; set; } + /// + /// Gets or Sets BitRateS + /// + [DataMember(Name="BitRateS", EmitDefaultValue=true)] + public RfidBaudRate BitRateS { get; set; } + /// + /// Gets or Sets BitRateR + /// + [DataMember(Name="BitRateR", EmitDefaultValue=true)] + public RfidBaudRate BitRateR { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidCardPropertiesExt() { } + /// + /// Initializes a new instance of the class. + /// + /// rFIDType (required). + /// Numeric Baudrate1 value in hexadecimal format (e.g. 0x0000000F) (required). + /// Numeric Baudrate2 value in hexadecimal format (required). + /// Boolean Support_4 value (required). + /// chipTypeA (required). + /// Sign of support for ISO/IEC 14443-3 data exchange protocol (required). + /// Amount of operational memory MIFARE® of the chip, kilobytes (required). + /// UID contents in text format. Each byte is represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. F9 4F 41 60) (required). + /// Reply of the «A» type chip to «REQA» command of ISO/IEC 14443-3 protocol (Answer To Request, Type A – ATQA) – for the internal use by the main control library (required). + /// Response of type-A RFID-chip to SELECT command of ISO/IEC 14443-3 protocol (Select Acknowledge, SAK). (required). + /// ATQ_B contents in text format. Each byte is represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. 50 F9 4F 41 60 00 00 00 00 77 81 81) (required). + /// bitRateS (required). + /// bitRateR (required). + /// ATR-string of RFID-chip (required). + public RfidCardPropertiesExt(RfidType rFIDType = default(RfidType), string baudrate1 = default(string), string baudrate2 = default(string), bool? support4 = default(bool?), RfidAChip chipTypeA = default(RfidAChip), bool? supportMifare = default(bool?), decimal mifareMemory = default(decimal), string uID = default(string), Object aTQA = default(Object), Object sAK = default(Object), Object aTQB = default(Object), RfidBaudRate bitRateS = default(RfidBaudRate), RfidBaudRate bitRateR = default(RfidBaudRate), string aTR = default(string)) + { + // to ensure "rFIDType" is required (not null) + if (rFIDType == null) + { + throw new InvalidDataException("rFIDType is a required property for RfidCardPropertiesExt and cannot be null"); + } + else + { + this.RFIDType = rFIDType; + } + + // to ensure "baudrate1" is required (not null) + if (baudrate1 == null) + { + throw new InvalidDataException("baudrate1 is a required property for RfidCardPropertiesExt and cannot be null"); + } + else + { + this.Baudrate1 = baudrate1; + } + + // to ensure "baudrate2" is required (not null) + if (baudrate2 == null) + { + throw new InvalidDataException("baudrate2 is a required property for RfidCardPropertiesExt and cannot be null"); + } + else + { + this.Baudrate2 = baudrate2; + } + + // to ensure "support4" is required (not null) + if (support4 == null) + { + throw new InvalidDataException("support4 is a required property for RfidCardPropertiesExt and cannot be null"); + } + else + { + this.Support4 = support4; + } + + // to ensure "chipTypeA" is required (not null) + if (chipTypeA == null) + { + throw new InvalidDataException("chipTypeA is a required property for RfidCardPropertiesExt and cannot be null"); + } + else + { + this.ChipTypeA = chipTypeA; + } + + // to ensure "supportMifare" is required (not null) + if (supportMifare == null) + { + throw new InvalidDataException("supportMifare is a required property for RfidCardPropertiesExt and cannot be null"); + } + else + { + this.SupportMifare = supportMifare; + } + + // to ensure "mifareMemory" is required (not null) + if (mifareMemory == null) + { + throw new InvalidDataException("mifareMemory is a required property for RfidCardPropertiesExt and cannot be null"); + } + else + { + this.MifareMemory = mifareMemory; + } + + // to ensure "uID" is required (not null) + if (uID == null) + { + throw new InvalidDataException("uID is a required property for RfidCardPropertiesExt and cannot be null"); + } + else + { + this.UID = uID; + } + + // to ensure "aTQA" is required (not null) + if (aTQA == null) + { + throw new InvalidDataException("aTQA is a required property for RfidCardPropertiesExt and cannot be null"); + } + else + { + this.ATQ_A = aTQA; + } + + this.ATQ_A = aTQA; + // to ensure "sAK" is required (not null) + if (sAK == null) + { + throw new InvalidDataException("sAK is a required property for RfidCardPropertiesExt and cannot be null"); + } + else + { + this.SAK = sAK; + } + + this.SAK = sAK; + // to ensure "aTQB" is required (not null) + if (aTQB == null) + { + throw new InvalidDataException("aTQB is a required property for RfidCardPropertiesExt and cannot be null"); + } + else + { + this.ATQ_B = aTQB; + } + + this.ATQ_B = aTQB; + // to ensure "bitRateS" is required (not null) + if (bitRateS == null) + { + throw new InvalidDataException("bitRateS is a required property for RfidCardPropertiesExt and cannot be null"); + } + else + { + this.BitRateS = bitRateS; + } + + // to ensure "bitRateR" is required (not null) + if (bitRateR == null) + { + throw new InvalidDataException("bitRateR is a required property for RfidCardPropertiesExt and cannot be null"); + } + else + { + this.BitRateR = bitRateR; + } + + // to ensure "aTR" is required (not null) + if (aTR == null) + { + throw new InvalidDataException("aTR is a required property for RfidCardPropertiesExt and cannot be null"); + } + else + { + this.ATR = aTR; + } + + } + + + /// + /// Numeric Baudrate1 value in hexadecimal format (e.g. 0x0000000F) + /// + /// Numeric Baudrate1 value in hexadecimal format (e.g. 0x0000000F) + [DataMember(Name="Baudrate1", EmitDefaultValue=true)] + public string Baudrate1 { get; set; } + + /// + /// Numeric Baudrate2 value in hexadecimal format + /// + /// Numeric Baudrate2 value in hexadecimal format + [DataMember(Name="Baudrate2", EmitDefaultValue=true)] + public string Baudrate2 { get; set; } + + /// + /// Boolean Support_4 value + /// + /// Boolean Support_4 value + [DataMember(Name="Support_4", EmitDefaultValue=true)] + public bool? Support4 { get; set; } + + + /// + /// Sign of support for ISO/IEC 14443-3 data exchange protocol + /// + /// Sign of support for ISO/IEC 14443-3 data exchange protocol + [DataMember(Name="Support_Mifare", EmitDefaultValue=true)] + public bool? SupportMifare { get; set; } + + /// + /// Amount of operational memory MIFARE® of the chip, kilobytes + /// + /// Amount of operational memory MIFARE® of the chip, kilobytes + [DataMember(Name="MifareMemory", EmitDefaultValue=true)] + public decimal MifareMemory { get; set; } + + /// + /// UID contents in text format. Each byte is represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. F9 4F 41 60) + /// + /// UID contents in text format. Each byte is represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. F9 4F 41 60) + [DataMember(Name="UID", EmitDefaultValue=true)] + public string UID { get; set; } + + /// + /// Reply of the «A» type chip to «REQA» command of ISO/IEC 14443-3 protocol (Answer To Request, Type A – ATQA) – for the internal use by the main control library + /// + /// Reply of the «A» type chip to «REQA» command of ISO/IEC 14443-3 protocol (Answer To Request, Type A – ATQA) – for the internal use by the main control library + [DataMember(Name="ATQ_A", EmitDefaultValue=true)] + public Object ATQ_A { get; set; } + + /// + /// Response of type-A RFID-chip to SELECT command of ISO/IEC 14443-3 protocol (Select Acknowledge, SAK). + /// + /// Response of type-A RFID-chip to SELECT command of ISO/IEC 14443-3 protocol (Select Acknowledge, SAK). + [DataMember(Name="SAK", EmitDefaultValue=true)] + public Object SAK { get; set; } + + /// + /// ATQ_B contents in text format. Each byte is represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. 50 F9 4F 41 60 00 00 00 00 77 81 81) + /// + /// ATQ_B contents in text format. Each byte is represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. 50 F9 4F 41 60 00 00 00 00 77 81 81) + [DataMember(Name="ATQ_B", EmitDefaultValue=true)] + public Object ATQ_B { get; set; } + + + + /// + /// ATR-string of RFID-chip + /// + /// ATR-string of RFID-chip + [DataMember(Name="ATR", EmitDefaultValue=true)] + public string ATR { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidCardPropertiesExt {\n"); + sb.Append(" RFIDType: ").Append(RFIDType).Append("\n"); + sb.Append(" Baudrate1: ").Append(Baudrate1).Append("\n"); + sb.Append(" Baudrate2: ").Append(Baudrate2).Append("\n"); + sb.Append(" Support4: ").Append(Support4).Append("\n"); + sb.Append(" ChipTypeA: ").Append(ChipTypeA).Append("\n"); + sb.Append(" SupportMifare: ").Append(SupportMifare).Append("\n"); + sb.Append(" MifareMemory: ").Append(MifareMemory).Append("\n"); + sb.Append(" UID: ").Append(UID).Append("\n"); + sb.Append(" ATQ_A: ").Append(ATQ_A).Append("\n"); + sb.Append(" SAK: ").Append(SAK).Append("\n"); + sb.Append(" ATQ_B: ").Append(ATQ_B).Append("\n"); + sb.Append(" BitRateS: ").Append(BitRateS).Append("\n"); + sb.Append(" BitRateR: ").Append(BitRateR).Append("\n"); + sb.Append(" ATR: ").Append(ATR).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidCardPropertiesExt); + } + + /// + /// Returns true if RfidCardPropertiesExt instances are equal + /// + /// Instance of RfidCardPropertiesExt to be compared + /// Boolean + public bool Equals(RfidCardPropertiesExt input) + { + if (input == null) + return false; + + return + ( + this.RFIDType == input.RFIDType || + (this.RFIDType != null && + this.RFIDType.Equals(input.RFIDType)) + ) && + ( + this.Baudrate1 == input.Baudrate1 || + (this.Baudrate1 != null && + this.Baudrate1.Equals(input.Baudrate1)) + ) && + ( + this.Baudrate2 == input.Baudrate2 || + (this.Baudrate2 != null && + this.Baudrate2.Equals(input.Baudrate2)) + ) && + ( + this.Support4 == input.Support4 || + (this.Support4 != null && + this.Support4.Equals(input.Support4)) + ) && + ( + this.ChipTypeA == input.ChipTypeA || + (this.ChipTypeA != null && + this.ChipTypeA.Equals(input.ChipTypeA)) + ) && + ( + this.SupportMifare == input.SupportMifare || + (this.SupportMifare != null && + this.SupportMifare.Equals(input.SupportMifare)) + ) && + ( + this.MifareMemory == input.MifareMemory || + (this.MifareMemory != null && + this.MifareMemory.Equals(input.MifareMemory)) + ) && + ( + this.UID == input.UID || + (this.UID != null && + this.UID.Equals(input.UID)) + ) && + ( + this.ATQ_A == input.ATQ_A || + (this.ATQ_A != null && + this.ATQ_A.Equals(input.ATQ_A)) + ) && + ( + this.SAK == input.SAK || + (this.SAK != null && + this.SAK.Equals(input.SAK)) + ) && + ( + this.ATQ_B == input.ATQ_B || + (this.ATQ_B != null && + this.ATQ_B.Equals(input.ATQ_B)) + ) && + ( + this.BitRateS == input.BitRateS || + (this.BitRateS != null && + this.BitRateS.Equals(input.BitRateS)) + ) && + ( + this.BitRateR == input.BitRateR || + (this.BitRateR != null && + this.BitRateR.Equals(input.BitRateR)) + ) && + ( + this.ATR == input.ATR || + (this.ATR != null && + this.ATR.Equals(input.ATR)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RFIDType != null) + hashCode = hashCode * 59 + this.RFIDType.GetHashCode(); + if (this.Baudrate1 != null) + hashCode = hashCode * 59 + this.Baudrate1.GetHashCode(); + if (this.Baudrate2 != null) + hashCode = hashCode * 59 + this.Baudrate2.GetHashCode(); + if (this.Support4 != null) + hashCode = hashCode * 59 + this.Support4.GetHashCode(); + if (this.ChipTypeA != null) + hashCode = hashCode * 59 + this.ChipTypeA.GetHashCode(); + if (this.SupportMifare != null) + hashCode = hashCode * 59 + this.SupportMifare.GetHashCode(); + if (this.MifareMemory != null) + hashCode = hashCode * 59 + this.MifareMemory.GetHashCode(); + if (this.UID != null) + hashCode = hashCode * 59 + this.UID.GetHashCode(); + if (this.ATQ_A != null) + hashCode = hashCode * 59 + this.ATQ_A.GetHashCode(); + if (this.SAK != null) + hashCode = hashCode * 59 + this.SAK.GetHashCode(); + if (this.ATQ_B != null) + hashCode = hashCode * 59 + this.ATQ_B.GetHashCode(); + if (this.BitRateS != null) + hashCode = hashCode * 59 + this.BitRateS.GetHashCode(); + if (this.BitRateR != null) + hashCode = hashCode * 59 + this.BitRateR.GetHashCode(); + if (this.ATR != null) + hashCode = hashCode * 59 + this.ATR.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidCertificateEx.cs b/src/Regula.DocumentReader.WebClient/Model/RfidCertificateEx.cs new file mode 100644 index 0000000..6147683 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidCertificateEx.cs @@ -0,0 +1,446 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure is used to describe the certificate contents used for the digital signature verification of the document security object within the context of the communication session with electronic document. + /// + [DataContract] + public partial class RfidCertificateEx : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Origin + /// + [DataMember(Name="Origin", EmitDefaultValue=true)] + public RfidCertificateOrigin Origin { get; set; } + /// + /// Gets or Sets Type + /// + [DataMember(Name="Type", EmitDefaultValue=true)] + public RfidCertificateType Type { get; set; } + /// + /// Gets or Sets PAStatus + /// + [DataMember(Name="PA_Status", EmitDefaultValue=true)] + public RFIDErrorCodes PAStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidCertificateEx() { } + /// + /// Initializes a new instance of the class. + /// + /// Version of Certificate ASN.1 structure (required). + /// Certificate serial number. Base64 encoded. (required). + /// Certificate digital signature algorithm identifier (OID); String in the format S1 (S2), where S1 – algorithm name, S2 – identifier (OID string). (required). + /// issuer (required). + /// validity (required). + /// subject (required). + /// Certificate public key algorithm identifier (OID); String in the format S1 (S2), where S1 – algorithm name, S2 – identifier (OID string). (required). + /// List of the certificate extensions (required). + /// List of remarks arisen during the analysis of the certificate data structure and its validity verification. (required). + /// origin (required). + /// type (required). + /// fileName (required). + /// pAStatus (required). + public RfidCertificateEx(decimal version = default(decimal), string serialNumber = default(string), string signatureAlgorithm = default(string), RfidDistinguishedName issuer = default(RfidDistinguishedName), RfidValidity validity = default(RfidValidity), RfidDistinguishedName subject = default(RfidDistinguishedName), string subjectPKAlgorithm = default(string), List extensions = default(List), List notifications = default(List), RfidCertificateOrigin origin = default(RfidCertificateOrigin), RfidCertificateType type = default(RfidCertificateType), TrfFtString fileName = default(TrfFtString), RFIDErrorCodes pAStatus = default(RFIDErrorCodes)) + { + // to ensure "version" is required (not null) + if (version == null) + { + throw new InvalidDataException("version is a required property for RfidCertificateEx and cannot be null"); + } + else + { + this.Version = version; + } + + // to ensure "serialNumber" is required (not null) + if (serialNumber == null) + { + throw new InvalidDataException("serialNumber is a required property for RfidCertificateEx and cannot be null"); + } + else + { + this.SerialNumber = serialNumber; + } + + // to ensure "signatureAlgorithm" is required (not null) + if (signatureAlgorithm == null) + { + throw new InvalidDataException("signatureAlgorithm is a required property for RfidCertificateEx and cannot be null"); + } + else + { + this.SignatureAlgorithm = signatureAlgorithm; + } + + // to ensure "issuer" is required (not null) + if (issuer == null) + { + throw new InvalidDataException("issuer is a required property for RfidCertificateEx and cannot be null"); + } + else + { + this.Issuer = issuer; + } + + // to ensure "validity" is required (not null) + if (validity == null) + { + throw new InvalidDataException("validity is a required property for RfidCertificateEx and cannot be null"); + } + else + { + this.Validity = validity; + } + + // to ensure "subject" is required (not null) + if (subject == null) + { + throw new InvalidDataException("subject is a required property for RfidCertificateEx and cannot be null"); + } + else + { + this.Subject = subject; + } + + // to ensure "subjectPKAlgorithm" is required (not null) + if (subjectPKAlgorithm == null) + { + throw new InvalidDataException("subjectPKAlgorithm is a required property for RfidCertificateEx and cannot be null"); + } + else + { + this.SubjectPKAlgorithm = subjectPKAlgorithm; + } + + // to ensure "extensions" is required (not null) + if (extensions == null) + { + throw new InvalidDataException("extensions is a required property for RfidCertificateEx and cannot be null"); + } + else + { + this.Extensions = extensions; + } + + // to ensure "notifications" is required (not null) + if (notifications == null) + { + throw new InvalidDataException("notifications is a required property for RfidCertificateEx and cannot be null"); + } + else + { + this.Notifications = notifications; + } + + // to ensure "origin" is required (not null) + if (origin == null) + { + throw new InvalidDataException("origin is a required property for RfidCertificateEx and cannot be null"); + } + else + { + this.Origin = origin; + } + + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for RfidCertificateEx and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "fileName" is required (not null) + if (fileName == null) + { + throw new InvalidDataException("fileName is a required property for RfidCertificateEx and cannot be null"); + } + else + { + this.FileName = fileName; + } + + // to ensure "pAStatus" is required (not null) + if (pAStatus == null) + { + throw new InvalidDataException("pAStatus is a required property for RfidCertificateEx and cannot be null"); + } + else + { + this.PAStatus = pAStatus; + } + + } + + /// + /// Version of Certificate ASN.1 structure + /// + /// Version of Certificate ASN.1 structure + [DataMember(Name="Version", EmitDefaultValue=true)] + public decimal Version { get; set; } + + /// + /// Certificate serial number. Base64 encoded. + /// + /// Certificate serial number. Base64 encoded. + [DataMember(Name="SerialNumber", EmitDefaultValue=true)] + public string SerialNumber { get; set; } + + /// + /// Certificate digital signature algorithm identifier (OID); String in the format S1 (S2), where S1 – algorithm name, S2 – identifier (OID string). + /// + /// Certificate digital signature algorithm identifier (OID); String in the format S1 (S2), where S1 – algorithm name, S2 – identifier (OID string). + [DataMember(Name="SignatureAlgorithm", EmitDefaultValue=true)] + public string SignatureAlgorithm { get; set; } + + /// + /// Gets or Sets Issuer + /// + [DataMember(Name="Issuer", EmitDefaultValue=true)] + public RfidDistinguishedName Issuer { get; set; } + + /// + /// Gets or Sets Validity + /// + [DataMember(Name="Validity", EmitDefaultValue=true)] + public RfidValidity Validity { get; set; } + + /// + /// Gets or Sets Subject + /// + [DataMember(Name="Subject", EmitDefaultValue=true)] + public RfidDistinguishedName Subject { get; set; } + + /// + /// Certificate public key algorithm identifier (OID); String in the format S1 (S2), where S1 – algorithm name, S2 – identifier (OID string). + /// + /// Certificate public key algorithm identifier (OID); String in the format S1 (S2), where S1 – algorithm name, S2 – identifier (OID string). + [DataMember(Name="SubjectPKAlgorithm", EmitDefaultValue=true)] + public string SubjectPKAlgorithm { get; set; } + + /// + /// List of the certificate extensions + /// + /// List of the certificate extensions + [DataMember(Name="Extensions", EmitDefaultValue=true)] + public List Extensions { get; set; } + + /// + /// List of remarks arisen during the analysis of the certificate data structure and its validity verification. + /// + /// List of remarks arisen during the analysis of the certificate data structure and its validity verification. + [DataMember(Name="Notifications", EmitDefaultValue=true)] + public List Notifications { get; set; } + + + + /// + /// Gets or Sets FileName + /// + [DataMember(Name="FileName", EmitDefaultValue=true)] + public TrfFtString FileName { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidCertificateEx {\n"); + sb.Append(" Version: ").Append(Version).Append("\n"); + sb.Append(" SerialNumber: ").Append(SerialNumber).Append("\n"); + sb.Append(" SignatureAlgorithm: ").Append(SignatureAlgorithm).Append("\n"); + sb.Append(" Issuer: ").Append(Issuer).Append("\n"); + sb.Append(" Validity: ").Append(Validity).Append("\n"); + sb.Append(" Subject: ").Append(Subject).Append("\n"); + sb.Append(" SubjectPKAlgorithm: ").Append(SubjectPKAlgorithm).Append("\n"); + sb.Append(" Extensions: ").Append(Extensions).Append("\n"); + sb.Append(" Notifications: ").Append(Notifications).Append("\n"); + sb.Append(" Origin: ").Append(Origin).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" FileName: ").Append(FileName).Append("\n"); + sb.Append(" PAStatus: ").Append(PAStatus).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidCertificateEx); + } + + /// + /// Returns true if RfidCertificateEx instances are equal + /// + /// Instance of RfidCertificateEx to be compared + /// Boolean + public bool Equals(RfidCertificateEx input) + { + if (input == null) + return false; + + return + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.SerialNumber == input.SerialNumber || + (this.SerialNumber != null && + this.SerialNumber.Equals(input.SerialNumber)) + ) && + ( + this.SignatureAlgorithm == input.SignatureAlgorithm || + (this.SignatureAlgorithm != null && + this.SignatureAlgorithm.Equals(input.SignatureAlgorithm)) + ) && + ( + this.Issuer == input.Issuer || + (this.Issuer != null && + this.Issuer.Equals(input.Issuer)) + ) && + ( + this.Validity == input.Validity || + (this.Validity != null && + this.Validity.Equals(input.Validity)) + ) && + ( + this.Subject == input.Subject || + (this.Subject != null && + this.Subject.Equals(input.Subject)) + ) && + ( + this.SubjectPKAlgorithm == input.SubjectPKAlgorithm || + (this.SubjectPKAlgorithm != null && + this.SubjectPKAlgorithm.Equals(input.SubjectPKAlgorithm)) + ) && + ( + this.Extensions == input.Extensions || + this.Extensions != null && + input.Extensions != null && + this.Extensions.SequenceEqual(input.Extensions) + ) && + ( + this.Notifications == input.Notifications || + this.Notifications != null && + input.Notifications != null && + this.Notifications.SequenceEqual(input.Notifications) + ) && + ( + this.Origin == input.Origin || + (this.Origin != null && + this.Origin.Equals(input.Origin)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.FileName == input.FileName || + (this.FileName != null && + this.FileName.Equals(input.FileName)) + ) && + ( + this.PAStatus == input.PAStatus || + (this.PAStatus != null && + this.PAStatus.Equals(input.PAStatus)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.SerialNumber != null) + hashCode = hashCode * 59 + this.SerialNumber.GetHashCode(); + if (this.SignatureAlgorithm != null) + hashCode = hashCode * 59 + this.SignatureAlgorithm.GetHashCode(); + if (this.Issuer != null) + hashCode = hashCode * 59 + this.Issuer.GetHashCode(); + if (this.Validity != null) + hashCode = hashCode * 59 + this.Validity.GetHashCode(); + if (this.Subject != null) + hashCode = hashCode * 59 + this.Subject.GetHashCode(); + if (this.SubjectPKAlgorithm != null) + hashCode = hashCode * 59 + this.SubjectPKAlgorithm.GetHashCode(); + if (this.Extensions != null) + hashCode = hashCode * 59 + this.Extensions.GetHashCode(); + if (this.Notifications != null) + hashCode = hashCode * 59 + this.Notifications.GetHashCode(); + if (this.Origin != null) + hashCode = hashCode * 59 + this.Origin.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.FileName != null) + hashCode = hashCode * 59 + this.FileName.GetHashCode(); + if (this.PAStatus != null) + hashCode = hashCode * 59 + this.PAStatus.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidCertificateOrigin.cs b/src/Regula.DocumentReader.WebClient/Model/RfidCertificateOrigin.cs new file mode 100644 index 0000000..b655354 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidCertificateOrigin.cs @@ -0,0 +1,92 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration contains a set of constants that define the source of certificate used in the procedure of document security object digital signature verification + /// + /// Enumeration contains a set of constants that define the source of certificate used in the procedure of document security object digital signature verification + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RfidCertificateOrigin + { + /// + /// Enum UNDEFINED for value: 0 + /// + [EnumMember(Value = "0")] + UNDEFINED = 1, + + /// + /// Enum PKD for value: 1 + /// + [EnumMember(Value = "1")] + PKD = 2, + + /// + /// Enum SECURITY_OBJECT for value: 2 + /// + [EnumMember(Value = "2")] + SECURITY_OBJECT = 3, + + /// + /// Enum USER_DEFINED for value: 3 + /// + [EnumMember(Value = "3")] + USER_DEFINED = 4, + + /// + /// Enum MASTER_LIST_PKD for value: 4 + /// + [EnumMember(Value = "4")] + MASTER_LIST_PKD = 5, + + /// + /// Enum MASTER_LIST_SO for value: 5 + /// + [EnumMember(Value = "5")] + MASTER_LIST_SO = 6, + + /// + /// Enum DEFECT_LIST_SO for value: 6 + /// + [EnumMember(Value = "6")] + DEFECT_LIST_SO = 7, + + /// + /// Enum DEVIATION_LIST_SO for value: 7 + /// + [EnumMember(Value = "7")] + DEVIATION_LIST_SO = 8, + + /// + /// Enum BLACK_LIST_SO for value: 8 + /// + [EnumMember(Value = "8")] + BLACK_LIST_SO = 9 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/RfidCertificateType.cs b/src/Regula.DocumentReader.WebClient/Model/RfidCertificateType.cs new file mode 100644 index 0000000..6a84732 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidCertificateType.cs @@ -0,0 +1,86 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration contains a set of constants that define the type of certificate used in the procedure of document security object digital signature verification + /// + /// Enumeration contains a set of constants that define the type of certificate used in the procedure of document security object digital signature verification + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RfidCertificateType + { + /// + /// Enum UNDEFINED for value: 0 + /// + [EnumMember(Value = "0")] + UNDEFINED = 1, + + /// + /// Enum CSCA for value: 1 + /// + [EnumMember(Value = "1")] + CSCA = 2, + + /// + /// Enum CSCA_LINK for value: 2 + /// + [EnumMember(Value = "2")] + CSCA_LINK = 3, + + /// + /// Enum DS for value: 3 + /// + [EnumMember(Value = "3")] + DS = 4, + + /// + /// Enum MLS for value: 4 + /// + [EnumMember(Value = "4")] + MLS = 5, + + /// + /// Enum DEV_LS for value: 5 + /// + [EnumMember(Value = "5")] + DEV_LS = 6, + + /// + /// Enum DEF_LS for value: 6 + /// + [EnumMember(Value = "6")] + DEF_LS = 7, + + /// + /// Enum BLS for value: 7 + /// + [EnumMember(Value = "7")] + BLS = 8 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/RfidDG1.cs b/src/Regula.DocumentReader.WebClient/Model/RfidDG1.cs new file mode 100644 index 0000000..7a23338 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidDG1.cs @@ -0,0 +1,527 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure used to store the contents of EF.DG1 informational data group of ePassport application – document MRZ data + /// + [DataContract] + public partial class RfidDG1 : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Type + /// + [DataMember(Name="Type", EmitDefaultValue=true)] + public RfidDataGroupTypeTag Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidDG1() { } + /// + /// Initializes a new instance of the class. + /// + /// type (required). + /// documentID (required). + /// Symbolic code of document type (required). + /// Symbolic code of document issuing state (required). + /// DO’s name and surname (required). + /// Document number (required). + /// Check digit of document number (required). + /// Symbolic code of DO’s nationality (required). + /// DO’s date of birth (required). + /// Check digit of DO’s date of birth (required). + /// DO’s sex (required). + /// Term of validity of the document (required). + /// Check digit of term of validity of the document (required). + /// DO’s personal number or other additional data (required). + /// Check digit of additional data (required). + /// General check digit (required). + public RfidDG1(RfidDataGroupTypeTag type = default(RfidDataGroupTypeTag), int documentID = default(int), string documentType = default(string), string state = default(string), string holder = default(string), string documentNumber = default(string), decimal checkDigitDocumentNumber = default(decimal), string nationality = default(string), string birthday = default(string), decimal checkDigitBirthday = default(decimal), string sex = default(string), string expiryDate = default(string), decimal checkDigitExpiryDate = default(decimal), string optionalData = default(string), decimal checkDigitOptionalData = default(decimal), decimal checkDigitComposite = default(decimal)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for RfidDG1 and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "documentID" is required (not null) + if (documentID == null) + { + throw new InvalidDataException("documentID is a required property for RfidDG1 and cannot be null"); + } + else + { + this.DocumentID = documentID; + } + + // to ensure "documentType" is required (not null) + if (documentType == null) + { + throw new InvalidDataException("documentType is a required property for RfidDG1 and cannot be null"); + } + else + { + this.DocumentType = documentType; + } + + // to ensure "state" is required (not null) + if (state == null) + { + throw new InvalidDataException("state is a required property for RfidDG1 and cannot be null"); + } + else + { + this.State = state; + } + + // to ensure "holder" is required (not null) + if (holder == null) + { + throw new InvalidDataException("holder is a required property for RfidDG1 and cannot be null"); + } + else + { + this.Holder = holder; + } + + // to ensure "documentNumber" is required (not null) + if (documentNumber == null) + { + throw new InvalidDataException("documentNumber is a required property for RfidDG1 and cannot be null"); + } + else + { + this.DocumentNumber = documentNumber; + } + + // to ensure "checkDigitDocumentNumber" is required (not null) + if (checkDigitDocumentNumber == null) + { + throw new InvalidDataException("checkDigitDocumentNumber is a required property for RfidDG1 and cannot be null"); + } + else + { + this.CheckDigitDocumentNumber = checkDigitDocumentNumber; + } + + // to ensure "nationality" is required (not null) + if (nationality == null) + { + throw new InvalidDataException("nationality is a required property for RfidDG1 and cannot be null"); + } + else + { + this.Nationality = nationality; + } + + // to ensure "birthday" is required (not null) + if (birthday == null) + { + throw new InvalidDataException("birthday is a required property for RfidDG1 and cannot be null"); + } + else + { + this.Birthday = birthday; + } + + // to ensure "checkDigitBirthday" is required (not null) + if (checkDigitBirthday == null) + { + throw new InvalidDataException("checkDigitBirthday is a required property for RfidDG1 and cannot be null"); + } + else + { + this.CheckDigitBirthday = checkDigitBirthday; + } + + // to ensure "sex" is required (not null) + if (sex == null) + { + throw new InvalidDataException("sex is a required property for RfidDG1 and cannot be null"); + } + else + { + this.Sex = sex; + } + + // to ensure "expiryDate" is required (not null) + if (expiryDate == null) + { + throw new InvalidDataException("expiryDate is a required property for RfidDG1 and cannot be null"); + } + else + { + this.ExpiryDate = expiryDate; + } + + // to ensure "checkDigitExpiryDate" is required (not null) + if (checkDigitExpiryDate == null) + { + throw new InvalidDataException("checkDigitExpiryDate is a required property for RfidDG1 and cannot be null"); + } + else + { + this.CheckDigitExpiryDate = checkDigitExpiryDate; + } + + // to ensure "optionalData" is required (not null) + if (optionalData == null) + { + throw new InvalidDataException("optionalData is a required property for RfidDG1 and cannot be null"); + } + else + { + this.OptionalData = optionalData; + } + + // to ensure "checkDigitOptionalData" is required (not null) + if (checkDigitOptionalData == null) + { + throw new InvalidDataException("checkDigitOptionalData is a required property for RfidDG1 and cannot be null"); + } + else + { + this.CheckDigitOptionalData = checkDigitOptionalData; + } + + // to ensure "checkDigitComposite" is required (not null) + if (checkDigitComposite == null) + { + throw new InvalidDataException("checkDigitComposite is a required property for RfidDG1 and cannot be null"); + } + else + { + this.CheckDigitComposite = checkDigitComposite; + } + + } + + + /// + /// Gets or Sets DocumentID + /// + [DataMember(Name="DocumentID", EmitDefaultValue=true)] + public int DocumentID { get; set; } + + /// + /// Symbolic code of document type + /// + /// Symbolic code of document type + [DataMember(Name="DocumentType", EmitDefaultValue=true)] + public string DocumentType { get; set; } + + /// + /// Symbolic code of document issuing state + /// + /// Symbolic code of document issuing state + [DataMember(Name="State", EmitDefaultValue=true)] + public string State { get; set; } + + /// + /// DO’s name and surname + /// + /// DO’s name and surname + [DataMember(Name="Holder", EmitDefaultValue=true)] + public string Holder { get; set; } + + /// + /// Document number + /// + /// Document number + [DataMember(Name="DocumentNumber", EmitDefaultValue=true)] + public string DocumentNumber { get; set; } + + /// + /// Check digit of document number + /// + /// Check digit of document number + [DataMember(Name="CheckDigitDocumentNumber", EmitDefaultValue=true)] + public decimal CheckDigitDocumentNumber { get; set; } + + /// + /// Symbolic code of DO’s nationality + /// + /// Symbolic code of DO’s nationality + [DataMember(Name="Nationality", EmitDefaultValue=true)] + public string Nationality { get; set; } + + /// + /// DO’s date of birth + /// + /// DO’s date of birth + [DataMember(Name="Birthday", EmitDefaultValue=true)] + public string Birthday { get; set; } + + /// + /// Check digit of DO’s date of birth + /// + /// Check digit of DO’s date of birth + [DataMember(Name="CheckDigitBirthday", EmitDefaultValue=true)] + public decimal CheckDigitBirthday { get; set; } + + /// + /// DO’s sex + /// + /// DO’s sex + [DataMember(Name="Sex", EmitDefaultValue=true)] + public string Sex { get; set; } + + /// + /// Term of validity of the document + /// + /// Term of validity of the document + [DataMember(Name="ExpiryDate", EmitDefaultValue=true)] + public string ExpiryDate { get; set; } + + /// + /// Check digit of term of validity of the document + /// + /// Check digit of term of validity of the document + [DataMember(Name="CheckDigitExpiryDate", EmitDefaultValue=true)] + public decimal CheckDigitExpiryDate { get; set; } + + /// + /// DO’s personal number or other additional data + /// + /// DO’s personal number or other additional data + [DataMember(Name="OptionalData", EmitDefaultValue=true)] + public string OptionalData { get; set; } + + /// + /// Check digit of additional data + /// + /// Check digit of additional data + [DataMember(Name="CheckDigitOptionalData", EmitDefaultValue=true)] + public decimal CheckDigitOptionalData { get; set; } + + /// + /// General check digit + /// + /// General check digit + [DataMember(Name="CheckDigitComposite", EmitDefaultValue=true)] + public decimal CheckDigitComposite { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidDG1 {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" DocumentID: ").Append(DocumentID).Append("\n"); + sb.Append(" DocumentType: ").Append(DocumentType).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" Holder: ").Append(Holder).Append("\n"); + sb.Append(" DocumentNumber: ").Append(DocumentNumber).Append("\n"); + sb.Append(" CheckDigitDocumentNumber: ").Append(CheckDigitDocumentNumber).Append("\n"); + sb.Append(" Nationality: ").Append(Nationality).Append("\n"); + sb.Append(" Birthday: ").Append(Birthday).Append("\n"); + sb.Append(" CheckDigitBirthday: ").Append(CheckDigitBirthday).Append("\n"); + sb.Append(" Sex: ").Append(Sex).Append("\n"); + sb.Append(" ExpiryDate: ").Append(ExpiryDate).Append("\n"); + sb.Append(" CheckDigitExpiryDate: ").Append(CheckDigitExpiryDate).Append("\n"); + sb.Append(" OptionalData: ").Append(OptionalData).Append("\n"); + sb.Append(" CheckDigitOptionalData: ").Append(CheckDigitOptionalData).Append("\n"); + sb.Append(" CheckDigitComposite: ").Append(CheckDigitComposite).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidDG1); + } + + /// + /// Returns true if RfidDG1 instances are equal + /// + /// Instance of RfidDG1 to be compared + /// Boolean + public bool Equals(RfidDG1 input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.DocumentID == input.DocumentID || + (this.DocumentID != null && + this.DocumentID.Equals(input.DocumentID)) + ) && + ( + this.DocumentType == input.DocumentType || + (this.DocumentType != null && + this.DocumentType.Equals(input.DocumentType)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.Holder == input.Holder || + (this.Holder != null && + this.Holder.Equals(input.Holder)) + ) && + ( + this.DocumentNumber == input.DocumentNumber || + (this.DocumentNumber != null && + this.DocumentNumber.Equals(input.DocumentNumber)) + ) && + ( + this.CheckDigitDocumentNumber == input.CheckDigitDocumentNumber || + (this.CheckDigitDocumentNumber != null && + this.CheckDigitDocumentNumber.Equals(input.CheckDigitDocumentNumber)) + ) && + ( + this.Nationality == input.Nationality || + (this.Nationality != null && + this.Nationality.Equals(input.Nationality)) + ) && + ( + this.Birthday == input.Birthday || + (this.Birthday != null && + this.Birthday.Equals(input.Birthday)) + ) && + ( + this.CheckDigitBirthday == input.CheckDigitBirthday || + (this.CheckDigitBirthday != null && + this.CheckDigitBirthday.Equals(input.CheckDigitBirthday)) + ) && + ( + this.Sex == input.Sex || + (this.Sex != null && + this.Sex.Equals(input.Sex)) + ) && + ( + this.ExpiryDate == input.ExpiryDate || + (this.ExpiryDate != null && + this.ExpiryDate.Equals(input.ExpiryDate)) + ) && + ( + this.CheckDigitExpiryDate == input.CheckDigitExpiryDate || + (this.CheckDigitExpiryDate != null && + this.CheckDigitExpiryDate.Equals(input.CheckDigitExpiryDate)) + ) && + ( + this.OptionalData == input.OptionalData || + (this.OptionalData != null && + this.OptionalData.Equals(input.OptionalData)) + ) && + ( + this.CheckDigitOptionalData == input.CheckDigitOptionalData || + (this.CheckDigitOptionalData != null && + this.CheckDigitOptionalData.Equals(input.CheckDigitOptionalData)) + ) && + ( + this.CheckDigitComposite == input.CheckDigitComposite || + (this.CheckDigitComposite != null && + this.CheckDigitComposite.Equals(input.CheckDigitComposite)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.DocumentID != null) + hashCode = hashCode * 59 + this.DocumentID.GetHashCode(); + if (this.DocumentType != null) + hashCode = hashCode * 59 + this.DocumentType.GetHashCode(); + if (this.State != null) + hashCode = hashCode * 59 + this.State.GetHashCode(); + if (this.Holder != null) + hashCode = hashCode * 59 + this.Holder.GetHashCode(); + if (this.DocumentNumber != null) + hashCode = hashCode * 59 + this.DocumentNumber.GetHashCode(); + if (this.CheckDigitDocumentNumber != null) + hashCode = hashCode * 59 + this.CheckDigitDocumentNumber.GetHashCode(); + if (this.Nationality != null) + hashCode = hashCode * 59 + this.Nationality.GetHashCode(); + if (this.Birthday != null) + hashCode = hashCode * 59 + this.Birthday.GetHashCode(); + if (this.CheckDigitBirthday != null) + hashCode = hashCode * 59 + this.CheckDigitBirthday.GetHashCode(); + if (this.Sex != null) + hashCode = hashCode * 59 + this.Sex.GetHashCode(); + if (this.ExpiryDate != null) + hashCode = hashCode * 59 + this.ExpiryDate.GetHashCode(); + if (this.CheckDigitExpiryDate != null) + hashCode = hashCode * 59 + this.CheckDigitExpiryDate.GetHashCode(); + if (this.OptionalData != null) + hashCode = hashCode * 59 + this.OptionalData.GetHashCode(); + if (this.CheckDigitOptionalData != null) + hashCode = hashCode * 59 + this.CheckDigitOptionalData.GetHashCode(); + if (this.CheckDigitComposite != null) + hashCode = hashCode * 59 + this.CheckDigitComposite.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidDataFile.cs b/src/Regula.DocumentReader.WebClient/Model/RfidDataFile.cs new file mode 100644 index 0000000..e9398fc --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidDataFile.cs @@ -0,0 +1,355 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure is used to describe the contents of a single file of the LDS of electronic document and the analysis of its contents within the context of the communication session with electronic document + /// + [DataContract] + public partial class RfidDataFile : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Type + /// + [DataMember(Name="Type", EmitDefaultValue=true)] + public RfidDataFileType Type { get; set; } + /// + /// Gets or Sets ReadingStatus + /// + [DataMember(Name="ReadingStatus", EmitDefaultValue=true)] + public RFIDErrorCodes ReadingStatus { get; set; } + /// + /// Gets or Sets PAStatus + /// + [DataMember(Name="PA_Status", EmitDefaultValue=true)] + public RFIDErrorCodes PAStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidDataFile() { } + /// + /// Initializes a new instance of the class. + /// + /// File identifier. Each byte of FileID represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. 01 1E). + /// type (required). + /// fileData. + /// readingStatus (required). + /// Time of reading, milliseconds (required). + /// pAStatus (required). + /// List of remarks arisen when reading data from the memory of the chip and analysing their ASN.1-structure. (required). + /// List of document text fields formed on the basis of the file contents (required). + /// List of document graphic fields formed on the basis of the file contents (required). + /// List of the original binary representation of graphic document fields formed on the basis of the file contents (required). + public RfidDataFile(string fileID = default(string), RfidDataFileType type = default(RfidDataFileType), TrfFtBytes fileData = default(TrfFtBytes), RFIDErrorCodes readingStatus = default(RFIDErrorCodes), decimal readingTime = default(decimal), RFIDErrorCodes pAStatus = default(RFIDErrorCodes), List notifications = default(List), List docFieldsText = default(List), List docFieldsGraphics = default(List), List docFieldsOriginals = default(List)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for RfidDataFile and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "readingStatus" is required (not null) + if (readingStatus == null) + { + throw new InvalidDataException("readingStatus is a required property for RfidDataFile and cannot be null"); + } + else + { + this.ReadingStatus = readingStatus; + } + + // to ensure "readingTime" is required (not null) + if (readingTime == null) + { + throw new InvalidDataException("readingTime is a required property for RfidDataFile and cannot be null"); + } + else + { + this.ReadingTime = readingTime; + } + + // to ensure "pAStatus" is required (not null) + if (pAStatus == null) + { + throw new InvalidDataException("pAStatus is a required property for RfidDataFile and cannot be null"); + } + else + { + this.PAStatus = pAStatus; + } + + // to ensure "notifications" is required (not null) + if (notifications == null) + { + throw new InvalidDataException("notifications is a required property for RfidDataFile and cannot be null"); + } + else + { + this.Notifications = notifications; + } + + // to ensure "docFieldsText" is required (not null) + if (docFieldsText == null) + { + throw new InvalidDataException("docFieldsText is a required property for RfidDataFile and cannot be null"); + } + else + { + this.DocFieldsText = docFieldsText; + } + + // to ensure "docFieldsGraphics" is required (not null) + if (docFieldsGraphics == null) + { + throw new InvalidDataException("docFieldsGraphics is a required property for RfidDataFile and cannot be null"); + } + else + { + this.DocFieldsGraphics = docFieldsGraphics; + } + + // to ensure "docFieldsOriginals" is required (not null) + if (docFieldsOriginals == null) + { + throw new InvalidDataException("docFieldsOriginals is a required property for RfidDataFile and cannot be null"); + } + else + { + this.DocFieldsOriginals = docFieldsOriginals; + } + + this.FileID = fileID; + this.FileData = fileData; + } + + /// + /// File identifier. Each byte of FileID represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. 01 1E) + /// + /// File identifier. Each byte of FileID represented by its hexadecimal value. The individual bytes are separated by spaces (e.g. 01 1E) + [DataMember(Name="FileID", EmitDefaultValue=false)] + public string FileID { get; set; } + + + /// + /// Gets or Sets FileData + /// + [DataMember(Name="FileData", EmitDefaultValue=false)] + public TrfFtBytes FileData { get; set; } + + + /// + /// Time of reading, milliseconds + /// + /// Time of reading, milliseconds + [DataMember(Name="ReadingTime", EmitDefaultValue=true)] + public decimal ReadingTime { get; set; } + + + /// + /// List of remarks arisen when reading data from the memory of the chip and analysing their ASN.1-structure. + /// + /// List of remarks arisen when reading data from the memory of the chip and analysing their ASN.1-structure. + [DataMember(Name="Notifications", EmitDefaultValue=true)] + public List Notifications { get; set; } + + /// + /// List of document text fields formed on the basis of the file contents + /// + /// List of document text fields formed on the basis of the file contents + [DataMember(Name="DocFields_Text", EmitDefaultValue=true)] + public List DocFieldsText { get; set; } + + /// + /// List of document graphic fields formed on the basis of the file contents + /// + /// List of document graphic fields formed on the basis of the file contents + [DataMember(Name="DocFields_Graphics", EmitDefaultValue=true)] + public List DocFieldsGraphics { get; set; } + + /// + /// List of the original binary representation of graphic document fields formed on the basis of the file contents + /// + /// List of the original binary representation of graphic document fields formed on the basis of the file contents + [DataMember(Name="DocFields_Originals", EmitDefaultValue=true)] + public List DocFieldsOriginals { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidDataFile {\n"); + sb.Append(" FileID: ").Append(FileID).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" FileData: ").Append(FileData).Append("\n"); + sb.Append(" ReadingStatus: ").Append(ReadingStatus).Append("\n"); + sb.Append(" ReadingTime: ").Append(ReadingTime).Append("\n"); + sb.Append(" PAStatus: ").Append(PAStatus).Append("\n"); + sb.Append(" Notifications: ").Append(Notifications).Append("\n"); + sb.Append(" DocFieldsText: ").Append(DocFieldsText).Append("\n"); + sb.Append(" DocFieldsGraphics: ").Append(DocFieldsGraphics).Append("\n"); + sb.Append(" DocFieldsOriginals: ").Append(DocFieldsOriginals).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidDataFile); + } + + /// + /// Returns true if RfidDataFile instances are equal + /// + /// Instance of RfidDataFile to be compared + /// Boolean + public bool Equals(RfidDataFile input) + { + if (input == null) + return false; + + return + ( + this.FileID == input.FileID || + (this.FileID != null && + this.FileID.Equals(input.FileID)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.FileData == input.FileData || + (this.FileData != null && + this.FileData.Equals(input.FileData)) + ) && + ( + this.ReadingStatus == input.ReadingStatus || + (this.ReadingStatus != null && + this.ReadingStatus.Equals(input.ReadingStatus)) + ) && + ( + this.ReadingTime == input.ReadingTime || + (this.ReadingTime != null && + this.ReadingTime.Equals(input.ReadingTime)) + ) && + ( + this.PAStatus == input.PAStatus || + (this.PAStatus != null && + this.PAStatus.Equals(input.PAStatus)) + ) && + ( + this.Notifications == input.Notifications || + this.Notifications != null && + input.Notifications != null && + this.Notifications.SequenceEqual(input.Notifications) + ) && + ( + this.DocFieldsText == input.DocFieldsText || + this.DocFieldsText != null && + input.DocFieldsText != null && + this.DocFieldsText.SequenceEqual(input.DocFieldsText) + ) && + ( + this.DocFieldsGraphics == input.DocFieldsGraphics || + this.DocFieldsGraphics != null && + input.DocFieldsGraphics != null && + this.DocFieldsGraphics.SequenceEqual(input.DocFieldsGraphics) + ) && + ( + this.DocFieldsOriginals == input.DocFieldsOriginals || + this.DocFieldsOriginals != null && + input.DocFieldsOriginals != null && + this.DocFieldsOriginals.SequenceEqual(input.DocFieldsOriginals) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.FileID != null) + hashCode = hashCode * 59 + this.FileID.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.FileData != null) + hashCode = hashCode * 59 + this.FileData.GetHashCode(); + if (this.ReadingStatus != null) + hashCode = hashCode * 59 + this.ReadingStatus.GetHashCode(); + if (this.ReadingTime != null) + hashCode = hashCode * 59 + this.ReadingTime.GetHashCode(); + if (this.PAStatus != null) + hashCode = hashCode * 59 + this.PAStatus.GetHashCode(); + if (this.Notifications != null) + hashCode = hashCode * 59 + this.Notifications.GetHashCode(); + if (this.DocFieldsText != null) + hashCode = hashCode * 59 + this.DocFieldsText.GetHashCode(); + if (this.DocFieldsGraphics != null) + hashCode = hashCode * 59 + this.DocFieldsGraphics.GetHashCode(); + if (this.DocFieldsOriginals != null) + hashCode = hashCode * 59 + this.DocFieldsOriginals.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidDataFileType.cs b/src/Regula.DocumentReader.WebClient/Model/RfidDataFileType.cs new file mode 100644 index 0000000..6063980 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidDataFileType.cs @@ -0,0 +1,590 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration contains a set of constants that define the file type (or logical belonging of the data object) within the context of the communication session with electronic document + /// + /// Enumeration contains a set of constants that define the file type (or logical belonging of the data object) within the context of the communication session with electronic document + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RfidDataFileType + { + /// + /// Enum UNSPECIFIED for value: 0 + /// + [EnumMember(Value = "0")] + UNSPECIFIED = 1, + + /// + /// Enum PASSPORT_DG1 for value: 1 + /// + [EnumMember(Value = "1")] + PASSPORT_DG1 = 2, + + /// + /// Enum PASSPORT_DG2 for value: 2 + /// + [EnumMember(Value = "2")] + PASSPORT_DG2 = 3, + + /// + /// Enum PASSPORT_DG3 for value: 3 + /// + [EnumMember(Value = "3")] + PASSPORT_DG3 = 4, + + /// + /// Enum PASSPORT_DG4 for value: 4 + /// + [EnumMember(Value = "4")] + PASSPORT_DG4 = 5, + + /// + /// Enum PASSPORT_DG5 for value: 5 + /// + [EnumMember(Value = "5")] + PASSPORT_DG5 = 6, + + /// + /// Enum PASSPORT_DG6 for value: 6 + /// + [EnumMember(Value = "6")] + PASSPORT_DG6 = 7, + + /// + /// Enum PASSPORT_DG7 for value: 7 + /// + [EnumMember(Value = "7")] + PASSPORT_DG7 = 8, + + /// + /// Enum PASSPORT_DG8 for value: 8 + /// + [EnumMember(Value = "8")] + PASSPORT_DG8 = 9, + + /// + /// Enum PASSPORT_DG9 for value: 9 + /// + [EnumMember(Value = "9")] + PASSPORT_DG9 = 10, + + /// + /// Enum PASSPORT_DG10 for value: 10 + /// + [EnumMember(Value = "10")] + PASSPORT_DG10 = 11, + + /// + /// Enum PASSPORT_DG11 for value: 11 + /// + [EnumMember(Value = "11")] + PASSPORT_DG11 = 12, + + /// + /// Enum PASSPORT_DG12 for value: 12 + /// + [EnumMember(Value = "12")] + PASSPORT_DG12 = 13, + + /// + /// Enum PASSPORT_DG13 for value: 13 + /// + [EnumMember(Value = "13")] + PASSPORT_DG13 = 14, + + /// + /// Enum PASSPORT_DG14 for value: 14 + /// + [EnumMember(Value = "14")] + PASSPORT_DG14 = 15, + + /// + /// Enum PASSPORT_DG15 for value: 15 + /// + [EnumMember(Value = "15")] + PASSPORT_DG15 = 16, + + /// + /// Enum PASSPORT_DG16 for value: 16 + /// + [EnumMember(Value = "16")] + PASSPORT_DG16 = 17, + + /// + /// Enum PASSPORT_DG17 for value: 17 + /// + [EnumMember(Value = "17")] + PASSPORT_DG17 = 18, + + /// + /// Enum PASSPORT_DG18 for value: 18 + /// + [EnumMember(Value = "18")] + PASSPORT_DG18 = 19, + + /// + /// Enum PASSPORT_DG19 for value: 19 + /// + [EnumMember(Value = "19")] + PASSPORT_DG19 = 20, + + /// + /// Enum PASSPORT_DG20 for value: 20 + /// + [EnumMember(Value = "20")] + PASSPORT_DG20 = 21, + + /// + /// Enum PASSPORT_SOD for value: 21 + /// + [EnumMember(Value = "21")] + PASSPORT_SOD = 22, + + /// + /// Enum PASSPORT_CVCA for value: 22 + /// + [EnumMember(Value = "22")] + PASSPORT_CVCA = 23, + + /// + /// Enum PASSPORT_COM for value: 23 + /// + [EnumMember(Value = "23")] + PASSPORT_COM = 24, + + /// + /// Enum DTC_DG17 for value: 57 + /// + [EnumMember(Value = "57")] + DTC_DG17 = 25, + + /// + /// Enum DTC_DG18 for value: 58 + /// + [EnumMember(Value = "58")] + DTC_DG18 = 26, + + /// + /// Enum DTC_DG22 for value: 62 + /// + [EnumMember(Value = "62")] + DTC_DG22 = 27, + + /// + /// Enum DTC_DG23 for value: 63 + /// + [EnumMember(Value = "63")] + DTC_DG23 = 28, + + /// + /// Enum DTC_DG24 for value: 64 + /// + [EnumMember(Value = "64")] + DTC_DG24 = 29, + + /// + /// Enum ID_DG1 for value: 101 + /// + [EnumMember(Value = "101")] + ID_DG1 = 30, + + /// + /// Enum ID_DG2 for value: 102 + /// + [EnumMember(Value = "102")] + ID_DG2 = 31, + + /// + /// Enum ID_DG3 for value: 103 + /// + [EnumMember(Value = "103")] + ID_DG3 = 32, + + /// + /// Enum ID_DG4 for value: 104 + /// + [EnumMember(Value = "104")] + ID_DG4 = 33, + + /// + /// Enum ID_DG5 for value: 105 + /// + [EnumMember(Value = "105")] + ID_DG5 = 34, + + /// + /// Enum ID_DG6 for value: 106 + /// + [EnumMember(Value = "106")] + ID_DG6 = 35, + + /// + /// Enum ID_DG7 for value: 107 + /// + [EnumMember(Value = "107")] + ID_DG7 = 36, + + /// + /// Enum ID_DG8 for value: 108 + /// + [EnumMember(Value = "108")] + ID_DG8 = 37, + + /// + /// Enum ID_DG9 for value: 109 + /// + [EnumMember(Value = "109")] + ID_DG9 = 38, + + /// + /// Enum ID_DG10 for value: 110 + /// + [EnumMember(Value = "110")] + ID_DG10 = 39, + + /// + /// Enum ID_DG11 for value: 111 + /// + [EnumMember(Value = "111")] + ID_DG11 = 40, + + /// + /// Enum ID_DG12 for value: 112 + /// + [EnumMember(Value = "112")] + ID_DG12 = 41, + + /// + /// Enum ID_DG13 for value: 113 + /// + [EnumMember(Value = "113")] + ID_DG13 = 42, + + /// + /// Enum ID_DG14 for value: 114 + /// + [EnumMember(Value = "114")] + ID_DG14 = 43, + + /// + /// Enum ID_DG15 for value: 115 + /// + [EnumMember(Value = "115")] + ID_DG15 = 44, + + /// + /// Enum ID_DG16 for value: 116 + /// + [EnumMember(Value = "116")] + ID_DG16 = 45, + + /// + /// Enum ID_DG17 for value: 117 + /// + [EnumMember(Value = "117")] + ID_DG17 = 46, + + /// + /// Enum ID_DG18 for value: 118 + /// + [EnumMember(Value = "118")] + ID_DG18 = 47, + + /// + /// Enum ID_DG19 for value: 119 + /// + [EnumMember(Value = "119")] + ID_DG19 = 48, + + /// + /// Enum ID_DG20 for value: 120 + /// + [EnumMember(Value = "120")] + ID_DG20 = 49, + + /// + /// Enum ID_DG21 for value: 121 + /// + [EnumMember(Value = "121")] + ID_DG21 = 50, + + /// + /// Enum DL_COM for value: 150 + /// + [EnumMember(Value = "150")] + DL_COM = 51, + + /// + /// Enum DL_DG1 for value: 151 + /// + [EnumMember(Value = "151")] + DL_DG1 = 52, + + /// + /// Enum DL_DG2 for value: 152 + /// + [EnumMember(Value = "152")] + DL_DG2 = 53, + + /// + /// Enum DL_DG3 for value: 153 + /// + [EnumMember(Value = "153")] + DL_DG3 = 54, + + /// + /// Enum DL_DG4 for value: 154 + /// + [EnumMember(Value = "154")] + DL_DG4 = 55, + + /// + /// Enum DL_DG5 for value: 155 + /// + [EnumMember(Value = "155")] + DL_DG5 = 56, + + /// + /// Enum DL_DG6 for value: 156 + /// + [EnumMember(Value = "156")] + DL_DG6 = 57, + + /// + /// Enum DL_DG7 for value: 157 + /// + [EnumMember(Value = "157")] + DL_DG7 = 58, + + /// + /// Enum DL_DG8 for value: 158 + /// + [EnumMember(Value = "158")] + DL_DG8 = 59, + + /// + /// Enum DL_DG9 for value: 159 + /// + [EnumMember(Value = "159")] + DL_DG9 = 60, + + /// + /// Enum DL_DG10 for value: 160 + /// + [EnumMember(Value = "160")] + DL_DG10 = 61, + + /// + /// Enum DL_DG11 for value: 161 + /// + [EnumMember(Value = "161")] + DL_DG11 = 62, + + /// + /// Enum DL_DG12 for value: 162 + /// + [EnumMember(Value = "162")] + DL_DG12 = 63, + + /// + /// Enum DL_DG13 for value: 163 + /// + [EnumMember(Value = "163")] + DL_DG13 = 64, + + /// + /// Enum DL_DG14 for value: 164 + /// + [EnumMember(Value = "164")] + DL_DG14 = 65, + + /// + /// Enum DL_SOD for value: 165 + /// + [EnumMember(Value = "165")] + DL_SOD = 66, + + /// + /// Enum DL_CE for value: 166 + /// + [EnumMember(Value = "166")] + DL_CE = 67, + + /// + /// Enum DL_CVCA for value: 167 + /// + [EnumMember(Value = "167")] + DL_CVCA = 68, + + /// + /// Enum PACE_CARD_ACCESS for value: 200 + /// + [EnumMember(Value = "200")] + PACE_CARD_ACCESS = 69, + + /// + /// Enum PACE_CARD_SECURITY for value: 201 + /// + [EnumMember(Value = "201")] + PACE_CARD_SECURITY = 70, + + /// + /// Enum PACE_CHIP_SECURITY for value: 202 + /// + [EnumMember(Value = "202")] + PACE_CHIP_SECURITY = 71, + + /// + /// Enum MIFARE_DATA for value: 300 + /// + [EnumMember(Value = "300")] + MIFARE_DATA = 72, + + /// + /// Enum MIFARE_VALIDITY for value: 301 + /// + [EnumMember(Value = "301")] + MIFARE_VALIDITY = 73, + + /// + /// Enum AUTHENTICITY_V2 for value: 302 + /// + [EnumMember(Value = "302")] + AUTHENTICITY_V2 = 74, + + /// + /// Enum ATR for value: 400 + /// + [EnumMember(Value = "400")] + ATR = 75, + + /// + /// Enum _E_SIGN_PK for value: 500 + /// + [EnumMember(Value = "500")] + _E_SIGN_PK = 76, + + /// + /// Enum _E_SIGN_SIGNED_DATA for value: 501 + /// + [EnumMember(Value = "501")] + _E_SIGN_SIGNED_DATA = 77, + + /// + /// Enum CERTIFICATE for value: 600 + /// + [EnumMember(Value = "600")] + CERTIFICATE = 78, + + /// + /// Enum MASTER_LIST for value: 601 + /// + [EnumMember(Value = "601")] + MASTER_LIST = 79, + + /// + /// Enum DEFECT_LIST for value: 602 + /// + [EnumMember(Value = "602")] + DEFECT_LIST = 80, + + /// + /// Enum BLACK_LIST for value: 603 + /// + [EnumMember(Value = "603")] + BLACK_LIST = 81, + + /// + /// Enum APP_DIRECTORY for value: 700 + /// + [EnumMember(Value = "700")] + APP_DIRECTORY = 82, + + /// + /// Enum SESSION for value: 701 + /// + [EnumMember(Value = "701")] + SESSION = 83, + + /// + /// Enum LOG_DATA for value: 702 + /// + [EnumMember(Value = "702")] + LOG_DATA = 84, + + /// + /// Enum CHIP_PROPERTIES for value: 703 + /// + [EnumMember(Value = "703")] + CHIP_PROPERTIES = 85, + + /// + /// Enum POST_CA_RESPONSE for value: 710 + /// + [EnumMember(Value = "710")] + POST_CA_RESPONSE = 86, + + /// + /// Enum POST_CA_PUBLIC_KEY for value: 711 + /// + [EnumMember(Value = "711")] + POST_CA_PUBLIC_KEY = 87, + + /// + /// Enum POST_CA_INFO for value: 712 + /// + [EnumMember(Value = "712")] + POST_CA_INFO = 88, + + /// + /// Enum POST_CA_D_PARAMS for value: 713 + /// + [EnumMember(Value = "713")] + POST_CA_D_PARAMS = 89, + + /// + /// Enum POST_CA_CHECK_PK for value: 714 + /// + [EnumMember(Value = "714")] + POST_CA_CHECK_PK = 90, + + /// + /// Enum POST_CA_CHECK_SK for value: 715 + /// + [EnumMember(Value = "715")] + POST_CA_CHECK_SK = 91, + + /// + /// Enum USER_DEFINED for value: 1000 + /// + [EnumMember(Value = "1000")] + USER_DEFINED = 92 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/RfidDataGroupTypeTag.cs b/src/Regula.DocumentReader.WebClient/Model/RfidDataGroupTypeTag.cs new file mode 100644 index 0000000..dc13bf9 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidDataGroupTypeTag.cs @@ -0,0 +1,368 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration representing RFID Data Group Types. Constants with prefix correspond to the informational data groups of ePassport application, with prefix EID_ – those of eID application, with prefix EDL_ – eDL application + /// + /// Enumeration representing RFID Data Group Types. Constants with prefix correspond to the informational data groups of ePassport application, with prefix EID_ – those of eID application, with prefix EDL_ – eDL application + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RfidDataGroupTypeTag + { + /// + /// Enum COM for value: 96 + /// + [EnumMember(Value = "96")] + COM = 1, + + /// + /// Enum DG1 for value: 97 + /// + [EnumMember(Value = "97")] + DG1 = 2, + + /// + /// Enum DG2 for value: 117 + /// + [EnumMember(Value = "117")] + DG2 = 3, + + /// + /// Enum DG3 for value: 99 + /// + [EnumMember(Value = "99")] + DG3 = 4, + + /// + /// Enum DG4 for value: 118 + /// + [EnumMember(Value = "118")] + DG4 = 5, + + /// + /// Enum DG5 for value: 101 + /// + [EnumMember(Value = "101")] + DG5 = 6, + + /// + /// Enum DG6 for value: 102 + /// + [EnumMember(Value = "102")] + DG6 = 7, + + /// + /// Enum DG7 for value: 103 + /// + [EnumMember(Value = "103")] + DG7 = 8, + + /// + /// Enum DG8 for value: 104 + /// + [EnumMember(Value = "104")] + DG8 = 9, + + /// + /// Enum DG9 for value: 105 + /// + [EnumMember(Value = "105")] + DG9 = 10, + + /// + /// Enum DG10 for value: 106 + /// + [EnumMember(Value = "106")] + DG10 = 11, + + /// + /// Enum DG11 for value: 107 + /// + [EnumMember(Value = "107")] + DG11 = 12, + + /// + /// Enum DG12 for value: 108 + /// + [EnumMember(Value = "108")] + DG12 = 13, + + /// + /// Enum DG13 for value: 109 + /// + [EnumMember(Value = "109")] + DG13 = 14, + + /// + /// Enum DG14 for value: 110 + /// + [EnumMember(Value = "110")] + DG14 = 15, + + /// + /// Enum DG15 for value: 111 + /// + [EnumMember(Value = "111")] + DG15 = 16, + + /// + /// Enum DG16 for value: 112 + /// + [EnumMember(Value = "112")] + DG16 = 17, + + /// + /// Enum SOD for value: 119 + /// + [EnumMember(Value = "119")] + SOD = 18, + + /// + /// Enum EID_DG1 for value: 97 + /// + [EnumMember(Value = "97")] + EID_DG1 = 19, + + /// + /// Enum EID_DG2 for value: 98 + /// + [EnumMember(Value = "98")] + EID_DG2 = 20, + + /// + /// Enum EID_DG3 for value: 99 + /// + [EnumMember(Value = "99")] + EID_DG3 = 21, + + /// + /// Enum EID_DG4 for value: 100 + /// + [EnumMember(Value = "100")] + EID_DG4 = 22, + + /// + /// Enum EID_DG5 for value: 101 + /// + [EnumMember(Value = "101")] + EID_DG5 = 23, + + /// + /// Enum EID_DG6 for value: 102 + /// + [EnumMember(Value = "102")] + EID_DG6 = 24, + + /// + /// Enum EID_DG7 for value: 103 + /// + [EnumMember(Value = "103")] + EID_DG7 = 25, + + /// + /// Enum EID_DG8 for value: 104 + /// + [EnumMember(Value = "104")] + EID_DG8 = 26, + + /// + /// Enum EID_DG9 for value: 105 + /// + [EnumMember(Value = "105")] + EID_DG9 = 27, + + /// + /// Enum EID_DG10 for value: 106 + /// + [EnumMember(Value = "106")] + EID_DG10 = 28, + + /// + /// Enum EID_DG11 for value: 107 + /// + [EnumMember(Value = "107")] + EID_DG11 = 29, + + /// + /// Enum EID_DG12 for value: 108 + /// + [EnumMember(Value = "108")] + EID_DG12 = 30, + + /// + /// Enum EID_DG13 for value: 109 + /// + [EnumMember(Value = "109")] + EID_DG13 = 31, + + /// + /// Enum EID_DG14 for value: 110 + /// + [EnumMember(Value = "110")] + EID_DG14 = 32, + + /// + /// Enum EID_DG15 for value: 111 + /// + [EnumMember(Value = "111")] + EID_DG15 = 33, + + /// + /// Enum EID_DG16 for value: 112 + /// + [EnumMember(Value = "112")] + EID_DG16 = 34, + + /// + /// Enum EID_DG17 for value: 113 + /// + [EnumMember(Value = "113")] + EID_DG17 = 35, + + /// + /// Enum EID_DG18 for value: 114 + /// + [EnumMember(Value = "114")] + EID_DG18 = 36, + + /// + /// Enum EID_DG19 for value: 115 + /// + [EnumMember(Value = "115")] + EID_DG19 = 37, + + /// + /// Enum EID_DG20 for value: 116 + /// + [EnumMember(Value = "116")] + EID_DG20 = 38, + + /// + /// Enum EID_DG21 for value: 117 + /// + [EnumMember(Value = "117")] + EID_DG21 = 39, + + /// + /// Enum EDL_COM for value: 96 + /// + [EnumMember(Value = "96")] + EDL_COM = 40, + + /// + /// Enum EDL_SOD for value: 119 + /// + [EnumMember(Value = "119")] + EDL_SOD = 41, + + /// + /// Enum EDL_CE for value: 119 + /// + [EnumMember(Value = "119")] + EDL_CE = 42, + + /// + /// Enum EDL_DG1 for value: 97 + /// + [EnumMember(Value = "97")] + EDL_DG1 = 43, + + /// + /// Enum EDL_DG2 for value: 107 + /// + [EnumMember(Value = "107")] + EDL_DG2 = 44, + + /// + /// Enum EDL_DG3 for value: 108 + /// + [EnumMember(Value = "108")] + EDL_DG3 = 45, + + /// + /// Enum EDL_DG4 for value: 101 + /// + [EnumMember(Value = "101")] + EDL_DG4 = 46, + + /// + /// Enum EDL_DG5 for value: 103 + /// + [EnumMember(Value = "103")] + EDL_DG5 = 47, + + /// + /// Enum EDL_DG6 for value: 117 + /// + [EnumMember(Value = "117")] + EDL_DG6 = 48, + + /// + /// Enum EDL_DG7 for value: 99 + /// + [EnumMember(Value = "99")] + EDL_DG7 = 49, + + /// + /// Enum EDL_DG8 for value: 118 + /// + [EnumMember(Value = "118")] + EDL_DG8 = 50, + + /// + /// Enum EDL_DG9 for value: 112 + /// + [EnumMember(Value = "112")] + EDL_DG9 = 51, + + /// + /// Enum EDL_DG11 for value: 109 + /// + [EnumMember(Value = "109")] + EDL_DG11 = 52, + + /// + /// Enum EDL_DG12 for value: 113 + /// + [EnumMember(Value = "113")] + EDL_DG12 = 53, + + /// + /// Enum EDL_DG14 for value: 111 + /// + [EnumMember(Value = "111")] + EDL_DG14 = 54, + + /// + /// Enum NUMBER_110 for value: 110 + /// + [EnumMember(Value = "110")] + NUMBER_110 = 55 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/RfidDistinguishedName.cs b/src/Regula.DocumentReader.WebClient/Model/RfidDistinguishedName.cs new file mode 100644 index 0000000..5362cdc --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidDistinguishedName.cs @@ -0,0 +1,191 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Contents of the identifier in binary form. Base64 encoded. + /// + [DataContract] + public partial class RfidDistinguishedName : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidDistinguishedName() { } + /// + /// Initializes a new instance of the class. + /// + /// Contents of the identifier in binary form. Base64 encoded. (required). + /// friendlyName (required). + /// List of individual attributes contained in the identifier (required). + public RfidDistinguishedName(string data = default(string), TrfFtString friendlyName = default(TrfFtString), List attributes = default(List)) + { + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RfidDistinguishedName and cannot be null"); + } + else + { + this.Data = data; + } + + // to ensure "friendlyName" is required (not null) + if (friendlyName == null) + { + throw new InvalidDataException("friendlyName is a required property for RfidDistinguishedName and cannot be null"); + } + else + { + this.FriendlyName = friendlyName; + } + + // to ensure "attributes" is required (not null) + if (attributes == null) + { + throw new InvalidDataException("attributes is a required property for RfidDistinguishedName and cannot be null"); + } + else + { + this.Attributes = attributes; + } + + } + + /// + /// Contents of the identifier in binary form. Base64 encoded. + /// + /// Contents of the identifier in binary form. Base64 encoded. + [DataMember(Name="Data", EmitDefaultValue=true)] + public string Data { get; set; } + + /// + /// Gets or Sets FriendlyName + /// + [DataMember(Name="FriendlyName", EmitDefaultValue=true)] + public TrfFtString FriendlyName { get; set; } + + /// + /// List of individual attributes contained in the identifier + /// + /// List of individual attributes contained in the identifier + [DataMember(Name="Attributes", EmitDefaultValue=true)] + public List Attributes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidDistinguishedName {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" FriendlyName: ").Append(FriendlyName).Append("\n"); + sb.Append(" Attributes: ").Append(Attributes).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidDistinguishedName); + } + + /// + /// Returns true if RfidDistinguishedName instances are equal + /// + /// Instance of RfidDistinguishedName to be compared + /// Boolean + public bool Equals(RfidDistinguishedName input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.FriendlyName == input.FriendlyName || + (this.FriendlyName != null && + this.FriendlyName.Equals(input.FriendlyName)) + ) && + ( + this.Attributes == input.Attributes || + this.Attributes != null && + input.Attributes != null && + this.Attributes.SequenceEqual(input.Attributes) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.FriendlyName != null) + hashCode = hashCode * 59 + this.FriendlyName.GetHashCode(); + if (this.Attributes != null) + hashCode = hashCode * 59 + this.Attributes.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidOrigin.cs b/src/Regula.DocumentReader.WebClient/Model/RfidOrigin.cs index 638235b..91bb4bb 100644 --- a/src/Regula.DocumentReader.WebClient/Model/RfidOrigin.cs +++ b/src/Regula.DocumentReader.WebClient/Model/RfidOrigin.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,9 +39,9 @@ protected RfidOrigin() { } /// Initializes a new instance of the class. /// /// Source data group file (required). - /// Index of the source record of the image with biometric information in the information data group. - /// Index of the template in the record with biometric data. - /// Index of the variant of the biometric data template. + /// Index of the source record of the image with biometric information in the information data group (required). + /// Index of the template in the record with biometric data (required). + /// Index of the variant of the biometric data template (required). public RfidOrigin(int dg = default(int), int dgTag = default(int), int tagEntry = default(int), int entryView = default(int)) { // to ensure "dg" is required (not null) @@ -54,9 +54,36 @@ protected RfidOrigin() { } this.Dg = dg; } - this.DgTag = dgTag; - this.TagEntry = tagEntry; - this.EntryView = entryView; + // to ensure "dgTag" is required (not null) + if (dgTag == null) + { + throw new InvalidDataException("dgTag is a required property for RfidOrigin and cannot be null"); + } + else + { + this.DgTag = dgTag; + } + + // to ensure "tagEntry" is required (not null) + if (tagEntry == null) + { + throw new InvalidDataException("tagEntry is a required property for RfidOrigin and cannot be null"); + } + else + { + this.TagEntry = tagEntry; + } + + // to ensure "entryView" is required (not null) + if (entryView == null) + { + throw new InvalidDataException("entryView is a required property for RfidOrigin and cannot be null"); + } + else + { + this.EntryView = entryView; + } + } /// @@ -70,21 +97,21 @@ protected RfidOrigin() { } /// Index of the source record of the image with biometric information in the information data group /// /// Index of the source record of the image with biometric information in the information data group - [DataMember(Name="dgTag", EmitDefaultValue=false)] + [DataMember(Name="dgTag", EmitDefaultValue=true)] public int DgTag { get; set; } /// /// Index of the template in the record with biometric data /// /// Index of the template in the record with biometric data - [DataMember(Name="tagEntry", EmitDefaultValue=false)] + [DataMember(Name="tagEntry", EmitDefaultValue=true)] public int TagEntry { get; set; } /// /// Index of the variant of the biometric data template /// /// Index of the variant of the biometric data template - [DataMember(Name="entryView", EmitDefaultValue=false)] + [DataMember(Name="entryView", EmitDefaultValue=true)] public int EntryView { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/RfidPasswordType.cs b/src/Regula.DocumentReader.WebClient/Model/RfidPasswordType.cs new file mode 100644 index 0000000..5ac1803 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidPasswordType.cs @@ -0,0 +1,80 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration contains a set of constants specifying the rate of data exchange between the reader and the RFID-chip + /// + /// Enumeration contains a set of constants specifying the rate of data exchange between the reader and the RFID-chip + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RfidPasswordType + { + /// + /// Enum UNKNOWN for value: 0 + /// + [EnumMember(Value = "0")] + UNKNOWN = 1, + + /// + /// Enum MRZ for value: 1 + /// + [EnumMember(Value = "1")] + MRZ = 2, + + /// + /// Enum CAN for value: 2 + /// + [EnumMember(Value = "2")] + CAN = 3, + + /// + /// Enum PIN for value: 3 + /// + [EnumMember(Value = "3")] + PIN = 4, + + /// + /// Enum PUK for value: 4 + /// + [EnumMember(Value = "4")] + PUK = 5, + + /// + /// Enum PIN_E_SIGN for value: 5 + /// + [EnumMember(Value = "5")] + PIN_E_SIGN = 6, + + /// + /// Enum SAI for value: 6 + /// + [EnumMember(Value = "6")] + SAI = 7 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/RfidPkiExtension.cs b/src/Regula.DocumentReader.WebClient/Model/RfidPkiExtension.cs new file mode 100644 index 0000000..983e450 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidPkiExtension.cs @@ -0,0 +1,165 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Extension identifier (OID, ASCII string); Contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) + /// + [DataContract] + public partial class RfidPkiExtension : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidPkiExtension() { } + /// + /// Initializes a new instance of the class. + /// + /// Extension identifier (OID, ASCII string); Contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) (required). + /// Extension binary data. Base64 encoded. (required). + public RfidPkiExtension(string type = default(string), string data = default(string)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for RfidPkiExtension and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for RfidPkiExtension and cannot be null"); + } + else + { + this.Data = data; + } + + } + + /// + /// Extension identifier (OID, ASCII string); Contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) + /// + /// Extension identifier (OID, ASCII string); Contents of the identifier in the format S1 (S2), where S1 – attribute name, S2 – identifier (OID string) + [DataMember(Name="Type", EmitDefaultValue=true)] + public string Type { get; set; } + + /// + /// Extension binary data. Base64 encoded. + /// + /// Extension binary data. Base64 encoded. + [DataMember(Name="Data", EmitDefaultValue=true)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidPkiExtension {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Data: ").Append(Data).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidPkiExtension); + } + + /// + /// Returns true if RfidPkiExtension instances are equal + /// + /// Instance of RfidPkiExtension to be compared + /// Boolean + public bool Equals(RfidPkiExtension input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidSecurityObject.cs b/src/Regula.DocumentReader.WebClient/Model/RfidSecurityObject.cs new file mode 100644 index 0000000..d40068c --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidSecurityObject.cs @@ -0,0 +1,245 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure is used to describe the contents of a single document security object (SO) and the results of its check within the context of the communication session with electronic document + /// + [DataContract] + public partial class RfidSecurityObject : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidSecurityObject() { } + /// + /// Initializes a new instance of the class. + /// + /// Security object version (required). + /// Identifier of the security object (required). + /// Reference to the source file of the security object data (required). + /// List of remarks arisen during the analysis of SO data structure. (required). + /// List of containers to store information about digital signature objects contained in the SO (required). + public RfidSecurityObject(decimal version = default(decimal), string objectType = default(string), decimal fileReference = default(decimal), List notifications = default(List), List signerInfos = default(List)) + { + // to ensure "version" is required (not null) + if (version == null) + { + throw new InvalidDataException("version is a required property for RfidSecurityObject and cannot be null"); + } + else + { + this.Version = version; + } + + // to ensure "objectType" is required (not null) + if (objectType == null) + { + throw new InvalidDataException("objectType is a required property for RfidSecurityObject and cannot be null"); + } + else + { + this.ObjectType = objectType; + } + + // to ensure "fileReference" is required (not null) + if (fileReference == null) + { + throw new InvalidDataException("fileReference is a required property for RfidSecurityObject and cannot be null"); + } + else + { + this.FileReference = fileReference; + } + + // to ensure "notifications" is required (not null) + if (notifications == null) + { + throw new InvalidDataException("notifications is a required property for RfidSecurityObject and cannot be null"); + } + else + { + this.Notifications = notifications; + } + + // to ensure "signerInfos" is required (not null) + if (signerInfos == null) + { + throw new InvalidDataException("signerInfos is a required property for RfidSecurityObject and cannot be null"); + } + else + { + this.SignerInfos = signerInfos; + } + + } + + /// + /// Security object version + /// + /// Security object version + [DataMember(Name="Version", EmitDefaultValue=true)] + public decimal Version { get; set; } + + /// + /// Identifier of the security object + /// + /// Identifier of the security object + [DataMember(Name="ObjectType", EmitDefaultValue=true)] + public string ObjectType { get; set; } + + /// + /// Reference to the source file of the security object data + /// + /// Reference to the source file of the security object data + [DataMember(Name="FileReference", EmitDefaultValue=true)] + public decimal FileReference { get; set; } + + /// + /// List of remarks arisen during the analysis of SO data structure. + /// + /// List of remarks arisen during the analysis of SO data structure. + [DataMember(Name="Notifications", EmitDefaultValue=true)] + public List Notifications { get; set; } + + /// + /// List of containers to store information about digital signature objects contained in the SO + /// + /// List of containers to store information about digital signature objects contained in the SO + [DataMember(Name="SignerInfos", EmitDefaultValue=true)] + public List SignerInfos { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidSecurityObject {\n"); + sb.Append(" Version: ").Append(Version).Append("\n"); + sb.Append(" ObjectType: ").Append(ObjectType).Append("\n"); + sb.Append(" FileReference: ").Append(FileReference).Append("\n"); + sb.Append(" Notifications: ").Append(Notifications).Append("\n"); + sb.Append(" SignerInfos: ").Append(SignerInfos).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidSecurityObject); + } + + /// + /// Returns true if RfidSecurityObject instances are equal + /// + /// Instance of RfidSecurityObject to be compared + /// Boolean + public bool Equals(RfidSecurityObject input) + { + if (input == null) + return false; + + return + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.ObjectType == input.ObjectType || + (this.ObjectType != null && + this.ObjectType.Equals(input.ObjectType)) + ) && + ( + this.FileReference == input.FileReference || + (this.FileReference != null && + this.FileReference.Equals(input.FileReference)) + ) && + ( + this.Notifications == input.Notifications || + this.Notifications != null && + input.Notifications != null && + this.Notifications.SequenceEqual(input.Notifications) + ) && + ( + this.SignerInfos == input.SignerInfos || + this.SignerInfos != null && + input.SignerInfos != null && + this.SignerInfos.SequenceEqual(input.SignerInfos) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.ObjectType != null) + hashCode = hashCode * 59 + this.ObjectType.GetHashCode(); + if (this.FileReference != null) + hashCode = hashCode * 59 + this.FileReference.GetHashCode(); + if (this.Notifications != null) + hashCode = hashCode * 59 + this.Notifications.GetHashCode(); + if (this.SignerInfos != null) + hashCode = hashCode * 59 + this.SignerInfos.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidSessionData.cs b/src/Regula.DocumentReader.WebClient/Model/RfidSessionData.cs new file mode 100644 index 0000000..4d4212a --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidSessionData.cs @@ -0,0 +1,532 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure is used to describe the results of work with the SDK within the context of the current communication session with electronic document + /// + [DataContract] + public partial class RfidSessionData : IEquatable, IValidatableObject + { + /// + /// Gets or Sets ExtLeSupport + /// + [DataMember(Name="ExtLeSupport", EmitDefaultValue=true)] + public RFIDErrorCodes ExtLeSupport { get; set; } + /// + /// Gets or Sets SessionProcedure + /// + [DataMember(Name="Session_procedure", EmitDefaultValue=true)] + public RfidAuthenticationProcedureType SessionProcedure { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidSessionData() { } + /// + /// Initializes a new instance of the class. + /// + /// Sign of virtual session when working with loaded data from a previous communication session with the electronic document (required). + /// Text SDKVersion value in format A.B (e.g. 3.1) (required). + /// Text DriverVersion value in format A.B.C.D (e.g. 6.2.5.4) (required). + /// Text FirmwareVersion value in format A.B (e.g. 5.19) (required). + /// List of containers to store information about the involved applications of electronic document (required). + /// List of containers to store information about the supported procedures of authentication and secure data access within the context of the session (required). + /// cardProperties (required). + /// extLeSupport (required). + /// Time of processing, milliseconds (required). + /// List of containers to store information about the read files of the root Master File (required). + /// Total number of bytes transmitted to the RFID-chip during the whole session (required). + /// Total number of bytes received from the RFID-chip during the whole session (required). + /// sessionKey (required). + /// sessionTerminal (required). + /// sessionProcedure (required). + /// List of containers to store information about the detected document security objects (required). + public RfidSessionData(Object virtualMode = default(Object), Object sDKVersion = default(Object), Object driverVersion = default(Object), Object firmwareVersion = default(Object), List applications = default(List), List accessControls = default(List), RfidCardPropertiesExt cardProperties = default(RfidCardPropertiesExt), RFIDErrorCodes extLeSupport = default(RFIDErrorCodes), decimal processTime = default(decimal), List rootFiles = default(List), decimal totalBytesSent = default(decimal), decimal totalBytesReceived = default(decimal), RfidAccessKey sessionKey = default(RfidAccessKey), RfidTerminal sessionTerminal = default(RfidTerminal), RfidAuthenticationProcedureType sessionProcedure = default(RfidAuthenticationProcedureType), List securityObjects = default(List)) + { + // to ensure "virtualMode" is required (not null) + if (virtualMode == null) + { + throw new InvalidDataException("virtualMode is a required property for RfidSessionData and cannot be null"); + } + else + { + this.VirtualMode = virtualMode; + } + + this.VirtualMode = virtualMode; + // to ensure "sDKVersion" is required (not null) + if (sDKVersion == null) + { + throw new InvalidDataException("sDKVersion is a required property for RfidSessionData and cannot be null"); + } + else + { + this.SDKVersion = sDKVersion; + } + + this.SDKVersion = sDKVersion; + // to ensure "driverVersion" is required (not null) + if (driverVersion == null) + { + throw new InvalidDataException("driverVersion is a required property for RfidSessionData and cannot be null"); + } + else + { + this.DriverVersion = driverVersion; + } + + this.DriverVersion = driverVersion; + // to ensure "firmwareVersion" is required (not null) + if (firmwareVersion == null) + { + throw new InvalidDataException("firmwareVersion is a required property for RfidSessionData and cannot be null"); + } + else + { + this.FirmwareVersion = firmwareVersion; + } + + this.FirmwareVersion = firmwareVersion; + // to ensure "applications" is required (not null) + if (applications == null) + { + throw new InvalidDataException("applications is a required property for RfidSessionData and cannot be null"); + } + else + { + this.Applications = applications; + } + + // to ensure "accessControls" is required (not null) + if (accessControls == null) + { + throw new InvalidDataException("accessControls is a required property for RfidSessionData and cannot be null"); + } + else + { + this.AccessControls = accessControls; + } + + // to ensure "cardProperties" is required (not null) + if (cardProperties == null) + { + throw new InvalidDataException("cardProperties is a required property for RfidSessionData and cannot be null"); + } + else + { + this.CardProperties = cardProperties; + } + + // to ensure "extLeSupport" is required (not null) + if (extLeSupport == null) + { + throw new InvalidDataException("extLeSupport is a required property for RfidSessionData and cannot be null"); + } + else + { + this.ExtLeSupport = extLeSupport; + } + + // to ensure "processTime" is required (not null) + if (processTime == null) + { + throw new InvalidDataException("processTime is a required property for RfidSessionData and cannot be null"); + } + else + { + this.ProcessTime = processTime; + } + + // to ensure "rootFiles" is required (not null) + if (rootFiles == null) + { + throw new InvalidDataException("rootFiles is a required property for RfidSessionData and cannot be null"); + } + else + { + this.RootFiles = rootFiles; + } + + // to ensure "totalBytesSent" is required (not null) + if (totalBytesSent == null) + { + throw new InvalidDataException("totalBytesSent is a required property for RfidSessionData and cannot be null"); + } + else + { + this.TotalBytesSent = totalBytesSent; + } + + // to ensure "totalBytesReceived" is required (not null) + if (totalBytesReceived == null) + { + throw new InvalidDataException("totalBytesReceived is a required property for RfidSessionData and cannot be null"); + } + else + { + this.TotalBytesReceived = totalBytesReceived; + } + + // to ensure "sessionKey" is required (not null) + if (sessionKey == null) + { + throw new InvalidDataException("sessionKey is a required property for RfidSessionData and cannot be null"); + } + else + { + this.SessionKey = sessionKey; + } + + // to ensure "sessionTerminal" is required (not null) + if (sessionTerminal == null) + { + throw new InvalidDataException("sessionTerminal is a required property for RfidSessionData and cannot be null"); + } + else + { + this.SessionTerminal = sessionTerminal; + } + + // to ensure "sessionProcedure" is required (not null) + if (sessionProcedure == null) + { + throw new InvalidDataException("sessionProcedure is a required property for RfidSessionData and cannot be null"); + } + else + { + this.SessionProcedure = sessionProcedure; + } + + // to ensure "securityObjects" is required (not null) + if (securityObjects == null) + { + throw new InvalidDataException("securityObjects is a required property for RfidSessionData and cannot be null"); + } + else + { + this.SecurityObjects = securityObjects; + } + + } + + /// + /// Sign of virtual session when working with loaded data from a previous communication session with the electronic document + /// + /// Sign of virtual session when working with loaded data from a previous communication session with the electronic document + [DataMember(Name="VirtualMode", EmitDefaultValue=true)] + public Object VirtualMode { get; set; } + + /// + /// Text SDKVersion value in format A.B (e.g. 3.1) + /// + /// Text SDKVersion value in format A.B (e.g. 3.1) + [DataMember(Name="SDKVersion", EmitDefaultValue=true)] + public Object SDKVersion { get; set; } + + /// + /// Text DriverVersion value in format A.B.C.D (e.g. 6.2.5.4) + /// + /// Text DriverVersion value in format A.B.C.D (e.g. 6.2.5.4) + [DataMember(Name="DriverVersion", EmitDefaultValue=true)] + public Object DriverVersion { get; set; } + + /// + /// Text FirmwareVersion value in format A.B (e.g. 5.19) + /// + /// Text FirmwareVersion value in format A.B (e.g. 5.19) + [DataMember(Name="FirmwareVersion", EmitDefaultValue=true)] + public Object FirmwareVersion { get; set; } + + /// + /// List of containers to store information about the involved applications of electronic document + /// + /// List of containers to store information about the involved applications of electronic document + [DataMember(Name="Applications", EmitDefaultValue=true)] + public List Applications { get; set; } + + /// + /// List of containers to store information about the supported procedures of authentication and secure data access within the context of the session + /// + /// List of containers to store information about the supported procedures of authentication and secure data access within the context of the session + [DataMember(Name="AccessControls", EmitDefaultValue=true)] + public List AccessControls { get; set; } + + /// + /// Gets or Sets CardProperties + /// + [DataMember(Name="CardProperties", EmitDefaultValue=true)] + public RfidCardPropertiesExt CardProperties { get; set; } + + + /// + /// Time of processing, milliseconds + /// + /// Time of processing, milliseconds + [DataMember(Name="ProcessTime", EmitDefaultValue=true)] + public decimal ProcessTime { get; set; } + + /// + /// List of containers to store information about the read files of the root Master File + /// + /// List of containers to store information about the read files of the root Master File + [DataMember(Name="RootFiles", EmitDefaultValue=true)] + public List RootFiles { get; set; } + + /// + /// Total number of bytes transmitted to the RFID-chip during the whole session + /// + /// Total number of bytes transmitted to the RFID-chip during the whole session + [DataMember(Name="TotalBytesSent", EmitDefaultValue=true)] + public decimal TotalBytesSent { get; set; } + + /// + /// Total number of bytes received from the RFID-chip during the whole session + /// + /// Total number of bytes received from the RFID-chip during the whole session + [DataMember(Name="TotalBytesReceived", EmitDefaultValue=true)] + public decimal TotalBytesReceived { get; set; } + + /// + /// Gets or Sets SessionKey + /// + [DataMember(Name="Session_key", EmitDefaultValue=true)] + public RfidAccessKey SessionKey { get; set; } + + /// + /// Gets or Sets SessionTerminal + /// + [DataMember(Name="Session_terminal", EmitDefaultValue=true)] + public RfidTerminal SessionTerminal { get; set; } + + + /// + /// List of containers to store information about the detected document security objects + /// + /// List of containers to store information about the detected document security objects + [DataMember(Name="SecurityObjects", EmitDefaultValue=true)] + public List SecurityObjects { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidSessionData {\n"); + sb.Append(" VirtualMode: ").Append(VirtualMode).Append("\n"); + sb.Append(" SDKVersion: ").Append(SDKVersion).Append("\n"); + sb.Append(" DriverVersion: ").Append(DriverVersion).Append("\n"); + sb.Append(" FirmwareVersion: ").Append(FirmwareVersion).Append("\n"); + sb.Append(" Applications: ").Append(Applications).Append("\n"); + sb.Append(" AccessControls: ").Append(AccessControls).Append("\n"); + sb.Append(" CardProperties: ").Append(CardProperties).Append("\n"); + sb.Append(" ExtLeSupport: ").Append(ExtLeSupport).Append("\n"); + sb.Append(" ProcessTime: ").Append(ProcessTime).Append("\n"); + sb.Append(" RootFiles: ").Append(RootFiles).Append("\n"); + sb.Append(" TotalBytesSent: ").Append(TotalBytesSent).Append("\n"); + sb.Append(" TotalBytesReceived: ").Append(TotalBytesReceived).Append("\n"); + sb.Append(" SessionKey: ").Append(SessionKey).Append("\n"); + sb.Append(" SessionTerminal: ").Append(SessionTerminal).Append("\n"); + sb.Append(" SessionProcedure: ").Append(SessionProcedure).Append("\n"); + sb.Append(" SecurityObjects: ").Append(SecurityObjects).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidSessionData); + } + + /// + /// Returns true if RfidSessionData instances are equal + /// + /// Instance of RfidSessionData to be compared + /// Boolean + public bool Equals(RfidSessionData input) + { + if (input == null) + return false; + + return + ( + this.VirtualMode == input.VirtualMode || + (this.VirtualMode != null && + this.VirtualMode.Equals(input.VirtualMode)) + ) && + ( + this.SDKVersion == input.SDKVersion || + (this.SDKVersion != null && + this.SDKVersion.Equals(input.SDKVersion)) + ) && + ( + this.DriverVersion == input.DriverVersion || + (this.DriverVersion != null && + this.DriverVersion.Equals(input.DriverVersion)) + ) && + ( + this.FirmwareVersion == input.FirmwareVersion || + (this.FirmwareVersion != null && + this.FirmwareVersion.Equals(input.FirmwareVersion)) + ) && + ( + this.Applications == input.Applications || + this.Applications != null && + input.Applications != null && + this.Applications.SequenceEqual(input.Applications) + ) && + ( + this.AccessControls == input.AccessControls || + this.AccessControls != null && + input.AccessControls != null && + this.AccessControls.SequenceEqual(input.AccessControls) + ) && + ( + this.CardProperties == input.CardProperties || + (this.CardProperties != null && + this.CardProperties.Equals(input.CardProperties)) + ) && + ( + this.ExtLeSupport == input.ExtLeSupport || + (this.ExtLeSupport != null && + this.ExtLeSupport.Equals(input.ExtLeSupport)) + ) && + ( + this.ProcessTime == input.ProcessTime || + (this.ProcessTime != null && + this.ProcessTime.Equals(input.ProcessTime)) + ) && + ( + this.RootFiles == input.RootFiles || + this.RootFiles != null && + input.RootFiles != null && + this.RootFiles.SequenceEqual(input.RootFiles) + ) && + ( + this.TotalBytesSent == input.TotalBytesSent || + (this.TotalBytesSent != null && + this.TotalBytesSent.Equals(input.TotalBytesSent)) + ) && + ( + this.TotalBytesReceived == input.TotalBytesReceived || + (this.TotalBytesReceived != null && + this.TotalBytesReceived.Equals(input.TotalBytesReceived)) + ) && + ( + this.SessionKey == input.SessionKey || + (this.SessionKey != null && + this.SessionKey.Equals(input.SessionKey)) + ) && + ( + this.SessionTerminal == input.SessionTerminal || + (this.SessionTerminal != null && + this.SessionTerminal.Equals(input.SessionTerminal)) + ) && + ( + this.SessionProcedure == input.SessionProcedure || + (this.SessionProcedure != null && + this.SessionProcedure.Equals(input.SessionProcedure)) + ) && + ( + this.SecurityObjects == input.SecurityObjects || + this.SecurityObjects != null && + input.SecurityObjects != null && + this.SecurityObjects.SequenceEqual(input.SecurityObjects) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.VirtualMode != null) + hashCode = hashCode * 59 + this.VirtualMode.GetHashCode(); + if (this.SDKVersion != null) + hashCode = hashCode * 59 + this.SDKVersion.GetHashCode(); + if (this.DriverVersion != null) + hashCode = hashCode * 59 + this.DriverVersion.GetHashCode(); + if (this.FirmwareVersion != null) + hashCode = hashCode * 59 + this.FirmwareVersion.GetHashCode(); + if (this.Applications != null) + hashCode = hashCode * 59 + this.Applications.GetHashCode(); + if (this.AccessControls != null) + hashCode = hashCode * 59 + this.AccessControls.GetHashCode(); + if (this.CardProperties != null) + hashCode = hashCode * 59 + this.CardProperties.GetHashCode(); + if (this.ExtLeSupport != null) + hashCode = hashCode * 59 + this.ExtLeSupport.GetHashCode(); + if (this.ProcessTime != null) + hashCode = hashCode * 59 + this.ProcessTime.GetHashCode(); + if (this.RootFiles != null) + hashCode = hashCode * 59 + this.RootFiles.GetHashCode(); + if (this.TotalBytesSent != null) + hashCode = hashCode * 59 + this.TotalBytesSent.GetHashCode(); + if (this.TotalBytesReceived != null) + hashCode = hashCode * 59 + this.TotalBytesReceived.GetHashCode(); + if (this.SessionKey != null) + hashCode = hashCode * 59 + this.SessionKey.GetHashCode(); + if (this.SessionTerminal != null) + hashCode = hashCode * 59 + this.SessionTerminal.GetHashCode(); + if (this.SessionProcedure != null) + hashCode = hashCode * 59 + this.SessionProcedure.GetHashCode(); + if (this.SecurityObjects != null) + hashCode = hashCode * 59 + this.SecurityObjects.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidSignerInfoEx.cs b/src/Regula.DocumentReader.WebClient/Model/RfidSignerInfoEx.cs new file mode 100644 index 0000000..fefa5a7 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidSignerInfoEx.cs @@ -0,0 +1,421 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure is used to describe the contents of a single copy of digital signature of the document security object and the results of its check within the context of the communication session with electronic document + /// + [DataContract] + public partial class RfidSignerInfoEx : IEquatable, IValidatableObject + { + /// + /// Gets or Sets PAStatus + /// + [DataMember(Name="PA_Status", EmitDefaultValue=true)] + public RFIDErrorCodes PAStatus { get; set; } + /// + /// Gets or Sets Notifications + /// + [DataMember(Name="Notifications", EmitDefaultValue=true)] + public ParsingErrorCodes Notifications { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidSignerInfoEx() { } + /// + /// Initializes a new instance of the class. + /// + /// Version of SignerInfo ASN.1 structure (required). + /// issuer (required). + /// serialNumber (required). + /// subjectKeyIdentifier (required). + /// Hash algorithm identifier (OID) for digital signature generation (required). + /// List of the signed attributes (required). + /// Digital signature algorithm identifier (OID) (required). + /// signature (required). + /// pAStatus (required). + /// Certificate chain, used for the digital signature verification. (required). + /// Binary data array used to calculate the hash value for digital signature verification. Base64 encoded. (required). + /// notifications (required). + public RfidSignerInfoEx(decimal version = default(decimal), RfidDistinguishedName issuer = default(RfidDistinguishedName), TrfFtBytes serialNumber = default(TrfFtBytes), TrfFtBytes subjectKeyIdentifier = default(TrfFtBytes), string digestAlgorithm = default(string), List signedAttributes = default(List), string signatureAlgorithm = default(string), TrfFtBytes signature = default(TrfFtBytes), RFIDErrorCodes pAStatus = default(RFIDErrorCodes), List certificateChain = default(List), string dataToHash = default(string), ParsingErrorCodes notifications = default(ParsingErrorCodes)) + { + // to ensure "version" is required (not null) + if (version == null) + { + throw new InvalidDataException("version is a required property for RfidSignerInfoEx and cannot be null"); + } + else + { + this.Version = version; + } + + // to ensure "issuer" is required (not null) + if (issuer == null) + { + throw new InvalidDataException("issuer is a required property for RfidSignerInfoEx and cannot be null"); + } + else + { + this.Issuer = issuer; + } + + // to ensure "serialNumber" is required (not null) + if (serialNumber == null) + { + throw new InvalidDataException("serialNumber is a required property for RfidSignerInfoEx and cannot be null"); + } + else + { + this.SerialNumber = serialNumber; + } + + // to ensure "subjectKeyIdentifier" is required (not null) + if (subjectKeyIdentifier == null) + { + throw new InvalidDataException("subjectKeyIdentifier is a required property for RfidSignerInfoEx and cannot be null"); + } + else + { + this.SubjectKeyIdentifier = subjectKeyIdentifier; + } + + // to ensure "digestAlgorithm" is required (not null) + if (digestAlgorithm == null) + { + throw new InvalidDataException("digestAlgorithm is a required property for RfidSignerInfoEx and cannot be null"); + } + else + { + this.DigestAlgorithm = digestAlgorithm; + } + + // to ensure "signedAttributes" is required (not null) + if (signedAttributes == null) + { + throw new InvalidDataException("signedAttributes is a required property for RfidSignerInfoEx and cannot be null"); + } + else + { + this.SignedAttributes = signedAttributes; + } + + // to ensure "signatureAlgorithm" is required (not null) + if (signatureAlgorithm == null) + { + throw new InvalidDataException("signatureAlgorithm is a required property for RfidSignerInfoEx and cannot be null"); + } + else + { + this.SignatureAlgorithm = signatureAlgorithm; + } + + // to ensure "signature" is required (not null) + if (signature == null) + { + throw new InvalidDataException("signature is a required property for RfidSignerInfoEx and cannot be null"); + } + else + { + this.Signature = signature; + } + + // to ensure "pAStatus" is required (not null) + if (pAStatus == null) + { + throw new InvalidDataException("pAStatus is a required property for RfidSignerInfoEx and cannot be null"); + } + else + { + this.PAStatus = pAStatus; + } + + // to ensure "certificateChain" is required (not null) + if (certificateChain == null) + { + throw new InvalidDataException("certificateChain is a required property for RfidSignerInfoEx and cannot be null"); + } + else + { + this.CertificateChain = certificateChain; + } + + // to ensure "dataToHash" is required (not null) + if (dataToHash == null) + { + throw new InvalidDataException("dataToHash is a required property for RfidSignerInfoEx and cannot be null"); + } + else + { + this.DataToHash = dataToHash; + } + + // to ensure "notifications" is required (not null) + if (notifications == null) + { + throw new InvalidDataException("notifications is a required property for RfidSignerInfoEx and cannot be null"); + } + else + { + this.Notifications = notifications; + } + + } + + /// + /// Version of SignerInfo ASN.1 structure + /// + /// Version of SignerInfo ASN.1 structure + [DataMember(Name="Version", EmitDefaultValue=true)] + public decimal Version { get; set; } + + /// + /// Gets or Sets Issuer + /// + [DataMember(Name="Issuer", EmitDefaultValue=true)] + public RfidDistinguishedName Issuer { get; set; } + + /// + /// Gets or Sets SerialNumber + /// + [DataMember(Name="SerialNumber", EmitDefaultValue=true)] + public TrfFtBytes SerialNumber { get; set; } + + /// + /// Gets or Sets SubjectKeyIdentifier + /// + [DataMember(Name="SubjectKeyIdentifier", EmitDefaultValue=true)] + public TrfFtBytes SubjectKeyIdentifier { get; set; } + + /// + /// Hash algorithm identifier (OID) for digital signature generation + /// + /// Hash algorithm identifier (OID) for digital signature generation + [DataMember(Name="DigestAlgorithm", EmitDefaultValue=true)] + public string DigestAlgorithm { get; set; } + + /// + /// List of the signed attributes + /// + /// List of the signed attributes + [DataMember(Name="SignedAttributes", EmitDefaultValue=true)] + public List SignedAttributes { get; set; } + + /// + /// Digital signature algorithm identifier (OID) + /// + /// Digital signature algorithm identifier (OID) + [DataMember(Name="SignatureAlgorithm", EmitDefaultValue=true)] + public string SignatureAlgorithm { get; set; } + + /// + /// Gets or Sets Signature + /// + [DataMember(Name="Signature", EmitDefaultValue=true)] + public TrfFtBytes Signature { get; set; } + + + /// + /// Certificate chain, used for the digital signature verification. + /// + /// Certificate chain, used for the digital signature verification. + [DataMember(Name="CertificateChain", EmitDefaultValue=true)] + public List CertificateChain { get; set; } + + /// + /// Binary data array used to calculate the hash value for digital signature verification. Base64 encoded. + /// + /// Binary data array used to calculate the hash value for digital signature verification. Base64 encoded. + [DataMember(Name="DataToHash", EmitDefaultValue=true)] + public string DataToHash { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidSignerInfoEx {\n"); + sb.Append(" Version: ").Append(Version).Append("\n"); + sb.Append(" Issuer: ").Append(Issuer).Append("\n"); + sb.Append(" SerialNumber: ").Append(SerialNumber).Append("\n"); + sb.Append(" SubjectKeyIdentifier: ").Append(SubjectKeyIdentifier).Append("\n"); + sb.Append(" DigestAlgorithm: ").Append(DigestAlgorithm).Append("\n"); + sb.Append(" SignedAttributes: ").Append(SignedAttributes).Append("\n"); + sb.Append(" SignatureAlgorithm: ").Append(SignatureAlgorithm).Append("\n"); + sb.Append(" Signature: ").Append(Signature).Append("\n"); + sb.Append(" PAStatus: ").Append(PAStatus).Append("\n"); + sb.Append(" CertificateChain: ").Append(CertificateChain).Append("\n"); + sb.Append(" DataToHash: ").Append(DataToHash).Append("\n"); + sb.Append(" Notifications: ").Append(Notifications).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidSignerInfoEx); + } + + /// + /// Returns true if RfidSignerInfoEx instances are equal + /// + /// Instance of RfidSignerInfoEx to be compared + /// Boolean + public bool Equals(RfidSignerInfoEx input) + { + if (input == null) + return false; + + return + ( + this.Version == input.Version || + (this.Version != null && + this.Version.Equals(input.Version)) + ) && + ( + this.Issuer == input.Issuer || + (this.Issuer != null && + this.Issuer.Equals(input.Issuer)) + ) && + ( + this.SerialNumber == input.SerialNumber || + (this.SerialNumber != null && + this.SerialNumber.Equals(input.SerialNumber)) + ) && + ( + this.SubjectKeyIdentifier == input.SubjectKeyIdentifier || + (this.SubjectKeyIdentifier != null && + this.SubjectKeyIdentifier.Equals(input.SubjectKeyIdentifier)) + ) && + ( + this.DigestAlgorithm == input.DigestAlgorithm || + (this.DigestAlgorithm != null && + this.DigestAlgorithm.Equals(input.DigestAlgorithm)) + ) && + ( + this.SignedAttributes == input.SignedAttributes || + this.SignedAttributes != null && + input.SignedAttributes != null && + this.SignedAttributes.SequenceEqual(input.SignedAttributes) + ) && + ( + this.SignatureAlgorithm == input.SignatureAlgorithm || + (this.SignatureAlgorithm != null && + this.SignatureAlgorithm.Equals(input.SignatureAlgorithm)) + ) && + ( + this.Signature == input.Signature || + (this.Signature != null && + this.Signature.Equals(input.Signature)) + ) && + ( + this.PAStatus == input.PAStatus || + (this.PAStatus != null && + this.PAStatus.Equals(input.PAStatus)) + ) && + ( + this.CertificateChain == input.CertificateChain || + this.CertificateChain != null && + input.CertificateChain != null && + this.CertificateChain.SequenceEqual(input.CertificateChain) + ) && + ( + this.DataToHash == input.DataToHash || + (this.DataToHash != null && + this.DataToHash.Equals(input.DataToHash)) + ) && + ( + this.Notifications == input.Notifications || + (this.Notifications != null && + this.Notifications.Equals(input.Notifications)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Version != null) + hashCode = hashCode * 59 + this.Version.GetHashCode(); + if (this.Issuer != null) + hashCode = hashCode * 59 + this.Issuer.GetHashCode(); + if (this.SerialNumber != null) + hashCode = hashCode * 59 + this.SerialNumber.GetHashCode(); + if (this.SubjectKeyIdentifier != null) + hashCode = hashCode * 59 + this.SubjectKeyIdentifier.GetHashCode(); + if (this.DigestAlgorithm != null) + hashCode = hashCode * 59 + this.DigestAlgorithm.GetHashCode(); + if (this.SignedAttributes != null) + hashCode = hashCode * 59 + this.SignedAttributes.GetHashCode(); + if (this.SignatureAlgorithm != null) + hashCode = hashCode * 59 + this.SignatureAlgorithm.GetHashCode(); + if (this.Signature != null) + hashCode = hashCode * 59 + this.Signature.GetHashCode(); + if (this.PAStatus != null) + hashCode = hashCode * 59 + this.PAStatus.GetHashCode(); + if (this.CertificateChain != null) + hashCode = hashCode * 59 + this.CertificateChain.GetHashCode(); + if (this.DataToHash != null) + hashCode = hashCode * 59 + this.DataToHash.GetHashCode(); + if (this.Notifications != null) + hashCode = hashCode * 59 + this.Notifications.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidTerminal.cs b/src/Regula.DocumentReader.WebClient/Model/RfidTerminal.cs new file mode 100644 index 0000000..7ad5089 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidTerminal.cs @@ -0,0 +1,190 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure is used to describe the terminal type within the context of the communication session with electronic document + /// + [DataContract] + public partial class RfidTerminal : IEquatable, IValidatableObject + { + /// + /// Gets or Sets TermType + /// + [DataMember(Name="TermType", EmitDefaultValue=true)] + public RfidTerminalType TermType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidTerminal() { } + /// + /// Initializes a new instance of the class. + /// + /// termType (required). + /// Declared (set) combination of flags of access rights to the functionality of the document (combination of eRfidTerminalAuthorizationRequirement values) (required). + /// Declared (set) combination of flags of access rights to the functionality of the document (combination of RfidTerminalAuthorizationRequirement values) (required). + public RfidTerminal(RfidTerminalType termType = default(RfidTerminalType), decimal authReq = default(decimal), decimal authReq2 = default(decimal)) + { + // to ensure "termType" is required (not null) + if (termType == null) + { + throw new InvalidDataException("termType is a required property for RfidTerminal and cannot be null"); + } + else + { + this.TermType = termType; + } + + // to ensure "authReq" is required (not null) + if (authReq == null) + { + throw new InvalidDataException("authReq is a required property for RfidTerminal and cannot be null"); + } + else + { + this.AuthReq = authReq; + } + + // to ensure "authReq2" is required (not null) + if (authReq2 == null) + { + throw new InvalidDataException("authReq2 is a required property for RfidTerminal and cannot be null"); + } + else + { + this.AuthReq2 = authReq2; + } + + } + + + /// + /// Declared (set) combination of flags of access rights to the functionality of the document (combination of eRfidTerminalAuthorizationRequirement values) + /// + /// Declared (set) combination of flags of access rights to the functionality of the document (combination of eRfidTerminalAuthorizationRequirement values) + [DataMember(Name="AuthReq", EmitDefaultValue=true)] + public decimal AuthReq { get; set; } + + /// + /// Declared (set) combination of flags of access rights to the functionality of the document (combination of RfidTerminalAuthorizationRequirement values) + /// + /// Declared (set) combination of flags of access rights to the functionality of the document (combination of RfidTerminalAuthorizationRequirement values) + [DataMember(Name="AuthReq2", EmitDefaultValue=true)] + public decimal AuthReq2 { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidTerminal {\n"); + sb.Append(" TermType: ").Append(TermType).Append("\n"); + sb.Append(" AuthReq: ").Append(AuthReq).Append("\n"); + sb.Append(" AuthReq2: ").Append(AuthReq2).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidTerminal); + } + + /// + /// Returns true if RfidTerminal instances are equal + /// + /// Instance of RfidTerminal to be compared + /// Boolean + public bool Equals(RfidTerminal input) + { + if (input == null) + return false; + + return + ( + this.TermType == input.TermType || + (this.TermType != null && + this.TermType.Equals(input.TermType)) + ) && + ( + this.AuthReq == input.AuthReq || + (this.AuthReq != null && + this.AuthReq.Equals(input.AuthReq)) + ) && + ( + this.AuthReq2 == input.AuthReq2 || + (this.AuthReq2 != null && + this.AuthReq2.Equals(input.AuthReq2)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TermType != null) + hashCode = hashCode * 59 + this.TermType.GetHashCode(); + if (this.AuthReq != null) + hashCode = hashCode * 59 + this.AuthReq.GetHashCode(); + if (this.AuthReq2 != null) + hashCode = hashCode * 59 + this.AuthReq2.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/RfidTerminalType.cs b/src/Regula.DocumentReader.WebClient/Model/RfidTerminalType.cs new file mode 100644 index 0000000..aace946 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidTerminalType.cs @@ -0,0 +1,68 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration contains a set of constants that define the type of terminal within the context of the communication session with electronic document + /// + /// Enumeration contains a set of constants that define the type of terminal within the context of the communication session with electronic document + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RfidTerminalType + { + /// + /// Enum UNDEFINED for value: 0 + /// + [EnumMember(Value = "0")] + UNDEFINED = 1, + + /// + /// Enum INSPECTION_SYSTEM for value: 1 + /// + [EnumMember(Value = "1")] + INSPECTION_SYSTEM = 2, + + /// + /// Enum AUTHENTICATION_TERMINAL for value: 2 + /// + [EnumMember(Value = "2")] + AUTHENTICATION_TERMINAL = 3, + + /// + /// Enum SIGNATURE_TERMINAL for value: 3 + /// + [EnumMember(Value = "3")] + SIGNATURE_TERMINAL = 4, + + /// + /// Enum UNAUTHENTICATED_TERMINAL for value: 4 + /// + [EnumMember(Value = "4")] + UNAUTHENTICATED_TERMINAL = 5 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/RfidType.cs b/src/Regula.DocumentReader.WebClient/Model/RfidType.cs new file mode 100644 index 0000000..f52c2d3 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidType.cs @@ -0,0 +1,56 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Enumeration contains a set of constants specifying the type of the RFID-chip by the physical parameters of connection between antennas of the chip and the reader + /// + /// Enumeration contains a set of constants specifying the type of the RFID-chip by the physical parameters of connection between antennas of the chip and the reader + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RfidType + { + /// + /// Enum UNKNOWN for value: 0 + /// + [EnumMember(Value = "0")] + UNKNOWN = 1, + + /// + /// Enum A for value: 1 + /// + [EnumMember(Value = "1")] + A = 2, + + /// + /// Enum B for value: 2 + /// + [EnumMember(Value = "2")] + B = 3 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/RfidValidity.cs b/src/Regula.DocumentReader.WebClient/Model/RfidValidity.cs new file mode 100644 index 0000000..1d8f98a --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/RfidValidity.cs @@ -0,0 +1,163 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure contains information on a certificate validity. + /// + [DataContract] + public partial class RfidValidity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected RfidValidity() { } + /// + /// Initializes a new instance of the class. + /// + /// notBefore (required). + /// notAfter (required). + public RfidValidity(TrfFtString notBefore = default(TrfFtString), TrfFtString notAfter = default(TrfFtString)) + { + // to ensure "notBefore" is required (not null) + if (notBefore == null) + { + throw new InvalidDataException("notBefore is a required property for RfidValidity and cannot be null"); + } + else + { + this.NotBefore = notBefore; + } + + // to ensure "notAfter" is required (not null) + if (notAfter == null) + { + throw new InvalidDataException("notAfter is a required property for RfidValidity and cannot be null"); + } + else + { + this.NotAfter = notAfter; + } + + } + + /// + /// Gets or Sets NotBefore + /// + [DataMember(Name="NotBefore", EmitDefaultValue=true)] + public TrfFtString NotBefore { get; set; } + + /// + /// Gets or Sets NotAfter + /// + [DataMember(Name="NotAfter", EmitDefaultValue=true)] + public TrfFtString NotAfter { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RfidValidity {\n"); + sb.Append(" NotBefore: ").Append(NotBefore).Append("\n"); + sb.Append(" NotAfter: ").Append(NotAfter).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RfidValidity); + } + + /// + /// Returns true if RfidValidity instances are equal + /// + /// Instance of RfidValidity to be compared + /// Boolean + public bool Equals(RfidValidity input) + { + if (input == null) + return false; + + return + ( + this.NotBefore == input.NotBefore || + (this.NotBefore != null && + this.NotBefore.Equals(input.NotBefore)) + ) && + ( + this.NotAfter == input.NotAfter || + (this.NotAfter != null && + this.NotAfter.Equals(input.NotAfter)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NotBefore != null) + hashCode = hashCode * 59 + this.NotBefore.GetHashCode(); + if (this.NotAfter != null) + hashCode = hashCode * 59 + this.NotAfter.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/SecurityFeatureResult.cs b/src/Regula.DocumentReader.WebClient/Model/SecurityFeatureResult.cs index ffbc6f3..64b552b 100644 --- a/src/Regula.DocumentReader.WebClient/Model/SecurityFeatureResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/SecurityFeatureResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -28,7 +28,7 @@ namespace Regula.DocumentReader.WebClient.Model /// SecurityFeatureResult /// [DataContract] - public partial class SecurityFeatureResult : AuthenticityCheckResultItem, IEquatable, IValidatableObject + public partial class SecurityFeatureResult : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. @@ -38,44 +38,122 @@ protected SecurityFeatureResult() { } /// /// Initializes a new instance of the class. /// - /// elementType. - /// elementRect. - /// visibility. - /// criticalFlag. + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ (required) (default to 0). + /// elementResult. + /// elementDiagnose. + /// percentValue. + /// elementType (required). + /// elementRect (required). + /// visibility (required). + /// criticalFlag (required). /// areaList. /// reserved2. - public SecurityFeatureResult(int elementType = default(int), RectangleCoordinates elementRect = default(RectangleCoordinates), int visibility = default(int), int criticalFlag = default(int), AreaContainer areaList = default(AreaContainer), int reserved2 = default(int), int type = 0, int elementResult = default(int), int elementDiagnose = default(int), int percentValue = default(int)) : base(type, elementResult, elementDiagnose, percentValue) + public SecurityFeatureResult(int type = 0, int elementResult = default(int), int elementDiagnose = default(int), int percentValue = default(int), int elementType = default(int), RectangleCoordinates elementRect = default(RectangleCoordinates), int visibility = default(int), int criticalFlag = default(int), AreaContainer areaList = default(AreaContainer), int reserved2 = default(int)) { - this.ElementType = elementType; - this.ElementRect = elementRect; - this.Visibility = visibility; - this.CriticalFlag = criticalFlag; + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for SecurityFeatureResult and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "elementType" is required (not null) + if (elementType == null) + { + throw new InvalidDataException("elementType is a required property for SecurityFeatureResult and cannot be null"); + } + else + { + this.ElementType = elementType; + } + + // to ensure "elementRect" is required (not null) + if (elementRect == null) + { + throw new InvalidDataException("elementRect is a required property for SecurityFeatureResult and cannot be null"); + } + else + { + this.ElementRect = elementRect; + } + + // to ensure "visibility" is required (not null) + if (visibility == null) + { + throw new InvalidDataException("visibility is a required property for SecurityFeatureResult and cannot be null"); + } + else + { + this.Visibility = visibility; + } + + // to ensure "criticalFlag" is required (not null) + if (criticalFlag == null) + { + throw new InvalidDataException("criticalFlag is a required property for SecurityFeatureResult and cannot be null"); + } + else + { + this.CriticalFlag = criticalFlag; + } + + this.ElementResult = elementResult; + this.ElementDiagnose = elementDiagnose; + this.PercentValue = percentValue; this.AreaList = areaList; this.Reserved2 = reserved2; } + /// + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ + /// + /// Same as authenticity result type, but used for safe parsing of not-described values: https://docs.regulaforensics.com/develop/doc-reader-sdk/web-service/development/enums/authenticity-result-type/ + [DataMember(Name="Type", EmitDefaultValue=true)] + public int Type { get; set; } + + /// + /// Gets or Sets ElementResult + /// + [DataMember(Name="ElementResult", EmitDefaultValue=false)] + public int ElementResult { get; set; } + + /// + /// Gets or Sets ElementDiagnose + /// + [DataMember(Name="ElementDiagnose", EmitDefaultValue=false)] + public int ElementDiagnose { get; set; } + + /// + /// Gets or Sets PercentValue + /// + [DataMember(Name="PercentValue", EmitDefaultValue=false)] + public int PercentValue { get; set; } + /// /// Gets or Sets ElementType /// - [DataMember(Name="ElementType", EmitDefaultValue=false)] + [DataMember(Name="ElementType", EmitDefaultValue=true)] public int ElementType { get; set; } /// /// Gets or Sets ElementRect /// - [DataMember(Name="ElementRect", EmitDefaultValue=false)] + [DataMember(Name="ElementRect", EmitDefaultValue=true)] public RectangleCoordinates ElementRect { get; set; } /// /// Gets or Sets Visibility /// - [DataMember(Name="Visibility", EmitDefaultValue=false)] + [DataMember(Name="Visibility", EmitDefaultValue=true)] public int Visibility { get; set; } /// /// Gets or Sets CriticalFlag /// - [DataMember(Name="CriticalFlag", EmitDefaultValue=false)] + [DataMember(Name="CriticalFlag", EmitDefaultValue=true)] public int CriticalFlag { get; set; } /// @@ -98,7 +176,10 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class SecurityFeatureResult {\n"); - sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" ElementResult: ").Append(ElementResult).Append("\n"); + sb.Append(" ElementDiagnose: ").Append(ElementDiagnose).Append("\n"); + sb.Append(" PercentValue: ").Append(PercentValue).Append("\n"); sb.Append(" ElementType: ").Append(ElementType).Append("\n"); sb.Append(" ElementRect: ").Append(ElementRect).Append("\n"); sb.Append(" Visibility: ").Append(Visibility).Append("\n"); @@ -113,7 +194,7 @@ public override string ToString() /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object - public override string ToJson() + public virtual string ToJson() { return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } @@ -138,32 +219,52 @@ public bool Equals(SecurityFeatureResult input) if (input == null) return false; - return base.Equals(input) && + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.ElementResult == input.ElementResult || + (this.ElementResult != null && + this.ElementResult.Equals(input.ElementResult)) + ) && + ( + this.ElementDiagnose == input.ElementDiagnose || + (this.ElementDiagnose != null && + this.ElementDiagnose.Equals(input.ElementDiagnose)) + ) && + ( + this.PercentValue == input.PercentValue || + (this.PercentValue != null && + this.PercentValue.Equals(input.PercentValue)) + ) && ( this.ElementType == input.ElementType || (this.ElementType != null && this.ElementType.Equals(input.ElementType)) - ) && base.Equals(input) && + ) && ( this.ElementRect == input.ElementRect || (this.ElementRect != null && this.ElementRect.Equals(input.ElementRect)) - ) && base.Equals(input) && + ) && ( this.Visibility == input.Visibility || (this.Visibility != null && this.Visibility.Equals(input.Visibility)) - ) && base.Equals(input) && + ) && ( this.CriticalFlag == input.CriticalFlag || (this.CriticalFlag != null && this.CriticalFlag.Equals(input.CriticalFlag)) - ) && base.Equals(input) && + ) && ( this.AreaList == input.AreaList || (this.AreaList != null && this.AreaList.Equals(input.AreaList)) - ) && base.Equals(input) && + ) && ( this.Reserved2 == input.Reserved2 || (this.Reserved2 != null && @@ -179,7 +280,15 @@ public override int GetHashCode() { unchecked // Overflow is fine, just wrap { - int hashCode = base.GetHashCode(); + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.ElementResult != null) + hashCode = hashCode * 59 + this.ElementResult.GetHashCode(); + if (this.ElementDiagnose != null) + hashCode = hashCode * 59 + this.ElementDiagnose.GetHashCode(); + if (this.PercentValue != null) + hashCode = hashCode * 59 + this.PercentValue.GetHashCode(); if (this.ElementType != null) hashCode = hashCode * 59 + this.ElementType.GetHashCode(); if (this.ElementRect != null) @@ -203,7 +312,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - foreach(var x in base.BaseValidate(validationContext)) yield return x; yield break; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/SourceValidity.cs b/src/Regula.DocumentReader.WebClient/Model/SourceValidity.cs index a55327e..b197e4e 100644 --- a/src/Regula.DocumentReader.WebClient/Model/SourceValidity.cs +++ b/src/Regula.DocumentReader.WebClient/Model/SourceValidity.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/Status.cs b/src/Regula.DocumentReader.WebClient/Model/Status.cs index 3f8c225..8f87f92 100644 --- a/src/Regula.DocumentReader.WebClient/Model/Status.cs +++ b/src/Regula.DocumentReader.WebClient/Model/Status.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,9 +40,9 @@ protected Status() { } /// /// overallStatus (required). /// optical (required). - /// portrait. - /// rfid. - /// stopList. + /// portrait (required). + /// rfid (required). + /// stopList (required). /// detailsRFID. /// detailsOptical (required). public Status(int overallStatus = default(int), int optical = default(int), int portrait = default(int), int rfid = default(int), int stopList = default(int), DetailsRFID detailsRFID = default(DetailsRFID), DetailsOptical detailsOptical = default(DetailsOptical)) @@ -67,6 +67,36 @@ protected Status() { } this.Optical = optical; } + // to ensure "portrait" is required (not null) + if (portrait == null) + { + throw new InvalidDataException("portrait is a required property for Status and cannot be null"); + } + else + { + this.Portrait = portrait; + } + + // to ensure "rfid" is required (not null) + if (rfid == null) + { + throw new InvalidDataException("rfid is a required property for Status and cannot be null"); + } + else + { + this.Rfid = rfid; + } + + // to ensure "stopList" is required (not null) + if (stopList == null) + { + throw new InvalidDataException("stopList is a required property for Status and cannot be null"); + } + else + { + this.StopList = stopList; + } + // to ensure "detailsOptical" is required (not null) if (detailsOptical == null) { @@ -77,9 +107,6 @@ protected Status() { } this.DetailsOptical = detailsOptical; } - this.Portrait = portrait; - this.Rfid = rfid; - this.StopList = stopList; this.DetailsRFID = detailsRFID; } @@ -98,19 +125,19 @@ protected Status() { } /// /// Gets or Sets Portrait /// - [DataMember(Name="portrait", EmitDefaultValue=false)] + [DataMember(Name="portrait", EmitDefaultValue=true)] public int Portrait { get; set; } /// /// Gets or Sets Rfid /// - [DataMember(Name="rfid", EmitDefaultValue=false)] + [DataMember(Name="rfid", EmitDefaultValue=true)] public int Rfid { get; set; } /// /// Gets or Sets StopList /// - [DataMember(Name="stopList", EmitDefaultValue=false)] + [DataMember(Name="stopList", EmitDefaultValue=true)] public int StopList { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/StatusResult.cs b/src/Regula.DocumentReader.WebClient/Model/StatusResult.cs index 1ea40e4..4452762 100644 --- a/src/Regula.DocumentReader.WebClient/Model/StatusResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/StatusResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/StringRecognitionResult.cs b/src/Regula.DocumentReader.WebClient/Model/StringRecognitionResult.cs index 2377bf3..9cb0f42 100644 --- a/src/Regula.DocumentReader.WebClient/Model/StringRecognitionResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/StringRecognitionResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,9 +38,24 @@ protected StringRecognitionResult() { } /// /// Initializes a new instance of the class. /// + /// Number of StringResult array elements (required). + /// reserved. /// Array of recognition results for individual characters of a string (required). - public StringRecognitionResult(List stringResult = default(List)) + /// Buf_Text text string length. + /// Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^'. + public StringRecognitionResult(decimal symbolsCount = default(decimal), Object reserved = default(Object), List stringResult = default(List), decimal bufLength = default(decimal), string bufText = default(string)) { + // to ensure "symbolsCount" is required (not null) + if (symbolsCount == null) + { + throw new InvalidDataException("symbolsCount is a required property for StringRecognitionResult and cannot be null"); + } + else + { + this.SymbolsCount = symbolsCount; + } + + this.Reserved = reserved; // to ensure "stringResult" is required (not null) if (stringResult == null) { @@ -51,8 +66,24 @@ protected StringRecognitionResult() { } this.StringResult = stringResult; } + this.Reserved = reserved; + this.BufLength = bufLength; + this.BufText = bufText; } + /// + /// Number of StringResult array elements + /// + /// Number of StringResult array elements + [DataMember(Name="SymbolsCount", EmitDefaultValue=true)] + public decimal SymbolsCount { get; set; } + + /// + /// Gets or Sets Reserved + /// + [DataMember(Name="Reserved", EmitDefaultValue=true)] + public Object Reserved { get; set; } + /// /// Array of recognition results for individual characters of a string /// @@ -60,6 +91,20 @@ protected StringRecognitionResult() { } [DataMember(Name="StringResult", EmitDefaultValue=true)] public List StringResult { get; set; } + /// + /// Buf_Text text string length + /// + /// Buf_Text text string length + [DataMember(Name="Buf_Length", EmitDefaultValue=false)] + public decimal BufLength { get; set; } + + /// + /// Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' + /// + /// Text field data in UTF8 format. Results of reading different lines of a multi-line field are separated by '^' + [DataMember(Name="Buf_Text", EmitDefaultValue=false)] + public string BufText { get; set; } + /// /// Returns the string presentation of the object /// @@ -68,7 +113,11 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class StringRecognitionResult {\n"); + sb.Append(" SymbolsCount: ").Append(SymbolsCount).Append("\n"); + sb.Append(" Reserved: ").Append(Reserved).Append("\n"); sb.Append(" StringResult: ").Append(StringResult).Append("\n"); + sb.Append(" BufLength: ").Append(BufLength).Append("\n"); + sb.Append(" BufText: ").Append(BufText).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -103,11 +152,31 @@ public bool Equals(StringRecognitionResult input) return false; return + ( + this.SymbolsCount == input.SymbolsCount || + (this.SymbolsCount != null && + this.SymbolsCount.Equals(input.SymbolsCount)) + ) && + ( + this.Reserved == input.Reserved || + (this.Reserved != null && + this.Reserved.Equals(input.Reserved)) + ) && ( this.StringResult == input.StringResult || this.StringResult != null && input.StringResult != null && this.StringResult.SequenceEqual(input.StringResult) + ) && + ( + this.BufLength == input.BufLength || + (this.BufLength != null && + this.BufLength.Equals(input.BufLength)) + ) && + ( + this.BufText == input.BufText || + (this.BufText != null && + this.BufText.Equals(input.BufText)) ); } @@ -120,8 +189,16 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.SymbolsCount != null) + hashCode = hashCode * 59 + this.SymbolsCount.GetHashCode(); + if (this.Reserved != null) + hashCode = hashCode * 59 + this.Reserved.GetHashCode(); if (this.StringResult != null) hashCode = hashCode * 59 + this.StringResult.GetHashCode(); + if (this.BufLength != null) + hashCode = hashCode * 59 + this.BufLength.GetHashCode(); + if (this.BufText != null) + hashCode = hashCode * 59 + this.BufText.GetHashCode(); return hashCode; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/SymbolCandidate.cs b/src/Regula.DocumentReader.WebClient/Model/SymbolCandidate.cs index d08b313..1cbdc62 100644 --- a/src/Regula.DocumentReader.WebClient/Model/SymbolCandidate.cs +++ b/src/Regula.DocumentReader.WebClient/Model/SymbolCandidate.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,7 +40,8 @@ protected SymbolCandidate() { } /// /// Unicode symbol code (required). /// character recognition probability (0–100,%) (required). - public SymbolCandidate(int symbolCode = default(int), int symbolProbability = default(int)) + /// reserved. + public SymbolCandidate(int symbolCode = default(int), int symbolProbability = default(int), Object reserved = default(Object)) { // to ensure "symbolCode" is required (not null) if (symbolCode == null) @@ -62,6 +63,8 @@ protected SymbolCandidate() { } this.SymbolProbability = symbolProbability; } + this.Reserved = reserved; + this.Reserved = reserved; } /// @@ -78,6 +81,12 @@ protected SymbolCandidate() { } [DataMember(Name="SymbolProbability", EmitDefaultValue=true)] public int SymbolProbability { get; set; } + /// + /// Gets or Sets Reserved + /// + [DataMember(Name="Reserved", EmitDefaultValue=true)] + public Object Reserved { get; set; } + /// /// Returns the string presentation of the object /// @@ -88,6 +97,7 @@ public override string ToString() sb.Append("class SymbolCandidate {\n"); sb.Append(" SymbolCode: ").Append(SymbolCode).Append("\n"); sb.Append(" SymbolProbability: ").Append(SymbolProbability).Append("\n"); + sb.Append(" Reserved: ").Append(Reserved).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -131,6 +141,11 @@ public bool Equals(SymbolCandidate input) this.SymbolProbability == input.SymbolProbability || (this.SymbolProbability != null && this.SymbolProbability.Equals(input.SymbolProbability)) + ) && + ( + this.Reserved == input.Reserved || + (this.Reserved != null && + this.Reserved.Equals(input.Reserved)) ); } @@ -147,6 +162,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.SymbolCode.GetHashCode(); if (this.SymbolProbability != null) hashCode = hashCode * 59 + this.SymbolProbability.GetHashCode(); + if (this.Reserved != null) + hashCode = hashCode * 59 + this.Reserved.GetHashCode(); return hashCode; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/SymbolRecognitionResult.cs b/src/Regula.DocumentReader.WebClient/Model/SymbolRecognitionResult.cs index faf2316..612266d 100644 --- a/src/Regula.DocumentReader.WebClient/Model/SymbolRecognitionResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/SymbolRecognitionResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,8 +39,10 @@ protected SymbolRecognitionResult() { } /// Initializes a new instance of the class. /// /// symbolRect (required). + /// Number of significant elements of ListOfCandidates array (required). /// Array of candidate characters. Sorted in descending order of recognition probabilities (the first element has highest probability) (required). - public SymbolRecognitionResult(RectangleCoordinates symbolRect = default(RectangleCoordinates), List listOfCandidates = default(List)) + /// reserved. + public SymbolRecognitionResult(RectangleCoordinates symbolRect = default(RectangleCoordinates), decimal candidatesCount = default(decimal), List listOfCandidates = default(List), Object reserved = default(Object)) { // to ensure "symbolRect" is required (not null) if (symbolRect == null) @@ -52,6 +54,16 @@ protected SymbolRecognitionResult() { } this.SymbolRect = symbolRect; } + // to ensure "candidatesCount" is required (not null) + if (candidatesCount == null) + { + throw new InvalidDataException("candidatesCount is a required property for SymbolRecognitionResult and cannot be null"); + } + else + { + this.CandidatesCount = candidatesCount; + } + // to ensure "listOfCandidates" is required (not null) if (listOfCandidates == null) { @@ -62,6 +74,8 @@ protected SymbolRecognitionResult() { } this.ListOfCandidates = listOfCandidates; } + this.Reserved = reserved; + this.Reserved = reserved; } /// @@ -70,6 +84,13 @@ protected SymbolRecognitionResult() { } [DataMember(Name="SymbolRect", EmitDefaultValue=true)] public RectangleCoordinates SymbolRect { get; set; } + /// + /// Number of significant elements of ListOfCandidates array + /// + /// Number of significant elements of ListOfCandidates array + [DataMember(Name="CandidatesCount", EmitDefaultValue=true)] + public decimal CandidatesCount { get; set; } + /// /// Array of candidate characters. Sorted in descending order of recognition probabilities (the first element has highest probability) /// @@ -77,6 +98,12 @@ protected SymbolRecognitionResult() { } [DataMember(Name="ListOfCandidates", EmitDefaultValue=true)] public List ListOfCandidates { get; set; } + /// + /// Gets or Sets Reserved + /// + [DataMember(Name="Reserved", EmitDefaultValue=true)] + public Object Reserved { get; set; } + /// /// Returns the string presentation of the object /// @@ -86,7 +113,9 @@ public override string ToString() var sb = new StringBuilder(); sb.Append("class SymbolRecognitionResult {\n"); sb.Append(" SymbolRect: ").Append(SymbolRect).Append("\n"); + sb.Append(" CandidatesCount: ").Append(CandidatesCount).Append("\n"); sb.Append(" ListOfCandidates: ").Append(ListOfCandidates).Append("\n"); + sb.Append(" Reserved: ").Append(Reserved).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -126,11 +155,21 @@ public bool Equals(SymbolRecognitionResult input) (this.SymbolRect != null && this.SymbolRect.Equals(input.SymbolRect)) ) && + ( + this.CandidatesCount == input.CandidatesCount || + (this.CandidatesCount != null && + this.CandidatesCount.Equals(input.CandidatesCount)) + ) && ( this.ListOfCandidates == input.ListOfCandidates || this.ListOfCandidates != null && input.ListOfCandidates != null && this.ListOfCandidates.SequenceEqual(input.ListOfCandidates) + ) && + ( + this.Reserved == input.Reserved || + (this.Reserved != null && + this.Reserved.Equals(input.Reserved)) ); } @@ -145,8 +184,12 @@ public override int GetHashCode() int hashCode = 41; if (this.SymbolRect != null) hashCode = hashCode * 59 + this.SymbolRect.GetHashCode(); + if (this.CandidatesCount != null) + hashCode = hashCode * 59 + this.CandidatesCount.GetHashCode(); if (this.ListOfCandidates != null) hashCode = hashCode * 59 + this.ListOfCandidates.GetHashCode(); + if (this.Reserved != null) + hashCode = hashCode * 59 + this.Reserved.GetHashCode(); return hashCode; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/TDocBinaryInfo.cs b/src/Regula.DocumentReader.WebClient/Model/TDocBinaryInfo.cs new file mode 100644 index 0000000..0bae536 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/TDocBinaryInfo.cs @@ -0,0 +1,138 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// TDocBinaryInfo + /// + [DataContract] + public partial class TDocBinaryInfo : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TDocBinaryInfo() { } + /// + /// Initializes a new instance of the class. + /// + /// rFIDBINARYDATA (required). + public TDocBinaryInfo(BinaryData rFIDBINARYDATA = default(BinaryData)) + { + // to ensure "rFIDBINARYDATA" is required (not null) + if (rFIDBINARYDATA == null) + { + throw new InvalidDataException("rFIDBINARYDATA is a required property for TDocBinaryInfo and cannot be null"); + } + else + { + this.RFID_BINARY_DATA = rFIDBINARYDATA; + } + + } + + /// + /// Gets or Sets RFID_BINARY_DATA + /// + [DataMember(Name="RFID_BINARY_DATA", EmitDefaultValue=true)] + public BinaryData RFID_BINARY_DATA { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TDocBinaryInfo {\n"); + sb.Append(" RFID_BINARY_DATA: ").Append(RFID_BINARY_DATA).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TDocBinaryInfo); + } + + /// + /// Returns true if TDocBinaryInfo instances are equal + /// + /// Instance of TDocBinaryInfo to be compared + /// Boolean + public bool Equals(TDocBinaryInfo input) + { + if (input == null) + return false; + + return + ( + this.RFID_BINARY_DATA == input.RFID_BINARY_DATA || + (this.RFID_BINARY_DATA != null && + this.RFID_BINARY_DATA.Equals(input.RFID_BINARY_DATA)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RFID_BINARY_DATA != null) + hashCode = hashCode * 59 + this.RFID_BINARY_DATA.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/Text.cs b/src/Regula.DocumentReader.WebClient/Model/Text.cs index 8a261e4..fa70161 100644 --- a/src/Regula.DocumentReader.WebClient/Model/Text.cs +++ b/src/Regula.DocumentReader.WebClient/Model/Text.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,9 +41,10 @@ protected Text() { } /// status (required). /// validityStatus (required). /// comparisonStatus (required). + /// Date format (required). /// fieldList (required). /// availableSourceList (required). - public Text(int status = default(int), int validityStatus = default(int), int comparisonStatus = default(int), List fieldList = default(List), List availableSourceList = default(List)) + public Text(int status = default(int), int validityStatus = default(int), int comparisonStatus = default(int), string dateFormat = default(string), List fieldList = default(List), List availableSourceList = default(List)) { // to ensure "status" is required (not null) if (status == null) @@ -75,6 +76,16 @@ protected Text() { } this.ComparisonStatus = comparisonStatus; } + // to ensure "dateFormat" is required (not null) + if (dateFormat == null) + { + throw new InvalidDataException("dateFormat is a required property for Text and cannot be null"); + } + else + { + this.DateFormat = dateFormat; + } + // to ensure "fieldList" is required (not null) if (fieldList == null) { @@ -115,6 +126,13 @@ protected Text() { } [DataMember(Name="comparisonStatus", EmitDefaultValue=true)] public int ComparisonStatus { get; set; } + /// + /// Date format + /// + /// Date format + [DataMember(Name="dateFormat", EmitDefaultValue=true)] + public string DateFormat { get; set; } + /// /// Gets or Sets FieldList /// @@ -138,6 +156,7 @@ public override string ToString() sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" ValidityStatus: ").Append(ValidityStatus).Append("\n"); sb.Append(" ComparisonStatus: ").Append(ComparisonStatus).Append("\n"); + sb.Append(" DateFormat: ").Append(DateFormat).Append("\n"); sb.Append(" FieldList: ").Append(FieldList).Append("\n"); sb.Append(" AvailableSourceList: ").Append(AvailableSourceList).Append("\n"); sb.Append("}\n"); @@ -189,6 +208,11 @@ public bool Equals(Text input) (this.ComparisonStatus != null && this.ComparisonStatus.Equals(input.ComparisonStatus)) ) && + ( + this.DateFormat == input.DateFormat || + (this.DateFormat != null && + this.DateFormat.Equals(input.DateFormat)) + ) && ( this.FieldList == input.FieldList || this.FieldList != null && @@ -218,6 +242,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.ValidityStatus.GetHashCode(); if (this.ComparisonStatus != null) hashCode = hashCode * 59 + this.ComparisonStatus.GetHashCode(); + if (this.DateFormat != null) + hashCode = hashCode * 59 + this.DateFormat.GetHashCode(); if (this.FieldList != null) hashCode = hashCode * 59 + this.FieldList.GetHashCode(); if (this.AvailableSourceList != null) diff --git a/src/Regula.DocumentReader.WebClient/Model/TextAvailableSource.cs b/src/Regula.DocumentReader.WebClient/Model/TextAvailableSource.cs index eceff7d..492944f 100644 --- a/src/Regula.DocumentReader.WebClient/Model/TextAvailableSource.cs +++ b/src/Regula.DocumentReader.WebClient/Model/TextAvailableSource.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/TextDataResult.cs b/src/Regula.DocumentReader.WebClient/Model/TextDataResult.cs index f808835..901e170 100644 --- a/src/Regula.DocumentReader.WebClient/Model/TextDataResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/TextDataResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,16 +38,25 @@ protected TextDataResult() { } /// /// Initializes a new instance of the class. /// - /// docVisualExtendedInfo. + /// docVisualExtendedInfo (required). public TextDataResult(DocVisualExtendedInfo docVisualExtendedInfo = default(DocVisualExtendedInfo), int bufLength = default(int), int light = default(int), int listIdx = default(int), int pageIdx = default(int), int resultType = 0) : base(bufLength, light, listIdx, pageIdx, resultType) { - this.DocVisualExtendedInfo = docVisualExtendedInfo; + // to ensure "docVisualExtendedInfo" is required (not null) + if (docVisualExtendedInfo == null) + { + throw new InvalidDataException("docVisualExtendedInfo is a required property for TextDataResult and cannot be null"); + } + else + { + this.DocVisualExtendedInfo = docVisualExtendedInfo; + } + } /// /// Gets or Sets DocVisualExtendedInfo /// - [DataMember(Name="DocVisualExtendedInfo", EmitDefaultValue=false)] + [DataMember(Name="DocVisualExtendedInfo", EmitDefaultValue=true)] public DocVisualExtendedInfo DocVisualExtendedInfo { get; set; } /// diff --git a/src/Regula.DocumentReader.WebClient/Model/TextField.cs b/src/Regula.DocumentReader.WebClient/Model/TextField.cs index 5fd5184..bd0146a 100644 --- a/src/Regula.DocumentReader.WebClient/Model/TextField.cs +++ b/src/Regula.DocumentReader.WebClient/Model/TextField.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,7 +40,8 @@ protected TextField() { } /// /// fieldType (required). /// Field name. Only use to search values for fields with fieldType=50(other). In general, use fieldType for lookup. (required). - /// lcid. + /// lcid (required). + /// LCID name (required). /// status (required). /// validityStatus (required). /// comparisonStatus (required). @@ -48,7 +49,7 @@ protected TextField() { } /// valueList (required). /// Validity of all field values for given source. If there are two values on different pages for one field-source pair, then validity also will include logical match checking. If such values do not match, validity will return error. (required). /// comparisonList (required). - public TextField(int fieldType = default(int), string fieldName = default(string), int lcid = default(int), int status = default(int), int validityStatus = default(int), int comparisonStatus = default(int), string value = default(string), List valueList = default(List), List validityList = default(List), List comparisonList = default(List)) + public TextField(int fieldType = default(int), string fieldName = default(string), int lcid = default(int), string lcidName = default(string), int status = default(int), int validityStatus = default(int), int comparisonStatus = default(int), string value = default(string), List valueList = default(List), List validityList = default(List), List comparisonList = default(List)) { // to ensure "fieldType" is required (not null) if (fieldType == null) @@ -70,6 +71,26 @@ protected TextField() { } this.FieldName = fieldName; } + // to ensure "lcid" is required (not null) + if (lcid == null) + { + throw new InvalidDataException("lcid is a required property for TextField and cannot be null"); + } + else + { + this.Lcid = lcid; + } + + // to ensure "lcidName" is required (not null) + if (lcidName == null) + { + throw new InvalidDataException("lcidName is a required property for TextField and cannot be null"); + } + else + { + this.LcidName = lcidName; + } + // to ensure "status" is required (not null) if (status == null) { @@ -140,7 +161,6 @@ protected TextField() { } this.ComparisonList = comparisonList; } - this.Lcid = lcid; } /// @@ -159,9 +179,16 @@ protected TextField() { } /// /// Gets or Sets Lcid /// - [DataMember(Name="lcid", EmitDefaultValue=false)] + [DataMember(Name="lcid", EmitDefaultValue=true)] public int Lcid { get; set; } + /// + /// LCID name + /// + /// LCID name + [DataMember(Name="lcidName", EmitDefaultValue=true)] + public string LcidName { get; set; } + /// /// Gets or Sets Status /// @@ -217,6 +244,7 @@ public override string ToString() sb.Append(" FieldType: ").Append(FieldType).Append("\n"); sb.Append(" FieldName: ").Append(FieldName).Append("\n"); sb.Append(" Lcid: ").Append(Lcid).Append("\n"); + sb.Append(" LcidName: ").Append(LcidName).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" ValidityStatus: ").Append(ValidityStatus).Append("\n"); sb.Append(" ComparisonStatus: ").Append(ComparisonStatus).Append("\n"); @@ -273,6 +301,11 @@ public bool Equals(TextField input) (this.Lcid != null && this.Lcid.Equals(input.Lcid)) ) && + ( + this.LcidName == input.LcidName || + (this.LcidName != null && + this.LcidName.Equals(input.LcidName)) + ) && ( this.Status == input.Status || (this.Status != null && @@ -328,6 +361,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.FieldName.GetHashCode(); if (this.Lcid != null) hashCode = hashCode * 59 + this.Lcid.GetHashCode(); + if (this.LcidName != null) + hashCode = hashCode * 59 + this.LcidName.GetHashCode(); if (this.Status != null) hashCode = hashCode * 59 + this.Status.GetHashCode(); if (this.ValidityStatus != null) diff --git a/src/Regula.DocumentReader.WebClient/Model/TextFieldValue.cs b/src/Regula.DocumentReader.WebClient/Model/TextFieldValue.cs index 1626c8a..d69c1c3 100644 --- a/src/Regula.DocumentReader.WebClient/Model/TextFieldValue.cs +++ b/src/Regula.DocumentReader.WebClient/Model/TextFieldValue.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,12 +41,13 @@ protected TextFieldValue() { } /// source (required). /// Parsed/processed value. Date format converted for output, delimiters removed (required). /// Original value as seen in the document. + /// originalValidity (required). /// originalSymbols. /// Page index of the image from input list (required). - /// Min recognition probability. Combined minimum probability from single characters probabilities. + /// Min recognition probability. Combined minimum probability from single characters probabilities (required). /// fieldRect. /// rfidOrigin. - public TextFieldValue(string source = default(string), string value = default(string), string originalValue = default(string), List originalSymbols = default(List), int pageIndex = default(int), int probability = default(int), RectangleCoordinates fieldRect = default(RectangleCoordinates), RfidOrigin rfidOrigin = default(RfidOrigin)) + public TextFieldValue(string source = default(string), string value = default(string), string originalValue = default(string), int originalValidity = default(int), List originalSymbols = default(List), int pageIndex = default(int), int probability = default(int), RectangleCoordinates fieldRect = default(RectangleCoordinates), RfidOrigin rfidOrigin = default(RfidOrigin)) { // to ensure "source" is required (not null) if (source == null) @@ -68,6 +69,16 @@ protected TextFieldValue() { } this.Value = value; } + // to ensure "originalValidity" is required (not null) + if (originalValidity == null) + { + throw new InvalidDataException("originalValidity is a required property for TextFieldValue and cannot be null"); + } + else + { + this.OriginalValidity = originalValidity; + } + // to ensure "pageIndex" is required (not null) if (pageIndex == null) { @@ -78,9 +89,18 @@ protected TextFieldValue() { } this.PageIndex = pageIndex; } + // to ensure "probability" is required (not null) + if (probability == null) + { + throw new InvalidDataException("probability is a required property for TextFieldValue and cannot be null"); + } + else + { + this.Probability = probability; + } + this.OriginalValue = originalValue; this.OriginalSymbols = originalSymbols; - this.Probability = probability; this.FieldRect = fieldRect; this.RfidOrigin = rfidOrigin; } @@ -105,6 +125,12 @@ protected TextFieldValue() { } [DataMember(Name="originalValue", EmitDefaultValue=false)] public string OriginalValue { get; set; } + /// + /// Gets or Sets OriginalValidity + /// + [DataMember(Name="originalValidity", EmitDefaultValue=true)] + public int OriginalValidity { get; set; } + /// /// Gets or Sets OriginalSymbols /// @@ -122,7 +148,7 @@ protected TextFieldValue() { } /// Min recognition probability. Combined minimum probability from single characters probabilities /// /// Min recognition probability. Combined minimum probability from single characters probabilities - [DataMember(Name="probability", EmitDefaultValue=false)] + [DataMember(Name="probability", EmitDefaultValue=true)] public int Probability { get; set; } /// @@ -148,6 +174,7 @@ public override string ToString() sb.Append(" Source: ").Append(Source).Append("\n"); sb.Append(" Value: ").Append(Value).Append("\n"); sb.Append(" OriginalValue: ").Append(OriginalValue).Append("\n"); + sb.Append(" OriginalValidity: ").Append(OriginalValidity).Append("\n"); sb.Append(" OriginalSymbols: ").Append(OriginalSymbols).Append("\n"); sb.Append(" PageIndex: ").Append(PageIndex).Append("\n"); sb.Append(" Probability: ").Append(Probability).Append("\n"); @@ -202,6 +229,11 @@ public bool Equals(TextFieldValue input) (this.OriginalValue != null && this.OriginalValue.Equals(input.OriginalValue)) ) && + ( + this.OriginalValidity == input.OriginalValidity || + (this.OriginalValidity != null && + this.OriginalValidity.Equals(input.OriginalValidity)) + ) && ( this.OriginalSymbols == input.OriginalSymbols || this.OriginalSymbols != null && @@ -245,6 +277,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Value.GetHashCode(); if (this.OriginalValue != null) hashCode = hashCode * 59 + this.OriginalValue.GetHashCode(); + if (this.OriginalValidity != null) + hashCode = hashCode * 59 + this.OriginalValidity.GetHashCode(); if (this.OriginalSymbols != null) hashCode = hashCode * 59 + this.OriginalSymbols.GetHashCode(); if (this.PageIndex != null) diff --git a/src/Regula.DocumentReader.WebClient/Model/TextResult.cs b/src/Regula.DocumentReader.WebClient/Model/TextResult.cs index ecab932..6f66500 100644 --- a/src/Regula.DocumentReader.WebClient/Model/TextResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/TextResult.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/TransactionImage.cs b/src/Regula.DocumentReader.WebClient/Model/TransactionImage.cs index 0303ed8..7d21d40 100644 --- a/src/Regula.DocumentReader.WebClient/Model/TransactionImage.cs +++ b/src/Regula.DocumentReader.WebClient/Model/TransactionImage.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/TransactionInfo.cs b/src/Regula.DocumentReader.WebClient/Model/TransactionInfo.cs index 8cc5c6a..c2fc448 100644 --- a/src/Regula.DocumentReader.WebClient/Model/TransactionInfo.cs +++ b/src/Regula.DocumentReader.WebClient/Model/TransactionInfo.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/TransactionProcessGetResponse.cs b/src/Regula.DocumentReader.WebClient/Model/TransactionProcessGetResponse.cs index e019332..3407049 100644 --- a/src/Regula.DocumentReader.WebClient/Model/TransactionProcessGetResponse.cs +++ b/src/Regula.DocumentReader.WebClient/Model/TransactionProcessGetResponse.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/TransactionProcessRequest.cs b/src/Regula.DocumentReader.WebClient/Model/TransactionProcessRequest.cs index ebc5726..b915508 100644 --- a/src/Regula.DocumentReader.WebClient/Model/TransactionProcessRequest.cs +++ b/src/Regula.DocumentReader.WebClient/Model/TransactionProcessRequest.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/Regula.DocumentReader.WebClient/Model/TransactionProcessResponse.cs b/src/Regula.DocumentReader.WebClient/Model/TransactionProcessResponse.cs new file mode 100644 index 0000000..85ded69 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/TransactionProcessResponse.cs @@ -0,0 +1,341 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// TransactionProcessResponse + /// + [DataContract] + public partial class TransactionProcessResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TransactionProcessResponse() { } + /// + /// Initializes a new instance of the class. + /// + /// coreLibResultCode (required). + /// chipPage (required). + /// processingFinished (required). + /// containerList (required). + /// transactionInfo (required). + /// Base64 encoded transaction processing log. + /// Free-form object provided in request. See passBackObject property of ProcessRequest.. + /// morePagesAvailable (required). + /// Time the document processing has taken, ms. (required). + /// metadata. + public TransactionProcessResponse(int coreLibResultCode = default(int), int chipPage = default(int), int processingFinished = default(int), ContainerList containerList = default(ContainerList), TransactionInfo transactionInfo = default(TransactionInfo), string log = default(string), Dictionary passBackObject = default(Dictionary), int morePagesAvailable = default(int), int elapsedTime = default(int), Dictionary metadata = default(Dictionary)) + { + // to ensure "coreLibResultCode" is required (not null) + if (coreLibResultCode == null) + { + throw new InvalidDataException("coreLibResultCode is a required property for TransactionProcessResponse and cannot be null"); + } + else + { + this.CoreLibResultCode = coreLibResultCode; + } + + // to ensure "chipPage" is required (not null) + if (chipPage == null) + { + throw new InvalidDataException("chipPage is a required property for TransactionProcessResponse and cannot be null"); + } + else + { + this.ChipPage = chipPage; + } + + // to ensure "processingFinished" is required (not null) + if (processingFinished == null) + { + throw new InvalidDataException("processingFinished is a required property for TransactionProcessResponse and cannot be null"); + } + else + { + this.ProcessingFinished = processingFinished; + } + + // to ensure "containerList" is required (not null) + if (containerList == null) + { + throw new InvalidDataException("containerList is a required property for TransactionProcessResponse and cannot be null"); + } + else + { + this.ContainerList = containerList; + } + + // to ensure "transactionInfo" is required (not null) + if (transactionInfo == null) + { + throw new InvalidDataException("transactionInfo is a required property for TransactionProcessResponse and cannot be null"); + } + else + { + this.TransactionInfo = transactionInfo; + } + + // to ensure "morePagesAvailable" is required (not null) + if (morePagesAvailable == null) + { + throw new InvalidDataException("morePagesAvailable is a required property for TransactionProcessResponse and cannot be null"); + } + else + { + this.MorePagesAvailable = morePagesAvailable; + } + + // to ensure "elapsedTime" is required (not null) + if (elapsedTime == null) + { + throw new InvalidDataException("elapsedTime is a required property for TransactionProcessResponse and cannot be null"); + } + else + { + this.ElapsedTime = elapsedTime; + } + + this.Log = log; + this.PassBackObject = passBackObject; + this.Metadata = metadata; + } + + /// + /// Gets or Sets CoreLibResultCode + /// + [DataMember(Name="CoreLibResultCode", EmitDefaultValue=true)] + public int CoreLibResultCode { get; set; } + + /// + /// Gets or Sets ChipPage + /// + [DataMember(Name="ChipPage", EmitDefaultValue=true)] + public int ChipPage { get; set; } + + /// + /// Gets or Sets ProcessingFinished + /// + [DataMember(Name="ProcessingFinished", EmitDefaultValue=true)] + public int ProcessingFinished { get; set; } + + /// + /// Gets or Sets ContainerList + /// + [DataMember(Name="ContainerList", EmitDefaultValue=true)] + public ContainerList ContainerList { get; set; } + + /// + /// Gets or Sets TransactionInfo + /// + [DataMember(Name="TransactionInfo", EmitDefaultValue=true)] + public TransactionInfo TransactionInfo { get; set; } + + /// + /// Base64 encoded transaction processing log + /// + /// Base64 encoded transaction processing log + [DataMember(Name="log", EmitDefaultValue=false)] + public string Log { get; set; } + + /// + /// Free-form object provided in request. See passBackObject property of ProcessRequest. + /// + /// Free-form object provided in request. See passBackObject property of ProcessRequest. + [DataMember(Name="passBackObject", EmitDefaultValue=false)] + public Dictionary PassBackObject { get; set; } + + /// + /// Gets or Sets MorePagesAvailable + /// + [DataMember(Name="morePagesAvailable", EmitDefaultValue=true)] + public int MorePagesAvailable { get; set; } + + /// + /// Time the document processing has taken, ms. + /// + /// Time the document processing has taken, ms. + [DataMember(Name="elapsedTime", EmitDefaultValue=true)] + public int ElapsedTime { get; set; } + + /// + /// Gets or Sets Metadata + /// + [DataMember(Name="metadata", EmitDefaultValue=false)] + public Dictionary Metadata { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TransactionProcessResponse {\n"); + sb.Append(" CoreLibResultCode: ").Append(CoreLibResultCode).Append("\n"); + sb.Append(" ChipPage: ").Append(ChipPage).Append("\n"); + sb.Append(" ProcessingFinished: ").Append(ProcessingFinished).Append("\n"); + sb.Append(" ContainerList: ").Append(ContainerList).Append("\n"); + sb.Append(" TransactionInfo: ").Append(TransactionInfo).Append("\n"); + sb.Append(" Log: ").Append(Log).Append("\n"); + sb.Append(" PassBackObject: ").Append(PassBackObject).Append("\n"); + sb.Append(" MorePagesAvailable: ").Append(MorePagesAvailable).Append("\n"); + sb.Append(" ElapsedTime: ").Append(ElapsedTime).Append("\n"); + sb.Append(" Metadata: ").Append(Metadata).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TransactionProcessResponse); + } + + /// + /// Returns true if TransactionProcessResponse instances are equal + /// + /// Instance of TransactionProcessResponse to be compared + /// Boolean + public bool Equals(TransactionProcessResponse input) + { + if (input == null) + return false; + + return + ( + this.CoreLibResultCode == input.CoreLibResultCode || + (this.CoreLibResultCode != null && + this.CoreLibResultCode.Equals(input.CoreLibResultCode)) + ) && + ( + this.ChipPage == input.ChipPage || + (this.ChipPage != null && + this.ChipPage.Equals(input.ChipPage)) + ) && + ( + this.ProcessingFinished == input.ProcessingFinished || + (this.ProcessingFinished != null && + this.ProcessingFinished.Equals(input.ProcessingFinished)) + ) && + ( + this.ContainerList == input.ContainerList || + (this.ContainerList != null && + this.ContainerList.Equals(input.ContainerList)) + ) && + ( + this.TransactionInfo == input.TransactionInfo || + (this.TransactionInfo != null && + this.TransactionInfo.Equals(input.TransactionInfo)) + ) && + ( + this.Log == input.Log || + (this.Log != null && + this.Log.Equals(input.Log)) + ) && + ( + this.PassBackObject == input.PassBackObject || + this.PassBackObject != null && + input.PassBackObject != null && + this.PassBackObject.SequenceEqual(input.PassBackObject) + ) && + ( + this.MorePagesAvailable == input.MorePagesAvailable || + (this.MorePagesAvailable != null && + this.MorePagesAvailable.Equals(input.MorePagesAvailable)) + ) && + ( + this.ElapsedTime == input.ElapsedTime || + (this.ElapsedTime != null && + this.ElapsedTime.Equals(input.ElapsedTime)) + ) && + ( + this.Metadata == input.Metadata || + this.Metadata != null && + input.Metadata != null && + this.Metadata.SequenceEqual(input.Metadata) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CoreLibResultCode != null) + hashCode = hashCode * 59 + this.CoreLibResultCode.GetHashCode(); + if (this.ChipPage != null) + hashCode = hashCode * 59 + this.ChipPage.GetHashCode(); + if (this.ProcessingFinished != null) + hashCode = hashCode * 59 + this.ProcessingFinished.GetHashCode(); + if (this.ContainerList != null) + hashCode = hashCode * 59 + this.ContainerList.GetHashCode(); + if (this.TransactionInfo != null) + hashCode = hashCode * 59 + this.TransactionInfo.GetHashCode(); + if (this.Log != null) + hashCode = hashCode * 59 + this.Log.GetHashCode(); + if (this.PassBackObject != null) + hashCode = hashCode * 59 + this.PassBackObject.GetHashCode(); + if (this.MorePagesAvailable != null) + hashCode = hashCode * 59 + this.MorePagesAvailable.GetHashCode(); + if (this.ElapsedTime != null) + hashCode = hashCode * 59 + this.ElapsedTime.GetHashCode(); + if (this.Metadata != null) + hashCode = hashCode * 59 + this.Metadata.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/TransactionProcessResult.cs b/src/Regula.DocumentReader.WebClient/Model/TransactionProcessResult.cs new file mode 100644 index 0000000..01f05b8 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/TransactionProcessResult.cs @@ -0,0 +1,172 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// TransactionProcessResult + /// + [DataContract] + public partial class TransactionProcessResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// outData. + /// inData. + /// tag. + /// transactionId. + public TransactionProcessResult(OutData outData = default(OutData), InData inData = default(InData), string tag = default(string), Guid transactionId = default(Guid)) + { + this.OutData = outData; + this.InData = inData; + this.Tag = tag; + this.TransactionId = transactionId; + } + + /// + /// Gets or Sets OutData + /// + [DataMember(Name="OutData", EmitDefaultValue=false)] + public OutData OutData { get; set; } + + /// + /// Gets or Sets InData + /// + [DataMember(Name="InData", EmitDefaultValue=false)] + public InData InData { get; set; } + + /// + /// Gets or Sets Tag + /// + [DataMember(Name="tag", EmitDefaultValue=false)] + public string Tag { get; set; } + + /// + /// Gets or Sets TransactionId + /// + [DataMember(Name="transactionId", EmitDefaultValue=false)] + public Guid TransactionId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TransactionProcessResult {\n"); + sb.Append(" OutData: ").Append(OutData).Append("\n"); + sb.Append(" InData: ").Append(InData).Append("\n"); + sb.Append(" Tag: ").Append(Tag).Append("\n"); + sb.Append(" TransactionId: ").Append(TransactionId).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TransactionProcessResult); + } + + /// + /// Returns true if TransactionProcessResult instances are equal + /// + /// Instance of TransactionProcessResult to be compared + /// Boolean + public bool Equals(TransactionProcessResult input) + { + if (input == null) + return false; + + return + ( + this.OutData == input.OutData || + (this.OutData != null && + this.OutData.Equals(input.OutData)) + ) && + ( + this.InData == input.InData || + (this.InData != null && + this.InData.Equals(input.InData)) + ) && + ( + this.Tag == input.Tag || + (this.Tag != null && + this.Tag.Equals(input.Tag)) + ) && + ( + this.TransactionId == input.TransactionId || + (this.TransactionId != null && + this.TransactionId.Equals(input.TransactionId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OutData != null) + hashCode = hashCode * 59 + this.OutData.GetHashCode(); + if (this.InData != null) + hashCode = hashCode * 59 + this.InData.GetHashCode(); + if (this.Tag != null) + hashCode = hashCode * 59 + this.Tag.GetHashCode(); + if (this.TransactionId != null) + hashCode = hashCode * 59 + this.TransactionId.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/TrfFtBytes.cs b/src/Regula.DocumentReader.WebClient/Model/TrfFtBytes.cs new file mode 100644 index 0000000..e1c646d --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/TrfFtBytes.cs @@ -0,0 +1,217 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure is used to store an array of binary information that is a part of one of the informational data groups + /// + [DataContract] + public partial class TrfFtBytes : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TrfFtBytes() { } + /// + /// Initializes a new instance of the class. + /// + /// Logical type of the field (required). + /// Result of logical analysis of compliance of the contents of the field with the requirements of the specification (required). + /// Length of Data array (required). + /// Binary data array. Base64 encoded. (required). + public TrfFtBytes(AnyOfGraphicFieldTypeTextFieldType type = default(AnyOfGraphicFieldTypeTextFieldType), decimal status = default(decimal), decimal length = default(decimal), string data = default(string)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for TrfFtBytes and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "status" is required (not null) + if (status == null) + { + throw new InvalidDataException("status is a required property for TrfFtBytes and cannot be null"); + } + else + { + this.Status = status; + } + + // to ensure "length" is required (not null) + if (length == null) + { + throw new InvalidDataException("length is a required property for TrfFtBytes and cannot be null"); + } + else + { + this.Length = length; + } + + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for TrfFtBytes and cannot be null"); + } + else + { + this.Data = data; + } + + } + + /// + /// Logical type of the field + /// + /// Logical type of the field + [DataMember(Name="Type", EmitDefaultValue=true)] + public AnyOfGraphicFieldTypeTextFieldType Type { get; set; } + + /// + /// Result of logical analysis of compliance of the contents of the field with the requirements of the specification + /// + /// Result of logical analysis of compliance of the contents of the field with the requirements of the specification + [DataMember(Name="Status", EmitDefaultValue=true)] + public decimal Status { get; set; } + + /// + /// Length of Data array + /// + /// Length of Data array + [DataMember(Name="Length", EmitDefaultValue=true)] + public decimal Length { get; set; } + + /// + /// Binary data array. Base64 encoded. + /// + /// Binary data array. Base64 encoded. + [DataMember(Name="Data", EmitDefaultValue=true)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TrfFtBytes {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Length: ").Append(Length).Append("\n"); + sb.Append(" Data: ").Append(Data).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TrfFtBytes); + } + + /// + /// Returns true if TrfFtBytes instances are equal + /// + /// Instance of TrfFtBytes to be compared + /// Boolean + public bool Equals(TrfFtBytes input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Length == input.Length || + (this.Length != null && + this.Length.Equals(input.Length)) + ) && + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Length != null) + hashCode = hashCode * 59 + this.Length.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/TrfFtString.cs b/src/Regula.DocumentReader.WebClient/Model/TrfFtString.cs new file mode 100644 index 0000000..1d691d9 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/TrfFtString.cs @@ -0,0 +1,216 @@ +/* + * 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: 7.4.0 + * + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + +using System; +using System.Linq; +using System.IO; +using System.Text; +using System.Text.RegularExpressions; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// Structure is used to store information about the numeric field (4 bytes) that is a part of one of the informational data groups. + /// + [DataContract] + public partial class TrfFtString : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TrfFtString() { } + /// + /// Initializes a new instance of the class. + /// + /// type (required). + /// Result of logical analysis of compliance of the contents of the field with the requirements of the specification (required). + /// Mask of format of text information (for example, «YYMMDD» for date of birth) (required). + /// Numeric value. (required). + public TrfFtString(AnyOfGraphicFieldTypeTextFieldType type = default(AnyOfGraphicFieldTypeTextFieldType), AnyOfParsingNotificationCodesParsingErrorCodes status = default(AnyOfParsingNotificationCodesParsingErrorCodes), string format = default(string), string data = default(string)) + { + // to ensure "type" is required (not null) + if (type == null) + { + throw new InvalidDataException("type is a required property for TrfFtString and cannot be null"); + } + else + { + this.Type = type; + } + + // to ensure "status" is required (not null) + if (status == null) + { + throw new InvalidDataException("status is a required property for TrfFtString and cannot be null"); + } + else + { + this.Status = status; + } + + // to ensure "format" is required (not null) + if (format == null) + { + throw new InvalidDataException("format is a required property for TrfFtString and cannot be null"); + } + else + { + this.Format = format; + } + + // to ensure "data" is required (not null) + if (data == null) + { + throw new InvalidDataException("data is a required property for TrfFtString and cannot be null"); + } + else + { + this.Data = data; + } + + } + + /// + /// Gets or Sets Type + /// + [DataMember(Name="Type", EmitDefaultValue=true)] + public AnyOfGraphicFieldTypeTextFieldType Type { get; set; } + + /// + /// Result of logical analysis of compliance of the contents of the field with the requirements of the specification + /// + /// Result of logical analysis of compliance of the contents of the field with the requirements of the specification + [DataMember(Name="Status", EmitDefaultValue=true)] + public AnyOfParsingNotificationCodesParsingErrorCodes Status { get; set; } + + /// + /// Mask of format of text information (for example, «YYMMDD» for date of birth) + /// + /// Mask of format of text information (for example, «YYMMDD» for date of birth) + [DataMember(Name="Format", EmitDefaultValue=true)] + public string Format { get; set; } + + /// + /// Numeric value. + /// + /// Numeric value. + [DataMember(Name="Data", EmitDefaultValue=true)] + public string Data { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TrfFtString {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Format: ").Append(Format).Append("\n"); + sb.Append(" Data: ").Append(Data).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TrfFtString); + } + + /// + /// Returns true if TrfFtString instances are equal + /// + /// Instance of TrfFtString to be compared + /// Boolean + public bool Equals(TrfFtString input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.Format == input.Format || + (this.Format != null && + this.Format.Equals(input.Format)) + ) && + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.Format != null) + hashCode = hashCode * 59 + this.Format.GetHashCode(); + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + return hashCode; + } + } + + /// + /// 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/VerifiedFieldMap.cs b/src/Regula.DocumentReader.WebClient/Model/VerifiedFieldMap.cs index 59039e3..c6f69c0 100644 --- a/src/Regula.DocumentReader.WebClient/Model/VerifiedFieldMap.cs +++ b/src/Regula.DocumentReader.WebClient/Model/VerifiedFieldMap.cs @@ -1,9 +1,9 @@ /* * 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 + * 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: 7.2.0 + * The version of the OpenAPI document: 7.4.0 * * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,34 +33,66 @@ public partial class VerifiedFieldMap : IEquatable, IValidata /// /// Initializes a new instance of the class. /// - /// wFieldType. - /// wLCID. + [JsonConstructorAttribute] + protected VerifiedFieldMap() { } + /// + /// Initializes a new instance of the class. + /// + /// wFieldType (required). + /// wLCID (required). /// Field data extracted from mrz(machine readable zone). /// Field data extracted from visual zone. /// Field data extracted from barcode. /// Field data extracted from rfid chip. - /// results comparison matrix. Elements of the matrix with indices 0, 1, 2, 3 take one of the values Disabled(0), Verified(1) or Not_Verified(2), elements with indices 4, 5, 6, 7, 8 are one of the values Disabled(0), Compare_Match(3) or Compare_Not_Match(4). Elements of the Matrix matrix have the following semantic meaning: - element with index 0 –– the result of verification of data from the MRZ; - 1 –– the result of verification of data from the RFID microcircuit; - 2 –– the result of verification of data from text areas of the document; - 3 –– the result of verification data from barcodes; - 4 - the result of comparing MRZ data and RFID microcircuits; - 5 - the result of comparing MRZ data and text areas of document filling; - 6 - the result of comparing MRZ data and bar codes; - 7 - the result of comparing the data of text areas of the document and the RFID chip; - 8 - the result of comparing the data of the text areas of the document and barcodes; - 9 - the result of comparing the data of the RFID chip and barcodes.. + /// results comparison matrix. Elements of the matrix with indices 0, 1, 2, 3 take one of the values Disabled(0), Verified(1) or Not_Verified(2), elements with indices 4, 5, 6, 7, 8 are one of the values Disabled(0), Compare_Match(3) or Compare_Not_Match(4). Elements of the Matrix matrix have the following semantic meaning: - element with index 0 –– the result of verification of data from the MRZ; - 1 –– the result of verification of data from the RFID microcircuit; - 2 –– the result of verification of data from text areas of the document; - 3 –– the result of verification data from barcodes; - 4 - the result of comparing MRZ data and RFID microcircuits; - 5 - the result of comparing MRZ data and text areas of document filling; - 6 - the result of comparing MRZ data and bar codes; - 7 - the result of comparing the data of text areas of the document and the RFID chip; - 8 - the result of comparing the data of the text areas of the document and barcodes; - 9 - the result of comparing the data of the RFID chip and barcodes. (required). public VerifiedFieldMap(int wFieldType = default(int), int wLCID = default(int), string fieldMRZ = default(string), string fieldVisual = default(string), string fieldBarcode = default(string), string fieldRFID = default(string), List matrix = default(List)) { - this.WFieldType = wFieldType; - this.WLCID = wLCID; + // to ensure "wFieldType" is required (not null) + if (wFieldType == null) + { + throw new InvalidDataException("wFieldType is a required property for VerifiedFieldMap and cannot be null"); + } + else + { + this.WFieldType = wFieldType; + } + + // to ensure "wLCID" is required (not null) + if (wLCID == null) + { + throw new InvalidDataException("wLCID is a required property for VerifiedFieldMap and cannot be null"); + } + else + { + this.WLCID = wLCID; + } + + // to ensure "matrix" is required (not null) + if (matrix == null) + { + throw new InvalidDataException("matrix is a required property for VerifiedFieldMap and cannot be null"); + } + else + { + this.Matrix = matrix; + } + this.FieldMRZ = fieldMRZ; this.FieldVisual = fieldVisual; this.FieldBarcode = fieldBarcode; this.FieldRFID = fieldRFID; - this.Matrix = matrix; } /// /// Gets or Sets WFieldType /// - [DataMember(Name="wFieldType", EmitDefaultValue=false)] + [DataMember(Name="wFieldType", EmitDefaultValue=true)] public int WFieldType { get; set; } /// /// Gets or Sets WLCID /// - [DataMember(Name="wLCID", EmitDefaultValue=false)] + [DataMember(Name="wLCID", EmitDefaultValue=true)] public int WLCID { get; set; } /// @@ -95,7 +127,7 @@ public partial class VerifiedFieldMap : IEquatable, IValidata /// results comparison matrix. Elements of the matrix with indices 0, 1, 2, 3 take one of the values Disabled(0), Verified(1) or Not_Verified(2), elements with indices 4, 5, 6, 7, 8 are one of the values Disabled(0), Compare_Match(3) or Compare_Not_Match(4). Elements of the Matrix matrix have the following semantic meaning: - element with index 0 –– the result of verification of data from the MRZ; - 1 –– the result of verification of data from the RFID microcircuit; - 2 –– the result of verification of data from text areas of the document; - 3 –– the result of verification data from barcodes; - 4 - the result of comparing MRZ data and RFID microcircuits; - 5 - the result of comparing MRZ data and text areas of document filling; - 6 - the result of comparing MRZ data and bar codes; - 7 - the result of comparing the data of text areas of the document and the RFID chip; - 8 - the result of comparing the data of the text areas of the document and barcodes; - 9 - the result of comparing the data of the RFID chip and barcodes. /// /// results comparison matrix. Elements of the matrix with indices 0, 1, 2, 3 take one of the values Disabled(0), Verified(1) or Not_Verified(2), elements with indices 4, 5, 6, 7, 8 are one of the values Disabled(0), Compare_Match(3) or Compare_Not_Match(4). Elements of the Matrix matrix have the following semantic meaning: - element with index 0 –– the result of verification of data from the MRZ; - 1 –– the result of verification of data from the RFID microcircuit; - 2 –– the result of verification of data from text areas of the document; - 3 –– the result of verification data from barcodes; - 4 - the result of comparing MRZ data and RFID microcircuits; - 5 - the result of comparing MRZ data and text areas of document filling; - 6 - the result of comparing MRZ data and bar codes; - 7 - the result of comparing the data of text areas of the document and the RFID chip; - 8 - the result of comparing the data of the text areas of the document and barcodes; - 9 - the result of comparing the data of the RFID chip and barcodes. - [DataMember(Name="Matrix", EmitDefaultValue=false)] + [DataMember(Name="Matrix", EmitDefaultValue=true)] public List Matrix { get; set; } ///