operations

package
v0.0.0-...-f9fae43 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const DeletePaymentsIDNoContentCode int = 204

DeletePaymentsIDNoContentCode is the HTTP code returned for type DeletePaymentsIDNoContent

View Source
const DeletePaymentsIDNotFoundCode int = 404

DeletePaymentsIDNotFoundCode is the HTTP code returned for type DeletePaymentsIDNotFound

View Source
const GetHealthOKCode int = 200

GetHealthOKCode is the HTTP code returned for type GetHealthOK

View Source
const GetPaymentsIDNotFoundCode int = 404

GetPaymentsIDNotFoundCode is the HTTP code returned for type GetPaymentsIDNotFound

View Source
const GetPaymentsIDOKCode int = 200

GetPaymentsIDOKCode is the HTTP code returned for type GetPaymentsIDOK

View Source
const GetPaymentsInternalServerErrorCode int = 500

GetPaymentsInternalServerErrorCode is the HTTP code returned for type GetPaymentsInternalServerError

View Source
const GetPaymentsOKCode int = 200

GetPaymentsOKCode is the HTTP code returned for type GetPaymentsOK

View Source
const PatchPaymentsBadRequestCode int = 400

PatchPaymentsBadRequestCode is the HTTP code returned for type PatchPaymentsBadRequest

View Source
const PatchPaymentsInternalServerErrorCode int = 500

PatchPaymentsInternalServerErrorCode is the HTTP code returned for type PatchPaymentsInternalServerError

View Source
const PatchPaymentsNotFoundCode int = 404

PatchPaymentsNotFoundCode is the HTTP code returned for type PatchPaymentsNotFound

View Source
const PatchPaymentsOKCode int = 200

PatchPaymentsOKCode is the HTTP code returned for type PatchPaymentsOK

View Source
const PostPaymentsBadRequestCode int = 400

PostPaymentsBadRequestCode is the HTTP code returned for type PostPaymentsBadRequest

View Source
const PostPaymentsCreatedCode int = 201

PostPaymentsCreatedCode is the HTTP code returned for type PostPaymentsCreated

View Source
const PostPaymentsInternalServerErrorCode int = 500

PostPaymentsInternalServerErrorCode is the HTTP code returned for type PostPaymentsInternalServerError

Variables

This section is empty.

Functions

This section is empty.

Types

type DeletePaymentsID

type DeletePaymentsID struct {
	Context *middleware.Context
	Handler DeletePaymentsIDHandler
}

DeletePaymentsID swagger:route DELETE /payments/{id} deletePaymentsId

Delete payment

func NewDeletePaymentsID

func NewDeletePaymentsID(ctx *middleware.Context, handler DeletePaymentsIDHandler) *DeletePaymentsID

NewDeletePaymentsID creates a new http.Handler for the delete payments ID operation

func (*DeletePaymentsID) ServeHTTP

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

type DeletePaymentsIDHandler

type DeletePaymentsIDHandler interface {
	Handle(DeletePaymentsIDParams) middleware.Responder
}

DeletePaymentsIDHandler interface for that can handle valid delete payments ID params

type DeletePaymentsIDHandlerFunc

type DeletePaymentsIDHandlerFunc func(DeletePaymentsIDParams) middleware.Responder

DeletePaymentsIDHandlerFunc turns a function with the right signature into a delete payments ID handler

func (DeletePaymentsIDHandlerFunc) Handle

Handle executing the request and returning a response

type DeletePaymentsIDNoContent

type DeletePaymentsIDNoContent struct {
}

DeletePaymentsIDNoContent Payment deletion response

swagger:response deletePaymentsIdNoContent

func NewDeletePaymentsIDNoContent

func NewDeletePaymentsIDNoContent() *DeletePaymentsIDNoContent

NewDeletePaymentsIDNoContent creates DeletePaymentsIDNoContent with default headers values

func (*DeletePaymentsIDNoContent) WriteResponse

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

WriteResponse to the client

type DeletePaymentsIDNotFound

type DeletePaymentsIDNotFound struct {

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

DeletePaymentsIDNotFound Payment deletion error

swagger:response deletePaymentsIdNotFound

func NewDeletePaymentsIDNotFound

func NewDeletePaymentsIDNotFound() *DeletePaymentsIDNotFound

NewDeletePaymentsIDNotFound creates DeletePaymentsIDNotFound with default headers values

func (*DeletePaymentsIDNotFound) SetPayload

func (o *DeletePaymentsIDNotFound) SetPayload(payload *models.APIError)

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

func (*DeletePaymentsIDNotFound) WithPayload

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

func (*DeletePaymentsIDNotFound) WriteResponse

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

WriteResponse to the client

type DeletePaymentsIDParams

type DeletePaymentsIDParams struct {

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

	/*Payment Id
	  Required: true
	  In: path
	*/
	ID strfmt.UUID
}

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

swagger:parameters DeletePaymentsID

func NewDeletePaymentsIDParams

func NewDeletePaymentsIDParams() DeletePaymentsIDParams

NewDeletePaymentsIDParams creates a new DeletePaymentsIDParams object no default values defined in spec.

func (*DeletePaymentsIDParams) BindRequest

func (o *DeletePaymentsIDParams) 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 NewDeletePaymentsIDParams() beforehand.

type DeletePaymentsIDURL

type DeletePaymentsIDURL struct {
	ID strfmt.UUID
	// contains filtered or unexported fields
}

DeletePaymentsIDURL generates an URL for the delete payments ID operation

func (*DeletePaymentsIDURL) Build

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

Build a url path and query string

func (*DeletePaymentsIDURL) BuildFull

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

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

func (*DeletePaymentsIDURL) Must

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

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

func (*DeletePaymentsIDURL) SetBasePath

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

func (o *DeletePaymentsIDURL) String() string

String returns the string representation of the path with query string

func (*DeletePaymentsIDURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeletePaymentsIDURL) WithBasePath

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

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 Form3paymentsAPI

type Form3paymentsAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator
	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator
	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator

	// JSONConsumer registers a consumer for a "application/json" mime type
	JSONConsumer runtime.Consumer

	// JSONProducer registers a producer for a "application/json" mime type
	JSONProducer runtime.Producer

	// DeletePaymentsIDHandler sets the operation handler for the delete payments ID operation
	DeletePaymentsIDHandler DeletePaymentsIDHandler
	// GetHealthHandler sets the operation handler for the get health operation
	GetHealthHandler GetHealthHandler
	// GetPaymentsHandler sets the operation handler for the get payments operation
	GetPaymentsHandler GetPaymentsHandler
	// GetPaymentsIDHandler sets the operation handler for the get payments ID operation
	GetPaymentsIDHandler GetPaymentsIDHandler
	// PatchPaymentsHandler sets the operation handler for the patch payments operation
	PatchPaymentsHandler PatchPaymentsHandler
	// PostPaymentsHandler sets the operation handler for the post payments operation
	PostPaymentsHandler PostPaymentsHandler

	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

Form3paymentsAPI the form3payments API

func NewForm3paymentsAPI

func NewForm3paymentsAPI(spec *loads.Document) *Form3paymentsAPI

NewForm3paymentsAPI creates a new Form3payments instance

func (*Form3paymentsAPI) AuthenticatorsFor

func (o *Form3paymentsAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*Form3paymentsAPI) Authorizer

func (o *Form3paymentsAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*Form3paymentsAPI) ConsumersFor

func (o *Form3paymentsAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types

func (*Form3paymentsAPI) Context

func (o *Form3paymentsAPI) Context() *middleware.Context

Context returns the middleware context for the form3payments API

func (*Form3paymentsAPI) DefaultConsumes

func (o *Form3paymentsAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*Form3paymentsAPI) DefaultProduces

func (o *Form3paymentsAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*Form3paymentsAPI) Formats

func (o *Form3paymentsAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*Form3paymentsAPI) HandlerFor

func (o *Form3paymentsAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*Form3paymentsAPI) Init

func (o *Form3paymentsAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*Form3paymentsAPI) ProducersFor

func (o *Form3paymentsAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types

func (*Form3paymentsAPI) RegisterConsumer

func (o *Form3paymentsAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*Form3paymentsAPI) RegisterFormat

func (o *Form3paymentsAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*Form3paymentsAPI) RegisterProducer

func (o *Form3paymentsAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*Form3paymentsAPI) Serve

func (o *Form3paymentsAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*Form3paymentsAPI) ServeErrorFor

func (o *Form3paymentsAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*Form3paymentsAPI) SetDefaultConsumes

func (o *Form3paymentsAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*Form3paymentsAPI) SetDefaultProduces

func (o *Form3paymentsAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*Form3paymentsAPI) SetSpec

func (o *Form3paymentsAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*Form3paymentsAPI) Validate

func (o *Form3paymentsAPI) Validate() error

Validate validates the registrations in the Form3paymentsAPI

type GetHealth

type GetHealth struct {
	Context *middleware.Context
	Handler GetHealthHandler
}

GetHealth swagger:route GET /health getHealth

Fetch payment service health

func NewGetHealth

func NewGetHealth(ctx *middleware.Context, handler GetHealthHandler) *GetHealth

NewGetHealth creates a new http.Handler for the get health operation

func (*GetHealth) ServeHTTP

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

type GetHealthHandler

type GetHealthHandler interface {
	Handle(GetHealthParams) middleware.Responder
}

GetHealthHandler interface for that can handle valid get health params

type GetHealthHandlerFunc

type GetHealthHandlerFunc func(GetHealthParams) middleware.Responder

GetHealthHandlerFunc turns a function with the right signature into a get health handler

func (GetHealthHandlerFunc) Handle

Handle executing the request and returning a response

type GetHealthOK

type GetHealthOK struct {

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

GetHealthOK Payment service health

swagger:response getHealthOK

func NewGetHealthOK

func NewGetHealthOK() *GetHealthOK

NewGetHealthOK creates GetHealthOK with default headers values

func (*GetHealthOK) SetPayload

func (o *GetHealthOK) SetPayload(payload *models.Health)

SetPayload sets the payload to the get health o k response

func (*GetHealthOK) WithPayload

func (o *GetHealthOK) WithPayload(payload *models.Health) *GetHealthOK

WithPayload adds the payload to the get health o k response

func (*GetHealthOK) WriteResponse

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

WriteResponse to the client

type GetHealthParams

type GetHealthParams struct {

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

GetHealthParams contains all the bound params for the get health operation typically these are obtained from a http.Request

swagger:parameters GetHealth

func NewGetHealthParams

func NewGetHealthParams() GetHealthParams

NewGetHealthParams creates a new GetHealthParams object no default values defined in spec.

func (*GetHealthParams) BindRequest

func (o *GetHealthParams) 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 NewGetHealthParams() beforehand.

type GetHealthURL

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

GetHealthURL generates an URL for the get health operation

func (*GetHealthURL) Build

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

Build a url path and query string

func (*GetHealthURL) BuildFull

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

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

func (*GetHealthURL) Must

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

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

func (*GetHealthURL) SetBasePath

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

func (o *GetHealthURL) String() string

String returns the string representation of the path with query string

func (*GetHealthURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetHealthURL) WithBasePath

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

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 GetPayments

type GetPayments struct {
	Context *middleware.Context
	Handler GetPaymentsHandler
}

GetPayments swagger:route GET /payments getPayments

List payments

func NewGetPayments

func NewGetPayments(ctx *middleware.Context, handler GetPaymentsHandler) *GetPayments

NewGetPayments creates a new http.Handler for the get payments operation

func (*GetPayments) ServeHTTP

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

type GetPaymentsHandler

type GetPaymentsHandler interface {
	Handle(GetPaymentsParams) middleware.Responder
}

GetPaymentsHandler interface for that can handle valid get payments params

type GetPaymentsHandlerFunc

type GetPaymentsHandlerFunc func(GetPaymentsParams) middleware.Responder

GetPaymentsHandlerFunc turns a function with the right signature into a get payments handler

func (GetPaymentsHandlerFunc) Handle

Handle executing the request and returning a response

type GetPaymentsID

type GetPaymentsID struct {
	Context *middleware.Context
	Handler GetPaymentsIDHandler
}

GetPaymentsID swagger:route GET /payments/{id} getPaymentsId

Fetch payment

func NewGetPaymentsID

func NewGetPaymentsID(ctx *middleware.Context, handler GetPaymentsIDHandler) *GetPaymentsID

NewGetPaymentsID creates a new http.Handler for the get payments ID operation

func (*GetPaymentsID) ServeHTTP

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

type GetPaymentsIDHandler

type GetPaymentsIDHandler interface {
	Handle(GetPaymentsIDParams) middleware.Responder
}

GetPaymentsIDHandler interface for that can handle valid get payments ID params

type GetPaymentsIDHandlerFunc

type GetPaymentsIDHandlerFunc func(GetPaymentsIDParams) middleware.Responder

GetPaymentsIDHandlerFunc turns a function with the right signature into a get payments ID handler

func (GetPaymentsIDHandlerFunc) Handle

Handle executing the request and returning a response

type GetPaymentsIDNotFound

type GetPaymentsIDNotFound struct {

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

GetPaymentsIDNotFound Resource not found

swagger:response getPaymentsIdNotFound

func NewGetPaymentsIDNotFound

func NewGetPaymentsIDNotFound() *GetPaymentsIDNotFound

NewGetPaymentsIDNotFound creates GetPaymentsIDNotFound with default headers values

func (*GetPaymentsIDNotFound) SetPayload

func (o *GetPaymentsIDNotFound) SetPayload(payload *models.APIError)

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

func (*GetPaymentsIDNotFound) WithPayload

func (o *GetPaymentsIDNotFound) WithPayload(payload *models.APIError) *GetPaymentsIDNotFound

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

func (*GetPaymentsIDNotFound) WriteResponse

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

WriteResponse to the client

type GetPaymentsIDOK

type GetPaymentsIDOK struct {

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

GetPaymentsIDOK Payment details

swagger:response getPaymentsIdOK

func NewGetPaymentsIDOK

func NewGetPaymentsIDOK() *GetPaymentsIDOK

NewGetPaymentsIDOK creates GetPaymentsIDOK with default headers values

func (*GetPaymentsIDOK) SetPayload

func (o *GetPaymentsIDOK) SetPayload(payload *models.PaymentDetailsResponse)

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

func (*GetPaymentsIDOK) WithPayload

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

func (*GetPaymentsIDOK) WriteResponse

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

WriteResponse to the client

type GetPaymentsIDParams

type GetPaymentsIDParams struct {

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

	/*Payment Id
	  Required: true
	  In: path
	*/
	ID strfmt.UUID
}

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

swagger:parameters GetPaymentsID

func NewGetPaymentsIDParams

func NewGetPaymentsIDParams() GetPaymentsIDParams

NewGetPaymentsIDParams creates a new GetPaymentsIDParams object no default values defined in spec.

func (*GetPaymentsIDParams) BindRequest

func (o *GetPaymentsIDParams) 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 NewGetPaymentsIDParams() beforehand.

type GetPaymentsIDURL

type GetPaymentsIDURL struct {
	ID strfmt.UUID
	// contains filtered or unexported fields
}

GetPaymentsIDURL generates an URL for the get payments ID operation

func (*GetPaymentsIDURL) Build

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

Build a url path and query string

func (*GetPaymentsIDURL) BuildFull

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

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

func (*GetPaymentsIDURL) Must

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

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

func (*GetPaymentsIDURL) SetBasePath

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

func (o *GetPaymentsIDURL) String() string

String returns the string representation of the path with query string

func (*GetPaymentsIDURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetPaymentsIDURL) WithBasePath

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

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 GetPaymentsInternalServerError

type GetPaymentsInternalServerError struct {

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

GetPaymentsInternalServerError Fatal error

swagger:response getPaymentsInternalServerError

func NewGetPaymentsInternalServerError

func NewGetPaymentsInternalServerError() *GetPaymentsInternalServerError

NewGetPaymentsInternalServerError creates GetPaymentsInternalServerError with default headers values

func (*GetPaymentsInternalServerError) SetPayload

func (o *GetPaymentsInternalServerError) SetPayload(payload *models.APIError)

SetPayload sets the payload to the get payments internal server error response

func (*GetPaymentsInternalServerError) WithPayload

WithPayload adds the payload to the get payments internal server error response

func (*GetPaymentsInternalServerError) WriteResponse

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

WriteResponse to the client

type GetPaymentsOK

type GetPaymentsOK struct {

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

GetPaymentsOK List of payment details

swagger:response getPaymentsOK

func NewGetPaymentsOK

func NewGetPaymentsOK() *GetPaymentsOK

NewGetPaymentsOK creates GetPaymentsOK with default headers values

func (*GetPaymentsOK) SetPayload

func (o *GetPaymentsOK) SetPayload(payload *models.PaymentDetailsListResponse)

SetPayload sets the payload to the get payments o k response

func (*GetPaymentsOK) WithPayload

WithPayload adds the payload to the get payments o k response

func (*GetPaymentsOK) WriteResponse

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

WriteResponse to the client

type GetPaymentsParams

type GetPaymentsParams struct {

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

	/*Filter by organisation id
	  In: query
	*/
	FilterOrganisationID []strfmt.UUID
}

GetPaymentsParams contains all the bound params for the get payments operation typically these are obtained from a http.Request

swagger:parameters GetPayments

func NewGetPaymentsParams

func NewGetPaymentsParams() GetPaymentsParams

NewGetPaymentsParams creates a new GetPaymentsParams object no default values defined in spec.

func (*GetPaymentsParams) BindRequest

func (o *GetPaymentsParams) 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 NewGetPaymentsParams() beforehand.

type GetPaymentsURL

type GetPaymentsURL struct {
	FilterOrganisationID []strfmt.UUID
	// contains filtered or unexported fields
}

GetPaymentsURL generates an URL for the get payments operation

func (*GetPaymentsURL) Build

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

Build a url path and query string

func (*GetPaymentsURL) BuildFull

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

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

func (*GetPaymentsURL) Must

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

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

func (*GetPaymentsURL) SetBasePath

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

func (o *GetPaymentsURL) String() string

String returns the string representation of the path with query string

func (*GetPaymentsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetPaymentsURL) WithBasePath

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

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 PatchPayments

type PatchPayments struct {
	Context *middleware.Context
	Handler PatchPaymentsHandler
}

PatchPayments swagger:route PATCH /payments patchPayments

Patch payment

func NewPatchPayments

func NewPatchPayments(ctx *middleware.Context, handler PatchPaymentsHandler) *PatchPayments

NewPatchPayments creates a new http.Handler for the patch payments operation

func (*PatchPayments) ServeHTTP

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

type PatchPaymentsBadRequest

type PatchPaymentsBadRequest struct {

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

PatchPaymentsBadRequest Payment update error

swagger:response patchPaymentsBadRequest

func NewPatchPaymentsBadRequest

func NewPatchPaymentsBadRequest() *PatchPaymentsBadRequest

NewPatchPaymentsBadRequest creates PatchPaymentsBadRequest with default headers values

func (*PatchPaymentsBadRequest) SetPayload

func (o *PatchPaymentsBadRequest) SetPayload(payload *models.APIError)

SetPayload sets the payload to the patch payments bad request response

func (*PatchPaymentsBadRequest) WithPayload

WithPayload adds the payload to the patch payments bad request response

func (*PatchPaymentsBadRequest) WriteResponse

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

WriteResponse to the client

type PatchPaymentsHandler

type PatchPaymentsHandler interface {
	Handle(PatchPaymentsParams) middleware.Responder
}

PatchPaymentsHandler interface for that can handle valid patch payments params

type PatchPaymentsHandlerFunc

type PatchPaymentsHandlerFunc func(PatchPaymentsParams) middleware.Responder

PatchPaymentsHandlerFunc turns a function with the right signature into a patch payments handler

func (PatchPaymentsHandlerFunc) Handle

Handle executing the request and returning a response

type PatchPaymentsInternalServerError

type PatchPaymentsInternalServerError struct {

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

PatchPaymentsInternalServerError Fatal error

swagger:response patchPaymentsInternalServerError

func NewPatchPaymentsInternalServerError

func NewPatchPaymentsInternalServerError() *PatchPaymentsInternalServerError

NewPatchPaymentsInternalServerError creates PatchPaymentsInternalServerError with default headers values

func (*PatchPaymentsInternalServerError) SetPayload

func (o *PatchPaymentsInternalServerError) SetPayload(payload *models.APIError)

SetPayload sets the payload to the patch payments internal server error response

func (*PatchPaymentsInternalServerError) WithPayload

WithPayload adds the payload to the patch payments internal server error response

func (*PatchPaymentsInternalServerError) WriteResponse

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

WriteResponse to the client

type PatchPaymentsNotFound

type PatchPaymentsNotFound struct {

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

PatchPaymentsNotFound Payment update not found

swagger:response patchPaymentsNotFound

func NewPatchPaymentsNotFound

func NewPatchPaymentsNotFound() *PatchPaymentsNotFound

NewPatchPaymentsNotFound creates PatchPaymentsNotFound with default headers values

func (*PatchPaymentsNotFound) SetPayload

func (o *PatchPaymentsNotFound) SetPayload(payload *models.APIError)

SetPayload sets the payload to the patch payments not found response

func (*PatchPaymentsNotFound) WithPayload

func (o *PatchPaymentsNotFound) WithPayload(payload *models.APIError) *PatchPaymentsNotFound

WithPayload adds the payload to the patch payments not found response

func (*PatchPaymentsNotFound) WriteResponse

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

WriteResponse to the client

type PatchPaymentsOK

type PatchPaymentsOK struct {
}

PatchPaymentsOK Payment update response

swagger:response patchPaymentsOK

func NewPatchPaymentsOK

func NewPatchPaymentsOK() *PatchPaymentsOK

NewPatchPaymentsOK creates PatchPaymentsOK with default headers values

func (*PatchPaymentsOK) WriteResponse

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

WriteResponse to the client

type PatchPaymentsParams

type PatchPaymentsParams struct {

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

	/*
	  In: body
	*/
	PaymentUpdateRequest *models.PaymentUpdate
}

PatchPaymentsParams contains all the bound params for the patch payments operation typically these are obtained from a http.Request

swagger:parameters PatchPayments

func NewPatchPaymentsParams

func NewPatchPaymentsParams() PatchPaymentsParams

NewPatchPaymentsParams creates a new PatchPaymentsParams object no default values defined in spec.

func (*PatchPaymentsParams) BindRequest

func (o *PatchPaymentsParams) 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 NewPatchPaymentsParams() beforehand.

type PatchPaymentsURL

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

PatchPaymentsURL generates an URL for the patch payments operation

func (*PatchPaymentsURL) Build

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

Build a url path and query string

func (*PatchPaymentsURL) BuildFull

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

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

func (*PatchPaymentsURL) Must

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

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

func (*PatchPaymentsURL) SetBasePath

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

func (o *PatchPaymentsURL) String() string

String returns the string representation of the path with query string

func (*PatchPaymentsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PatchPaymentsURL) WithBasePath

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

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 PostPayments

type PostPayments struct {
	Context *middleware.Context
	Handler PostPaymentsHandler
}

PostPayments swagger:route POST /payments postPayments

Create payment

func NewPostPayments

func NewPostPayments(ctx *middleware.Context, handler PostPaymentsHandler) *PostPayments

NewPostPayments creates a new http.Handler for the post payments operation

func (*PostPayments) ServeHTTP

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

type PostPaymentsBadRequest

type PostPaymentsBadRequest struct {

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

PostPaymentsBadRequest Payment creation error

swagger:response postPaymentsBadRequest

func NewPostPaymentsBadRequest

func NewPostPaymentsBadRequest() *PostPaymentsBadRequest

NewPostPaymentsBadRequest creates PostPaymentsBadRequest with default headers values

func (*PostPaymentsBadRequest) SetPayload

func (o *PostPaymentsBadRequest) SetPayload(payload *models.APIError)

SetPayload sets the payload to the post payments bad request response

func (*PostPaymentsBadRequest) WithPayload

WithPayload adds the payload to the post payments bad request response

func (*PostPaymentsBadRequest) WriteResponse

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

WriteResponse to the client

type PostPaymentsCreated

type PostPaymentsCreated struct {

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

PostPaymentsCreated Payment creation response

swagger:response postPaymentsCreated

func NewPostPaymentsCreated

func NewPostPaymentsCreated() *PostPaymentsCreated

NewPostPaymentsCreated creates PostPaymentsCreated with default headers values

func (*PostPaymentsCreated) SetPayload

func (o *PostPaymentsCreated) SetPayload(payload *models.PaymentCreationResponse)

SetPayload sets the payload to the post payments created response

func (*PostPaymentsCreated) WithPayload

WithPayload adds the payload to the post payments created response

func (*PostPaymentsCreated) WriteResponse

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

WriteResponse to the client

type PostPaymentsHandler

type PostPaymentsHandler interface {
	Handle(PostPaymentsParams) middleware.Responder
}

PostPaymentsHandler interface for that can handle valid post payments params

type PostPaymentsHandlerFunc

type PostPaymentsHandlerFunc func(PostPaymentsParams) middleware.Responder

PostPaymentsHandlerFunc turns a function with the right signature into a post payments handler

func (PostPaymentsHandlerFunc) Handle

Handle executing the request and returning a response

type PostPaymentsInternalServerError

type PostPaymentsInternalServerError struct {

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

PostPaymentsInternalServerError Fatal error

swagger:response postPaymentsInternalServerError

func NewPostPaymentsInternalServerError

func NewPostPaymentsInternalServerError() *PostPaymentsInternalServerError

NewPostPaymentsInternalServerError creates PostPaymentsInternalServerError with default headers values

func (*PostPaymentsInternalServerError) SetPayload

func (o *PostPaymentsInternalServerError) SetPayload(payload *models.APIError)

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

func (*PostPaymentsInternalServerError) WithPayload

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

func (*PostPaymentsInternalServerError) WriteResponse

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

WriteResponse to the client

type PostPaymentsParams

type PostPaymentsParams struct {

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

	/*
	  In: body
	*/
	PaymentCreationRequest *models.PaymentCreation
}

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

swagger:parameters PostPayments

func NewPostPaymentsParams

func NewPostPaymentsParams() PostPaymentsParams

NewPostPaymentsParams creates a new PostPaymentsParams object no default values defined in spec.

func (*PostPaymentsParams) BindRequest

func (o *PostPaymentsParams) 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 NewPostPaymentsParams() beforehand.

type PostPaymentsURL

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

PostPaymentsURL generates an URL for the post payments operation

func (*PostPaymentsURL) Build

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

Build a url path and query string

func (*PostPaymentsURL) BuildFull

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

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

func (*PostPaymentsURL) Must

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

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

func (*PostPaymentsURL) SetBasePath

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

func (o *PostPaymentsURL) String() string

String returns the string representation of the path with query string

func (*PostPaymentsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PostPaymentsURL) WithBasePath

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

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