From b4005034c957201664591f0c22f6cb914e4ac64e Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 20 Feb 2024 13:36:00 +0000 Subject: [PATCH] update --- .../Model/TransactionProcessRequest.cs | 256 ++++++++++++++++++ 1 file changed, 256 insertions(+) create mode 100644 src/Regula.DocumentReader.WebClient/Model/TransactionProcessRequest.cs diff --git a/src/Regula.DocumentReader.WebClient/Model/TransactionProcessRequest.cs b/src/Regula.DocumentReader.WebClient/Model/TransactionProcessRequest.cs new file mode 100644 index 0000000..bc18aba --- /dev/null +++ b/src/Regula.DocumentReader.WebClient/Model/TransactionProcessRequest.cs @@ -0,0 +1,256 @@ +/* + * 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.1.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 +{ + /// + /// TransactionProcessRequest + /// + [DataContract] + public partial class TransactionProcessRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TransactionProcessRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// session id. + /// processParam (required). + /// list. + /// Live portrait photo. + /// Portrait photo from an external source. + /// containerList. + /// systemInfo. + /// Free-form object to be included in response. Must be object, not list or simple value. Do not affect document processing. Use it freely to pass your app params. Stored in process logs.. + public TransactionProcessRequest(string tag = default(string), ProcessParams processParam = default(ProcessParams), List list = default(List), string livePortrait = default(string), string extPortrait = default(string), ContainerList containerList = default(ContainerList), ProcessSystemInfo systemInfo = default(ProcessSystemInfo), Dictionary passBackObject = default(Dictionary)) + { + // to ensure "processParam" is required (not null) + if (processParam == null) + { + throw new InvalidDataException("processParam is a required property for TransactionProcessRequest and cannot be null"); + } + else + { + this.ProcessParam = processParam; + } + + this.Tag = tag; + this.List = list; + this.LivePortrait = livePortrait; + this.ExtPortrait = extPortrait; + this.ContainerList = containerList; + this.SystemInfo = systemInfo; + this.PassBackObject = passBackObject; + } + + /// + /// session id + /// + /// session id + [DataMember(Name="tag", EmitDefaultValue=false)] + public string Tag { get; set; } + + /// + /// Gets or Sets ProcessParam + /// + [DataMember(Name="processParam", EmitDefaultValue=true)] + public ProcessParams ProcessParam { get; set; } + + /// + /// Gets or Sets List + /// + [DataMember(Name="List", EmitDefaultValue=false)] + public List List { get; set; } + + /// + /// Live portrait photo + /// + /// Live portrait photo + [DataMember(Name="livePortrait", EmitDefaultValue=false)] + public string LivePortrait { get; set; } + + /// + /// Portrait photo from an external source + /// + /// Portrait photo from an external source + [DataMember(Name="extPortrait", EmitDefaultValue=false)] + public string ExtPortrait { get; set; } + + /// + /// Gets or Sets ContainerList + /// + [DataMember(Name="ContainerList", EmitDefaultValue=false)] + public ContainerList ContainerList { get; set; } + + /// + /// Gets or Sets SystemInfo + /// + [DataMember(Name="systemInfo", EmitDefaultValue=false)] + public ProcessSystemInfo SystemInfo { get; set; } + + /// + /// Free-form object to be included in response. Must be object, not list or simple value. Do not affect document processing. Use it freely to pass your app params. Stored in process logs. + /// + /// Free-form object to be included in response. Must be object, not list or simple value. Do not affect document processing. Use it freely to pass your app params. Stored in process logs. + [DataMember(Name="passBackObject", EmitDefaultValue=false)] + public Dictionary PassBackObject { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TransactionProcessRequest {\n"); + sb.Append(" Tag: ").Append(Tag).Append("\n"); + sb.Append(" ProcessParam: ").Append(ProcessParam).Append("\n"); + sb.Append(" List: ").Append(List).Append("\n"); + sb.Append(" LivePortrait: ").Append(LivePortrait).Append("\n"); + sb.Append(" ExtPortrait: ").Append(ExtPortrait).Append("\n"); + sb.Append(" ContainerList: ").Append(ContainerList).Append("\n"); + sb.Append(" SystemInfo: ").Append(SystemInfo).Append("\n"); + sb.Append(" PassBackObject: ").Append(PassBackObject).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TransactionProcessRequest); + } + + /// + /// Returns true if TransactionProcessRequest instances are equal + /// + /// Instance of TransactionProcessRequest to be compared + /// Boolean + public bool Equals(TransactionProcessRequest input) + { + if (input == null) + return false; + + return + ( + this.Tag == input.Tag || + (this.Tag != null && + this.Tag.Equals(input.Tag)) + ) && + ( + this.ProcessParam == input.ProcessParam || + (this.ProcessParam != null && + this.ProcessParam.Equals(input.ProcessParam)) + ) && + ( + this.List == input.List || + this.List != null && + input.List != null && + this.List.SequenceEqual(input.List) + ) && + ( + this.LivePortrait == input.LivePortrait || + (this.LivePortrait != null && + this.LivePortrait.Equals(input.LivePortrait)) + ) && + ( + this.ExtPortrait == input.ExtPortrait || + (this.ExtPortrait != null && + this.ExtPortrait.Equals(input.ExtPortrait)) + ) && + ( + this.ContainerList == input.ContainerList || + (this.ContainerList != null && + this.ContainerList.Equals(input.ContainerList)) + ) && + ( + this.SystemInfo == input.SystemInfo || + (this.SystemInfo != null && + this.SystemInfo.Equals(input.SystemInfo)) + ) && + ( + this.PassBackObject == input.PassBackObject || + this.PassBackObject != null && + input.PassBackObject != null && + this.PassBackObject.SequenceEqual(input.PassBackObject) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Tag != null) + hashCode = hashCode * 59 + this.Tag.GetHashCode(); + if (this.ProcessParam != null) + hashCode = hashCode * 59 + this.ProcessParam.GetHashCode(); + if (this.List != null) + hashCode = hashCode * 59 + this.List.GetHashCode(); + if (this.LivePortrait != null) + hashCode = hashCode * 59 + this.LivePortrait.GetHashCode(); + if (this.ExtPortrait != null) + hashCode = hashCode * 59 + this.ExtPortrait.GetHashCode(); + if (this.ContainerList != null) + hashCode = hashCode * 59 + this.ContainerList.GetHashCode(); + if (this.SystemInfo != null) + hashCode = hashCode * 59 + this.SystemInfo.GetHashCode(); + if (this.PassBackObject != null) + hashCode = hashCode * 59 + this.PassBackObject.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +}