diff --git a/src/Regula.DocumentReader.WebClient/Model/DocumentImage.cs b/src/Regula.DocumentReader.WebClient/Model/DocumentImage.cs
index 5129a18..1dde17b 100644
--- a/src/Regula.DocumentReader.WebClient/Model/DocumentImage.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/DocumentImage.cs
@@ -39,7 +39,8 @@ protected DocumentImage() { }
/// Initializes a new instance of the class.
///
/// Base64 encoded image (required).
- public DocumentImage(string image = default(string))
+ /// Image format.
+ public DocumentImage(string image = default(string), string format = default(string))
{
// to ensure "image" is required (not null)
if (image == null)
@@ -51,6 +52,7 @@ protected DocumentImage() { }
this.Image = image;
}
+ this.Format = format;
}
///
@@ -60,6 +62,13 @@ protected DocumentImage() { }
[DataMember(Name="image", EmitDefaultValue=true)]
public string Image { get; set; }
+ ///
+ /// Image format
+ ///
+ /// Image format
+ [DataMember(Name="format", EmitDefaultValue=false)]
+ public string Format { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -69,6 +78,7 @@ public override string ToString()
var sb = new StringBuilder();
sb.Append("class DocumentImage {\n");
sb.Append(" Image: ").Append(Image).Append("\n");
+ sb.Append(" Format: ").Append(Format).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -107,6 +117,11 @@ public bool Equals(DocumentImage input)
this.Image == input.Image ||
(this.Image != null &&
this.Image.Equals(input.Image))
+ ) &&
+ (
+ this.Format == input.Format ||
+ (this.Format != null &&
+ this.Format.Equals(input.Format))
);
}
@@ -121,6 +136,8 @@ public override int GetHashCode()
int hashCode = 41;
if (this.Image != null)
hashCode = hashCode * 59 + this.Image.GetHashCode();
+ if (this.Format != null)
+ hashCode = hashCode * 59 + this.Format.GetHashCode();
return hashCode;
}
}
diff --git a/src/Regula.DocumentReader.WebClient/Model/DocumentImageResult.cs b/src/Regula.DocumentReader.WebClient/Model/DocumentImageResult.cs
index 7a23fe0..1fca4e7 100644
--- a/src/Regula.DocumentReader.WebClient/Model/DocumentImageResult.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/DocumentImageResult.cs
@@ -25,7 +25,7 @@
namespace Regula.DocumentReader.WebClient.Model
{
///
- /// DocumentImageResult
+ /// Contains document image.
///
[DataContract]
public partial class DocumentImageResult : ResultItem, IEquatable, IValidatableObject
diff --git a/src/Regula.DocumentReader.WebClient/Model/GetTransactionsByTagResponse.cs b/src/Regula.DocumentReader.WebClient/Model/GetTransactionsByTagResponse.cs
index 9bc7c88..eb6eb63 100644
--- a/src/Regula.DocumentReader.WebClient/Model/GetTransactionsByTagResponse.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/GetTransactionsByTagResponse.cs
@@ -36,7 +36,7 @@ public partial class GetTransactionsByTagResponse : IEquatableTransaction id.
/// Transaction status.
/// Last time updated.
- public GetTransactionsByTagResponse(int id = default(int), int state = default(int), DateTime updatedAt = default(DateTime))
+ public GetTransactionsByTagResponse(Guid id = default(Guid), int state = default(int), DateTime updatedAt = default(DateTime))
{
this.Id = id;
this.State = state;
@@ -48,7 +48,7 @@ public partial class GetTransactionsByTagResponse : IEquatable
/// Transaction id
[DataMember(Name="id", EmitDefaultValue=false)]
- public int Id { get; set; }
+ public Guid Id { get; set; }
///
/// Transaction status
diff --git a/src/Regula.DocumentReader.WebClient/Model/Healthcheck.cs b/src/Regula.DocumentReader.WebClient/Model/Healthcheck.cs
new file mode 100644
index 0000000..3bb58d7
--- /dev/null
+++ b/src/Regula.DocumentReader.WebClient/Model/Healthcheck.cs
@@ -0,0 +1,318 @@
+/*
+ * 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.2.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
+{
+ ///
+ /// Healthcheck
+ ///
+ [DataContract]
+ public partial class Healthcheck : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected Healthcheck() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Application name. (required).
+ /// Unique license identifier. (required).
+ /// License type. (required).
+ /// License serial number. (required).
+ /// License validity date. (required).
+ /// List of supported scenarios. (required).
+ /// Product version. (required).
+ /// documentsDatabase.
+ public Healthcheck(string app = default(string), string licenseId = default(string), string licenseType = default(string), string licenseSerial = default(string), DateTime? licenseValidUntil = default(DateTime?), List scenarios = default(List), string version = default(string), HealthcheckDocumentsDatabase documentsDatabase = default(HealthcheckDocumentsDatabase))
+ {
+ // to ensure "app" is required (not null)
+ if (app == null)
+ {
+ throw new InvalidDataException("app is a required property for Healthcheck and cannot be null");
+ }
+ else
+ {
+ this.App = app;
+ }
+
+ // to ensure "licenseId" is required (not null)
+ if (licenseId == null)
+ {
+ throw new InvalidDataException("licenseId is a required property for Healthcheck and cannot be null");
+ }
+ else
+ {
+ this.LicenseId = licenseId;
+ }
+
+ this.LicenseId = licenseId;
+ // to ensure "licenseType" is required (not null)
+ if (licenseType == null)
+ {
+ throw new InvalidDataException("licenseType is a required property for Healthcheck and cannot be null");
+ }
+ else
+ {
+ this.LicenseType = licenseType;
+ }
+
+ this.LicenseType = licenseType;
+ // to ensure "licenseSerial" is required (not null)
+ if (licenseSerial == null)
+ {
+ throw new InvalidDataException("licenseSerial is a required property for Healthcheck and cannot be null");
+ }
+ else
+ {
+ this.LicenseSerial = licenseSerial;
+ }
+
+ this.LicenseSerial = licenseSerial;
+ // to ensure "licenseValidUntil" is required (not null)
+ if (licenseValidUntil == null)
+ {
+ throw new InvalidDataException("licenseValidUntil is a required property for Healthcheck and cannot be null");
+ }
+ else
+ {
+ this.LicenseValidUntil = licenseValidUntil;
+ }
+
+ this.LicenseValidUntil = licenseValidUntil;
+ // to ensure "scenarios" is required (not null)
+ if (scenarios == null)
+ {
+ throw new InvalidDataException("scenarios is a required property for Healthcheck and cannot be null");
+ }
+ else
+ {
+ this.Scenarios = scenarios;
+ }
+
+ this.Scenarios = scenarios;
+ // to ensure "version" is required (not null)
+ if (version == null)
+ {
+ throw new InvalidDataException("version is a required property for Healthcheck and cannot be null");
+ }
+ else
+ {
+ this.Version = version;
+ }
+
+ this.Version = version;
+ this.DocumentsDatabase = documentsDatabase;
+ }
+
+ ///
+ /// Application name.
+ ///
+ /// Application name.
+ [DataMember(Name="app", EmitDefaultValue=true)]
+ public string App { get; set; }
+
+ ///
+ /// Unique license identifier.
+ ///
+ /// Unique license identifier.
+ [DataMember(Name="licenseId", EmitDefaultValue=true)]
+ public string LicenseId { get; set; }
+
+ ///
+ /// License type.
+ ///
+ /// License type.
+ [DataMember(Name="licenseType", EmitDefaultValue=true)]
+ public string LicenseType { get; set; }
+
+ ///
+ /// License serial number.
+ ///
+ /// License serial number.
+ [DataMember(Name="licenseSerial", EmitDefaultValue=true)]
+ public string LicenseSerial { get; set; }
+
+ ///
+ /// License validity date.
+ ///
+ /// License validity date.
+ [DataMember(Name="licenseValidUntil", EmitDefaultValue=true)]
+ public DateTime? LicenseValidUntil { get; set; }
+
+ ///
+ /// List of supported scenarios.
+ ///
+ /// List of supported scenarios.
+ [DataMember(Name="scenarios", EmitDefaultValue=true)]
+ public List Scenarios { get; set; }
+
+ ///
+ /// Product version.
+ ///
+ /// Product version.
+ [DataMember(Name="version", EmitDefaultValue=true)]
+ public string Version { get; set; }
+
+ ///
+ /// Gets or Sets DocumentsDatabase
+ ///
+ [DataMember(Name="documentsDatabase", EmitDefaultValue=false)]
+ public HealthcheckDocumentsDatabase DocumentsDatabase { 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 Healthcheck {\n");
+ sb.Append(" App: ").Append(App).Append("\n");
+ sb.Append(" LicenseId: ").Append(LicenseId).Append("\n");
+ sb.Append(" LicenseType: ").Append(LicenseType).Append("\n");
+ sb.Append(" LicenseSerial: ").Append(LicenseSerial).Append("\n");
+ sb.Append(" LicenseValidUntil: ").Append(LicenseValidUntil).Append("\n");
+ sb.Append(" Scenarios: ").Append(Scenarios).Append("\n");
+ sb.Append(" Version: ").Append(Version).Append("\n");
+ sb.Append(" DocumentsDatabase: ").Append(DocumentsDatabase).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 Healthcheck);
+ }
+
+ ///
+ /// Returns true if Healthcheck instances are equal
+ ///
+ /// Instance of Healthcheck to be compared
+ /// Boolean
+ public bool Equals(Healthcheck input)
+ {
+ if (input == null)
+ return false;
+
+ return
+ (
+ this.App == input.App ||
+ (this.App != null &&
+ this.App.Equals(input.App))
+ ) &&
+ (
+ this.LicenseId == input.LicenseId ||
+ (this.LicenseId != null &&
+ this.LicenseId.Equals(input.LicenseId))
+ ) &&
+ (
+ this.LicenseType == input.LicenseType ||
+ (this.LicenseType != null &&
+ this.LicenseType.Equals(input.LicenseType))
+ ) &&
+ (
+ this.LicenseSerial == input.LicenseSerial ||
+ (this.LicenseSerial != null &&
+ this.LicenseSerial.Equals(input.LicenseSerial))
+ ) &&
+ (
+ this.LicenseValidUntil == input.LicenseValidUntil ||
+ (this.LicenseValidUntil != null &&
+ this.LicenseValidUntil.Equals(input.LicenseValidUntil))
+ ) &&
+ (
+ this.Scenarios == input.Scenarios ||
+ this.Scenarios != null &&
+ input.Scenarios != null &&
+ this.Scenarios.SequenceEqual(input.Scenarios)
+ ) &&
+ (
+ this.Version == input.Version ||
+ (this.Version != null &&
+ this.Version.Equals(input.Version))
+ ) &&
+ (
+ this.DocumentsDatabase == input.DocumentsDatabase ||
+ (this.DocumentsDatabase != null &&
+ this.DocumentsDatabase.Equals(input.DocumentsDatabase))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.App != null)
+ hashCode = hashCode * 59 + this.App.GetHashCode();
+ if (this.LicenseId != null)
+ hashCode = hashCode * 59 + this.LicenseId.GetHashCode();
+ if (this.LicenseType != null)
+ hashCode = hashCode * 59 + this.LicenseType.GetHashCode();
+ if (this.LicenseSerial != null)
+ hashCode = hashCode * 59 + this.LicenseSerial.GetHashCode();
+ if (this.LicenseValidUntil != null)
+ hashCode = hashCode * 59 + this.LicenseValidUntil.GetHashCode();
+ if (this.Scenarios != null)
+ hashCode = hashCode * 59 + this.Scenarios.GetHashCode();
+ if (this.Version != null)
+ hashCode = hashCode * 59 + this.Version.GetHashCode();
+ if (this.DocumentsDatabase != null)
+ hashCode = hashCode * 59 + this.DocumentsDatabase.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/HealthcheckDocumentsDatabase.cs b/src/Regula.DocumentReader.WebClient/Model/HealthcheckDocumentsDatabase.cs
new file mode 100644
index 0000000..8374551
--- /dev/null
+++ b/src/Regula.DocumentReader.WebClient/Model/HealthcheckDocumentsDatabase.cs
@@ -0,0 +1,222 @@
+/*
+ * 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.2.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
+{
+ ///
+ /// Database information.
+ ///
+ [DataContract]
+ public partial class HealthcheckDocumentsDatabase : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected HealthcheckDocumentsDatabase() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Database identifier. (required).
+ /// Database version. (required).
+ /// Date of database creation. (required).
+ /// Description of the database contents, such as the list of supported countries and documents. (required).
+ public HealthcheckDocumentsDatabase(string id = default(string), string version = default(string), DateTime? exportDate = default(DateTime?), string description = default(string))
+ {
+ // to ensure "id" is required (not null)
+ if (id == null)
+ {
+ throw new InvalidDataException("id is a required property for HealthcheckDocumentsDatabase and cannot be null");
+ }
+ else
+ {
+ this.Id = id;
+ }
+
+ this.Id = id;
+ // to ensure "version" is required (not null)
+ if (version == null)
+ {
+ throw new InvalidDataException("version is a required property for HealthcheckDocumentsDatabase and cannot be null");
+ }
+ else
+ {
+ this.Version = version;
+ }
+
+ this.Version = version;
+ // to ensure "exportDate" is required (not null)
+ if (exportDate == null)
+ {
+ throw new InvalidDataException("exportDate is a required property for HealthcheckDocumentsDatabase and cannot be null");
+ }
+ else
+ {
+ this.ExportDate = exportDate;
+ }
+
+ this.ExportDate = exportDate;
+ // to ensure "description" is required (not null)
+ if (description == null)
+ {
+ throw new InvalidDataException("description is a required property for HealthcheckDocumentsDatabase and cannot be null");
+ }
+ else
+ {
+ this.Description = description;
+ }
+
+ this.Description = description;
+ }
+
+ ///
+ /// Database identifier.
+ ///
+ /// Database identifier.
+ [DataMember(Name="id", EmitDefaultValue=true)]
+ public string Id { get; set; }
+
+ ///
+ /// Database version.
+ ///
+ /// Database version.
+ [DataMember(Name="version", EmitDefaultValue=true)]
+ public string Version { get; set; }
+
+ ///
+ /// Date of database creation.
+ ///
+ /// Date of database creation.
+ [DataMember(Name="exportDate", EmitDefaultValue=true)]
+ [JsonConverter(typeof(OpenAPIDateConverter))]
+ public DateTime? ExportDate { get; set; }
+
+ ///
+ /// Description of the database contents, such as the list of supported countries and documents.
+ ///
+ /// Description of the database contents, such as the list of supported countries and documents.
+ [DataMember(Name="description", EmitDefaultValue=true)]
+ public string Description { 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 HealthcheckDocumentsDatabase {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Version: ").Append(Version).Append("\n");
+ sb.Append(" ExportDate: ").Append(ExportDate).Append("\n");
+ sb.Append(" Description: ").Append(Description).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 HealthcheckDocumentsDatabase);
+ }
+
+ ///
+ /// Returns true if HealthcheckDocumentsDatabase instances are equal
+ ///
+ /// Instance of HealthcheckDocumentsDatabase to be compared
+ /// Boolean
+ public bool Equals(HealthcheckDocumentsDatabase input)
+ {
+ if (input == null)
+ return false;
+
+ return
+ (
+ this.Id == input.Id ||
+ (this.Id != null &&
+ this.Id.Equals(input.Id))
+ ) &&
+ (
+ this.Version == input.Version ||
+ (this.Version != null &&
+ this.Version.Equals(input.Version))
+ ) &&
+ (
+ this.ExportDate == input.ExportDate ||
+ (this.ExportDate != null &&
+ this.ExportDate.Equals(input.ExportDate))
+ ) &&
+ (
+ this.Description == input.Description ||
+ (this.Description != null &&
+ this.Description.Equals(input.Description))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Id != null)
+ hashCode = hashCode * 59 + this.Id.GetHashCode();
+ if (this.Version != null)
+ hashCode = hashCode * 59 + this.Version.GetHashCode();
+ if (this.ExportDate != null)
+ hashCode = hashCode * 59 + this.ExportDate.GetHashCode();
+ if (this.Description != null)
+ hashCode = hashCode * 59 + this.Description.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/ImageData.cs b/src/Regula.DocumentReader.WebClient/Model/ImageData.cs
index 38ee6ac..9dd1825 100644
--- a/src/Regula.DocumentReader.WebClient/Model/ImageData.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/ImageData.cs
@@ -39,7 +39,8 @@ protected ImageData() { }
/// Initializes a new instance of the class.
///
/// Base64 encoded image (required).
- public ImageData(string image = default(string))
+ /// Image format.
+ public ImageData(string image = default(string), string format = default(string))
{
// to ensure "image" is required (not null)
if (image == null)
@@ -51,6 +52,7 @@ protected ImageData() { }
this.Image = image;
}
+ this.Format = format;
}
///
@@ -60,6 +62,13 @@ protected ImageData() { }
[DataMember(Name="image", EmitDefaultValue=true)]
public string Image { get; set; }
+ ///
+ /// Image format
+ ///
+ /// Image format
+ [DataMember(Name="format", EmitDefaultValue=false)]
+ public string Format { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -69,6 +78,7 @@ public override string ToString()
var sb = new StringBuilder();
sb.Append("class ImageData {\n");
sb.Append(" Image: ").Append(Image).Append("\n");
+ sb.Append(" Format: ").Append(Format).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -107,6 +117,11 @@ public bool Equals(ImageData input)
this.Image == input.Image ||
(this.Image != null &&
this.Image.Equals(input.Image))
+ ) &&
+ (
+ this.Format == input.Format ||
+ (this.Format != null &&
+ this.Format.Equals(input.Format))
);
}
@@ -121,6 +136,8 @@ public override int GetHashCode()
int hashCode = 41;
if (this.Image != null)
hashCode = hashCode * 59 + this.Image.GetHashCode();
+ if (this.Format != null)
+ hashCode = hashCode * 59 + this.Format.GetHashCode();
return hashCode;
}
}
diff --git a/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs b/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs
index eece723..03e6df1 100644
--- a/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs
@@ -66,7 +66,8 @@ protected ProcessParams() { }
/// When enabled, each field in template will be checked for value presence and if the field is marked as required, but has no value, it will have 'error' in validity status. Disabled by default..
/// When enabled, returns cropped barcode images for unknown documents. Disabled by default..
/// imageQa.
- /// When enabled, image quality checks status affects document optical and overall status. Disabled by default..
+ /// When enabled, the image quality check status affects the document optical and overall status. Disabled by default..
+ /// Deprecated. Please use strictImageQuality instead. When enabled, image quality checks status affects document optical and overall status. Disabled by default..
/// forceDocFormat.
/// When enabled, no graphic fields will be cropped from document image. Disabled by default..
/// When enabled, all personal data will be forcibly removed from the logs. Disabled by default..
@@ -92,7 +93,8 @@ protected ProcessParams() { }
/// authParams.
/// mrzDetectMode.
/// This parameter is used to generate numeric representation for issuing state and nationality codes.
- public ProcessParams(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? 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?))
+ /// 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..
+ public ProcessParams(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?))
{
// to ensure "scenario" is required (not null)
if (scenario == null)
@@ -131,6 +133,7 @@ protected ProcessParams() { }
this.CheckRequiredTextFields = checkRequiredTextFields;
this.ReturnCroppedBarcode = returnCroppedBarcode;
this.ImageQa = imageQa;
+ this.StrictImageQuality = strictImageQuality;
this.RespectImageQuality = respectImageQuality;
this.ForceDocFormat = forceDocFormat;
this.NoGraphics = noGraphics;
@@ -157,6 +160,7 @@ protected ProcessParams() { }
this.AuthParams = authParams;
this.MrzDetectMode = mrzDetectMode;
this.GenerateNumericCodes = generateNumericCodes;
+ this.StrictBarcodeDigitalSignatureCheck = strictBarcodeDigitalSignatureCheck;
}
///
@@ -351,9 +355,16 @@ protected ProcessParams() { }
public ImageQA ImageQa { get; set; }
///
- /// When enabled, image quality checks status affects document optical and overall status. Disabled by default.
+ /// When enabled, the image quality check status affects the document optical and overall status. Disabled by default.
///
- /// When enabled, image quality checks status affects document optical and overall status. Disabled by default.
+ /// When enabled, the image quality check status affects the document optical and overall status. Disabled by default.
+ [DataMember(Name="strictImageQuality", EmitDefaultValue=false)]
+ public bool? StrictImageQuality { get; set; }
+
+ ///
+ /// Deprecated. Please use strictImageQuality instead. When enabled, image quality checks status affects document optical and overall status. Disabled by default.
+ ///
+ /// Deprecated. Please use strictImageQuality instead. When enabled, image quality checks status affects document optical and overall status. Disabled by default.
[DataMember(Name="respectImageQuality", EmitDefaultValue=false)]
public bool? RespectImageQuality { get; set; }
@@ -527,6 +538,13 @@ protected ProcessParams() { }
[DataMember(Name="generateNumericCodes", EmitDefaultValue=false)]
public bool? GenerateNumericCodes { get; set; }
+ ///
+ /// 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.
+ ///
+ /// 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.
+ [DataMember(Name="strictBarcodeDigitalSignatureCheck", EmitDefaultValue=false)]
+ public bool? StrictBarcodeDigitalSignatureCheck { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -563,6 +581,7 @@ public override string ToString()
sb.Append(" CheckRequiredTextFields: ").Append(CheckRequiredTextFields).Append("\n");
sb.Append(" ReturnCroppedBarcode: ").Append(ReturnCroppedBarcode).Append("\n");
sb.Append(" ImageQa: ").Append(ImageQa).Append("\n");
+ sb.Append(" StrictImageQuality: ").Append(StrictImageQuality).Append("\n");
sb.Append(" RespectImageQuality: ").Append(RespectImageQuality).Append("\n");
sb.Append(" ForceDocFormat: ").Append(ForceDocFormat).Append("\n");
sb.Append(" NoGraphics: ").Append(NoGraphics).Append("\n");
@@ -589,6 +608,7 @@ public override string ToString()
sb.Append(" AuthParams: ").Append(AuthParams).Append("\n");
sb.Append(" MrzDetectMode: ").Append(MrzDetectMode).Append("\n");
sb.Append(" GenerateNumericCodes: ").Append(GenerateNumericCodes).Append("\n");
+ sb.Append(" StrictBarcodeDigitalSignatureCheck: ").Append(StrictBarcodeDigitalSignatureCheck).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -769,6 +789,11 @@ public bool Equals(ProcessParams input)
(this.ImageQa != null &&
this.ImageQa.Equals(input.ImageQa))
) &&
+ (
+ this.StrictImageQuality == input.StrictImageQuality ||
+ (this.StrictImageQuality != null &&
+ this.StrictImageQuality.Equals(input.StrictImageQuality))
+ ) &&
(
this.RespectImageQuality == input.RespectImageQuality ||
(this.RespectImageQuality != null &&
@@ -901,6 +926,11 @@ public bool Equals(ProcessParams input)
this.GenerateNumericCodes == input.GenerateNumericCodes ||
(this.GenerateNumericCodes != null &&
this.GenerateNumericCodes.Equals(input.GenerateNumericCodes))
+ ) &&
+ (
+ this.StrictBarcodeDigitalSignatureCheck == input.StrictBarcodeDigitalSignatureCheck ||
+ (this.StrictBarcodeDigitalSignatureCheck != null &&
+ this.StrictBarcodeDigitalSignatureCheck.Equals(input.StrictBarcodeDigitalSignatureCheck))
);
}
@@ -969,6 +999,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.ReturnCroppedBarcode.GetHashCode();
if (this.ImageQa != null)
hashCode = hashCode * 59 + this.ImageQa.GetHashCode();
+ if (this.StrictImageQuality != null)
+ hashCode = hashCode * 59 + this.StrictImageQuality.GetHashCode();
if (this.RespectImageQuality != null)
hashCode = hashCode * 59 + this.RespectImageQuality.GetHashCode();
if (this.ForceDocFormat != null)
@@ -1021,6 +1053,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.MrzDetectMode.GetHashCode();
if (this.GenerateNumericCodes != null)
hashCode = hashCode * 59 + this.GenerateNumericCodes.GetHashCode();
+ if (this.StrictBarcodeDigitalSignatureCheck != null)
+ hashCode = hashCode * 59 + this.StrictBarcodeDigitalSignatureCheck.GetHashCode();
return hashCode;
}
}
diff --git a/src/Regula.DocumentReader.WebClient/Model/ProcessRequest.cs b/src/Regula.DocumentReader.WebClient/Model/ProcessRequest.cs
index 5fea77f..69816f6 100644
--- a/src/Regula.DocumentReader.WebClient/Model/ProcessRequest.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/ProcessRequest.cs
@@ -48,7 +48,8 @@ protected ProcessRequest() { }
/// containerList.
/// systemInfo.
/// 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..
- 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))
+ /// 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), List imageUrls = default(List))
{
// to ensure "processParam" is required (not null)
if (processParam == null)
@@ -69,6 +70,7 @@ protected ProcessRequest() { }
this.ContainerList = containerList;
this.SystemInfo = systemInfo;
this.PassBackObject = passBackObject;
+ this.ImageUrls = imageUrls;
}
///
@@ -137,6 +139,13 @@ protected ProcessRequest() { }
[DataMember(Name="passBackObject", EmitDefaultValue=false)]
public Dictionary PassBackObject { get; set; }
+ ///
+ /// URLs to the document images for processing.
+ ///
+ /// URLs to the document images for processing.
+ [DataMember(Name="ImageUrls", EmitDefaultValue=false)]
+ public List ImageUrls { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -155,6 +164,7 @@ public override string ToString()
sb.Append(" ContainerList: ").Append(ContainerList).Append("\n");
sb.Append(" SystemInfo: ").Append(SystemInfo).Append("\n");
sb.Append(" PassBackObject: ").Append(PassBackObject).Append("\n");
+ sb.Append(" ImageUrls: ").Append(ImageUrls).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -240,6 +250,12 @@ public bool Equals(ProcessRequest input)
this.PassBackObject != null &&
input.PassBackObject != null &&
this.PassBackObject.SequenceEqual(input.PassBackObject)
+ ) &&
+ (
+ this.ImageUrls == input.ImageUrls ||
+ this.ImageUrls != null &&
+ input.ImageUrls != null &&
+ this.ImageUrls.SequenceEqual(input.ImageUrls)
);
}
@@ -272,6 +288,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.SystemInfo.GetHashCode();
if (this.PassBackObject != null)
hashCode = hashCode * 59 + this.PassBackObject.GetHashCode();
+ if (this.ImageUrls != null)
+ hashCode = hashCode * 59 + this.ImageUrls.GetHashCode();
return hashCode;
}
}
diff --git a/src/Regula.DocumentReader.WebClient/Model/TransactionProcessGetResponse.cs b/src/Regula.DocumentReader.WebClient/Model/TransactionProcessGetResponse.cs
index 815ac5a..e019332 100644
--- a/src/Regula.DocumentReader.WebClient/Model/TransactionProcessGetResponse.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/TransactionProcessGetResponse.cs
@@ -37,7 +37,7 @@ public partial class TransactionProcessGetResponse : IEquatabletag.
/// outData.
/// inData.
- public TransactionProcessGetResponse(int transactionId = default(int), string tag = default(string), OutData outData = default(OutData), InData inData = default(InData))
+ public TransactionProcessGetResponse(Guid transactionId = default(Guid), string tag = default(string), OutData outData = default(OutData), InData inData = default(InData))
{
this.TransactionId = transactionId;
this.Tag = tag;
@@ -49,7 +49,7 @@ public partial class TransactionProcessGetResponse : IEquatable
[DataMember(Name="transactionId", EmitDefaultValue=false)]
- public int TransactionId { get; set; }
+ public Guid TransactionId { get; set; }
///
/// Gets or Sets Tag