/* 
 * GK application - OmniPOS Service API
 *
 * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 5.21.1-b03
 * 
 * Generated by: https://github.com/swagger-api/swagger-codegen.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 SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;

namespace IO.Swagger.Model
{
    /// <summary>
    /// PayInOutReasonParam &lt;p&gt;Domain object for PayInOutReasonParam&lt;/p&gt;
    /// </summary>
    [DataContract]
    public partial class ComGkSoftwarePosApiServiceTransactionPayInOutReasonParam :  IEquatable<ComGkSoftwarePosApiServiceTransactionPayInOutReasonParam>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwarePosApiServiceTransactionPayInOutReasonParam" /> class.
        /// </summary>
        /// <param name="input0Name">&lt;p&gt;The input0_name.&lt;/p&gt;.</param>
        /// <param name="input1Name">&lt;p&gt;The input1_name.&lt;/p&gt;.</param>
        /// <param name="input2Name">&lt;p&gt;The input2_name.&lt;/p&gt;.</param>
        /// <param name="input3Name">&lt;p&gt;The input3_name.&lt;/p&gt;.</param>
        /// <param name="input0Value">&lt;p&gt;The input0_value.&lt;/p&gt;.</param>
        /// <param name="input1Value">&lt;p&gt;The input1_value.&lt;/p&gt;.</param>
        /// <param name="input2Value">&lt;p&gt;The input2_value.&lt;/p&gt;.</param>
        /// <param name="input3Value">&lt;p&gt;The input3_value.&lt;/p&gt;.</param>
        /// <param name="input0Id">&lt;p&gt;The input0_id.&lt;/p&gt;.</param>
        /// <param name="input1Id">&lt;p&gt;The input1_id.&lt;/p&gt;.</param>
        /// <param name="input2Id">&lt;p&gt;The input2_id.&lt;/p&gt;.</param>
        /// <param name="input3Id">&lt;p&gt;The input3_id.&lt;/p&gt;.</param>
        public ComGkSoftwarePosApiServiceTransactionPayInOutReasonParam(string input0Name = default(string), string input1Name = default(string), string input2Name = default(string), string input3Name = default(string), string input0Value = default(string), string input1Value = default(string), string input2Value = default(string), string input3Value = default(string), string input0Id = default(string), string input1Id = default(string), string input2Id = default(string), string input3Id = default(string))
        {
            this.Input0Name = input0Name;
            this.Input1Name = input1Name;
            this.Input2Name = input2Name;
            this.Input3Name = input3Name;
            this.Input0Value = input0Value;
            this.Input1Value = input1Value;
            this.Input2Value = input2Value;
            this.Input3Value = input3Value;
            this.Input0Id = input0Id;
            this.Input1Id = input1Id;
            this.Input2Id = input2Id;
            this.Input3Id = input3Id;
        }
        
        /// <summary>
        /// &lt;p&gt;The input0_name.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The input0_name.&lt;/p&gt;</value>
        [DataMember(Name="input0_name", EmitDefaultValue=false)]
        public string Input0Name { get; set; }

        /// <summary>
        /// &lt;p&gt;The input1_name.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The input1_name.&lt;/p&gt;</value>
        [DataMember(Name="input1_name", EmitDefaultValue=false)]
        public string Input1Name { get; set; }

        /// <summary>
        /// &lt;p&gt;The input2_name.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The input2_name.&lt;/p&gt;</value>
        [DataMember(Name="input2_name", EmitDefaultValue=false)]
        public string Input2Name { get; set; }

        /// <summary>
        /// &lt;p&gt;The input3_name.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The input3_name.&lt;/p&gt;</value>
        [DataMember(Name="input3_name", EmitDefaultValue=false)]
        public string Input3Name { get; set; }

        /// <summary>
        /// &lt;p&gt;The input0_value.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The input0_value.&lt;/p&gt;</value>
        [DataMember(Name="input0_value", EmitDefaultValue=false)]
        public string Input0Value { get; set; }

        /// <summary>
        /// &lt;p&gt;The input1_value.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The input1_value.&lt;/p&gt;</value>
        [DataMember(Name="input1_value", EmitDefaultValue=false)]
        public string Input1Value { get; set; }

        /// <summary>
        /// &lt;p&gt;The input2_value.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The input2_value.&lt;/p&gt;</value>
        [DataMember(Name="input2_value", EmitDefaultValue=false)]
        public string Input2Value { get; set; }

        /// <summary>
        /// &lt;p&gt;The input3_value.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The input3_value.&lt;/p&gt;</value>
        [DataMember(Name="input3_value", EmitDefaultValue=false)]
        public string Input3Value { get; set; }

        /// <summary>
        /// &lt;p&gt;The input0_id.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The input0_id.&lt;/p&gt;</value>
        [DataMember(Name="input0_id", EmitDefaultValue=false)]
        public string Input0Id { get; set; }

        /// <summary>
        /// &lt;p&gt;The input1_id.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The input1_id.&lt;/p&gt;</value>
        [DataMember(Name="input1_id", EmitDefaultValue=false)]
        public string Input1Id { get; set; }

        /// <summary>
        /// &lt;p&gt;The input2_id.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The input2_id.&lt;/p&gt;</value>
        [DataMember(Name="input2_id", EmitDefaultValue=false)]
        public string Input2Id { get; set; }

        /// <summary>
        /// &lt;p&gt;The input3_id.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;The input3_id.&lt;/p&gt;</value>
        [DataMember(Name="input3_id", EmitDefaultValue=false)]
        public string Input3Id { get; set; }

        /// <summary>
        /// Returns the string presentation of the object
        /// </summary>
        /// <returns>String presentation of the object</returns>
        public override string ToString()
        {
            var sb = new StringBuilder();
            sb.Append("class ComGkSoftwarePosApiServiceTransactionPayInOutReasonParam {\n");
            sb.Append("  Input0Name: ").Append(Input0Name).Append("\n");
            sb.Append("  Input1Name: ").Append(Input1Name).Append("\n");
            sb.Append("  Input2Name: ").Append(Input2Name).Append("\n");
            sb.Append("  Input3Name: ").Append(Input3Name).Append("\n");
            sb.Append("  Input0Value: ").Append(Input0Value).Append("\n");
            sb.Append("  Input1Value: ").Append(Input1Value).Append("\n");
            sb.Append("  Input2Value: ").Append(Input2Value).Append("\n");
            sb.Append("  Input3Value: ").Append(Input3Value).Append("\n");
            sb.Append("  Input0Id: ").Append(Input0Id).Append("\n");
            sb.Append("  Input1Id: ").Append(Input1Id).Append("\n");
            sb.Append("  Input2Id: ").Append(Input2Id).Append("\n");
            sb.Append("  Input3Id: ").Append(Input3Id).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }
  
        /// <summary>
        /// Returns the JSON string presentation of the object
        /// </summary>
        /// <returns>JSON string presentation of the object</returns>
        public virtual string ToJson()
        {
            return JsonConvert.SerializeObject(this, Formatting.Indented);
        }

        /// <summary>
        /// Returns true if objects are equal
        /// </summary>
        /// <param name="input">Object to be compared</param>
        /// <returns>Boolean</returns>
        public override bool Equals(object input)
        {
            return this.Equals(input as ComGkSoftwarePosApiServiceTransactionPayInOutReasonParam);
        }

        /// <summary>
        /// Returns true if ComGkSoftwarePosApiServiceTransactionPayInOutReasonParam instances are equal
        /// </summary>
        /// <param name="input">Instance of ComGkSoftwarePosApiServiceTransactionPayInOutReasonParam to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComGkSoftwarePosApiServiceTransactionPayInOutReasonParam input)
        {
            if (input == null)
                return false;

            return 
                (
                    this.Input0Name == input.Input0Name ||
                    (this.Input0Name != null &&
                    this.Input0Name.Equals(input.Input0Name))
                ) && 
                (
                    this.Input1Name == input.Input1Name ||
                    (this.Input1Name != null &&
                    this.Input1Name.Equals(input.Input1Name))
                ) && 
                (
                    this.Input2Name == input.Input2Name ||
                    (this.Input2Name != null &&
                    this.Input2Name.Equals(input.Input2Name))
                ) && 
                (
                    this.Input3Name == input.Input3Name ||
                    (this.Input3Name != null &&
                    this.Input3Name.Equals(input.Input3Name))
                ) && 
                (
                    this.Input0Value == input.Input0Value ||
                    (this.Input0Value != null &&
                    this.Input0Value.Equals(input.Input0Value))
                ) && 
                (
                    this.Input1Value == input.Input1Value ||
                    (this.Input1Value != null &&
                    this.Input1Value.Equals(input.Input1Value))
                ) && 
                (
                    this.Input2Value == input.Input2Value ||
                    (this.Input2Value != null &&
                    this.Input2Value.Equals(input.Input2Value))
                ) && 
                (
                    this.Input3Value == input.Input3Value ||
                    (this.Input3Value != null &&
                    this.Input3Value.Equals(input.Input3Value))
                ) && 
                (
                    this.Input0Id == input.Input0Id ||
                    (this.Input0Id != null &&
                    this.Input0Id.Equals(input.Input0Id))
                ) && 
                (
                    this.Input1Id == input.Input1Id ||
                    (this.Input1Id != null &&
                    this.Input1Id.Equals(input.Input1Id))
                ) && 
                (
                    this.Input2Id == input.Input2Id ||
                    (this.Input2Id != null &&
                    this.Input2Id.Equals(input.Input2Id))
                ) && 
                (
                    this.Input3Id == input.Input3Id ||
                    (this.Input3Id != null &&
                    this.Input3Id.Equals(input.Input3Id))
                );
        }

        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;
                if (this.Input0Name != null)
                    hashCode = hashCode * 59 + this.Input0Name.GetHashCode();
                if (this.Input1Name != null)
                    hashCode = hashCode * 59 + this.Input1Name.GetHashCode();
                if (this.Input2Name != null)
                    hashCode = hashCode * 59 + this.Input2Name.GetHashCode();
                if (this.Input3Name != null)
                    hashCode = hashCode * 59 + this.Input3Name.GetHashCode();
                if (this.Input0Value != null)
                    hashCode = hashCode * 59 + this.Input0Value.GetHashCode();
                if (this.Input1Value != null)
                    hashCode = hashCode * 59 + this.Input1Value.GetHashCode();
                if (this.Input2Value != null)
                    hashCode = hashCode * 59 + this.Input2Value.GetHashCode();
                if (this.Input3Value != null)
                    hashCode = hashCode * 59 + this.Input3Value.GetHashCode();
                if (this.Input0Id != null)
                    hashCode = hashCode * 59 + this.Input0Id.GetHashCode();
                if (this.Input1Id != null)
                    hashCode = hashCode * 59 + this.Input1Id.GetHashCode();
                if (this.Input2Id != null)
                    hashCode = hashCode * 59 + this.Input2Id.GetHashCode();
                if (this.Input3Id != null)
                    hashCode = hashCode * 59 + this.Input3Id.GetHashCode();
                return hashCode;
            }
        }

        /// <summary>
        /// To validate all properties of the instance
        /// </summary>
        /// <param name="validationContext">Validation context</param>
        /// <returns>Validation Result</returns>
        IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
        {
            yield break;
        }
    }

}
