Skip to content

Commit 13f8f4e

Browse files
Merge pull request #189 from regulaforensics/fix/SP-21986
SP-21986 - Update DeviceInfo
2 parents 2bf1eef + 62f0434 commit 13f8f4e

File tree

8 files changed

+204
-22
lines changed

8 files changed

+204
-22
lines changed

.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ src/Regula.DocumentReader.WebClient/Model/DataModule.cs
5050
src/Regula.DocumentReader.WebClient/Model/DetailsOptical.cs
5151
src/Regula.DocumentReader.WebClient/Model/DetailsRFID.cs
5252
src/Regula.DocumentReader.WebClient/Model/DeviceInfo.cs
53+
src/Regula.DocumentReader.WebClient/Model/DeviceInfoDocumentsDatabase.cs
5354
src/Regula.DocumentReader.WebClient/Model/DocBarCodeInfo.cs
5455
src/Regula.DocumentReader.WebClient/Model/DocBarCodeInfoFieldsList.cs
5556
src/Regula.DocumentReader.WebClient/Model/DocBarCodeInfoItem.cs

src/Regula.DocumentReader.WebClient/Model/DeviceInfo.cs

Lines changed: 54 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,57 +35,95 @@ public partial class DeviceInfo : IValidatableObject
3535
/// <summary>
3636
/// Initializes a new instance of the <see cref="DeviceInfo" /> class.
3737
/// </summary>
38-
/// <param name="appName">appName.</param>
39-
/// <param name="varVersion">varVersion.</param>
40-
/// <param name="licenseId">licenseId.</param>
41-
/// <param name="licenseSerial">licenseSerial.</param>
42-
/// <param name="validUntil">validUntil.</param>
38+
/// <param name="appName">Application name..</param>
39+
/// <param name="varVersion">Product version..</param>
40+
/// <param name="licenseId">Unique license identifier..</param>
41+
/// <param name="licenseSerial">License serial number..</param>
42+
/// <param name="licenseType">licenseType.</param>
43+
/// <param name="validUntil">License validity date..</param>
4344
/// <param name="serverTime">serverTime.</param>
44-
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))
45+
/// <param name="supportedScenarios">List of supported scenarios..</param>
46+
/// <param name="metadata">metadata.</param>
47+
/// <param name="documentsDatabase">documentsDatabase.</param>
48+
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))
4549
{
4650
this.AppName = appName;
4751
this.VarVersion = varVersion;
4852
this.LicenseId = licenseId;
4953
this.LicenseSerial = licenseSerial;
54+
this.LicenseType = licenseType;
5055
this.ValidUntil = validUntil;
5156
this.ServerTime = serverTime;
57+
this.SupportedScenarios = supportedScenarios;
58+
this.Metadata = metadata;
59+
this.DocumentsDatabase = documentsDatabase;
5260
}
5361

5462
/// <summary>
55-
/// Gets or Sets AppName
63+
/// Application name.
5664
/// </summary>
65+
/// <value>Application name.</value>
5766
[DataMember(Name = "app-name", EmitDefaultValue = false)]
5867
public string? AppName { get; set; }
5968

6069
/// <summary>
61-
/// Gets or Sets VarVersion
70+
/// Product version.
6271
/// </summary>
72+
/// <value>Product version.</value>
6373
[DataMember(Name = "version", EmitDefaultValue = false)]
6474
public string? VarVersion { get; set; }
6575

6676
/// <summary>
67-
/// Gets or Sets LicenseId
77+
/// Unique license identifier.
6878
/// </summary>
79+
/// <value>Unique license identifier.</value>
6980
[DataMember(Name = "license-id", EmitDefaultValue = false)]
7081
public string? LicenseId { get; set; }
7182

7283
/// <summary>
73-
/// Gets or Sets LicenseSerial
84+
/// License serial number.
7485
/// </summary>
86+
/// <value>License serial number.</value>
7587
[DataMember(Name = "license-serial", EmitDefaultValue = false)]
7688
public string? LicenseSerial { get; set; }
7789

7890
/// <summary>
79-
/// Gets or Sets ValidUntil
91+
/// Gets or Sets LicenseType
8092
/// </summary>
93+
[DataMember(Name = "license-type", EmitDefaultValue = false)]
94+
public string? LicenseType { get; set; }
95+
96+
/// <summary>
97+
/// License validity date.
98+
/// </summary>
99+
/// <value>License validity date.</value>
81100
[DataMember(Name = "valid-until", EmitDefaultValue = false)]
82101
public DateTime? ValidUntil { get; set; }
83102

84103
/// <summary>
85104
/// Gets or Sets ServerTime
86105
/// </summary>
87106
[DataMember(Name = "server-time", EmitDefaultValue = false)]
88-
public DateTime? ServerTime { get; set; }
107+
public string? ServerTime { get; set; }
108+
109+
/// <summary>
110+
/// List of supported scenarios.
111+
/// </summary>
112+
/// <value>List of supported scenarios.</value>
113+
[DataMember(Name = "supported-scenarios", EmitDefaultValue = false)]
114+
public List<string>? SupportedScenarios { get; set; }
115+
116+
/// <summary>
117+
/// Gets or Sets Metadata
118+
/// </summary>
119+
[DataMember(Name = "metadata", EmitDefaultValue = false)]
120+
public Dictionary<string, Object>? Metadata { get; set; }
121+
122+
/// <summary>
123+
/// Gets or Sets DocumentsDatabase
124+
/// </summary>
125+
[DataMember(Name = "documents-database", EmitDefaultValue = false)]
126+
public DeviceInfoDocumentsDatabase? DocumentsDatabase { get; set; }
89127

90128
/// <summary>
91129
/// Returns the string presentation of the object
@@ -99,8 +137,12 @@ public override string ToString()
99137
sb.Append(" VarVersion: ").Append(VarVersion).Append("\n");
100138
sb.Append(" LicenseId: ").Append(LicenseId).Append("\n");
101139
sb.Append(" LicenseSerial: ").Append(LicenseSerial).Append("\n");
140+
sb.Append(" LicenseType: ").Append(LicenseType).Append("\n");
102141
sb.Append(" ValidUntil: ").Append(ValidUntil).Append("\n");
103142
sb.Append(" ServerTime: ").Append(ServerTime).Append("\n");
143+
sb.Append(" SupportedScenarios: ").Append(SupportedScenarios).Append("\n");
144+
sb.Append(" Metadata: ").Append(Metadata).Append("\n");
145+
sb.Append(" DocumentsDatabase: ").Append(DocumentsDatabase).Append("\n");
104146
sb.Append("}\n");
105147
return sb.ToString();
106148
}
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
/*
2+
* Regula Document Reader Web API
3+
*
4+
* 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
5+
*
6+
* The version of the OpenAPI document: 8.1.0
7+
* Generated by: https://github.com/openapitools/openapi-generator.git
8+
*/
9+
10+
11+
using System;
12+
using System.Collections;
13+
using System.Collections.Generic;
14+
using System.Collections.ObjectModel;
15+
using System.Linq;
16+
using System.IO;
17+
using System.Runtime.Serialization;
18+
using System.Text;
19+
using System.Text.RegularExpressions;
20+
using Newtonsoft.Json;
21+
using Newtonsoft.Json.Converters;
22+
using Newtonsoft.Json.Linq;
23+
using System.ComponentModel.DataAnnotations;
24+
using FileParameter = Regula.DocumentReader.WebClient.Client.FileParameter;
25+
using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter;
26+
27+
namespace Regula.DocumentReader.WebClient.Model
28+
{
29+
/// <summary>
30+
/// Database information.
31+
/// </summary>
32+
[DataContract(Name = "DeviceInfo_documents_database")]
33+
public partial class DeviceInfoDocumentsDatabase : IValidatableObject
34+
{
35+
/// <summary>
36+
/// Initializes a new instance of the <see cref="DeviceInfoDocumentsDatabase" /> class.
37+
/// </summary>
38+
[JsonConstructorAttribute]
39+
protected DeviceInfoDocumentsDatabase() { }
40+
/// <summary>
41+
/// Initializes a new instance of the <see cref="DeviceInfoDocumentsDatabase" /> class.
42+
/// </summary>
43+
/// <param name="id">Database identifier. (required).</param>
44+
/// <param name="varVersion">Database version. (required).</param>
45+
/// <param name="exportDate">Date of database creation. (required).</param>
46+
/// <param name="description">Description of the database contents, such as the list of supported countries and documents. (required).</param>
47+
public DeviceInfoDocumentsDatabase(string id = default(string), string varVersion = default(string), string exportDate = default(string), string description = default(string))
48+
{
49+
// to ensure "id" is required (not null)
50+
if (id == null)
51+
{
52+
throw new ArgumentNullException("id is a required property for DeviceInfoDocumentsDatabase and cannot be null");
53+
}
54+
this.Id = id;
55+
// to ensure "varVersion" is required (not null)
56+
if (varVersion == null)
57+
{
58+
throw new ArgumentNullException("varVersion is a required property for DeviceInfoDocumentsDatabase and cannot be null");
59+
}
60+
this.VarVersion = varVersion;
61+
// to ensure "exportDate" is required (not null)
62+
if (exportDate == null)
63+
{
64+
throw new ArgumentNullException("exportDate is a required property for DeviceInfoDocumentsDatabase and cannot be null");
65+
}
66+
this.ExportDate = exportDate;
67+
// to ensure "description" is required (not null)
68+
if (description == null)
69+
{
70+
throw new ArgumentNullException("description is a required property for DeviceInfoDocumentsDatabase and cannot be null");
71+
}
72+
this.Description = description;
73+
}
74+
75+
/// <summary>
76+
/// Database identifier.
77+
/// </summary>
78+
/// <value>Database identifier.</value>
79+
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
80+
public string Id { get; set; }
81+
82+
/// <summary>
83+
/// Database version.
84+
/// </summary>
85+
/// <value>Database version.</value>
86+
[DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)]
87+
public string VarVersion { get; set; }
88+
89+
/// <summary>
90+
/// Date of database creation.
91+
/// </summary>
92+
/// <value>Date of database creation.</value>
93+
[DataMember(Name = "export-date", IsRequired = true, EmitDefaultValue = true)]
94+
public string ExportDate { get; set; }
95+
96+
/// <summary>
97+
/// Description of the database contents, such as the list of supported countries and documents.
98+
/// </summary>
99+
/// <value>Description of the database contents, such as the list of supported countries and documents.</value>
100+
[DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)]
101+
public string Description { get; set; }
102+
103+
/// <summary>
104+
/// Returns the string presentation of the object
105+
/// </summary>
106+
/// <returns>String presentation of the object</returns>
107+
public override string ToString()
108+
{
109+
StringBuilder sb = new StringBuilder();
110+
sb.Append("class DeviceInfoDocumentsDatabase {\n");
111+
sb.Append(" Id: ").Append(Id).Append("\n");
112+
sb.Append(" VarVersion: ").Append(VarVersion).Append("\n");
113+
sb.Append(" ExportDate: ").Append(ExportDate).Append("\n");
114+
sb.Append(" Description: ").Append(Description).Append("\n");
115+
sb.Append("}\n");
116+
return sb.ToString();
117+
}
118+
119+
/// <summary>
120+
/// Returns the JSON string presentation of the object
121+
/// </summary>
122+
/// <returns>JSON string presentation of the object</returns>
123+
public virtual string ToJson()
124+
{
125+
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
126+
}
127+
128+
/// <summary>
129+
/// To validate all properties of the instance
130+
/// </summary>
131+
/// <param name="validationContext">Validation context</param>
132+
/// <returns>Validation Result</returns>
133+
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
134+
{
135+
yield break;
136+
}
137+
}
138+
139+
}

src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected EncryptedRCLItem() { }
5656
/// </summary>
5757
/// <value>Base64 encoded data</value>
5858
/*
59-
<example>[B@56f1b55a</example>
59+
<example>[B@614a8340</example>
6060
*/
6161
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
6262
public byte[] EncryptedRCL { get; set; }

src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected EncryptedRCLResult() { }
6262
/// </summary>
6363
/// <value>Base64 encoded data</value>
6464
/*
65-
<example>[B@56f1b55a</example>
65+
<example>[B@614a8340</example>
6666
*/
6767
[DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)]
6868
public byte[] EncryptedRCL { get; set; }

src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected LicenseItem() { }
5656
/// </summary>
5757
/// <value>Base64 encoded data</value>
5858
/*
59-
<example>[B@6299255d</example>
59+
<example>[B@2b060232</example>
6060
*/
6161
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
6262
public byte[] License { get; set; }

src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected LicenseResult() { }
6262
/// </summary>
6363
/// <value>Base64 encoded data</value>
6464
/*
65-
<example>[B@6299255d</example>
65+
<example>[B@2b060232</example>
6666
*/
6767
[DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)]
6868
public byte[] License { get; set; }

src/Regula.DocumentReader.WebClient/Model/ProcessParamsRfid.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ public partial class ProcessParamsRfid : IValidatableObject
3535
/// <summary>
3636
/// Initializes a new instance of the <see cref="ProcessParamsRfid" /> class.
3737
/// </summary>
38-
/// <param name="paSensitiveCodesDisable">A list of notification codes that should be ignored during passive authentication (PA).</param>
39-
public ProcessParamsRfid(List<ParsingNotificationCodes> paSensitiveCodesDisable = default(List<ParsingNotificationCodes>))
38+
/// <param name="paIgnoreNotificationCodes">A list of notification codes that should be ignored during passive authentication (PA).</param>
39+
public ProcessParamsRfid(List<ParsingNotificationCodes> paIgnoreNotificationCodes = default(List<ParsingNotificationCodes>))
4040
{
41-
this.PaSensitiveCodesDisable = paSensitiveCodesDisable;
41+
this.PaIgnoreNotificationCodes = paIgnoreNotificationCodes;
4242
}
4343

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

5151
/// <summary>
5252
/// Returns the string presentation of the object
@@ -56,7 +56,7 @@ public override string ToString()
5656
{
5757
StringBuilder sb = new StringBuilder();
5858
sb.Append("class ProcessParamsRfid {\n");
59-
sb.Append(" PaSensitiveCodesDisable: ").Append(PaSensitiveCodesDisable).Append("\n");
59+
sb.Append(" PaIgnoreNotificationCodes: ").Append(PaIgnoreNotificationCodes).Append("\n");
6060
sb.Append("}\n");
6161
return sb.ToString();
6262
}

0 commit comments

Comments
 (0)