/// <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 (CompanyName != null)
         {
             hashCode = hashCode * 59 + CompanyName.GetHashCode();
         }
         if (ContactDetails != null)
         {
             hashCode = hashCode * 59 + ContactDetails.GetHashCode();
         }
         if (MandateAddress != null)
         {
             hashCode = hashCode * 59 + MandateAddress.GetHashCode();
         }
         if (PersonalInformation != null)
         {
             hashCode = hashCode * 59 + PersonalInformation.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <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>
 /// 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)
                 ));
        }
        /// <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)
                 ));
        }
Exemple #6
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 (BankAccountIban != null)
         {
             hashCode = hashCode * 59 + BankAccountIban.GetHashCode();
         }
         if (InstallmentId != null)
         {
             hashCode = hashCode * 59 + InstallmentId.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 (Creditor != null)
         {
             hashCode = hashCode * 59 + Creditor.GetHashCode();
         }
         if (MandateId != null)
         {
             hashCode = hashCode * 59 + MandateId.GetHashCode();
         }
         if (BankAccountIban != null)
         {
             hashCode = hashCode * 59 + BankAccountIban.GetHashCode();
         }
         if (CustomerContractIdentifier != null)
         {
             hashCode = hashCode * 59 + CustomerContractIdentifier.GetHashCode();
         }
         if (Debtor != null)
         {
             hashCode = hashCode * 59 + Debtor.GetHashCode();
         }
         if (IsRecurring != null)
         {
             hashCode = hashCode * 59 + IsRecurring.GetHashCode();
         }
         if (MandateApproval != null)
         {
             hashCode = hashCode * 59 + MandateApproval.GetHashCode();
         }
         if (PreNotification != null)
         {
             hashCode = hashCode * 59 + PreNotification.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <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)
                 ));
        }
Exemple #9
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)
                 ));
        }