Documentation ¶
Index ¶
- type Client
- func (a *Client) CurrencyGet(params *CurrencyGetParams, authInfo runtime.ClientAuthInfoWriter) (*CurrencyGetOK, error)
- func (a *Client) CurrencyRateGetRate(params *CurrencyRateGetRateParams, authInfo runtime.ClientAuthInfoWriter) (*CurrencyRateGetRateOK, error)
- func (a *Client) CurrencySearch(params *CurrencySearchParams, authInfo runtime.ClientAuthInfoWriter) (*CurrencySearchOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type CurrencyGetOK
- type CurrencyGetParams
- func (o *CurrencyGetParams) SetContext(ctx context.Context)
- func (o *CurrencyGetParams) SetFields(fields *string)
- func (o *CurrencyGetParams) SetHTTPClient(client *http.Client)
- func (o *CurrencyGetParams) SetID(id int32)
- func (o *CurrencyGetParams) SetTimeout(timeout time.Duration)
- func (o *CurrencyGetParams) WithContext(ctx context.Context) *CurrencyGetParams
- func (o *CurrencyGetParams) WithFields(fields *string) *CurrencyGetParams
- func (o *CurrencyGetParams) WithHTTPClient(client *http.Client) *CurrencyGetParams
- func (o *CurrencyGetParams) WithID(id int32) *CurrencyGetParams
- func (o *CurrencyGetParams) WithTimeout(timeout time.Duration) *CurrencyGetParams
- func (o *CurrencyGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CurrencyGetReader
- type CurrencyRateGetRateOK
- type CurrencyRateGetRateParams
- func NewCurrencyRateGetRateParams() *CurrencyRateGetRateParams
- func NewCurrencyRateGetRateParamsWithContext(ctx context.Context) *CurrencyRateGetRateParams
- func NewCurrencyRateGetRateParamsWithHTTPClient(client *http.Client) *CurrencyRateGetRateParams
- func NewCurrencyRateGetRateParamsWithTimeout(timeout time.Duration) *CurrencyRateGetRateParams
- func (o *CurrencyRateGetRateParams) SetContext(ctx context.Context)
- func (o *CurrencyRateGetRateParams) SetDate(date string)
- func (o *CurrencyRateGetRateParams) SetFields(fields *string)
- func (o *CurrencyRateGetRateParams) SetHTTPClient(client *http.Client)
- func (o *CurrencyRateGetRateParams) SetID(id int32)
- func (o *CurrencyRateGetRateParams) SetTimeout(timeout time.Duration)
- func (o *CurrencyRateGetRateParams) WithContext(ctx context.Context) *CurrencyRateGetRateParams
- func (o *CurrencyRateGetRateParams) WithDate(date string) *CurrencyRateGetRateParams
- func (o *CurrencyRateGetRateParams) WithFields(fields *string) *CurrencyRateGetRateParams
- func (o *CurrencyRateGetRateParams) WithHTTPClient(client *http.Client) *CurrencyRateGetRateParams
- func (o *CurrencyRateGetRateParams) WithID(id int32) *CurrencyRateGetRateParams
- func (o *CurrencyRateGetRateParams) WithTimeout(timeout time.Duration) *CurrencyRateGetRateParams
- func (o *CurrencyRateGetRateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CurrencyRateGetRateReader
- type CurrencySearchOK
- type CurrencySearchParams
- func NewCurrencySearchParams() *CurrencySearchParams
- func NewCurrencySearchParamsWithContext(ctx context.Context) *CurrencySearchParams
- func NewCurrencySearchParamsWithHTTPClient(client *http.Client) *CurrencySearchParams
- func NewCurrencySearchParamsWithTimeout(timeout time.Duration) *CurrencySearchParams
- func (o *CurrencySearchParams) SetCode(code *string)
- func (o *CurrencySearchParams) SetContext(ctx context.Context)
- func (o *CurrencySearchParams) SetCount(count *int64)
- func (o *CurrencySearchParams) SetFields(fields *string)
- func (o *CurrencySearchParams) SetFrom(from *int64)
- func (o *CurrencySearchParams) SetHTTPClient(client *http.Client)
- func (o *CurrencySearchParams) SetID(id *string)
- func (o *CurrencySearchParams) SetSorting(sorting *string)
- func (o *CurrencySearchParams) SetTimeout(timeout time.Duration)
- func (o *CurrencySearchParams) WithCode(code *string) *CurrencySearchParams
- func (o *CurrencySearchParams) WithContext(ctx context.Context) *CurrencySearchParams
- func (o *CurrencySearchParams) WithCount(count *int64) *CurrencySearchParams
- func (o *CurrencySearchParams) WithFields(fields *string) *CurrencySearchParams
- func (o *CurrencySearchParams) WithFrom(from *int64) *CurrencySearchParams
- func (o *CurrencySearchParams) WithHTTPClient(client *http.Client) *CurrencySearchParams
- func (o *CurrencySearchParams) WithID(id *string) *CurrencySearchParams
- func (o *CurrencySearchParams) WithSorting(sorting *string) *CurrencySearchParams
- func (o *CurrencySearchParams) WithTimeout(timeout time.Duration) *CurrencySearchParams
- func (o *CurrencySearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CurrencySearchReader
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 ¶
func (o *CurrencyRateGetRateOK) GetPayload() *models.ResponseWrapperCurrencyExchangeRate
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 ¶
func (o *CurrencyRateGetRateParams) WithContext(ctx context.Context) *CurrencyRateGetRateParams
WithContext adds the context to the currency rate get rate params
func (*CurrencyRateGetRateParams) WithDate ¶
func (o *CurrencyRateGetRateParams) WithDate(date string) *CurrencyRateGetRateParams
WithDate adds the date to the currency rate get rate params
func (*CurrencyRateGetRateParams) WithFields ¶
func (o *CurrencyRateGetRateParams) WithFields(fields *string) *CurrencyRateGetRateParams
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 ¶
func (o *CurrencyRateGetRateParams) WithID(id int32) *CurrencyRateGetRateParams
WithID adds the id to the currency rate get rate params
func (*CurrencyRateGetRateParams) WithTimeout ¶
func (o *CurrencyRateGetRateParams) WithTimeout(timeout time.Duration) *CurrencyRateGetRateParams
WithTimeout adds the timeout to the currency rate get rate params
func (*CurrencyRateGetRateParams) WriteToRequest ¶
func (o *CurrencyRateGetRateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CurrencySearchParams) WithContext(ctx context.Context) *CurrencySearchParams
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 ¶
func (o *CurrencySearchParams) WithID(id *string) *CurrencySearchParams
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.