public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is Dispute other && ((DisputeId == null && other.DisputeId == null) || (DisputeId?.Equals(other.DisputeId) == true)) && ((AmountMoney == null && other.AmountMoney == null) || (AmountMoney?.Equals(other.AmountMoney) == true)) && ((Reason == null && other.Reason == null) || (Reason?.Equals(other.Reason) == true)) && ((State == null && other.State == null) || (State?.Equals(other.State) == true)) && ((DueAt == null && other.DueAt == null) || (DueAt?.Equals(other.DueAt) == true)) && ((DisputedPayment == null && other.DisputedPayment == null) || (DisputedPayment?.Equals(other.DisputedPayment) == true)) && ((EvidenceIds == null && other.EvidenceIds == null) || (EvidenceIds?.Equals(other.EvidenceIds) == true)) && ((CardBrand == null && other.CardBrand == null) || (CardBrand?.Equals(other.CardBrand) == true)) && ((CreatedAt == null && other.CreatedAt == null) || (CreatedAt?.Equals(other.CreatedAt) == true)) && ((UpdatedAt == null && other.UpdatedAt == null) || (UpdatedAt?.Equals(other.UpdatedAt) == true)) && ((BrandDisputeId == null && other.BrandDisputeId == null) || (BrandDisputeId?.Equals(other.BrandDisputeId) == true)) && ((ReportedDate == null && other.ReportedDate == null) || (ReportedDate?.Equals(other.ReportedDate) == true)) && ((Version == null && other.Version == null) || (Version?.Equals(other.Version) == true)) && ((LocationId == null && other.LocationId == null) || (LocationId?.Equals(other.LocationId) == true))); }
public override int GetHashCode() { int hashCode = 1993475725; if (DisputeId != null) { hashCode += DisputeId.GetHashCode(); } if (AmountMoney != null) { hashCode += AmountMoney.GetHashCode(); } if (Reason != null) { hashCode += Reason.GetHashCode(); } if (State != null) { hashCode += State.GetHashCode(); } if (DueAt != null) { hashCode += DueAt.GetHashCode(); } if (DisputedPayment != null) { hashCode += DisputedPayment.GetHashCode(); } if (EvidenceIds != null) { hashCode += EvidenceIds.GetHashCode(); } if (CardBrand != null) { hashCode += CardBrand.GetHashCode(); } if (CreatedAt != null) { hashCode += CreatedAt.GetHashCode(); } if (UpdatedAt != null) { hashCode += UpdatedAt.GetHashCode(); } if (BrandDisputeId != null) { hashCode += BrandDisputeId.GetHashCode(); } if (ReportedDate != null) { hashCode += ReportedDate.GetHashCode(); } if (Version != null) { hashCode += Version.GetHashCode(); } if (LocationId != null) { hashCode += LocationId.GetHashCode(); } return(hashCode); }