public override int GetHashCode() { int hashCode = -553282521; if (Action != null) { hashCode += Action.GetHashCode(); } if (ShippedTrackingNumber != null) { hashCode += ShippedTrackingNumber.GetHashCode(); } if (CompletedNote != null) { hashCode += CompletedNote.GetHashCode(); } if (RefundedNote != null) { hashCode += RefundedNote.GetHashCode(); } if (CanceledNote != null) { hashCode += CanceledNote.GetHashCode(); } return(hashCode); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj == this) { return(true); } return(obj is V1UpdateOrderRequest other && ((Action == null && other.Action == null) || (Action?.Equals(other.Action) == true)) && ((ShippedTrackingNumber == null && other.ShippedTrackingNumber == null) || (ShippedTrackingNumber?.Equals(other.ShippedTrackingNumber) == true)) && ((CompletedNote == null && other.CompletedNote == null) || (CompletedNote?.Equals(other.CompletedNote) == true)) && ((RefundedNote == null && other.RefundedNote == null) || (RefundedNote?.Equals(other.RefundedNote) == true)) && ((CanceledNote == null && other.CanceledNote == null) || (CanceledNote?.Equals(other.CanceledNote) == true))); }