public bool Equals(BankAccountEvent?other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(BankAccountId.Equals(other.BankAccountId) && UnixTimestamp == other.UnixTimestamp); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is V1Settlement other && ((Context == null && other.Context == null) || (Context?.Equals(other.Context) == true)) && ((Id == null && other.Id == null) || (Id?.Equals(other.Id) == true)) && ((Status == null && other.Status == null) || (Status?.Equals(other.Status) == true)) && ((TotalMoney == null && other.TotalMoney == null) || (TotalMoney?.Equals(other.TotalMoney) == true)) && ((InitiatedAt == null && other.InitiatedAt == null) || (InitiatedAt?.Equals(other.InitiatedAt) == true)) && ((BankAccountId == null && other.BankAccountId == null) || (BankAccountId?.Equals(other.BankAccountId) == true)) && ((Entries == null && other.Entries == null) || (Entries?.Equals(other.Entries) == true))); }
/// <summary> /// Returns true if BankAccount instances are equal /// </summary> /// <param name="other">Instance of BankAccount to be compared</param> /// <returns>Boolean</returns> public bool Equals(BankAccount other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( BankAccountId == other.BankAccountId || BankAccountId != null && BankAccountId.Equals(other.BankAccountId) ) && ( Nickname == other.Nickname || Nickname != null && Nickname.Equals(other.Nickname) ) && ( CurrencyId == other.CurrencyId || CurrencyId != null && CurrencyId.Equals(other.CurrencyId) ) && ( AccountHolder == other.AccountHolder || AccountHolder != null && AccountHolder.Equals(other.AccountHolder) ) && ( AccountNumber == other.AccountNumber || AccountNumber != null && AccountNumber.Equals(other.AccountNumber) ) && ( Iban == other.Iban || Iban != null && Iban.Equals(other.Iban) ) && ( BankName == other.BankName || BankName != null && BankName.Equals(other.BankName) ) && ( SortCode == other.SortCode || SortCode != null && SortCode.Equals(other.SortCode) ) && ( RoutingNumber == other.RoutingNumber || RoutingNumber != null && RoutingNumber.Equals(other.RoutingNumber) ) && ( SwiftBic == other.SwiftBic || SwiftBic != null && SwiftBic.Equals(other.SwiftBic) ) && ( IfscCode == other.IfscCode || IfscCode != null && IfscCode.Equals(other.IfscCode) ) && ( RoutingCode == other.RoutingCode || RoutingCode != null && RoutingCode.Equals(other.RoutingCode) ) && ( UserAddressId == other.UserAddressId || UserAddressId != null && UserAddressId.Equals(other.UserAddressId) ) && ( BankAddress == other.BankAddress || BankAddress != null && BankAddress.Equals(other.BankAddress) )); }