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

            return
                ((
                     AuthorisationCode == other.AuthorisationCode ||
                     AuthorisationCode != null &&
                     AuthorisationCode.Equals(other.AuthorisationCode)
                     ) &&
                 (
                     Card == other.Card ||
                     Card != null &&
                     Card.Equals(other.Card)
                 ) &&
                 (
                     FraudResults == other.FraudResults ||
                     FraudResults != null &&
                     FraudResults.Equals(other.FraudResults)
                 ) &&
                 (
                     ThreeDSecureResults == other.ThreeDSecureResults ||
                     ThreeDSecureResults != null &&
                     ThreeDSecureResults.Equals(other.ThreeDSecureResults)
                 ) &&
                 (
                     Token == other.Token ||
                     Token != null &&
                     Token.Equals(other.Token)
                 ));
        }