/// <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> /// 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(); } return(hashCode); } }
/// <summary> /// Returns true if TokenNonSepaDirectDebitPaymentProduct705SpecificData instances are equal /// </summary> /// <param name="other">Instance of TokenNonSepaDirectDebitPaymentProduct705SpecificData to be compared</param> /// <returns>Boolean</returns> public bool Equals(TokenNonSepaDirectDebitPaymentProduct705SpecificData 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) )); }