Documentation
¶
Index ¶
- type AuthorizePaymentDefault
- func (o *AuthorizePaymentDefault) Code() int
- func (o *AuthorizePaymentDefault) Error() string
- func (o *AuthorizePaymentDefault) GetPayload() *models.RPCStatus
- func (o *AuthorizePaymentDefault) IsClientError() bool
- func (o *AuthorizePaymentDefault) IsCode(code int) bool
- func (o *AuthorizePaymentDefault) IsRedirect() bool
- func (o *AuthorizePaymentDefault) IsServerError() bool
- func (o *AuthorizePaymentDefault) IsSuccess() bool
- func (o *AuthorizePaymentDefault) String() string
- type AuthorizePaymentOK
- func (o *AuthorizePaymentOK) Error() string
- func (o *AuthorizePaymentOK) GetPayload() *models.PaymentspbAuthorizePaymentResponse
- func (o *AuthorizePaymentOK) IsClientError() bool
- func (o *AuthorizePaymentOK) IsCode(code int) bool
- func (o *AuthorizePaymentOK) IsRedirect() bool
- func (o *AuthorizePaymentOK) IsServerError() bool
- func (o *AuthorizePaymentOK) IsSuccess() bool
- func (o *AuthorizePaymentOK) String() string
- type AuthorizePaymentParams
- func NewAuthorizePaymentParams() *AuthorizePaymentParams
- func NewAuthorizePaymentParamsWithContext(ctx context.Context) *AuthorizePaymentParams
- func NewAuthorizePaymentParamsWithHTTPClient(client *http.Client) *AuthorizePaymentParams
- func NewAuthorizePaymentParamsWithTimeout(timeout time.Duration) *AuthorizePaymentParams
- func (o *AuthorizePaymentParams) SetBody(body *models.PaymentspbAuthorizePaymentRequest)
- func (o *AuthorizePaymentParams) SetContext(ctx context.Context)
- func (o *AuthorizePaymentParams) SetDefaults()
- func (o *AuthorizePaymentParams) SetHTTPClient(client *http.Client)
- func (o *AuthorizePaymentParams) SetTimeout(timeout time.Duration)
- func (o *AuthorizePaymentParams) WithBody(body *models.PaymentspbAuthorizePaymentRequest) *AuthorizePaymentParams
- func (o *AuthorizePaymentParams) WithContext(ctx context.Context) *AuthorizePaymentParams
- func (o *AuthorizePaymentParams) WithDefaults() *AuthorizePaymentParams
- func (o *AuthorizePaymentParams) WithHTTPClient(client *http.Client) *AuthorizePaymentParams
- func (o *AuthorizePaymentParams) WithTimeout(timeout time.Duration) *AuthorizePaymentParams
- func (o *AuthorizePaymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AuthorizePaymentReader
- type Client
- type ClientOption
- type ClientService
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 (o *AuthorizePaymentOK) GetPayload() *models.PaymentspbAuthorizePaymentResponse
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 ¶
func (o *AuthorizePaymentParams) SetBody(body *models.PaymentspbAuthorizePaymentRequest)
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 ¶
func (o *AuthorizePaymentParams) WithBody(body *models.PaymentspbAuthorizePaymentRequest) *AuthorizePaymentParams
WithBody adds the body to the authorize payment params
func (*AuthorizePaymentParams) WithContext ¶
func (o *AuthorizePaymentParams) WithContext(ctx context.Context) *AuthorizePaymentParams
WithContext adds the context to the authorize payment params
func (*AuthorizePaymentParams) WithDefaults ¶
func (o *AuthorizePaymentParams) WithDefaults() *AuthorizePaymentParams
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 ¶
func (o *AuthorizePaymentParams) WithTimeout(timeout time.Duration) *AuthorizePaymentParams
WithTimeout adds the timeout to the authorize payment params
func (*AuthorizePaymentParams) WriteToRequest ¶
func (o *AuthorizePaymentParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.