From fb7fb9fa05eb2ae7806620fc301dbc63750a8940 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 15 Jan 2026 07:14:23 +0000 Subject: [PATCH] Commit: 0e837c52 --- .openapi-generator/FILES | 2 + .../Model/BSIV2Item.cs | 93 ++++++++++++++ .../Model/BSIV2Result.cs | 114 ++++++++++++++++++ .../Model/ContainerListListInner.cs | 48 +++++++- .../Model/EncryptedRCLItem.cs | 2 +- .../Model/EncryptedRCLResult.cs | 2 +- .../Model/LicenseItem.cs | 2 +- .../Model/LicenseResult.cs | 2 +- .../Model/ProcessParams.cs | 22 +++- .../Model/Result.cs | 5 + .../Model/ResultItem.cs | 1 + 11 files changed, 287 insertions(+), 6 deletions(-) create mode 100644 src/Regula.DocumentReader.WebClient/Model/BSIV2Item.cs create mode 100644 src/Regula.DocumentReader.WebClient/Model/BSIV2Result.cs diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 2a27cfb..773018e 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -30,6 +30,8 @@ src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultItem.cs src/Regula.DocumentReader.WebClient/Model/AuthenticityCheckResultListInner.cs src/Regula.DocumentReader.WebClient/Model/AuthenticityResult.cs src/Regula.DocumentReader.WebClient/Model/AuthenticityResultType.cs +src/Regula.DocumentReader.WebClient/Model/BSIV2Item.cs +src/Regula.DocumentReader.WebClient/Model/BSIV2Result.cs src/Regula.DocumentReader.WebClient/Model/BarCodeModuleType.cs src/Regula.DocumentReader.WebClient/Model/BarcodePositionItem.cs src/Regula.DocumentReader.WebClient/Model/BarcodePositionResult.cs diff --git a/src/Regula.DocumentReader.WebClient/Model/BSIV2Item.cs b/src/Regula.DocumentReader.WebClient/Model/BSIV2Item.cs new file mode 100644 index 0000000..493c64b --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/BSIV2Item.cs @@ -0,0 +1,93 @@ +/* + * Regula Document Reader Web API + * + * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core + * + * The version of the OpenAPI document: 8.1.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using FileParameter = Regula.DocumentReader.WebClient.Client.FileParameter; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// BSIV2Item + /// + [DataContract(Name = "BSIV2Item")] + public partial class BSIV2Item : IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BSIV2Item() { } + /// + /// Initializes a new instance of the class. + /// + /// xMLBuffer (required). + public BSIV2Item(string xMLBuffer = default(string)) + { + // to ensure "xMLBuffer" is required (not null) + if (xMLBuffer == null) + { + throw new ArgumentNullException("xMLBuffer is a required property for BSIV2Item and cannot be null"); + } + this.XMLBuffer = xMLBuffer; + } + + /// + /// Gets or Sets XMLBuffer + /// + [DataMember(Name = "XML_buffer", IsRequired = true, EmitDefaultValue = true)] + public string XMLBuffer { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BSIV2Item {\n"); + sb.Append(" XMLBuffer: ").Append(XMLBuffer).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); + } + + /// + /// 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/BSIV2Result.cs b/src/Regula.DocumentReader.WebClient/Model/BSIV2Result.cs new file mode 100644 index 0000000..e048116 --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/BSIV2Result.cs @@ -0,0 +1,114 @@ +/* + * Regula Document Reader Web API + * + * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core + * + * The version of the OpenAPI document: 8.1.0 + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using JsonSubTypes; +using System.ComponentModel.DataAnnotations; +using FileParameter = Regula.DocumentReader.WebClient.Client.FileParameter; +using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter; + +namespace Regula.DocumentReader.WebClient.Model +{ + /// + /// BSIV2Result + /// + [DataContract(Name = "BSIV2Result")] + public partial class BSIV2Result : ResultItem, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected BSIV2Result() { } + /// + /// Initializes a new instance of the class. + /// + /// xMLBuffer (required). + /// bufLength. + /// light. + /// listIdx. + /// pageIdx. + /// resultType (required) (default to Result.BSI_XML_V2). + public BSIV2Result(string xMLBuffer = default(string), int bufLength = default(int), int light = default(int), int listIdx = default(int), int pageIdx = default(int), Result resultType = Result.BSI_XML_V2) : base(bufLength, light, listIdx, pageIdx, resultType) + { + // to ensure "xMLBuffer" is required (not null) + if (xMLBuffer == null) + { + throw new ArgumentNullException("xMLBuffer is a required property for BSIV2Result and cannot be null"); + } + this.XMLBuffer = xMLBuffer; + } + + /// + /// Gets or Sets XMLBuffer + /// + [DataMember(Name = "XML_buffer", IsRequired = true, EmitDefaultValue = true)] + public string XMLBuffer { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class BSIV2Result {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append(" XMLBuffer: ").Append(XMLBuffer).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + return this.BaseValidate(validationContext); + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + protected IEnumerable BaseValidate(ValidationContext validationContext) + { + foreach (var x in base.BaseValidate(validationContext)) + { + yield return x; + } + yield break; + } + } + +} diff --git a/src/Regula.DocumentReader.WebClient/Model/ContainerListListInner.cs b/src/Regula.DocumentReader.WebClient/Model/ContainerListListInner.cs index ebc6a02..334a3a7 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ContainerListListInner.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ContainerListListInner.cs @@ -359,6 +359,18 @@ public ContainerListListInner(MDLResult actualInstance) this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of BSIV2Result. + public ContainerListListInner(BSIV2Result actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + private Object _actualInstance; @@ -377,6 +389,10 @@ public override Object ActualInstance { this._actualInstance = value; } + else if (value.GetType() == typeof(BSIV2Result) || value is BSIV2Result) + { + this._actualInstance = value; + } else if (value.GetType() == typeof(BarcodePositionResult) || value is BarcodePositionResult) { this._actualInstance = value; @@ -483,7 +499,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: AuthenticityResult, BarcodePositionResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MDLResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult, VDSDataResult, VDSNCDataResult"); + throw new ArgumentException("Invalid instance found. Must be the following types: AuthenticityResult, BSIV2Result, BarcodePositionResult, ByteArrayResult, ChosenDocumentTypeResult, DocBarCodeInfo, DocumentBinaryInfoResult, DocumentImageResult, DocumentPositionResult, DocumentTypesCandidatesResult, EncryptedRCLResult, FaceDetectionResult, GraphicsResult, ImageQualityResult, ImagesResult, LexicalAnalysisResult, LicenseResult, MDLResult, MRZDetectorResult, MRZPositionResult, MRZTestQualityResult, RFIDGraphicsInfoResult, RFIDTextDataResult, StatusResult, TextDataResult, TextResult, VDSDataResult, VDSNCDataResult"); } } } @@ -758,6 +774,16 @@ public MDLResult GetMDLResult() return (MDLResult)this.ActualInstance; } + /// + /// Get the actual instance of `BSIV2Result`. If the actual instance is not `BSIV2Result`, + /// the InvalidClassException will be thrown + /// + /// An instance of BSIV2Result + public BSIV2Result GetBSIV2Result() + { + return (BSIV2Result)this.ActualInstance; + } + /// /// Returns the string presentation of the object /// @@ -816,6 +842,26 @@ public static ContainerListListInner FromJson(string jsonString) System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into AuthenticityResult: {1}", jsonString, exception.ToString())); } + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(BSIV2Result).GetProperty("AdditionalProperties") == null) + { + newContainerListListInner = new ContainerListListInner(JsonConvert.DeserializeObject(jsonString, ContainerListListInner.SerializerSettings)); + } + else + { + newContainerListListInner = new ContainerListListInner(JsonConvert.DeserializeObject(jsonString, ContainerListListInner.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("BSIV2Result"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into BSIV2Result: {1}", jsonString, exception.ToString())); + } + try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize diff --git a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs index 65d77d6..0c90196 100644 --- a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs +++ b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLItem.cs @@ -56,7 +56,7 @@ protected EncryptedRCLItem() { } /// /// Base64 encoded data /* - [B@ee2d3fa + [B@1b7f14f */ [DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)] public byte[] EncryptedRCL { get; set; } diff --git a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs index 7ea9543..ee2ada1 100644 --- a/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/EncryptedRCLResult.cs @@ -62,7 +62,7 @@ protected EncryptedRCLResult() { } /// /// Base64 encoded data /* - [B@ee2d3fa + [B@1b7f14f */ [DataMember(Name = "EncryptedRCL", IsRequired = true, EmitDefaultValue = true)] public byte[] EncryptedRCL { get; set; } diff --git a/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs b/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs index 9da5d46..c254450 100644 --- a/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs +++ b/src/Regula.DocumentReader.WebClient/Model/LicenseItem.cs @@ -56,7 +56,7 @@ protected LicenseItem() { } /// /// Base64 encoded data /* - [B@55b11357 + [B@297ad10a */ [DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)] public byte[] License { get; set; } diff --git a/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs b/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs index 80f9c50..9539fcb 100644 --- a/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs +++ b/src/Regula.DocumentReader.WebClient/Model/LicenseResult.cs @@ -62,7 +62,7 @@ protected LicenseResult() { } /// /// Base64 encoded data /* - [B@55b11357 + [B@297ad10a */ [DataMember(Name = "License", IsRequired = true, EmitDefaultValue = true)] public byte[] License { get; set; } diff --git a/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs b/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs index e020549..9272db7 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ProcessParams.cs @@ -143,7 +143,9 @@ protected ProcessParams() { } /// This parameter if enabled will ignore the minimum barcode resolution needed to start processing.. /// When enabled, this parameter marks security checks that don’t meet minimum requirements as 'Failed' (instead of 'WasNotDone'), which causes the overall security status to be 'Failed'.. /// Allows transliteration to be turned on or off; by default, it is enabled.. - public ProcessParams(bool generateDTCVC = default(bool), List lcidFilter = default(List), bool checkLiveness = default(bool), 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), Scenario scenario = default(Scenario), List resultTypeOutput = default(List), bool doublePageSpread = default(bool), bool generateDoublePageSpreadImage = default(bool), List fieldTypesFilter = default(List), List fieldTypesIgnoreFilter = default(List), string dateFormat = default(string), MeasureSystem? measureSystem = default(MeasureSystem?), int imageDpiOutMax = default(int), bool alreadyCropped = default(bool), Dictionary customParams = default(Dictionary), List config = default(List), bool log = default(bool), LogLevel? logLevel = default(LogLevel?), 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), DocumentFormat? forceDocFormat = default(DocumentFormat?), 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), TextPostProcessing? convertCase = default(TextPostProcessing?), 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), bool strictDLCategoryExpiry = default(bool), bool generateAlpha2Codes = default(bool), int pdfPagesLimit = default(int), bool disableAuthResolutionFilter = default(bool), bool strictSecurityChecks = default(bool), bool returnTransliteratedFields = default(bool)) + /// When enabled, returns processing results in accordance with the BSI TR-03135 standard in addition to the existing processing results.. + /// When enabled, activates detection of the document holder’s signature presence.. + public ProcessParams(bool generateDTCVC = default(bool), List lcidFilter = default(List), bool checkLiveness = default(bool), 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), Scenario scenario = default(Scenario), List resultTypeOutput = default(List), bool doublePageSpread = default(bool), bool generateDoublePageSpreadImage = default(bool), List fieldTypesFilter = default(List), List fieldTypesIgnoreFilter = default(List), string dateFormat = default(string), MeasureSystem? measureSystem = default(MeasureSystem?), int imageDpiOutMax = default(int), bool alreadyCropped = default(bool), Dictionary customParams = default(Dictionary), List config = default(List), bool log = default(bool), LogLevel? logLevel = default(LogLevel?), 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), DocumentFormat? forceDocFormat = default(DocumentFormat?), 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), TextPostProcessing? convertCase = default(TextPostProcessing?), 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), bool strictDLCategoryExpiry = default(bool), bool generateAlpha2Codes = default(bool), int pdfPagesLimit = default(int), bool disableAuthResolutionFilter = default(bool), bool strictSecurityChecks = default(bool), bool returnTransliteratedFields = default(bool), bool bsiTr03135Results = default(bool), bool checkHoldersSignature = default(bool)) { this.Scenario = scenario; this.GenerateDTCVC = generateDTCVC; @@ -212,6 +214,8 @@ protected ProcessParams() { } this.DisableAuthResolutionFilter = disableAuthResolutionFilter; this.StrictSecurityChecks = strictSecurityChecks; this.ReturnTransliteratedFields = returnTransliteratedFields; + this.BsiTr03135Results = bsiTr03135Results; + this.CheckHoldersSignature = checkHoldersSignature; } /// @@ -643,6 +647,20 @@ protected ProcessParams() { } [DataMember(Name = "returnTransliteratedFields", EmitDefaultValue = false)] public bool? ReturnTransliteratedFields { get; set; } + /// + /// When enabled, returns processing results in accordance with the BSI TR-03135 standard in addition to the existing processing results. + /// + /// When enabled, returns processing results in accordance with the BSI TR-03135 standard in addition to the existing processing results. + [DataMember(Name = "bsiTr03135Results", EmitDefaultValue = false)] + public bool? BsiTr03135Results { get; set; } + + /// + /// When enabled, activates detection of the document holder’s signature presence. + /// + /// When enabled, activates detection of the document holder’s signature presence. + [DataMember(Name = "checkHoldersSignature", EmitDefaultValue = false)] + public bool? CheckHoldersSignature { get; set; } + /// /// Returns the string presentation of the object /// @@ -718,6 +736,8 @@ public override string ToString() sb.Append(" DisableAuthResolutionFilter: ").Append(DisableAuthResolutionFilter).Append("\n"); sb.Append(" StrictSecurityChecks: ").Append(StrictSecurityChecks).Append("\n"); sb.Append(" ReturnTransliteratedFields: ").Append(ReturnTransliteratedFields).Append("\n"); + sb.Append(" BsiTr03135Results: ").Append(BsiTr03135Results).Append("\n"); + sb.Append(" CheckHoldersSignature: ").Append(CheckHoldersSignature).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Regula.DocumentReader.WebClient/Model/Result.cs b/src/Regula.DocumentReader.WebClient/Model/Result.cs index e74a568..7010eba 100644 --- a/src/Regula.DocumentReader.WebClient/Model/Result.cs +++ b/src/Regula.DocumentReader.WebClient/Model/Result.cs @@ -166,6 +166,11 @@ public enum Result /// BARCODE_POSITION = 62, + /// + /// Enum BSI_XML_V2 for value: 73 + /// + BSI_XML_V2 = 73, + /// /// Enum DOCUMENT_POSITION for value: 85 /// diff --git a/src/Regula.DocumentReader.WebClient/Model/ResultItem.cs b/src/Regula.DocumentReader.WebClient/Model/ResultItem.cs index 76b9ef1..87aac9f 100644 --- a/src/Regula.DocumentReader.WebClient/Model/ResultItem.cs +++ b/src/Regula.DocumentReader.WebClient/Model/ResultItem.cs @@ -66,6 +66,7 @@ namespace Regula.DocumentReader.WebClient.Model [JsonSubtypes.KnownSubType(typeof(MRZPositionResult), "61")] [JsonSubtypes.KnownSubType(typeof(BarcodePositionResult), "62")] [JsonSubtypes.KnownSubType(typeof(MRZTestQualityResult), "7")] + [JsonSubtypes.KnownSubType(typeof(BSIV2Result), "73")] [JsonSubtypes.KnownSubType(typeof(DocumentTypesCandidatesResult), "8")] [JsonSubtypes.KnownSubType(typeof(DocumentPositionResult), "85")] [JsonSubtypes.KnownSubType(typeof(MRZDetectorResult), "87")]