Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion src/Regula.DocumentReader.WebClient/Model/AuthParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public partial class AuthParams : IEquatable<AuthParams>, IValidatableObject
/// <param name="checkPhotoEmbedding">This parameter is used to enable Owner&#39;s photo embedding check (is photo printed or sticked).</param>
/// <param name="checkPhotoComparison">This parameter is used to enable Portrait comparison check.</param>
/// <param name="checkLetterScreen">This parameter is used to enable LetterScreen check.</param>
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?))
/// <param name="checkSecurityText">This parameter is used to enable Security text check.</param>
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;
Expand All @@ -65,6 +66,7 @@ public partial class AuthParams : IEquatable<AuthParams>, IValidatableObject
this.CheckPhotoEmbedding = checkPhotoEmbedding;
this.CheckPhotoComparison = checkPhotoComparison;
this.CheckLetterScreen = checkLetterScreen;
this.CheckSecurityText = checkSecurityText;
}

/// <summary>
Expand Down Expand Up @@ -171,6 +173,13 @@ public partial class AuthParams : IEquatable<AuthParams>, IValidatableObject
[DataMember(Name="checkLetterScreen", EmitDefaultValue=false)]
public bool? CheckLetterScreen { get; set; }

/// <summary>
/// This parameter is used to enable Security text check
/// </summary>
/// <value>This parameter is used to enable Security text check</value>
[DataMember(Name="checkSecurityText", EmitDefaultValue=false)]
public bool? CheckSecurityText { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -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();
}
Expand Down Expand Up @@ -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))
);
}

Expand Down Expand Up @@ -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;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,32 @@
*/

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
{
/// <summary>
/// Common fields for all authenticity result objects
/// </summary>
[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<AuthenticityCheckResultItem>, IValidatableObject
{
/// <summary>
Expand Down
36 changes: 35 additions & 1 deletion src/Regula.DocumentReader.WebClient/Model/FaceApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public partial class FaceApi : IEquatable<FaceApi>, IValidatableObject
/// <param name="proxy">Proxy to use, should be set according to the &lt;a href&#x3D;\&quot;https://curl.se/libcurl/c/CURLOPT_PROXY.html\&quot; target&#x3D;\&quot;_blank\&quot;&gt;cURL standard&lt;/a&gt;..</param>
/// <param name="proxyUserpwd">Username and password to use for proxy authentication, should be set according to the &lt;a href&#x3D;\&quot;https://curl.se/libcurl/c/CURLOPT_PROXYUSERPWD.html\&quot; target&#x3D;\&quot;_blank\&quot;&gt;cURL standard&lt;/a&gt;..</param>
/// <param name="proxyType">Proxy protocol type, should be set according to the &lt;a href&#x3D;\&quot;https://curl.se/libcurl/c/CURLOPT_PROXYTYPE.html\&quot; target&#x3D;\&quot;_blank\&quot;&gt;cURL standard&lt;/a&gt;..</param>
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))
/// <param name="childAgeThreshold">The age threshold for the portrait comparison. Default: 13..</param>
/// <param name="childDocValidityYears">Estimated duration of validity for a child&#39;s passport, years. Default: 5..</param>
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;
Expand All @@ -51,6 +53,8 @@ public partial class FaceApi : IEquatable<FaceApi>, IValidatableObject
this.Proxy = proxy;
this.ProxyUserpwd = proxyUserpwd;
this.ProxyType = proxyType;
this.ChildAgeThreshold = childAgeThreshold;
this.ChildDocValidityYears = childDocValidityYears;
}

/// <summary>
Expand Down Expand Up @@ -108,6 +112,20 @@ public partial class FaceApi : IEquatable<FaceApi>, IValidatableObject
[DataMember(Name="proxy_type", EmitDefaultValue=false)]
public int ProxyType { get; set; }

/// <summary>
/// The age threshold for the portrait comparison. Default: 13.
/// </summary>
/// <value>The age threshold for the portrait comparison. Default: 13.</value>
[DataMember(Name="childAgeThreshold", EmitDefaultValue=false)]
public int ChildAgeThreshold { get; set; }

/// <summary>
/// Estimated duration of validity for a child&#39;s passport, years. Default: 5.
/// </summary>
/// <value>Estimated duration of validity for a child&#39;s passport, years. Default: 5.</value>
[DataMember(Name="childDocValidityYears", EmitDefaultValue=false)]
public int ChildDocValidityYears { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -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();
}
Expand Down Expand Up @@ -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))
);
}

Expand Down Expand Up @@ -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;
}
}
Expand Down
158 changes: 158 additions & 0 deletions src/Regula.DocumentReader.WebClient/Model/InputBarcodeType.cs
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>
/// Enumeration contains the types of barcodes that can be processed
/// </summary>
/// <value>Enumeration contains the types of barcodes that can be processed</value>

[JsonConverter(typeof(StringEnumConverter))]

public enum InputBarcodeType
{
/// <summary>
/// Enum UNKNOWN for value: bct_unknown
/// </summary>
[EnumMember(Value = "bct_unknown")]
UNKNOWN = 1,

/// <summary>
/// Enum CODE128 for value: bct_Code128
/// </summary>
[EnumMember(Value = "bct_Code128")]
CODE128 = 2,

/// <summary>
/// Enum CODE39 for value: bct_Code39
/// </summary>
[EnumMember(Value = "bct_Code39")]
CODE39 = 3,

/// <summary>
/// Enum EAN8 for value: bct_EAN8
/// </summary>
[EnumMember(Value = "bct_EAN8")]
EAN8 = 4,

/// <summary>
/// Enum ITF for value: bct_ITF
/// </summary>
[EnumMember(Value = "bct_ITF")]
ITF = 5,

/// <summary>
/// Enum PDF417 for value: bct_PDF417
/// </summary>
[EnumMember(Value = "bct_PDF417")]
PDF417 = 6,

/// <summary>
/// Enum STF for value: bct_STF
/// </summary>
[EnumMember(Value = "bct_STF")]
STF = 7,

/// <summary>
/// Enum MTF for value: bct_MTF
/// </summary>
[EnumMember(Value = "bct_MTF")]
MTF = 8,

/// <summary>
/// Enum IATA for value: bct_IATA
/// </summary>
[EnumMember(Value = "bct_IATA")]
IATA = 9,

/// <summary>
/// Enum CODABAR for value: bct_CODABAR
/// </summary>
[EnumMember(Value = "bct_CODABAR")]
CODABAR = 10,

/// <summary>
/// Enum UPCA for value: bct_UPCA
/// </summary>
[EnumMember(Value = "bct_UPCA")]
UPCA = 11,

/// <summary>
/// Enum CODE93 for value: bct_CODE93
/// </summary>
[EnumMember(Value = "bct_CODE93")]
CODE93 = 12,

/// <summary>
/// Enum UPCE for value: bct_UPCE
/// </summary>
[EnumMember(Value = "bct_UPCE")]
UPCE = 13,

/// <summary>
/// Enum EAN13 for value: bct_EAN13
/// </summary>
[EnumMember(Value = "bct_EAN13")]
EAN13 = 14,

/// <summary>
/// Enum QRCODE for value: bct_QRCODE
/// </summary>
[EnumMember(Value = "bct_QRCODE")]
QRCODE = 15,

/// <summary>
/// Enum AZTEC for value: bct_AZTEC
/// </summary>
[EnumMember(Value = "bct_AZTEC")]
AZTEC = 16,

/// <summary>
/// Enum DATAMATRIX for value: bct_DATAMATRIX
/// </summary>
[EnumMember(Value = "bct_DATAMATRIX")]
DATAMATRIX = 17,

/// <summary>
/// Enum ALL_1D for value: bct_ALL_1D
/// </summary>
[EnumMember(Value = "bct_ALL_1D")]
ALL_1D = 18,

/// <summary>
/// Enum CODE11 for value: bct_Code11
/// </summary>
[EnumMember(Value = "bct_Code11")]
CODE11 = 19,

/// <summary>
/// Enum JABCODE for value: bct_JABCODE
/// </summary>
[EnumMember(Value = "bct_JABCODE")]
JABCODE = 20

}

}
Loading
Loading