/// <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)
                 ));
        }
Ejemplo n.º 2
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)
                 ));
        }