func (o *GetPrivateGetDepositsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	if o.Count != nil {
		var qrCount int64
		if o.Count != nil {
			qrCount = *o.Count
		}
		qCount := swag.FormatInt64(qrCount)
		if qCount != "" {
			if err := r.SetQueryParam("count", qCount); err != nil {
				return err
			}
		}
	}
	qrCurrency := o.Currency
	qCurrency := qrCurrency
	if qCurrency != "" {
		if err := r.SetQueryParam("currency", qCurrency); err != nil {
			return err
		}
	}
	if o.Offset != nil {
		var qrOffset int64
		if o.Offset != nil {
			qrOffset = *o.Offset
		}
		qOffset := swag.FormatInt64(qrOffset)
		if qOffset != "" {
			if err := r.SetQueryParam("offset", qOffset); 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"
	"github.com/go-openapi/swag"
	strfmt "github.com/go-openapi/strfmt"
)
func NewGetPrivateGetDepositsParams() *GetPrivateGetDepositsParams {
	var ()
	return &GetPrivateGetDepositsParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetPrivateGetDepositsParamsWithTimeout(timeout time.Duration) *GetPrivateGetDepositsParams {
	var ()
	return &GetPrivateGetDepositsParams{
		timeout: timeout,
	}
}
func NewGetPrivateGetDepositsParamsWithContext(ctx context.Context) *GetPrivateGetDepositsParams {
	var ()
	return &GetPrivateGetDepositsParams{
		Context: ctx,
	}
}
func NewGetPrivateGetDepositsParamsWithHTTPClient(client *http.Client) *GetPrivateGetDepositsParams {
	var ()
	return &GetPrivateGetDepositsParams{
		HTTPClient: client,
	}
}
type GetPrivateGetDepositsParams struct {
	Count *int64
	Currency string
	Offset *int64
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetPrivateGetDepositsParams) WithTimeout(timeout time.Duration) *GetPrivateGetDepositsParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetPrivateGetDepositsParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetPrivateGetDepositsParams) WithContext(ctx context.Context) *GetPrivateGetDepositsParams {
	o.SetContext(ctx)
	return o
}
func (o *GetPrivateGetDepositsParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetPrivateGetDepositsParams) WithHTTPClient(client *http.Client) *GetPrivateGetDepositsParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetPrivateGetDepositsParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetPrivateGetDepositsParams) WithCount(count *int64) *GetPrivateGetDepositsParams {
	o.SetCount(count)
	return o
}
func (o *GetPrivateGetDepositsParams) SetCount(count *int64) {
	o.Count = count
}
func (o *GetPrivateGetDepositsParams) WithCurrency(currency string) *GetPrivateGetDepositsParams {
	o.SetCurrency(currency)
	return o
}
func (o *GetPrivateGetDepositsParams) SetCurrency(currency string) {
	o.Currency = currency
}
func (o *GetPrivateGetDepositsParams) WithOffset(offset *int64) *GetPrivateGetDepositsParams {
	o.SetOffset(offset)
	return o
}
func (o *GetPrivateGetDepositsParams) SetOffset(offset *int64) {
	o.Offset = offset
}