func (o *GetPrivateCreateDepositAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	qrCurrency := o.Currency
	qCurrency := qrCurrency
	if qCurrency != "" {
		if err := r.SetQueryParam("currency", qCurrency); 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 NewGetPrivateCreateDepositAddressParams() *GetPrivateCreateDepositAddressParams {
	var ()
	return &GetPrivateCreateDepositAddressParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetPrivateCreateDepositAddressParamsWithTimeout(timeout time.Duration) *GetPrivateCreateDepositAddressParams {
	var ()
	return &GetPrivateCreateDepositAddressParams{
		timeout: timeout,
	}
}
func NewGetPrivateCreateDepositAddressParamsWithContext(ctx context.Context) *GetPrivateCreateDepositAddressParams {
	var ()
	return &GetPrivateCreateDepositAddressParams{
		Context: ctx,
	}
}
func NewGetPrivateCreateDepositAddressParamsWithHTTPClient(client *http.Client) *GetPrivateCreateDepositAddressParams {
	var ()
	return &GetPrivateCreateDepositAddressParams{
		HTTPClient: client,
	}
}
type GetPrivateCreateDepositAddressParams struct {
	Currency string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetPrivateCreateDepositAddressParams) WithTimeout(timeout time.Duration) *GetPrivateCreateDepositAddressParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetPrivateCreateDepositAddressParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetPrivateCreateDepositAddressParams) WithContext(ctx context.Context) *GetPrivateCreateDepositAddressParams {
	o.SetContext(ctx)
	return o
}
func (o *GetPrivateCreateDepositAddressParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetPrivateCreateDepositAddressParams) WithHTTPClient(client *http.Client) *GetPrivateCreateDepositAddressParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetPrivateCreateDepositAddressParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetPrivateCreateDepositAddressParams) WithCurrency(currency string) *GetPrivateCreateDepositAddressParams {
	o.SetCurrency(currency)
	return o
}
func (o *GetPrivateCreateDepositAddressParams) SetCurrency(currency string) {
	o.Currency = currency
}