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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ src/Regula.DocumentReader.WebClient/Model/DataModule.cs
src/Regula.DocumentReader.WebClient/Model/DetailsOptical.cs
src/Regula.DocumentReader.WebClient/Model/DetailsRFID.cs
src/Regula.DocumentReader.WebClient/Model/DeviceInfo.cs
src/Regula.DocumentReader.WebClient/Model/DeviceInfoDocumentsDatabase.cs
src/Regula.DocumentReader.WebClient/Model/DocBarCodeInfo.cs
src/Regula.DocumentReader.WebClient/Model/DocBarCodeInfoFieldsList.cs
src/Regula.DocumentReader.WebClient/Model/DocBarCodeInfoItem.cs
Expand Down
66 changes: 54 additions & 12 deletions src/Regula.DocumentReader.WebClient/Model/DeviceInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,57 +35,95 @@ public partial class DeviceInfo : IValidatableObject
/// <summary>
/// Initializes a new instance of the <see cref="DeviceInfo" /> class.
/// </summary>
/// <param name="appName">appName.</param>
/// <param name="varVersion">varVersion.</param>
/// <param name="licenseId">licenseId.</param>
/// <param name="licenseSerial">licenseSerial.</param>
/// <param name="validUntil">validUntil.</param>
/// <param name="appName">Application name..</param>
/// <param name="varVersion">Product version..</param>
/// <param name="licenseId">Unique license identifier..</param>
/// <param name="licenseSerial">License serial number..</param>
/// <param name="licenseType">licenseType.</param>
/// <param name="validUntil">License validity date..</param>
/// <param name="serverTime">serverTime.</param>
public DeviceInfo(string appName = default(string), string varVersion = default(string), string licenseId = default(string), string licenseSerial = default(string), DateTime validUntil = default(DateTime), DateTime serverTime = default(DateTime))
/// <param name="supportedScenarios">List of supported scenarios..</param>
/// <param name="metadata">metadata.</param>
/// <param name="documentsDatabase">documentsDatabase.</param>
public DeviceInfo(string appName = default(string), string varVersion = default(string), string licenseId = default(string), string licenseSerial = default(string), string licenseType = default(string), DateTime validUntil = default(DateTime), string serverTime = default(string), List<string> supportedScenarios = default(List<string>), Dictionary<string, Object> metadata = default(Dictionary<string, Object>), DeviceInfoDocumentsDatabase documentsDatabase = default(DeviceInfoDocumentsDatabase))
{
this.AppName = appName;
this.VarVersion = varVersion;
this.LicenseId = licenseId;
this.LicenseSerial = licenseSerial;
this.LicenseType = licenseType;
this.ValidUntil = validUntil;
this.ServerTime = serverTime;
this.SupportedScenarios = supportedScenarios;
this.Metadata = metadata;
this.DocumentsDatabase = documentsDatabase;
}

/// <summary>
/// Gets or Sets AppName
/// Application name.
/// </summary>
/// <value>Application name.</value>
[DataMember(Name = "app-name", EmitDefaultValue = false)]
public string? AppName { get; set; }

/// <summary>
/// Gets or Sets VarVersion
/// Product version.
/// </summary>
/// <value>Product version.</value>
[DataMember(Name = "version", EmitDefaultValue = false)]
public string? VarVersion { get; set; }

/// <summary>
/// Gets or Sets LicenseId
/// Unique license identifier.
/// </summary>
/// <value>Unique license identifier.</value>
[DataMember(Name = "license-id", EmitDefaultValue = false)]
public string? LicenseId { get; set; }

/// <summary>
/// Gets or Sets LicenseSerial
/// License serial number.
/// </summary>
/// <value>License serial number.</value>
[DataMember(Name = "license-serial", EmitDefaultValue = false)]
public string? LicenseSerial { get; set; }

/// <summary>
/// Gets or Sets ValidUntil
/// Gets or Sets LicenseType
/// </summary>
[DataMember(Name = "license-type", EmitDefaultValue = false)]
public string? LicenseType { get; set; }

/// <summary>
/// License validity date.
/// </summary>
/// <value>License validity date.</value>
[DataMember(Name = "valid-until", EmitDefaultValue = false)]
public DateTime? ValidUntil { get; set; }

/// <summary>
/// Gets or Sets ServerTime
/// </summary>
[DataMember(Name = "server-time", EmitDefaultValue = false)]
public DateTime? ServerTime { get; set; }
public string? ServerTime { get; set; }

/// <summary>
/// List of supported scenarios.
/// </summary>
/// <value>List of supported scenarios.</value>
[DataMember(Name = "supported-scenarios", EmitDefaultValue = false)]
public List<string>? SupportedScenarios { get; set; }

/// <summary>
/// Gets or Sets Metadata
/// </summary>
[DataMember(Name = "metadata", EmitDefaultValue = false)]
public Dictionary<string, Object>? Metadata { get; set; }

/// <summary>
/// Gets or Sets DocumentsDatabase
/// </summary>
[DataMember(Name = "documents-database", EmitDefaultValue = false)]
public DeviceInfoDocumentsDatabase? DocumentsDatabase { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand All @@ -99,8 +137,12 @@ public override string ToString()
sb.Append(" VarVersion: ").Append(VarVersion).Append("\n");
sb.Append(" LicenseId: ").Append(LicenseId).Append("\n");
sb.Append(" LicenseSerial: ").Append(LicenseSerial).Append("\n");
sb.Append(" LicenseType: ").Append(LicenseType).Append("\n");
sb.Append(" ValidUntil: ").Append(ValidUntil).Append("\n");
sb.Append(" ServerTime: ").Append(ServerTime).Append("\n");
sb.Append(" SupportedScenarios: ").Append(SupportedScenarios).Append("\n");
sb.Append(" Metadata: ").Append(Metadata).Append("\n");
sb.Append(" DocumentsDatabase: ").Append(DocumentsDatabase).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
/*
* Regula Document Reader Web API
*
* Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core
*
* The version of the OpenAPI document: 8.1.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/


using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using FileParameter = Regula.DocumentReader.WebClient.Client.FileParameter;
using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter;

namespace Regula.DocumentReader.WebClient.Model
{
/// <summary>
/// Database information.
/// </summary>
[DataContract(Name = "DeviceInfo_documents_database")]
public partial class DeviceInfoDocumentsDatabase : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="DeviceInfoDocumentsDatabase" /> class.
/// </summary>
[JsonConstructorAttribute]
protected DeviceInfoDocumentsDatabase() { }
/// <summary>
/// Initializes a new instance of the <see cref="DeviceInfoDocumentsDatabase" /> class.
/// </summary>
/// <param name="id">Database identifier. (required).</param>
/// <param name="varVersion">Database version. (required).</param>
/// <param name="exportDate">Date of database creation. (required).</param>
/// <param name="description">Description of the database contents, such as the list of supported countries and documents. (required).</param>
public DeviceInfoDocumentsDatabase(string id = default(string), string varVersion = default(string), string exportDate = default(string), string description = default(string))
{
// to ensure "id" is required (not null)
if (id == null)
{
throw new ArgumentNullException("id is a required property for DeviceInfoDocumentsDatabase and cannot be null");
}
this.Id = id;
// to ensure "varVersion" is required (not null)
if (varVersion == null)
{
throw new ArgumentNullException("varVersion is a required property for DeviceInfoDocumentsDatabase and cannot be null");
}
this.VarVersion = varVersion;
// to ensure "exportDate" is required (not null)
if (exportDate == null)
{
throw new ArgumentNullException("exportDate is a required property for DeviceInfoDocumentsDatabase and cannot be null");
}
this.ExportDate = exportDate;
// to ensure "description" is required (not null)
if (description == null)
{
throw new ArgumentNullException("description is a required property for DeviceInfoDocumentsDatabase and cannot be null");
}
this.Description = description;
}

/// <summary>
/// Database identifier.
/// </summary>
/// <value>Database identifier.</value>
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public string Id { get; set; }

/// <summary>
/// Database version.
/// </summary>
/// <value>Database version.</value>
[DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)]
public string VarVersion { get; set; }

/// <summary>
/// Date of database creation.
/// </summary>
/// <value>Date of database creation.</value>
[DataMember(Name = "export-date", IsRequired = true, EmitDefaultValue = true)]
public string ExportDate { get; set; }

/// <summary>
/// Description of the database contents, such as the list of supported countries and documents.
/// </summary>
/// <value>Description of the database contents, such as the list of supported countries and documents.</value>
[DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)]
public string Description { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class DeviceInfoDocumentsDatabase {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" VarVersion: ").Append(VarVersion).Append("\n");
sb.Append(" ExportDate: ").Append(ExportDate).Append("\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

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

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected EncryptedRCLItem() { }
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@56f1b55a</example>
<example>[B@614a8340</example>
*/
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
public byte[] EncryptedRCL { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@56f1b55a</example>
<example>[B@614a8340</example>
*/
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
public byte[] EncryptedRCL { get; set; }
Expand Down Expand Up @@ -105,7 +105,7 @@
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
protected IEnumerable<ValidationResult> BaseValidate(ValidationContext validationContext)

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

View workflow job for this annotation

GitHub Actions / run_smoke_test

'EncryptedRCLResult.BaseValidate(ValidationContext)' hides inherited member 'ResultItem.BaseValidate(ValidationContext)'. Use the new keyword if hiding was intended.
{
foreach (var x in base.BaseValidate(validationContext))
{
Expand Down
2 changes: 1 addition & 1 deletion src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected LicenseItem() { }
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@6299255d</example>
<example>[B@2b060232</example>
*/
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
public byte[] License { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected LicenseResult() { }
/// </summary>
/// <value>Base64 encoded data</value>
/*
<example>[B@6299255d</example>
<example>[B@2b060232</example>
*/
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
public byte[] License { get; set; }
Expand Down
12 changes: 6 additions & 6 deletions src/Regula.DocumentReader.WebClient/Model/ProcessParamsRfid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ public partial class ProcessParamsRfid : IValidatableObject
/// <summary>
/// Initializes a new instance of the <see cref="ProcessParamsRfid" /> class.
/// </summary>
/// <param name="paSensitiveCodesDisable">A list of notification codes that should be ignored during passive authentication (PA).</param>
public ProcessParamsRfid(List<ParsingNotificationCodes> paSensitiveCodesDisable = default(List<ParsingNotificationCodes>))
/// <param name="paIgnoreNotificationCodes">A list of notification codes that should be ignored during passive authentication (PA).</param>
public ProcessParamsRfid(List<ParsingNotificationCodes> paIgnoreNotificationCodes = default(List<ParsingNotificationCodes>))
{
this.PaSensitiveCodesDisable = paSensitiveCodesDisable;
this.PaIgnoreNotificationCodes = paIgnoreNotificationCodes;
}

/// <summary>
/// A list of notification codes that should be ignored during passive authentication (PA)
/// </summary>
/// <value>A list of notification codes that should be ignored during passive authentication (PA)</value>
[DataMember(Name = "paSensitiveCodesDisable", EmitDefaultValue = false)]
public List<ParsingNotificationCodes>? PaSensitiveCodesDisable { get; set; }
[DataMember(Name = "paIgnoreNotificationCodes", EmitDefaultValue = false)]
public List<ParsingNotificationCodes>? PaIgnoreNotificationCodes { get; set; }

/// <summary>
/// Returns the string presentation of the object
Expand All @@ -56,7 +56,7 @@ public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class ProcessParamsRfid {\n");
sb.Append(" PaSensitiveCodesDisable: ").Append(PaSensitiveCodesDisable).Append("\n");
sb.Append(" PaIgnoreNotificationCodes: ").Append(PaIgnoreNotificationCodes).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down
Loading