Help us shape the future of Go! Take the 2026 Go Developer Survey

payments

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

type CreatePaymentConflict struct {
	Payload *models.APIError
}

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

type CreatePaymentInternalServerError struct {
	Payload *models.APIError
}

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

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

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

type DeletePaymentInternalServerError added in v1.1.0

type DeletePaymentInternalServerError struct {
	Payload *models.APIError
}

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

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

type DeletePaymentNotFound struct {
	Payload *models.APIError
}

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

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

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

type GetPaymentInternalServerError added in v1.1.0

type GetPaymentInternalServerError struct {
	Payload *models.APIError
}

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

type GetPaymentNotFound

type GetPaymentNotFound struct {
	Payload *models.APIError
}

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

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

type ListPaymentsInternalServerError struct {
	Payload *models.APIError
}

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

type ListPaymentsNotFound added in v1.6.1

type ListPaymentsNotFound struct {
	Payload *models.APIError
}

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

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

type UpdatePaymentInternalServerError added in v1.1.0

type UpdatePaymentInternalServerError struct {
	Payload *models.APIError
}

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

type UpdatePaymentNotFound

type UpdatePaymentNotFound struct {
	Payload *models.APIError
}

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL