func (o *GetPrivateGetOrderStateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	qrOrderID := o.OrderID
	qOrderID := qrOrderID
	if qOrderID != "" {
		if err := r.SetQueryParam("order_id", qOrderID); err != nil {
			return err
		}
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package operations
import (
	"context"
	"net/http"
	"time"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	cr "github.com/go-openapi/runtime/client"
	strfmt "github.com/go-openapi/strfmt"
)
func NewGetPrivateGetOrderStateParams() *GetPrivateGetOrderStateParams {
	var ()
	return &GetPrivateGetOrderStateParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetPrivateGetOrderStateParamsWithTimeout(timeout time.Duration) *GetPrivateGetOrderStateParams {
	var ()
	return &GetPrivateGetOrderStateParams{
		timeout: timeout,
	}
}
func NewGetPrivateGetOrderStateParamsWithContext(ctx context.Context) *GetPrivateGetOrderStateParams {
	var ()
	return &GetPrivateGetOrderStateParams{
		Context: ctx,
	}
}
func NewGetPrivateGetOrderStateParamsWithHTTPClient(client *http.Client) *GetPrivateGetOrderStateParams {
	var ()
	return &GetPrivateGetOrderStateParams{
		HTTPClient: client,
	}
}
type GetPrivateGetOrderStateParams struct {
	OrderID string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetPrivateGetOrderStateParams) WithTimeout(timeout time.Duration) *GetPrivateGetOrderStateParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetPrivateGetOrderStateParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetPrivateGetOrderStateParams) WithContext(ctx context.Context) *GetPrivateGetOrderStateParams {
	o.SetContext(ctx)
	return o
}
func (o *GetPrivateGetOrderStateParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetPrivateGetOrderStateParams) WithHTTPClient(client *http.Client) *GetPrivateGetOrderStateParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetPrivateGetOrderStateParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetPrivateGetOrderStateParams) WithOrderID(orderID string) *GetPrivateGetOrderStateParams {
	o.SetOrderID(orderID)
	return o
}
func (o *GetPrivateGetOrderStateParams) SetOrderID(orderID string) {
	o.OrderID = orderID
}