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

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

            return
                ((
                     Cavv == other.Cavv ||
                     Cavv != null &&
                     Cavv.Equals(other.Cavv)
                     ) &&
                 (
                     CavvAlgorithm == other.CavvAlgorithm ||
                     CavvAlgorithm != null &&
                     CavvAlgorithm.Equals(other.CavvAlgorithm)
                 ) &&
                 (
                     Eci == other.Eci ||
                     Eci != null &&
                     Eci.Equals(other.Eci)
                 ) &&
                 (
                     ValidationResult == other.ValidationResult ||
                     ValidationResult != null &&
                     ValidationResult.Equals(other.ValidationResult)
                 ) &&
                 (
                     Xid == other.Xid ||
                     Xid != null &&
                     Xid.Equals(other.Xid)
                 ));
        }