currency

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.0 Imports: 11 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 currency API

func (*Client) CurrencyGet

func (a *Client) CurrencyGet(params *CurrencyGetParams, authInfo runtime.ClientAuthInfoWriter) (*CurrencyGetOK, error)

CurrencyGet gets currency by ID

func (*Client) CurrencyRateGetRate

func (a *Client) CurrencyRateGetRate(params *CurrencyRateGetRateParams, authInfo runtime.ClientAuthInfoWriter) (*CurrencyRateGetRateOK, error)

CurrencyRateGetRate finds currency exchange rate corresponding with sent data

func (*Client) CurrencySearch

func (a *Client) CurrencySearch(params *CurrencySearchParams, authInfo runtime.ClientAuthInfoWriter) (*CurrencySearchOK, error)

CurrencySearch finds currencies corresponding with sent data

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	CurrencyRateGetRate(params *CurrencyRateGetRateParams, authInfo runtime.ClientAuthInfoWriter) (*CurrencyRateGetRateOK, error)

	CurrencyGet(params *CurrencyGetParams, authInfo runtime.ClientAuthInfoWriter) (*CurrencyGetOK, error)

	CurrencySearch(params *CurrencySearchParams, authInfo runtime.ClientAuthInfoWriter) (*CurrencySearchOK, 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 currency API client.

type CurrencyGetOK

type CurrencyGetOK struct {
	Payload *models.ResponseWrapperCurrency
}

CurrencyGetOK handles this case with default header values.

successful operation

func NewCurrencyGetOK

func NewCurrencyGetOK() *CurrencyGetOK

NewCurrencyGetOK creates a CurrencyGetOK with default headers values

func (*CurrencyGetOK) Error

func (o *CurrencyGetOK) Error() string

func (*CurrencyGetOK) GetPayload

func (o *CurrencyGetOK) GetPayload() *models.ResponseWrapperCurrency

type CurrencyGetParams

type CurrencyGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

CurrencyGetParams contains all the parameters to send to the API endpoint for the currency get operation typically these are written to a http.Request

func NewCurrencyGetParams

func NewCurrencyGetParams() *CurrencyGetParams

NewCurrencyGetParams creates a new CurrencyGetParams object with the default values initialized.

func NewCurrencyGetParamsWithContext

func NewCurrencyGetParamsWithContext(ctx context.Context) *CurrencyGetParams

NewCurrencyGetParamsWithContext creates a new CurrencyGetParams object with the default values initialized, and the ability to set a context for a request

func NewCurrencyGetParamsWithHTTPClient

func NewCurrencyGetParamsWithHTTPClient(client *http.Client) *CurrencyGetParams

NewCurrencyGetParamsWithHTTPClient creates a new CurrencyGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCurrencyGetParamsWithTimeout

func NewCurrencyGetParamsWithTimeout(timeout time.Duration) *CurrencyGetParams

NewCurrencyGetParamsWithTimeout creates a new CurrencyGetParams object with the default values initialized, and the ability to set a timeout on a request

func (*CurrencyGetParams) SetContext

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

SetContext adds the context to the currency get params

func (*CurrencyGetParams) SetFields

func (o *CurrencyGetParams) SetFields(fields *string)

SetFields adds the fields to the currency get params

func (*CurrencyGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the currency get params

func (*CurrencyGetParams) SetID

func (o *CurrencyGetParams) SetID(id int32)

SetID adds the id to the currency get params

func (*CurrencyGetParams) SetTimeout

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

SetTimeout adds the timeout to the currency get params

func (*CurrencyGetParams) WithContext

func (o *CurrencyGetParams) WithContext(ctx context.Context) *CurrencyGetParams

WithContext adds the context to the currency get params

func (*CurrencyGetParams) WithFields

func (o *CurrencyGetParams) WithFields(fields *string) *CurrencyGetParams

WithFields adds the fields to the currency get params

func (*CurrencyGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the currency get params

func (*CurrencyGetParams) WithID

func (o *CurrencyGetParams) WithID(id int32) *CurrencyGetParams

WithID adds the id to the currency get params

func (*CurrencyGetParams) WithTimeout

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

WithTimeout adds the timeout to the currency get params

func (*CurrencyGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CurrencyGetReader

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

CurrencyGetReader is a Reader for the CurrencyGet structure.

func (*CurrencyGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CurrencyRateGetRateOK

type CurrencyRateGetRateOK struct {
	Payload *models.ResponseWrapperCurrencyExchangeRate
}

CurrencyRateGetRateOK handles this case with default header values.

successful operation

func NewCurrencyRateGetRateOK

func NewCurrencyRateGetRateOK() *CurrencyRateGetRateOK

NewCurrencyRateGetRateOK creates a CurrencyRateGetRateOK with default headers values

func (*CurrencyRateGetRateOK) Error

func (o *CurrencyRateGetRateOK) Error() string

func (*CurrencyRateGetRateOK) GetPayload

type CurrencyRateGetRateParams

type CurrencyRateGetRateParams struct {

	/*Date
	  Format is yyyy-MM-dd

	*/
	Date string
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Currency id

	*/
	ID int32

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

CurrencyRateGetRateParams contains all the parameters to send to the API endpoint for the currency rate get rate operation typically these are written to a http.Request

func NewCurrencyRateGetRateParams

func NewCurrencyRateGetRateParams() *CurrencyRateGetRateParams

NewCurrencyRateGetRateParams creates a new CurrencyRateGetRateParams object with the default values initialized.

func NewCurrencyRateGetRateParamsWithContext

func NewCurrencyRateGetRateParamsWithContext(ctx context.Context) *CurrencyRateGetRateParams

NewCurrencyRateGetRateParamsWithContext creates a new CurrencyRateGetRateParams object with the default values initialized, and the ability to set a context for a request

func NewCurrencyRateGetRateParamsWithHTTPClient

func NewCurrencyRateGetRateParamsWithHTTPClient(client *http.Client) *CurrencyRateGetRateParams

NewCurrencyRateGetRateParamsWithHTTPClient creates a new CurrencyRateGetRateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCurrencyRateGetRateParamsWithTimeout

func NewCurrencyRateGetRateParamsWithTimeout(timeout time.Duration) *CurrencyRateGetRateParams

NewCurrencyRateGetRateParamsWithTimeout creates a new CurrencyRateGetRateParams object with the default values initialized, and the ability to set a timeout on a request

func (*CurrencyRateGetRateParams) SetContext

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

SetContext adds the context to the currency rate get rate params

func (*CurrencyRateGetRateParams) SetDate

func (o *CurrencyRateGetRateParams) SetDate(date string)

SetDate adds the date to the currency rate get rate params

func (*CurrencyRateGetRateParams) SetFields

func (o *CurrencyRateGetRateParams) SetFields(fields *string)

SetFields adds the fields to the currency rate get rate params

func (*CurrencyRateGetRateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the currency rate get rate params

func (*CurrencyRateGetRateParams) SetID

func (o *CurrencyRateGetRateParams) SetID(id int32)

SetID adds the id to the currency rate get rate params

func (*CurrencyRateGetRateParams) SetTimeout

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

SetTimeout adds the timeout to the currency rate get rate params

func (*CurrencyRateGetRateParams) WithContext

WithContext adds the context to the currency rate get rate params

func (*CurrencyRateGetRateParams) WithDate

WithDate adds the date to the currency rate get rate params

func (*CurrencyRateGetRateParams) WithFields

WithFields adds the fields to the currency rate get rate params

func (*CurrencyRateGetRateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the currency rate get rate params

func (*CurrencyRateGetRateParams) WithID

WithID adds the id to the currency rate get rate params

func (*CurrencyRateGetRateParams) WithTimeout

WithTimeout adds the timeout to the currency rate get rate params

func (*CurrencyRateGetRateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CurrencyRateGetRateReader

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

CurrencyRateGetRateReader is a Reader for the CurrencyRateGetRate structure.

func (*CurrencyRateGetRateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CurrencySearchOK

type CurrencySearchOK struct {
	Payload *models.ListResponseCurrency
}

CurrencySearchOK handles this case with default header values.

successful operation

func NewCurrencySearchOK

func NewCurrencySearchOK() *CurrencySearchOK

NewCurrencySearchOK creates a CurrencySearchOK with default headers values

func (*CurrencySearchOK) Error

func (o *CurrencySearchOK) Error() string

func (*CurrencySearchOK) GetPayload

func (o *CurrencySearchOK) GetPayload() *models.ListResponseCurrency

type CurrencySearchParams

type CurrencySearchParams struct {

	/*Code
	  Currency codes

	*/
	Code *string
	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*ID
	  List of IDs

	*/
	ID *string
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

CurrencySearchParams contains all the parameters to send to the API endpoint for the currency search operation typically these are written to a http.Request

func NewCurrencySearchParams

func NewCurrencySearchParams() *CurrencySearchParams

NewCurrencySearchParams creates a new CurrencySearchParams object with the default values initialized.

func NewCurrencySearchParamsWithContext

func NewCurrencySearchParamsWithContext(ctx context.Context) *CurrencySearchParams

NewCurrencySearchParamsWithContext creates a new CurrencySearchParams object with the default values initialized, and the ability to set a context for a request

func NewCurrencySearchParamsWithHTTPClient

func NewCurrencySearchParamsWithHTTPClient(client *http.Client) *CurrencySearchParams

NewCurrencySearchParamsWithHTTPClient creates a new CurrencySearchParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCurrencySearchParamsWithTimeout

func NewCurrencySearchParamsWithTimeout(timeout time.Duration) *CurrencySearchParams

NewCurrencySearchParamsWithTimeout creates a new CurrencySearchParams object with the default values initialized, and the ability to set a timeout on a request

func (*CurrencySearchParams) SetCode

func (o *CurrencySearchParams) SetCode(code *string)

SetCode adds the code to the currency search params

func (*CurrencySearchParams) SetContext

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

SetContext adds the context to the currency search params

func (*CurrencySearchParams) SetCount

func (o *CurrencySearchParams) SetCount(count *int64)

SetCount adds the count to the currency search params

func (*CurrencySearchParams) SetFields

func (o *CurrencySearchParams) SetFields(fields *string)

SetFields adds the fields to the currency search params

func (*CurrencySearchParams) SetFrom

func (o *CurrencySearchParams) SetFrom(from *int64)

SetFrom adds the from to the currency search params

func (*CurrencySearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the currency search params

func (*CurrencySearchParams) SetID

func (o *CurrencySearchParams) SetID(id *string)

SetID adds the id to the currency search params

func (*CurrencySearchParams) SetSorting

func (o *CurrencySearchParams) SetSorting(sorting *string)

SetSorting adds the sorting to the currency search params

func (*CurrencySearchParams) SetTimeout

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

SetTimeout adds the timeout to the currency search params

func (*CurrencySearchParams) WithCode

func (o *CurrencySearchParams) WithCode(code *string) *CurrencySearchParams

WithCode adds the code to the currency search params

func (*CurrencySearchParams) WithContext

WithContext adds the context to the currency search params

func (*CurrencySearchParams) WithCount

func (o *CurrencySearchParams) WithCount(count *int64) *CurrencySearchParams

WithCount adds the count to the currency search params

func (*CurrencySearchParams) WithFields

func (o *CurrencySearchParams) WithFields(fields *string) *CurrencySearchParams

WithFields adds the fields to the currency search params

func (*CurrencySearchParams) WithFrom

func (o *CurrencySearchParams) WithFrom(from *int64) *CurrencySearchParams

WithFrom adds the from to the currency search params

func (*CurrencySearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the currency search params

func (*CurrencySearchParams) WithID

WithID adds the id to the currency search params

func (*CurrencySearchParams) WithSorting

func (o *CurrencySearchParams) WithSorting(sorting *string) *CurrencySearchParams

WithSorting adds the sorting to the currency search params

func (*CurrencySearchParams) WithTimeout

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

WithTimeout adds the timeout to the currency search params

func (*CurrencySearchParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CurrencySearchReader

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

CurrencySearchReader is a Reader for the CurrencySearch structure.

func (*CurrencySearchReader) ReadResponse

func (o *CurrencySearchReader) 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