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