Skip to content

Commit 9e90130

Browse files
SP-18211 - update models
1 parent d7c2a07 commit 9e90130

14 files changed

+57
-92
lines changed

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

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

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

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

src/Regula.DocumentReader.WebClient/Model/Ext/RecognitionParams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public RecognitionParams WithLog(bool log)
3636
return this;
3737
}
3838

39-
public RecognitionParams WithProcessAuth(AuthenticityResultType processAuth)
39+
public RecognitionParams WithProcessAuth(long processAuth)
4040
{
4141
ProcessAuth = processAuth;
4242
return this;

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

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

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

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

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

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ public partial class OCRSecurityTextItem : IValidatableObject
4444
/// </summary>
4545
[DataMember(Name = "LightType", IsRequired = true, EmitDefaultValue = true)]
4646
public Light LightType { get; set; }
47+
48+
/// <summary>
49+
/// Gets or Sets EtalonFieldType
50+
/// </summary>
51+
[DataMember(Name = "EtalonFieldType", IsRequired = true, EmitDefaultValue = true)]
52+
public TextFieldType EtalonFieldType { get; set; }
53+
54+
/// <summary>
55+
/// Gets or Sets EtalonLightType
56+
/// </summary>
57+
[DataMember(Name = "EtalonLightType", IsRequired = true, EmitDefaultValue = true)]
58+
public Light EtalonLightType { get; set; }
4759
/// <summary>
4860
/// Initializes a new instance of the <see cref="OCRSecurityTextItem" /> class.
4961
/// </summary>
@@ -55,7 +67,7 @@ protected OCRSecurityTextItem() { }
5567
/// <param name="criticalFlag">criticalFlag (required).</param>
5668
/// <param name="lightType">lightType (required).</param>
5769
/// <param name="fieldRect">fieldRect (required).</param>
58-
/// <param name="etalonResultType">etalonResultType (required).</param>
70+
/// <param name="etalonResultType">Same as Result type, but used for safe parsing of not-described values. See Result type. (required) (default to 0).</param>
5971
/// <param name="etalonFieldType">etalonFieldType (required).</param>
6072
/// <param name="etalonLightType">etalonLightType (required).</param>
6173
/// <param name="etalonFieldRect">etalonFieldRect (required).</param>
@@ -64,7 +76,7 @@ protected OCRSecurityTextItem() { }
6476
/// <param name="resultCode">resultCode.</param>
6577
/// <param name="reserved1">reserved1.</param>
6678
/// <param name="reserved2">reserved2.</param>
67-
public OCRSecurityTextItem(Critical criticalFlag = default(Critical), Light lightType = default(Light), RectangleCoordinates fieldRect = default(RectangleCoordinates), int etalonResultType = default(int), int etalonFieldType = default(int), int etalonLightType = default(int), RectangleCoordinates etalonFieldRect = default(RectangleCoordinates), string securityTextResultOCR = default(string), string etalonResultOCR = default(string), int resultCode = default(int), int reserved1 = default(int), int reserved2 = default(int))
79+
public OCRSecurityTextItem(Critical criticalFlag = default(Critical), Light lightType = default(Light), RectangleCoordinates fieldRect = default(RectangleCoordinates), int etalonResultType = 0, TextFieldType etalonFieldType = default(TextFieldType), Light etalonLightType = default(Light), RectangleCoordinates etalonFieldRect = default(RectangleCoordinates), string securityTextResultOCR = default(string), string etalonResultOCR = default(string), int resultCode = default(int), int reserved1 = default(int), int reserved2 = default(int))
6880
{
6981
this.CriticalFlag = criticalFlag;
7082
this.LightType = lightType;
@@ -107,23 +119,12 @@ protected OCRSecurityTextItem() { }
107119
public RectangleCoordinates FieldRect { get; set; }
108120

109121
/// <summary>
110-
/// Gets or Sets EtalonResultType
122+
/// Same as Result type, but used for safe parsing of not-described values. See Result type.
111123
/// </summary>
124+
/// <value>Same as Result type, but used for safe parsing of not-described values. See Result type.</value>
112125
[DataMember(Name = "EtalonResultType", IsRequired = true, EmitDefaultValue = true)]
113126
public int EtalonResultType { get; set; }
114127

115-
/// <summary>
116-
/// Gets or Sets EtalonFieldType
117-
/// </summary>
118-
[DataMember(Name = "EtalonFieldType", IsRequired = true, EmitDefaultValue = true)]
119-
public int EtalonFieldType { get; set; }
120-
121-
/// <summary>
122-
/// Gets or Sets EtalonLightType
123-
/// </summary>
124-
[DataMember(Name = "EtalonLightType", IsRequired = true, EmitDefaultValue = true)]
125-
public int EtalonLightType { get; set; }
126-
127128
/// <summary>
128129
/// Gets or Sets EtalonFieldRect
129130
/// </summary>

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

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ public partial class OCRSecurityTextResult : AuthenticityCheckResultItem, IValid
4545
/// </summary>
4646
[DataMember(Name = "LightType", IsRequired = true, EmitDefaultValue = true)]
4747
public Light LightType { get; set; }
48+
49+
/// <summary>
50+
/// Gets or Sets EtalonFieldType
51+
/// </summary>
52+
[DataMember(Name = "EtalonFieldType", IsRequired = true, EmitDefaultValue = true)]
53+
public TextFieldType EtalonFieldType { get; set; }
54+
55+
/// <summary>
56+
/// Gets or Sets EtalonLightType
57+
/// </summary>
58+
[DataMember(Name = "EtalonLightType", IsRequired = true, EmitDefaultValue = true)]
59+
public Light EtalonLightType { get; set; }
4860
/// <summary>
4961
/// Initializes a new instance of the <see cref="OCRSecurityTextResult" /> class.
5062
/// </summary>
@@ -56,7 +68,7 @@ protected OCRSecurityTextResult() { }
5668
/// <param name="criticalFlag">criticalFlag (required).</param>
5769
/// <param name="lightType">lightType (required).</param>
5870
/// <param name="fieldRect">fieldRect (required).</param>
59-
/// <param name="etalonResultType">etalonResultType (required).</param>
71+
/// <param name="etalonResultType">Same as Result type, but used for safe parsing of not-described values. See Result type. (required) (default to 0).</param>
6072
/// <param name="etalonFieldType">etalonFieldType (required).</param>
6173
/// <param name="etalonLightType">etalonLightType (required).</param>
6274
/// <param name="etalonFieldRect">etalonFieldRect (required).</param>
@@ -69,7 +81,7 @@ protected OCRSecurityTextResult() { }
6981
/// <param name="elementResult">elementResult.</param>
7082
/// <param name="elementDiagnose">elementDiagnose.</param>
7183
/// <param name="percentValue">percentValue.</param>
72-
public OCRSecurityTextResult(Critical criticalFlag = default(Critical), Light lightType = default(Light), RectangleCoordinates fieldRect = default(RectangleCoordinates), int etalonResultType = default(int), int etalonFieldType = default(int), int etalonLightType = default(int), RectangleCoordinates etalonFieldRect = default(RectangleCoordinates), string securityTextResultOCR = default(string), string etalonResultOCR = default(string), int resultCode = default(int), int reserved1 = default(int), int reserved2 = default(int), AuthenticityResultType type = AuthenticityResultType.OCR_SECURITY_TEXT, CheckResult? elementResult = default(CheckResult?), CheckDiagnose? elementDiagnose = default(CheckDiagnose?), int percentValue = default(int)) : base(type, elementResult, elementDiagnose, percentValue)
84+
public OCRSecurityTextResult(Critical criticalFlag = default(Critical), Light lightType = default(Light), RectangleCoordinates fieldRect = default(RectangleCoordinates), int etalonResultType = 0, TextFieldType etalonFieldType = default(TextFieldType), Light etalonLightType = default(Light), RectangleCoordinates etalonFieldRect = default(RectangleCoordinates), string securityTextResultOCR = default(string), string etalonResultOCR = default(string), int resultCode = default(int), int reserved1 = default(int), int reserved2 = default(int), AuthenticityResultType type = AuthenticityResultType.OCR_SECURITY_TEXT, CheckResult? elementResult = default(CheckResult?), CheckDiagnose? elementDiagnose = default(CheckDiagnose?), int percentValue = default(int)) : base(type, elementResult, elementDiagnose, percentValue)
7385
{
7486
this.CriticalFlag = criticalFlag;
7587
this.LightType = lightType;
@@ -112,23 +124,12 @@ protected OCRSecurityTextResult() { }
112124
public RectangleCoordinates FieldRect { get; set; }
113125

114126
/// <summary>
115-
/// Gets or Sets EtalonResultType
127+
/// Same as Result type, but used for safe parsing of not-described values. See Result type.
116128
/// </summary>
129+
/// <value>Same as Result type, but used for safe parsing of not-described values. See Result type.</value>
117130
[DataMember(Name = "EtalonResultType", IsRequired = true, EmitDefaultValue = true)]
118131
public int EtalonResultType { get; set; }
119132

120-
/// <summary>
121-
/// Gets or Sets EtalonFieldType
122-
/// </summary>
123-
[DataMember(Name = "EtalonFieldType", IsRequired = true, EmitDefaultValue = true)]
124-
public int EtalonFieldType { get; set; }
125-
126-
/// <summary>
127-
/// Gets or Sets EtalonLightType
128-
/// </summary>
129-
[DataMember(Name = "EtalonLightType", IsRequired = true, EmitDefaultValue = true)]
130-
public int EtalonLightType { get; set; }
131-
132133
/// <summary>
133134
/// Gets or Sets EtalonFieldRect
134135
/// </summary>

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ namespace Regula.DocumentReader.WebClient.Model
3333
public partial class PArrayField : IValidatableObject
3434
{
3535

36+
/// <summary>
37+
/// Gets or Sets BcTextFieldType
38+
/// </summary>
39+
[DataMember(Name = "bcTextFieldType", EmitDefaultValue = false)]
40+
public TextFieldType? BcTextFieldType { get; set; }
41+
3642
/// <summary>
3743
/// Gets or Sets BcTypeDECODE
3844
/// </summary>
@@ -56,7 +62,7 @@ protected PArrayField() { }
5662
/// <param name="bcTextFieldType">bcTextFieldType.</param>
5763
/// <param name="bcTypeDECODE">bcTypeDECODE (required).</param>
5864
/// <param name="bcTypeDETECT">bcTypeDETECT (required).</param>
59-
public PArrayField(float bcAngleDETECT = default(float), int bcCodeResult = default(int), int bcCountModule = default(int), List<DataModule> bcDataModule = default(List<DataModule>), BcPDF417INFO bcPDF417INFO = default(BcPDF417INFO), BcROIDETECT bcROIDETECT = default(BcROIDETECT), int bcTextDecoderTypes = default(int), int bcTextFieldType = default(int), BarcodeType bcTypeDECODE = default(BarcodeType), int bcTypeDETECT = default(int))
65+
public PArrayField(float bcAngleDETECT = default(float), int bcCodeResult = default(int), int bcCountModule = default(int), List<DataModule> bcDataModule = default(List<DataModule>), BcPDF417INFO bcPDF417INFO = default(BcPDF417INFO), BcROIDETECT bcROIDETECT = default(BcROIDETECT), int bcTextDecoderTypes = default(int), TextFieldType? bcTextFieldType = default(TextFieldType?), BarcodeType bcTypeDECODE = default(BarcodeType), int bcTypeDETECT = default(int))
6066
{
6167
this.BcAngleDETECT = bcAngleDETECT;
6268
this.BcCodeResult = bcCodeResult;
@@ -122,12 +128,6 @@ protected PArrayField() { }
122128
[DataMember(Name = "bcTextDecoderTypes", EmitDefaultValue = false)]
123129
public int? BcTextDecoderTypes { get; set; }
124130

125-
/// <summary>
126-
/// Gets or Sets BcTextFieldType
127-
/// </summary>
128-
[DataMember(Name = "bcTextFieldType", EmitDefaultValue = false)]
129-
public int? BcTextFieldType { get; set; }
130-
131131
/// <summary>
132132
/// Gets or Sets BcTypeDETECT
133133
/// </summary>

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,6 @@ public partial class ProcessParams : IValidatableObject
6363
[DataMember(Name = "convertCase", EmitDefaultValue = false)]
6464
public TextPostProcessing? ConvertCase { get; set; }
6565

66-
/// <summary>
67-
/// Gets or Sets ProcessAuth
68-
/// </summary>
69-
[DataMember(Name = "processAuth", EmitDefaultValue = false)]
70-
public AuthenticityResultType? ProcessAuth { get; set; }
71-
7266
/// <summary>
7367
/// Gets or Sets MrzDetectMode
7468
/// </summary>
@@ -145,7 +139,7 @@ protected ProcessParams() { }
145139
/// <param name="strictDLCategoryExpiry">Set to force DL categories expiry date to affect the overall status or not. As documents usually have their own date of expiry, which might be less or greater than category expiry date, this might be handy for specific cases..</param>
146140
/// <param name="generateAlpha2Codes">Set to generate Alpha-2 codes for nationality and issuing state fields..</param>
147141
/// <param name="pdfPagesLimit">Limits the number of pages to be processed from a PDF file..</param>
148-
public ProcessParams(bool generateDTCVC = default(bool), List<LCID> lcidFilter = default(List<LCID>), bool checkLiveness = default(bool), List<LCID> lcidIgnoreFilter = default(List<LCID>), 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<Result> resultTypeOutput = default(List<Result>), bool doublePageSpread = default(bool), bool generateDoublePageSpreadImage = default(bool), List<TextFieldType> fieldTypesFilter = default(List<TextFieldType>), string dateFormat = default(string), MeasureSystem? measureSystem = default(MeasureSystem?), int imageDpiOutMax = default(int), bool alreadyCropped = default(bool), Dictionary<string, Object> customParams = default(Dictionary<string, Object>), List<PerDocumentConfig> config = default(List<PerDocumentConfig>), 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<MRZFormat> mrzFormatsFilter = default(List<MRZFormat>), bool forceReadMrzBeforeLocate = default(bool), bool parseBarcodes = default(bool), TextPostProcessing? convertCase = default(TextPostProcessing?), bool splitNames = default(bool), bool disablePerforationOCR = default(bool), List<DocumentType> documentGroupFilter = default(List<DocumentType>), AuthenticityResultType? processAuth = default(AuthenticityResultType?), int deviceId = default(int), int deviceType = default(int), string deviceTypeHex = default(string), bool ignoreDeviceIdFromImage = default(bool), List<int> documentIdList = default(List<int>), 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<InputBarcodeType> doBarcodes = default(List<InputBarcodeType>), bool strictDLCategoryExpiry = default(bool), bool generateAlpha2Codes = default(bool), int pdfPagesLimit = default(int))
142+
public ProcessParams(bool generateDTCVC = default(bool), List<LCID> lcidFilter = default(List<LCID>), bool checkLiveness = default(bool), List<LCID> lcidIgnoreFilter = default(List<LCID>), 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<Result> resultTypeOutput = default(List<Result>), bool doublePageSpread = default(bool), bool generateDoublePageSpreadImage = default(bool), List<TextFieldType> fieldTypesFilter = default(List<TextFieldType>), string dateFormat = default(string), MeasureSystem? measureSystem = default(MeasureSystem?), int imageDpiOutMax = default(int), bool alreadyCropped = default(bool), Dictionary<string, Object> customParams = default(Dictionary<string, Object>), List<PerDocumentConfig> config = default(List<PerDocumentConfig>), 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<MRZFormat> mrzFormatsFilter = default(List<MRZFormat>), bool forceReadMrzBeforeLocate = default(bool), bool parseBarcodes = default(bool), TextPostProcessing? convertCase = default(TextPostProcessing?), bool splitNames = default(bool), bool disablePerforationOCR = default(bool), List<DocumentType> documentGroupFilter = default(List<DocumentType>), long processAuth = default(long), int deviceId = default(int), int deviceType = default(int), string deviceTypeHex = default(string), bool ignoreDeviceIdFromImage = default(bool), List<int> documentIdList = default(List<int>), 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<InputBarcodeType> doBarcodes = default(List<InputBarcodeType>), bool strictDLCategoryExpiry = default(bool), bool generateAlpha2Codes = default(bool), int pdfPagesLimit = default(int))
149143
{
150144
this.Scenario = scenario;
151145
this.GenerateDTCVC = generateDTCVC;
@@ -503,6 +497,12 @@ protected ProcessParams() { }
503497
[DataMember(Name = "documentGroupFilter", EmitDefaultValue = false)]
504498
public List<DocumentType>? DocumentGroupFilter { get; set; }
505499

500+
/// <summary>
501+
/// Gets or Sets ProcessAuth
502+
/// </summary>
503+
[DataMember(Name = "processAuth", EmitDefaultValue = false)]
504+
public long? ProcessAuth { get; set; }
505+
506506
/// <summary>
507507
/// This parameter is used to specify the document reader device type from which input images were captured. Default 0.
508508
/// </summary>

0 commit comments

Comments
 (0)