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

            return
                ((
                     BankAccountIban == other.BankAccountIban ||
                     BankAccountIban != null &&
                     BankAccountIban.Equals(other.BankAccountIban)
                     ) &&
                 (
                     FraudResults == other.FraudResults ||
                     FraudResults != null &&
                     FraudResults.Equals(other.FraudResults)
                 ) &&
                 (
                     PaymentProduct840SpecificOutput == other.PaymentProduct840SpecificOutput ||
                     PaymentProduct840SpecificOutput != null &&
                     PaymentProduct840SpecificOutput.Equals(other.PaymentProduct840SpecificOutput)
                 ) &&
                 (
                     Token == other.Token ||
                     Token != null &&
                     Token.Equals(other.Token)
                 ));
        }
Esempio n. 5
0
        /// <summary>
        /// Returns true if MobilePaymentMethodSpecificOutput instances are equal
        /// </summary>
        /// <param name="other">Instance of MobilePaymentMethodSpecificOutput to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(MobilePaymentMethodSpecificOutput other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     AuthorisationCode == other.AuthorisationCode ||
                     AuthorisationCode != null &&
                     AuthorisationCode.Equals(other.AuthorisationCode)
                     ) &&
                 (
                     FraudResults == other.FraudResults ||
                     FraudResults != null &&
                     FraudResults.Equals(other.FraudResults)
                 ) &&
                 (
                     Network == other.Network ||
                     Network != null &&
                     Network.Equals(other.Network)
                 ) &&
                 (
                     PaymentData == other.PaymentData ||
                     PaymentData != null &&
                     PaymentData.Equals(other.PaymentData)
                 ) &&
                 (
                     ThreeDSecureResults == other.ThreeDSecureResults ||
                     ThreeDSecureResults != null &&
                     ThreeDSecureResults.Equals(other.ThreeDSecureResults)
                 ));
        }
        /// <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)
                 ));
        }
        /// <summary>
        /// Returns true if SepaDirectDebitPaymentMethodSpecificOutput instances are equal
        /// </summary>
        /// <param name="other">Instance of SepaDirectDebitPaymentMethodSpecificOutput to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(SepaDirectDebitPaymentMethodSpecificOutput other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     FraudResults == other.FraudResults ||
                     FraudResults != null &&
                     FraudResults.Equals(other.FraudResults)
                     ) &&
                 (
                     PaymentProduct771SpecificOutput == other.PaymentProduct771SpecificOutput ||
                     PaymentProduct771SpecificOutput != null &&
                     PaymentProduct771SpecificOutput.Equals(other.PaymentProduct771SpecificOutput)
                 ));
        }