Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SP-18211 - UPDATED OPEN API #148

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
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
67 changes: 58 additions & 9 deletions src/Regula.DocumentReader.WebClient/Model/AreaArray.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* 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
* 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
* The version of the OpenAPI document: 7.4.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -33,24 +33,65 @@ public partial class AreaArray : IEquatable<AreaArray>, IValidatableObject
/// <summary>
/// Initializes a new instance of the <see cref="AreaArray" /> class.
/// </summary>
/// <param name="list">list.</param>
/// <param name="points">points.</param>
public AreaArray(List<RectangleCoordinates> list = default(List<RectangleCoordinates>), List<PointArray> points = default(List<PointArray>))
[JsonConstructorAttribute]
protected AreaArray() { }
/// <summary>
/// Initializes a new instance of the <see cref="AreaArray" /> class.
/// </summary>
/// <param name="count">Number of elements in List and Points (required).</param>
/// <param name="list">list (required).</param>
/// <param name="points">points (required).</param>
public AreaArray(decimal count = default(decimal), List<RectangleCoordinates> list = default(List<RectangleCoordinates>), List<PointArray> points = default(List<PointArray>))
{
this.List = list;
this.Points = points;
// to ensure "count" is required (not null)
if (count == null)
{
throw new InvalidDataException("count is a required property for AreaArray and cannot be null");
}
else
{
this.Count = count;
}

// to ensure "list" is required (not null)
if (list == null)
{
throw new InvalidDataException("list is a required property for AreaArray and cannot be null");
}
else
{
this.List = list;
}

// to ensure "points" is required (not null)
if (points == null)
{
throw new InvalidDataException("points is a required property for AreaArray and cannot be null");
}
else
{
this.Points = points;
}

}

/// <summary>
/// Number of elements in List and Points
/// </summary>
/// <value>Number of elements in List and Points</value>
[DataMember(Name="Count", EmitDefaultValue=true)]
public decimal Count { get; set; }

/// <summary>
/// Gets or Sets List
/// </summary>
[DataMember(Name="List", EmitDefaultValue=false)]
[DataMember(Name="List", EmitDefaultValue=true)]
public List<RectangleCoordinates> List { get; set; }

/// <summary>
/// Gets or Sets Points
/// </summary>
[DataMember(Name="Points", EmitDefaultValue=false)]
[DataMember(Name="Points", EmitDefaultValue=true)]
public List<PointArray> Points { get; set; }

/// <summary>
Expand All @@ -61,6 +102,7 @@ public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class AreaArray {\n");
sb.Append(" Count: ").Append(Count).Append("\n");
sb.Append(" List: ").Append(List).Append("\n");
sb.Append(" Points: ").Append(Points).Append("\n");
sb.Append("}\n");
Expand Down Expand Up @@ -97,6 +139,11 @@ public bool Equals(AreaArray input)
return false;

return
(
this.Count == input.Count ||
(this.Count != null &&
this.Count.Equals(input.Count))
) &&
(
this.List == input.List ||
this.List != null &&
Expand All @@ -120,6 +167,8 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Count != null)
hashCode = hashCode * 59 + this.Count.GetHashCode();
if (this.List != null)
hashCode = hashCode * 59 + this.List.GetHashCode();
if (this.Points != null)
Expand Down
54 changes: 43 additions & 11 deletions src/Regula.DocumentReader.WebClient/Model/AreaContainer.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* 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
* 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
* The version of the OpenAPI document: 7.4.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -33,32 +33,64 @@ public partial class AreaContainer : IEquatable<AreaContainer>, IValidatableObj
/// <summary>
/// Initializes a new instance of the <see cref="AreaContainer" /> class.
/// </summary>
/// <param name="count">count.</param>
/// <param name="list">list.</param>
/// <param name="points">points.</param>
[JsonConstructorAttribute]
protected AreaContainer() { }
/// <summary>
/// Initializes a new instance of the <see cref="AreaContainer" /> class.
/// </summary>
/// <param name="count">count (required).</param>
/// <param name="list">list (required).</param>
/// <param name="points">points (required).</param>
public AreaContainer(int count = default(int), List<RectangleCoordinates> list = default(List<RectangleCoordinates>), List<PointsContainer> points = default(List<PointsContainer>))
{
this.Count = count;
this.List = list;
this.Points = points;
// to ensure "count" is required (not null)
if (count == null)
{
throw new InvalidDataException("count is a required property for AreaContainer and cannot be null");
}
else
{
this.Count = count;
}

// to ensure "list" is required (not null)
if (list == null)
{
throw new InvalidDataException("list is a required property for AreaContainer and cannot be null");
}
else
{
this.List = list;
}

// to ensure "points" is required (not null)
if (points == null)
{
throw new InvalidDataException("points is a required property for AreaContainer and cannot be null");
}
else
{
this.Points = points;
}

}

/// <summary>
/// Gets or Sets Count
/// </summary>
[DataMember(Name="Count", EmitDefaultValue=false)]
[DataMember(Name="Count", EmitDefaultValue=true)]
public int Count { get; set; }

/// <summary>
/// Gets or Sets List
/// </summary>
[DataMember(Name="List", EmitDefaultValue=false)]
[DataMember(Name="List", EmitDefaultValue=true)]
public List<RectangleCoordinates> List { get; set; }

/// <summary>
/// Gets or Sets Points
/// </summary>
[DataMember(Name="Points", EmitDefaultValue=false)]
[DataMember(Name="Points", EmitDefaultValue=true)]
public List<PointsContainer> Points { get; set; }

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Regula.DocumentReader.WebClient/Model/AuthParams.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* 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
* 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
* The version of the OpenAPI document: 7.4.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* 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
* 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
* The version of the OpenAPI document: 7.4.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -38,10 +38,20 @@ protected AuthenticityCheckList() { }
/// <summary>
/// Initializes a new instance of the <see cref="AuthenticityCheckList" /> class.
/// </summary>
/// <param name="count">Count of items in List.</param>
/// <param name="count">Count of items in List (required).</param>
/// <param name="list">Authenticity Check (required).</param>
public AuthenticityCheckList(int count = default(int), List<AuthenticityCheckResult> list = default(List<AuthenticityCheckResult>))
{
// to ensure "count" is required (not null)
if (count == null)
{
throw new InvalidDataException("count is a required property for AuthenticityCheckList and cannot be null");
}
else
{
this.Count = count;
}

// to ensure "list" is required (not null)
if (list == null)
{
Expand All @@ -52,14 +62,13 @@ protected AuthenticityCheckList() { }
this.List = list;
}

this.Count = count;
}

/// <summary>
/// Count of items in List
/// </summary>
/// <value>Count of items in List</value>
[DataMember(Name="Count", EmitDefaultValue=false)]
[DataMember(Name="Count", EmitDefaultValue=true)]
public int Count { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* 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
* 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
* The version of the OpenAPI document: 7.4.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand All @@ -19,7 +19,6 @@
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using JsonSubTypes;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Regula.DocumentReader.WebClient.Client.OpenAPIDateConverter;

Expand All @@ -29,12 +28,6 @@ namespace Regula.DocumentReader.WebClient.Model
/// Common fields for all authenticity result objects
/// </summary>
[DataContract]
[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 Expand Up @@ -186,16 +179,6 @@ public override int GetHashCode()
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
return this.BaseValidate(validationContext);
}

/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
{
yield break;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* 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
* 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
* The version of the OpenAPI document: 7.4.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
67 changes: 67 additions & 0 deletions src/Regula.DocumentReader.WebClient/Model/BarCodeModuleType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* 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.4.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>
/// Defines BarCodeModuleType
/// </summary>

[JsonConverter(typeof(StringEnumConverter))]

public enum BarCodeModuleType
{
/// <summary>
/// Enum TEXT for value: 0
/// </summary>
[EnumMember(Value = "0")]
TEXT = 1,

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

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

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

/// <summary>
/// Enum ALL for value: 4
/// </summary>
[EnumMember(Value = "4")]
ALL = 5

}

}
Loading
Loading