/* 
 * 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>
    /// StockAmountDetailSO &lt;emph&gt;undocumented&lt;/emph&gt;
    /// </summary>
    [DataContract]
    public partial class ComGkSoftwareSweeSesApiServerCdDataProviderDtoSoStockAmountDetailSO :  IEquatable<ComGkSoftwareSweeSesApiServerCdDataProviderDtoSoStockAmountDetailSO>, IValidatableObject
    {
        /// <summary>
        /// Defines StockType
        /// </summary>
        [JsonConverter(typeof(StringEnumConverter))]
        public enum StockTypeEnum
        {
            
            /// <summary>
            /// Enum DEFAULT for value: DEFAULT
            /// </summary>
            [EnumMember(Value = "DEFAULT")]
            DEFAULT = 1,
            
            /// <summary>
            /// Enum FREE for value: FREE
            /// </summary>
            [EnumMember(Value = "FREE")]
            FREE = 2,
            
            /// <summary>
            /// Enum RESERVED for value: RESERVED
            /// </summary>
            [EnumMember(Value = "RESERVED")]
            RESERVED = 3,
            
            /// <summary>
            /// Enum TRANSFER for value: TRANSFER
            /// </summary>
            [EnumMember(Value = "TRANSFER")]
            TRANSFER = 4,
            
            /// <summary>
            /// Enum INTRANSIT for value: IN_TRANSIT
            /// </summary>
            [EnumMember(Value = "IN_TRANSIT")]
            INTRANSIT = 5
        }

        /// <summary>
        /// Gets or Sets StockType
        /// </summary>
        [DataMember(Name="stockType", EmitDefaultValue=false)]
        public StockTypeEnum? StockType { get; set; }
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwareSweeSesApiServerCdDataProviderDtoSoStockAmountDetailSO" /> class.
        /// </summary>
        /// <param name="retailStoreID">retailStoreID.</param>
        /// <param name="itemID">itemID.</param>
        /// <param name="uomCode">uomCode.</param>
        /// <param name="stockType">stockType.</param>
        /// <param name="storageLocationID">storageLocationID.</param>
        /// <param name="inventoryStateID">inventoryStateID.</param>
        /// <param name="stockAmount">stockAmount.</param>
        /// <param name="distance">distance.</param>
        /// <param name="xxcustom05">xxcustom05.</param>
        /// <param name="xxcustom03">xxcustom03.</param>
        /// <param name="xxcustom02">xxcustom02.</param>
        /// <param name="xxcustom04">xxcustom04.</param>
        /// <param name="xxcustom01">xxcustom01.</param>
        public ComGkSoftwareSweeSesApiServerCdDataProviderDtoSoStockAmountDetailSO(string retailStoreID = default(string), string itemID = default(string), string uomCode = default(string), StockTypeEnum? stockType = default(StockTypeEnum?), string storageLocationID = default(string), string inventoryStateID = default(string), double? stockAmount = default(double?), double? distance = default(double?), string xxcustom05 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom01 = default(string))
        {
            this.RetailStoreID = retailStoreID;
            this.ItemID = itemID;
            this.UomCode = uomCode;
            this.StockType = stockType;
            this.StorageLocationID = storageLocationID;
            this.InventoryStateID = inventoryStateID;
            this.StockAmount = stockAmount;
            this.Distance = distance;
            this.Xxcustom05 = xxcustom05;
            this.Xxcustom03 = xxcustom03;
            this.Xxcustom02 = xxcustom02;
            this.Xxcustom04 = xxcustom04;
            this.Xxcustom01 = xxcustom01;
        }
        
        /// <summary>
        /// Gets or Sets RetailStoreID
        /// </summary>
        [DataMember(Name="retailStoreID", EmitDefaultValue=false)]
        public string RetailStoreID { get; set; }

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

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


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

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

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

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

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

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

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

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

        /// <summary>
        /// Gets or Sets Xxcustom01
        /// </summary>
        [DataMember(Name="xxcustom01", EmitDefaultValue=false)]
        public string Xxcustom01 { 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 ComGkSoftwareSweeSesApiServerCdDataProviderDtoSoStockAmountDetailSO {\n");
            sb.Append("  RetailStoreID: ").Append(RetailStoreID).Append("\n");
            sb.Append("  ItemID: ").Append(ItemID).Append("\n");
            sb.Append("  UomCode: ").Append(UomCode).Append("\n");
            sb.Append("  StockType: ").Append(StockType).Append("\n");
            sb.Append("  StorageLocationID: ").Append(StorageLocationID).Append("\n");
            sb.Append("  InventoryStateID: ").Append(InventoryStateID).Append("\n");
            sb.Append("  StockAmount: ").Append(StockAmount).Append("\n");
            sb.Append("  Distance: ").Append(Distance).Append("\n");
            sb.Append("  Xxcustom05: ").Append(Xxcustom05).Append("\n");
            sb.Append("  Xxcustom03: ").Append(Xxcustom03).Append("\n");
            sb.Append("  Xxcustom02: ").Append(Xxcustom02).Append("\n");
            sb.Append("  Xxcustom04: ").Append(Xxcustom04).Append("\n");
            sb.Append("  Xxcustom01: ").Append(Xxcustom01).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 ComGkSoftwareSweeSesApiServerCdDataProviderDtoSoStockAmountDetailSO);
        }

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

            return 
                (
                    this.RetailStoreID == input.RetailStoreID ||
                    (this.RetailStoreID != null &&
                    this.RetailStoreID.Equals(input.RetailStoreID))
                ) && 
                (
                    this.ItemID == input.ItemID ||
                    (this.ItemID != null &&
                    this.ItemID.Equals(input.ItemID))
                ) && 
                (
                    this.UomCode == input.UomCode ||
                    (this.UomCode != null &&
                    this.UomCode.Equals(input.UomCode))
                ) && 
                (
                    this.StockType == input.StockType ||
                    (this.StockType != null &&
                    this.StockType.Equals(input.StockType))
                ) && 
                (
                    this.StorageLocationID == input.StorageLocationID ||
                    (this.StorageLocationID != null &&
                    this.StorageLocationID.Equals(input.StorageLocationID))
                ) && 
                (
                    this.InventoryStateID == input.InventoryStateID ||
                    (this.InventoryStateID != null &&
                    this.InventoryStateID.Equals(input.InventoryStateID))
                ) && 
                (
                    this.StockAmount == input.StockAmount ||
                    (this.StockAmount != null &&
                    this.StockAmount.Equals(input.StockAmount))
                ) && 
                (
                    this.Distance == input.Distance ||
                    (this.Distance != null &&
                    this.Distance.Equals(input.Distance))
                ) && 
                (
                    this.Xxcustom05 == input.Xxcustom05 ||
                    (this.Xxcustom05 != null &&
                    this.Xxcustom05.Equals(input.Xxcustom05))
                ) && 
                (
                    this.Xxcustom03 == input.Xxcustom03 ||
                    (this.Xxcustom03 != null &&
                    this.Xxcustom03.Equals(input.Xxcustom03))
                ) && 
                (
                    this.Xxcustom02 == input.Xxcustom02 ||
                    (this.Xxcustom02 != null &&
                    this.Xxcustom02.Equals(input.Xxcustom02))
                ) && 
                (
                    this.Xxcustom04 == input.Xxcustom04 ||
                    (this.Xxcustom04 != null &&
                    this.Xxcustom04.Equals(input.Xxcustom04))
                ) && 
                (
                    this.Xxcustom01 == input.Xxcustom01 ||
                    (this.Xxcustom01 != null &&
                    this.Xxcustom01.Equals(input.Xxcustom01))
                );
        }

        /// <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.RetailStoreID != null)
                    hashCode = hashCode * 59 + this.RetailStoreID.GetHashCode();
                if (this.ItemID != null)
                    hashCode = hashCode * 59 + this.ItemID.GetHashCode();
                if (this.UomCode != null)
                    hashCode = hashCode * 59 + this.UomCode.GetHashCode();
                if (this.StockType != null)
                    hashCode = hashCode * 59 + this.StockType.GetHashCode();
                if (this.StorageLocationID != null)
                    hashCode = hashCode * 59 + this.StorageLocationID.GetHashCode();
                if (this.InventoryStateID != null)
                    hashCode = hashCode * 59 + this.InventoryStateID.GetHashCode();
                if (this.StockAmount != null)
                    hashCode = hashCode * 59 + this.StockAmount.GetHashCode();
                if (this.Distance != null)
                    hashCode = hashCode * 59 + this.Distance.GetHashCode();
                if (this.Xxcustom05 != null)
                    hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
                if (this.Xxcustom03 != null)
                    hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
                if (this.Xxcustom02 != null)
                    hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
                if (this.Xxcustom04 != null)
                    hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
                if (this.Xxcustom01 != null)
                    hashCode = hashCode * 59 + this.Xxcustom01.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;
        }
    }

}
