on_ramp

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for on ramp API

func (*Client) InitFiatOnRamp

func (a *Client) InitFiatOnRamp(params *InitFiatOnRampParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InitFiatOnRampOK, error)

InitFiatOnRamp inits fiat on ramp

Initiate a fiat on ramp flow.

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 {
	InitFiatOnRamp(params *InitFiatOnRampParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InitFiatOnRampOK, 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 on ramp API client.

type InitFiatOnRampOK

type InitFiatOnRampOK struct {
	Payload *models.ActivityResponse
}

InitFiatOnRampOK describes a response with status code 200, with default header values.

A successful response.

func NewInitFiatOnRampOK

func NewInitFiatOnRampOK() *InitFiatOnRampOK

NewInitFiatOnRampOK creates a InitFiatOnRampOK with default headers values

func (*InitFiatOnRampOK) Code

func (o *InitFiatOnRampOK) Code() int

Code gets the status code for the init fiat on ramp o k response

func (*InitFiatOnRampOK) Error

func (o *InitFiatOnRampOK) Error() string

func (*InitFiatOnRampOK) GetPayload

func (o *InitFiatOnRampOK) GetPayload() *models.ActivityResponse

func (*InitFiatOnRampOK) IsClientError

func (o *InitFiatOnRampOK) IsClientError() bool

IsClientError returns true when this init fiat on ramp o k response has a 4xx status code

func (*InitFiatOnRampOK) IsCode

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

IsCode returns true when this init fiat on ramp o k response a status code equal to that given

func (*InitFiatOnRampOK) IsRedirect

func (o *InitFiatOnRampOK) IsRedirect() bool

IsRedirect returns true when this init fiat on ramp o k response has a 3xx status code

func (*InitFiatOnRampOK) IsServerError

func (o *InitFiatOnRampOK) IsServerError() bool

IsServerError returns true when this init fiat on ramp o k response has a 5xx status code

func (*InitFiatOnRampOK) IsSuccess

func (o *InitFiatOnRampOK) IsSuccess() bool

IsSuccess returns true when this init fiat on ramp o k response has a 2xx status code

func (*InitFiatOnRampOK) String

func (o *InitFiatOnRampOK) String() string

type InitFiatOnRampParams

type InitFiatOnRampParams struct {

	// Body.
	Body *models.InitFiatOnRampRequest

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

InitFiatOnRampParams contains all the parameters to send to the API endpoint

for the init fiat on ramp operation.

Typically these are written to a http.Request.

func NewInitFiatOnRampParams

func NewInitFiatOnRampParams() *InitFiatOnRampParams

NewInitFiatOnRampParams creates a new InitFiatOnRampParams 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 NewInitFiatOnRampParamsWithContext

func NewInitFiatOnRampParamsWithContext(ctx context.Context) *InitFiatOnRampParams

NewInitFiatOnRampParamsWithContext creates a new InitFiatOnRampParams object with the ability to set a context for a request.

func NewInitFiatOnRampParamsWithHTTPClient

func NewInitFiatOnRampParamsWithHTTPClient(client *http.Client) *InitFiatOnRampParams

NewInitFiatOnRampParamsWithHTTPClient creates a new InitFiatOnRampParams object with the ability to set a custom HTTPClient for a request.

func NewInitFiatOnRampParamsWithTimeout

func NewInitFiatOnRampParamsWithTimeout(timeout time.Duration) *InitFiatOnRampParams

NewInitFiatOnRampParamsWithTimeout creates a new InitFiatOnRampParams object with the ability to set a timeout on a request.

func (*InitFiatOnRampParams) SetBody

SetBody adds the body to the init fiat on ramp params

func (*InitFiatOnRampParams) SetContext

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

SetContext adds the context to the init fiat on ramp params

func (*InitFiatOnRampParams) SetDefaults

func (o *InitFiatOnRampParams) SetDefaults()

SetDefaults hydrates default values in the init fiat on ramp params (not the query body).

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

func (*InitFiatOnRampParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the init fiat on ramp params

func (*InitFiatOnRampParams) SetTimeout

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

SetTimeout adds the timeout to the init fiat on ramp params

func (*InitFiatOnRampParams) WithBody

WithBody adds the body to the init fiat on ramp params

func (*InitFiatOnRampParams) WithContext

WithContext adds the context to the init fiat on ramp params

func (*InitFiatOnRampParams) WithDefaults

func (o *InitFiatOnRampParams) WithDefaults() *InitFiatOnRampParams

WithDefaults hydrates default values in the init fiat on ramp params (not the query body).

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

func (*InitFiatOnRampParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the init fiat on ramp params

func (*InitFiatOnRampParams) WithTimeout

func (o *InitFiatOnRampParams) WithTimeout(timeout time.Duration) *InitFiatOnRampParams

WithTimeout adds the timeout to the init fiat on ramp params

func (*InitFiatOnRampParams) WriteToRequest

func (o *InitFiatOnRampParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type InitFiatOnRampReader

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

InitFiatOnRampReader is a Reader for the InitFiatOnRamp structure.

func (*InitFiatOnRampReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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