order

package
v0.0.0-...-2439cfa Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptApplicationXML

func WithAcceptApplicationXML(r *runtime.ClientOperation)

WithAcceptApplicationXML sets the Accept header to "application/xml".

func WithAcceptTextJSON

func WithAcceptTextJSON(r *runtime.ClientOperation)

WithAcceptTextJSON sets the Accept header to "text/json".

func WithAcceptTextXML

func WithAcceptTextXML(r *runtime.ClientOperation)

WithAcceptTextXML sets the Accept header to "text/xml".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationXML

func WithContentTypeApplicationXML(r *runtime.ClientOperation)

WithContentTypeApplicationXML sets the Content-Type header to "application/xml".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

func WithContentTypeTextJSON

func WithContentTypeTextJSON(r *runtime.ClientOperation)

WithContentTypeTextJSON sets the Content-Type header to "text/json".

func WithContentTypeTextXML

func WithContentTypeTextXML(r *runtime.ClientOperation)

WithContentTypeTextXML sets the Content-Type header to "text/xml".

Types

type Client

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

Client for order API

func (*Client) OrderDeleteOrder

func (a *Client) OrderDeleteOrder(params *OrderDeleteOrderParams, opts ...ClientOption) (*OrderDeleteOrderOK, error)

OrderDeleteOrder order delete order API

func (*Client) OrderESignOrder

func (a *Client) OrderESignOrder(params *OrderESignOrderParams, opts ...ClientOption) (*OrderESignOrderOK, error)

OrderESignOrder order e sign order API

func (*Client) OrderGetDeleted

func (a *Client) OrderGetDeleted(params *OrderGetDeletedParams, opts ...ClientOption) (*OrderGetDeletedOK, error)

OrderGetDeleted order get deleted API

func (*Client) OrderGetOrder

func (a *Client) OrderGetOrder(params *OrderGetOrderParams, opts ...ClientOption) (*OrderGetOrderOK, error)

OrderGetOrder order get order API

func (*Client) OrderGetOrders

func (a *Client) OrderGetOrders(params *OrderGetOrdersParams, opts ...ClientOption) (*OrderGetOrdersOK, error)

OrderGetOrders order get orders API

func (*Client) OrderPatchOrders

func (a *Client) OrderPatchOrders(params *OrderPatchOrdersParams, opts ...ClientOption) (*OrderPatchOrdersOK, error)

OrderPatchOrders order patch orders API

func (*Client) OrderPostOrderPayment

func (a *Client) OrderPostOrderPayment(params *OrderPostOrderPaymentParams, opts ...ClientOption) (*OrderPostOrderPaymentOK, error)

OrderPostOrderPayment order post order payment API

func (*Client) OrderPostOrders

func (a *Client) OrderPostOrders(params *OrderPostOrdersParams, opts ...ClientOption) (*OrderPostOrdersOK, error)

OrderPostOrders order post orders API

func (*Client) OrderPostSend

func (a *Client) OrderPostSend(params *OrderPostSendParams, opts ...ClientOption) (*OrderPostSendOK, error)

OrderPostSend order post send API

func (*Client) OrderPutOrderBookings

func (a *Client) OrderPutOrderBookings(params *OrderPutOrderBookingsParams, opts ...ClientOption) (*OrderPutOrderBookingsOK, error)

OrderPutOrderBookings order put order bookings API

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.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	OrderDeleteOrder(params *OrderDeleteOrderParams, opts ...ClientOption) (*OrderDeleteOrderOK, error)

	OrderESignOrder(params *OrderESignOrderParams, opts ...ClientOption) (*OrderESignOrderOK, error)

	OrderGetDeleted(params *OrderGetDeletedParams, opts ...ClientOption) (*OrderGetDeletedOK, error)

	OrderGetOrder(params *OrderGetOrderParams, opts ...ClientOption) (*OrderGetOrderOK, error)

	OrderGetOrders(params *OrderGetOrdersParams, opts ...ClientOption) (*OrderGetOrdersOK, error)

	OrderPatchOrders(params *OrderPatchOrdersParams, opts ...ClientOption) (*OrderPatchOrdersOK, error)

	OrderPostOrderPayment(params *OrderPostOrderPaymentParams, opts ...ClientOption) (*OrderPostOrderPaymentOK, error)

	OrderPostOrders(params *OrderPostOrdersParams, opts ...ClientOption) (*OrderPostOrdersOK, error)

	OrderPostSend(params *OrderPostSendParams, opts ...ClientOption) (*OrderPostSendOK, error)

	OrderPutOrderBookings(params *OrderPutOrderBookingsParams, opts ...ClientOption) (*OrderPutOrderBookingsOK, 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 order API client.

func NewClientWithBasicAuth

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

New creates a new order 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 order 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 OrderDeleteOrderOK

type OrderDeleteOrderOK struct {
	Payload int32
}

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

Delete an order

func NewOrderDeleteOrderOK

func NewOrderDeleteOrderOK() *OrderDeleteOrderOK

NewOrderDeleteOrderOK creates a OrderDeleteOrderOK with default headers values

func (*OrderDeleteOrderOK) Code

func (o *OrderDeleteOrderOK) Code() int

Code gets the status code for the order delete order o k response

func (*OrderDeleteOrderOK) Error

func (o *OrderDeleteOrderOK) Error() string

func (*OrderDeleteOrderOK) GetPayload

func (o *OrderDeleteOrderOK) GetPayload() int32

func (*OrderDeleteOrderOK) IsClientError

func (o *OrderDeleteOrderOK) IsClientError() bool

IsClientError returns true when this order delete order o k response has a 4xx status code

func (*OrderDeleteOrderOK) IsCode

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

IsCode returns true when this order delete order o k response a status code equal to that given

func (*OrderDeleteOrderOK) IsRedirect

func (o *OrderDeleteOrderOK) IsRedirect() bool

IsRedirect returns true when this order delete order o k response has a 3xx status code

func (*OrderDeleteOrderOK) IsServerError

func (o *OrderDeleteOrderOK) IsServerError() bool

IsServerError returns true when this order delete order o k response has a 5xx status code

func (*OrderDeleteOrderOK) IsSuccess

func (o *OrderDeleteOrderOK) IsSuccess() bool

IsSuccess returns true when this order delete order o k response has a 2xx status code

func (*OrderDeleteOrderOK) String

func (o *OrderDeleteOrderOK) String() string

type OrderDeleteOrderParams

type OrderDeleteOrderParams struct {

	// OrderID.
	//
	// Format: int32
	OrderID int32

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

OrderDeleteOrderParams contains all the parameters to send to the API endpoint

for the order delete order operation.

Typically these are written to a http.Request.

func NewOrderDeleteOrderParams

func NewOrderDeleteOrderParams() *OrderDeleteOrderParams

NewOrderDeleteOrderParams creates a new OrderDeleteOrderParams 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 NewOrderDeleteOrderParamsWithContext

func NewOrderDeleteOrderParamsWithContext(ctx context.Context) *OrderDeleteOrderParams

NewOrderDeleteOrderParamsWithContext creates a new OrderDeleteOrderParams object with the ability to set a context for a request.

func NewOrderDeleteOrderParamsWithHTTPClient

func NewOrderDeleteOrderParamsWithHTTPClient(client *http.Client) *OrderDeleteOrderParams

NewOrderDeleteOrderParamsWithHTTPClient creates a new OrderDeleteOrderParams object with the ability to set a custom HTTPClient for a request.

func NewOrderDeleteOrderParamsWithTimeout

func NewOrderDeleteOrderParamsWithTimeout(timeout time.Duration) *OrderDeleteOrderParams

NewOrderDeleteOrderParamsWithTimeout creates a new OrderDeleteOrderParams object with the ability to set a timeout on a request.

func (*OrderDeleteOrderParams) SetContext

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

SetContext adds the context to the order delete order params

func (*OrderDeleteOrderParams) SetDefaults

func (o *OrderDeleteOrderParams) SetDefaults()

SetDefaults hydrates default values in the order delete order params (not the query body).

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

func (*OrderDeleteOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order delete order params

func (*OrderDeleteOrderParams) SetOrderID

func (o *OrderDeleteOrderParams) SetOrderID(orderID int32)

SetOrderID adds the orderId to the order delete order params

func (*OrderDeleteOrderParams) SetTimeout

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

SetTimeout adds the timeout to the order delete order params

func (*OrderDeleteOrderParams) WithContext

WithContext adds the context to the order delete order params

func (*OrderDeleteOrderParams) WithDefaults

WithDefaults hydrates default values in the order delete order params (not the query body).

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

func (*OrderDeleteOrderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order delete order params

func (*OrderDeleteOrderParams) WithOrderID

func (o *OrderDeleteOrderParams) WithOrderID(orderID int32) *OrderDeleteOrderParams

WithOrderID adds the orderID to the order delete order params

func (*OrderDeleteOrderParams) WithTimeout

WithTimeout adds the timeout to the order delete order params

func (*OrderDeleteOrderParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrderDeleteOrderReader

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

OrderDeleteOrderReader is a Reader for the OrderDeleteOrder structure.

func (*OrderDeleteOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderESignOrderOK

type OrderESignOrderOK struct {
	Payload int32
}

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

E-Sign an order

func NewOrderESignOrderOK

func NewOrderESignOrderOK() *OrderESignOrderOK

NewOrderESignOrderOK creates a OrderESignOrderOK with default headers values

func (*OrderESignOrderOK) Code

func (o *OrderESignOrderOK) Code() int

Code gets the status code for the order e sign order o k response

func (*OrderESignOrderOK) Error

func (o *OrderESignOrderOK) Error() string

func (*OrderESignOrderOK) GetPayload

func (o *OrderESignOrderOK) GetPayload() int32

func (*OrderESignOrderOK) IsClientError

func (o *OrderESignOrderOK) IsClientError() bool

IsClientError returns true when this order e sign order o k response has a 4xx status code

func (*OrderESignOrderOK) IsCode

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

IsCode returns true when this order e sign order o k response a status code equal to that given

func (*OrderESignOrderOK) IsRedirect

func (o *OrderESignOrderOK) IsRedirect() bool

IsRedirect returns true when this order e sign order o k response has a 3xx status code

func (*OrderESignOrderOK) IsServerError

func (o *OrderESignOrderOK) IsServerError() bool

IsServerError returns true when this order e sign order o k response has a 5xx status code

func (*OrderESignOrderOK) IsSuccess

func (o *OrderESignOrderOK) IsSuccess() bool

IsSuccess returns true when this order e sign order o k response has a 2xx status code

func (*OrderESignOrderOK) String

func (o *OrderESignOrderOK) String() string

type OrderESignOrderParams

type OrderESignOrderParams struct {

	// OrderID.
	//
	// Format: int32
	OrderID int32

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

OrderESignOrderParams contains all the parameters to send to the API endpoint

for the order e sign order operation.

Typically these are written to a http.Request.

func NewOrderESignOrderParams

func NewOrderESignOrderParams() *OrderESignOrderParams

NewOrderESignOrderParams creates a new OrderESignOrderParams 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 NewOrderESignOrderParamsWithContext

func NewOrderESignOrderParamsWithContext(ctx context.Context) *OrderESignOrderParams

NewOrderESignOrderParamsWithContext creates a new OrderESignOrderParams object with the ability to set a context for a request.

func NewOrderESignOrderParamsWithHTTPClient

func NewOrderESignOrderParamsWithHTTPClient(client *http.Client) *OrderESignOrderParams

NewOrderESignOrderParamsWithHTTPClient creates a new OrderESignOrderParams object with the ability to set a custom HTTPClient for a request.

func NewOrderESignOrderParamsWithTimeout

func NewOrderESignOrderParamsWithTimeout(timeout time.Duration) *OrderESignOrderParams

NewOrderESignOrderParamsWithTimeout creates a new OrderESignOrderParams object with the ability to set a timeout on a request.

func (*OrderESignOrderParams) SetContext

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

SetContext adds the context to the order e sign order params

func (*OrderESignOrderParams) SetDefaults

func (o *OrderESignOrderParams) SetDefaults()

SetDefaults hydrates default values in the order e sign order params (not the query body).

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

func (*OrderESignOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order e sign order params

func (*OrderESignOrderParams) SetOrderID

func (o *OrderESignOrderParams) SetOrderID(orderID int32)

SetOrderID adds the orderId to the order e sign order params

func (*OrderESignOrderParams) SetTimeout

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

SetTimeout adds the timeout to the order e sign order params

func (*OrderESignOrderParams) WithContext

WithContext adds the context to the order e sign order params

func (*OrderESignOrderParams) WithDefaults

func (o *OrderESignOrderParams) WithDefaults() *OrderESignOrderParams

WithDefaults hydrates default values in the order e sign order params (not the query body).

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

func (*OrderESignOrderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order e sign order params

func (*OrderESignOrderParams) WithOrderID

func (o *OrderESignOrderParams) WithOrderID(orderID int32) *OrderESignOrderParams

WithOrderID adds the orderID to the order e sign order params

func (*OrderESignOrderParams) WithTimeout

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

WithTimeout adds the timeout to the order e sign order params

func (*OrderESignOrderParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OrderESignOrderReader

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

OrderESignOrderReader is a Reader for the OrderESignOrder structure.

func (*OrderESignOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderGetDeletedOK

type OrderGetDeletedOK struct {
}

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

All orders have been sent

func NewOrderGetDeletedOK

func NewOrderGetDeletedOK() *OrderGetDeletedOK

NewOrderGetDeletedOK creates a OrderGetDeletedOK with default headers values

func (*OrderGetDeletedOK) Code

func (o *OrderGetDeletedOK) Code() int

Code gets the status code for the order get deleted o k response

func (*OrderGetDeletedOK) Error

func (o *OrderGetDeletedOK) Error() string

func (*OrderGetDeletedOK) IsClientError

func (o *OrderGetDeletedOK) IsClientError() bool

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

func (*OrderGetDeletedOK) IsCode

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

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

func (*OrderGetDeletedOK) IsRedirect

func (o *OrderGetDeletedOK) IsRedirect() bool

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

func (*OrderGetDeletedOK) IsServerError

func (o *OrderGetDeletedOK) IsServerError() bool

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

func (*OrderGetDeletedOK) IsSuccess

func (o *OrderGetDeletedOK) IsSuccess() bool

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

func (*OrderGetDeletedOK) String

func (o *OrderGetDeletedOK) String() string

type OrderGetDeletedParams

type OrderGetDeletedParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OrderGetDeletedParams contains all the parameters to send to the API endpoint

for the order get deleted operation.

Typically these are written to a http.Request.

func NewOrderGetDeletedParams

func NewOrderGetDeletedParams() *OrderGetDeletedParams

NewOrderGetDeletedParams creates a new OrderGetDeletedParams 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 NewOrderGetDeletedParamsWithContext

func NewOrderGetDeletedParamsWithContext(ctx context.Context) *OrderGetDeletedParams

NewOrderGetDeletedParamsWithContext creates a new OrderGetDeletedParams object with the ability to set a context for a request.

func NewOrderGetDeletedParamsWithHTTPClient

func NewOrderGetDeletedParamsWithHTTPClient(client *http.Client) *OrderGetDeletedParams

NewOrderGetDeletedParamsWithHTTPClient creates a new OrderGetDeletedParams object with the ability to set a custom HTTPClient for a request.

func NewOrderGetDeletedParamsWithTimeout

func NewOrderGetDeletedParamsWithTimeout(timeout time.Duration) *OrderGetDeletedParams

NewOrderGetDeletedParamsWithTimeout creates a new OrderGetDeletedParams object with the ability to set a timeout on a request.

func (*OrderGetDeletedParams) SetContext

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

SetContext adds the context to the order get deleted params

func (*OrderGetDeletedParams) SetDefaults

func (o *OrderGetDeletedParams) SetDefaults()

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

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

func (*OrderGetDeletedParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order get deleted params

func (*OrderGetDeletedParams) SetTimeout

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

SetTimeout adds the timeout to the order get deleted params

func (*OrderGetDeletedParams) WithContext

WithContext adds the context to the order get deleted params

func (*OrderGetDeletedParams) WithDefaults

func (o *OrderGetDeletedParams) WithDefaults() *OrderGetDeletedParams

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

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

func (*OrderGetDeletedParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order get deleted params

func (*OrderGetDeletedParams) WithTimeout

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

WithTimeout adds the timeout to the order get deleted params

func (*OrderGetDeletedParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OrderGetDeletedReader

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

OrderGetDeletedReader is a Reader for the OrderGetDeleted structure.

func (*OrderGetDeletedReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderGetOrderOK

type OrderGetOrderOK struct {
	Payload *model.Order
}

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

Get an order

func NewOrderGetOrderOK

func NewOrderGetOrderOK() *OrderGetOrderOK

NewOrderGetOrderOK creates a OrderGetOrderOK with default headers values

func (*OrderGetOrderOK) Code

func (o *OrderGetOrderOK) Code() int

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

func (*OrderGetOrderOK) Error

func (o *OrderGetOrderOK) Error() string

func (*OrderGetOrderOK) GetPayload

func (o *OrderGetOrderOK) GetPayload() *model.Order

func (*OrderGetOrderOK) IsClientError

func (o *OrderGetOrderOK) IsClientError() bool

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

func (*OrderGetOrderOK) IsCode

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

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

func (*OrderGetOrderOK) IsRedirect

func (o *OrderGetOrderOK) IsRedirect() bool

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

func (*OrderGetOrderOK) IsServerError

func (o *OrderGetOrderOK) IsServerError() bool

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

func (*OrderGetOrderOK) IsSuccess

func (o *OrderGetOrderOK) IsSuccess() bool

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

func (*OrderGetOrderOK) String

func (o *OrderGetOrderOK) String() string

type OrderGetOrderParams

type OrderGetOrderParams struct {

	// DocumentType.
	DocumentType *string

	// OrderID.
	//
	// Format: int32
	OrderID int32

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

OrderGetOrderParams contains all the parameters to send to the API endpoint

for the order get order operation.

Typically these are written to a http.Request.

func NewOrderGetOrderParams

func NewOrderGetOrderParams() *OrderGetOrderParams

NewOrderGetOrderParams creates a new OrderGetOrderParams 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 NewOrderGetOrderParamsWithContext

func NewOrderGetOrderParamsWithContext(ctx context.Context) *OrderGetOrderParams

NewOrderGetOrderParamsWithContext creates a new OrderGetOrderParams object with the ability to set a context for a request.

func NewOrderGetOrderParamsWithHTTPClient

func NewOrderGetOrderParamsWithHTTPClient(client *http.Client) *OrderGetOrderParams

NewOrderGetOrderParamsWithHTTPClient creates a new OrderGetOrderParams object with the ability to set a custom HTTPClient for a request.

func NewOrderGetOrderParamsWithTimeout

func NewOrderGetOrderParamsWithTimeout(timeout time.Duration) *OrderGetOrderParams

NewOrderGetOrderParamsWithTimeout creates a new OrderGetOrderParams object with the ability to set a timeout on a request.

func (*OrderGetOrderParams) SetContext

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

SetContext adds the context to the order get order params

func (*OrderGetOrderParams) SetDefaults

func (o *OrderGetOrderParams) SetDefaults()

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

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

func (*OrderGetOrderParams) SetDocumentType

func (o *OrderGetOrderParams) SetDocumentType(documentType *string)

SetDocumentType adds the documentType to the order get order params

func (*OrderGetOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order get order params

func (*OrderGetOrderParams) SetOrderID

func (o *OrderGetOrderParams) SetOrderID(orderID int32)

SetOrderID adds the orderId to the order get order params

func (*OrderGetOrderParams) SetTimeout

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

SetTimeout adds the timeout to the order get order params

func (*OrderGetOrderParams) WithContext

WithContext adds the context to the order get order params

func (*OrderGetOrderParams) WithDefaults

func (o *OrderGetOrderParams) WithDefaults() *OrderGetOrderParams

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

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

func (*OrderGetOrderParams) WithDocumentType

func (o *OrderGetOrderParams) WithDocumentType(documentType *string) *OrderGetOrderParams

WithDocumentType adds the documentType to the order get order params

func (*OrderGetOrderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order get order params

func (*OrderGetOrderParams) WithOrderID

func (o *OrderGetOrderParams) WithOrderID(orderID int32) *OrderGetOrderParams

WithOrderID adds the orderID to the order get order params

func (*OrderGetOrderParams) WithTimeout

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

WithTimeout adds the timeout to the order get order params

func (*OrderGetOrderParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OrderGetOrderReader

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

OrderGetOrderReader is a Reader for the OrderGetOrder structure.

func (*OrderGetOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderGetOrdersOK

type OrderGetOrdersOK struct {
	Payload []*model.Order
}

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

Get a list of invoices/creditnotes/offers/...

func NewOrderGetOrdersOK

func NewOrderGetOrdersOK() *OrderGetOrdersOK

NewOrderGetOrdersOK creates a OrderGetOrdersOK with default headers values

func (*OrderGetOrdersOK) Code

func (o *OrderGetOrdersOK) Code() int

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

func (*OrderGetOrdersOK) Error

func (o *OrderGetOrdersOK) Error() string

func (*OrderGetOrdersOK) GetPayload

func (o *OrderGetOrdersOK) GetPayload() []*model.Order

func (*OrderGetOrdersOK) IsClientError

func (o *OrderGetOrdersOK) IsClientError() bool

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

func (*OrderGetOrdersOK) IsCode

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

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

func (*OrderGetOrdersOK) IsRedirect

func (o *OrderGetOrdersOK) IsRedirect() bool

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

func (*OrderGetOrdersOK) IsServerError

func (o *OrderGetOrdersOK) IsServerError() bool

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

func (*OrderGetOrdersOK) IsSuccess

func (o *OrderGetOrdersOK) IsSuccess() bool

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

func (*OrderGetOrdersOK) String

func (o *OrderGetOrdersOK) String() string

type OrderGetOrdersParams

type OrderGetOrdersParams struct {

	// FullTextSearch.
	FullTextSearch *string

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

OrderGetOrdersParams contains all the parameters to send to the API endpoint

for the order get orders operation.

Typically these are written to a http.Request.

func NewOrderGetOrdersParams

func NewOrderGetOrdersParams() *OrderGetOrdersParams

NewOrderGetOrdersParams creates a new OrderGetOrdersParams 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 NewOrderGetOrdersParamsWithContext

func NewOrderGetOrdersParamsWithContext(ctx context.Context) *OrderGetOrdersParams

NewOrderGetOrdersParamsWithContext creates a new OrderGetOrdersParams object with the ability to set a context for a request.

func NewOrderGetOrdersParamsWithHTTPClient

func NewOrderGetOrdersParamsWithHTTPClient(client *http.Client) *OrderGetOrdersParams

NewOrderGetOrdersParamsWithHTTPClient creates a new OrderGetOrdersParams object with the ability to set a custom HTTPClient for a request.

func NewOrderGetOrdersParamsWithTimeout

func NewOrderGetOrdersParamsWithTimeout(timeout time.Duration) *OrderGetOrdersParams

NewOrderGetOrdersParamsWithTimeout creates a new OrderGetOrdersParams object with the ability to set a timeout on a request.

func (*OrderGetOrdersParams) SetContext

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

SetContext adds the context to the order get orders params

func (*OrderGetOrdersParams) SetDefaults

func (o *OrderGetOrdersParams) SetDefaults()

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

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

func (*OrderGetOrdersParams) SetFullTextSearch

func (o *OrderGetOrdersParams) SetFullTextSearch(fullTextSearch *string)

SetFullTextSearch adds the fullTextSearch to the order get orders params

func (*OrderGetOrdersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order get orders params

func (*OrderGetOrdersParams) SetTimeout

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

SetTimeout adds the timeout to the order get orders params

func (*OrderGetOrdersParams) WithContext

WithContext adds the context to the order get orders params

func (*OrderGetOrdersParams) WithDefaults

func (o *OrderGetOrdersParams) WithDefaults() *OrderGetOrdersParams

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

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

func (*OrderGetOrdersParams) WithFullTextSearch

func (o *OrderGetOrdersParams) WithFullTextSearch(fullTextSearch *string) *OrderGetOrdersParams

WithFullTextSearch adds the fullTextSearch to the order get orders params

func (*OrderGetOrdersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order get orders params

func (*OrderGetOrdersParams) WithTimeout

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

WithTimeout adds the timeout to the order get orders params

func (*OrderGetOrdersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OrderGetOrdersReader

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

OrderGetOrdersReader is a Reader for the OrderGetOrders structure.

func (*OrderGetOrdersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderPatchOrdersOK

type OrderPatchOrdersOK struct {
}

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

Patch an order

func NewOrderPatchOrdersOK

func NewOrderPatchOrdersOK() *OrderPatchOrdersOK

NewOrderPatchOrdersOK creates a OrderPatchOrdersOK with default headers values

func (*OrderPatchOrdersOK) Code

func (o *OrderPatchOrdersOK) Code() int

Code gets the status code for the order patch orders o k response

func (*OrderPatchOrdersOK) Error

func (o *OrderPatchOrdersOK) Error() string

func (*OrderPatchOrdersOK) IsClientError

func (o *OrderPatchOrdersOK) IsClientError() bool

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

func (*OrderPatchOrdersOK) IsCode

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

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

func (*OrderPatchOrdersOK) IsRedirect

func (o *OrderPatchOrdersOK) IsRedirect() bool

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

func (*OrderPatchOrdersOK) IsServerError

func (o *OrderPatchOrdersOK) IsServerError() bool

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

func (*OrderPatchOrdersOK) IsSuccess

func (o *OrderPatchOrdersOK) IsSuccess() bool

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

func (*OrderPatchOrdersOK) String

func (o *OrderPatchOrdersOK) String() string

type OrderPatchOrdersParams

type OrderPatchOrdersParams struct {

	// Delta.
	Delta interface{}

	// OrderID.
	//
	// Format: int32
	OrderID int32

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

OrderPatchOrdersParams contains all the parameters to send to the API endpoint

for the order patch orders operation.

Typically these are written to a http.Request.

func NewOrderPatchOrdersParams

func NewOrderPatchOrdersParams() *OrderPatchOrdersParams

NewOrderPatchOrdersParams creates a new OrderPatchOrdersParams 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 NewOrderPatchOrdersParamsWithContext

func NewOrderPatchOrdersParamsWithContext(ctx context.Context) *OrderPatchOrdersParams

NewOrderPatchOrdersParamsWithContext creates a new OrderPatchOrdersParams object with the ability to set a context for a request.

func NewOrderPatchOrdersParamsWithHTTPClient

func NewOrderPatchOrdersParamsWithHTTPClient(client *http.Client) *OrderPatchOrdersParams

NewOrderPatchOrdersParamsWithHTTPClient creates a new OrderPatchOrdersParams object with the ability to set a custom HTTPClient for a request.

func NewOrderPatchOrdersParamsWithTimeout

func NewOrderPatchOrdersParamsWithTimeout(timeout time.Duration) *OrderPatchOrdersParams

NewOrderPatchOrdersParamsWithTimeout creates a new OrderPatchOrdersParams object with the ability to set a timeout on a request.

func (*OrderPatchOrdersParams) SetContext

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

SetContext adds the context to the order patch orders params

func (*OrderPatchOrdersParams) SetDefaults

func (o *OrderPatchOrdersParams) SetDefaults()

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

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

func (*OrderPatchOrdersParams) SetDelta

func (o *OrderPatchOrdersParams) SetDelta(delta interface{})

SetDelta adds the delta to the order patch orders params

func (*OrderPatchOrdersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order patch orders params

func (*OrderPatchOrdersParams) SetOrderID

func (o *OrderPatchOrdersParams) SetOrderID(orderID int32)

SetOrderID adds the orderId to the order patch orders params

func (*OrderPatchOrdersParams) SetTimeout

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

SetTimeout adds the timeout to the order patch orders params

func (*OrderPatchOrdersParams) WithContext

WithContext adds the context to the order patch orders params

func (*OrderPatchOrdersParams) WithDefaults

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

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

func (*OrderPatchOrdersParams) WithDelta

func (o *OrderPatchOrdersParams) WithDelta(delta interface{}) *OrderPatchOrdersParams

WithDelta adds the delta to the order patch orders params

func (*OrderPatchOrdersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order patch orders params

func (*OrderPatchOrdersParams) WithOrderID

func (o *OrderPatchOrdersParams) WithOrderID(orderID int32) *OrderPatchOrdersParams

WithOrderID adds the orderID to the order patch orders params

func (*OrderPatchOrdersParams) WithTimeout

WithTimeout adds the timeout to the order patch orders params

func (*OrderPatchOrdersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrderPatchOrdersReader

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

OrderPatchOrdersReader is a Reader for the OrderPatchOrders structure.

func (*OrderPatchOrdersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderPostOrderPaymentOK

type OrderPostOrderPaymentOK struct {
}

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

Add partial payment to order

func NewOrderPostOrderPaymentOK

func NewOrderPostOrderPaymentOK() *OrderPostOrderPaymentOK

NewOrderPostOrderPaymentOK creates a OrderPostOrderPaymentOK with default headers values

func (*OrderPostOrderPaymentOK) Code

func (o *OrderPostOrderPaymentOK) Code() int

Code gets the status code for the order post order payment o k response

func (*OrderPostOrderPaymentOK) Error

func (o *OrderPostOrderPaymentOK) Error() string

func (*OrderPostOrderPaymentOK) IsClientError

func (o *OrderPostOrderPaymentOK) IsClientError() bool

IsClientError returns true when this order post order payment o k response has a 4xx status code

func (*OrderPostOrderPaymentOK) IsCode

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

IsCode returns true when this order post order payment o k response a status code equal to that given

func (*OrderPostOrderPaymentOK) IsRedirect

func (o *OrderPostOrderPaymentOK) IsRedirect() bool

IsRedirect returns true when this order post order payment o k response has a 3xx status code

func (*OrderPostOrderPaymentOK) IsServerError

func (o *OrderPostOrderPaymentOK) IsServerError() bool

IsServerError returns true when this order post order payment o k response has a 5xx status code

func (*OrderPostOrderPaymentOK) IsSuccess

func (o *OrderPostOrderPaymentOK) IsSuccess() bool

IsSuccess returns true when this order post order payment o k response has a 2xx status code

func (*OrderPostOrderPaymentOK) String

func (o *OrderPostOrderPaymentOK) String() string

type OrderPostOrderPaymentParams

type OrderPostOrderPaymentParams struct {

	// Data.
	Data *model.PostPaymentRequest

	// OrderID.
	//
	// Format: int32
	OrderID int32

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

OrderPostOrderPaymentParams contains all the parameters to send to the API endpoint

for the order post order payment operation.

Typically these are written to a http.Request.

func NewOrderPostOrderPaymentParams

func NewOrderPostOrderPaymentParams() *OrderPostOrderPaymentParams

NewOrderPostOrderPaymentParams creates a new OrderPostOrderPaymentParams 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 NewOrderPostOrderPaymentParamsWithContext

func NewOrderPostOrderPaymentParamsWithContext(ctx context.Context) *OrderPostOrderPaymentParams

NewOrderPostOrderPaymentParamsWithContext creates a new OrderPostOrderPaymentParams object with the ability to set a context for a request.

func NewOrderPostOrderPaymentParamsWithHTTPClient

func NewOrderPostOrderPaymentParamsWithHTTPClient(client *http.Client) *OrderPostOrderPaymentParams

NewOrderPostOrderPaymentParamsWithHTTPClient creates a new OrderPostOrderPaymentParams object with the ability to set a custom HTTPClient for a request.

func NewOrderPostOrderPaymentParamsWithTimeout

func NewOrderPostOrderPaymentParamsWithTimeout(timeout time.Duration) *OrderPostOrderPaymentParams

NewOrderPostOrderPaymentParamsWithTimeout creates a new OrderPostOrderPaymentParams object with the ability to set a timeout on a request.

func (*OrderPostOrderPaymentParams) SetContext

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

SetContext adds the context to the order post order payment params

func (*OrderPostOrderPaymentParams) SetData

SetData adds the data to the order post order payment params

func (*OrderPostOrderPaymentParams) SetDefaults

func (o *OrderPostOrderPaymentParams) SetDefaults()

SetDefaults hydrates default values in the order post order payment params (not the query body).

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

func (*OrderPostOrderPaymentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order post order payment params

func (*OrderPostOrderPaymentParams) SetOrderID

func (o *OrderPostOrderPaymentParams) SetOrderID(orderID int32)

SetOrderID adds the orderId to the order post order payment params

func (*OrderPostOrderPaymentParams) SetTimeout

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

SetTimeout adds the timeout to the order post order payment params

func (*OrderPostOrderPaymentParams) WithContext

WithContext adds the context to the order post order payment params

func (*OrderPostOrderPaymentParams) WithData

WithData adds the data to the order post order payment params

func (*OrderPostOrderPaymentParams) WithDefaults

WithDefaults hydrates default values in the order post order payment params (not the query body).

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

func (*OrderPostOrderPaymentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the order post order payment params

func (*OrderPostOrderPaymentParams) WithOrderID

WithOrderID adds the orderID to the order post order payment params

func (*OrderPostOrderPaymentParams) WithTimeout

WithTimeout adds the timeout to the order post order payment params

func (*OrderPostOrderPaymentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrderPostOrderPaymentReader

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

OrderPostOrderPaymentReader is a Reader for the OrderPostOrderPayment structure.

func (*OrderPostOrderPaymentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderPostOrdersOK

type OrderPostOrdersOK struct {
	Payload int32
}

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

Save an order

func NewOrderPostOrdersOK

func NewOrderPostOrdersOK() *OrderPostOrdersOK

NewOrderPostOrdersOK creates a OrderPostOrdersOK with default headers values

func (*OrderPostOrdersOK) Code

func (o *OrderPostOrdersOK) Code() int

Code gets the status code for the order post orders o k response

func (*OrderPostOrdersOK) Error

func (o *OrderPostOrdersOK) Error() string

func (*OrderPostOrdersOK) GetPayload

func (o *OrderPostOrdersOK) GetPayload() int32

func (*OrderPostOrdersOK) IsClientError

func (o *OrderPostOrdersOK) IsClientError() bool

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

func (*OrderPostOrdersOK) IsCode

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

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

func (*OrderPostOrdersOK) IsRedirect

func (o *OrderPostOrdersOK) IsRedirect() bool

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

func (*OrderPostOrdersOK) IsServerError

func (o *OrderPostOrdersOK) IsServerError() bool

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

func (*OrderPostOrdersOK) IsSuccess

func (o *OrderPostOrdersOK) IsSuccess() bool

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

func (*OrderPostOrdersOK) String

func (o *OrderPostOrdersOK) String() string

type OrderPostOrdersParams

type OrderPostOrdersParams struct {

	// Order.
	Order *model.Order

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

OrderPostOrdersParams contains all the parameters to send to the API endpoint

for the order post orders operation.

Typically these are written to a http.Request.

func NewOrderPostOrdersParams

func NewOrderPostOrdersParams() *OrderPostOrdersParams

NewOrderPostOrdersParams creates a new OrderPostOrdersParams 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 NewOrderPostOrdersParamsWithContext

func NewOrderPostOrdersParamsWithContext(ctx context.Context) *OrderPostOrdersParams

NewOrderPostOrdersParamsWithContext creates a new OrderPostOrdersParams object with the ability to set a context for a request.

func NewOrderPostOrdersParamsWithHTTPClient

func NewOrderPostOrdersParamsWithHTTPClient(client *http.Client) *OrderPostOrdersParams

NewOrderPostOrdersParamsWithHTTPClient creates a new OrderPostOrdersParams object with the ability to set a custom HTTPClient for a request.

func NewOrderPostOrdersParamsWithTimeout

func NewOrderPostOrdersParamsWithTimeout(timeout time.Duration) *OrderPostOrdersParams

NewOrderPostOrdersParamsWithTimeout creates a new OrderPostOrdersParams object with the ability to set a timeout on a request.

func (*OrderPostOrdersParams) SetContext

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

SetContext adds the context to the order post orders params

func (*OrderPostOrdersParams) SetDefaults

func (o *OrderPostOrdersParams) SetDefaults()

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

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

func (*OrderPostOrdersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order post orders params

func (*OrderPostOrdersParams) SetOrder

func (o *OrderPostOrdersParams) SetOrder(order *model.Order)

SetOrder adds the order to the order post orders params

func (*OrderPostOrdersParams) SetTimeout

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

SetTimeout adds the timeout to the order post orders params

func (*OrderPostOrdersParams) WithContext

WithContext adds the context to the order post orders params

func (*OrderPostOrdersParams) WithDefaults

func (o *OrderPostOrdersParams) WithDefaults() *OrderPostOrdersParams

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

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

func (*OrderPostOrdersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order post orders params

func (*OrderPostOrdersParams) WithOrder

WithOrder adds the order to the order post orders params

func (*OrderPostOrdersParams) WithTimeout

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

WithTimeout adds the timeout to the order post orders params

func (*OrderPostOrdersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OrderPostOrdersReader

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

OrderPostOrdersReader is a Reader for the OrderPostOrders structure.

func (*OrderPostOrdersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderPostSendOK

type OrderPostSendOK struct {
}

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

All orders have been sent

func NewOrderPostSendOK

func NewOrderPostSendOK() *OrderPostSendOK

NewOrderPostSendOK creates a OrderPostSendOK with default headers values

func (*OrderPostSendOK) Code

func (o *OrderPostSendOK) Code() int

Code gets the status code for the order post send o k response

func (*OrderPostSendOK) Error

func (o *OrderPostSendOK) Error() string

func (*OrderPostSendOK) IsClientError

func (o *OrderPostSendOK) IsClientError() bool

IsClientError returns true when this order post send o k response has a 4xx status code

func (*OrderPostSendOK) IsCode

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

IsCode returns true when this order post send o k response a status code equal to that given

func (*OrderPostSendOK) IsRedirect

func (o *OrderPostSendOK) IsRedirect() bool

IsRedirect returns true when this order post send o k response has a 3xx status code

func (*OrderPostSendOK) IsServerError

func (o *OrderPostSendOK) IsServerError() bool

IsServerError returns true when this order post send o k response has a 5xx status code

func (*OrderPostSendOK) IsSuccess

func (o *OrderPostSendOK) IsSuccess() bool

IsSuccess returns true when this order post send o k response has a 2xx status code

func (*OrderPostSendOK) String

func (o *OrderPostSendOK) String() string

type OrderPostSendParams

type OrderPostSendParams struct {

	// SendRequest.
	SendRequest *model.SendRequest

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

OrderPostSendParams contains all the parameters to send to the API endpoint

for the order post send operation.

Typically these are written to a http.Request.

func NewOrderPostSendParams

func NewOrderPostSendParams() *OrderPostSendParams

NewOrderPostSendParams creates a new OrderPostSendParams 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 NewOrderPostSendParamsWithContext

func NewOrderPostSendParamsWithContext(ctx context.Context) *OrderPostSendParams

NewOrderPostSendParamsWithContext creates a new OrderPostSendParams object with the ability to set a context for a request.

func NewOrderPostSendParamsWithHTTPClient

func NewOrderPostSendParamsWithHTTPClient(client *http.Client) *OrderPostSendParams

NewOrderPostSendParamsWithHTTPClient creates a new OrderPostSendParams object with the ability to set a custom HTTPClient for a request.

func NewOrderPostSendParamsWithTimeout

func NewOrderPostSendParamsWithTimeout(timeout time.Duration) *OrderPostSendParams

NewOrderPostSendParamsWithTimeout creates a new OrderPostSendParams object with the ability to set a timeout on a request.

func (*OrderPostSendParams) SetContext

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

SetContext adds the context to the order post send params

func (*OrderPostSendParams) SetDefaults

func (o *OrderPostSendParams) SetDefaults()

SetDefaults hydrates default values in the order post send params (not the query body).

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

func (*OrderPostSendParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order post send params

func (*OrderPostSendParams) SetSendRequest

func (o *OrderPostSendParams) SetSendRequest(sendRequest *model.SendRequest)

SetSendRequest adds the sendRequest to the order post send params

func (*OrderPostSendParams) SetTimeout

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

SetTimeout adds the timeout to the order post send params

func (*OrderPostSendParams) WithContext

WithContext adds the context to the order post send params

func (*OrderPostSendParams) WithDefaults

func (o *OrderPostSendParams) WithDefaults() *OrderPostSendParams

WithDefaults hydrates default values in the order post send params (not the query body).

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

func (*OrderPostSendParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order post send params

func (*OrderPostSendParams) WithSendRequest

func (o *OrderPostSendParams) WithSendRequest(sendRequest *model.SendRequest) *OrderPostSendParams

WithSendRequest adds the sendRequest to the order post send params

func (*OrderPostSendParams) WithTimeout

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

WithTimeout adds the timeout to the order post send params

func (*OrderPostSendParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OrderPostSendReader

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

OrderPostSendReader is a Reader for the OrderPostSend structure.

func (*OrderPostSendReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderPutOrderBookingsOK

type OrderPutOrderBookingsOK struct {
}

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

Save booking lines collection

func NewOrderPutOrderBookingsOK

func NewOrderPutOrderBookingsOK() *OrderPutOrderBookingsOK

NewOrderPutOrderBookingsOK creates a OrderPutOrderBookingsOK with default headers values

func (*OrderPutOrderBookingsOK) Code

func (o *OrderPutOrderBookingsOK) Code() int

Code gets the status code for the order put order bookings o k response

func (*OrderPutOrderBookingsOK) Error

func (o *OrderPutOrderBookingsOK) Error() string

func (*OrderPutOrderBookingsOK) IsClientError

func (o *OrderPutOrderBookingsOK) IsClientError() bool

IsClientError returns true when this order put order bookings o k response has a 4xx status code

func (*OrderPutOrderBookingsOK) IsCode

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

IsCode returns true when this order put order bookings o k response a status code equal to that given

func (*OrderPutOrderBookingsOK) IsRedirect

func (o *OrderPutOrderBookingsOK) IsRedirect() bool

IsRedirect returns true when this order put order bookings o k response has a 3xx status code

func (*OrderPutOrderBookingsOK) IsServerError

func (o *OrderPutOrderBookingsOK) IsServerError() bool

IsServerError returns true when this order put order bookings o k response has a 5xx status code

func (*OrderPutOrderBookingsOK) IsSuccess

func (o *OrderPutOrderBookingsOK) IsSuccess() bool

IsSuccess returns true when this order put order bookings o k response has a 2xx status code

func (*OrderPutOrderBookingsOK) String

func (o *OrderPutOrderBookingsOK) String() string

type OrderPutOrderBookingsParams

type OrderPutOrderBookingsParams struct {

	// BookingEntries.
	BookingEntries []*model.BookingEntry

	// OrderID.
	//
	// Format: int32
	OrderID int32

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

OrderPutOrderBookingsParams contains all the parameters to send to the API endpoint

for the order put order bookings operation.

Typically these are written to a http.Request.

func NewOrderPutOrderBookingsParams

func NewOrderPutOrderBookingsParams() *OrderPutOrderBookingsParams

NewOrderPutOrderBookingsParams creates a new OrderPutOrderBookingsParams 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 NewOrderPutOrderBookingsParamsWithContext

func NewOrderPutOrderBookingsParamsWithContext(ctx context.Context) *OrderPutOrderBookingsParams

NewOrderPutOrderBookingsParamsWithContext creates a new OrderPutOrderBookingsParams object with the ability to set a context for a request.

func NewOrderPutOrderBookingsParamsWithHTTPClient

func NewOrderPutOrderBookingsParamsWithHTTPClient(client *http.Client) *OrderPutOrderBookingsParams

NewOrderPutOrderBookingsParamsWithHTTPClient creates a new OrderPutOrderBookingsParams object with the ability to set a custom HTTPClient for a request.

func NewOrderPutOrderBookingsParamsWithTimeout

func NewOrderPutOrderBookingsParamsWithTimeout(timeout time.Duration) *OrderPutOrderBookingsParams

NewOrderPutOrderBookingsParamsWithTimeout creates a new OrderPutOrderBookingsParams object with the ability to set a timeout on a request.

func (*OrderPutOrderBookingsParams) SetBookingEntries

func (o *OrderPutOrderBookingsParams) SetBookingEntries(bookingEntries []*model.BookingEntry)

SetBookingEntries adds the bookingEntries to the order put order bookings params

func (*OrderPutOrderBookingsParams) SetContext

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

SetContext adds the context to the order put order bookings params

func (*OrderPutOrderBookingsParams) SetDefaults

func (o *OrderPutOrderBookingsParams) SetDefaults()

SetDefaults hydrates default values in the order put order bookings params (not the query body).

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

func (*OrderPutOrderBookingsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order put order bookings params

func (*OrderPutOrderBookingsParams) SetOrderID

func (o *OrderPutOrderBookingsParams) SetOrderID(orderID int32)

SetOrderID adds the orderId to the order put order bookings params

func (*OrderPutOrderBookingsParams) SetTimeout

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

SetTimeout adds the timeout to the order put order bookings params

func (*OrderPutOrderBookingsParams) WithBookingEntries

func (o *OrderPutOrderBookingsParams) WithBookingEntries(bookingEntries []*model.BookingEntry) *OrderPutOrderBookingsParams

WithBookingEntries adds the bookingEntries to the order put order bookings params

func (*OrderPutOrderBookingsParams) WithContext

WithContext adds the context to the order put order bookings params

func (*OrderPutOrderBookingsParams) WithDefaults

WithDefaults hydrates default values in the order put order bookings params (not the query body).

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

func (*OrderPutOrderBookingsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the order put order bookings params

func (*OrderPutOrderBookingsParams) WithOrderID

WithOrderID adds the orderID to the order put order bookings params

func (*OrderPutOrderBookingsParams) WithTimeout

WithTimeout adds the timeout to the order put order bookings params

func (*OrderPutOrderBookingsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrderPutOrderBookingsReader

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

OrderPutOrderBookingsReader is a Reader for the OrderPutOrderBookings structure.

func (*OrderPutOrderBookingsReader) ReadResponse

func (o *OrderPutOrderBookingsReader) 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