Documentation
¶
Index ¶
- Constants
- type CreatePayment
- type CreatePaymentConflict
- type CreatePaymentCreated
- type CreatePaymentHandler
- type CreatePaymentHandlerFunc
- type CreatePaymentInternalServerError
- func (o *CreatePaymentInternalServerError) SetPayload(payload *models.APIError)
- func (o *CreatePaymentInternalServerError) WithPayload(payload *models.APIError) *CreatePaymentInternalServerError
- func (o *CreatePaymentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreatePaymentParams
- type CreatePaymentTooManyRequests
- type CreatePaymentURL
- func (o *CreatePaymentURL) Build() (*url.URL, error)
- func (o *CreatePaymentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreatePaymentURL) Must(u *url.URL, err error) *url.URL
- func (o *CreatePaymentURL) SetBasePath(bp string)
- func (o *CreatePaymentURL) String() string
- func (o *CreatePaymentURL) StringFull(scheme, host string) string
- func (o *CreatePaymentURL) WithBasePath(bp string) *CreatePaymentURL
- type DeletePayment
- type DeletePaymentHandler
- type DeletePaymentHandlerFunc
- type DeletePaymentInternalServerError
- func (o *DeletePaymentInternalServerError) SetPayload(payload *models.APIError)
- func (o *DeletePaymentInternalServerError) WithPayload(payload *models.APIError) *DeletePaymentInternalServerError
- func (o *DeletePaymentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeletePaymentNoContent
- type DeletePaymentNotFound
- type DeletePaymentParams
- type DeletePaymentTooManyRequests
- type DeletePaymentURL
- func (o *DeletePaymentURL) Build() (*url.URL, error)
- func (o *DeletePaymentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeletePaymentURL) Must(u *url.URL, err error) *url.URL
- func (o *DeletePaymentURL) SetBasePath(bp string)
- func (o *DeletePaymentURL) String() string
- func (o *DeletePaymentURL) StringFull(scheme, host string) string
- func (o *DeletePaymentURL) WithBasePath(bp string) *DeletePaymentURL
- type GetPayment
- type GetPaymentHandler
- type GetPaymentHandlerFunc
- type GetPaymentInternalServerError
- type GetPaymentNotFound
- type GetPaymentOK
- type GetPaymentParams
- type GetPaymentTooManyRequests
- type GetPaymentURL
- func (o *GetPaymentURL) Build() (*url.URL, error)
- func (o *GetPaymentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetPaymentURL) Must(u *url.URL, err error) *url.URL
- func (o *GetPaymentURL) SetBasePath(bp string)
- func (o *GetPaymentURL) String() string
- func (o *GetPaymentURL) StringFull(scheme, host string) string
- func (o *GetPaymentURL) WithBasePath(bp string) *GetPaymentURL
- type ListPayments
- type ListPaymentsHandler
- type ListPaymentsHandlerFunc
- type ListPaymentsInternalServerError
- type ListPaymentsNotFound
- type ListPaymentsOK
- type ListPaymentsParams
- type ListPaymentsTooManyRequests
- type ListPaymentsURL
- func (o *ListPaymentsURL) Build() (*url.URL, error)
- func (o *ListPaymentsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListPaymentsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListPaymentsURL) SetBasePath(bp string)
- func (o *ListPaymentsURL) String() string
- func (o *ListPaymentsURL) StringFull(scheme, host string) string
- func (o *ListPaymentsURL) WithBasePath(bp string) *ListPaymentsURL
- type UpdatePayment
- type UpdatePaymentHandler
- type UpdatePaymentHandlerFunc
- type UpdatePaymentInternalServerError
- func (o *UpdatePaymentInternalServerError) SetPayload(payload *models.APIError)
- func (o *UpdatePaymentInternalServerError) WithPayload(payload *models.APIError) *UpdatePaymentInternalServerError
- func (o *UpdatePaymentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type UpdatePaymentNotFound
- type UpdatePaymentOK
- type UpdatePaymentParams
- type UpdatePaymentTooManyRequests
- type UpdatePaymentURL
- func (o *UpdatePaymentURL) Build() (*url.URL, error)
- func (o *UpdatePaymentURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *UpdatePaymentURL) Must(u *url.URL, err error) *url.URL
- func (o *UpdatePaymentURL) SetBasePath(bp string)
- func (o *UpdatePaymentURL) String() string
- func (o *UpdatePaymentURL) StringFull(scheme, host string) string
- func (o *UpdatePaymentURL) WithBasePath(bp string) *UpdatePaymentURL
Constants ¶
const CreatePaymentConflictCode int = 409
CreatePaymentConflictCode is the HTTP code returned for type CreatePaymentConflict
const CreatePaymentCreatedCode int = 201
CreatePaymentCreatedCode is the HTTP code returned for type CreatePaymentCreated
const CreatePaymentInternalServerErrorCode int = 500
CreatePaymentInternalServerErrorCode is the HTTP code returned for type CreatePaymentInternalServerError
const CreatePaymentTooManyRequestsCode int = 429
CreatePaymentTooManyRequestsCode is the HTTP code returned for type CreatePaymentTooManyRequests
const DeletePaymentInternalServerErrorCode int = 500
DeletePaymentInternalServerErrorCode is the HTTP code returned for type DeletePaymentInternalServerError
const DeletePaymentNoContentCode int = 204
DeletePaymentNoContentCode is the HTTP code returned for type DeletePaymentNoContent
const DeletePaymentNotFoundCode int = 404
DeletePaymentNotFoundCode is the HTTP code returned for type DeletePaymentNotFound
const DeletePaymentTooManyRequestsCode int = 429
DeletePaymentTooManyRequestsCode is the HTTP code returned for type DeletePaymentTooManyRequests
const GetPaymentInternalServerErrorCode int = 500
GetPaymentInternalServerErrorCode is the HTTP code returned for type GetPaymentInternalServerError
const GetPaymentNotFoundCode int = 404
GetPaymentNotFoundCode is the HTTP code returned for type GetPaymentNotFound
const GetPaymentOKCode int = 200
GetPaymentOKCode is the HTTP code returned for type GetPaymentOK
const GetPaymentTooManyRequestsCode int = 429
GetPaymentTooManyRequestsCode is the HTTP code returned for type GetPaymentTooManyRequests
const ListPaymentsInternalServerErrorCode int = 500
ListPaymentsInternalServerErrorCode is the HTTP code returned for type ListPaymentsInternalServerError
const ListPaymentsNotFoundCode int = 404
ListPaymentsNotFoundCode is the HTTP code returned for type ListPaymentsNotFound
const ListPaymentsOKCode int = 200
ListPaymentsOKCode is the HTTP code returned for type ListPaymentsOK
const ListPaymentsTooManyRequestsCode int = 429
ListPaymentsTooManyRequestsCode is the HTTP code returned for type ListPaymentsTooManyRequests
const UpdatePaymentInternalServerErrorCode int = 500
UpdatePaymentInternalServerErrorCode is the HTTP code returned for type UpdatePaymentInternalServerError
const UpdatePaymentNotFoundCode int = 404
UpdatePaymentNotFoundCode is the HTTP code returned for type UpdatePaymentNotFound
const UpdatePaymentOKCode int = 200
UpdatePaymentOKCode is the HTTP code returned for type UpdatePaymentOK
const UpdatePaymentTooManyRequestsCode int = 429
UpdatePaymentTooManyRequestsCode is the HTTP code returned for type UpdatePaymentTooManyRequests
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePayment ¶
type CreatePayment struct { Context *middleware.Context Handler CreatePaymentHandler }
CreatePayment swagger:route POST /payments Payments createPayment
Create payment
func NewCreatePayment ¶
func NewCreatePayment(ctx *middleware.Context, handler CreatePaymentHandler) *CreatePayment
NewCreatePayment creates a new http.Handler for the create payment operation
func (*CreatePayment) ServeHTTP ¶
func (o *CreatePayment) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreatePaymentConflict ¶
type CreatePaymentConflict struct { /* In: Body */ Payload *models.APIError `json:"body,omitempty"` }
CreatePaymentConflict A payment with the given ID already exists
swagger:response createPaymentConflict
func NewCreatePaymentConflict ¶
func NewCreatePaymentConflict() *CreatePaymentConflict
NewCreatePaymentConflict creates CreatePaymentConflict with default headers values
func (*CreatePaymentConflict) SetPayload ¶
func (o *CreatePaymentConflict) SetPayload(payload *models.APIError)
SetPayload sets the payload to the create payment conflict response
func (*CreatePaymentConflict) WithPayload ¶
func (o *CreatePaymentConflict) WithPayload(payload *models.APIError) *CreatePaymentConflict
WithPayload adds the payload to the create payment conflict response
func (*CreatePaymentConflict) WriteResponse ¶
func (o *CreatePaymentConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreatePaymentCreated ¶
type CreatePaymentCreated struct { /* In: Body */ Payload *models.PaymentCreationResponse `json:"body,omitempty"` }
CreatePaymentCreated Payment created successfully
swagger:response createPaymentCreated
func NewCreatePaymentCreated ¶
func NewCreatePaymentCreated() *CreatePaymentCreated
NewCreatePaymentCreated creates CreatePaymentCreated with default headers values
func (*CreatePaymentCreated) SetPayload ¶
func (o *CreatePaymentCreated) SetPayload(payload *models.PaymentCreationResponse)
SetPayload sets the payload to the create payment created response
func (*CreatePaymentCreated) WithPayload ¶
func (o *CreatePaymentCreated) WithPayload(payload *models.PaymentCreationResponse) *CreatePaymentCreated
WithPayload adds the payload to the create payment created response
func (*CreatePaymentCreated) WriteResponse ¶
func (o *CreatePaymentCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreatePaymentHandler ¶
type CreatePaymentHandler interface {
Handle(CreatePaymentParams) middleware.Responder
}
CreatePaymentHandler interface for that can handle valid create payment params
type CreatePaymentHandlerFunc ¶
type CreatePaymentHandlerFunc func(CreatePaymentParams) middleware.Responder
CreatePaymentHandlerFunc turns a function with the right signature into a create payment handler
func (CreatePaymentHandlerFunc) Handle ¶
func (fn CreatePaymentHandlerFunc) Handle(params CreatePaymentParams) middleware.Responder
Handle executing the request and returning a response
type CreatePaymentInternalServerError ¶ added in v1.1.0
type CreatePaymentInternalServerError struct { /* In: Body */ Payload *models.APIError `json:"body,omitempty"` }
CreatePaymentInternalServerError Internal Server Error
swagger:response createPaymentInternalServerError
func NewCreatePaymentInternalServerError ¶ added in v1.1.0
func NewCreatePaymentInternalServerError() *CreatePaymentInternalServerError
NewCreatePaymentInternalServerError creates CreatePaymentInternalServerError with default headers values
func (*CreatePaymentInternalServerError) SetPayload ¶ added in v1.1.0
func (o *CreatePaymentInternalServerError) SetPayload(payload *models.APIError)
SetPayload sets the payload to the create payment internal server error response
func (*CreatePaymentInternalServerError) WithPayload ¶ added in v1.1.0
func (o *CreatePaymentInternalServerError) WithPayload(payload *models.APIError) *CreatePaymentInternalServerError
WithPayload adds the payload to the create payment internal server error response
func (*CreatePaymentInternalServerError) WriteResponse ¶ added in v1.1.0
func (o *CreatePaymentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreatePaymentParams ¶
type CreatePaymentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: body */ PaymentCreationRequest *models.PaymentCreationRequest }
CreatePaymentParams contains all the bound params for the create payment operation typically these are obtained from a http.Request
swagger:parameters createPayment
func NewCreatePaymentParams ¶
func NewCreatePaymentParams() CreatePaymentParams
NewCreatePaymentParams creates a new CreatePaymentParams object no default values defined in spec.
func (*CreatePaymentParams) BindRequest ¶
func (o *CreatePaymentParams) 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 NewCreatePaymentParams() beforehand.
type CreatePaymentTooManyRequests ¶ added in v1.2.0
type CreatePaymentTooManyRequests struct { }
CreatePaymentTooManyRequests Too Many Requests
swagger:response createPaymentTooManyRequests
func NewCreatePaymentTooManyRequests ¶ added in v1.2.0
func NewCreatePaymentTooManyRequests() *CreatePaymentTooManyRequests
NewCreatePaymentTooManyRequests creates CreatePaymentTooManyRequests with default headers values
func (*CreatePaymentTooManyRequests) WriteResponse ¶ added in v1.2.0
func (o *CreatePaymentTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreatePaymentURL ¶
type CreatePaymentURL struct {
// contains filtered or unexported fields
}
CreatePaymentURL generates an URL for the create payment operation
func (*CreatePaymentURL) Build ¶
func (o *CreatePaymentURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreatePaymentURL) BuildFull ¶
func (o *CreatePaymentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreatePaymentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreatePaymentURL) SetBasePath ¶
func (o *CreatePaymentURL) 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 (*CreatePaymentURL) String ¶
func (o *CreatePaymentURL) String() string
String returns the string representation of the path with query string
func (*CreatePaymentURL) StringFull ¶
func (o *CreatePaymentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreatePaymentURL) WithBasePath ¶
func (o *CreatePaymentURL) WithBasePath(bp string) *CreatePaymentURL
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 DeletePayment ¶
type DeletePayment struct { Context *middleware.Context Handler DeletePaymentHandler }
DeletePayment swagger:route DELETE /payments/{id} Payments deletePayment
Deletes a payment resource
func NewDeletePayment ¶
func NewDeletePayment(ctx *middleware.Context, handler DeletePaymentHandler) *DeletePayment
NewDeletePayment creates a new http.Handler for the delete payment operation
func (*DeletePayment) ServeHTTP ¶
func (o *DeletePayment) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeletePaymentHandler ¶
type DeletePaymentHandler interface {
Handle(DeletePaymentParams) middleware.Responder
}
DeletePaymentHandler interface for that can handle valid delete payment params
type DeletePaymentHandlerFunc ¶
type DeletePaymentHandlerFunc func(DeletePaymentParams) middleware.Responder
DeletePaymentHandlerFunc turns a function with the right signature into a delete payment handler
func (DeletePaymentHandlerFunc) Handle ¶
func (fn DeletePaymentHandlerFunc) Handle(params DeletePaymentParams) middleware.Responder
Handle executing the request and returning a response
type DeletePaymentInternalServerError ¶ added in v1.1.0
type DeletePaymentInternalServerError struct { /* In: Body */ Payload *models.APIError `json:"body,omitempty"` }
DeletePaymentInternalServerError Internal Server Error
swagger:response deletePaymentInternalServerError
func NewDeletePaymentInternalServerError ¶ added in v1.1.0
func NewDeletePaymentInternalServerError() *DeletePaymentInternalServerError
NewDeletePaymentInternalServerError creates DeletePaymentInternalServerError with default headers values
func (*DeletePaymentInternalServerError) SetPayload ¶ added in v1.1.0
func (o *DeletePaymentInternalServerError) SetPayload(payload *models.APIError)
SetPayload sets the payload to the delete payment internal server error response
func (*DeletePaymentInternalServerError) WithPayload ¶ added in v1.1.0
func (o *DeletePaymentInternalServerError) WithPayload(payload *models.APIError) *DeletePaymentInternalServerError
WithPayload adds the payload to the delete payment internal server error response
func (*DeletePaymentInternalServerError) WriteResponse ¶ added in v1.1.0
func (o *DeletePaymentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletePaymentNoContent ¶
type DeletePaymentNoContent struct { }
DeletePaymentNoContent Payment deleted OK. No body content will be returned
swagger:response deletePaymentNoContent
func NewDeletePaymentNoContent ¶
func NewDeletePaymentNoContent() *DeletePaymentNoContent
NewDeletePaymentNoContent creates DeletePaymentNoContent with default headers values
func (*DeletePaymentNoContent) WriteResponse ¶
func (o *DeletePaymentNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletePaymentNotFound ¶
type DeletePaymentNotFound struct { /* In: Body */ Payload *models.APIError `json:"body,omitempty"` }
DeletePaymentNotFound Payment Not Found
swagger:response deletePaymentNotFound
func NewDeletePaymentNotFound ¶
func NewDeletePaymentNotFound() *DeletePaymentNotFound
NewDeletePaymentNotFound creates DeletePaymentNotFound with default headers values
func (*DeletePaymentNotFound) SetPayload ¶
func (o *DeletePaymentNotFound) SetPayload(payload *models.APIError)
SetPayload sets the payload to the delete payment not found response
func (*DeletePaymentNotFound) WithPayload ¶
func (o *DeletePaymentNotFound) WithPayload(payload *models.APIError) *DeletePaymentNotFound
WithPayload adds the payload to the delete payment not found response
func (*DeletePaymentNotFound) WriteResponse ¶
func (o *DeletePaymentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletePaymentParams ¶
type DeletePaymentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of payment to delete Required: true In: path */ ID strfmt.UUID }
DeletePaymentParams contains all the bound params for the delete payment operation typically these are obtained from a http.Request
swagger:parameters deletePayment
func NewDeletePaymentParams ¶
func NewDeletePaymentParams() DeletePaymentParams
NewDeletePaymentParams creates a new DeletePaymentParams object no default values defined in spec.
func (*DeletePaymentParams) BindRequest ¶
func (o *DeletePaymentParams) 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 NewDeletePaymentParams() beforehand.
type DeletePaymentTooManyRequests ¶ added in v1.2.0
type DeletePaymentTooManyRequests struct { }
DeletePaymentTooManyRequests Too Many Requests
swagger:response deletePaymentTooManyRequests
func NewDeletePaymentTooManyRequests ¶ added in v1.2.0
func NewDeletePaymentTooManyRequests() *DeletePaymentTooManyRequests
NewDeletePaymentTooManyRequests creates DeletePaymentTooManyRequests with default headers values
func (*DeletePaymentTooManyRequests) WriteResponse ¶ added in v1.2.0
func (o *DeletePaymentTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeletePaymentURL ¶
DeletePaymentURL generates an URL for the delete payment operation
func (*DeletePaymentURL) Build ¶
func (o *DeletePaymentURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeletePaymentURL) BuildFull ¶
func (o *DeletePaymentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeletePaymentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeletePaymentURL) SetBasePath ¶
func (o *DeletePaymentURL) 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 (*DeletePaymentURL) String ¶
func (o *DeletePaymentURL) String() string
String returns the string representation of the path with query string
func (*DeletePaymentURL) StringFull ¶
func (o *DeletePaymentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeletePaymentURL) WithBasePath ¶
func (o *DeletePaymentURL) WithBasePath(bp string) *DeletePaymentURL
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 GetPayment ¶
type GetPayment struct { Context *middleware.Context Handler GetPaymentHandler }
GetPayment swagger:route GET /payments/{id} Payments getPayment
Fetch payment
func NewGetPayment ¶
func NewGetPayment(ctx *middleware.Context, handler GetPaymentHandler) *GetPayment
NewGetPayment creates a new http.Handler for the get payment operation
func (*GetPayment) ServeHTTP ¶
func (o *GetPayment) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetPaymentHandler ¶
type GetPaymentHandler interface {
Handle(GetPaymentParams) middleware.Responder
}
GetPaymentHandler interface for that can handle valid get payment params
type GetPaymentHandlerFunc ¶
type GetPaymentHandlerFunc func(GetPaymentParams) middleware.Responder
GetPaymentHandlerFunc turns a function with the right signature into a get payment handler
func (GetPaymentHandlerFunc) Handle ¶
func (fn GetPaymentHandlerFunc) Handle(params GetPaymentParams) middleware.Responder
Handle executing the request and returning a response
type GetPaymentInternalServerError ¶ added in v1.1.0
type GetPaymentInternalServerError struct { /* In: Body */ Payload *models.APIError `json:"body,omitempty"` }
GetPaymentInternalServerError Internal Server Error
swagger:response getPaymentInternalServerError
func NewGetPaymentInternalServerError ¶ added in v1.1.0
func NewGetPaymentInternalServerError() *GetPaymentInternalServerError
NewGetPaymentInternalServerError creates GetPaymentInternalServerError with default headers values
func (*GetPaymentInternalServerError) SetPayload ¶ added in v1.1.0
func (o *GetPaymentInternalServerError) SetPayload(payload *models.APIError)
SetPayload sets the payload to the get payment internal server error response
func (*GetPaymentInternalServerError) WithPayload ¶ added in v1.1.0
func (o *GetPaymentInternalServerError) WithPayload(payload *models.APIError) *GetPaymentInternalServerError
WithPayload adds the payload to the get payment internal server error response
func (*GetPaymentInternalServerError) WriteResponse ¶ added in v1.1.0
func (o *GetPaymentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPaymentNotFound ¶
GetPaymentNotFound Payment Not Found
swagger:response getPaymentNotFound
func NewGetPaymentNotFound ¶
func NewGetPaymentNotFound() *GetPaymentNotFound
NewGetPaymentNotFound creates GetPaymentNotFound with default headers values
func (*GetPaymentNotFound) SetPayload ¶
func (o *GetPaymentNotFound) SetPayload(payload *models.APIError)
SetPayload sets the payload to the get payment not found response
func (*GetPaymentNotFound) WithPayload ¶
func (o *GetPaymentNotFound) WithPayload(payload *models.APIError) *GetPaymentNotFound
WithPayload adds the payload to the get payment not found response
func (*GetPaymentNotFound) WriteResponse ¶
func (o *GetPaymentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPaymentOK ¶
type GetPaymentOK struct { /* In: Body */ Payload *models.PaymentDetailsResponse `json:"body,omitempty"` }
GetPaymentOK Payment details
swagger:response getPaymentOK
func NewGetPaymentOK ¶
func NewGetPaymentOK() *GetPaymentOK
NewGetPaymentOK creates GetPaymentOK with default headers values
func (*GetPaymentOK) SetPayload ¶
func (o *GetPaymentOK) SetPayload(payload *models.PaymentDetailsResponse)
SetPayload sets the payload to the get payment o k response
func (*GetPaymentOK) WithPayload ¶
func (o *GetPaymentOK) WithPayload(payload *models.PaymentDetailsResponse) *GetPaymentOK
WithPayload adds the payload to the get payment o k response
func (*GetPaymentOK) WriteResponse ¶
func (o *GetPaymentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPaymentParams ¶
type GetPaymentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of payment to fetch Required: true In: path */ ID strfmt.UUID }
GetPaymentParams contains all the bound params for the get payment operation typically these are obtained from a http.Request
swagger:parameters getPayment
func NewGetPaymentParams ¶
func NewGetPaymentParams() GetPaymentParams
NewGetPaymentParams creates a new GetPaymentParams object no default values defined in spec.
func (*GetPaymentParams) BindRequest ¶
func (o *GetPaymentParams) 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 NewGetPaymentParams() beforehand.
type GetPaymentTooManyRequests ¶ added in v1.2.0
type GetPaymentTooManyRequests struct { }
GetPaymentTooManyRequests Too Many Requests
swagger:response getPaymentTooManyRequests
func NewGetPaymentTooManyRequests ¶ added in v1.2.0
func NewGetPaymentTooManyRequests() *GetPaymentTooManyRequests
NewGetPaymentTooManyRequests creates GetPaymentTooManyRequests with default headers values
func (*GetPaymentTooManyRequests) WriteResponse ¶ added in v1.2.0
func (o *GetPaymentTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetPaymentURL ¶
GetPaymentURL generates an URL for the get payment operation
func (*GetPaymentURL) Build ¶
func (o *GetPaymentURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetPaymentURL) BuildFull ¶
func (o *GetPaymentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetPaymentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetPaymentURL) SetBasePath ¶
func (o *GetPaymentURL) 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 (*GetPaymentURL) String ¶
func (o *GetPaymentURL) String() string
String returns the string representation of the path with query string
func (*GetPaymentURL) StringFull ¶
func (o *GetPaymentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetPaymentURL) WithBasePath ¶
func (o *GetPaymentURL) WithBasePath(bp string) *GetPaymentURL
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 ListPayments ¶
type ListPayments struct { Context *middleware.Context Handler ListPaymentsHandler }
ListPayments swagger:route GET /payments Payments listPayments
List payments
func NewListPayments ¶
func NewListPayments(ctx *middleware.Context, handler ListPaymentsHandler) *ListPayments
NewListPayments creates a new http.Handler for the list payments operation
func (*ListPayments) ServeHTTP ¶
func (o *ListPayments) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListPaymentsHandler ¶
type ListPaymentsHandler interface {
Handle(ListPaymentsParams) middleware.Responder
}
ListPaymentsHandler interface for that can handle valid list payments params
type ListPaymentsHandlerFunc ¶
type ListPaymentsHandlerFunc func(ListPaymentsParams) middleware.Responder
ListPaymentsHandlerFunc turns a function with the right signature into a list payments handler
func (ListPaymentsHandlerFunc) Handle ¶
func (fn ListPaymentsHandlerFunc) Handle(params ListPaymentsParams) middleware.Responder
Handle executing the request and returning a response
type ListPaymentsInternalServerError ¶ added in v1.1.0
type ListPaymentsInternalServerError struct { /* In: Body */ Payload *models.APIError `json:"body,omitempty"` }
ListPaymentsInternalServerError Internal Server Error
swagger:response listPaymentsInternalServerError
func NewListPaymentsInternalServerError ¶ added in v1.1.0
func NewListPaymentsInternalServerError() *ListPaymentsInternalServerError
NewListPaymentsInternalServerError creates ListPaymentsInternalServerError with default headers values
func (*ListPaymentsInternalServerError) SetPayload ¶ added in v1.1.0
func (o *ListPaymentsInternalServerError) SetPayload(payload *models.APIError)
SetPayload sets the payload to the list payments internal server error response
func (*ListPaymentsInternalServerError) WithPayload ¶ added in v1.1.0
func (o *ListPaymentsInternalServerError) WithPayload(payload *models.APIError) *ListPaymentsInternalServerError
WithPayload adds the payload to the list payments internal server error response
func (*ListPaymentsInternalServerError) WriteResponse ¶ added in v1.1.0
func (o *ListPaymentsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListPaymentsNotFound ¶ added in v1.6.1
type ListPaymentsNotFound struct { /* In: Body */ Payload *models.APIError `json:"body,omitempty"` }
ListPaymentsNotFound The query returned no payments
swagger:response listPaymentsNotFound
func NewListPaymentsNotFound ¶ added in v1.6.1
func NewListPaymentsNotFound() *ListPaymentsNotFound
NewListPaymentsNotFound creates ListPaymentsNotFound with default headers values
func (*ListPaymentsNotFound) SetPayload ¶ added in v1.6.1
func (o *ListPaymentsNotFound) SetPayload(payload *models.APIError)
SetPayload sets the payload to the list payments not found response
func (*ListPaymentsNotFound) WithPayload ¶ added in v1.6.1
func (o *ListPaymentsNotFound) WithPayload(payload *models.APIError) *ListPaymentsNotFound
WithPayload adds the payload to the list payments not found response
func (*ListPaymentsNotFound) WriteResponse ¶ added in v1.6.1
func (o *ListPaymentsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListPaymentsOK ¶
type ListPaymentsOK struct { /* In: Body */ Payload *models.PaymentDetailsListResponse `json:"body,omitempty"` }
ListPaymentsOK List of payment details
swagger:response listPaymentsOK
func NewListPaymentsOK ¶
func NewListPaymentsOK() *ListPaymentsOK
NewListPaymentsOK creates ListPaymentsOK with default headers values
func (*ListPaymentsOK) SetPayload ¶
func (o *ListPaymentsOK) SetPayload(payload *models.PaymentDetailsListResponse)
SetPayload sets the payload to the list payments o k response
func (*ListPaymentsOK) WithPayload ¶
func (o *ListPaymentsOK) WithPayload(payload *models.PaymentDetailsListResponse) *ListPaymentsOK
WithPayload adds the payload to the list payments o k response
func (*ListPaymentsOK) WriteResponse ¶
func (o *ListPaymentsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListPaymentsParams ¶
type ListPaymentsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Which page to select Minimum: 0 In: query Default: 0 */ PageNumber *int64 /*Number of items per page Maximum: 100 Minimum: 1 In: query Default: 10 */ PageSize *int64 }
ListPaymentsParams contains all the bound params for the list payments operation typically these are obtained from a http.Request
swagger:parameters listPayments
func NewListPaymentsParams ¶
func NewListPaymentsParams() ListPaymentsParams
NewListPaymentsParams creates a new ListPaymentsParams object with the default values initialized.
func (*ListPaymentsParams) BindRequest ¶
func (o *ListPaymentsParams) 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 NewListPaymentsParams() beforehand.
type ListPaymentsTooManyRequests ¶ added in v1.2.0
type ListPaymentsTooManyRequests struct { }
ListPaymentsTooManyRequests Too Many Requests
swagger:response listPaymentsTooManyRequests
func NewListPaymentsTooManyRequests ¶ added in v1.2.0
func NewListPaymentsTooManyRequests() *ListPaymentsTooManyRequests
NewListPaymentsTooManyRequests creates ListPaymentsTooManyRequests with default headers values
func (*ListPaymentsTooManyRequests) WriteResponse ¶ added in v1.2.0
func (o *ListPaymentsTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListPaymentsURL ¶
type ListPaymentsURL struct { PageNumber *int64 PageSize *int64 // contains filtered or unexported fields }
ListPaymentsURL generates an URL for the list payments operation
func (*ListPaymentsURL) Build ¶
func (o *ListPaymentsURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListPaymentsURL) BuildFull ¶
func (o *ListPaymentsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListPaymentsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListPaymentsURL) SetBasePath ¶
func (o *ListPaymentsURL) 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 (*ListPaymentsURL) String ¶
func (o *ListPaymentsURL) String() string
String returns the string representation of the path with query string
func (*ListPaymentsURL) StringFull ¶
func (o *ListPaymentsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListPaymentsURL) WithBasePath ¶
func (o *ListPaymentsURL) WithBasePath(bp string) *ListPaymentsURL
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 UpdatePayment ¶
type UpdatePayment struct { Context *middleware.Context Handler UpdatePaymentHandler }
UpdatePayment swagger:route PUT /payments/{id} Payments updatePayment
Update payment details
func NewUpdatePayment ¶
func NewUpdatePayment(ctx *middleware.Context, handler UpdatePaymentHandler) *UpdatePayment
NewUpdatePayment creates a new http.Handler for the update payment operation
func (*UpdatePayment) ServeHTTP ¶
func (o *UpdatePayment) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type UpdatePaymentHandler ¶
type UpdatePaymentHandler interface {
Handle(UpdatePaymentParams) middleware.Responder
}
UpdatePaymentHandler interface for that can handle valid update payment params
type UpdatePaymentHandlerFunc ¶
type UpdatePaymentHandlerFunc func(UpdatePaymentParams) middleware.Responder
UpdatePaymentHandlerFunc turns a function with the right signature into a update payment handler
func (UpdatePaymentHandlerFunc) Handle ¶
func (fn UpdatePaymentHandlerFunc) Handle(params UpdatePaymentParams) middleware.Responder
Handle executing the request and returning a response
type UpdatePaymentInternalServerError ¶ added in v1.1.0
type UpdatePaymentInternalServerError struct { /* In: Body */ Payload *models.APIError `json:"body,omitempty"` }
UpdatePaymentInternalServerError Internal Server Error
swagger:response updatePaymentInternalServerError
func NewUpdatePaymentInternalServerError ¶ added in v1.1.0
func NewUpdatePaymentInternalServerError() *UpdatePaymentInternalServerError
NewUpdatePaymentInternalServerError creates UpdatePaymentInternalServerError with default headers values
func (*UpdatePaymentInternalServerError) SetPayload ¶ added in v1.1.0
func (o *UpdatePaymentInternalServerError) SetPayload(payload *models.APIError)
SetPayload sets the payload to the update payment internal server error response
func (*UpdatePaymentInternalServerError) WithPayload ¶ added in v1.1.0
func (o *UpdatePaymentInternalServerError) WithPayload(payload *models.APIError) *UpdatePaymentInternalServerError
WithPayload adds the payload to the update payment internal server error response
func (*UpdatePaymentInternalServerError) WriteResponse ¶ added in v1.1.0
func (o *UpdatePaymentInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdatePaymentNotFound ¶
type UpdatePaymentNotFound struct { /* In: Body */ Payload *models.APIError `json:"body,omitempty"` }
UpdatePaymentNotFound Payment Not Found
swagger:response updatePaymentNotFound
func NewUpdatePaymentNotFound ¶
func NewUpdatePaymentNotFound() *UpdatePaymentNotFound
NewUpdatePaymentNotFound creates UpdatePaymentNotFound with default headers values
func (*UpdatePaymentNotFound) SetPayload ¶
func (o *UpdatePaymentNotFound) SetPayload(payload *models.APIError)
SetPayload sets the payload to the update payment not found response
func (*UpdatePaymentNotFound) WithPayload ¶
func (o *UpdatePaymentNotFound) WithPayload(payload *models.APIError) *UpdatePaymentNotFound
WithPayload adds the payload to the update payment not found response
func (*UpdatePaymentNotFound) WriteResponse ¶
func (o *UpdatePaymentNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdatePaymentOK ¶
type UpdatePaymentOK struct { /* In: Body */ Payload *models.PaymentUpdateResponse `json:"body,omitempty"` }
UpdatePaymentOK Payment details
swagger:response updatePaymentOK
func NewUpdatePaymentOK ¶
func NewUpdatePaymentOK() *UpdatePaymentOK
NewUpdatePaymentOK creates UpdatePaymentOK with default headers values
func (*UpdatePaymentOK) SetPayload ¶
func (o *UpdatePaymentOK) SetPayload(payload *models.PaymentUpdateResponse)
SetPayload sets the payload to the update payment o k response
func (*UpdatePaymentOK) WithPayload ¶
func (o *UpdatePaymentOK) WithPayload(payload *models.PaymentUpdateResponse) *UpdatePaymentOK
WithPayload adds the payload to the update payment o k response
func (*UpdatePaymentOK) WriteResponse ¶
func (o *UpdatePaymentOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdatePaymentParams ¶
type UpdatePaymentParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*New payment details In: body */ PaymentUpdateRequest *models.PaymentUpdateRequest /*ID of payment to update Required: true In: path */ ID strfmt.UUID }
UpdatePaymentParams contains all the bound params for the update payment operation typically these are obtained from a http.Request
swagger:parameters updatePayment
func NewUpdatePaymentParams ¶
func NewUpdatePaymentParams() UpdatePaymentParams
NewUpdatePaymentParams creates a new UpdatePaymentParams object no default values defined in spec.
func (*UpdatePaymentParams) BindRequest ¶
func (o *UpdatePaymentParams) 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 NewUpdatePaymentParams() beforehand.
type UpdatePaymentTooManyRequests ¶ added in v1.2.0
type UpdatePaymentTooManyRequests struct { }
UpdatePaymentTooManyRequests Too Many Requests
swagger:response updatePaymentTooManyRequests
func NewUpdatePaymentTooManyRequests ¶ added in v1.2.0
func NewUpdatePaymentTooManyRequests() *UpdatePaymentTooManyRequests
NewUpdatePaymentTooManyRequests creates UpdatePaymentTooManyRequests with default headers values
func (*UpdatePaymentTooManyRequests) WriteResponse ¶ added in v1.2.0
func (o *UpdatePaymentTooManyRequests) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type UpdatePaymentURL ¶
UpdatePaymentURL generates an URL for the update payment operation
func (*UpdatePaymentURL) Build ¶
func (o *UpdatePaymentURL) Build() (*url.URL, error)
Build a url path and query string
func (*UpdatePaymentURL) BuildFull ¶
func (o *UpdatePaymentURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*UpdatePaymentURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*UpdatePaymentURL) SetBasePath ¶
func (o *UpdatePaymentURL) 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 (*UpdatePaymentURL) String ¶
func (o *UpdatePaymentURL) String() string
String returns the string representation of the path with query string
func (*UpdatePaymentURL) StringFull ¶
func (o *UpdatePaymentURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*UpdatePaymentURL) WithBasePath ¶
func (o *UpdatePaymentURL) WithBasePath(bp string) *UpdatePaymentURL
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
Source Files
¶
- create_payment.go
- create_payment_parameters.go
- create_payment_responses.go
- create_payment_urlbuilder.go
- delete_payment.go
- delete_payment_parameters.go
- delete_payment_responses.go
- delete_payment_urlbuilder.go
- get_payment.go
- get_payment_parameters.go
- get_payment_responses.go
- get_payment_urlbuilder.go
- list_payments.go
- list_payments_parameters.go
- list_payments_responses.go
- list_payments_urlbuilder.go
- update_payment.go
- update_payment_parameters.go
- update_payment_responses.go
- update_payment_urlbuilder.go