payment

package
v0.0.0-...-76fafce Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizePaymentDefault

type AuthorizePaymentDefault struct {
	Payload *models.RPCStatus
	// contains filtered or unexported fields
}
AuthorizePaymentDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewAuthorizePaymentDefault

func NewAuthorizePaymentDefault(code int) *AuthorizePaymentDefault

NewAuthorizePaymentDefault creates a AuthorizePaymentDefault with default headers values

func (*AuthorizePaymentDefault) Code

func (o *AuthorizePaymentDefault) Code() int

Code gets the status code for the authorize payment default response

func (*AuthorizePaymentDefault) Error

func (o *AuthorizePaymentDefault) Error() string

func (*AuthorizePaymentDefault) GetPayload

func (o *AuthorizePaymentDefault) GetPayload() *models.RPCStatus

func (*AuthorizePaymentDefault) IsClientError

func (o *AuthorizePaymentDefault) IsClientError() bool

IsClientError returns true when this authorize payment default response has a 4xx status code

func (*AuthorizePaymentDefault) IsCode

func (o *AuthorizePaymentDefault) IsCode(code int) bool

IsCode returns true when this authorize payment default response a status code equal to that given

func (*AuthorizePaymentDefault) IsRedirect

func (o *AuthorizePaymentDefault) IsRedirect() bool

IsRedirect returns true when this authorize payment default response has a 3xx status code

func (*AuthorizePaymentDefault) IsServerError

func (o *AuthorizePaymentDefault) IsServerError() bool

IsServerError returns true when this authorize payment default response has a 5xx status code

func (*AuthorizePaymentDefault) IsSuccess

func (o *AuthorizePaymentDefault) IsSuccess() bool

IsSuccess returns true when this authorize payment default response has a 2xx status code

func (*AuthorizePaymentDefault) String

func (o *AuthorizePaymentDefault) String() string

type AuthorizePaymentOK

type AuthorizePaymentOK struct {
	Payload *models.PaymentspbAuthorizePaymentResponse
}
AuthorizePaymentOK describes a response with status code 200, with default header values.

A successful response.

func NewAuthorizePaymentOK

func NewAuthorizePaymentOK() *AuthorizePaymentOK

NewAuthorizePaymentOK creates a AuthorizePaymentOK with default headers values

func (*AuthorizePaymentOK) Error

func (o *AuthorizePaymentOK) Error() string

func (*AuthorizePaymentOK) GetPayload

func (*AuthorizePaymentOK) IsClientError

func (o *AuthorizePaymentOK) IsClientError() bool

IsClientError returns true when this authorize payment o k response has a 4xx status code

func (*AuthorizePaymentOK) IsCode

func (o *AuthorizePaymentOK) IsCode(code int) bool

IsCode returns true when this authorize payment o k response a status code equal to that given

func (*AuthorizePaymentOK) IsRedirect

func (o *AuthorizePaymentOK) IsRedirect() bool

IsRedirect returns true when this authorize payment o k response has a 3xx status code

func (*AuthorizePaymentOK) IsServerError

func (o *AuthorizePaymentOK) IsServerError() bool

IsServerError returns true when this authorize payment o k response has a 5xx status code

func (*AuthorizePaymentOK) IsSuccess

func (o *AuthorizePaymentOK) IsSuccess() bool

IsSuccess returns true when this authorize payment o k response has a 2xx status code

func (*AuthorizePaymentOK) String

func (o *AuthorizePaymentOK) String() string

type AuthorizePaymentParams

type AuthorizePaymentParams struct {

	// Body.
	Body *models.PaymentspbAuthorizePaymentRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

AuthorizePaymentParams contains all the parameters to send to the API endpoint

for the authorize payment operation.

Typically these are written to a http.Request.

func NewAuthorizePaymentParams

func NewAuthorizePaymentParams() *AuthorizePaymentParams

NewAuthorizePaymentParams creates a new AuthorizePaymentParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewAuthorizePaymentParamsWithContext

func NewAuthorizePaymentParamsWithContext(ctx context.Context) *AuthorizePaymentParams

NewAuthorizePaymentParamsWithContext creates a new AuthorizePaymentParams object with the ability to set a context for a request.

func NewAuthorizePaymentParamsWithHTTPClient

func NewAuthorizePaymentParamsWithHTTPClient(client *http.Client) *AuthorizePaymentParams

NewAuthorizePaymentParamsWithHTTPClient creates a new AuthorizePaymentParams object with the ability to set a custom HTTPClient for a request.

func NewAuthorizePaymentParamsWithTimeout

func NewAuthorizePaymentParamsWithTimeout(timeout time.Duration) *AuthorizePaymentParams

NewAuthorizePaymentParamsWithTimeout creates a new AuthorizePaymentParams object with the ability to set a timeout on a request.

func (*AuthorizePaymentParams) SetBody

SetBody adds the body to the authorize payment params

func (*AuthorizePaymentParams) SetContext

func (o *AuthorizePaymentParams) SetContext(ctx context.Context)

SetContext adds the context to the authorize payment params

func (*AuthorizePaymentParams) SetDefaults

func (o *AuthorizePaymentParams) SetDefaults()

SetDefaults hydrates default values in the authorize payment params (not the query body).

All values with no default are reset to their zero value.

func (*AuthorizePaymentParams) SetHTTPClient

func (o *AuthorizePaymentParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the authorize payment params

func (*AuthorizePaymentParams) SetTimeout

func (o *AuthorizePaymentParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the authorize payment params

func (*AuthorizePaymentParams) WithBody

WithBody adds the body to the authorize payment params

func (*AuthorizePaymentParams) WithContext

WithContext adds the context to the authorize payment params

func (*AuthorizePaymentParams) WithDefaults

WithDefaults hydrates default values in the authorize payment params (not the query body).

All values with no default are reset to their zero value.

func (*AuthorizePaymentParams) WithHTTPClient

func (o *AuthorizePaymentParams) WithHTTPClient(client *http.Client) *AuthorizePaymentParams

WithHTTPClient adds the HTTPClient to the authorize payment params

func (*AuthorizePaymentParams) WithTimeout

WithTimeout adds the timeout to the authorize payment params

func (*AuthorizePaymentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AuthorizePaymentReader

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

AuthorizePaymentReader is a Reader for the AuthorizePayment structure.

func (*AuthorizePaymentReader) ReadResponse

func (o *AuthorizePaymentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

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

Client for payment API

func (*Client) AuthorizePayment

func (a *Client) AuthorizePayment(params *AuthorizePaymentParams, opts ...ClientOption) (*AuthorizePaymentOK, error)

AuthorizePayment authorizes a future payment

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AuthorizePayment(params *AuthorizePaymentParams, opts ...ClientOption) (*AuthorizePaymentOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new payment API client.

Jump to

Keyboard shortcuts

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