/// <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 (PayeeUType != null)
         {
             hashCode = hashCode * 59 + PayeeUType.GetHashCode();
         }
         if (Domestic != null)
         {
             hashCode = hashCode * 59 + Domestic.GetHashCode();
         }
         if (Biller != null)
         {
             hashCode = hashCode * 59 + Biller.GetHashCode();
         }
         if (International != null)
         {
             hashCode = hashCode * 59 + International.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if BankingPayeeDetail instances are equal
        /// </summary>
        /// <param name="other">Instance of BankingPayeeDetail to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(BankingPayeeDetail other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     PayeeUType == other.PayeeUType ||
                     PayeeUType != null &&
                     PayeeUType.Equals(other.PayeeUType)
                     ) &&
                 (
                     Domestic == other.Domestic ||
                     Domestic != null &&
                     Domestic.Equals(other.Domestic)
                 ) &&
                 (
                     Biller == other.Biller ||
                     Biller != null &&
                     Biller.Equals(other.Biller)
                 ) &&
                 (
                     International == other.International ||
                     International != null &&
                     International.Equals(other.International)
                 ));
        }