Skip to content

Commit 74f4980

Browse files
actions-userhleb-albau
authored andcommitted
5.8 updates
1 parent bd14742 commit 74f4980

File tree

3 files changed

+66
-1
lines changed

3 files changed

+66
-1
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,5 +706,11 @@ public class DocumentType
706706

707707
public const int CERTIFICATE_OF_PROFICIENCY = 238;
708708

709+
710+
public const int TRADE_LICENSE = 239;
711+
712+
713+
public const int PASSPORT_PAGE = 240;
714+
709715
}
710716
}

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ protected ProcessParams() { }
6868
/// <param name="returnUncroppedImage">This option allows returning input images in output if enabled..</param>
6969
/// <param name="mrzFormatsFilter">This option allows limiting MRZ formats to be recognized by specifying them in array..</param>
7070
/// <param name="forceReadMrzBeforeLocate">This option can be set to true to make sure that in series processing MRZ is located fully inside the result document image, if present on the document. Enabling this option may add extra processing time, by disabling optimizations, but allows more stability in output image quality..</param>
71-
public ProcessParams(string scenario = default(string), List<int> resultTypeOutput = default(List<int>), bool doublePageSpread = default(bool), bool generateDoublePageSpreadImage = default(bool), List<int> fieldTypesFilter = default(List<int>), string dateFormat = default(string), int measureSystem = default(int), 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), 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), int forceDocFormat = default(int), bool noGraphics = default(bool), float documentAreaMin = default(float), bool depersonalizeLog = default(bool), bool multiDocOnImage = default(bool), int shiftExpiryDate = default(int), int minimalHolderAge = default(int), bool returnUncroppedImage = default(bool), List<string> mrzFormatsFilter = default(List<string>), bool forceReadMrzBeforeLocate = default(bool))
71+
/// <param name="parseBarcodes">This option can be set to false to stop parsing after barcode is read..</param>
72+
public ProcessParams(string scenario = default(string), List<int> resultTypeOutput = default(List<int>), bool doublePageSpread = default(bool), bool generateDoublePageSpreadImage = default(bool), List<int> fieldTypesFilter = default(List<int>), string dateFormat = default(string), int measureSystem = default(int), 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), 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), int forceDocFormat = default(int), bool noGraphics = default(bool), float documentAreaMin = default(float), bool depersonalizeLog = default(bool), bool multiDocOnImage = default(bool), int shiftExpiryDate = default(int), int minimalHolderAge = default(int), bool returnUncroppedImage = default(bool), List<string> mrzFormatsFilter = default(List<string>), bool forceReadMrzBeforeLocate = default(bool), bool parseBarcodes = default(bool))
7273
{
7374
// to ensure "scenario" is required (not null)
7475
if (scenario == null)
@@ -109,6 +110,7 @@ protected ProcessParams() { }
109110
this.ReturnUncroppedImage = returnUncroppedImage;
110111
this.MrzFormatsFilter = mrzFormatsFilter;
111112
this.ForceReadMrzBeforeLocate = forceReadMrzBeforeLocate;
113+
this.ParseBarcodes = parseBarcodes;
112114
}
113115

114116
/// <summary>
@@ -316,6 +318,13 @@ protected ProcessParams() { }
316318
[DataMember(Name="forceReadMrzBeforeLocate", EmitDefaultValue=false)]
317319
public bool ForceReadMrzBeforeLocate { get; set; }
318320

321+
/// <summary>
322+
/// This option can be set to false to stop parsing after barcode is read.
323+
/// </summary>
324+
/// <value>This option can be set to false to stop parsing after barcode is read.</value>
325+
[DataMember(Name="parseBarcodes", EmitDefaultValue=false)]
326+
public bool ParseBarcodes { get; set; }
327+
319328
/// <summary>
320329
/// Returns the string presentation of the object
321330
/// </summary>
@@ -354,6 +363,7 @@ public override string ToString()
354363
sb.Append(" ReturnUncroppedImage: ").Append(ReturnUncroppedImage).Append("\n");
355364
sb.Append(" MrzFormatsFilter: ").Append(MrzFormatsFilter).Append("\n");
356365
sb.Append(" ForceReadMrzBeforeLocate: ").Append(ForceReadMrzBeforeLocate).Append("\n");
366+
sb.Append(" ParseBarcodes: ").Append(ParseBarcodes).Append("\n");
357367
sb.Append("}\n");
358368
return sb.ToString();
359369
}
@@ -542,6 +552,11 @@ public bool Equals(ProcessParams input)
542552
this.ForceReadMrzBeforeLocate == input.ForceReadMrzBeforeLocate ||
543553
(this.ForceReadMrzBeforeLocate != null &&
544554
this.ForceReadMrzBeforeLocate.Equals(input.ForceReadMrzBeforeLocate))
555+
) &&
556+
(
557+
this.ParseBarcodes == input.ParseBarcodes ||
558+
(this.ParseBarcodes != null &&
559+
this.ParseBarcodes.Equals(input.ParseBarcodes))
545560
);
546561
}
547562

@@ -614,6 +629,8 @@ public override int GetHashCode()
614629
hashCode = hashCode * 59 + this.MrzFormatsFilter.GetHashCode();
615630
if (this.ForceReadMrzBeforeLocate != null)
616631
hashCode = hashCode * 59 + this.ForceReadMrzBeforeLocate.GetHashCode();
632+
if (this.ParseBarcodes != null)
633+
hashCode = hashCode * 59 + this.ParseBarcodes.GetHashCode();
617634
return hashCode;
618635
}
619636
}

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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1749,5 +1749,47 @@ public class TextFieldType
17491749
/** Military Service To */
17501750
public const int MILITARY_SERVICE_TO = 627;
17511751

1752+
/** Validity date of NT driver’s license */
1753+
public const int DL_CLASS_CODE_NT_FROM = 628;
1754+
1755+
/** Expiration date of NT driver’s license */
1756+
public const int DL_CLASS_CODE_NT_TO = 629;
1757+
1758+
/** Restrictions for NT driver’s license */
1759+
public const int DL_CLASS_CODE_NT_NOTES = 630;
1760+
1761+
/** Validity date of TN driver’s license */
1762+
public const int DL_CLASS_CODE_TN_FROM = 631;
1763+
1764+
/** Expiration date of TN driver’s license */
1765+
public const int DL_CLASS_CODE_TN_TO = 632;
1766+
1767+
/** Restrictions for TN driver’s license */
1768+
public const int DL_CLASS_CODE_TN_NOTES = 633;
1769+
1770+
/** Validity date of D3 driver’s license */
1771+
public const int DL_CLASS_CODE_D3_FROM = 634;
1772+
1773+
/** Expiration date of D3 driver’s license */
1774+
public const int DL_CLASS_CODE_D3_TO = 635;
1775+
1776+
/** Restrictions for D3 driver’s license */
1777+
public const int DL_CLASS_CODE_D3_NOTES = 636;
1778+
1779+
/** Alt Date of expire */
1780+
public const int ALT_DATE_OF_EXPIRE = 637;
1781+
1782+
/** Validity date of CD driver’s license */
1783+
public const int DL_CLASS_CODE_CD_FROM = 638;
1784+
1785+
/** Expiration date of CD driver’s license */
1786+
public const int DL_CLASS_CODE_CD_TO = 639;
1787+
1788+
/** Restrictions for CD driver’s license */
1789+
public const int DL_CLASS_CODE_CD_NOTES = 640;
1790+
1791+
/** Issuer identification number */
1792+
public const int ISSUER_IDENTIFICATION_NUMBER = 641;
1793+
17521794
}
17531795
}

0 commit comments

Comments
 (0)