Documentation ¶
Index ¶
- Constants
- type PutPay
- type PutPayBadRequest
- type PutPayHandler
- type PutPayHandlerFunc
- type PutPayInternalServerError
- type PutPayNotFound
- type PutPayOK
- type PutPayParams
- type PutPayURL
- func (o *PutPayURL) Build() (*url.URL, error)
- func (o *PutPayURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PutPayURL) Must(u *url.URL, err error) *url.URL
- func (o *PutPayURL) SetBasePath(bp string)
- func (o *PutPayURL) String() string
- func (o *PutPayURL) StringFull(scheme, host string) string
- func (o *PutPayURL) WithBasePath(bp string) *PutPayURL
Constants ¶
const PutPayBadRequestCode int = 400
PutPayBadRequestCode is the HTTP code returned for type PutPayBadRequest
const PutPayInternalServerErrorCode int = 500
PutPayInternalServerErrorCode is the HTTP code returned for type PutPayInternalServerError
const PutPayNotFoundCode int = 404
PutPayNotFoundCode is the HTTP code returned for type PutPayNotFound
const PutPayOKCode int = 200
PutPayOKCode is the HTTP code returned for type PutPayOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PutPay ¶
type PutPay struct { Context *middleware.Context Handler PutPayHandler }
PutPay swagger:route PUT /pay payment putPay
get route by ticket number
func NewPutPay ¶
func NewPutPay(ctx *middleware.Context, handler PutPayHandler) *PutPay
NewPutPay creates a new http.Handler for the put pay operation
type PutPayBadRequest ¶
type PutPayBadRequest struct { /* In: Body */ Payload *models.StatusResponse `json:"body,omitempty"` }
PutPayBadRequest Bad request
swagger:response putPayBadRequest
func NewPutPayBadRequest ¶
func NewPutPayBadRequest() *PutPayBadRequest
NewPutPayBadRequest creates PutPayBadRequest with default headers values
func (*PutPayBadRequest) SetPayload ¶
func (o *PutPayBadRequest) SetPayload(payload *models.StatusResponse)
SetPayload sets the payload to the put pay bad request response
func (*PutPayBadRequest) WithPayload ¶
func (o *PutPayBadRequest) WithPayload(payload *models.StatusResponse) *PutPayBadRequest
WithPayload adds the payload to the put pay bad request response
func (*PutPayBadRequest) WriteResponse ¶
func (o *PutPayBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutPayHandler ¶
type PutPayHandler interface {
Handle(PutPayParams) middleware.Responder
}
PutPayHandler interface for that can handle valid put pay params
type PutPayHandlerFunc ¶
type PutPayHandlerFunc func(PutPayParams) middleware.Responder
PutPayHandlerFunc turns a function with the right signature into a put pay handler
func (PutPayHandlerFunc) Handle ¶
func (fn PutPayHandlerFunc) Handle(params PutPayParams) middleware.Responder
Handle executing the request and returning a response
type PutPayInternalServerError ¶
type PutPayInternalServerError struct { /* In: Body */ Payload *models.StatusResponse `json:"body,omitempty"` }
PutPayInternalServerError Internal server error
swagger:response putPayInternalServerError
func NewPutPayInternalServerError ¶
func NewPutPayInternalServerError() *PutPayInternalServerError
NewPutPayInternalServerError creates PutPayInternalServerError with default headers values
func (*PutPayInternalServerError) SetPayload ¶
func (o *PutPayInternalServerError) SetPayload(payload *models.StatusResponse)
SetPayload sets the payload to the put pay internal server error response
func (*PutPayInternalServerError) WithPayload ¶
func (o *PutPayInternalServerError) WithPayload(payload *models.StatusResponse) *PutPayInternalServerError
WithPayload adds the payload to the put pay internal server error response
func (*PutPayInternalServerError) WriteResponse ¶
func (o *PutPayInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutPayNotFound ¶
type PutPayNotFound struct { /* In: Body */ Payload *models.StatusResponse `json:"body,omitempty"` }
PutPayNotFound Not found
swagger:response putPayNotFound
func NewPutPayNotFound ¶
func NewPutPayNotFound() *PutPayNotFound
NewPutPayNotFound creates PutPayNotFound with default headers values
func (*PutPayNotFound) SetPayload ¶
func (o *PutPayNotFound) SetPayload(payload *models.StatusResponse)
SetPayload sets the payload to the put pay not found response
func (*PutPayNotFound) WithPayload ¶
func (o *PutPayNotFound) WithPayload(payload *models.StatusResponse) *PutPayNotFound
WithPayload adds the payload to the put pay not found response
func (*PutPayNotFound) WriteResponse ¶
func (o *PutPayNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutPayOK ¶
type PutPayOK struct { /* In: Body */ Payload *models.PaymentResponse `json:"body,omitempty"` }
PutPayOK OK
swagger:response putPayOK
func NewPutPayOK ¶
func NewPutPayOK() *PutPayOK
NewPutPayOK creates PutPayOK with default headers values
func (*PutPayOK) SetPayload ¶
func (o *PutPayOK) SetPayload(payload *models.PaymentResponse)
SetPayload sets the payload to the put pay o k response
func (*PutPayOK) WithPayload ¶
func (o *PutPayOK) WithPayload(payload *models.PaymentResponse) *PutPayOK
WithPayload adds the payload to the put pay o k response
func (*PutPayOK) WriteResponse ¶
func (o *PutPayOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PutPayParams ¶
type PutPayParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Payment data Required: true In: body */ Body *models.PaymentRequest }
PutPayParams contains all the bound params for the put pay operation typically these are obtained from a http.Request
swagger:parameters PutPay
func NewPutPayParams ¶
func NewPutPayParams() PutPayParams
NewPutPayParams creates a new PutPayParams object no default values defined in spec.
func (*PutPayParams) BindRequest ¶
func (o *PutPayParams) 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 NewPutPayParams() beforehand.
type PutPayURL ¶
type PutPayURL struct {
// contains filtered or unexported fields
}
PutPayURL generates an URL for the put pay operation
func (*PutPayURL) SetBasePath ¶
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 (*PutPayURL) StringFull ¶
StringFull returns the string representation of a complete url
func (*PutPayURL) 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