Documentation
¶
Index ¶
- type API
- type Client
- func (a *Client) CreatePayment(ctx context.Context, params *CreatePaymentParams) (*CreatePaymentCreated, error)
- func (a *Client) DeletePayment(ctx context.Context, params *DeletePaymentParams) (*DeletePaymentNoContent, error)
- func (a *Client) GetPayment(ctx context.Context, params *GetPaymentParams) (*GetPaymentOK, error)
- func (a *Client) ListPayments(ctx context.Context, params *ListPaymentsParams) (*ListPaymentsOK, error)
- func (a *Client) UpdatePayment(ctx context.Context, params *UpdatePaymentParams) (*UpdatePaymentOK, error)
- type CreatePaymentConflict
- type CreatePaymentCreated
- type CreatePaymentInternalServerError
- type CreatePaymentParams
- func (o *CreatePaymentParams) SetContext(ctx context.Context)
- func (o *CreatePaymentParams) SetHTTPClient(client *http.Client)
- func (o *CreatePaymentParams) SetPaymentCreationRequest(paymentCreationRequest *models.PaymentCreationRequest)
- func (o *CreatePaymentParams) SetTimeout(timeout time.Duration)
- func (o *CreatePaymentParams) WithContext(ctx context.Context) *CreatePaymentParams
- func (o *CreatePaymentParams) WithHTTPClient(client *http.Client) *CreatePaymentParams
- func (o *CreatePaymentParams) WithPaymentCreationRequest(paymentCreationRequest *models.PaymentCreationRequest) *CreatePaymentParams
- func (o *CreatePaymentParams) WithTimeout(timeout time.Duration) *CreatePaymentParams
- func (o *CreatePaymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePaymentReader
- type CreatePaymentTooManyRequests
- type DeletePaymentInternalServerError
- type DeletePaymentNoContent
- type DeletePaymentNotFound
- type DeletePaymentParams
- func (o *DeletePaymentParams) SetContext(ctx context.Context)
- func (o *DeletePaymentParams) SetHTTPClient(client *http.Client)
- func (o *DeletePaymentParams) SetID(id strfmt.UUID)
- func (o *DeletePaymentParams) SetTimeout(timeout time.Duration)
- func (o *DeletePaymentParams) WithContext(ctx context.Context) *DeletePaymentParams
- func (o *DeletePaymentParams) WithHTTPClient(client *http.Client) *DeletePaymentParams
- func (o *DeletePaymentParams) WithID(id strfmt.UUID) *DeletePaymentParams
- func (o *DeletePaymentParams) WithTimeout(timeout time.Duration) *DeletePaymentParams
- func (o *DeletePaymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePaymentReader
- type DeletePaymentTooManyRequests
- type GetPaymentInternalServerError
- type GetPaymentNotFound
- type GetPaymentOK
- type GetPaymentParams
- func (o *GetPaymentParams) SetContext(ctx context.Context)
- func (o *GetPaymentParams) SetHTTPClient(client *http.Client)
- func (o *GetPaymentParams) SetID(id strfmt.UUID)
- func (o *GetPaymentParams) SetTimeout(timeout time.Duration)
- func (o *GetPaymentParams) WithContext(ctx context.Context) *GetPaymentParams
- func (o *GetPaymentParams) WithHTTPClient(client *http.Client) *GetPaymentParams
- func (o *GetPaymentParams) WithID(id strfmt.UUID) *GetPaymentParams
- func (o *GetPaymentParams) WithTimeout(timeout time.Duration) *GetPaymentParams
- func (o *GetPaymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPaymentReader
- type GetPaymentTooManyRequests
- type ListPaymentsInternalServerError
- type ListPaymentsNotFound
- type ListPaymentsOK
- type ListPaymentsParams
- func (o *ListPaymentsParams) SetContext(ctx context.Context)
- func (o *ListPaymentsParams) SetHTTPClient(client *http.Client)
- func (o *ListPaymentsParams) SetPageNumber(pageNumber *int64)
- func (o *ListPaymentsParams) SetPageSize(pageSize *int64)
- func (o *ListPaymentsParams) SetTimeout(timeout time.Duration)
- func (o *ListPaymentsParams) WithContext(ctx context.Context) *ListPaymentsParams
- func (o *ListPaymentsParams) WithHTTPClient(client *http.Client) *ListPaymentsParams
- func (o *ListPaymentsParams) WithPageNumber(pageNumber *int64) *ListPaymentsParams
- func (o *ListPaymentsParams) WithPageSize(pageSize *int64) *ListPaymentsParams
- func (o *ListPaymentsParams) WithTimeout(timeout time.Duration) *ListPaymentsParams
- func (o *ListPaymentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPaymentsReader
- type ListPaymentsTooManyRequests
- type UpdatePaymentInternalServerError
- type UpdatePaymentNotFound
- type UpdatePaymentOK
- type UpdatePaymentParams
- func (o *UpdatePaymentParams) SetContext(ctx context.Context)
- func (o *UpdatePaymentParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePaymentParams) SetID(id strfmt.UUID)
- func (o *UpdatePaymentParams) SetPaymentUpdateRequest(paymentUpdateRequest *models.PaymentUpdateRequest)
- func (o *UpdatePaymentParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePaymentParams) WithContext(ctx context.Context) *UpdatePaymentParams
- func (o *UpdatePaymentParams) WithHTTPClient(client *http.Client) *UpdatePaymentParams
- func (o *UpdatePaymentParams) WithID(id strfmt.UUID) *UpdatePaymentParams
- func (o *UpdatePaymentParams) WithPaymentUpdateRequest(paymentUpdateRequest *models.PaymentUpdateRequest) *UpdatePaymentParams
- func (o *UpdatePaymentParams) WithTimeout(timeout time.Duration) *UpdatePaymentParams
- func (o *UpdatePaymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePaymentReader
- type UpdatePaymentTooManyRequests
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { // CreatePayment creates payment CreatePayment(ctx context.Context, params *CreatePaymentParams) (*CreatePaymentCreated, error) // DeletePayment deletes a payment resource DeletePayment(ctx context.Context, params *DeletePaymentParams) (*DeletePaymentNoContent, error) // GetPayment fetches payment GetPayment(ctx context.Context, params *GetPaymentParams) (*GetPaymentOK, error) // ListPayments lists payments ListPayments(ctx context.Context, params *ListPaymentsParams) (*ListPaymentsOK, error) // UpdatePayment updates payment details UpdatePayment(ctx context.Context, params *UpdatePaymentParams) (*UpdatePaymentOK, error) }
API is the interface of the payments client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for payments API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new payments API client.
func (*Client) CreatePayment ¶
func (a *Client) CreatePayment(ctx context.Context, params *CreatePaymentParams) (*CreatePaymentCreated, error)
CreatePayment creates payment
func (*Client) DeletePayment ¶
func (a *Client) DeletePayment(ctx context.Context, params *DeletePaymentParams) (*DeletePaymentNoContent, error)
DeletePayment deletes a payment resource
func (*Client) GetPayment ¶
func (a *Client) GetPayment(ctx context.Context, params *GetPaymentParams) (*GetPaymentOK, error)
GetPayment fetches payment
func (*Client) ListPayments ¶
func (a *Client) ListPayments(ctx context.Context, params *ListPaymentsParams) (*ListPaymentsOK, error)
ListPayments lists payments
func (*Client) UpdatePayment ¶
func (a *Client) UpdatePayment(ctx context.Context, params *UpdatePaymentParams) (*UpdatePaymentOK, error)
UpdatePayment updates payment details
type CreatePaymentConflict ¶
CreatePaymentConflict handles this case with default header values.
A payment with the given ID already exists
func NewCreatePaymentConflict ¶
func NewCreatePaymentConflict() *CreatePaymentConflict
NewCreatePaymentConflict creates a CreatePaymentConflict with default headers values
func (*CreatePaymentConflict) Error ¶
func (o *CreatePaymentConflict) Error() string
type CreatePaymentCreated ¶
type CreatePaymentCreated struct {
Payload *models.PaymentCreationResponse
}
CreatePaymentCreated handles this case with default header values.
Payment created successfully
func NewCreatePaymentCreated ¶
func NewCreatePaymentCreated() *CreatePaymentCreated
NewCreatePaymentCreated creates a CreatePaymentCreated with default headers values
func (*CreatePaymentCreated) Error ¶
func (o *CreatePaymentCreated) Error() string
type CreatePaymentInternalServerError ¶ added in v1.1.0
CreatePaymentInternalServerError handles this case with default header values.
Internal Server Error
func NewCreatePaymentInternalServerError ¶ added in v1.1.0
func NewCreatePaymentInternalServerError() *CreatePaymentInternalServerError
NewCreatePaymentInternalServerError creates a CreatePaymentInternalServerError with default headers values
func (*CreatePaymentInternalServerError) Error ¶ added in v1.1.0
func (o *CreatePaymentInternalServerError) Error() string
type CreatePaymentParams ¶
type CreatePaymentParams struct { /*PaymentCreationRequest*/ PaymentCreationRequest *models.PaymentCreationRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreatePaymentParams contains all the parameters to send to the API endpoint for the create payment operation typically these are written to a http.Request
func NewCreatePaymentParams ¶
func NewCreatePaymentParams() *CreatePaymentParams
NewCreatePaymentParams creates a new CreatePaymentParams object with the default values initialized.
func NewCreatePaymentParamsWithContext ¶
func NewCreatePaymentParamsWithContext(ctx context.Context) *CreatePaymentParams
NewCreatePaymentParamsWithContext creates a new CreatePaymentParams object with the default values initialized, and the ability to set a context for a request
func NewCreatePaymentParamsWithHTTPClient ¶
func NewCreatePaymentParamsWithHTTPClient(client *http.Client) *CreatePaymentParams
NewCreatePaymentParamsWithHTTPClient creates a new CreatePaymentParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreatePaymentParamsWithTimeout ¶
func NewCreatePaymentParamsWithTimeout(timeout time.Duration) *CreatePaymentParams
NewCreatePaymentParamsWithTimeout creates a new CreatePaymentParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreatePaymentParams) SetContext ¶
func (o *CreatePaymentParams) SetContext(ctx context.Context)
SetContext adds the context to the create payment params
func (*CreatePaymentParams) SetHTTPClient ¶
func (o *CreatePaymentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create payment params
func (*CreatePaymentParams) SetPaymentCreationRequest ¶
func (o *CreatePaymentParams) SetPaymentCreationRequest(paymentCreationRequest *models.PaymentCreationRequest)
SetPaymentCreationRequest adds the paymentCreationRequest to the create payment params
func (*CreatePaymentParams) SetTimeout ¶
func (o *CreatePaymentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create payment params
func (*CreatePaymentParams) WithContext ¶
func (o *CreatePaymentParams) WithContext(ctx context.Context) *CreatePaymentParams
WithContext adds the context to the create payment params
func (*CreatePaymentParams) WithHTTPClient ¶
func (o *CreatePaymentParams) WithHTTPClient(client *http.Client) *CreatePaymentParams
WithHTTPClient adds the HTTPClient to the create payment params
func (*CreatePaymentParams) WithPaymentCreationRequest ¶
func (o *CreatePaymentParams) WithPaymentCreationRequest(paymentCreationRequest *models.PaymentCreationRequest) *CreatePaymentParams
WithPaymentCreationRequest adds the paymentCreationRequest to the create payment params
func (*CreatePaymentParams) WithTimeout ¶
func (o *CreatePaymentParams) WithTimeout(timeout time.Duration) *CreatePaymentParams
WithTimeout adds the timeout to the create payment params
func (*CreatePaymentParams) WriteToRequest ¶
func (o *CreatePaymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreatePaymentReader ¶
type CreatePaymentReader struct {
// contains filtered or unexported fields
}
CreatePaymentReader is a Reader for the CreatePayment structure.
func (*CreatePaymentReader) ReadResponse ¶
func (o *CreatePaymentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreatePaymentTooManyRequests ¶ added in v1.2.0
type CreatePaymentTooManyRequests struct { }
CreatePaymentTooManyRequests handles this case with default header values.
Too Many Requests
func NewCreatePaymentTooManyRequests ¶ added in v1.2.0
func NewCreatePaymentTooManyRequests() *CreatePaymentTooManyRequests
NewCreatePaymentTooManyRequests creates a CreatePaymentTooManyRequests with default headers values
func (*CreatePaymentTooManyRequests) Error ¶ added in v1.2.0
func (o *CreatePaymentTooManyRequests) Error() string
type DeletePaymentInternalServerError ¶ added in v1.1.0
DeletePaymentInternalServerError handles this case with default header values.
Internal Server Error
func NewDeletePaymentInternalServerError ¶ added in v1.1.0
func NewDeletePaymentInternalServerError() *DeletePaymentInternalServerError
NewDeletePaymentInternalServerError creates a DeletePaymentInternalServerError with default headers values
func (*DeletePaymentInternalServerError) Error ¶ added in v1.1.0
func (o *DeletePaymentInternalServerError) Error() string
type DeletePaymentNoContent ¶
type DeletePaymentNoContent struct { }
DeletePaymentNoContent handles this case with default header values.
Payment deleted OK. No body content will be returned
func NewDeletePaymentNoContent ¶
func NewDeletePaymentNoContent() *DeletePaymentNoContent
NewDeletePaymentNoContent creates a DeletePaymentNoContent with default headers values
func (*DeletePaymentNoContent) Error ¶
func (o *DeletePaymentNoContent) Error() string
type DeletePaymentNotFound ¶
DeletePaymentNotFound handles this case with default header values.
Payment Not Found
func NewDeletePaymentNotFound ¶
func NewDeletePaymentNotFound() *DeletePaymentNotFound
NewDeletePaymentNotFound creates a DeletePaymentNotFound with default headers values
func (*DeletePaymentNotFound) Error ¶
func (o *DeletePaymentNotFound) Error() string
type DeletePaymentParams ¶
type DeletePaymentParams struct { /*ID ID of payment to delete */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeletePaymentParams contains all the parameters to send to the API endpoint for the delete payment operation typically these are written to a http.Request
func NewDeletePaymentParams ¶
func NewDeletePaymentParams() *DeletePaymentParams
NewDeletePaymentParams creates a new DeletePaymentParams object with the default values initialized.
func NewDeletePaymentParamsWithContext ¶
func NewDeletePaymentParamsWithContext(ctx context.Context) *DeletePaymentParams
NewDeletePaymentParamsWithContext creates a new DeletePaymentParams object with the default values initialized, and the ability to set a context for a request
func NewDeletePaymentParamsWithHTTPClient ¶
func NewDeletePaymentParamsWithHTTPClient(client *http.Client) *DeletePaymentParams
NewDeletePaymentParamsWithHTTPClient creates a new DeletePaymentParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeletePaymentParamsWithTimeout ¶
func NewDeletePaymentParamsWithTimeout(timeout time.Duration) *DeletePaymentParams
NewDeletePaymentParamsWithTimeout creates a new DeletePaymentParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeletePaymentParams) SetContext ¶
func (o *DeletePaymentParams) SetContext(ctx context.Context)
SetContext adds the context to the delete payment params
func (*DeletePaymentParams) SetHTTPClient ¶
func (o *DeletePaymentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete payment params
func (*DeletePaymentParams) SetID ¶
func (o *DeletePaymentParams) SetID(id strfmt.UUID)
SetID adds the id to the delete payment params
func (*DeletePaymentParams) SetTimeout ¶
func (o *DeletePaymentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete payment params
func (*DeletePaymentParams) WithContext ¶
func (o *DeletePaymentParams) WithContext(ctx context.Context) *DeletePaymentParams
WithContext adds the context to the delete payment params
func (*DeletePaymentParams) WithHTTPClient ¶
func (o *DeletePaymentParams) WithHTTPClient(client *http.Client) *DeletePaymentParams
WithHTTPClient adds the HTTPClient to the delete payment params
func (*DeletePaymentParams) WithID ¶
func (o *DeletePaymentParams) WithID(id strfmt.UUID) *DeletePaymentParams
WithID adds the id to the delete payment params
func (*DeletePaymentParams) WithTimeout ¶
func (o *DeletePaymentParams) WithTimeout(timeout time.Duration) *DeletePaymentParams
WithTimeout adds the timeout to the delete payment params
func (*DeletePaymentParams) WriteToRequest ¶
func (o *DeletePaymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeletePaymentReader ¶
type DeletePaymentReader struct {
// contains filtered or unexported fields
}
DeletePaymentReader is a Reader for the DeletePayment structure.
func (*DeletePaymentReader) ReadResponse ¶
func (o *DeletePaymentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeletePaymentTooManyRequests ¶ added in v1.2.0
type DeletePaymentTooManyRequests struct { }
DeletePaymentTooManyRequests handles this case with default header values.
Too Many Requests
func NewDeletePaymentTooManyRequests ¶ added in v1.2.0
func NewDeletePaymentTooManyRequests() *DeletePaymentTooManyRequests
NewDeletePaymentTooManyRequests creates a DeletePaymentTooManyRequests with default headers values
func (*DeletePaymentTooManyRequests) Error ¶ added in v1.2.0
func (o *DeletePaymentTooManyRequests) Error() string
type GetPaymentInternalServerError ¶ added in v1.1.0
GetPaymentInternalServerError handles this case with default header values.
Internal Server Error
func NewGetPaymentInternalServerError ¶ added in v1.1.0
func NewGetPaymentInternalServerError() *GetPaymentInternalServerError
NewGetPaymentInternalServerError creates a GetPaymentInternalServerError with default headers values
func (*GetPaymentInternalServerError) Error ¶ added in v1.1.0
func (o *GetPaymentInternalServerError) Error() string
type GetPaymentNotFound ¶
GetPaymentNotFound handles this case with default header values.
Payment Not Found
func NewGetPaymentNotFound ¶
func NewGetPaymentNotFound() *GetPaymentNotFound
NewGetPaymentNotFound creates a GetPaymentNotFound with default headers values
func (*GetPaymentNotFound) Error ¶
func (o *GetPaymentNotFound) Error() string
type GetPaymentOK ¶
type GetPaymentOK struct {
Payload *models.PaymentDetailsResponse
}
GetPaymentOK handles this case with default header values.
Payment details
func NewGetPaymentOK ¶
func NewGetPaymentOK() *GetPaymentOK
NewGetPaymentOK creates a GetPaymentOK with default headers values
func (*GetPaymentOK) Error ¶
func (o *GetPaymentOK) Error() string
type GetPaymentParams ¶
type GetPaymentParams struct { /*ID ID of payment to fetch */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPaymentParams contains all the parameters to send to the API endpoint for the get payment operation typically these are written to a http.Request
func NewGetPaymentParams ¶
func NewGetPaymentParams() *GetPaymentParams
NewGetPaymentParams creates a new GetPaymentParams object with the default values initialized.
func NewGetPaymentParamsWithContext ¶
func NewGetPaymentParamsWithContext(ctx context.Context) *GetPaymentParams
NewGetPaymentParamsWithContext creates a new GetPaymentParams object with the default values initialized, and the ability to set a context for a request
func NewGetPaymentParamsWithHTTPClient ¶
func NewGetPaymentParamsWithHTTPClient(client *http.Client) *GetPaymentParams
NewGetPaymentParamsWithHTTPClient creates a new GetPaymentParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPaymentParamsWithTimeout ¶
func NewGetPaymentParamsWithTimeout(timeout time.Duration) *GetPaymentParams
NewGetPaymentParamsWithTimeout creates a new GetPaymentParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPaymentParams) SetContext ¶
func (o *GetPaymentParams) SetContext(ctx context.Context)
SetContext adds the context to the get payment params
func (*GetPaymentParams) SetHTTPClient ¶
func (o *GetPaymentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get payment params
func (*GetPaymentParams) SetID ¶
func (o *GetPaymentParams) SetID(id strfmt.UUID)
SetID adds the id to the get payment params
func (*GetPaymentParams) SetTimeout ¶
func (o *GetPaymentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get payment params
func (*GetPaymentParams) WithContext ¶
func (o *GetPaymentParams) WithContext(ctx context.Context) *GetPaymentParams
WithContext adds the context to the get payment params
func (*GetPaymentParams) WithHTTPClient ¶
func (o *GetPaymentParams) WithHTTPClient(client *http.Client) *GetPaymentParams
WithHTTPClient adds the HTTPClient to the get payment params
func (*GetPaymentParams) WithID ¶
func (o *GetPaymentParams) WithID(id strfmt.UUID) *GetPaymentParams
WithID adds the id to the get payment params
func (*GetPaymentParams) WithTimeout ¶
func (o *GetPaymentParams) WithTimeout(timeout time.Duration) *GetPaymentParams
WithTimeout adds the timeout to the get payment params
func (*GetPaymentParams) WriteToRequest ¶
func (o *GetPaymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPaymentReader ¶
type GetPaymentReader struct {
// contains filtered or unexported fields
}
GetPaymentReader is a Reader for the GetPayment structure.
func (*GetPaymentReader) ReadResponse ¶
func (o *GetPaymentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPaymentTooManyRequests ¶ added in v1.2.0
type GetPaymentTooManyRequests struct { }
GetPaymentTooManyRequests handles this case with default header values.
Too Many Requests
func NewGetPaymentTooManyRequests ¶ added in v1.2.0
func NewGetPaymentTooManyRequests() *GetPaymentTooManyRequests
NewGetPaymentTooManyRequests creates a GetPaymentTooManyRequests with default headers values
func (*GetPaymentTooManyRequests) Error ¶ added in v1.2.0
func (o *GetPaymentTooManyRequests) Error() string
type ListPaymentsInternalServerError ¶ added in v1.1.0
ListPaymentsInternalServerError handles this case with default header values.
Internal Server Error
func NewListPaymentsInternalServerError ¶ added in v1.1.0
func NewListPaymentsInternalServerError() *ListPaymentsInternalServerError
NewListPaymentsInternalServerError creates a ListPaymentsInternalServerError with default headers values
func (*ListPaymentsInternalServerError) Error ¶ added in v1.1.0
func (o *ListPaymentsInternalServerError) Error() string
type ListPaymentsNotFound ¶ added in v1.6.1
ListPaymentsNotFound handles this case with default header values.
The query returned no payments
func NewListPaymentsNotFound ¶ added in v1.6.1
func NewListPaymentsNotFound() *ListPaymentsNotFound
NewListPaymentsNotFound creates a ListPaymentsNotFound with default headers values
func (*ListPaymentsNotFound) Error ¶ added in v1.6.1
func (o *ListPaymentsNotFound) Error() string
type ListPaymentsOK ¶
type ListPaymentsOK struct {
Payload *models.PaymentDetailsListResponse
}
ListPaymentsOK handles this case with default header values.
List of payment details
func NewListPaymentsOK ¶
func NewListPaymentsOK() *ListPaymentsOK
NewListPaymentsOK creates a ListPaymentsOK with default headers values
func (*ListPaymentsOK) Error ¶
func (o *ListPaymentsOK) Error() string
type ListPaymentsParams ¶
type ListPaymentsParams struct { /*PageNumber Which page to select */ PageNumber *int64 /*PageSize Number of items per page */ PageSize *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListPaymentsParams contains all the parameters to send to the API endpoint for the list payments operation typically these are written to a http.Request
func NewListPaymentsParams ¶
func NewListPaymentsParams() *ListPaymentsParams
NewListPaymentsParams creates a new ListPaymentsParams object with the default values initialized.
func NewListPaymentsParamsWithContext ¶
func NewListPaymentsParamsWithContext(ctx context.Context) *ListPaymentsParams
NewListPaymentsParamsWithContext creates a new ListPaymentsParams object with the default values initialized, and the ability to set a context for a request
func NewListPaymentsParamsWithHTTPClient ¶
func NewListPaymentsParamsWithHTTPClient(client *http.Client) *ListPaymentsParams
NewListPaymentsParamsWithHTTPClient creates a new ListPaymentsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListPaymentsParamsWithTimeout ¶
func NewListPaymentsParamsWithTimeout(timeout time.Duration) *ListPaymentsParams
NewListPaymentsParamsWithTimeout creates a new ListPaymentsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListPaymentsParams) SetContext ¶
func (o *ListPaymentsParams) SetContext(ctx context.Context)
SetContext adds the context to the list payments params
func (*ListPaymentsParams) SetHTTPClient ¶
func (o *ListPaymentsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list payments params
func (*ListPaymentsParams) SetPageNumber ¶
func (o *ListPaymentsParams) SetPageNumber(pageNumber *int64)
SetPageNumber adds the pageNumber to the list payments params
func (*ListPaymentsParams) SetPageSize ¶
func (o *ListPaymentsParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the list payments params
func (*ListPaymentsParams) SetTimeout ¶
func (o *ListPaymentsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list payments params
func (*ListPaymentsParams) WithContext ¶
func (o *ListPaymentsParams) WithContext(ctx context.Context) *ListPaymentsParams
WithContext adds the context to the list payments params
func (*ListPaymentsParams) WithHTTPClient ¶
func (o *ListPaymentsParams) WithHTTPClient(client *http.Client) *ListPaymentsParams
WithHTTPClient adds the HTTPClient to the list payments params
func (*ListPaymentsParams) WithPageNumber ¶
func (o *ListPaymentsParams) WithPageNumber(pageNumber *int64) *ListPaymentsParams
WithPageNumber adds the pageNumber to the list payments params
func (*ListPaymentsParams) WithPageSize ¶
func (o *ListPaymentsParams) WithPageSize(pageSize *int64) *ListPaymentsParams
WithPageSize adds the pageSize to the list payments params
func (*ListPaymentsParams) WithTimeout ¶
func (o *ListPaymentsParams) WithTimeout(timeout time.Duration) *ListPaymentsParams
WithTimeout adds the timeout to the list payments params
func (*ListPaymentsParams) WriteToRequest ¶
func (o *ListPaymentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListPaymentsReader ¶
type ListPaymentsReader struct {
// contains filtered or unexported fields
}
ListPaymentsReader is a Reader for the ListPayments structure.
func (*ListPaymentsReader) ReadResponse ¶
func (o *ListPaymentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListPaymentsTooManyRequests ¶ added in v1.2.0
type ListPaymentsTooManyRequests struct { }
ListPaymentsTooManyRequests handles this case with default header values.
Too Many Requests
func NewListPaymentsTooManyRequests ¶ added in v1.2.0
func NewListPaymentsTooManyRequests() *ListPaymentsTooManyRequests
NewListPaymentsTooManyRequests creates a ListPaymentsTooManyRequests with default headers values
func (*ListPaymentsTooManyRequests) Error ¶ added in v1.2.0
func (o *ListPaymentsTooManyRequests) Error() string
type UpdatePaymentInternalServerError ¶ added in v1.1.0
UpdatePaymentInternalServerError handles this case with default header values.
Internal Server Error
func NewUpdatePaymentInternalServerError ¶ added in v1.1.0
func NewUpdatePaymentInternalServerError() *UpdatePaymentInternalServerError
NewUpdatePaymentInternalServerError creates a UpdatePaymentInternalServerError with default headers values
func (*UpdatePaymentInternalServerError) Error ¶ added in v1.1.0
func (o *UpdatePaymentInternalServerError) Error() string
type UpdatePaymentNotFound ¶
UpdatePaymentNotFound handles this case with default header values.
Payment Not Found
func NewUpdatePaymentNotFound ¶
func NewUpdatePaymentNotFound() *UpdatePaymentNotFound
NewUpdatePaymentNotFound creates a UpdatePaymentNotFound with default headers values
func (*UpdatePaymentNotFound) Error ¶
func (o *UpdatePaymentNotFound) Error() string
type UpdatePaymentOK ¶
type UpdatePaymentOK struct {
Payload *models.PaymentUpdateResponse
}
UpdatePaymentOK handles this case with default header values.
Payment details
func NewUpdatePaymentOK ¶
func NewUpdatePaymentOK() *UpdatePaymentOK
NewUpdatePaymentOK creates a UpdatePaymentOK with default headers values
func (*UpdatePaymentOK) Error ¶
func (o *UpdatePaymentOK) Error() string
type UpdatePaymentParams ¶
type UpdatePaymentParams struct { /*PaymentUpdateRequest New payment details */ PaymentUpdateRequest *models.PaymentUpdateRequest /*ID ID of payment to update */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdatePaymentParams contains all the parameters to send to the API endpoint for the update payment operation typically these are written to a http.Request
func NewUpdatePaymentParams ¶
func NewUpdatePaymentParams() *UpdatePaymentParams
NewUpdatePaymentParams creates a new UpdatePaymentParams object with the default values initialized.
func NewUpdatePaymentParamsWithContext ¶
func NewUpdatePaymentParamsWithContext(ctx context.Context) *UpdatePaymentParams
NewUpdatePaymentParamsWithContext creates a new UpdatePaymentParams object with the default values initialized, and the ability to set a context for a request
func NewUpdatePaymentParamsWithHTTPClient ¶
func NewUpdatePaymentParamsWithHTTPClient(client *http.Client) *UpdatePaymentParams
NewUpdatePaymentParamsWithHTTPClient creates a new UpdatePaymentParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdatePaymentParamsWithTimeout ¶
func NewUpdatePaymentParamsWithTimeout(timeout time.Duration) *UpdatePaymentParams
NewUpdatePaymentParamsWithTimeout creates a new UpdatePaymentParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdatePaymentParams) SetContext ¶
func (o *UpdatePaymentParams) SetContext(ctx context.Context)
SetContext adds the context to the update payment params
func (*UpdatePaymentParams) SetHTTPClient ¶
func (o *UpdatePaymentParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update payment params
func (*UpdatePaymentParams) SetID ¶
func (o *UpdatePaymentParams) SetID(id strfmt.UUID)
SetID adds the id to the update payment params
func (*UpdatePaymentParams) SetPaymentUpdateRequest ¶
func (o *UpdatePaymentParams) SetPaymentUpdateRequest(paymentUpdateRequest *models.PaymentUpdateRequest)
SetPaymentUpdateRequest adds the paymentUpdateRequest to the update payment params
func (*UpdatePaymentParams) SetTimeout ¶
func (o *UpdatePaymentParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update payment params
func (*UpdatePaymentParams) WithContext ¶
func (o *UpdatePaymentParams) WithContext(ctx context.Context) *UpdatePaymentParams
WithContext adds the context to the update payment params
func (*UpdatePaymentParams) WithHTTPClient ¶
func (o *UpdatePaymentParams) WithHTTPClient(client *http.Client) *UpdatePaymentParams
WithHTTPClient adds the HTTPClient to the update payment params
func (*UpdatePaymentParams) WithID ¶
func (o *UpdatePaymentParams) WithID(id strfmt.UUID) *UpdatePaymentParams
WithID adds the id to the update payment params
func (*UpdatePaymentParams) WithPaymentUpdateRequest ¶
func (o *UpdatePaymentParams) WithPaymentUpdateRequest(paymentUpdateRequest *models.PaymentUpdateRequest) *UpdatePaymentParams
WithPaymentUpdateRequest adds the paymentUpdateRequest to the update payment params
func (*UpdatePaymentParams) WithTimeout ¶
func (o *UpdatePaymentParams) WithTimeout(timeout time.Duration) *UpdatePaymentParams
WithTimeout adds the timeout to the update payment params
func (*UpdatePaymentParams) WriteToRequest ¶
func (o *UpdatePaymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdatePaymentReader ¶
type UpdatePaymentReader struct {
// contains filtered or unexported fields
}
UpdatePaymentReader is a Reader for the UpdatePayment structure.
func (*UpdatePaymentReader) ReadResponse ¶
func (o *UpdatePaymentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdatePaymentTooManyRequests ¶ added in v1.2.0
type UpdatePaymentTooManyRequests struct { }
UpdatePaymentTooManyRequests handles this case with default header values.
Too Many Requests
func NewUpdatePaymentTooManyRequests ¶ added in v1.2.0
func NewUpdatePaymentTooManyRequests() *UpdatePaymentTooManyRequests
NewUpdatePaymentTooManyRequests creates a UpdatePaymentTooManyRequests with default headers values
func (*UpdatePaymentTooManyRequests) Error ¶ added in v1.2.0
func (o *UpdatePaymentTooManyRequests) Error() string