public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is UpdateOrderRequest other &&
                   ((Order == null && other.Order == null) || (Order?.Equals(other.Order) == true)) &&
                   ((FieldsToClear == null && other.FieldsToClear == null) || (FieldsToClear?.Equals(other.FieldsToClear) == true)) &&
                   ((IdempotencyKey == null && other.IdempotencyKey == null) || (IdempotencyKey?.Equals(other.IdempotencyKey) == true)));
        }
        public override int GetHashCode()
        {
            int hashCode = -1953116001;

            if (Order != null)
            {
                hashCode += Order.GetHashCode();
            }

            if (FieldsToClear != null)
            {
                hashCode += FieldsToClear.GetHashCode();
            }

            if (IdempotencyKey != null)
            {
                hashCode += IdempotencyKey.GetHashCode();
            }

            return(hashCode);
        }