/// <summary>
        /// Returns true if Organization instances are equal
        /// </summary>
        /// <param name="other">Instance of Organization to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Organization other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     TradingName == other.TradingName ||
                     TradingName != null &&
                     TradingName.Equals(other.TradingName)
                 ) &&
                 (
                     Href == other.Href ||
                     Href != null &&
                     Href.Equals(other.Href)
                 ) &&
                 (
                     IsLegalEntity == other.IsLegalEntity ||
                     IsLegalEntity != null &&
                     IsLegalEntity.Equals(other.IsLegalEntity)
                 ) &&
                 (
                     OrganizationType == other.OrganizationType ||
                     OrganizationType != null &&
                     OrganizationType.Equals(other.OrganizationType)
                 ) &&
                 (
                     NameType == other.NameType ||
                     NameType != null &&
                     NameType.Equals(other.NameType)
                 ) &&
                 (
                     Status == other.Status ||
                     Status != null &&
                     Status.Equals(other.Status)
                 ));
        }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (TradingName != null)
         {
             hashCode = hashCode * 59 + TradingName.GetHashCode();
         }
         if (Href != null)
         {
             hashCode = hashCode * 59 + Href.GetHashCode();
         }
         if (IsLegalEntity != null)
         {
             hashCode = hashCode * 59 + IsLegalEntity.GetHashCode();
         }
         if (OrganizationType != null)
         {
             hashCode = hashCode * 59 + OrganizationType.GetHashCode();
         }
         if (NameType != null)
         {
             hashCode = hashCode * 59 + NameType.GetHashCode();
         }
         if (Status != null)
         {
             hashCode = hashCode * 59 + Status.GetHashCode();
         }
         return(hashCode);
     }
 }