order

package
v0.0.0-...-7a013b9 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteOrderIDAcceptedCode int = 202

DeleteOrderIDAcceptedCode is the HTTP code returned for type DeleteOrderIDAccepted

View Source
const DeleteOrderIDBadRequestCode int = 400

DeleteOrderIDBadRequestCode is the HTTP code returned for type DeleteOrderIDBadRequest

View Source
const DeleteOrderIDInternalServerErrorCode int = 500

DeleteOrderIDInternalServerErrorCode is the HTTP code returned for type DeleteOrderIDInternalServerError

View Source
const DeleteOrderIDNotFoundCode int = 404

DeleteOrderIDNotFoundCode is the HTTP code returned for type DeleteOrderIDNotFound

View Source
const GetOrderIDBadRequestCode int = 400

GetOrderIDBadRequestCode is the HTTP code returned for type GetOrderIDBadRequest

View Source
const GetOrderIDInternalServerErrorCode int = 500

GetOrderIDInternalServerErrorCode is the HTTP code returned for type GetOrderIDInternalServerError

View Source
const GetOrderIDNotFoundCode int = 404

GetOrderIDNotFoundCode is the HTTP code returned for type GetOrderIDNotFound

View Source
const GetOrderIDOKCode int = 200

GetOrderIDOKCode is the HTTP code returned for type GetOrderIDOK

View Source
const PostOrderBadRequestCode int = 400

PostOrderBadRequestCode is the HTTP code returned for type PostOrderBadRequest

View Source
const PostOrderCreatedCode int = 201

PostOrderCreatedCode is the HTTP code returned for type PostOrderCreated

View Source
const PostOrderInternalServerErrorCode int = 500

PostOrderInternalServerErrorCode is the HTTP code returned for type PostOrderInternalServerError

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteOrderID

type DeleteOrderID struct {
	Context *middleware.Context
	Handler DeleteOrderIDHandler
}

DeleteOrderID swagger:route DELETE /order/{id} order deleteOrderId

cancel order

func NewDeleteOrderID

func NewDeleteOrderID(ctx *middleware.Context, handler DeleteOrderIDHandler) *DeleteOrderID

NewDeleteOrderID creates a new http.Handler for the delete order ID operation

func (*DeleteOrderID) ServeHTTP

func (o *DeleteOrderID) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteOrderIDAccepted

type DeleteOrderIDAccepted struct {

	/*
	  In: Body
	*/
	Payload *models.StatusResponse `json:"body,omitempty"`
}

DeleteOrderIDAccepted Canceled

swagger:response deleteOrderIdAccepted

func NewDeleteOrderIDAccepted

func NewDeleteOrderIDAccepted() *DeleteOrderIDAccepted

NewDeleteOrderIDAccepted creates DeleteOrderIDAccepted with default headers values

func (*DeleteOrderIDAccepted) SetPayload

func (o *DeleteOrderIDAccepted) SetPayload(payload *models.StatusResponse)

SetPayload sets the payload to the delete order Id accepted response

func (*DeleteOrderIDAccepted) WithPayload

WithPayload adds the payload to the delete order Id accepted response

func (*DeleteOrderIDAccepted) WriteResponse

func (o *DeleteOrderIDAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteOrderIDBadRequest

type DeleteOrderIDBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.StatusResponse `json:"body,omitempty"`
}

DeleteOrderIDBadRequest Bad request

swagger:response deleteOrderIdBadRequest

func NewDeleteOrderIDBadRequest

func NewDeleteOrderIDBadRequest() *DeleteOrderIDBadRequest

NewDeleteOrderIDBadRequest creates DeleteOrderIDBadRequest with default headers values

func (*DeleteOrderIDBadRequest) SetPayload

func (o *DeleteOrderIDBadRequest) SetPayload(payload *models.StatusResponse)

SetPayload sets the payload to the delete order Id bad request response

func (*DeleteOrderIDBadRequest) WithPayload

WithPayload adds the payload to the delete order Id bad request response

func (*DeleteOrderIDBadRequest) WriteResponse

func (o *DeleteOrderIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteOrderIDHandler

type DeleteOrderIDHandler interface {
	Handle(DeleteOrderIDParams) middleware.Responder
}

DeleteOrderIDHandler interface for that can handle valid delete order ID params

type DeleteOrderIDHandlerFunc

type DeleteOrderIDHandlerFunc func(DeleteOrderIDParams) middleware.Responder

DeleteOrderIDHandlerFunc turns a function with the right signature into a delete order ID handler

func (DeleteOrderIDHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteOrderIDInternalServerError

type DeleteOrderIDInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.StatusResponse `json:"body,omitempty"`
}

DeleteOrderIDInternalServerError Internal server error

swagger:response deleteOrderIdInternalServerError

func NewDeleteOrderIDInternalServerError

func NewDeleteOrderIDInternalServerError() *DeleteOrderIDInternalServerError

NewDeleteOrderIDInternalServerError creates DeleteOrderIDInternalServerError with default headers values

func (*DeleteOrderIDInternalServerError) SetPayload

func (o *DeleteOrderIDInternalServerError) SetPayload(payload *models.StatusResponse)

SetPayload sets the payload to the delete order Id internal server error response

func (*DeleteOrderIDInternalServerError) WithPayload

WithPayload adds the payload to the delete order Id internal server error response

func (*DeleteOrderIDInternalServerError) WriteResponse

func (o *DeleteOrderIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteOrderIDNotFound

type DeleteOrderIDNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.StatusResponse `json:"body,omitempty"`
}

DeleteOrderIDNotFound Not found

swagger:response deleteOrderIdNotFound

func NewDeleteOrderIDNotFound

func NewDeleteOrderIDNotFound() *DeleteOrderIDNotFound

NewDeleteOrderIDNotFound creates DeleteOrderIDNotFound with default headers values

func (*DeleteOrderIDNotFound) SetPayload

func (o *DeleteOrderIDNotFound) SetPayload(payload *models.StatusResponse)

SetPayload sets the payload to the delete order Id not found response

func (*DeleteOrderIDNotFound) WithPayload

WithPayload adds the payload to the delete order Id not found response

func (*DeleteOrderIDNotFound) WriteResponse

func (o *DeleteOrderIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteOrderIDParams

type DeleteOrderIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The order ID.
	  Required: true
	  In: path
	*/
	ID string
}

DeleteOrderIDParams contains all the bound params for the delete order ID operation typically these are obtained from a http.Request

swagger:parameters DeleteOrderID

func NewDeleteOrderIDParams

func NewDeleteOrderIDParams() DeleteOrderIDParams

NewDeleteOrderIDParams creates a new DeleteOrderIDParams object no default values defined in spec.

func (*DeleteOrderIDParams) BindRequest

func (o *DeleteOrderIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDeleteOrderIDParams() beforehand.

type DeleteOrderIDURL

type DeleteOrderIDURL struct {
	ID string
	// contains filtered or unexported fields
}

DeleteOrderIDURL generates an URL for the delete order ID operation

func (*DeleteOrderIDURL) Build

func (o *DeleteOrderIDURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteOrderIDURL) BuildFull

func (o *DeleteOrderIDURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteOrderIDURL) Must

func (o *DeleteOrderIDURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteOrderIDURL) SetBasePath

func (o *DeleteOrderIDURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeleteOrderIDURL) String

func (o *DeleteOrderIDURL) String() string

String returns the string representation of the path with query string

func (*DeleteOrderIDURL) StringFull

func (o *DeleteOrderIDURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteOrderIDURL) WithBasePath

func (o *DeleteOrderIDURL) WithBasePath(bp string) *DeleteOrderIDURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetOrderID

type GetOrderID struct {
	Context *middleware.Context
	Handler GetOrderIDHandler
}

GetOrderID swagger:route GET /order/{id} order getOrderId

get order

func NewGetOrderID

func NewGetOrderID(ctx *middleware.Context, handler GetOrderIDHandler) *GetOrderID

NewGetOrderID creates a new http.Handler for the get order ID operation

func (*GetOrderID) ServeHTTP

func (o *GetOrderID) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetOrderIDBadRequest

type GetOrderIDBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.StatusResponse `json:"body,omitempty"`
}

GetOrderIDBadRequest Bad request

swagger:response getOrderIdBadRequest

func NewGetOrderIDBadRequest

func NewGetOrderIDBadRequest() *GetOrderIDBadRequest

NewGetOrderIDBadRequest creates GetOrderIDBadRequest with default headers values

func (*GetOrderIDBadRequest) SetPayload

func (o *GetOrderIDBadRequest) SetPayload(payload *models.StatusResponse)

SetPayload sets the payload to the get order Id bad request response

func (*GetOrderIDBadRequest) WithPayload

WithPayload adds the payload to the get order Id bad request response

func (*GetOrderIDBadRequest) WriteResponse

func (o *GetOrderIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetOrderIDHandler

type GetOrderIDHandler interface {
	Handle(GetOrderIDParams) middleware.Responder
}

GetOrderIDHandler interface for that can handle valid get order ID params

type GetOrderIDHandlerFunc

type GetOrderIDHandlerFunc func(GetOrderIDParams) middleware.Responder

GetOrderIDHandlerFunc turns a function with the right signature into a get order ID handler

func (GetOrderIDHandlerFunc) Handle

Handle executing the request and returning a response

type GetOrderIDInternalServerError

type GetOrderIDInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.StatusResponse `json:"body,omitempty"`
}

GetOrderIDInternalServerError Internal server error

swagger:response getOrderIdInternalServerError

func NewGetOrderIDInternalServerError

func NewGetOrderIDInternalServerError() *GetOrderIDInternalServerError

NewGetOrderIDInternalServerError creates GetOrderIDInternalServerError with default headers values

func (*GetOrderIDInternalServerError) SetPayload

func (o *GetOrderIDInternalServerError) SetPayload(payload *models.StatusResponse)

SetPayload sets the payload to the get order Id internal server error response

func (*GetOrderIDInternalServerError) WithPayload

WithPayload adds the payload to the get order Id internal server error response

func (*GetOrderIDInternalServerError) WriteResponse

func (o *GetOrderIDInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetOrderIDNotFound

type GetOrderIDNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.StatusResponse `json:"body,omitempty"`
}

GetOrderIDNotFound Not found

swagger:response getOrderIdNotFound

func NewGetOrderIDNotFound

func NewGetOrderIDNotFound() *GetOrderIDNotFound

NewGetOrderIDNotFound creates GetOrderIDNotFound with default headers values

func (*GetOrderIDNotFound) SetPayload

func (o *GetOrderIDNotFound) SetPayload(payload *models.StatusResponse)

SetPayload sets the payload to the get order Id not found response

func (*GetOrderIDNotFound) WithPayload

func (o *GetOrderIDNotFound) WithPayload(payload *models.StatusResponse) *GetOrderIDNotFound

WithPayload adds the payload to the get order Id not found response

func (*GetOrderIDNotFound) WriteResponse

func (o *GetOrderIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetOrderIDOK

type GetOrderIDOK struct {

	/*
	  In: Body
	*/
	Payload *models.OrderResponse `json:"body,omitempty"`
}

GetOrderIDOK OK

swagger:response getOrderIdOK

func NewGetOrderIDOK

func NewGetOrderIDOK() *GetOrderIDOK

NewGetOrderIDOK creates GetOrderIDOK with default headers values

func (*GetOrderIDOK) SetPayload

func (o *GetOrderIDOK) SetPayload(payload *models.OrderResponse)

SetPayload sets the payload to the get order Id o k response

func (*GetOrderIDOK) WithPayload

func (o *GetOrderIDOK) WithPayload(payload *models.OrderResponse) *GetOrderIDOK

WithPayload adds the payload to the get order Id o k response

func (*GetOrderIDOK) WriteResponse

func (o *GetOrderIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetOrderIDParams

type GetOrderIDParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The order ID.
	  Required: true
	  In: path
	*/
	ID string
}

GetOrderIDParams contains all the bound params for the get order ID operation typically these are obtained from a http.Request

swagger:parameters GetOrderID

func NewGetOrderIDParams

func NewGetOrderIDParams() GetOrderIDParams

NewGetOrderIDParams creates a new GetOrderIDParams object no default values defined in spec.

func (*GetOrderIDParams) BindRequest

func (o *GetOrderIDParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetOrderIDParams() beforehand.

type GetOrderIDURL

type GetOrderIDURL struct {
	ID string
	// contains filtered or unexported fields
}

GetOrderIDURL generates an URL for the get order ID operation

func (*GetOrderIDURL) Build

func (o *GetOrderIDURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetOrderIDURL) BuildFull

func (o *GetOrderIDURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetOrderIDURL) Must

func (o *GetOrderIDURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetOrderIDURL) SetBasePath

func (o *GetOrderIDURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetOrderIDURL) String

func (o *GetOrderIDURL) String() string

String returns the string representation of the path with query string

func (*GetOrderIDURL) StringFull

func (o *GetOrderIDURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetOrderIDURL) WithBasePath

func (o *GetOrderIDURL) WithBasePath(bp string) *GetOrderIDURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PostOrder

type PostOrder struct {
	Context *middleware.Context
	Handler PostOrderHandler
}

PostOrder swagger:route POST /order order postOrder

create order

func NewPostOrder

func NewPostOrder(ctx *middleware.Context, handler PostOrderHandler) *PostOrder

NewPostOrder creates a new http.Handler for the post order operation

func (*PostOrder) ServeHTTP

func (o *PostOrder) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PostOrderBadRequest

type PostOrderBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.StatusResponse `json:"body,omitempty"`
}

PostOrderBadRequest Bad request

swagger:response postOrderBadRequest

func NewPostOrderBadRequest

func NewPostOrderBadRequest() *PostOrderBadRequest

NewPostOrderBadRequest creates PostOrderBadRequest with default headers values

func (*PostOrderBadRequest) SetPayload

func (o *PostOrderBadRequest) SetPayload(payload *models.StatusResponse)

SetPayload sets the payload to the post order bad request response

func (*PostOrderBadRequest) WithPayload

WithPayload adds the payload to the post order bad request response

func (*PostOrderBadRequest) WriteResponse

func (o *PostOrderBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostOrderCreated

type PostOrderCreated struct {

	/*
	  In: Body
	*/
	Payload *models.OrderCreateResponse `json:"body,omitempty"`
}

PostOrderCreated Created

swagger:response postOrderCreated

func NewPostOrderCreated

func NewPostOrderCreated() *PostOrderCreated

NewPostOrderCreated creates PostOrderCreated with default headers values

func (*PostOrderCreated) SetPayload

func (o *PostOrderCreated) SetPayload(payload *models.OrderCreateResponse)

SetPayload sets the payload to the post order created response

func (*PostOrderCreated) WithPayload

func (o *PostOrderCreated) WithPayload(payload *models.OrderCreateResponse) *PostOrderCreated

WithPayload adds the payload to the post order created response

func (*PostOrderCreated) WriteResponse

func (o *PostOrderCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostOrderHandler

type PostOrderHandler interface {
	Handle(PostOrderParams) middleware.Responder
}

PostOrderHandler interface for that can handle valid post order params

type PostOrderHandlerFunc

type PostOrderHandlerFunc func(PostOrderParams) middleware.Responder

PostOrderHandlerFunc turns a function with the right signature into a post order handler

func (PostOrderHandlerFunc) Handle

Handle executing the request and returning a response

type PostOrderInternalServerError

type PostOrderInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.StatusResponse `json:"body,omitempty"`
}

PostOrderInternalServerError Internal server error

swagger:response postOrderInternalServerError

func NewPostOrderInternalServerError

func NewPostOrderInternalServerError() *PostOrderInternalServerError

NewPostOrderInternalServerError creates PostOrderInternalServerError with default headers values

func (*PostOrderInternalServerError) SetPayload

func (o *PostOrderInternalServerError) SetPayload(payload *models.StatusResponse)

SetPayload sets the payload to the post order internal server error response

func (*PostOrderInternalServerError) WithPayload

WithPayload adds the payload to the post order internal server error response

func (*PostOrderInternalServerError) WriteResponse

func (o *PostOrderInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostOrderParams

type PostOrderParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Order data
	  Required: true
	  In: body
	*/
	Body *models.OrderRequest
}

PostOrderParams contains all the bound params for the post order operation typically these are obtained from a http.Request

swagger:parameters PostOrder

func NewPostOrderParams

func NewPostOrderParams() PostOrderParams

NewPostOrderParams creates a new PostOrderParams object no default values defined in spec.

func (*PostOrderParams) BindRequest

func (o *PostOrderParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewPostOrderParams() beforehand.

type PostOrderURL

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

PostOrderURL generates an URL for the post order operation

func (*PostOrderURL) Build

func (o *PostOrderURL) Build() (*url.URL, error)

Build a url path and query string

func (*PostOrderURL) BuildFull

func (o *PostOrderURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PostOrderURL) Must

func (o *PostOrderURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PostOrderURL) SetBasePath

func (o *PostOrderURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*PostOrderURL) String

func (o *PostOrderURL) String() string

String returns the string representation of the path with query string

func (*PostOrderURL) StringFull

func (o *PostOrderURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PostOrderURL) WithBasePath

func (o *PostOrderURL) WithBasePath(bp string) *PostOrderURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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