diff --git a/.github/workflows/run-smoke-test.yml b/.github/workflows/run-smoke-test.yml
index cac9717..b60aa56 100755
--- a/.github/workflows/run-smoke-test.yml
+++ b/.github/workflows/run-smoke-test.yml
@@ -3,7 +3,9 @@ name: run smoke test
on:
pull_request:
branches:
+ - develop
- master
+ - stable
jobs:
run_smoke_test:
diff --git a/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs b/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs
index c8e1f98..0cd1e9a 100644
--- a/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs
@@ -58,7 +58,8 @@ protected AuthenticityCheckResultItem() { }
/// Same as authenticity result type, but used for safe parsing of not-described values. See authenticity result type (required) (default to 0).
/// elementResult.
/// elementDiagnose.
- public AuthenticityCheckResultItem(int type = 0, int elementResult = default(int), int elementDiagnose = default(int))
+ /// percentValue.
+ public AuthenticityCheckResultItem(int type = 0, int elementResult = default(int), int elementDiagnose = default(int), int percentValue = 0)
{
// to ensure "type" is required (not null)
if (type == null)
@@ -69,7 +70,7 @@ protected AuthenticityCheckResultItem() { }
{
this.Type = type;
}
-
+ this.PercentValue = percentValue;
this.ElementResult = elementResult;
this.ElementDiagnose = elementDiagnose;
}
@@ -81,6 +82,13 @@ protected AuthenticityCheckResultItem() { }
[DataMember(Name="Type", EmitDefaultValue=true)]
public int Type { get; set; }
+ ///
+ /// Gets or Sets PercentValue
+ ///
+ [DataMember(Name="PercentValue", EmitDefaultValue=false)]
+ public int PercentValue { get; set; }
+
+
///
/// Gets or Sets ElementResult
///
diff --git a/src/Regula.DocumentReader.WebClient/Model/Ext/RecognitionRequest.cs b/src/Regula.DocumentReader.WebClient/Model/Ext/RecognitionRequest.cs
index 7a3f23a..f24f2b2 100644
--- a/src/Regula.DocumentReader.WebClient/Model/Ext/RecognitionRequest.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/Ext/RecognitionRequest.cs
@@ -5,17 +5,17 @@ namespace Regula.DocumentReader.WebClient.Model.Ext
public class RecognitionRequest : ProcessRequest
{
public RecognitionRequest(ProcessParams param, ProcessRequestImage image, string tag = null)
- : base(tag, param, new List { image })
+ : base(param, new List { image }, tag)
{
}
public RecognitionRequest(ProcessParams param, byte[] image, string tag = null)
- : base(tag, param, new List { new ProcessRequestImage(image) })
+ : base( param, new List { new ProcessRequestImage(image) }, tag)
{
}
public RecognitionRequest(ProcessParams param, List images, string tag = null)
- : base(tag, param, images)
+ : base(param, images, tag)
{
}
@@ -24,6 +24,11 @@ public RecognitionRequest(ProcessParams param, ContainerList containerList, stri
{
}
+ public RecognitionRequest(ProcessParams param, List images, string extPortrait, string tag = null)
+ : base(param, images, tag, extPortrait:extPortrait)
+ {
+ }
+
public string Json => Newtonsoft.Json.JsonConvert.SerializeObject(this);
}
}
diff --git a/src/Regula.DocumentReader.WebClient/Model/FiberResult.cs b/src/Regula.DocumentReader.WebClient/Model/FiberResult.cs
index 1573b66..28e5056 100644
--- a/src/Regula.DocumentReader.WebClient/Model/FiberResult.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/FiberResult.cs
@@ -47,7 +47,7 @@ protected FiberResult() { }
/// 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)) : base(type, elementResult, elementDiagnose)
+ 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)
{
this.RectCount = rectCount;
this.ExpectedCount = expectedCount;
diff --git a/src/Regula.DocumentReader.WebClient/Model/GetTransactionsByTagResponse.cs b/src/Regula.DocumentReader.WebClient/Model/GetTransactionsByTagResponse.cs
new file mode 100644
index 0000000..9bc7c88
--- /dev/null
+++ b/src/Regula.DocumentReader.WebClient/Model/GetTransactionsByTagResponse.cs
@@ -0,0 +1,159 @@
+/*
+ * 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
+{
+ ///
+ /// GetTransactionsByTagResponse
+ ///
+ [DataContract]
+ public partial class GetTransactionsByTagResponse : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Transaction id.
+ /// Transaction status.
+ /// Last time updated.
+ public GetTransactionsByTagResponse(int id = default(int), int state = default(int), DateTime updatedAt = default(DateTime))
+ {
+ this.Id = id;
+ this.State = state;
+ this.UpdatedAt = updatedAt;
+ }
+
+ ///
+ /// Transaction id
+ ///
+ /// Transaction id
+ [DataMember(Name="id", EmitDefaultValue=false)]
+ public int Id { get; set; }
+
+ ///
+ /// Transaction status
+ ///
+ /// Transaction status
+ [DataMember(Name="state", EmitDefaultValue=false)]
+ public int State { get; set; }
+
+ ///
+ /// Last time updated
+ ///
+ /// Last time updated
+ [DataMember(Name="updatedAt", EmitDefaultValue=false)]
+ public DateTime UpdatedAt { 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 GetTransactionsByTagResponse {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" State: ").Append(State).Append("\n");
+ sb.Append(" UpdatedAt: ").Append(UpdatedAt).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 GetTransactionsByTagResponse);
+ }
+
+ ///
+ /// Returns true if GetTransactionsByTagResponse instances are equal
+ ///
+ /// Instance of GetTransactionsByTagResponse to be compared
+ /// Boolean
+ public bool Equals(GetTransactionsByTagResponse input)
+ {
+ if (input == null)
+ return false;
+
+ return
+ (
+ this.Id == input.Id ||
+ (this.Id != null &&
+ this.Id.Equals(input.Id))
+ ) &&
+ (
+ this.State == input.State ||
+ (this.State != null &&
+ this.State.Equals(input.State))
+ ) &&
+ (
+ this.UpdatedAt == input.UpdatedAt ||
+ (this.UpdatedAt != null &&
+ this.UpdatedAt.Equals(input.UpdatedAt))
+ );
+ }
+
+ ///
+ /// 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.State != null)
+ hashCode = hashCode * 59 + this.State.GetHashCode();
+ if (this.UpdatedAt != null)
+ hashCode = hashCode * 59 + this.UpdatedAt.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/ImageQA.cs b/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs
index d301358..1179d12 100644
--- a/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/ImageQA.cs
@@ -39,9 +39,8 @@ 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), bool moireCheck = 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), int documentPositionIndent = default(int))
{
this.BrightnessThreshold = brightnessThreshold;
this.DpiThreshold = dpiThreshold;
@@ -49,7 +48,6 @@ public partial class ImageQA : IEquatable, IValidatableObject
this.FocusCheck = focusCheck;
this.GlaresCheck = glaresCheck;
this.ColornessCheck = colornessCheck;
- this.MoireCheck = moireCheck;
this.DocumentPositionIndent = documentPositionIndent;
}
@@ -95,13 +93,6 @@ 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.
///
@@ -123,7 +114,6 @@ 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();
@@ -189,11 +179,6 @@ 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 &&
@@ -222,8 +207,6 @@ 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/OCRSecurityTextResult.cs b/src/Regula.DocumentReader.WebClient/Model/OCRSecurityTextResult.cs
index 8a64067..1119507 100644
--- a/src/Regula.DocumentReader.WebClient/Model/OCRSecurityTextResult.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/OCRSecurityTextResult.cs
@@ -48,7 +48,7 @@ protected OCRSecurityTextResult() { }
/// etalonResultOCR.
/// 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)) : base(type, elementResult, elementDiagnose)
+ 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)
{
this.CriticalFlag = criticalFlag;
this.LightType = lightType;
diff --git a/src/Regula.DocumentReader.WebClient/Model/PhotoIdentResult.cs b/src/Regula.DocumentReader.WebClient/Model/PhotoIdentResult.cs
index a602b56..4b3d55e 100644
--- a/src/Regula.DocumentReader.WebClient/Model/PhotoIdentResult.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/PhotoIdentResult.cs
@@ -47,7 +47,7 @@ protected PhotoIdentResult() { }
/// step.
/// angle.
/// 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)) : base(type, elementResult, elementDiagnose)
+ 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)
{
this.LightIndex = lightIndex;
this.Area = area;
diff --git a/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs b/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs
index bfd113d..69a2684 100644
--- a/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs
@@ -91,7 +91,8 @@ protected ProcessParams() { }
/// This parameter is used to enable authenticity checks.
/// authParams.
/// mrzDetectMode.
- 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))
+ /// 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))
{
// to ensure "scenario" is required (not null)
if (scenario == null)
@@ -155,6 +156,7 @@ protected ProcessParams() { }
this.CheckAuth = checkAuth;
this.AuthParams = authParams;
this.MrzDetectMode = mrzDetectMode;
+ this.GenerateNumericCodes = generateNumericCodes;
}
///
@@ -518,6 +520,13 @@ protected ProcessParams() { }
[DataMember(Name="mrzDetectMode", EmitDefaultValue=false)]
public MrzDetectModeEnum MrzDetectMode { get; set; }
+ ///
+ /// This parameter is used to generate numeric representation for issuing state and nationality codes
+ ///
+ /// This parameter is used to generate numeric representation for issuing state and nationality codes
+ [DataMember(Name="generateNumericCodes", EmitDefaultValue=false)]
+ public bool GenerateNumericCodes { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -579,6 +588,7 @@ public override string ToString()
sb.Append(" CheckAuth: ").Append(CheckAuth).Append("\n");
sb.Append(" AuthParams: ").Append(AuthParams).Append("\n");
sb.Append(" MrzDetectMode: ").Append(MrzDetectMode).Append("\n");
+ sb.Append(" GenerateNumericCodes: ").Append(GenerateNumericCodes).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -886,6 +896,11 @@ public bool Equals(ProcessParams input)
this.MrzDetectMode == input.MrzDetectMode ||
(this.MrzDetectMode != null &&
this.MrzDetectMode.Equals(input.MrzDetectMode))
+ ) &&
+ (
+ this.GenerateNumericCodes == input.GenerateNumericCodes ||
+ (this.GenerateNumericCodes != null &&
+ this.GenerateNumericCodes.Equals(input.GenerateNumericCodes))
);
}
@@ -1004,6 +1019,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.AuthParams.GetHashCode();
if (this.MrzDetectMode != null)
hashCode = hashCode * 59 + this.MrzDetectMode.GetHashCode();
+ if (this.GenerateNumericCodes != null)
+ hashCode = hashCode * 59 + this.GenerateNumericCodes.GetHashCode();
return hashCode;
}
}
diff --git a/src/Regula.DocumentReader.WebClient/Model/ProcessRequest.cs b/src/Regula.DocumentReader.WebClient/Model/ProcessRequest.cs
index 6e90866..5fea77f 100644
--- a/src/Regula.DocumentReader.WebClient/Model/ProcessRequest.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/ProcessRequest.cs
@@ -38,15 +38,17 @@ protected ProcessRequest() { }
///
/// Initializes a new instance of the class.
///
- /// session id.
/// processParam (required).
/// list.
+ /// Session ID.
+ /// Customer name.
+ /// Environment type.
/// Live portrait photo.
/// Portrait photo from an external source.
/// 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(string tag = default(string), ProcessParams processParam = default(ProcessParams), List list = default(List), string livePortrait = default(string), string extPortrait = default(string), ContainerList containerList = default(ContainerList), ProcessSystemInfo systemInfo = default(ProcessSystemInfo), Dictionary passBackObject = default(Dictionary))
+ 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))
{
// to ensure "processParam" is required (not null)
if (processParam == null)
@@ -58,8 +60,10 @@ protected ProcessRequest() { }
this.ProcessParam = processParam;
}
- this.Tag = tag;
this.List = list;
+ this.Tag = tag;
+ this.Tenant = tenant;
+ this.Env = env;
this.LivePortrait = livePortrait;
this.ExtPortrait = extPortrait;
this.ContainerList = containerList;
@@ -67,13 +71,6 @@ protected ProcessRequest() { }
this.PassBackObject = passBackObject;
}
- ///
- /// session id
- ///
- /// session id
- [DataMember(Name="tag", EmitDefaultValue=false)]
- public string Tag { get; set; }
-
///
/// Gets or Sets ProcessParam
///
@@ -86,6 +83,27 @@ protected ProcessRequest() { }
[DataMember(Name="List", EmitDefaultValue=false)]
public List List { get; set; }
+ ///
+ /// Session ID
+ ///
+ /// Session ID
+ [DataMember(Name="tag", EmitDefaultValue=false)]
+ public string Tag { get; set; }
+
+ ///
+ /// Customer name
+ ///
+ /// Customer name
+ [DataMember(Name="tenant", EmitDefaultValue=false)]
+ public string Tenant { get; set; }
+
+ ///
+ /// Environment type
+ ///
+ /// Environment type
+ [DataMember(Name="env", EmitDefaultValue=false)]
+ public string Env { get; set; }
+
///
/// Live portrait photo
///
@@ -127,9 +145,11 @@ public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class ProcessRequest {\n");
- sb.Append(" Tag: ").Append(Tag).Append("\n");
sb.Append(" ProcessParam: ").Append(ProcessParam).Append("\n");
sb.Append(" List: ").Append(List).Append("\n");
+ sb.Append(" Tag: ").Append(Tag).Append("\n");
+ sb.Append(" Tenant: ").Append(Tenant).Append("\n");
+ sb.Append(" Env: ").Append(Env).Append("\n");
sb.Append(" LivePortrait: ").Append(LivePortrait).Append("\n");
sb.Append(" ExtPortrait: ").Append(ExtPortrait).Append("\n");
sb.Append(" ContainerList: ").Append(ContainerList).Append("\n");
@@ -169,11 +189,6 @@ public bool Equals(ProcessRequest input)
return false;
return
- (
- this.Tag == input.Tag ||
- (this.Tag != null &&
- this.Tag.Equals(input.Tag))
- ) &&
(
this.ProcessParam == input.ProcessParam ||
(this.ProcessParam != null &&
@@ -185,6 +200,21 @@ public bool Equals(ProcessRequest input)
input.List != null &&
this.List.SequenceEqual(input.List)
) &&
+ (
+ this.Tag == input.Tag ||
+ (this.Tag != null &&
+ this.Tag.Equals(input.Tag))
+ ) &&
+ (
+ this.Tenant == input.Tenant ||
+ (this.Tenant != null &&
+ this.Tenant.Equals(input.Tenant))
+ ) &&
+ (
+ this.Env == input.Env ||
+ (this.Env != null &&
+ this.Env.Equals(input.Env))
+ ) &&
(
this.LivePortrait == input.LivePortrait ||
(this.LivePortrait != null &&
@@ -222,12 +252,16 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- if (this.Tag != null)
- hashCode = hashCode * 59 + this.Tag.GetHashCode();
if (this.ProcessParam != null)
hashCode = hashCode * 59 + this.ProcessParam.GetHashCode();
if (this.List != null)
hashCode = hashCode * 59 + this.List.GetHashCode();
+ if (this.Tag != null)
+ hashCode = hashCode * 59 + this.Tag.GetHashCode();
+ if (this.Tenant != null)
+ hashCode = hashCode * 59 + this.Tenant.GetHashCode();
+ if (this.Env != null)
+ hashCode = hashCode * 59 + this.Env.GetHashCode();
if (this.LivePortrait != null)
hashCode = hashCode * 59 + this.LivePortrait.GetHashCode();
if (this.ExtPortrait != null)
diff --git a/src/Regula.DocumentReader.WebClient/Model/SecurityFeatureResult.cs b/src/Regula.DocumentReader.WebClient/Model/SecurityFeatureResult.cs
index 5ce28d0..ffbc6f3 100644
--- a/src/Regula.DocumentReader.WebClient/Model/SecurityFeatureResult.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/SecurityFeatureResult.cs
@@ -44,7 +44,7 @@ protected SecurityFeatureResult() { }
/// criticalFlag.
/// 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)) : base(type, elementResult, elementDiagnose)
+ 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)
{
this.ElementType = elementType;
this.ElementRect = elementRect;
diff --git a/src/Regula.DocumentReader.WebClient/Model/TransactionProcessRequest.cs b/src/Regula.DocumentReader.WebClient/Model/TransactionProcessRequest.cs
index c411828..01234a4 100644
--- a/src/Regula.DocumentReader.WebClient/Model/TransactionProcessRequest.cs
+++ b/src/Regula.DocumentReader.WebClient/Model/TransactionProcessRequest.cs
@@ -39,7 +39,13 @@ protected TransactionProcessRequest() { }
/// Initializes a new instance of the class.
///
/// processParam (required).
- public TransactionProcessRequest(TransactionScenarioRequest processParam = default(TransactionScenarioRequest))
+ /// list.
+ /// Live portrait photo.
+ /// Portrait photo from an external source.
+ /// 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 TransactionProcessRequest(ProcessParams processParam = default(ProcessParams), List list = default(List), string livePortrait = default(string), string extPortrait = default(string), ContainerList containerList = default(ContainerList), ProcessSystemInfo systemInfo = default(ProcessSystemInfo), Dictionary passBackObject = default(Dictionary))
{
// to ensure "processParam" is required (not null)
if (processParam == null)
@@ -51,13 +57,58 @@ protected TransactionProcessRequest() { }
this.ProcessParam = processParam;
}
+ this.List = list;
+ this.LivePortrait = livePortrait;
+ this.ExtPortrait = extPortrait;
+ this.ContainerList = containerList;
+ this.SystemInfo = systemInfo;
+ this.PassBackObject = passBackObject;
}
///
/// Gets or Sets ProcessParam
///
[DataMember(Name="processParam", EmitDefaultValue=true)]
- public TransactionScenarioRequest ProcessParam { get; set; }
+ public ProcessParams ProcessParam { get; set; }
+
+ ///
+ /// Gets or Sets List
+ ///
+ [DataMember(Name="List", EmitDefaultValue=false)]
+ public List List { get; set; }
+
+ ///
+ /// Live portrait photo
+ ///
+ /// Live portrait photo
+ [DataMember(Name="livePortrait", EmitDefaultValue=false)]
+ public string LivePortrait { get; set; }
+
+ ///
+ /// Portrait photo from an external source
+ ///
+ /// Portrait photo from an external source
+ [DataMember(Name="extPortrait", EmitDefaultValue=false)]
+ public string ExtPortrait { get; set; }
+
+ ///
+ /// Gets or Sets ContainerList
+ ///
+ [DataMember(Name="ContainerList", EmitDefaultValue=false)]
+ public ContainerList ContainerList { get; set; }
+
+ ///
+ /// Gets or Sets SystemInfo
+ ///
+ [DataMember(Name="systemInfo", EmitDefaultValue=false)]
+ public ProcessSystemInfo SystemInfo { get; set; }
+
+ ///
+ /// 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.
+ ///
+ /// 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.
+ [DataMember(Name="passBackObject", EmitDefaultValue=false)]
+ public Dictionary PassBackObject { get; set; }
///
/// Returns the string presentation of the object
@@ -68,6 +119,12 @@ public override string ToString()
var sb = new StringBuilder();
sb.Append("class TransactionProcessRequest {\n");
sb.Append(" ProcessParam: ").Append(ProcessParam).Append("\n");
+ sb.Append(" List: ").Append(List).Append("\n");
+ sb.Append(" LivePortrait: ").Append(LivePortrait).Append("\n");
+ sb.Append(" ExtPortrait: ").Append(ExtPortrait).Append("\n");
+ sb.Append(" ContainerList: ").Append(ContainerList).Append("\n");
+ sb.Append(" SystemInfo: ").Append(SystemInfo).Append("\n");
+ sb.Append(" PassBackObject: ").Append(PassBackObject).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -106,6 +163,38 @@ public bool Equals(TransactionProcessRequest input)
this.ProcessParam == input.ProcessParam ||
(this.ProcessParam != null &&
this.ProcessParam.Equals(input.ProcessParam))
+ ) &&
+ (
+ this.List == input.List ||
+ this.List != null &&
+ input.List != null &&
+ this.List.SequenceEqual(input.List)
+ ) &&
+ (
+ this.LivePortrait == input.LivePortrait ||
+ (this.LivePortrait != null &&
+ this.LivePortrait.Equals(input.LivePortrait))
+ ) &&
+ (
+ this.ExtPortrait == input.ExtPortrait ||
+ (this.ExtPortrait != null &&
+ this.ExtPortrait.Equals(input.ExtPortrait))
+ ) &&
+ (
+ this.ContainerList == input.ContainerList ||
+ (this.ContainerList != null &&
+ this.ContainerList.Equals(input.ContainerList))
+ ) &&
+ (
+ this.SystemInfo == input.SystemInfo ||
+ (this.SystemInfo != null &&
+ this.SystemInfo.Equals(input.SystemInfo))
+ ) &&
+ (
+ this.PassBackObject == input.PassBackObject ||
+ this.PassBackObject != null &&
+ input.PassBackObject != null &&
+ this.PassBackObject.SequenceEqual(input.PassBackObject)
);
}
@@ -120,6 +209,18 @@ public override int GetHashCode()
int hashCode = 41;
if (this.ProcessParam != null)
hashCode = hashCode * 59 + this.ProcessParam.GetHashCode();
+ if (this.List != null)
+ hashCode = hashCode * 59 + this.List.GetHashCode();
+ if (this.LivePortrait != null)
+ hashCode = hashCode * 59 + this.LivePortrait.GetHashCode();
+ if (this.ExtPortrait != null)
+ hashCode = hashCode * 59 + this.ExtPortrait.GetHashCode();
+ if (this.ContainerList != null)
+ hashCode = hashCode * 59 + this.ContainerList.GetHashCode();
+ if (this.SystemInfo != null)
+ hashCode = hashCode * 59 + this.SystemInfo.GetHashCode();
+ if (this.PassBackObject != null)
+ hashCode = hashCode * 59 + this.PassBackObject.GetHashCode();
return hashCode;
}
}
diff --git a/src/Regula.DocumentReader.WebClient/Regula.DocumentReader.WebClient.csproj b/src/Regula.DocumentReader.WebClient/Regula.DocumentReader.WebClient.csproj
index 4c9029b..e465315 100644
--- a/src/Regula.DocumentReader.WebClient/Regula.DocumentReader.WebClient.csproj
+++ b/src/Regula.DocumentReader.WebClient/Regula.DocumentReader.WebClient.csproj
@@ -16,7 +16,7 @@
-
+