/* 
 * 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>
    /// PrepaidPinRequest
    /// </summary>
    [DataContract]
    public partial class PrepaidPinRequest :  IEquatable<PrepaidPinRequest>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="PrepaidPinRequest" /> class.
        /// </summary>
        /// <param name="uuid">uuid.</param>
        /// <param name="country">country.</param>
        /// <param name="store">store.</param>
        /// <param name="posNumber">posNumber.</param>
        /// <param name="posTimestamp">posTimestamp.</param>
        /// <param name="voucherNo">voucherNo.</param>
        /// <param name="voucherId">voucherId.</param>
        /// <param name="prepaidInfos">prepaidInfos.</param>
        /// <param name="prepaidTypes">prepaidTypes.</param>
        public PrepaidPinRequest(string uuid = default(string), string country = default(string), string store = default(string), string posNumber = default(string), DateTime? posTimestamp = default(DateTime?), string voucherNo = default(string), string voucherId = default(string), List<PrepaidInfoType> prepaidInfos = default(List<PrepaidInfoType>), List<PrepaidType> prepaidTypes = default(List<PrepaidType>))
        {
            this.Uuid = uuid;
            this.Country = country;
            this.Store = store;
            this.PosNumber = posNumber;
            this.PosTimestamp = posTimestamp;
            this.VoucherNo = voucherNo;
            this.VoucherId = voucherId;
            this.PrepaidInfos = prepaidInfos;
            this.PrepaidTypes = prepaidTypes;
        }
        
        /// <summary>
        /// Gets or Sets Uuid
        /// </summary>
        [DataMember(Name="uuid", EmitDefaultValue=false)]
        public string Uuid { get; set; }

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

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

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

        /// <summary>
        /// Gets or Sets PosTimestamp
        /// </summary>
        [DataMember(Name="posTimestamp", EmitDefaultValue=false)]
        public DateTime? PosTimestamp { get; set; }

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

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

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

        /// <summary>
        /// Gets or Sets PrepaidTypes
        /// </summary>
        [DataMember(Name="prepaidTypes", EmitDefaultValue=false)]
        public List<PrepaidType> PrepaidTypes { 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 PrepaidPinRequest {\n");
            sb.Append("  Uuid: ").Append(Uuid).Append("\n");
            sb.Append("  Country: ").Append(Country).Append("\n");
            sb.Append("  Store: ").Append(Store).Append("\n");
            sb.Append("  PosNumber: ").Append(PosNumber).Append("\n");
            sb.Append("  PosTimestamp: ").Append(PosTimestamp).Append("\n");
            sb.Append("  VoucherNo: ").Append(VoucherNo).Append("\n");
            sb.Append("  VoucherId: ").Append(VoucherId).Append("\n");
            sb.Append("  PrepaidInfos: ").Append(PrepaidInfos).Append("\n");
            sb.Append("  PrepaidTypes: ").Append(PrepaidTypes).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 PrepaidPinRequest);
        }

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

            return 
                (
                    this.Uuid == input.Uuid ||
                    (this.Uuid != null &&
                    this.Uuid.Equals(input.Uuid))
                ) && 
                (
                    this.Country == input.Country ||
                    (this.Country != null &&
                    this.Country.Equals(input.Country))
                ) && 
                (
                    this.Store == input.Store ||
                    (this.Store != null &&
                    this.Store.Equals(input.Store))
                ) && 
                (
                    this.PosNumber == input.PosNumber ||
                    (this.PosNumber != null &&
                    this.PosNumber.Equals(input.PosNumber))
                ) && 
                (
                    this.PosTimestamp == input.PosTimestamp ||
                    (this.PosTimestamp != null &&
                    this.PosTimestamp.Equals(input.PosTimestamp))
                ) && 
                (
                    this.VoucherNo == input.VoucherNo ||
                    (this.VoucherNo != null &&
                    this.VoucherNo.Equals(input.VoucherNo))
                ) && 
                (
                    this.VoucherId == input.VoucherId ||
                    (this.VoucherId != null &&
                    this.VoucherId.Equals(input.VoucherId))
                ) && 
                (
                    this.PrepaidInfos == input.PrepaidInfos ||
                    this.PrepaidInfos != null &&
                    this.PrepaidInfos.SequenceEqual(input.PrepaidInfos)
                ) && 
                (
                    this.PrepaidTypes == input.PrepaidTypes ||
                    this.PrepaidTypes != null &&
                    this.PrepaidTypes.SequenceEqual(input.PrepaidTypes)
                );
        }

        /// <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.Uuid != null)
                    hashCode = hashCode * 59 + this.Uuid.GetHashCode();
                if (this.Country != null)
                    hashCode = hashCode * 59 + this.Country.GetHashCode();
                if (this.Store != null)
                    hashCode = hashCode * 59 + this.Store.GetHashCode();
                if (this.PosNumber != null)
                    hashCode = hashCode * 59 + this.PosNumber.GetHashCode();
                if (this.PosTimestamp != null)
                    hashCode = hashCode * 59 + this.PosTimestamp.GetHashCode();
                if (this.VoucherNo != null)
                    hashCode = hashCode * 59 + this.VoucherNo.GetHashCode();
                if (this.VoucherId != null)
                    hashCode = hashCode * 59 + this.VoucherId.GetHashCode();
                if (this.PrepaidInfos != null)
                    hashCode = hashCode * 59 + this.PrepaidInfos.GetHashCode();
                if (this.PrepaidTypes != null)
                    hashCode = hashCode * 59 + this.PrepaidTypes.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;
        }
    }

}
