payment

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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PutPayBadRequestCode int = 400

PutPayBadRequestCode is the HTTP code returned for type PutPayBadRequest

View Source
const PutPayInternalServerErrorCode int = 500

PutPayInternalServerErrorCode is the HTTP code returned for type PutPayInternalServerError

View Source
const PutPayNotFoundCode int = 404

PutPayNotFoundCode is the HTTP code returned for type PutPayNotFound

View Source
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

func (*PutPay) ServeHTTP

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

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

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

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) Build

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

Build a url path and query string

func (*PutPayURL) BuildFull

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

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

func (*PutPayURL) Must

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

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

func (*PutPayURL) SetBasePath

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

func (o *PutPayURL) String() string

String returns the string representation of the path with query string

func (*PutPayURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PutPayURL) WithBasePath

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

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