diff --git a/src/Regula.DocumentReader.WebClient/Model/AuthParams.cs b/src/Regula.DocumentReader.WebClient/Model/AuthParams.cs index 5cb278d..b530917 100644 --- a/src/Regula.DocumentReader.WebClient/Model/AuthParams.cs +++ b/src/Regula.DocumentReader.WebClient/Model/AuthParams.cs @@ -48,7 +48,8 @@ public partial class AuthParams : IEquatable, IValidatableObject /// This parameter is used to enable Owner's photo embedding check (is photo printed or sticked). /// This parameter is used to enable Portrait comparison check. /// This parameter is used to enable LetterScreen check. - public AuthParams(bool? checkLiveness = default(bool?), LivenessParams livenessParams = default(LivenessParams), bool? checkUVLuminiscence = default(bool?), bool? checkIRB900 = default(bool?), bool? checkImagePatterns = default(bool?), bool? checkFibers = default(bool?), bool? checkExtMRZ = default(bool?), bool? checkExtOCR = default(bool?), bool? checkAxial = default(bool?), bool? checkBarcodeFormat = default(bool?), bool? checkIRVisibility = default(bool?), bool? checkIPI = default(bool?), bool? checkPhotoEmbedding = default(bool?), bool? checkPhotoComparison = default(bool?), bool? checkLetterScreen = default(bool?)) + /// This parameter is used to enable Security text check. + public AuthParams(bool? checkLiveness = default(bool?), LivenessParams livenessParams = default(LivenessParams), bool? checkUVLuminiscence = default(bool?), bool? checkIRB900 = default(bool?), bool? checkImagePatterns = default(bool?), bool? checkFibers = default(bool?), bool? checkExtMRZ = default(bool?), bool? checkExtOCR = default(bool?), bool? checkAxial = default(bool?), bool? checkBarcodeFormat = default(bool?), bool? checkIRVisibility = default(bool?), bool? checkIPI = default(bool?), bool? checkPhotoEmbedding = default(bool?), bool? checkPhotoComparison = default(bool?), bool? checkLetterScreen = default(bool?), bool? checkSecurityText = default(bool?)) { this.CheckLiveness = checkLiveness; this.LivenessParams = livenessParams; @@ -65,6 +66,7 @@ public partial class AuthParams : IEquatable, IValidatableObject this.CheckPhotoEmbedding = checkPhotoEmbedding; this.CheckPhotoComparison = checkPhotoComparison; this.CheckLetterScreen = checkLetterScreen; + this.CheckSecurityText = checkSecurityText; } /// @@ -171,6 +173,13 @@ public partial class AuthParams : IEquatable, IValidatableObject [DataMember(Name="checkLetterScreen", EmitDefaultValue=false)] public bool? CheckLetterScreen { get; set; } + /// + /// This parameter is used to enable Security text check + /// + /// This parameter is used to enable Security text check + [DataMember(Name="checkSecurityText", EmitDefaultValue=false)] + public bool? CheckSecurityText { get; set; } + /// /// Returns the string presentation of the object /// @@ -194,6 +203,7 @@ public override string ToString() sb.Append(" CheckPhotoEmbedding: ").Append(CheckPhotoEmbedding).Append("\n"); sb.Append(" CheckPhotoComparison: ").Append(CheckPhotoComparison).Append("\n"); sb.Append(" CheckLetterScreen: ").Append(CheckLetterScreen).Append("\n"); + sb.Append(" CheckSecurityText: ").Append(CheckSecurityText).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -302,6 +312,11 @@ public bool Equals(AuthParams input) this.CheckLetterScreen == input.CheckLetterScreen || (this.CheckLetterScreen != null && this.CheckLetterScreen.Equals(input.CheckLetterScreen)) + ) && + ( + this.CheckSecurityText == input.CheckSecurityText || + (this.CheckSecurityText != null && + this.CheckSecurityText.Equals(input.CheckSecurityText)) ); } @@ -344,6 +359,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.CheckPhotoComparison.GetHashCode(); if (this.CheckLetterScreen != null) hashCode = hashCode * 59 + this.CheckLetterScreen.GetHashCode(); + if (this.CheckSecurityText != null) + hashCode = hashCode * 59 + this.CheckSecurityText.GetHashCode(); return hashCode; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs b/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs index 2a48102..4a4360b 100644 --- a/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs +++ b/src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs @@ -9,14 +9,19 @@ */ 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 JsonSubTypes; using System.ComponentModel.DataAnnotations; -using Regula.DocumentReader.WebClient.Model.Ext.Autheticity; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; namespace Regula.DocumentReader.WebClient.Model { @@ -24,23 +29,12 @@ namespace Regula.DocumentReader.WebClient.Model /// Common fields for all authenticity result objects /// [DataContract] - [JsonConverter(typeof(JsonSubtypes), "Type")] - [JsonSubtypes.KnownSubType(typeof(SecurityFeatureResult), AuthenticityResultType.UV_LUMINESCENCE)] - [JsonSubtypes.KnownSubType(typeof(SecurityFeatureResult), AuthenticityResultType.IR_B900)] - [JsonSubtypes.KnownSubType(typeof(IdentResult), AuthenticityResultType.IMAGE_PATTERN)] - [JsonSubtypes.KnownSubType(typeof(SecurityFeatureResult), AuthenticityResultType.AXIAL_PROTECTION)] - [JsonSubtypes.KnownSubType(typeof(FiberResult), AuthenticityResultType.UV_FIBERS)] - [JsonSubtypes.KnownSubType(typeof(IdentResult), AuthenticityResultType.IR_VISIBILITY)] - [JsonSubtypes.KnownSubType(typeof(OCRSecurityTextResult), AuthenticityResultType.OCR_SECURITY_TEXT)] - [JsonSubtypes.KnownSubType(typeof(ImageIdentChecks), AuthenticityResultType.IPI)] - [JsonSubtypes.KnownSubType(typeof(SecurityFeatureResult), AuthenticityResultType.PHOTO_EMBED_TYPE)] - [JsonSubtypes.KnownSubType(typeof(SecurityFeatureResult), AuthenticityResultType.HOLOGRAMS)] - [JsonSubtypes.KnownSubType(typeof(SecurityFeatureResult), AuthenticityResultType.OVI)] - [JsonSubtypes.KnownSubType(typeof(SecurityFeatureResult), AuthenticityResultType.PHOTO_AREA)] - [JsonSubtypes.KnownSubType(typeof(IdentResult), AuthenticityResultType.PORTRAIT_COMPARISON)] - [JsonSubtypes.KnownSubType(typeof(SecurityFeatureResult), AuthenticityResultType.BARCODE_FORMAT_CHECK)] - [JsonSubtypes.KnownSubType(typeof(IdentResult), AuthenticityResultType.KINEGRAM)] - [JsonSubtypes.KnownSubType(typeof(IdentResult), AuthenticityResultType.LETTER_SCREEN)] + [JsonConverter(typeof(JsonSubtypes), "type")] + [JsonSubtypes.KnownSubType(typeof(PhotoIdentResult), "PhotoIdentResult")] + [JsonSubtypes.KnownSubType(typeof(OCRSecurityTextResult), "OCRSecurityTextResult")] + [JsonSubtypes.KnownSubType(typeof(SecurityFeatureResult), "SecurityFeatureResult")] + [JsonSubtypes.KnownSubType(typeof(IdentResult), "IdentResult")] + [JsonSubtypes.KnownSubType(typeof(FiberResult), "FiberResult")] public partial class AuthenticityCheckResultItem : IEquatable, IValidatableObject { /// diff --git a/src/Regula.DocumentReader.WebClient/Model/FaceApi.cs b/src/Regula.DocumentReader.WebClient/Model/FaceApi.cs index c38b00f..c725d72 100644 --- a/src/Regula.DocumentReader.WebClient/Model/FaceApi.cs +++ b/src/Regula.DocumentReader.WebClient/Model/FaceApi.cs @@ -41,7 +41,9 @@ public partial class FaceApi : IEquatable, IValidatableObject /// Proxy to use, should be set according to the <a href=\"https://curl.se/libcurl/c/CURLOPT_PROXY.html\" target=\"_blank\">cURL standard</a>.. /// Username and password to use for proxy authentication, should be set according to the <a href=\"https://curl.se/libcurl/c/CURLOPT_PROXYUSERPWD.html\" target=\"_blank\">cURL standard</a>.. /// Proxy protocol type, should be set according to the <a href=\"https://curl.se/libcurl/c/CURLOPT_PROXYTYPE.html\" target=\"_blank\">cURL standard</a>.. - public FaceApi(string url = default(string), string mode = default(string), FaceApiSearch search = default(FaceApiSearch), int threshold = default(int), int serviceTimeout = default(int), string proxy = default(string), string proxyUserpwd = default(string), int proxyType = default(int)) + /// The age threshold for the portrait comparison. Default: 13.. + /// Estimated duration of validity for a child's passport, years. Default: 5.. + public FaceApi(string url = default(string), string mode = default(string), FaceApiSearch search = default(FaceApiSearch), int threshold = default(int), int serviceTimeout = default(int), string proxy = default(string), string proxyUserpwd = default(string), int proxyType = default(int), int childAgeThreshold = default(int), int childDocValidityYears = default(int)) { this.Url = url; this.Mode = mode; @@ -51,6 +53,8 @@ public partial class FaceApi : IEquatable, IValidatableObject this.Proxy = proxy; this.ProxyUserpwd = proxyUserpwd; this.ProxyType = proxyType; + this.ChildAgeThreshold = childAgeThreshold; + this.ChildDocValidityYears = childDocValidityYears; } /// @@ -108,6 +112,20 @@ public partial class FaceApi : IEquatable, IValidatableObject [DataMember(Name="proxy_type", EmitDefaultValue=false)] public int ProxyType { get; set; } + /// + /// The age threshold for the portrait comparison. Default: 13. + /// + /// The age threshold for the portrait comparison. Default: 13. + [DataMember(Name="childAgeThreshold", EmitDefaultValue=false)] + public int ChildAgeThreshold { get; set; } + + /// + /// Estimated duration of validity for a child's passport, years. Default: 5. + /// + /// Estimated duration of validity for a child's passport, years. Default: 5. + [DataMember(Name="childDocValidityYears", EmitDefaultValue=false)] + public int ChildDocValidityYears { get; set; } + /// /// Returns the string presentation of the object /// @@ -124,6 +142,8 @@ public override string ToString() sb.Append(" Proxy: ").Append(Proxy).Append("\n"); sb.Append(" ProxyUserpwd: ").Append(ProxyUserpwd).Append("\n"); sb.Append(" ProxyType: ").Append(ProxyType).Append("\n"); + sb.Append(" ChildAgeThreshold: ").Append(ChildAgeThreshold).Append("\n"); + sb.Append(" ChildDocValidityYears: ").Append(ChildDocValidityYears).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -197,6 +217,16 @@ public bool Equals(FaceApi input) this.ProxyType == input.ProxyType || (this.ProxyType != null && this.ProxyType.Equals(input.ProxyType)) + ) && + ( + this.ChildAgeThreshold == input.ChildAgeThreshold || + (this.ChildAgeThreshold != null && + this.ChildAgeThreshold.Equals(input.ChildAgeThreshold)) + ) && + ( + this.ChildDocValidityYears == input.ChildDocValidityYears || + (this.ChildDocValidityYears != null && + this.ChildDocValidityYears.Equals(input.ChildDocValidityYears)) ); } @@ -225,6 +255,10 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.ProxyUserpwd.GetHashCode(); if (this.ProxyType != null) hashCode = hashCode * 59 + this.ProxyType.GetHashCode(); + if (this.ChildAgeThreshold != null) + hashCode = hashCode * 59 + this.ChildAgeThreshold.GetHashCode(); + if (this.ChildDocValidityYears != null) + hashCode = hashCode * 59 + this.ChildDocValidityYears.GetHashCode(); return hashCode; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/InputBarcodeType.cs b/src/Regula.DocumentReader.WebClient/Model/InputBarcodeType.cs new file mode 100644 index 0000000..75b6405 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/InputBarcodeType.cs @@ -0,0 +1,158 @@ +/* + * 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 +{ + /// + /// Enumeration contains the types of barcodes that can be processed + /// + /// Enumeration contains the types of barcodes that can be processed + + [JsonConverter(typeof(StringEnumConverter))] + + public enum InputBarcodeType + { + /// + /// Enum UNKNOWN for value: bct_unknown + /// + [EnumMember(Value = "bct_unknown")] + UNKNOWN = 1, + + /// + /// Enum CODE128 for value: bct_Code128 + /// + [EnumMember(Value = "bct_Code128")] + CODE128 = 2, + + /// + /// Enum CODE39 for value: bct_Code39 + /// + [EnumMember(Value = "bct_Code39")] + CODE39 = 3, + + /// + /// Enum EAN8 for value: bct_EAN8 + /// + [EnumMember(Value = "bct_EAN8")] + EAN8 = 4, + + /// + /// Enum ITF for value: bct_ITF + /// + [EnumMember(Value = "bct_ITF")] + ITF = 5, + + /// + /// Enum PDF417 for value: bct_PDF417 + /// + [EnumMember(Value = "bct_PDF417")] + PDF417 = 6, + + /// + /// Enum STF for value: bct_STF + /// + [EnumMember(Value = "bct_STF")] + STF = 7, + + /// + /// Enum MTF for value: bct_MTF + /// + [EnumMember(Value = "bct_MTF")] + MTF = 8, + + /// + /// Enum IATA for value: bct_IATA + /// + [EnumMember(Value = "bct_IATA")] + IATA = 9, + + /// + /// Enum CODABAR for value: bct_CODABAR + /// + [EnumMember(Value = "bct_CODABAR")] + CODABAR = 10, + + /// + /// Enum UPCA for value: bct_UPCA + /// + [EnumMember(Value = "bct_UPCA")] + UPCA = 11, + + /// + /// Enum CODE93 for value: bct_CODE93 + /// + [EnumMember(Value = "bct_CODE93")] + CODE93 = 12, + + /// + /// Enum UPCE for value: bct_UPCE + /// + [EnumMember(Value = "bct_UPCE")] + UPCE = 13, + + /// + /// Enum EAN13 for value: bct_EAN13 + /// + [EnumMember(Value = "bct_EAN13")] + EAN13 = 14, + + /// + /// Enum QRCODE for value: bct_QRCODE + /// + [EnumMember(Value = "bct_QRCODE")] + QRCODE = 15, + + /// + /// Enum AZTEC for value: bct_AZTEC + /// + [EnumMember(Value = "bct_AZTEC")] + AZTEC = 16, + + /// + /// Enum DATAMATRIX for value: bct_DATAMATRIX + /// + [EnumMember(Value = "bct_DATAMATRIX")] + DATAMATRIX = 17, + + /// + /// Enum ALL_1D for value: bct_ALL_1D + /// + [EnumMember(Value = "bct_ALL_1D")] + ALL_1D = 18, + + /// + /// Enum CODE11 for value: bct_Code11 + /// + [EnumMember(Value = "bct_Code11")] + CODE11 = 19, + + /// + /// Enum JABCODE for value: bct_JABCODE + /// + [EnumMember(Value = "bct_JABCODE")] + JABCODE = 20 + + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/LivenessParams.cs b/src/Regula.DocumentReader.WebClient/Model/LivenessParams.cs index c269a15..5ecdeb5 100644 --- a/src/Regula.DocumentReader.WebClient/Model/LivenessParams.cs +++ b/src/Regula.DocumentReader.WebClient/Model/LivenessParams.cs @@ -37,12 +37,16 @@ public partial class LivenessParams : IEquatable, IValidatableO /// This parameter is used to enable MLI check. /// This parameter is used to enable Hologram detection. /// This parameter is used to enable Electronic device detection. - public LivenessParams(bool? checkOVI = default(bool?), bool? checkMLI = default(bool?), bool? checkHolo = default(bool?), bool? checkED = default(bool?)) + /// This parameter is used to enable Black and white copy check. + /// This parameter is used to enable Dynaprint check. + public LivenessParams(bool? checkOVI = default(bool?), bool? checkMLI = default(bool?), bool? checkHolo = default(bool?), bool? checkED = default(bool?), bool? checkBlackAndWhiteCopy = default(bool?), bool? checkDynaprint = default(bool?)) { this.CheckOVI = checkOVI; this.CheckMLI = checkMLI; this.CheckHolo = checkHolo; this.CheckED = checkED; + this.CheckBlackAndWhiteCopy = checkBlackAndWhiteCopy; + this.CheckDynaprint = checkDynaprint; } /// @@ -73,6 +77,20 @@ public partial class LivenessParams : IEquatable, IValidatableO [DataMember(Name="checkED", EmitDefaultValue=false)] public bool? CheckED { get; set; } + /// + /// This parameter is used to enable Black and white copy check + /// + /// This parameter is used to enable Black and white copy check + [DataMember(Name="checkBlackAndWhiteCopy", EmitDefaultValue=false)] + public bool? CheckBlackAndWhiteCopy { get; set; } + + /// + /// This parameter is used to enable Dynaprint check + /// + /// This parameter is used to enable Dynaprint check + [DataMember(Name="checkDynaprint", EmitDefaultValue=false)] + public bool? CheckDynaprint { get; set; } + /// /// Returns the string presentation of the object /// @@ -85,6 +103,8 @@ public override string ToString() sb.Append(" CheckMLI: ").Append(CheckMLI).Append("\n"); sb.Append(" CheckHolo: ").Append(CheckHolo).Append("\n"); sb.Append(" CheckED: ").Append(CheckED).Append("\n"); + sb.Append(" CheckBlackAndWhiteCopy: ").Append(CheckBlackAndWhiteCopy).Append("\n"); + sb.Append(" CheckDynaprint: ").Append(CheckDynaprint).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -138,6 +158,16 @@ public bool Equals(LivenessParams input) this.CheckED == input.CheckED || (this.CheckED != null && this.CheckED.Equals(input.CheckED)) + ) && + ( + this.CheckBlackAndWhiteCopy == input.CheckBlackAndWhiteCopy || + (this.CheckBlackAndWhiteCopy != null && + this.CheckBlackAndWhiteCopy.Equals(input.CheckBlackAndWhiteCopy)) + ) && + ( + this.CheckDynaprint == input.CheckDynaprint || + (this.CheckDynaprint != null && + this.CheckDynaprint.Equals(input.CheckDynaprint)) ); } @@ -158,6 +188,10 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.CheckHolo.GetHashCode(); if (this.CheckED != null) hashCode = hashCode * 59 + this.CheckED.GetHashCode(); + if (this.CheckBlackAndWhiteCopy != null) + hashCode = hashCode * 59 + this.CheckBlackAndWhiteCopy.GetHashCode(); + if (this.CheckDynaprint != null) + hashCode = hashCode * 59 + this.CheckDynaprint.GetHashCode(); return hashCode; } } diff --git a/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs b/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs index 955da82..b37fca3 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs @@ -96,7 +96,8 @@ protected ProcessParams() { } /// This parameter is used to generate numeric representation for issuing state and nationality codes. /// This parameter if enabled will require all necessary certificates to verify digital signature in barcode data to be present in order for the Barcode format check to succeed.. /// Select the longest value from the different value sources and write it to the value field if comparison is done successfully. The parameter applies this logic to the personal names, such as given name, surname, surname and given name, middle name and etc.. - public ProcessParams(bool? generateDTCVC = default(bool?), List lcidFilter = default(List), List lcidIgnoreFilter = default(List), bool? oneShotIdentification = default(bool?), bool? useFaceApi = default(bool?), FaceApi faceApi = default(FaceApi), bool? doDetectCan = default(bool?), int imageOutputMaxHeight = default(int), int imageOutputMaxWidth = default(int), string scenario = default(string), List resultTypeOutput = default(List), bool? doublePageSpread = default(bool?), bool? generateDoublePageSpreadImage = default(bool?), List fieldTypesFilter = default(List), string dateFormat = default(string), int measureSystem = default(int), int imageDpiOutMax = default(int), bool? alreadyCropped = default(bool?), Dictionary customParams = default(Dictionary), List config = default(List), bool? log = default(bool?), string logLevel = default(string), int forceDocID = default(int), bool? matchTextFieldMask = default(bool?), bool? fastDocDetect = default(bool?), bool? updateOCRValidityByGlare = default(bool?), bool? checkRequiredTextFields = default(bool?), bool? returnCroppedBarcode = default(bool?), ImageQA imageQa = default(ImageQA), bool? strictImageQuality = default(bool?), bool? respectImageQuality = default(bool?), int forceDocFormat = default(int), bool? noGraphics = default(bool?), bool? depersonalizeLog = default(bool?), bool? multiDocOnImage = default(bool?), int shiftExpiryDate = default(int), int minimalHolderAge = default(int), bool? returnUncroppedImage = default(bool?), List mrzFormatsFilter = default(List), bool? forceReadMrzBeforeLocate = default(bool?), bool? parseBarcodes = default(bool?), int convertCase = default(int), bool? splitNames = default(bool?), bool? disablePerforationOCR = default(bool?), List documentGroupFilter = default(List), long processAuth = default(long), int deviceId = default(int), int deviceType = default(int), string deviceTypeHex = default(string), bool? ignoreDeviceIdFromImage = default(bool?), List documentIdList = default(List), ProcessParamsRfid rfid = default(ProcessParamsRfid), bool? checkAuth = default(bool?), AuthParams authParams = default(AuthParams), MrzDetectModeEnum mrzDetectMode = default(MrzDetectModeEnum), bool? generateNumericCodes = default(bool?), bool? strictBarcodeDigitalSignatureCheck = default(bool?), bool? selectLongestNames = default(bool?)) + /// Set the types of barcodes to process.. + public ProcessParams(bool? generateDTCVC = default(bool?), List lcidFilter = default(List), List lcidIgnoreFilter = default(List), bool? oneShotIdentification = default(bool?), bool? useFaceApi = default(bool?), FaceApi faceApi = default(FaceApi), bool? doDetectCan = default(bool?), int imageOutputMaxHeight = default(int), int imageOutputMaxWidth = default(int), string scenario = default(string), List resultTypeOutput = default(List), bool? doublePageSpread = default(bool?), bool? generateDoublePageSpreadImage = default(bool?), List fieldTypesFilter = default(List), string dateFormat = default(string), int measureSystem = default(int), int imageDpiOutMax = default(int), bool? alreadyCropped = default(bool?), Dictionary customParams = default(Dictionary), List config = default(List), bool? log = default(bool?), string logLevel = default(string), int forceDocID = default(int), bool? matchTextFieldMask = default(bool?), bool? fastDocDetect = default(bool?), bool? updateOCRValidityByGlare = default(bool?), bool? checkRequiredTextFields = default(bool?), bool? returnCroppedBarcode = default(bool?), ImageQA imageQa = default(ImageQA), bool? strictImageQuality = default(bool?), bool? respectImageQuality = default(bool?), int forceDocFormat = default(int), bool? noGraphics = default(bool?), bool? depersonalizeLog = default(bool?), bool? multiDocOnImage = default(bool?), int shiftExpiryDate = default(int), int minimalHolderAge = default(int), bool? returnUncroppedImage = default(bool?), List mrzFormatsFilter = default(List), bool? forceReadMrzBeforeLocate = default(bool?), bool? parseBarcodes = default(bool?), int convertCase = default(int), bool? splitNames = default(bool?), bool? disablePerforationOCR = default(bool?), List documentGroupFilter = default(List), long processAuth = default(long), int deviceId = default(int), int deviceType = default(int), string deviceTypeHex = default(string), bool? ignoreDeviceIdFromImage = default(bool?), List documentIdList = default(List), ProcessParamsRfid rfid = default(ProcessParamsRfid), bool? checkAuth = default(bool?), AuthParams authParams = default(AuthParams), MrzDetectModeEnum mrzDetectMode = default(MrzDetectModeEnum), bool? generateNumericCodes = default(bool?), bool? strictBarcodeDigitalSignatureCheck = default(bool?), bool? selectLongestNames = default(bool?), List doBarcodes = default(List)) { // to ensure "scenario" is required (not null) if (scenario == null) @@ -165,6 +166,7 @@ protected ProcessParams() { } this.GenerateNumericCodes = generateNumericCodes; this.StrictBarcodeDigitalSignatureCheck = strictBarcodeDigitalSignatureCheck; this.SelectLongestNames = selectLongestNames; + this.DoBarcodes = doBarcodes; } /// @@ -563,6 +565,13 @@ protected ProcessParams() { } [DataMember(Name="selectLongestNames", EmitDefaultValue=false)] public bool? SelectLongestNames { get; set; } + /// + /// Set the types of barcodes to process. + /// + /// Set the types of barcodes to process. + [DataMember(Name="doBarcodes", EmitDefaultValue=false)] + public List DoBarcodes { get; set; } + /// /// Returns the string presentation of the object /// @@ -629,6 +638,7 @@ public override string ToString() sb.Append(" GenerateNumericCodes: ").Append(GenerateNumericCodes).Append("\n"); sb.Append(" StrictBarcodeDigitalSignatureCheck: ").Append(StrictBarcodeDigitalSignatureCheck).Append("\n"); sb.Append(" SelectLongestNames: ").Append(SelectLongestNames).Append("\n"); + sb.Append(" DoBarcodes: ").Append(DoBarcodes).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -961,6 +971,12 @@ public bool Equals(ProcessParams input) this.SelectLongestNames == input.SelectLongestNames || (this.SelectLongestNames != null && this.SelectLongestNames.Equals(input.SelectLongestNames)) + ) && + ( + this.DoBarcodes == input.DoBarcodes || + this.DoBarcodes != null && + input.DoBarcodes != null && + this.DoBarcodes.SequenceEqual(input.DoBarcodes) ); } @@ -1089,6 +1105,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.StrictBarcodeDigitalSignatureCheck.GetHashCode(); if (this.SelectLongestNames != null) hashCode = hashCode * 59 + this.SelectLongestNames.GetHashCode(); + if (this.DoBarcodes != null) + hashCode = hashCode * 59 + this.DoBarcodes.GetHashCode(); return hashCode; } }