orders

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for orders API

func (*Client) GetOpenOrders

func (a *Client) GetOpenOrders(params *GetOpenOrdersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOpenOrdersOK, error)

GetOpenOrders gets open orders

Get current user all open orders

func (*Client) GetOrders

func (a *Client) GetOrders(params *GetOrdersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrdersOK, error)

GetOrders gets orders

Get current user orders filtered on attributes

func (*Client) OrdersBatch

func (a *Client) OrdersBatch(params *OrdersBatchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersBatchCreated, error)
OrdersBatch creates batch of orders

[Experimental] Place a batch of orders<br>

- Valid batch size is between 1-10 order(s)<br> - If basic validation(including signature) fails - all orders will be rejected.<br> - Orders are queued for risk checking independently and failure of one order doesn't affect processing of another order.

func (*Client) OrdersCancel

func (a *Client) OrdersCancel(params *OrdersCancelParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersCancelNoContent, error)

OrdersCancel cancels order

Cancel an existing order

func (*Client) OrdersCancelAll

func (a *Client) OrdersCancelAll(params *OrdersCancelAllParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersCancelAllOK, error)

OrdersCancelAll cancels all open orders

func (*Client) OrdersCancelByClientID

func (a *Client) OrdersCancelByClientID(params *OrdersCancelByClientIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersCancelByClientIDNoContent, error)

OrdersCancelByClientID cancels open order by client order id

func (*Client) OrdersGet

func (a *Client) OrdersGet(params *OrdersGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersGetOK, error)

OrdersGet gets order

Get an order by id. Only return orders in `OPEN` or `NEW` status.

func (*Client) OrdersGetByClientID

func (a *Client) OrdersGetByClientID(params *OrdersGetByClientIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersGetByClientIDOK, error)

OrdersGetByClientID gets order by client id

Get an order by client id. Only returns orders in `OPEN` status.

func (*Client) OrdersModify

func (a *Client) OrdersModify(params *OrdersModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersModifyOK, error)
OrdersModify modifies order

Modify an existing open order by changing its price and/or size.

The modified order maintains its original order ID.

func (*Client) OrdersNew

func (a *Client) OrdersNew(params *OrdersNewParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersNewCreated, error)

OrdersNew creates order

Open a new order

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	GetOpenOrders(params *GetOpenOrdersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOpenOrdersOK, error)

	GetOrders(params *GetOrdersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrdersOK, error)

	OrdersBatch(params *OrdersBatchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersBatchCreated, error)

	OrdersCancel(params *OrdersCancelParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersCancelNoContent, error)

	OrdersCancelAll(params *OrdersCancelAllParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersCancelAllOK, error)

	OrdersCancelByClientID(params *OrdersCancelByClientIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersCancelByClientIDNoContent, error)

	OrdersGet(params *OrdersGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersGetOK, error)

	OrdersGetByClientID(params *OrdersGetByClientIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersGetByClientIDOK, error)

	OrdersModify(params *OrdersModifyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersModifyOK, error)

	OrdersNew(params *OrdersNewParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrdersNewCreated, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new orders API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new orders API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new orders API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type GetOpenOrdersBadRequest

type GetOpenOrdersBadRequest struct {
	Payload *models.ResponsesAPIError
}

GetOpenOrdersBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetOpenOrdersBadRequest

func NewGetOpenOrdersBadRequest() *GetOpenOrdersBadRequest

NewGetOpenOrdersBadRequest creates a GetOpenOrdersBadRequest with default headers values

func (*GetOpenOrdersBadRequest) Code

func (o *GetOpenOrdersBadRequest) Code() int

Code gets the status code for the get open orders bad request response

func (*GetOpenOrdersBadRequest) Error

func (o *GetOpenOrdersBadRequest) Error() string

func (*GetOpenOrdersBadRequest) GetPayload

func (*GetOpenOrdersBadRequest) IsClientError

func (o *GetOpenOrdersBadRequest) IsClientError() bool

IsClientError returns true when this get open orders bad request response has a 4xx status code

func (*GetOpenOrdersBadRequest) IsCode

func (o *GetOpenOrdersBadRequest) IsCode(code int) bool

IsCode returns true when this get open orders bad request response a status code equal to that given

func (*GetOpenOrdersBadRequest) IsRedirect

func (o *GetOpenOrdersBadRequest) IsRedirect() bool

IsRedirect returns true when this get open orders bad request response has a 3xx status code

func (*GetOpenOrdersBadRequest) IsServerError

func (o *GetOpenOrdersBadRequest) IsServerError() bool

IsServerError returns true when this get open orders bad request response has a 5xx status code

func (*GetOpenOrdersBadRequest) IsSuccess

func (o *GetOpenOrdersBadRequest) IsSuccess() bool

IsSuccess returns true when this get open orders bad request response has a 2xx status code

func (*GetOpenOrdersBadRequest) String

func (o *GetOpenOrdersBadRequest) String() string

type GetOpenOrdersOK

type GetOpenOrdersOK struct {
	Payload *models.ResponsesGetOpenOrders
}

GetOpenOrdersOK describes a response with status code 200, with default header values.

OK

func NewGetOpenOrdersOK

func NewGetOpenOrdersOK() *GetOpenOrdersOK

NewGetOpenOrdersOK creates a GetOpenOrdersOK with default headers values

func (*GetOpenOrdersOK) Code

func (o *GetOpenOrdersOK) Code() int

Code gets the status code for the get open orders o k response

func (*GetOpenOrdersOK) Error

func (o *GetOpenOrdersOK) Error() string

func (*GetOpenOrdersOK) GetPayload

func (*GetOpenOrdersOK) IsClientError

func (o *GetOpenOrdersOK) IsClientError() bool

IsClientError returns true when this get open orders o k response has a 4xx status code

func (*GetOpenOrdersOK) IsCode

func (o *GetOpenOrdersOK) IsCode(code int) bool

IsCode returns true when this get open orders o k response a status code equal to that given

func (*GetOpenOrdersOK) IsRedirect

func (o *GetOpenOrdersOK) IsRedirect() bool

IsRedirect returns true when this get open orders o k response has a 3xx status code

func (*GetOpenOrdersOK) IsServerError

func (o *GetOpenOrdersOK) IsServerError() bool

IsServerError returns true when this get open orders o k response has a 5xx status code

func (*GetOpenOrdersOK) IsSuccess

func (o *GetOpenOrdersOK) IsSuccess() bool

IsSuccess returns true when this get open orders o k response has a 2xx status code

func (*GetOpenOrdersOK) String

func (o *GetOpenOrdersOK) String() string

type GetOpenOrdersParams

type GetOpenOrdersParams struct {

	/* Market.

	   Market symbol, ex: BTC-USD-PERP
	*/
	Market *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetOpenOrdersParams contains all the parameters to send to the API endpoint

for the get open orders operation.

Typically these are written to a http.Request.

func NewGetOpenOrdersParams

func NewGetOpenOrdersParams() *GetOpenOrdersParams

NewGetOpenOrdersParams creates a new GetOpenOrdersParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetOpenOrdersParamsWithContext

func NewGetOpenOrdersParamsWithContext(ctx context.Context) *GetOpenOrdersParams

NewGetOpenOrdersParamsWithContext creates a new GetOpenOrdersParams object with the ability to set a context for a request.

func NewGetOpenOrdersParamsWithHTTPClient

func NewGetOpenOrdersParamsWithHTTPClient(client *http.Client) *GetOpenOrdersParams

NewGetOpenOrdersParamsWithHTTPClient creates a new GetOpenOrdersParams object with the ability to set a custom HTTPClient for a request.

func NewGetOpenOrdersParamsWithTimeout

func NewGetOpenOrdersParamsWithTimeout(timeout time.Duration) *GetOpenOrdersParams

NewGetOpenOrdersParamsWithTimeout creates a new GetOpenOrdersParams object with the ability to set a timeout on a request.

func (*GetOpenOrdersParams) SetContext

func (o *GetOpenOrdersParams) SetContext(ctx context.Context)

SetContext adds the context to the get open orders params

func (*GetOpenOrdersParams) SetDefaults

func (o *GetOpenOrdersParams) SetDefaults()

SetDefaults hydrates default values in the get open orders params (not the query body).

All values with no default are reset to their zero value.

func (*GetOpenOrdersParams) SetHTTPClient

func (o *GetOpenOrdersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get open orders params

func (*GetOpenOrdersParams) SetMarket

func (o *GetOpenOrdersParams) SetMarket(market *string)

SetMarket adds the market to the get open orders params

func (*GetOpenOrdersParams) SetTimeout

func (o *GetOpenOrdersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get open orders params

func (*GetOpenOrdersParams) WithContext

WithContext adds the context to the get open orders params

func (*GetOpenOrdersParams) WithDefaults

func (o *GetOpenOrdersParams) WithDefaults() *GetOpenOrdersParams

WithDefaults hydrates default values in the get open orders params (not the query body).

All values with no default are reset to their zero value.

func (*GetOpenOrdersParams) WithHTTPClient

func (o *GetOpenOrdersParams) WithHTTPClient(client *http.Client) *GetOpenOrdersParams

WithHTTPClient adds the HTTPClient to the get open orders params

func (*GetOpenOrdersParams) WithMarket

func (o *GetOpenOrdersParams) WithMarket(market *string) *GetOpenOrdersParams

WithMarket adds the market to the get open orders params

func (*GetOpenOrdersParams) WithTimeout

func (o *GetOpenOrdersParams) WithTimeout(timeout time.Duration) *GetOpenOrdersParams

WithTimeout adds the timeout to the get open orders params

func (*GetOpenOrdersParams) WriteToRequest

func (o *GetOpenOrdersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetOpenOrdersReader

type GetOpenOrdersReader struct {
	// contains filtered or unexported fields
}

GetOpenOrdersReader is a Reader for the GetOpenOrders structure.

func (*GetOpenOrdersReader) ReadResponse

func (o *GetOpenOrdersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetOrdersBadRequest

type GetOrdersBadRequest struct {
	Payload *models.ResponsesAPIError
}

GetOrdersBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetOrdersBadRequest

func NewGetOrdersBadRequest() *GetOrdersBadRequest

NewGetOrdersBadRequest creates a GetOrdersBadRequest with default headers values

func (*GetOrdersBadRequest) Code

func (o *GetOrdersBadRequest) Code() int

Code gets the status code for the get orders bad request response

func (*GetOrdersBadRequest) Error

func (o *GetOrdersBadRequest) Error() string

func (*GetOrdersBadRequest) GetPayload

func (o *GetOrdersBadRequest) GetPayload() *models.ResponsesAPIError

func (*GetOrdersBadRequest) IsClientError

func (o *GetOrdersBadRequest) IsClientError() bool

IsClientError returns true when this get orders bad request response has a 4xx status code

func (*GetOrdersBadRequest) IsCode

func (o *GetOrdersBadRequest) IsCode(code int) bool

IsCode returns true when this get orders bad request response a status code equal to that given

func (*GetOrdersBadRequest) IsRedirect

func (o *GetOrdersBadRequest) IsRedirect() bool

IsRedirect returns true when this get orders bad request response has a 3xx status code

func (*GetOrdersBadRequest) IsServerError

func (o *GetOrdersBadRequest) IsServerError() bool

IsServerError returns true when this get orders bad request response has a 5xx status code

func (*GetOrdersBadRequest) IsSuccess

func (o *GetOrdersBadRequest) IsSuccess() bool

IsSuccess returns true when this get orders bad request response has a 2xx status code

func (*GetOrdersBadRequest) String

func (o *GetOrdersBadRequest) String() string

type GetOrdersOK

type GetOrdersOK struct {
	Payload *models.ResponsesGetOrders
}

GetOrdersOK describes a response with status code 200, with default header values.

OK

func NewGetOrdersOK

func NewGetOrdersOK() *GetOrdersOK

NewGetOrdersOK creates a GetOrdersOK with default headers values

func (*GetOrdersOK) Code

func (o *GetOrdersOK) Code() int

Code gets the status code for the get orders o k response

func (*GetOrdersOK) Error

func (o *GetOrdersOK) Error() string

func (*GetOrdersOK) GetPayload

func (o *GetOrdersOK) GetPayload() *models.ResponsesGetOrders

func (*GetOrdersOK) IsClientError

func (o *GetOrdersOK) IsClientError() bool

IsClientError returns true when this get orders o k response has a 4xx status code

func (*GetOrdersOK) IsCode

func (o *GetOrdersOK) IsCode(code int) bool

IsCode returns true when this get orders o k response a status code equal to that given

func (*GetOrdersOK) IsRedirect

func (o *GetOrdersOK) IsRedirect() bool

IsRedirect returns true when this get orders o k response has a 3xx status code

func (*GetOrdersOK) IsServerError

func (o *GetOrdersOK) IsServerError() bool

IsServerError returns true when this get orders o k response has a 5xx status code

func (*GetOrdersOK) IsSuccess

func (o *GetOrdersOK) IsSuccess() bool

IsSuccess returns true when this get orders o k response has a 2xx status code

func (*GetOrdersOK) String

func (o *GetOrdersOK) String() string

type GetOrdersParams

type GetOrdersParams struct {

	/* ClientID.

	   Unique ID of client generating the order
	*/
	ClientID *string

	/* Cursor.

	   Returns the ‘next’ paginated page.
	*/
	Cursor *string

	/* EndAt.

	   End Time (unix time millisecond)
	*/
	EndAt *int64

	/* Market.

	   Market for the order
	*/
	Market *string

	/* PageSize.

	   Limit the number of responses in the page

	   Default: 100
	*/
	PageSize *int64

	/* Side.

	   Order side
	*/
	Side *string

	/* StartAt.

	   Start Time (unix time millisecond)
	*/
	StartAt *int64

	/* Status.

	   Order status
	*/
	Status *string

	/* Type.

	   Order type
	*/
	Type *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetOrdersParams contains all the parameters to send to the API endpoint

for the get orders operation.

Typically these are written to a http.Request.

func NewGetOrdersParams

func NewGetOrdersParams() *GetOrdersParams

NewGetOrdersParams creates a new GetOrdersParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetOrdersParamsWithContext

func NewGetOrdersParamsWithContext(ctx context.Context) *GetOrdersParams

NewGetOrdersParamsWithContext creates a new GetOrdersParams object with the ability to set a context for a request.

func NewGetOrdersParamsWithHTTPClient

func NewGetOrdersParamsWithHTTPClient(client *http.Client) *GetOrdersParams

NewGetOrdersParamsWithHTTPClient creates a new GetOrdersParams object with the ability to set a custom HTTPClient for a request.

func NewGetOrdersParamsWithTimeout

func NewGetOrdersParamsWithTimeout(timeout time.Duration) *GetOrdersParams

NewGetOrdersParamsWithTimeout creates a new GetOrdersParams object with the ability to set a timeout on a request.

func (*GetOrdersParams) SetClientID

func (o *GetOrdersParams) SetClientID(clientID *string)

SetClientID adds the clientId to the get orders params

func (*GetOrdersParams) SetContext

func (o *GetOrdersParams) SetContext(ctx context.Context)

SetContext adds the context to the get orders params

func (*GetOrdersParams) SetCursor

func (o *GetOrdersParams) SetCursor(cursor *string)

SetCursor adds the cursor to the get orders params

func (*GetOrdersParams) SetDefaults

func (o *GetOrdersParams) SetDefaults()

SetDefaults hydrates default values in the get orders params (not the query body).

All values with no default are reset to their zero value.

func (*GetOrdersParams) SetEndAt

func (o *GetOrdersParams) SetEndAt(endAt *int64)

SetEndAt adds the endAt to the get orders params

func (*GetOrdersParams) SetHTTPClient

func (o *GetOrdersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get orders params

func (*GetOrdersParams) SetMarket

func (o *GetOrdersParams) SetMarket(market *string)

SetMarket adds the market to the get orders params

func (*GetOrdersParams) SetPageSize

func (o *GetOrdersParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the get orders params

func (*GetOrdersParams) SetSide

func (o *GetOrdersParams) SetSide(side *string)

SetSide adds the side to the get orders params

func (*GetOrdersParams) SetStartAt

func (o *GetOrdersParams) SetStartAt(startAt *int64)

SetStartAt adds the startAt to the get orders params

func (*GetOrdersParams) SetStatus

func (o *GetOrdersParams) SetStatus(status *string)

SetStatus adds the status to the get orders params

func (*GetOrdersParams) SetTimeout

func (o *GetOrdersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get orders params

func (*GetOrdersParams) SetType

func (o *GetOrdersParams) SetType(typeVar *string)

SetType adds the type to the get orders params

func (*GetOrdersParams) WithClientID

func (o *GetOrdersParams) WithClientID(clientID *string) *GetOrdersParams

WithClientID adds the clientID to the get orders params

func (*GetOrdersParams) WithContext

func (o *GetOrdersParams) WithContext(ctx context.Context) *GetOrdersParams

WithContext adds the context to the get orders params

func (*GetOrdersParams) WithCursor

func (o *GetOrdersParams) WithCursor(cursor *string) *GetOrdersParams

WithCursor adds the cursor to the get orders params

func (*GetOrdersParams) WithDefaults

func (o *GetOrdersParams) WithDefaults() *GetOrdersParams

WithDefaults hydrates default values in the get orders params (not the query body).

All values with no default are reset to their zero value.

func (*GetOrdersParams) WithEndAt

func (o *GetOrdersParams) WithEndAt(endAt *int64) *GetOrdersParams

WithEndAt adds the endAt to the get orders params

func (*GetOrdersParams) WithHTTPClient

func (o *GetOrdersParams) WithHTTPClient(client *http.Client) *GetOrdersParams

WithHTTPClient adds the HTTPClient to the get orders params

func (*GetOrdersParams) WithMarket

func (o *GetOrdersParams) WithMarket(market *string) *GetOrdersParams

WithMarket adds the market to the get orders params

func (*GetOrdersParams) WithPageSize

func (o *GetOrdersParams) WithPageSize(pageSize *int64) *GetOrdersParams

WithPageSize adds the pageSize to the get orders params

func (*GetOrdersParams) WithSide

func (o *GetOrdersParams) WithSide(side *string) *GetOrdersParams

WithSide adds the side to the get orders params

func (*GetOrdersParams) WithStartAt

func (o *GetOrdersParams) WithStartAt(startAt *int64) *GetOrdersParams

WithStartAt adds the startAt to the get orders params

func (*GetOrdersParams) WithStatus

func (o *GetOrdersParams) WithStatus(status *string) *GetOrdersParams

WithStatus adds the status to the get orders params

func (*GetOrdersParams) WithTimeout

func (o *GetOrdersParams) WithTimeout(timeout time.Duration) *GetOrdersParams

WithTimeout adds the timeout to the get orders params

func (*GetOrdersParams) WithType

func (o *GetOrdersParams) WithType(typeVar *string) *GetOrdersParams

WithType adds the typeVar to the get orders params

func (*GetOrdersParams) WriteToRequest

func (o *GetOrdersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetOrdersReader

type GetOrdersReader struct {
	// contains filtered or unexported fields
}

GetOrdersReader is a Reader for the GetOrders structure.

func (*GetOrdersReader) ReadResponse

func (o *GetOrdersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type OrdersBatchBadRequest

type OrdersBatchBadRequest struct {
	Payload *models.ResponsesAPIError
}

OrdersBatchBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewOrdersBatchBadRequest

func NewOrdersBatchBadRequest() *OrdersBatchBadRequest

NewOrdersBatchBadRequest creates a OrdersBatchBadRequest with default headers values

func (*OrdersBatchBadRequest) Code

func (o *OrdersBatchBadRequest) Code() int

Code gets the status code for the orders batch bad request response

func (*OrdersBatchBadRequest) Error

func (o *OrdersBatchBadRequest) Error() string

func (*OrdersBatchBadRequest) GetPayload

func (*OrdersBatchBadRequest) IsClientError

func (o *OrdersBatchBadRequest) IsClientError() bool

IsClientError returns true when this orders batch bad request response has a 4xx status code

func (*OrdersBatchBadRequest) IsCode

func (o *OrdersBatchBadRequest) IsCode(code int) bool

IsCode returns true when this orders batch bad request response a status code equal to that given

func (*OrdersBatchBadRequest) IsRedirect

func (o *OrdersBatchBadRequest) IsRedirect() bool

IsRedirect returns true when this orders batch bad request response has a 3xx status code

func (*OrdersBatchBadRequest) IsServerError

func (o *OrdersBatchBadRequest) IsServerError() bool

IsServerError returns true when this orders batch bad request response has a 5xx status code

func (*OrdersBatchBadRequest) IsSuccess

func (o *OrdersBatchBadRequest) IsSuccess() bool

IsSuccess returns true when this orders batch bad request response has a 2xx status code

func (*OrdersBatchBadRequest) String

func (o *OrdersBatchBadRequest) String() string

type OrdersBatchCreated

type OrdersBatchCreated struct {
	Payload *models.ResponsesBatchResponse
}

OrdersBatchCreated describes a response with status code 201, with default header values.

Created

func NewOrdersBatchCreated

func NewOrdersBatchCreated() *OrdersBatchCreated

NewOrdersBatchCreated creates a OrdersBatchCreated with default headers values

func (*OrdersBatchCreated) Code

func (o *OrdersBatchCreated) Code() int

Code gets the status code for the orders batch created response

func (*OrdersBatchCreated) Error

func (o *OrdersBatchCreated) Error() string

func (*OrdersBatchCreated) GetPayload

func (*OrdersBatchCreated) IsClientError

func (o *OrdersBatchCreated) IsClientError() bool

IsClientError returns true when this orders batch created response has a 4xx status code

func (*OrdersBatchCreated) IsCode

func (o *OrdersBatchCreated) IsCode(code int) bool

IsCode returns true when this orders batch created response a status code equal to that given

func (*OrdersBatchCreated) IsRedirect

func (o *OrdersBatchCreated) IsRedirect() bool

IsRedirect returns true when this orders batch created response has a 3xx status code

func (*OrdersBatchCreated) IsServerError

func (o *OrdersBatchCreated) IsServerError() bool

IsServerError returns true when this orders batch created response has a 5xx status code

func (*OrdersBatchCreated) IsSuccess

func (o *OrdersBatchCreated) IsSuccess() bool

IsSuccess returns true when this orders batch created response has a 2xx status code

func (*OrdersBatchCreated) String

func (o *OrdersBatchCreated) String() string

type OrdersBatchParams

type OrdersBatchParams struct {

	/* Params.

	   Order content
	*/
	Params []*models.RequestsOrderRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OrdersBatchParams contains all the parameters to send to the API endpoint

for the orders batch operation.

Typically these are written to a http.Request.

func NewOrdersBatchParams

func NewOrdersBatchParams() *OrdersBatchParams

NewOrdersBatchParams creates a new OrdersBatchParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewOrdersBatchParamsWithContext

func NewOrdersBatchParamsWithContext(ctx context.Context) *OrdersBatchParams

NewOrdersBatchParamsWithContext creates a new OrdersBatchParams object with the ability to set a context for a request.

func NewOrdersBatchParamsWithHTTPClient

func NewOrdersBatchParamsWithHTTPClient(client *http.Client) *OrdersBatchParams

NewOrdersBatchParamsWithHTTPClient creates a new OrdersBatchParams object with the ability to set a custom HTTPClient for a request.

func NewOrdersBatchParamsWithTimeout

func NewOrdersBatchParamsWithTimeout(timeout time.Duration) *OrdersBatchParams

NewOrdersBatchParamsWithTimeout creates a new OrdersBatchParams object with the ability to set a timeout on a request.

func (*OrdersBatchParams) SetContext

func (o *OrdersBatchParams) SetContext(ctx context.Context)

SetContext adds the context to the orders batch params

func (*OrdersBatchParams) SetDefaults

func (o *OrdersBatchParams) SetDefaults()

SetDefaults hydrates default values in the orders batch params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersBatchParams) SetHTTPClient

func (o *OrdersBatchParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the orders batch params

func (*OrdersBatchParams) SetParams

func (o *OrdersBatchParams) SetParams(params []*models.RequestsOrderRequest)

SetParams adds the params to the orders batch params

func (*OrdersBatchParams) SetTimeout

func (o *OrdersBatchParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the orders batch params

func (*OrdersBatchParams) WithContext

func (o *OrdersBatchParams) WithContext(ctx context.Context) *OrdersBatchParams

WithContext adds the context to the orders batch params

func (*OrdersBatchParams) WithDefaults

func (o *OrdersBatchParams) WithDefaults() *OrdersBatchParams

WithDefaults hydrates default values in the orders batch params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersBatchParams) WithHTTPClient

func (o *OrdersBatchParams) WithHTTPClient(client *http.Client) *OrdersBatchParams

WithHTTPClient adds the HTTPClient to the orders batch params

func (*OrdersBatchParams) WithParams

WithParams adds the params to the orders batch params

func (*OrdersBatchParams) WithTimeout

func (o *OrdersBatchParams) WithTimeout(timeout time.Duration) *OrdersBatchParams

WithTimeout adds the timeout to the orders batch params

func (*OrdersBatchParams) WriteToRequest

func (o *OrdersBatchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OrdersBatchReader

type OrdersBatchReader struct {
	// contains filtered or unexported fields
}

OrdersBatchReader is a Reader for the OrdersBatch structure.

func (*OrdersBatchReader) ReadResponse

func (o *OrdersBatchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type OrdersCancelAllBadRequest

type OrdersCancelAllBadRequest struct {
	Payload *models.ResponsesAPIError
}

OrdersCancelAllBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewOrdersCancelAllBadRequest

func NewOrdersCancelAllBadRequest() *OrdersCancelAllBadRequest

NewOrdersCancelAllBadRequest creates a OrdersCancelAllBadRequest with default headers values

func (*OrdersCancelAllBadRequest) Code

func (o *OrdersCancelAllBadRequest) Code() int

Code gets the status code for the orders cancel all bad request response

func (*OrdersCancelAllBadRequest) Error

func (o *OrdersCancelAllBadRequest) Error() string

func (*OrdersCancelAllBadRequest) GetPayload

func (*OrdersCancelAllBadRequest) IsClientError

func (o *OrdersCancelAllBadRequest) IsClientError() bool

IsClientError returns true when this orders cancel all bad request response has a 4xx status code

func (*OrdersCancelAllBadRequest) IsCode

func (o *OrdersCancelAllBadRequest) IsCode(code int) bool

IsCode returns true when this orders cancel all bad request response a status code equal to that given

func (*OrdersCancelAllBadRequest) IsRedirect

func (o *OrdersCancelAllBadRequest) IsRedirect() bool

IsRedirect returns true when this orders cancel all bad request response has a 3xx status code

func (*OrdersCancelAllBadRequest) IsServerError

func (o *OrdersCancelAllBadRequest) IsServerError() bool

IsServerError returns true when this orders cancel all bad request response has a 5xx status code

func (*OrdersCancelAllBadRequest) IsSuccess

func (o *OrdersCancelAllBadRequest) IsSuccess() bool

IsSuccess returns true when this orders cancel all bad request response has a 2xx status code

func (*OrdersCancelAllBadRequest) String

func (o *OrdersCancelAllBadRequest) String() string

type OrdersCancelAllOK

type OrdersCancelAllOK struct {
}

OrdersCancelAllOK describes a response with status code 200, with default header values.

OK

func NewOrdersCancelAllOK

func NewOrdersCancelAllOK() *OrdersCancelAllOK

NewOrdersCancelAllOK creates a OrdersCancelAllOK with default headers values

func (*OrdersCancelAllOK) Code

func (o *OrdersCancelAllOK) Code() int

Code gets the status code for the orders cancel all o k response

func (*OrdersCancelAllOK) Error

func (o *OrdersCancelAllOK) Error() string

func (*OrdersCancelAllOK) IsClientError

func (o *OrdersCancelAllOK) IsClientError() bool

IsClientError returns true when this orders cancel all o k response has a 4xx status code

func (*OrdersCancelAllOK) IsCode

func (o *OrdersCancelAllOK) IsCode(code int) bool

IsCode returns true when this orders cancel all o k response a status code equal to that given

func (*OrdersCancelAllOK) IsRedirect

func (o *OrdersCancelAllOK) IsRedirect() bool

IsRedirect returns true when this orders cancel all o k response has a 3xx status code

func (*OrdersCancelAllOK) IsServerError

func (o *OrdersCancelAllOK) IsServerError() bool

IsServerError returns true when this orders cancel all o k response has a 5xx status code

func (*OrdersCancelAllOK) IsSuccess

func (o *OrdersCancelAllOK) IsSuccess() bool

IsSuccess returns true when this orders cancel all o k response has a 2xx status code

func (*OrdersCancelAllOK) String

func (o *OrdersCancelAllOK) String() string

type OrdersCancelAllParams

type OrdersCancelAllParams struct {

	/* Market.

	   Market to cancel orders for
	*/
	Market *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OrdersCancelAllParams contains all the parameters to send to the API endpoint

for the orders cancel all operation.

Typically these are written to a http.Request.

func NewOrdersCancelAllParams

func NewOrdersCancelAllParams() *OrdersCancelAllParams

NewOrdersCancelAllParams creates a new OrdersCancelAllParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewOrdersCancelAllParamsWithContext

func NewOrdersCancelAllParamsWithContext(ctx context.Context) *OrdersCancelAllParams

NewOrdersCancelAllParamsWithContext creates a new OrdersCancelAllParams object with the ability to set a context for a request.

func NewOrdersCancelAllParamsWithHTTPClient

func NewOrdersCancelAllParamsWithHTTPClient(client *http.Client) *OrdersCancelAllParams

NewOrdersCancelAllParamsWithHTTPClient creates a new OrdersCancelAllParams object with the ability to set a custom HTTPClient for a request.

func NewOrdersCancelAllParamsWithTimeout

func NewOrdersCancelAllParamsWithTimeout(timeout time.Duration) *OrdersCancelAllParams

NewOrdersCancelAllParamsWithTimeout creates a new OrdersCancelAllParams object with the ability to set a timeout on a request.

func (*OrdersCancelAllParams) SetContext

func (o *OrdersCancelAllParams) SetContext(ctx context.Context)

SetContext adds the context to the orders cancel all params

func (*OrdersCancelAllParams) SetDefaults

func (o *OrdersCancelAllParams) SetDefaults()

SetDefaults hydrates default values in the orders cancel all params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersCancelAllParams) SetHTTPClient

func (o *OrdersCancelAllParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the orders cancel all params

func (*OrdersCancelAllParams) SetMarket

func (o *OrdersCancelAllParams) SetMarket(market *string)

SetMarket adds the market to the orders cancel all params

func (*OrdersCancelAllParams) SetTimeout

func (o *OrdersCancelAllParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the orders cancel all params

func (*OrdersCancelAllParams) WithContext

WithContext adds the context to the orders cancel all params

func (*OrdersCancelAllParams) WithDefaults

func (o *OrdersCancelAllParams) WithDefaults() *OrdersCancelAllParams

WithDefaults hydrates default values in the orders cancel all params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersCancelAllParams) WithHTTPClient

func (o *OrdersCancelAllParams) WithHTTPClient(client *http.Client) *OrdersCancelAllParams

WithHTTPClient adds the HTTPClient to the orders cancel all params

func (*OrdersCancelAllParams) WithMarket

func (o *OrdersCancelAllParams) WithMarket(market *string) *OrdersCancelAllParams

WithMarket adds the market to the orders cancel all params

func (*OrdersCancelAllParams) WithTimeout

func (o *OrdersCancelAllParams) WithTimeout(timeout time.Duration) *OrdersCancelAllParams

WithTimeout adds the timeout to the orders cancel all params

func (*OrdersCancelAllParams) WriteToRequest

func (o *OrdersCancelAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OrdersCancelAllReader

type OrdersCancelAllReader struct {
	// contains filtered or unexported fields
}

OrdersCancelAllReader is a Reader for the OrdersCancelAll structure.

func (*OrdersCancelAllReader) ReadResponse

func (o *OrdersCancelAllReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type OrdersCancelBadRequest

type OrdersCancelBadRequest struct {
	Payload *models.ResponsesAPIError
}

OrdersCancelBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewOrdersCancelBadRequest

func NewOrdersCancelBadRequest() *OrdersCancelBadRequest

NewOrdersCancelBadRequest creates a OrdersCancelBadRequest with default headers values

func (*OrdersCancelBadRequest) Code

func (o *OrdersCancelBadRequest) Code() int

Code gets the status code for the orders cancel bad request response

func (*OrdersCancelBadRequest) Error

func (o *OrdersCancelBadRequest) Error() string

func (*OrdersCancelBadRequest) GetPayload

func (*OrdersCancelBadRequest) IsClientError

func (o *OrdersCancelBadRequest) IsClientError() bool

IsClientError returns true when this orders cancel bad request response has a 4xx status code

func (*OrdersCancelBadRequest) IsCode

func (o *OrdersCancelBadRequest) IsCode(code int) bool

IsCode returns true when this orders cancel bad request response a status code equal to that given

func (*OrdersCancelBadRequest) IsRedirect

func (o *OrdersCancelBadRequest) IsRedirect() bool

IsRedirect returns true when this orders cancel bad request response has a 3xx status code

func (*OrdersCancelBadRequest) IsServerError

func (o *OrdersCancelBadRequest) IsServerError() bool

IsServerError returns true when this orders cancel bad request response has a 5xx status code

func (*OrdersCancelBadRequest) IsSuccess

func (o *OrdersCancelBadRequest) IsSuccess() bool

IsSuccess returns true when this orders cancel bad request response has a 2xx status code

func (*OrdersCancelBadRequest) String

func (o *OrdersCancelBadRequest) String() string

type OrdersCancelByClientIDBadRequest

type OrdersCancelByClientIDBadRequest struct {
	Payload *models.ResponsesAPIError
}

OrdersCancelByClientIDBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewOrdersCancelByClientIDBadRequest

func NewOrdersCancelByClientIDBadRequest() *OrdersCancelByClientIDBadRequest

NewOrdersCancelByClientIDBadRequest creates a OrdersCancelByClientIDBadRequest with default headers values

func (*OrdersCancelByClientIDBadRequest) Code

Code gets the status code for the orders cancel by client Id bad request response

func (*OrdersCancelByClientIDBadRequest) Error

func (*OrdersCancelByClientIDBadRequest) GetPayload

func (*OrdersCancelByClientIDBadRequest) IsClientError

func (o *OrdersCancelByClientIDBadRequest) IsClientError() bool

IsClientError returns true when this orders cancel by client Id bad request response has a 4xx status code

func (*OrdersCancelByClientIDBadRequest) IsCode

func (o *OrdersCancelByClientIDBadRequest) IsCode(code int) bool

IsCode returns true when this orders cancel by client Id bad request response a status code equal to that given

func (*OrdersCancelByClientIDBadRequest) IsRedirect

func (o *OrdersCancelByClientIDBadRequest) IsRedirect() bool

IsRedirect returns true when this orders cancel by client Id bad request response has a 3xx status code

func (*OrdersCancelByClientIDBadRequest) IsServerError

func (o *OrdersCancelByClientIDBadRequest) IsServerError() bool

IsServerError returns true when this orders cancel by client Id bad request response has a 5xx status code

func (*OrdersCancelByClientIDBadRequest) IsSuccess

func (o *OrdersCancelByClientIDBadRequest) IsSuccess() bool

IsSuccess returns true when this orders cancel by client Id bad request response has a 2xx status code

func (*OrdersCancelByClientIDBadRequest) String

type OrdersCancelByClientIDNoContent

type OrdersCancelByClientIDNoContent struct {
}

OrdersCancelByClientIDNoContent describes a response with status code 204, with default header values.

No Content

func NewOrdersCancelByClientIDNoContent

func NewOrdersCancelByClientIDNoContent() *OrdersCancelByClientIDNoContent

NewOrdersCancelByClientIDNoContent creates a OrdersCancelByClientIDNoContent with default headers values

func (*OrdersCancelByClientIDNoContent) Code

Code gets the status code for the orders cancel by client Id no content response

func (*OrdersCancelByClientIDNoContent) Error

func (*OrdersCancelByClientIDNoContent) IsClientError

func (o *OrdersCancelByClientIDNoContent) IsClientError() bool

IsClientError returns true when this orders cancel by client Id no content response has a 4xx status code

func (*OrdersCancelByClientIDNoContent) IsCode

func (o *OrdersCancelByClientIDNoContent) IsCode(code int) bool

IsCode returns true when this orders cancel by client Id no content response a status code equal to that given

func (*OrdersCancelByClientIDNoContent) IsRedirect

func (o *OrdersCancelByClientIDNoContent) IsRedirect() bool

IsRedirect returns true when this orders cancel by client Id no content response has a 3xx status code

func (*OrdersCancelByClientIDNoContent) IsServerError

func (o *OrdersCancelByClientIDNoContent) IsServerError() bool

IsServerError returns true when this orders cancel by client Id no content response has a 5xx status code

func (*OrdersCancelByClientIDNoContent) IsSuccess

func (o *OrdersCancelByClientIDNoContent) IsSuccess() bool

IsSuccess returns true when this orders cancel by client Id no content response has a 2xx status code

func (*OrdersCancelByClientIDNoContent) String

type OrdersCancelByClientIDParams

type OrdersCancelByClientIDParams struct {

	/* ClientID.

	   Client Order Id
	*/
	ClientID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OrdersCancelByClientIDParams contains all the parameters to send to the API endpoint

for the orders cancel by client id operation.

Typically these are written to a http.Request.

func NewOrdersCancelByClientIDParams

func NewOrdersCancelByClientIDParams() *OrdersCancelByClientIDParams

NewOrdersCancelByClientIDParams creates a new OrdersCancelByClientIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewOrdersCancelByClientIDParamsWithContext

func NewOrdersCancelByClientIDParamsWithContext(ctx context.Context) *OrdersCancelByClientIDParams

NewOrdersCancelByClientIDParamsWithContext creates a new OrdersCancelByClientIDParams object with the ability to set a context for a request.

func NewOrdersCancelByClientIDParamsWithHTTPClient

func NewOrdersCancelByClientIDParamsWithHTTPClient(client *http.Client) *OrdersCancelByClientIDParams

NewOrdersCancelByClientIDParamsWithHTTPClient creates a new OrdersCancelByClientIDParams object with the ability to set a custom HTTPClient for a request.

func NewOrdersCancelByClientIDParamsWithTimeout

func NewOrdersCancelByClientIDParamsWithTimeout(timeout time.Duration) *OrdersCancelByClientIDParams

NewOrdersCancelByClientIDParamsWithTimeout creates a new OrdersCancelByClientIDParams object with the ability to set a timeout on a request.

func (*OrdersCancelByClientIDParams) SetClientID

func (o *OrdersCancelByClientIDParams) SetClientID(clientID string)

SetClientID adds the clientId to the orders cancel by client id params

func (*OrdersCancelByClientIDParams) SetContext

func (o *OrdersCancelByClientIDParams) SetContext(ctx context.Context)

SetContext adds the context to the orders cancel by client id params

func (*OrdersCancelByClientIDParams) SetDefaults

func (o *OrdersCancelByClientIDParams) SetDefaults()

SetDefaults hydrates default values in the orders cancel by client id params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersCancelByClientIDParams) SetHTTPClient

func (o *OrdersCancelByClientIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the orders cancel by client id params

func (*OrdersCancelByClientIDParams) SetTimeout

func (o *OrdersCancelByClientIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the orders cancel by client id params

func (*OrdersCancelByClientIDParams) WithClientID

WithClientID adds the clientID to the orders cancel by client id params

func (*OrdersCancelByClientIDParams) WithContext

WithContext adds the context to the orders cancel by client id params

func (*OrdersCancelByClientIDParams) WithDefaults

WithDefaults hydrates default values in the orders cancel by client id params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersCancelByClientIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the orders cancel by client id params

func (*OrdersCancelByClientIDParams) WithTimeout

WithTimeout adds the timeout to the orders cancel by client id params

func (*OrdersCancelByClientIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrdersCancelByClientIDReader

type OrdersCancelByClientIDReader struct {
	// contains filtered or unexported fields
}

OrdersCancelByClientIDReader is a Reader for the OrdersCancelByClientID structure.

func (*OrdersCancelByClientIDReader) ReadResponse

func (o *OrdersCancelByClientIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type OrdersCancelNoContent

type OrdersCancelNoContent struct {
}

OrdersCancelNoContent describes a response with status code 204, with default header values.

No Content

func NewOrdersCancelNoContent

func NewOrdersCancelNoContent() *OrdersCancelNoContent

NewOrdersCancelNoContent creates a OrdersCancelNoContent with default headers values

func (*OrdersCancelNoContent) Code

func (o *OrdersCancelNoContent) Code() int

Code gets the status code for the orders cancel no content response

func (*OrdersCancelNoContent) Error

func (o *OrdersCancelNoContent) Error() string

func (*OrdersCancelNoContent) IsClientError

func (o *OrdersCancelNoContent) IsClientError() bool

IsClientError returns true when this orders cancel no content response has a 4xx status code

func (*OrdersCancelNoContent) IsCode

func (o *OrdersCancelNoContent) IsCode(code int) bool

IsCode returns true when this orders cancel no content response a status code equal to that given

func (*OrdersCancelNoContent) IsRedirect

func (o *OrdersCancelNoContent) IsRedirect() bool

IsRedirect returns true when this orders cancel no content response has a 3xx status code

func (*OrdersCancelNoContent) IsServerError

func (o *OrdersCancelNoContent) IsServerError() bool

IsServerError returns true when this orders cancel no content response has a 5xx status code

func (*OrdersCancelNoContent) IsSuccess

func (o *OrdersCancelNoContent) IsSuccess() bool

IsSuccess returns true when this orders cancel no content response has a 2xx status code

func (*OrdersCancelNoContent) String

func (o *OrdersCancelNoContent) String() string

type OrdersCancelParams

type OrdersCancelParams struct {

	/* OrderID.

	   Order Id
	*/
	OrderID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OrdersCancelParams contains all the parameters to send to the API endpoint

for the orders cancel operation.

Typically these are written to a http.Request.

func NewOrdersCancelParams

func NewOrdersCancelParams() *OrdersCancelParams

NewOrdersCancelParams creates a new OrdersCancelParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewOrdersCancelParamsWithContext

func NewOrdersCancelParamsWithContext(ctx context.Context) *OrdersCancelParams

NewOrdersCancelParamsWithContext creates a new OrdersCancelParams object with the ability to set a context for a request.

func NewOrdersCancelParamsWithHTTPClient

func NewOrdersCancelParamsWithHTTPClient(client *http.Client) *OrdersCancelParams

NewOrdersCancelParamsWithHTTPClient creates a new OrdersCancelParams object with the ability to set a custom HTTPClient for a request.

func NewOrdersCancelParamsWithTimeout

func NewOrdersCancelParamsWithTimeout(timeout time.Duration) *OrdersCancelParams

NewOrdersCancelParamsWithTimeout creates a new OrdersCancelParams object with the ability to set a timeout on a request.

func (*OrdersCancelParams) SetContext

func (o *OrdersCancelParams) SetContext(ctx context.Context)

SetContext adds the context to the orders cancel params

func (*OrdersCancelParams) SetDefaults

func (o *OrdersCancelParams) SetDefaults()

SetDefaults hydrates default values in the orders cancel params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersCancelParams) SetHTTPClient

func (o *OrdersCancelParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the orders cancel params

func (*OrdersCancelParams) SetOrderID

func (o *OrdersCancelParams) SetOrderID(orderID string)

SetOrderID adds the orderId to the orders cancel params

func (*OrdersCancelParams) SetTimeout

func (o *OrdersCancelParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the orders cancel params

func (*OrdersCancelParams) WithContext

WithContext adds the context to the orders cancel params

func (*OrdersCancelParams) WithDefaults

func (o *OrdersCancelParams) WithDefaults() *OrdersCancelParams

WithDefaults hydrates default values in the orders cancel params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersCancelParams) WithHTTPClient

func (o *OrdersCancelParams) WithHTTPClient(client *http.Client) *OrdersCancelParams

WithHTTPClient adds the HTTPClient to the orders cancel params

func (*OrdersCancelParams) WithOrderID

func (o *OrdersCancelParams) WithOrderID(orderID string) *OrdersCancelParams

WithOrderID adds the orderID to the orders cancel params

func (*OrdersCancelParams) WithTimeout

func (o *OrdersCancelParams) WithTimeout(timeout time.Duration) *OrdersCancelParams

WithTimeout adds the timeout to the orders cancel params

func (*OrdersCancelParams) WriteToRequest

func (o *OrdersCancelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OrdersCancelReader

type OrdersCancelReader struct {
	// contains filtered or unexported fields
}

OrdersCancelReader is a Reader for the OrdersCancel structure.

func (*OrdersCancelReader) ReadResponse

func (o *OrdersCancelReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type OrdersGetBadRequest

type OrdersGetBadRequest struct {
	Payload *models.ResponsesAPIError
}

OrdersGetBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewOrdersGetBadRequest

func NewOrdersGetBadRequest() *OrdersGetBadRequest

NewOrdersGetBadRequest creates a OrdersGetBadRequest with default headers values

func (*OrdersGetBadRequest) Code

func (o *OrdersGetBadRequest) Code() int

Code gets the status code for the orders get bad request response

func (*OrdersGetBadRequest) Error

func (o *OrdersGetBadRequest) Error() string

func (*OrdersGetBadRequest) GetPayload

func (o *OrdersGetBadRequest) GetPayload() *models.ResponsesAPIError

func (*OrdersGetBadRequest) IsClientError

func (o *OrdersGetBadRequest) IsClientError() bool

IsClientError returns true when this orders get bad request response has a 4xx status code

func (*OrdersGetBadRequest) IsCode

func (o *OrdersGetBadRequest) IsCode(code int) bool

IsCode returns true when this orders get bad request response a status code equal to that given

func (*OrdersGetBadRequest) IsRedirect

func (o *OrdersGetBadRequest) IsRedirect() bool

IsRedirect returns true when this orders get bad request response has a 3xx status code

func (*OrdersGetBadRequest) IsServerError

func (o *OrdersGetBadRequest) IsServerError() bool

IsServerError returns true when this orders get bad request response has a 5xx status code

func (*OrdersGetBadRequest) IsSuccess

func (o *OrdersGetBadRequest) IsSuccess() bool

IsSuccess returns true when this orders get bad request response has a 2xx status code

func (*OrdersGetBadRequest) String

func (o *OrdersGetBadRequest) String() string

type OrdersGetByClientIDBadRequest

type OrdersGetByClientIDBadRequest struct {
	Payload *models.ResponsesAPIError
}

OrdersGetByClientIDBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewOrdersGetByClientIDBadRequest

func NewOrdersGetByClientIDBadRequest() *OrdersGetByClientIDBadRequest

NewOrdersGetByClientIDBadRequest creates a OrdersGetByClientIDBadRequest with default headers values

func (*OrdersGetByClientIDBadRequest) Code

Code gets the status code for the orders get by client Id bad request response

func (*OrdersGetByClientIDBadRequest) Error

func (*OrdersGetByClientIDBadRequest) GetPayload

func (*OrdersGetByClientIDBadRequest) IsClientError

func (o *OrdersGetByClientIDBadRequest) IsClientError() bool

IsClientError returns true when this orders get by client Id bad request response has a 4xx status code

func (*OrdersGetByClientIDBadRequest) IsCode

func (o *OrdersGetByClientIDBadRequest) IsCode(code int) bool

IsCode returns true when this orders get by client Id bad request response a status code equal to that given

func (*OrdersGetByClientIDBadRequest) IsRedirect

func (o *OrdersGetByClientIDBadRequest) IsRedirect() bool

IsRedirect returns true when this orders get by client Id bad request response has a 3xx status code

func (*OrdersGetByClientIDBadRequest) IsServerError

func (o *OrdersGetByClientIDBadRequest) IsServerError() bool

IsServerError returns true when this orders get by client Id bad request response has a 5xx status code

func (*OrdersGetByClientIDBadRequest) IsSuccess

func (o *OrdersGetByClientIDBadRequest) IsSuccess() bool

IsSuccess returns true when this orders get by client Id bad request response has a 2xx status code

func (*OrdersGetByClientIDBadRequest) String

type OrdersGetByClientIDOK

type OrdersGetByClientIDOK struct {
	Payload *models.ResponsesOrderResp
}

OrdersGetByClientIDOK describes a response with status code 200, with default header values.

OK

func NewOrdersGetByClientIDOK

func NewOrdersGetByClientIDOK() *OrdersGetByClientIDOK

NewOrdersGetByClientIDOK creates a OrdersGetByClientIDOK with default headers values

func (*OrdersGetByClientIDOK) Code

func (o *OrdersGetByClientIDOK) Code() int

Code gets the status code for the orders get by client Id o k response

func (*OrdersGetByClientIDOK) Error

func (o *OrdersGetByClientIDOK) Error() string

func (*OrdersGetByClientIDOK) GetPayload

func (*OrdersGetByClientIDOK) IsClientError

func (o *OrdersGetByClientIDOK) IsClientError() bool

IsClientError returns true when this orders get by client Id o k response has a 4xx status code

func (*OrdersGetByClientIDOK) IsCode

func (o *OrdersGetByClientIDOK) IsCode(code int) bool

IsCode returns true when this orders get by client Id o k response a status code equal to that given

func (*OrdersGetByClientIDOK) IsRedirect

func (o *OrdersGetByClientIDOK) IsRedirect() bool

IsRedirect returns true when this orders get by client Id o k response has a 3xx status code

func (*OrdersGetByClientIDOK) IsServerError

func (o *OrdersGetByClientIDOK) IsServerError() bool

IsServerError returns true when this orders get by client Id o k response has a 5xx status code

func (*OrdersGetByClientIDOK) IsSuccess

func (o *OrdersGetByClientIDOK) IsSuccess() bool

IsSuccess returns true when this orders get by client Id o k response has a 2xx status code

func (*OrdersGetByClientIDOK) String

func (o *OrdersGetByClientIDOK) String() string

type OrdersGetByClientIDParams

type OrdersGetByClientIDParams struct {

	/* ClientID.

	   Client Order Id
	*/
	ClientID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OrdersGetByClientIDParams contains all the parameters to send to the API endpoint

for the orders get by client id operation.

Typically these are written to a http.Request.

func NewOrdersGetByClientIDParams

func NewOrdersGetByClientIDParams() *OrdersGetByClientIDParams

NewOrdersGetByClientIDParams creates a new OrdersGetByClientIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewOrdersGetByClientIDParamsWithContext

func NewOrdersGetByClientIDParamsWithContext(ctx context.Context) *OrdersGetByClientIDParams

NewOrdersGetByClientIDParamsWithContext creates a new OrdersGetByClientIDParams object with the ability to set a context for a request.

func NewOrdersGetByClientIDParamsWithHTTPClient

func NewOrdersGetByClientIDParamsWithHTTPClient(client *http.Client) *OrdersGetByClientIDParams

NewOrdersGetByClientIDParamsWithHTTPClient creates a new OrdersGetByClientIDParams object with the ability to set a custom HTTPClient for a request.

func NewOrdersGetByClientIDParamsWithTimeout

func NewOrdersGetByClientIDParamsWithTimeout(timeout time.Duration) *OrdersGetByClientIDParams

NewOrdersGetByClientIDParamsWithTimeout creates a new OrdersGetByClientIDParams object with the ability to set a timeout on a request.

func (*OrdersGetByClientIDParams) SetClientID

func (o *OrdersGetByClientIDParams) SetClientID(clientID string)

SetClientID adds the clientId to the orders get by client id params

func (*OrdersGetByClientIDParams) SetContext

func (o *OrdersGetByClientIDParams) SetContext(ctx context.Context)

SetContext adds the context to the orders get by client id params

func (*OrdersGetByClientIDParams) SetDefaults

func (o *OrdersGetByClientIDParams) SetDefaults()

SetDefaults hydrates default values in the orders get by client id params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersGetByClientIDParams) SetHTTPClient

func (o *OrdersGetByClientIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the orders get by client id params

func (*OrdersGetByClientIDParams) SetTimeout

func (o *OrdersGetByClientIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the orders get by client id params

func (*OrdersGetByClientIDParams) WithClientID

func (o *OrdersGetByClientIDParams) WithClientID(clientID string) *OrdersGetByClientIDParams

WithClientID adds the clientID to the orders get by client id params

func (*OrdersGetByClientIDParams) WithContext

WithContext adds the context to the orders get by client id params

func (*OrdersGetByClientIDParams) WithDefaults

WithDefaults hydrates default values in the orders get by client id params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersGetByClientIDParams) WithHTTPClient

func (o *OrdersGetByClientIDParams) WithHTTPClient(client *http.Client) *OrdersGetByClientIDParams

WithHTTPClient adds the HTTPClient to the orders get by client id params

func (*OrdersGetByClientIDParams) WithTimeout

WithTimeout adds the timeout to the orders get by client id params

func (*OrdersGetByClientIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrdersGetByClientIDReader

type OrdersGetByClientIDReader struct {
	// contains filtered or unexported fields
}

OrdersGetByClientIDReader is a Reader for the OrdersGetByClientID structure.

func (*OrdersGetByClientIDReader) ReadResponse

func (o *OrdersGetByClientIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type OrdersGetOK

type OrdersGetOK struct {
	Payload *models.ResponsesOrderResp
}

OrdersGetOK describes a response with status code 200, with default header values.

OK

func NewOrdersGetOK

func NewOrdersGetOK() *OrdersGetOK

NewOrdersGetOK creates a OrdersGetOK with default headers values

func (*OrdersGetOK) Code

func (o *OrdersGetOK) Code() int

Code gets the status code for the orders get o k response

func (*OrdersGetOK) Error

func (o *OrdersGetOK) Error() string

func (*OrdersGetOK) GetPayload

func (o *OrdersGetOK) GetPayload() *models.ResponsesOrderResp

func (*OrdersGetOK) IsClientError

func (o *OrdersGetOK) IsClientError() bool

IsClientError returns true when this orders get o k response has a 4xx status code

func (*OrdersGetOK) IsCode

func (o *OrdersGetOK) IsCode(code int) bool

IsCode returns true when this orders get o k response a status code equal to that given

func (*OrdersGetOK) IsRedirect

func (o *OrdersGetOK) IsRedirect() bool

IsRedirect returns true when this orders get o k response has a 3xx status code

func (*OrdersGetOK) IsServerError

func (o *OrdersGetOK) IsServerError() bool

IsServerError returns true when this orders get o k response has a 5xx status code

func (*OrdersGetOK) IsSuccess

func (o *OrdersGetOK) IsSuccess() bool

IsSuccess returns true when this orders get o k response has a 2xx status code

func (*OrdersGetOK) String

func (o *OrdersGetOK) String() string

type OrdersGetParams

type OrdersGetParams struct {

	/* OrderID.

	   Order Id
	*/
	OrderID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OrdersGetParams contains all the parameters to send to the API endpoint

for the orders get operation.

Typically these are written to a http.Request.

func NewOrdersGetParams

func NewOrdersGetParams() *OrdersGetParams

NewOrdersGetParams creates a new OrdersGetParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewOrdersGetParamsWithContext

func NewOrdersGetParamsWithContext(ctx context.Context) *OrdersGetParams

NewOrdersGetParamsWithContext creates a new OrdersGetParams object with the ability to set a context for a request.

func NewOrdersGetParamsWithHTTPClient

func NewOrdersGetParamsWithHTTPClient(client *http.Client) *OrdersGetParams

NewOrdersGetParamsWithHTTPClient creates a new OrdersGetParams object with the ability to set a custom HTTPClient for a request.

func NewOrdersGetParamsWithTimeout

func NewOrdersGetParamsWithTimeout(timeout time.Duration) *OrdersGetParams

NewOrdersGetParamsWithTimeout creates a new OrdersGetParams object with the ability to set a timeout on a request.

func (*OrdersGetParams) SetContext

func (o *OrdersGetParams) SetContext(ctx context.Context)

SetContext adds the context to the orders get params

func (*OrdersGetParams) SetDefaults

func (o *OrdersGetParams) SetDefaults()

SetDefaults hydrates default values in the orders get params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersGetParams) SetHTTPClient

func (o *OrdersGetParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the orders get params

func (*OrdersGetParams) SetOrderID

func (o *OrdersGetParams) SetOrderID(orderID string)

SetOrderID adds the orderId to the orders get params

func (*OrdersGetParams) SetTimeout

func (o *OrdersGetParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the orders get params

func (*OrdersGetParams) WithContext

func (o *OrdersGetParams) WithContext(ctx context.Context) *OrdersGetParams

WithContext adds the context to the orders get params

func (*OrdersGetParams) WithDefaults

func (o *OrdersGetParams) WithDefaults() *OrdersGetParams

WithDefaults hydrates default values in the orders get params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersGetParams) WithHTTPClient

func (o *OrdersGetParams) WithHTTPClient(client *http.Client) *OrdersGetParams

WithHTTPClient adds the HTTPClient to the orders get params

func (*OrdersGetParams) WithOrderID

func (o *OrdersGetParams) WithOrderID(orderID string) *OrdersGetParams

WithOrderID adds the orderID to the orders get params

func (*OrdersGetParams) WithTimeout

func (o *OrdersGetParams) WithTimeout(timeout time.Duration) *OrdersGetParams

WithTimeout adds the timeout to the orders get params

func (*OrdersGetParams) WriteToRequest

func (o *OrdersGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OrdersGetReader

type OrdersGetReader struct {
	// contains filtered or unexported fields
}

OrdersGetReader is a Reader for the OrdersGet structure.

func (*OrdersGetReader) ReadResponse

func (o *OrdersGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type OrdersModifyBadRequest

type OrdersModifyBadRequest struct {
	Payload *models.ResponsesAPIError
}

OrdersModifyBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewOrdersModifyBadRequest

func NewOrdersModifyBadRequest() *OrdersModifyBadRequest

NewOrdersModifyBadRequest creates a OrdersModifyBadRequest with default headers values

func (*OrdersModifyBadRequest) Code

func (o *OrdersModifyBadRequest) Code() int

Code gets the status code for the orders modify bad request response

func (*OrdersModifyBadRequest) Error

func (o *OrdersModifyBadRequest) Error() string

func (*OrdersModifyBadRequest) GetPayload

func (*OrdersModifyBadRequest) IsClientError

func (o *OrdersModifyBadRequest) IsClientError() bool

IsClientError returns true when this orders modify bad request response has a 4xx status code

func (*OrdersModifyBadRequest) IsCode

func (o *OrdersModifyBadRequest) IsCode(code int) bool

IsCode returns true when this orders modify bad request response a status code equal to that given

func (*OrdersModifyBadRequest) IsRedirect

func (o *OrdersModifyBadRequest) IsRedirect() bool

IsRedirect returns true when this orders modify bad request response has a 3xx status code

func (*OrdersModifyBadRequest) IsServerError

func (o *OrdersModifyBadRequest) IsServerError() bool

IsServerError returns true when this orders modify bad request response has a 5xx status code

func (*OrdersModifyBadRequest) IsSuccess

func (o *OrdersModifyBadRequest) IsSuccess() bool

IsSuccess returns true when this orders modify bad request response has a 2xx status code

func (*OrdersModifyBadRequest) String

func (o *OrdersModifyBadRequest) String() string

type OrdersModifyOK

type OrdersModifyOK struct {
	Payload *models.ResponsesOrderResp
}

OrdersModifyOK describes a response with status code 200, with default header values.

OK

func NewOrdersModifyOK

func NewOrdersModifyOK() *OrdersModifyOK

NewOrdersModifyOK creates a OrdersModifyOK with default headers values

func (*OrdersModifyOK) Code

func (o *OrdersModifyOK) Code() int

Code gets the status code for the orders modify o k response

func (*OrdersModifyOK) Error

func (o *OrdersModifyOK) Error() string

func (*OrdersModifyOK) GetPayload

func (o *OrdersModifyOK) GetPayload() *models.ResponsesOrderResp

func (*OrdersModifyOK) IsClientError

func (o *OrdersModifyOK) IsClientError() bool

IsClientError returns true when this orders modify o k response has a 4xx status code

func (*OrdersModifyOK) IsCode

func (o *OrdersModifyOK) IsCode(code int) bool

IsCode returns true when this orders modify o k response a status code equal to that given

func (*OrdersModifyOK) IsRedirect

func (o *OrdersModifyOK) IsRedirect() bool

IsRedirect returns true when this orders modify o k response has a 3xx status code

func (*OrdersModifyOK) IsServerError

func (o *OrdersModifyOK) IsServerError() bool

IsServerError returns true when this orders modify o k response has a 5xx status code

func (*OrdersModifyOK) IsSuccess

func (o *OrdersModifyOK) IsSuccess() bool

IsSuccess returns true when this orders modify o k response has a 2xx status code

func (*OrdersModifyOK) String

func (o *OrdersModifyOK) String() string

type OrdersModifyParams

type OrdersModifyParams struct {

	/* OrderID.

	   Order Id
	*/
	OrderID string

	/* OrderRequest.

	   Modify Order Request
	*/
	OrderRequest *models.RequestsModifyOrderRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OrdersModifyParams contains all the parameters to send to the API endpoint

for the orders modify operation.

Typically these are written to a http.Request.

func NewOrdersModifyParams

func NewOrdersModifyParams() *OrdersModifyParams

NewOrdersModifyParams creates a new OrdersModifyParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewOrdersModifyParamsWithContext

func NewOrdersModifyParamsWithContext(ctx context.Context) *OrdersModifyParams

NewOrdersModifyParamsWithContext creates a new OrdersModifyParams object with the ability to set a context for a request.

func NewOrdersModifyParamsWithHTTPClient

func NewOrdersModifyParamsWithHTTPClient(client *http.Client) *OrdersModifyParams

NewOrdersModifyParamsWithHTTPClient creates a new OrdersModifyParams object with the ability to set a custom HTTPClient for a request.

func NewOrdersModifyParamsWithTimeout

func NewOrdersModifyParamsWithTimeout(timeout time.Duration) *OrdersModifyParams

NewOrdersModifyParamsWithTimeout creates a new OrdersModifyParams object with the ability to set a timeout on a request.

func (*OrdersModifyParams) SetContext

func (o *OrdersModifyParams) SetContext(ctx context.Context)

SetContext adds the context to the orders modify params

func (*OrdersModifyParams) SetDefaults

func (o *OrdersModifyParams) SetDefaults()

SetDefaults hydrates default values in the orders modify params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersModifyParams) SetHTTPClient

func (o *OrdersModifyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the orders modify params

func (*OrdersModifyParams) SetOrderID

func (o *OrdersModifyParams) SetOrderID(orderID string)

SetOrderID adds the orderId to the orders modify params

func (*OrdersModifyParams) SetOrderRequest

func (o *OrdersModifyParams) SetOrderRequest(orderRequest *models.RequestsModifyOrderRequest)

SetOrderRequest adds the orderRequest to the orders modify params

func (*OrdersModifyParams) SetTimeout

func (o *OrdersModifyParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the orders modify params

func (*OrdersModifyParams) WithContext

WithContext adds the context to the orders modify params

func (*OrdersModifyParams) WithDefaults

func (o *OrdersModifyParams) WithDefaults() *OrdersModifyParams

WithDefaults hydrates default values in the orders modify params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersModifyParams) WithHTTPClient

func (o *OrdersModifyParams) WithHTTPClient(client *http.Client) *OrdersModifyParams

WithHTTPClient adds the HTTPClient to the orders modify params

func (*OrdersModifyParams) WithOrderID

func (o *OrdersModifyParams) WithOrderID(orderID string) *OrdersModifyParams

WithOrderID adds the orderID to the orders modify params

func (*OrdersModifyParams) WithOrderRequest

func (o *OrdersModifyParams) WithOrderRequest(orderRequest *models.RequestsModifyOrderRequest) *OrdersModifyParams

WithOrderRequest adds the orderRequest to the orders modify params

func (*OrdersModifyParams) WithTimeout

func (o *OrdersModifyParams) WithTimeout(timeout time.Duration) *OrdersModifyParams

WithTimeout adds the timeout to the orders modify params

func (*OrdersModifyParams) WriteToRequest

func (o *OrdersModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OrdersModifyReader

type OrdersModifyReader struct {
	// contains filtered or unexported fields
}

OrdersModifyReader is a Reader for the OrdersModify structure.

func (*OrdersModifyReader) ReadResponse

func (o *OrdersModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type OrdersNewBadRequest

type OrdersNewBadRequest struct {
	Payload *models.ResponsesAPIError
}

OrdersNewBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewOrdersNewBadRequest

func NewOrdersNewBadRequest() *OrdersNewBadRequest

NewOrdersNewBadRequest creates a OrdersNewBadRequest with default headers values

func (*OrdersNewBadRequest) Code

func (o *OrdersNewBadRequest) Code() int

Code gets the status code for the orders new bad request response

func (*OrdersNewBadRequest) Error

func (o *OrdersNewBadRequest) Error() string

func (*OrdersNewBadRequest) GetPayload

func (o *OrdersNewBadRequest) GetPayload() *models.ResponsesAPIError

func (*OrdersNewBadRequest) IsClientError

func (o *OrdersNewBadRequest) IsClientError() bool

IsClientError returns true when this orders new bad request response has a 4xx status code

func (*OrdersNewBadRequest) IsCode

func (o *OrdersNewBadRequest) IsCode(code int) bool

IsCode returns true when this orders new bad request response a status code equal to that given

func (*OrdersNewBadRequest) IsRedirect

func (o *OrdersNewBadRequest) IsRedirect() bool

IsRedirect returns true when this orders new bad request response has a 3xx status code

func (*OrdersNewBadRequest) IsServerError

func (o *OrdersNewBadRequest) IsServerError() bool

IsServerError returns true when this orders new bad request response has a 5xx status code

func (*OrdersNewBadRequest) IsSuccess

func (o *OrdersNewBadRequest) IsSuccess() bool

IsSuccess returns true when this orders new bad request response has a 2xx status code

func (*OrdersNewBadRequest) String

func (o *OrdersNewBadRequest) String() string

type OrdersNewCreated

type OrdersNewCreated struct {
	Payload *models.ResponsesOrderResp
}

OrdersNewCreated describes a response with status code 201, with default header values.

Created

func NewOrdersNewCreated

func NewOrdersNewCreated() *OrdersNewCreated

NewOrdersNewCreated creates a OrdersNewCreated with default headers values

func (*OrdersNewCreated) Code

func (o *OrdersNewCreated) Code() int

Code gets the status code for the orders new created response

func (*OrdersNewCreated) Error

func (o *OrdersNewCreated) Error() string

func (*OrdersNewCreated) GetPayload

func (o *OrdersNewCreated) GetPayload() *models.ResponsesOrderResp

func (*OrdersNewCreated) IsClientError

func (o *OrdersNewCreated) IsClientError() bool

IsClientError returns true when this orders new created response has a 4xx status code

func (*OrdersNewCreated) IsCode

func (o *OrdersNewCreated) IsCode(code int) bool

IsCode returns true when this orders new created response a status code equal to that given

func (*OrdersNewCreated) IsRedirect

func (o *OrdersNewCreated) IsRedirect() bool

IsRedirect returns true when this orders new created response has a 3xx status code

func (*OrdersNewCreated) IsServerError

func (o *OrdersNewCreated) IsServerError() bool

IsServerError returns true when this orders new created response has a 5xx status code

func (*OrdersNewCreated) IsSuccess

func (o *OrdersNewCreated) IsSuccess() bool

IsSuccess returns true when this orders new created response has a 2xx status code

func (*OrdersNewCreated) String

func (o *OrdersNewCreated) String() string

type OrdersNewParams

type OrdersNewParams struct {

	/* Params.

	   Order content
	*/
	Params *models.RequestsOrderRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OrdersNewParams contains all the parameters to send to the API endpoint

for the orders new operation.

Typically these are written to a http.Request.

func NewOrdersNewParams

func NewOrdersNewParams() *OrdersNewParams

NewOrdersNewParams creates a new OrdersNewParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewOrdersNewParamsWithContext

func NewOrdersNewParamsWithContext(ctx context.Context) *OrdersNewParams

NewOrdersNewParamsWithContext creates a new OrdersNewParams object with the ability to set a context for a request.

func NewOrdersNewParamsWithHTTPClient

func NewOrdersNewParamsWithHTTPClient(client *http.Client) *OrdersNewParams

NewOrdersNewParamsWithHTTPClient creates a new OrdersNewParams object with the ability to set a custom HTTPClient for a request.

func NewOrdersNewParamsWithTimeout

func NewOrdersNewParamsWithTimeout(timeout time.Duration) *OrdersNewParams

NewOrdersNewParamsWithTimeout creates a new OrdersNewParams object with the ability to set a timeout on a request.

func (*OrdersNewParams) SetContext

func (o *OrdersNewParams) SetContext(ctx context.Context)

SetContext adds the context to the orders new params

func (*OrdersNewParams) SetDefaults

func (o *OrdersNewParams) SetDefaults()

SetDefaults hydrates default values in the orders new params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersNewParams) SetHTTPClient

func (o *OrdersNewParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the orders new params

func (*OrdersNewParams) SetParams

func (o *OrdersNewParams) SetParams(params *models.RequestsOrderRequest)

SetParams adds the params to the orders new params

func (*OrdersNewParams) SetTimeout

func (o *OrdersNewParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the orders new params

func (*OrdersNewParams) WithContext

func (o *OrdersNewParams) WithContext(ctx context.Context) *OrdersNewParams

WithContext adds the context to the orders new params

func (*OrdersNewParams) WithDefaults

func (o *OrdersNewParams) WithDefaults() *OrdersNewParams

WithDefaults hydrates default values in the orders new params (not the query body).

All values with no default are reset to their zero value.

func (*OrdersNewParams) WithHTTPClient

func (o *OrdersNewParams) WithHTTPClient(client *http.Client) *OrdersNewParams

WithHTTPClient adds the HTTPClient to the orders new params

func (*OrdersNewParams) WithParams

WithParams adds the params to the orders new params

func (*OrdersNewParams) WithTimeout

func (o *OrdersNewParams) WithTimeout(timeout time.Duration) *OrdersNewParams

WithTimeout adds the timeout to the orders new params

func (*OrdersNewParams) WriteToRequest

func (o *OrdersNewParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OrdersNewReader

type OrdersNewReader struct {
	// contains filtered or unexported fields
}

OrdersNewReader is a Reader for the OrdersNew structure.

func (*OrdersNewReader) ReadResponse

func (o *OrdersNewReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL