/* 
 * 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>
    /// BusinessUnitContactFilter &lt;p&gt;Filter for searching of address&lt;br /&gt;&lt;/p&gt;
    /// </summary>
    [DataContract]
    public partial class ComGkSoftwareGkrApiServerMdBusinessUnitDtoDomBusinessUnitContactFilter :  IEquatable<ComGkSoftwareGkrApiServerMdBusinessUnitDtoDomBusinessUnitContactFilter>, IValidatableObject
    {
        /// <summary>
        /// Defines BusinessUnitStatusCode
        /// </summary>
        [JsonConverter(typeof(StringEnumConverter))]
        public enum BusinessUnitStatusCodeEnum
        {
            
            /// <summary>
            /// Enum ENABLED for value: ENABLED
            /// </summary>
            [EnumMember(Value = "ENABLED")]
            ENABLED = 1,
            
            /// <summary>
            /// Enum DISABLED for value: DISABLED
            /// </summary>
            [EnumMember(Value = "DISABLED")]
            DISABLED = 2,
            
            /// <summary>
            /// Enum SCHEDULEDFORDELETION for value: SCHEDULED_FOR_DELETION
            /// </summary>
            [EnumMember(Value = "SCHEDULED_FOR_DELETION")]
            SCHEDULEDFORDELETION = 3,
            
            /// <summary>
            /// Enum DELETED for value: DELETED
            /// </summary>
            [EnumMember(Value = "DELETED")]
            DELETED = 4
        }

        /// <summary>
        /// Gets or Sets BusinessUnitStatusCode
        /// </summary>
        [DataMember(Name="businessUnitStatusCode", EmitDefaultValue=false)]
        public BusinessUnitStatusCodeEnum? BusinessUnitStatusCode { get; set; }
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdBusinessUnitDtoDomBusinessUnitContactFilter" /> class.
        /// </summary>
        /// <param name="businessUnitID">&lt;p&gt;Identifier for a retail store, distribution center or administration center (internal identifier).&lt;br /&gt;&lt;/p&gt;.</param>
        /// <param name="businessUnitGroupID">&lt;p&gt;Identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;.</param>
        /// <param name="street">&lt;p&gt;Street&lt;br /&gt;&lt;/p&gt;.</param>
        /// <param name="city">&lt;p&gt;City&lt;br /&gt;&lt;/p&gt;.</param>
        /// <param name="postalCode">&lt;p&gt;Postal code&lt;br /&gt;&lt;/p&gt;.</param>
        /// <param name="businessUnitStatusCode">businessUnitStatusCode.</param>
        public ComGkSoftwareGkrApiServerMdBusinessUnitDtoDomBusinessUnitContactFilter(string businessUnitID = default(string), string businessUnitGroupID = default(string), string street = default(string), string city = default(string), string postalCode = default(string), BusinessUnitStatusCodeEnum? businessUnitStatusCode = default(BusinessUnitStatusCodeEnum?))
        {
            this.BusinessUnitID = businessUnitID;
            this.BusinessUnitGroupID = businessUnitGroupID;
            this.Street = street;
            this.City = city;
            this.PostalCode = postalCode;
            this.BusinessUnitStatusCode = businessUnitStatusCode;
        }
        
        /// <summary>
        /// &lt;p&gt;Identifier for a retail store, distribution center or administration center (internal identifier).&lt;br /&gt;&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Identifier for a retail store, distribution center or administration center (internal identifier).&lt;br /&gt;&lt;/p&gt;</value>
        [DataMember(Name="businessUnitID", EmitDefaultValue=false)]
        public string BusinessUnitID { get; set; }

        /// <summary>
        /// &lt;p&gt;Identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;</value>
        [DataMember(Name="businessUnitGroupID", EmitDefaultValue=false)]
        public string BusinessUnitGroupID { get; set; }

        /// <summary>
        /// &lt;p&gt;Street&lt;br /&gt;&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Street&lt;br /&gt;&lt;/p&gt;</value>
        [DataMember(Name="street", EmitDefaultValue=false)]
        public string Street { get; set; }

        /// <summary>
        /// &lt;p&gt;City&lt;br /&gt;&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;City&lt;br /&gt;&lt;/p&gt;</value>
        [DataMember(Name="city", EmitDefaultValue=false)]
        public string City { get; set; }

        /// <summary>
        /// &lt;p&gt;Postal code&lt;br /&gt;&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Postal code&lt;br /&gt;&lt;/p&gt;</value>
        [DataMember(Name="postalCode", EmitDefaultValue=false)]
        public string PostalCode { 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 ComGkSoftwareGkrApiServerMdBusinessUnitDtoDomBusinessUnitContactFilter {\n");
            sb.Append("  BusinessUnitID: ").Append(BusinessUnitID).Append("\n");
            sb.Append("  BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
            sb.Append("  Street: ").Append(Street).Append("\n");
            sb.Append("  City: ").Append(City).Append("\n");
            sb.Append("  PostalCode: ").Append(PostalCode).Append("\n");
            sb.Append("  BusinessUnitStatusCode: ").Append(BusinessUnitStatusCode).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 ComGkSoftwareGkrApiServerMdBusinessUnitDtoDomBusinessUnitContactFilter);
        }

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

            return 
                (
                    this.BusinessUnitID == input.BusinessUnitID ||
                    (this.BusinessUnitID != null &&
                    this.BusinessUnitID.Equals(input.BusinessUnitID))
                ) && 
                (
                    this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
                    (this.BusinessUnitGroupID != null &&
                    this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
                ) && 
                (
                    this.Street == input.Street ||
                    (this.Street != null &&
                    this.Street.Equals(input.Street))
                ) && 
                (
                    this.City == input.City ||
                    (this.City != null &&
                    this.City.Equals(input.City))
                ) && 
                (
                    this.PostalCode == input.PostalCode ||
                    (this.PostalCode != null &&
                    this.PostalCode.Equals(input.PostalCode))
                ) && 
                (
                    this.BusinessUnitStatusCode == input.BusinessUnitStatusCode ||
                    (this.BusinessUnitStatusCode != null &&
                    this.BusinessUnitStatusCode.Equals(input.BusinessUnitStatusCode))
                );
        }

        /// <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.BusinessUnitID != null)
                    hashCode = hashCode * 59 + this.BusinessUnitID.GetHashCode();
                if (this.BusinessUnitGroupID != null)
                    hashCode = hashCode * 59 + this.BusinessUnitGroupID.GetHashCode();
                if (this.Street != null)
                    hashCode = hashCode * 59 + this.Street.GetHashCode();
                if (this.City != null)
                    hashCode = hashCode * 59 + this.City.GetHashCode();
                if (this.PostalCode != null)
                    hashCode = hashCode * 59 + this.PostalCode.GetHashCode();
                if (this.BusinessUnitStatusCode != null)
                    hashCode = hashCode * 59 + this.BusinessUnitStatusCode.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;
        }
    }

}
