/* 
 * 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>
    /// RetailTransactionCustomer &lt;emph&gt;undocumented&lt;/emph&gt;
    /// </summary>
    [DataContract]
    public partial class ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomer :  IEquatable<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomer>, IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomer" /> class.
        /// </summary>
        [JsonConstructorAttribute]
        protected ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomer() { }
        /// <summary>
        /// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomer" /> class.
        /// </summary>
        /// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
        /// <param name="genderType">A code for specifying a persons gender. .</param>
        /// <param name="birthDayNumber">A number in the range 1-31denoting the day of the month part of the Person&#39;s date of birth. .</param>
        /// <param name="birthMonthNumber">A number in the range 1-12 denoting the month part of the Person&#39;s date of birth. .</param>
        /// <param name="birthYearNumber">The year part of the Person&#39;s date of birth. .</param>
        /// <param name="addressTypeDescription">The description of the customer type code.</param>
        /// <param name="genericFlag">If true, the customer is a dummy/unknown customer  (required).</param>
        /// <param name="businessDescription">The description of the business of the customer; this information is e.g. to be printed on invoices in Greece due to tax law requirements .</param>
        /// <param name="customerIDEntryMethodCode">A code that describes how this customer&#39;s identification is being entered (e.g. it is scanned, keyed, etc.) .</param>
        /// <param name="firstName">A person&#39;s first name..</param>
        /// <param name="lastName">A person&#39;s last name..</param>
        /// <param name="preferredReceiptPrintoutTypeCode">Defines the preferred printout settings for the customer.</param>
        /// <param name="parentCustomerID">Number of the customer to which this buyer / contact person belongs..</param>
        /// <param name="parentCustomerName1">First name line of the customer to which this buyer / contact person belongs..</param>
        /// <param name="parentCustomerName2">Second name line of the customer to which this buyer / contact person belongs..</param>
        /// <param name="retailTransactionCustomerAccountList">list of customer accounts.</param>
        /// <param name="retailTransactionCustomerGroupAssignmentList">list of customer groups.</param>
        /// <param name="retailTransactionCustomerContactMethodList">list of contact methods (address, phone, mail, ...).</param>
        /// <param name="retailTransactionCustomerIdentificationList">list of customer identitfication numbers.</param>
        /// <param name="organizationName">An ORGANIZATION&#39;s legal trade name..</param>
        /// <param name="xxcustom05">Customizable information.</param>
        /// <param name="xxcustom03">Customizable information.</param>
        /// <param name="xxcustom02">Customizable information.</param>
        /// <param name="xxcustom04">Customizable information.</param>
        /// <param name="xxcustom01">Customizable information.</param>
        public ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomer(ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerKey key = default(ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerKey), string genderType = default(string), int? birthDayNumber = default(int?), int? birthMonthNumber = default(int?), int? birthYearNumber = default(int?), string addressTypeDescription = default(string), bool? genericFlag = default(bool?), string businessDescription = default(string), string customerIDEntryMethodCode = default(string), string firstName = default(string), string lastName = default(string), string preferredReceiptPrintoutTypeCode = default(string), string parentCustomerID = default(string), string parentCustomerName1 = default(string), string parentCustomerName2 = default(string), List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerAccount> retailTransactionCustomerAccountList = default(List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerAccount>), List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerGroupAssignment> retailTransactionCustomerGroupAssignmentList = default(List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerGroupAssignment>), List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerContactMethod> retailTransactionCustomerContactMethodList = default(List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerContactMethod>), List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerIdentification> retailTransactionCustomerIdentificationList = default(List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerIdentification>), string organizationName = default(string), string xxcustom05 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom01 = default(string))
        {
            // to ensure "key" is required (not null)
            if (key == null)
            {
                throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomer and cannot be null");
            }
            else
            {
                this.Key = key;
            }
            // to ensure "genericFlag" is required (not null)
            if (genericFlag == null)
            {
                throw new InvalidDataException("genericFlag is a required property for ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomer and cannot be null");
            }
            else
            {
                this.GenericFlag = genericFlag;
            }
            this.GenderType = genderType;
            this.BirthDayNumber = birthDayNumber;
            this.BirthMonthNumber = birthMonthNumber;
            this.BirthYearNumber = birthYearNumber;
            this.AddressTypeDescription = addressTypeDescription;
            this.BusinessDescription = businessDescription;
            this.CustomerIDEntryMethodCode = customerIDEntryMethodCode;
            this.FirstName = firstName;
            this.LastName = lastName;
            this.PreferredReceiptPrintoutTypeCode = preferredReceiptPrintoutTypeCode;
            this.ParentCustomerID = parentCustomerID;
            this.ParentCustomerName1 = parentCustomerName1;
            this.ParentCustomerName2 = parentCustomerName2;
            this.RetailTransactionCustomerAccountList = retailTransactionCustomerAccountList;
            this.RetailTransactionCustomerGroupAssignmentList = retailTransactionCustomerGroupAssignmentList;
            this.RetailTransactionCustomerContactMethodList = retailTransactionCustomerContactMethodList;
            this.RetailTransactionCustomerIdentificationList = retailTransactionCustomerIdentificationList;
            this.OrganizationName = organizationName;
            this.Xxcustom05 = xxcustom05;
            this.Xxcustom03 = xxcustom03;
            this.Xxcustom02 = xxcustom02;
            this.Xxcustom04 = xxcustom04;
            this.Xxcustom01 = xxcustom01;
        }
        
        /// <summary>
        /// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
        /// </summary>
        /// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
        [DataMember(Name="key", EmitDefaultValue=false)]
        public ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerKey Key { get; set; }

        /// <summary>
        /// A code for specifying a persons gender. 
        /// </summary>
        /// <value>A code for specifying a persons gender. </value>
        [DataMember(Name="genderType", EmitDefaultValue=false)]
        public string GenderType { get; set; }

        /// <summary>
        /// A number in the range 1-31denoting the day of the month part of the Person&#39;s date of birth. 
        /// </summary>
        /// <value>A number in the range 1-31denoting the day of the month part of the Person&#39;s date of birth. </value>
        [DataMember(Name="birthDayNumber", EmitDefaultValue=false)]
        public int? BirthDayNumber { get; set; }

        /// <summary>
        /// A number in the range 1-12 denoting the month part of the Person&#39;s date of birth. 
        /// </summary>
        /// <value>A number in the range 1-12 denoting the month part of the Person&#39;s date of birth. </value>
        [DataMember(Name="birthMonthNumber", EmitDefaultValue=false)]
        public int? BirthMonthNumber { get; set; }

        /// <summary>
        /// The year part of the Person&#39;s date of birth. 
        /// </summary>
        /// <value>The year part of the Person&#39;s date of birth. </value>
        [DataMember(Name="birthYearNumber", EmitDefaultValue=false)]
        public int? BirthYearNumber { get; set; }

        /// <summary>
        /// The description of the customer type code
        /// </summary>
        /// <value>The description of the customer type code</value>
        [DataMember(Name="addressTypeDescription", EmitDefaultValue=false)]
        public string AddressTypeDescription { get; set; }

        /// <summary>
        /// If true, the customer is a dummy/unknown customer 
        /// </summary>
        /// <value>If true, the customer is a dummy/unknown customer </value>
        [DataMember(Name="genericFlag", EmitDefaultValue=false)]
        public bool? GenericFlag { get; set; }

        /// <summary>
        /// The description of the business of the customer; this information is e.g. to be printed on invoices in Greece due to tax law requirements 
        /// </summary>
        /// <value>The description of the business of the customer; this information is e.g. to be printed on invoices in Greece due to tax law requirements </value>
        [DataMember(Name="businessDescription", EmitDefaultValue=false)]
        public string BusinessDescription { get; set; }

        /// <summary>
        /// A code that describes how this customer&#39;s identification is being entered (e.g. it is scanned, keyed, etc.) 
        /// </summary>
        /// <value>A code that describes how this customer&#39;s identification is being entered (e.g. it is scanned, keyed, etc.) </value>
        [DataMember(Name="customerIDEntryMethodCode", EmitDefaultValue=false)]
        public string CustomerIDEntryMethodCode { get; set; }

        /// <summary>
        /// A person&#39;s first name.
        /// </summary>
        /// <value>A person&#39;s first name.</value>
        [DataMember(Name="firstName", EmitDefaultValue=false)]
        public string FirstName { get; set; }

        /// <summary>
        /// A person&#39;s last name.
        /// </summary>
        /// <value>A person&#39;s last name.</value>
        [DataMember(Name="lastName", EmitDefaultValue=false)]
        public string LastName { get; set; }

        /// <summary>
        /// Defines the preferred printout settings for the customer
        /// </summary>
        /// <value>Defines the preferred printout settings for the customer</value>
        [DataMember(Name="preferredReceiptPrintoutTypeCode", EmitDefaultValue=false)]
        public string PreferredReceiptPrintoutTypeCode { get; set; }

        /// <summary>
        /// Number of the customer to which this buyer / contact person belongs.
        /// </summary>
        /// <value>Number of the customer to which this buyer / contact person belongs.</value>
        [DataMember(Name="parentCustomerID", EmitDefaultValue=false)]
        public string ParentCustomerID { get; set; }

        /// <summary>
        /// First name line of the customer to which this buyer / contact person belongs.
        /// </summary>
        /// <value>First name line of the customer to which this buyer / contact person belongs.</value>
        [DataMember(Name="parentCustomerName1", EmitDefaultValue=false)]
        public string ParentCustomerName1 { get; set; }

        /// <summary>
        /// Second name line of the customer to which this buyer / contact person belongs.
        /// </summary>
        /// <value>Second name line of the customer to which this buyer / contact person belongs.</value>
        [DataMember(Name="parentCustomerName2", EmitDefaultValue=false)]
        public string ParentCustomerName2 { get; set; }

        /// <summary>
        /// list of customer accounts
        /// </summary>
        /// <value>list of customer accounts</value>
        [DataMember(Name="retailTransactionCustomerAccountList", EmitDefaultValue=false)]
        public List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerAccount> RetailTransactionCustomerAccountList { get; set; }

        /// <summary>
        /// list of customer groups
        /// </summary>
        /// <value>list of customer groups</value>
        [DataMember(Name="retailTransactionCustomerGroupAssignmentList", EmitDefaultValue=false)]
        public List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerGroupAssignment> RetailTransactionCustomerGroupAssignmentList { get; set; }

        /// <summary>
        /// list of contact methods (address, phone, mail, ...)
        /// </summary>
        /// <value>list of contact methods (address, phone, mail, ...)</value>
        [DataMember(Name="retailTransactionCustomerContactMethodList", EmitDefaultValue=false)]
        public List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerContactMethod> RetailTransactionCustomerContactMethodList { get; set; }

        /// <summary>
        /// list of customer identitfication numbers
        /// </summary>
        /// <value>list of customer identitfication numbers</value>
        [DataMember(Name="retailTransactionCustomerIdentificationList", EmitDefaultValue=false)]
        public List<ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomerIdentification> RetailTransactionCustomerIdentificationList { get; set; }

        /// <summary>
        /// An ORGANIZATION&#39;s legal trade name.
        /// </summary>
        /// <value>An ORGANIZATION&#39;s legal trade name.</value>
        [DataMember(Name="organizationName", EmitDefaultValue=false)]
        public string OrganizationName { get; set; }

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

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

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

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

        /// <summary>
        /// Customizable information
        /// </summary>
        /// <value>Customizable information</value>
        [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 ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomer {\n");
            sb.Append("  Key: ").Append(Key).Append("\n");
            sb.Append("  GenderType: ").Append(GenderType).Append("\n");
            sb.Append("  BirthDayNumber: ").Append(BirthDayNumber).Append("\n");
            sb.Append("  BirthMonthNumber: ").Append(BirthMonthNumber).Append("\n");
            sb.Append("  BirthYearNumber: ").Append(BirthYearNumber).Append("\n");
            sb.Append("  AddressTypeDescription: ").Append(AddressTypeDescription).Append("\n");
            sb.Append("  GenericFlag: ").Append(GenericFlag).Append("\n");
            sb.Append("  BusinessDescription: ").Append(BusinessDescription).Append("\n");
            sb.Append("  CustomerIDEntryMethodCode: ").Append(CustomerIDEntryMethodCode).Append("\n");
            sb.Append("  FirstName: ").Append(FirstName).Append("\n");
            sb.Append("  LastName: ").Append(LastName).Append("\n");
            sb.Append("  PreferredReceiptPrintoutTypeCode: ").Append(PreferredReceiptPrintoutTypeCode).Append("\n");
            sb.Append("  ParentCustomerID: ").Append(ParentCustomerID).Append("\n");
            sb.Append("  ParentCustomerName1: ").Append(ParentCustomerName1).Append("\n");
            sb.Append("  ParentCustomerName2: ").Append(ParentCustomerName2).Append("\n");
            sb.Append("  RetailTransactionCustomerAccountList: ").Append(RetailTransactionCustomerAccountList).Append("\n");
            sb.Append("  RetailTransactionCustomerGroupAssignmentList: ").Append(RetailTransactionCustomerGroupAssignmentList).Append("\n");
            sb.Append("  RetailTransactionCustomerContactMethodList: ").Append(RetailTransactionCustomerContactMethodList).Append("\n");
            sb.Append("  RetailTransactionCustomerIdentificationList: ").Append(RetailTransactionCustomerIdentificationList).Append("\n");
            sb.Append("  OrganizationName: ").Append(OrganizationName).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 ComGkSoftwareGkrApiTxpoolDtoRetailTransactionCustomer);
        }

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

            return 
                (
                    this.Key == input.Key ||
                    (this.Key != null &&
                    this.Key.Equals(input.Key))
                ) && 
                (
                    this.GenderType == input.GenderType ||
                    (this.GenderType != null &&
                    this.GenderType.Equals(input.GenderType))
                ) && 
                (
                    this.BirthDayNumber == input.BirthDayNumber ||
                    (this.BirthDayNumber != null &&
                    this.BirthDayNumber.Equals(input.BirthDayNumber))
                ) && 
                (
                    this.BirthMonthNumber == input.BirthMonthNumber ||
                    (this.BirthMonthNumber != null &&
                    this.BirthMonthNumber.Equals(input.BirthMonthNumber))
                ) && 
                (
                    this.BirthYearNumber == input.BirthYearNumber ||
                    (this.BirthYearNumber != null &&
                    this.BirthYearNumber.Equals(input.BirthYearNumber))
                ) && 
                (
                    this.AddressTypeDescription == input.AddressTypeDescription ||
                    (this.AddressTypeDescription != null &&
                    this.AddressTypeDescription.Equals(input.AddressTypeDescription))
                ) && 
                (
                    this.GenericFlag == input.GenericFlag ||
                    (this.GenericFlag != null &&
                    this.GenericFlag.Equals(input.GenericFlag))
                ) && 
                (
                    this.BusinessDescription == input.BusinessDescription ||
                    (this.BusinessDescription != null &&
                    this.BusinessDescription.Equals(input.BusinessDescription))
                ) && 
                (
                    this.CustomerIDEntryMethodCode == input.CustomerIDEntryMethodCode ||
                    (this.CustomerIDEntryMethodCode != null &&
                    this.CustomerIDEntryMethodCode.Equals(input.CustomerIDEntryMethodCode))
                ) && 
                (
                    this.FirstName == input.FirstName ||
                    (this.FirstName != null &&
                    this.FirstName.Equals(input.FirstName))
                ) && 
                (
                    this.LastName == input.LastName ||
                    (this.LastName != null &&
                    this.LastName.Equals(input.LastName))
                ) && 
                (
                    this.PreferredReceiptPrintoutTypeCode == input.PreferredReceiptPrintoutTypeCode ||
                    (this.PreferredReceiptPrintoutTypeCode != null &&
                    this.PreferredReceiptPrintoutTypeCode.Equals(input.PreferredReceiptPrintoutTypeCode))
                ) && 
                (
                    this.ParentCustomerID == input.ParentCustomerID ||
                    (this.ParentCustomerID != null &&
                    this.ParentCustomerID.Equals(input.ParentCustomerID))
                ) && 
                (
                    this.ParentCustomerName1 == input.ParentCustomerName1 ||
                    (this.ParentCustomerName1 != null &&
                    this.ParentCustomerName1.Equals(input.ParentCustomerName1))
                ) && 
                (
                    this.ParentCustomerName2 == input.ParentCustomerName2 ||
                    (this.ParentCustomerName2 != null &&
                    this.ParentCustomerName2.Equals(input.ParentCustomerName2))
                ) && 
                (
                    this.RetailTransactionCustomerAccountList == input.RetailTransactionCustomerAccountList ||
                    this.RetailTransactionCustomerAccountList != null &&
                    this.RetailTransactionCustomerAccountList.SequenceEqual(input.RetailTransactionCustomerAccountList)
                ) && 
                (
                    this.RetailTransactionCustomerGroupAssignmentList == input.RetailTransactionCustomerGroupAssignmentList ||
                    this.RetailTransactionCustomerGroupAssignmentList != null &&
                    this.RetailTransactionCustomerGroupAssignmentList.SequenceEqual(input.RetailTransactionCustomerGroupAssignmentList)
                ) && 
                (
                    this.RetailTransactionCustomerContactMethodList == input.RetailTransactionCustomerContactMethodList ||
                    this.RetailTransactionCustomerContactMethodList != null &&
                    this.RetailTransactionCustomerContactMethodList.SequenceEqual(input.RetailTransactionCustomerContactMethodList)
                ) && 
                (
                    this.RetailTransactionCustomerIdentificationList == input.RetailTransactionCustomerIdentificationList ||
                    this.RetailTransactionCustomerIdentificationList != null &&
                    this.RetailTransactionCustomerIdentificationList.SequenceEqual(input.RetailTransactionCustomerIdentificationList)
                ) && 
                (
                    this.OrganizationName == input.OrganizationName ||
                    (this.OrganizationName != null &&
                    this.OrganizationName.Equals(input.OrganizationName))
                ) && 
                (
                    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.Key != null)
                    hashCode = hashCode * 59 + this.Key.GetHashCode();
                if (this.GenderType != null)
                    hashCode = hashCode * 59 + this.GenderType.GetHashCode();
                if (this.BirthDayNumber != null)
                    hashCode = hashCode * 59 + this.BirthDayNumber.GetHashCode();
                if (this.BirthMonthNumber != null)
                    hashCode = hashCode * 59 + this.BirthMonthNumber.GetHashCode();
                if (this.BirthYearNumber != null)
                    hashCode = hashCode * 59 + this.BirthYearNumber.GetHashCode();
                if (this.AddressTypeDescription != null)
                    hashCode = hashCode * 59 + this.AddressTypeDescription.GetHashCode();
                if (this.GenericFlag != null)
                    hashCode = hashCode * 59 + this.GenericFlag.GetHashCode();
                if (this.BusinessDescription != null)
                    hashCode = hashCode * 59 + this.BusinessDescription.GetHashCode();
                if (this.CustomerIDEntryMethodCode != null)
                    hashCode = hashCode * 59 + this.CustomerIDEntryMethodCode.GetHashCode();
                if (this.FirstName != null)
                    hashCode = hashCode * 59 + this.FirstName.GetHashCode();
                if (this.LastName != null)
                    hashCode = hashCode * 59 + this.LastName.GetHashCode();
                if (this.PreferredReceiptPrintoutTypeCode != null)
                    hashCode = hashCode * 59 + this.PreferredReceiptPrintoutTypeCode.GetHashCode();
                if (this.ParentCustomerID != null)
                    hashCode = hashCode * 59 + this.ParentCustomerID.GetHashCode();
                if (this.ParentCustomerName1 != null)
                    hashCode = hashCode * 59 + this.ParentCustomerName1.GetHashCode();
                if (this.ParentCustomerName2 != null)
                    hashCode = hashCode * 59 + this.ParentCustomerName2.GetHashCode();
                if (this.RetailTransactionCustomerAccountList != null)
                    hashCode = hashCode * 59 + this.RetailTransactionCustomerAccountList.GetHashCode();
                if (this.RetailTransactionCustomerGroupAssignmentList != null)
                    hashCode = hashCode * 59 + this.RetailTransactionCustomerGroupAssignmentList.GetHashCode();
                if (this.RetailTransactionCustomerContactMethodList != null)
                    hashCode = hashCode * 59 + this.RetailTransactionCustomerContactMethodList.GetHashCode();
                if (this.RetailTransactionCustomerIdentificationList != null)
                    hashCode = hashCode * 59 + this.RetailTransactionCustomerIdentificationList.GetHashCode();
                if (this.OrganizationName != null)
                    hashCode = hashCode * 59 + this.OrganizationName.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;
        }
    }

}
