Versions in this module Expand all Collapse all v0 v0.2.0 Oct 12, 2023 v0.1.0 Oct 12, 2023 Changes in this version + type API interface + InventoryGet func(ctx context.Context, params *InventoryGetParams) (*InventoryGetOK, error) + OrderCreate func(ctx context.Context, params *OrderCreateParams) (*OrderCreateOK, error) + OrderDelete func(ctx context.Context, params *OrderDeleteParams) (*OrderDeleteNoContent, error) + OrderGet func(ctx context.Context, params *OrderGetParams) (*OrderGetOK, error) + type Client struct + func New(transport runtime.ClientTransport, formats strfmt.Registry, ...) *Client + func (a *Client) InventoryGet(ctx context.Context, params *InventoryGetParams) (*InventoryGetOK, error) + func (a *Client) OrderCreate(ctx context.Context, params *OrderCreateParams) (*OrderCreateOK, error) + func (a *Client) OrderDelete(ctx context.Context, params *OrderDeleteParams) (*OrderDeleteNoContent, error) + func (a *Client) OrderGet(ctx context.Context, params *OrderGetParams) (*OrderGetOK, error) + type InventoryGetOK struct + Payload map[string]int32 + func NewInventoryGetOK() *InventoryGetOK + func (o *InventoryGetOK) Code() int + func (o *InventoryGetOK) Error() string + func (o *InventoryGetOK) GetPayload() map[string]int32 + func (o *InventoryGetOK) IsClientError() bool + func (o *InventoryGetOK) IsCode(code int) bool + func (o *InventoryGetOK) IsRedirect() bool + func (o *InventoryGetOK) IsServerError() bool + func (o *InventoryGetOK) IsSuccess() bool + func (o *InventoryGetOK) String() string + type InventoryGetParams struct + Context context.Context + HTTPClient *http.Client + func NewInventoryGetParams() *InventoryGetParams + func NewInventoryGetParamsWithContext(ctx context.Context) *InventoryGetParams + func NewInventoryGetParamsWithHTTPClient(client *http.Client) *InventoryGetParams + func NewInventoryGetParamsWithTimeout(timeout time.Duration) *InventoryGetParams + func (o *InventoryGetParams) SetContext(ctx context.Context) + func (o *InventoryGetParams) SetDefaults() + func (o *InventoryGetParams) SetHTTPClient(client *http.Client) + func (o *InventoryGetParams) SetTimeout(timeout time.Duration) + func (o *InventoryGetParams) WithContext(ctx context.Context) *InventoryGetParams + func (o *InventoryGetParams) WithDefaults() *InventoryGetParams + func (o *InventoryGetParams) WithHTTPClient(client *http.Client) *InventoryGetParams + func (o *InventoryGetParams) WithTimeout(timeout time.Duration) *InventoryGetParams + func (o *InventoryGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error + type InventoryGetReader struct + func (o *InventoryGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) + type OrderCreateBadRequest struct + func NewOrderCreateBadRequest() *OrderCreateBadRequest + func (o *OrderCreateBadRequest) Code() int + func (o *OrderCreateBadRequest) Error() string + func (o *OrderCreateBadRequest) IsClientError() bool + func (o *OrderCreateBadRequest) IsCode(code int) bool + func (o *OrderCreateBadRequest) IsRedirect() bool + func (o *OrderCreateBadRequest) IsServerError() bool + func (o *OrderCreateBadRequest) IsSuccess() bool + func (o *OrderCreateBadRequest) String() string + type OrderCreateOK struct + Payload *models.Order + func NewOrderCreateOK() *OrderCreateOK + func (o *OrderCreateOK) Code() int + func (o *OrderCreateOK) Error() string + func (o *OrderCreateOK) GetPayload() *models.Order + func (o *OrderCreateOK) IsClientError() bool + func (o *OrderCreateOK) IsCode(code int) bool + func (o *OrderCreateOK) IsRedirect() bool + func (o *OrderCreateOK) IsServerError() bool + func (o *OrderCreateOK) IsSuccess() bool + func (o *OrderCreateOK) String() string + type OrderCreateParams struct + Body *models.Order + Context context.Context + HTTPClient *http.Client + func NewOrderCreateParams() *OrderCreateParams + func NewOrderCreateParamsWithContext(ctx context.Context) *OrderCreateParams + func NewOrderCreateParamsWithHTTPClient(client *http.Client) *OrderCreateParams + func NewOrderCreateParamsWithTimeout(timeout time.Duration) *OrderCreateParams + func (o *OrderCreateParams) SetBody(body *models.Order) + func (o *OrderCreateParams) SetContext(ctx context.Context) + func (o *OrderCreateParams) SetDefaults() + func (o *OrderCreateParams) SetHTTPClient(client *http.Client) + func (o *OrderCreateParams) SetTimeout(timeout time.Duration) + func (o *OrderCreateParams) WithBody(body *models.Order) *OrderCreateParams + func (o *OrderCreateParams) WithContext(ctx context.Context) *OrderCreateParams + func (o *OrderCreateParams) WithDefaults() *OrderCreateParams + func (o *OrderCreateParams) WithHTTPClient(client *http.Client) *OrderCreateParams + func (o *OrderCreateParams) WithTimeout(timeout time.Duration) *OrderCreateParams + func (o *OrderCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error + type OrderCreateReader struct + func (o *OrderCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) + type OrderDeleteBadRequest struct + func NewOrderDeleteBadRequest() *OrderDeleteBadRequest + func (o *OrderDeleteBadRequest) Code() int + func (o *OrderDeleteBadRequest) Error() string + func (o *OrderDeleteBadRequest) IsClientError() bool + func (o *OrderDeleteBadRequest) IsCode(code int) bool + func (o *OrderDeleteBadRequest) IsRedirect() bool + func (o *OrderDeleteBadRequest) IsServerError() bool + func (o *OrderDeleteBadRequest) IsSuccess() bool + func (o *OrderDeleteBadRequest) String() string + type OrderDeleteNoContent struct + func NewOrderDeleteNoContent() *OrderDeleteNoContent + func (o *OrderDeleteNoContent) Code() int + func (o *OrderDeleteNoContent) Error() string + func (o *OrderDeleteNoContent) IsClientError() bool + func (o *OrderDeleteNoContent) IsCode(code int) bool + func (o *OrderDeleteNoContent) IsRedirect() bool + func (o *OrderDeleteNoContent) IsServerError() bool + func (o *OrderDeleteNoContent) IsSuccess() bool + func (o *OrderDeleteNoContent) String() string + type OrderDeleteNotFound struct + func NewOrderDeleteNotFound() *OrderDeleteNotFound + func (o *OrderDeleteNotFound) Code() int + func (o *OrderDeleteNotFound) Error() string + func (o *OrderDeleteNotFound) IsClientError() bool + func (o *OrderDeleteNotFound) IsCode(code int) bool + func (o *OrderDeleteNotFound) IsRedirect() bool + func (o *OrderDeleteNotFound) IsServerError() bool + func (o *OrderDeleteNotFound) IsSuccess() bool + func (o *OrderDeleteNotFound) String() string + type OrderDeleteParams struct + Context context.Context + HTTPClient *http.Client + OrderID int64 + func NewOrderDeleteParams() *OrderDeleteParams + func NewOrderDeleteParamsWithContext(ctx context.Context) *OrderDeleteParams + func NewOrderDeleteParamsWithHTTPClient(client *http.Client) *OrderDeleteParams + func NewOrderDeleteParamsWithTimeout(timeout time.Duration) *OrderDeleteParams + func (o *OrderDeleteParams) SetContext(ctx context.Context) + func (o *OrderDeleteParams) SetDefaults() + func (o *OrderDeleteParams) SetHTTPClient(client *http.Client) + func (o *OrderDeleteParams) SetOrderID(orderID int64) + func (o *OrderDeleteParams) SetTimeout(timeout time.Duration) + func (o *OrderDeleteParams) WithContext(ctx context.Context) *OrderDeleteParams + func (o *OrderDeleteParams) WithDefaults() *OrderDeleteParams + func (o *OrderDeleteParams) WithHTTPClient(client *http.Client) *OrderDeleteParams + func (o *OrderDeleteParams) WithOrderID(orderID int64) *OrderDeleteParams + func (o *OrderDeleteParams) WithTimeout(timeout time.Duration) *OrderDeleteParams + func (o *OrderDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error + type OrderDeleteReader struct + func (o *OrderDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) + type OrderGetBadRequest struct + func NewOrderGetBadRequest() *OrderGetBadRequest + func (o *OrderGetBadRequest) Code() int + func (o *OrderGetBadRequest) Error() string + func (o *OrderGetBadRequest) IsClientError() bool + func (o *OrderGetBadRequest) IsCode(code int) bool + func (o *OrderGetBadRequest) IsRedirect() bool + func (o *OrderGetBadRequest) IsServerError() bool + func (o *OrderGetBadRequest) IsSuccess() bool + func (o *OrderGetBadRequest) String() string + type OrderGetNotFound struct + func NewOrderGetNotFound() *OrderGetNotFound + func (o *OrderGetNotFound) Code() int + func (o *OrderGetNotFound) Error() string + func (o *OrderGetNotFound) IsClientError() bool + func (o *OrderGetNotFound) IsCode(code int) bool + func (o *OrderGetNotFound) IsRedirect() bool + func (o *OrderGetNotFound) IsServerError() bool + func (o *OrderGetNotFound) IsSuccess() bool + func (o *OrderGetNotFound) String() string + type OrderGetOK struct + Payload *models.Order + func NewOrderGetOK() *OrderGetOK + func (o *OrderGetOK) Code() int + func (o *OrderGetOK) Error() string + func (o *OrderGetOK) GetPayload() *models.Order + func (o *OrderGetOK) IsClientError() bool + func (o *OrderGetOK) IsCode(code int) bool + func (o *OrderGetOK) IsRedirect() bool + func (o *OrderGetOK) IsServerError() bool + func (o *OrderGetOK) IsSuccess() bool + func (o *OrderGetOK) String() string + type OrderGetParams struct + Context context.Context + HTTPClient *http.Client + OrderID int64 + func NewOrderGetParams() *OrderGetParams + func NewOrderGetParamsWithContext(ctx context.Context) *OrderGetParams + func NewOrderGetParamsWithHTTPClient(client *http.Client) *OrderGetParams + func NewOrderGetParamsWithTimeout(timeout time.Duration) *OrderGetParams + func (o *OrderGetParams) SetContext(ctx context.Context) + func (o *OrderGetParams) SetDefaults() + func (o *OrderGetParams) SetHTTPClient(client *http.Client) + func (o *OrderGetParams) SetOrderID(orderID int64) + func (o *OrderGetParams) SetTimeout(timeout time.Duration) + func (o *OrderGetParams) WithContext(ctx context.Context) *OrderGetParams + func (o *OrderGetParams) WithDefaults() *OrderGetParams + func (o *OrderGetParams) WithHTTPClient(client *http.Client) *OrderGetParams + func (o *OrderGetParams) WithOrderID(orderID int64) *OrderGetParams + func (o *OrderGetParams) WithTimeout(timeout time.Duration) *OrderGetParams + func (o *OrderGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error + type OrderGetReader struct + func (o *OrderGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)