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

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

            return
                ((
                     Creditor == other.Creditor ||
                     Creditor != null &&
                     Creditor.Equals(other.Creditor)
                     ) &&
                 (
                     MandateId == other.MandateId ||
                     MandateId != null &&
                     MandateId.Equals(other.MandateId)
                 ) &&
                 (
                     BankAccountIban == other.BankAccountIban ||
                     BankAccountIban != null &&
                     BankAccountIban.Equals(other.BankAccountIban)
                 ) &&
                 (
                     CustomerContractIdentifier == other.CustomerContractIdentifier ||
                     CustomerContractIdentifier != null &&
                     CustomerContractIdentifier.Equals(other.CustomerContractIdentifier)
                 ) &&
                 (
                     Debtor == other.Debtor ||
                     Debtor != null &&
                     Debtor.Equals(other.Debtor)
                 ) &&
                 (
                     IsRecurring == other.IsRecurring ||
                     IsRecurring != null &&
                     IsRecurring.Equals(other.IsRecurring)
                 ) &&
                 (
                     MandateApproval == other.MandateApproval ||
                     MandateApproval != null &&
                     MandateApproval.Equals(other.MandateApproval)
                 ) &&
                 (
                     PreNotification == other.PreNotification ||
                     PreNotification != null &&
                     PreNotification.Equals(other.PreNotification)
                 ));
        }
        /// <summary>
        /// Returns true if MandateCustomer instances are equal
        /// </summary>
        /// <param name="other">Instance of MandateCustomer to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(MandateCustomer other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     BankAccountIban == other.BankAccountIban ||
                     BankAccountIban != null &&
                     BankAccountIban.Equals(other.BankAccountIban)
                     ) &&
                 (
                     CompanyName == other.CompanyName ||
                     CompanyName != null &&
                     CompanyName.Equals(other.CompanyName)
                 ) &&
                 (
                     ContactDetails == other.ContactDetails ||
                     ContactDetails != null &&
                     ContactDetails.Equals(other.ContactDetails)
                 ) &&
                 (
                     MandateAddress == other.MandateAddress ||
                     MandateAddress != null &&
                     MandateAddress.Equals(other.MandateAddress)
                 ) &&
                 (
                     PersonalInformation == other.PersonalInformation ||
                     PersonalInformation != null &&
                     PersonalInformation.Equals(other.PersonalInformation)
                 ));
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Returns true if EInvoicePaymentProduct9000SpecificInput instances are equal
        /// </summary>
        /// <param name="other">Instance of EInvoicePaymentProduct9000SpecificInput to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(EInvoicePaymentProduct9000SpecificInput other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     BankAccountIban == other.BankAccountIban ||
                     BankAccountIban != null &&
                     BankAccountIban.Equals(other.BankAccountIban)
                     ) &&
                 (
                     InstallmentId == other.InstallmentId ||
                     InstallmentId != null &&
                     InstallmentId.Equals(other.InstallmentId)
                 ));
        }