orders

package
v0.0.0-...-0751cc3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CreateOrdersBadRequestCode int = 400

CreateOrdersBadRequestCode is the HTTP code returned for type CreateOrdersBadRequest

View Source
const CreateOrdersCreatedCode int = 201

CreateOrdersCreatedCode is the HTTP code returned for type CreateOrdersCreated

View Source
const CreateOrdersForbiddenCode int = 403

CreateOrdersForbiddenCode is the HTTP code returned for type CreateOrdersForbidden

View Source
const CreateOrdersInternalServerErrorCode int = 500

CreateOrdersInternalServerErrorCode is the HTTP code returned for type CreateOrdersInternalServerError

View Source
const CreateOrdersUnauthorizedCode int = 401

CreateOrdersUnauthorizedCode is the HTTP code returned for type CreateOrdersUnauthorized

View Source
const ShowOrdersBadRequestCode int = 400

ShowOrdersBadRequestCode is the HTTP code returned for type ShowOrdersBadRequest

View Source
const ShowOrdersForbiddenCode int = 403

ShowOrdersForbiddenCode is the HTTP code returned for type ShowOrdersForbidden

View Source
const ShowOrdersInternalServerErrorCode int = 500

ShowOrdersInternalServerErrorCode is the HTTP code returned for type ShowOrdersInternalServerError

View Source
const ShowOrdersNotFoundCode int = 404

ShowOrdersNotFoundCode is the HTTP code returned for type ShowOrdersNotFound

View Source
const ShowOrdersOKCode int = 200

ShowOrdersOKCode is the HTTP code returned for type ShowOrdersOK

View Source
const ShowOrdersUnauthorizedCode int = 401

ShowOrdersUnauthorizedCode is the HTTP code returned for type ShowOrdersUnauthorized

View Source
const UpdateOrdersBadRequestCode int = 400

UpdateOrdersBadRequestCode is the HTTP code returned for type UpdateOrdersBadRequest

View Source
const UpdateOrdersForbiddenCode int = 403

UpdateOrdersForbiddenCode is the HTTP code returned for type UpdateOrdersForbidden

View Source
const UpdateOrdersInternalServerErrorCode int = 500

UpdateOrdersInternalServerErrorCode is the HTTP code returned for type UpdateOrdersInternalServerError

View Source
const UpdateOrdersNotFoundCode int = 404

UpdateOrdersNotFoundCode is the HTTP code returned for type UpdateOrdersNotFound

View Source
const UpdateOrdersOKCode int = 200

UpdateOrdersOKCode is the HTTP code returned for type UpdateOrdersOK

View Source
const UpdateOrdersUnauthorizedCode int = 401

UpdateOrdersUnauthorizedCode is the HTTP code returned for type UpdateOrdersUnauthorized

View Source
const UploadAmendedOrdersBadRequestCode int = 400

UploadAmendedOrdersBadRequestCode is the HTTP code returned for type UploadAmendedOrdersBadRequest

View Source
const UploadAmendedOrdersCreatedCode int = 201

UploadAmendedOrdersCreatedCode is the HTTP code returned for type UploadAmendedOrdersCreated

View Source
const UploadAmendedOrdersForbiddenCode int = 403

UploadAmendedOrdersForbiddenCode is the HTTP code returned for type UploadAmendedOrdersForbidden

View Source
const UploadAmendedOrdersInternalServerErrorCode int = 500

UploadAmendedOrdersInternalServerErrorCode is the HTTP code returned for type UploadAmendedOrdersInternalServerError

View Source
const UploadAmendedOrdersNotFoundCode int = 404

UploadAmendedOrdersNotFoundCode is the HTTP code returned for type UploadAmendedOrdersNotFound

View Source
const UploadAmendedOrdersRequestEntityTooLargeCode int = 413

UploadAmendedOrdersRequestEntityTooLargeCode is the HTTP code returned for type UploadAmendedOrdersRequestEntityTooLarge

Variables

View Source
var UploadAmendedOrdersMaxParseMemory int64 = 32 << 20

UploadAmendedOrdersMaxParseMemory sets the maximum size in bytes for the multipart form parser for this operation.

The default value is 32 MB. The multipart parser stores up to this + 10MB.

Functions

This section is empty.

Types

type CreateOrders

type CreateOrders struct {
	Context *middleware.Context
	Handler CreateOrdersHandler
}
CreateOrders swagger:route POST /orders orders createOrders

Creates an orders model for a logged-in user

Creates an instance of orders tied to a service member

func NewCreateOrders

func NewCreateOrders(ctx *middleware.Context, handler CreateOrdersHandler) *CreateOrders

NewCreateOrders creates a new http.Handler for the create orders operation

func (*CreateOrders) ServeHTTP

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

type CreateOrdersBadRequest

type CreateOrdersBadRequest struct {
}

CreateOrdersBadRequest invalid request

swagger:response createOrdersBadRequest

func NewCreateOrdersBadRequest

func NewCreateOrdersBadRequest() *CreateOrdersBadRequest

NewCreateOrdersBadRequest creates CreateOrdersBadRequest with default headers values

func (*CreateOrdersBadRequest) WriteResponse

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

WriteResponse to the client

type CreateOrdersCreated

type CreateOrdersCreated struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.Orders `json:"body,omitempty"`
}

CreateOrdersCreated created instance of orders

swagger:response createOrdersCreated

func NewCreateOrdersCreated

func NewCreateOrdersCreated() *CreateOrdersCreated

NewCreateOrdersCreated creates CreateOrdersCreated with default headers values

func (*CreateOrdersCreated) SetPayload

func (o *CreateOrdersCreated) SetPayload(payload *internalmessages.Orders)

SetPayload sets the payload to the create orders created response

func (*CreateOrdersCreated) WithPayload

WithPayload adds the payload to the create orders created response

func (*CreateOrdersCreated) WriteResponse

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

WriteResponse to the client

type CreateOrdersForbidden

type CreateOrdersForbidden struct {
}

CreateOrdersForbidden user is not authorized

swagger:response createOrdersForbidden

func NewCreateOrdersForbidden

func NewCreateOrdersForbidden() *CreateOrdersForbidden

NewCreateOrdersForbidden creates CreateOrdersForbidden with default headers values

func (*CreateOrdersForbidden) WriteResponse

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

WriteResponse to the client

type CreateOrdersHandler

type CreateOrdersHandler interface {
	Handle(CreateOrdersParams) middleware.Responder
}

CreateOrdersHandler interface for that can handle valid create orders params

type CreateOrdersHandlerFunc

type CreateOrdersHandlerFunc func(CreateOrdersParams) middleware.Responder

CreateOrdersHandlerFunc turns a function with the right signature into a create orders handler

func (CreateOrdersHandlerFunc) Handle

Handle executing the request and returning a response

type CreateOrdersInternalServerError

type CreateOrdersInternalServerError struct {
}

CreateOrdersInternalServerError internal server error

swagger:response createOrdersInternalServerError

func NewCreateOrdersInternalServerError

func NewCreateOrdersInternalServerError() *CreateOrdersInternalServerError

NewCreateOrdersInternalServerError creates CreateOrdersInternalServerError with default headers values

func (*CreateOrdersInternalServerError) WriteResponse

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

WriteResponse to the client

type CreateOrdersParams

type CreateOrdersParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	CreateOrders *internalmessages.CreateUpdateOrders
}

CreateOrdersParams contains all the bound params for the create orders operation typically these are obtained from a http.Request

swagger:parameters createOrders

func NewCreateOrdersParams

func NewCreateOrdersParams() CreateOrdersParams

NewCreateOrdersParams creates a new CreateOrdersParams object

There are no default values defined in the spec.

func (*CreateOrdersParams) BindRequest

func (o *CreateOrdersParams) 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 NewCreateOrdersParams() beforehand.

type CreateOrdersURL

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

CreateOrdersURL generates an URL for the create orders operation

func (*CreateOrdersURL) Build

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

Build a url path and query string

func (*CreateOrdersURL) BuildFull

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

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

func (*CreateOrdersURL) Must

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

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

func (*CreateOrdersURL) SetBasePath

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

func (o *CreateOrdersURL) String() string

String returns the string representation of the path with query string

func (*CreateOrdersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*CreateOrdersURL) WithBasePath

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

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 CreateOrdersUnauthorized

type CreateOrdersUnauthorized struct {
}

CreateOrdersUnauthorized request requires user authentication

swagger:response createOrdersUnauthorized

func NewCreateOrdersUnauthorized

func NewCreateOrdersUnauthorized() *CreateOrdersUnauthorized

NewCreateOrdersUnauthorized creates CreateOrdersUnauthorized with default headers values

func (*CreateOrdersUnauthorized) WriteResponse

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

WriteResponse to the client

type ShowOrders

type ShowOrders struct {
	Context *middleware.Context
	Handler ShowOrdersHandler
}
ShowOrders swagger:route GET /orders/{ordersId} orders showOrders

Returns the given order

Returns the given order

func NewShowOrders

func NewShowOrders(ctx *middleware.Context, handler ShowOrdersHandler) *ShowOrders

NewShowOrders creates a new http.Handler for the show orders operation

func (*ShowOrders) ServeHTTP

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

type ShowOrdersBadRequest

type ShowOrdersBadRequest struct {
}

ShowOrdersBadRequest invalid request

swagger:response showOrdersBadRequest

func NewShowOrdersBadRequest

func NewShowOrdersBadRequest() *ShowOrdersBadRequest

NewShowOrdersBadRequest creates ShowOrdersBadRequest with default headers values

func (*ShowOrdersBadRequest) WriteResponse

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

WriteResponse to the client

type ShowOrdersForbidden

type ShowOrdersForbidden struct {
}

ShowOrdersForbidden user is not authorized

swagger:response showOrdersForbidden

func NewShowOrdersForbidden

func NewShowOrdersForbidden() *ShowOrdersForbidden

NewShowOrdersForbidden creates ShowOrdersForbidden with default headers values

func (*ShowOrdersForbidden) WriteResponse

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

WriteResponse to the client

type ShowOrdersHandler

type ShowOrdersHandler interface {
	Handle(ShowOrdersParams) middleware.Responder
}

ShowOrdersHandler interface for that can handle valid show orders params

type ShowOrdersHandlerFunc

type ShowOrdersHandlerFunc func(ShowOrdersParams) middleware.Responder

ShowOrdersHandlerFunc turns a function with the right signature into a show orders handler

func (ShowOrdersHandlerFunc) Handle

Handle executing the request and returning a response

type ShowOrdersInternalServerError

type ShowOrdersInternalServerError struct {
}

ShowOrdersInternalServerError internal server error

swagger:response showOrdersInternalServerError

func NewShowOrdersInternalServerError

func NewShowOrdersInternalServerError() *ShowOrdersInternalServerError

NewShowOrdersInternalServerError creates ShowOrdersInternalServerError with default headers values

func (*ShowOrdersInternalServerError) WriteResponse

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

WriteResponse to the client

type ShowOrdersNotFound

type ShowOrdersNotFound struct {
}

ShowOrdersNotFound order is not found

swagger:response showOrdersNotFound

func NewShowOrdersNotFound

func NewShowOrdersNotFound() *ShowOrdersNotFound

NewShowOrdersNotFound creates ShowOrdersNotFound with default headers values

func (*ShowOrdersNotFound) WriteResponse

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

WriteResponse to the client

type ShowOrdersOK

type ShowOrdersOK struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.Orders `json:"body,omitempty"`
}

ShowOrdersOK the instance of the order

swagger:response showOrdersOK

func NewShowOrdersOK

func NewShowOrdersOK() *ShowOrdersOK

NewShowOrdersOK creates ShowOrdersOK with default headers values

func (*ShowOrdersOK) SetPayload

func (o *ShowOrdersOK) SetPayload(payload *internalmessages.Orders)

SetPayload sets the payload to the show orders o k response

func (*ShowOrdersOK) WithPayload

func (o *ShowOrdersOK) WithPayload(payload *internalmessages.Orders) *ShowOrdersOK

WithPayload adds the payload to the show orders o k response

func (*ShowOrdersOK) WriteResponse

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

WriteResponse to the client

type ShowOrdersParams

type ShowOrdersParams struct {

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

	/*UUID of the order
	  Required: true
	  In: path
	*/
	OrdersID strfmt.UUID
}

ShowOrdersParams contains all the bound params for the show orders operation typically these are obtained from a http.Request

swagger:parameters showOrders

func NewShowOrdersParams

func NewShowOrdersParams() ShowOrdersParams

NewShowOrdersParams creates a new ShowOrdersParams object

There are no default values defined in the spec.

func (*ShowOrdersParams) BindRequest

func (o *ShowOrdersParams) 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 NewShowOrdersParams() beforehand.

type ShowOrdersURL

type ShowOrdersURL struct {
	OrdersID strfmt.UUID
	// contains filtered or unexported fields
}

ShowOrdersURL generates an URL for the show orders operation

func (*ShowOrdersURL) Build

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

Build a url path and query string

func (*ShowOrdersURL) BuildFull

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

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

func (*ShowOrdersURL) Must

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

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

func (*ShowOrdersURL) SetBasePath

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

func (o *ShowOrdersURL) String() string

String returns the string representation of the path with query string

func (*ShowOrdersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ShowOrdersURL) WithBasePath

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

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 ShowOrdersUnauthorized

type ShowOrdersUnauthorized struct {
}

ShowOrdersUnauthorized request requires user authentication

swagger:response showOrdersUnauthorized

func NewShowOrdersUnauthorized

func NewShowOrdersUnauthorized() *ShowOrdersUnauthorized

NewShowOrdersUnauthorized creates ShowOrdersUnauthorized with default headers values

func (*ShowOrdersUnauthorized) WriteResponse

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

WriteResponse to the client

type UpdateOrders

type UpdateOrders struct {
	Context *middleware.Context
	Handler UpdateOrdersHandler
}
UpdateOrders swagger:route PUT /orders/{ordersId} orders updateOrders

Updates orders

All fields sent in this request will be set on the orders referenced

func NewUpdateOrders

func NewUpdateOrders(ctx *middleware.Context, handler UpdateOrdersHandler) *UpdateOrders

NewUpdateOrders creates a new http.Handler for the update orders operation

func (*UpdateOrders) ServeHTTP

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

type UpdateOrdersBadRequest

type UpdateOrdersBadRequest struct {
}

UpdateOrdersBadRequest invalid request

swagger:response updateOrdersBadRequest

func NewUpdateOrdersBadRequest

func NewUpdateOrdersBadRequest() *UpdateOrdersBadRequest

NewUpdateOrdersBadRequest creates UpdateOrdersBadRequest with default headers values

func (*UpdateOrdersBadRequest) WriteResponse

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

WriteResponse to the client

type UpdateOrdersForbidden

type UpdateOrdersForbidden struct {
}

UpdateOrdersForbidden user is not authorized

swagger:response updateOrdersForbidden

func NewUpdateOrdersForbidden

func NewUpdateOrdersForbidden() *UpdateOrdersForbidden

NewUpdateOrdersForbidden creates UpdateOrdersForbidden with default headers values

func (*UpdateOrdersForbidden) WriteResponse

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

WriteResponse to the client

type UpdateOrdersHandler

type UpdateOrdersHandler interface {
	Handle(UpdateOrdersParams) middleware.Responder
}

UpdateOrdersHandler interface for that can handle valid update orders params

type UpdateOrdersHandlerFunc

type UpdateOrdersHandlerFunc func(UpdateOrdersParams) middleware.Responder

UpdateOrdersHandlerFunc turns a function with the right signature into a update orders handler

func (UpdateOrdersHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateOrdersInternalServerError

type UpdateOrdersInternalServerError struct {
}

UpdateOrdersInternalServerError internal server error

swagger:response updateOrdersInternalServerError

func NewUpdateOrdersInternalServerError

func NewUpdateOrdersInternalServerError() *UpdateOrdersInternalServerError

NewUpdateOrdersInternalServerError creates UpdateOrdersInternalServerError with default headers values

func (*UpdateOrdersInternalServerError) WriteResponse

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

WriteResponse to the client

type UpdateOrdersNotFound

type UpdateOrdersNotFound struct {
}

UpdateOrdersNotFound orders not found

swagger:response updateOrdersNotFound

func NewUpdateOrdersNotFound

func NewUpdateOrdersNotFound() *UpdateOrdersNotFound

NewUpdateOrdersNotFound creates UpdateOrdersNotFound with default headers values

func (*UpdateOrdersNotFound) WriteResponse

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

WriteResponse to the client

type UpdateOrdersOK

type UpdateOrdersOK struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.Orders `json:"body,omitempty"`
}

UpdateOrdersOK updated instance of orders

swagger:response updateOrdersOK

func NewUpdateOrdersOK

func NewUpdateOrdersOK() *UpdateOrdersOK

NewUpdateOrdersOK creates UpdateOrdersOK with default headers values

func (*UpdateOrdersOK) SetPayload

func (o *UpdateOrdersOK) SetPayload(payload *internalmessages.Orders)

SetPayload sets the payload to the update orders o k response

func (*UpdateOrdersOK) WithPayload

func (o *UpdateOrdersOK) WithPayload(payload *internalmessages.Orders) *UpdateOrdersOK

WithPayload adds the payload to the update orders o k response

func (*UpdateOrdersOK) WriteResponse

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

WriteResponse to the client

type UpdateOrdersParams

type UpdateOrdersParams struct {

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

	/*UUID of the orders model
	  Required: true
	  In: path
	*/
	OrdersID strfmt.UUID
	/*
	  Required: true
	  In: body
	*/
	UpdateOrders *internalmessages.CreateUpdateOrders
}

UpdateOrdersParams contains all the bound params for the update orders operation typically these are obtained from a http.Request

swagger:parameters updateOrders

func NewUpdateOrdersParams

func NewUpdateOrdersParams() UpdateOrdersParams

NewUpdateOrdersParams creates a new UpdateOrdersParams object

There are no default values defined in the spec.

func (*UpdateOrdersParams) BindRequest

func (o *UpdateOrdersParams) 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 NewUpdateOrdersParams() beforehand.

type UpdateOrdersURL

type UpdateOrdersURL struct {
	OrdersID strfmt.UUID
	// contains filtered or unexported fields
}

UpdateOrdersURL generates an URL for the update orders operation

func (*UpdateOrdersURL) Build

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

Build a url path and query string

func (*UpdateOrdersURL) BuildFull

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

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

func (*UpdateOrdersURL) Must

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

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

func (*UpdateOrdersURL) SetBasePath

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

func (o *UpdateOrdersURL) String() string

String returns the string representation of the path with query string

func (*UpdateOrdersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateOrdersURL) WithBasePath

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

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 UpdateOrdersUnauthorized

type UpdateOrdersUnauthorized struct {
}

UpdateOrdersUnauthorized request requires user authentication

swagger:response updateOrdersUnauthorized

func NewUpdateOrdersUnauthorized

func NewUpdateOrdersUnauthorized() *UpdateOrdersUnauthorized

NewUpdateOrdersUnauthorized creates UpdateOrdersUnauthorized with default headers values

func (*UpdateOrdersUnauthorized) WriteResponse

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

WriteResponse to the client

type UploadAmendedOrders

type UploadAmendedOrders struct {
	Context *middleware.Context
	Handler UploadAmendedOrdersHandler
}
UploadAmendedOrders swagger:route PATCH /orders/{ordersId}/upload_amended_orders orders uploadAmendedOrders

Patch the amended orders for a given order

Patch the amended orders for a given order

func NewUploadAmendedOrders

func NewUploadAmendedOrders(ctx *middleware.Context, handler UploadAmendedOrdersHandler) *UploadAmendedOrders

NewUploadAmendedOrders creates a new http.Handler for the upload amended orders operation

func (*UploadAmendedOrders) ServeHTTP

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

type UploadAmendedOrdersBadRequest

type UploadAmendedOrdersBadRequest struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.InvalidRequestResponsePayload `json:"body,omitempty"`
}

UploadAmendedOrdersBadRequest invalid request

swagger:response uploadAmendedOrdersBadRequest

func NewUploadAmendedOrdersBadRequest

func NewUploadAmendedOrdersBadRequest() *UploadAmendedOrdersBadRequest

NewUploadAmendedOrdersBadRequest creates UploadAmendedOrdersBadRequest with default headers values

func (*UploadAmendedOrdersBadRequest) SetPayload

SetPayload sets the payload to the upload amended orders bad request response

func (*UploadAmendedOrdersBadRequest) WithPayload

WithPayload adds the payload to the upload amended orders bad request response

func (*UploadAmendedOrdersBadRequest) WriteResponse

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

WriteResponse to the client

type UploadAmendedOrdersCreated

type UploadAmendedOrdersCreated struct {

	/*
	  In: Body
	*/
	Payload *internalmessages.Upload `json:"body,omitempty"`
}

UploadAmendedOrdersCreated created upload

swagger:response uploadAmendedOrdersCreated

func NewUploadAmendedOrdersCreated

func NewUploadAmendedOrdersCreated() *UploadAmendedOrdersCreated

NewUploadAmendedOrdersCreated creates UploadAmendedOrdersCreated with default headers values

func (*UploadAmendedOrdersCreated) SetPayload

func (o *UploadAmendedOrdersCreated) SetPayload(payload *internalmessages.Upload)

SetPayload sets the payload to the upload amended orders created response

func (*UploadAmendedOrdersCreated) WithPayload

WithPayload adds the payload to the upload amended orders created response

func (*UploadAmendedOrdersCreated) WriteResponse

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

WriteResponse to the client

type UploadAmendedOrdersForbidden

type UploadAmendedOrdersForbidden struct {
}

UploadAmendedOrdersForbidden not authorized

swagger:response uploadAmendedOrdersForbidden

func NewUploadAmendedOrdersForbidden

func NewUploadAmendedOrdersForbidden() *UploadAmendedOrdersForbidden

NewUploadAmendedOrdersForbidden creates UploadAmendedOrdersForbidden with default headers values

func (*UploadAmendedOrdersForbidden) WriteResponse

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

WriteResponse to the client

type UploadAmendedOrdersHandler

type UploadAmendedOrdersHandler interface {
	Handle(UploadAmendedOrdersParams) middleware.Responder
}

UploadAmendedOrdersHandler interface for that can handle valid upload amended orders params

type UploadAmendedOrdersHandlerFunc

type UploadAmendedOrdersHandlerFunc func(UploadAmendedOrdersParams) middleware.Responder

UploadAmendedOrdersHandlerFunc turns a function with the right signature into a upload amended orders handler

func (UploadAmendedOrdersHandlerFunc) Handle

Handle executing the request and returning a response

type UploadAmendedOrdersInternalServerError

type UploadAmendedOrdersInternalServerError struct {
}

UploadAmendedOrdersInternalServerError server error

swagger:response uploadAmendedOrdersInternalServerError

func NewUploadAmendedOrdersInternalServerError

func NewUploadAmendedOrdersInternalServerError() *UploadAmendedOrdersInternalServerError

NewUploadAmendedOrdersInternalServerError creates UploadAmendedOrdersInternalServerError with default headers values

func (*UploadAmendedOrdersInternalServerError) WriteResponse

WriteResponse to the client

type UploadAmendedOrdersNotFound

type UploadAmendedOrdersNotFound struct {
}

UploadAmendedOrdersNotFound not found

swagger:response uploadAmendedOrdersNotFound

func NewUploadAmendedOrdersNotFound

func NewUploadAmendedOrdersNotFound() *UploadAmendedOrdersNotFound

NewUploadAmendedOrdersNotFound creates UploadAmendedOrdersNotFound with default headers values

func (*UploadAmendedOrdersNotFound) WriteResponse

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

WriteResponse to the client

type UploadAmendedOrdersParams

type UploadAmendedOrdersParams struct {

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

	/*The file to upload.
	  Required: true
	  In: formData
	*/
	File io.ReadCloser
	/*UUID of the order
	  Required: true
	  In: path
	*/
	OrdersID strfmt.UUID
}

UploadAmendedOrdersParams contains all the bound params for the upload amended orders operation typically these are obtained from a http.Request

swagger:parameters uploadAmendedOrders

func NewUploadAmendedOrdersParams

func NewUploadAmendedOrdersParams() UploadAmendedOrdersParams

NewUploadAmendedOrdersParams creates a new UploadAmendedOrdersParams object

There are no default values defined in the spec.

func (*UploadAmendedOrdersParams) BindRequest

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 NewUploadAmendedOrdersParams() beforehand.

type UploadAmendedOrdersRequestEntityTooLarge

type UploadAmendedOrdersRequestEntityTooLarge struct {
}

UploadAmendedOrdersRequestEntityTooLarge payload is too large

swagger:response uploadAmendedOrdersRequestEntityTooLarge

func NewUploadAmendedOrdersRequestEntityTooLarge

func NewUploadAmendedOrdersRequestEntityTooLarge() *UploadAmendedOrdersRequestEntityTooLarge

NewUploadAmendedOrdersRequestEntityTooLarge creates UploadAmendedOrdersRequestEntityTooLarge with default headers values

func (*UploadAmendedOrdersRequestEntityTooLarge) WriteResponse

WriteResponse to the client

type UploadAmendedOrdersURL

type UploadAmendedOrdersURL struct {
	OrdersID strfmt.UUID
	// contains filtered or unexported fields
}

UploadAmendedOrdersURL generates an URL for the upload amended orders operation

func (*UploadAmendedOrdersURL) Build

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

Build a url path and query string

func (*UploadAmendedOrdersURL) BuildFull

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

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

func (*UploadAmendedOrdersURL) Must

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

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

func (*UploadAmendedOrdersURL) SetBasePath

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

func (o *UploadAmendedOrdersURL) String() string

String returns the string representation of the path with query string

func (*UploadAmendedOrdersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UploadAmendedOrdersURL) WithBasePath

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