currency

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ListCurrenciesREALConstant    = "REAL"
	ListCurrenciesVIRTUALConstant = "VIRTUAL"
)

Get the enum in ListCurrenciesParams

View Source
const (
	PublicListCurrenciesREALConstant    = "REAL"
	PublicListCurrenciesVIRTUALConstant = "VIRTUAL"
)

Get the enum in PublicListCurrenciesParams

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) CreateCurrency

CreateCurrency creates a currency

Create a currency.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:CURRENCY", action=1 (CREATE)</li><li><i>Returns</i>: created currency</li></ul>

func (*Client) CreateCurrencyShort added in v0.8.0

func (a *Client) CreateCurrencyShort(params *CreateCurrencyParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCurrencyOK, error)

func (*Client) DeleteCurrency

DeleteCurrency deletes a currency

Delete a currency by currency code.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:CURRENCY", action=8 (DELETE)</li><li><i>Returns</i>: </li></ul>

func (*Client) DeleteCurrencyShort added in v0.8.0

func (a *Client) DeleteCurrencyShort(params *DeleteCurrencyParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCurrencyOK, error)

func (*Client) GetCurrencyConfig

GetCurrencyConfig gets currency config

<b>[SERVICE COMMUNICATION ONLY]</b> Get currency config by code.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:CURRENCY", action=2 (READ)</li><li><i>Returns</i>: simplified Currency</li></ul>

func (*Client) GetCurrencyConfigShort added in v0.8.0

func (a *Client) GetCurrencyConfigShort(params *GetCurrencyConfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrencyConfigOK, error)

func (*Client) GetCurrencySummary

GetCurrencySummary gets currency summary

Get currency summary by code.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:CURRENCY", action=2 (READ)</li><li><i>Returns</i>: simplified Currency</li></ul>

func (*Client) GetCurrencySummaryShort added in v0.8.0

func (a *Client) GetCurrencySummaryShort(params *GetCurrencySummaryParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrencySummaryOK, error)

func (*Client) ListCurrencies

func (a *Client) ListCurrencies(params *ListCurrenciesParams, authInfo runtime.ClientAuthInfoWriter) (*ListCurrenciesOK, error)

ListCurrencies lists currencies

List currencies of a namespace.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:CURRENCY", action=2 (READ)</li><li><i>Returns</i>: Currency List</li></ul>

func (*Client) ListCurrenciesShort added in v0.8.0

func (a *Client) ListCurrenciesShort(params *ListCurrenciesParams, authInfo runtime.ClientAuthInfoWriter) (*ListCurrenciesOK, error)

func (*Client) PublicListCurrencies

func (a *Client) PublicListCurrencies(params *PublicListCurrenciesParams) (*PublicListCurrenciesOK, error)

PublicListCurrencies lists currencies

List currencies of a namespace.<br>Other detail info: <ul><li><i>Returns</i>: Currency List</li></ul>

func (*Client) PublicListCurrenciesShort added in v0.8.0

func (a *Client) PublicListCurrenciesShort(params *PublicListCurrenciesParams) (*PublicListCurrenciesOK, error)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateCurrency

UpdateCurrency updates a currency

Update a currency by currency code.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:CURRENCY", action=4 (UPDATE)</li><li><i>Returns</i>: updated currency</li></ul>

func (*Client) UpdateCurrencyShort added in v0.8.0

func (a *Client) UpdateCurrencyShort(params *UpdateCurrencyParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCurrencyOK, error)

type ClientService

type ClientService interface {
	CreateCurrency(params *CreateCurrencyParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCurrencyOK, *CreateCurrencyConflict, *CreateCurrencyUnprocessableEntity, error)
	CreateCurrencyShort(params *CreateCurrencyParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCurrencyOK, error)
	DeleteCurrency(params *DeleteCurrencyParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCurrencyOK, *DeleteCurrencyNotFound, error)
	DeleteCurrencyShort(params *DeleteCurrencyParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCurrencyOK, error)
	GetCurrencyConfig(params *GetCurrencyConfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrencyConfigOK, *GetCurrencyConfigNotFound, error)
	GetCurrencyConfigShort(params *GetCurrencyConfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrencyConfigOK, error)
	GetCurrencySummary(params *GetCurrencySummaryParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrencySummaryOK, *GetCurrencySummaryNotFound, error)
	GetCurrencySummaryShort(params *GetCurrencySummaryParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrencySummaryOK, error)
	ListCurrencies(params *ListCurrenciesParams, authInfo runtime.ClientAuthInfoWriter) (*ListCurrenciesOK, error)
	ListCurrenciesShort(params *ListCurrenciesParams, authInfo runtime.ClientAuthInfoWriter) (*ListCurrenciesOK, error)
	PublicListCurrencies(params *PublicListCurrenciesParams) (*PublicListCurrenciesOK, error)
	PublicListCurrenciesShort(params *PublicListCurrenciesParams) (*PublicListCurrenciesOK, error)
	UpdateCurrency(params *UpdateCurrencyParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCurrencyOK, *UpdateCurrencyNotFound, *UpdateCurrencyUnprocessableEntity, error)
	UpdateCurrencyShort(params *UpdateCurrencyParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCurrencyOK, 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 CreateCurrencyConflict

type CreateCurrencyConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateCurrencyConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>36171</td><td>Currency [{currencyCode}] already exists in namespace [{namespace}]</td></tr></table>

func NewCreateCurrencyConflict

func NewCreateCurrencyConflict() *CreateCurrencyConflict

NewCreateCurrencyConflict creates a CreateCurrencyConflict with default headers values

func (*CreateCurrencyConflict) Error

func (o *CreateCurrencyConflict) Error() string

func (*CreateCurrencyConflict) GetPayload

type CreateCurrencyOK

type CreateCurrencyOK struct {
	Payload *platformclientmodels.CurrencyInfo
}

CreateCurrencyOK handles this case with default header values.

successful operation

func NewCreateCurrencyOK

func NewCreateCurrencyOK() *CreateCurrencyOK

NewCreateCurrencyOK creates a CreateCurrencyOK with default headers values

func (*CreateCurrencyOK) Error

func (o *CreateCurrencyOK) Error() string

func (*CreateCurrencyOK) GetPayload

type CreateCurrencyParams

type CreateCurrencyParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.CurrencyCreate
	/*Namespace
	  Namespace

	*/
	Namespace string

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

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

func NewCreateCurrencyParams

func NewCreateCurrencyParams() *CreateCurrencyParams

NewCreateCurrencyParams creates a new CreateCurrencyParams object with the default values initialized.

func NewCreateCurrencyParamsWithContext

func NewCreateCurrencyParamsWithContext(ctx context.Context) *CreateCurrencyParams

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

func NewCreateCurrencyParamsWithHTTPClient

func NewCreateCurrencyParamsWithHTTPClient(client *http.Client) *CreateCurrencyParams

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

func NewCreateCurrencyParamsWithTimeout

func NewCreateCurrencyParamsWithTimeout(timeout time.Duration) *CreateCurrencyParams

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

func (*CreateCurrencyParams) SetAuthInfoWriter added in v0.17.0

func (o *CreateCurrencyParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the create currency params

func (*CreateCurrencyParams) SetBody

SetBody adds the body to the create currency params

func (*CreateCurrencyParams) SetContext

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

SetContext adds the context to the create currency params

func (*CreateCurrencyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create currency params

func (*CreateCurrencyParams) SetHTTPClientTransport added in v0.19.0

func (o *CreateCurrencyParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the create currency params

func (*CreateCurrencyParams) SetNamespace

func (o *CreateCurrencyParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create currency params

func (*CreateCurrencyParams) SetTimeout

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

SetTimeout adds the timeout to the create currency params

func (*CreateCurrencyParams) WithBody

WithBody adds the body to the create currency params

func (*CreateCurrencyParams) WithContext

WithContext adds the context to the create currency params

func (*CreateCurrencyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create currency params

func (*CreateCurrencyParams) WithNamespace

func (o *CreateCurrencyParams) WithNamespace(namespace string) *CreateCurrencyParams

WithNamespace adds the namespace to the create currency params

func (*CreateCurrencyParams) WithTimeout

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

WithTimeout adds the timeout to the create currency params

func (*CreateCurrencyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateCurrencyReader

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

CreateCurrencyReader is a Reader for the CreateCurrency structure.

func (*CreateCurrencyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateCurrencyUnprocessableEntity

type CreateCurrencyUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

CreateCurrencyUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewCreateCurrencyUnprocessableEntity

func NewCreateCurrencyUnprocessableEntity() *CreateCurrencyUnprocessableEntity

NewCreateCurrencyUnprocessableEntity creates a CreateCurrencyUnprocessableEntity with default headers values

func (*CreateCurrencyUnprocessableEntity) Error

func (*CreateCurrencyUnprocessableEntity) GetPayload

type DeleteCurrencyNotFound

type DeleteCurrencyNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

DeleteCurrencyNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>36141</td><td>Currency [{currencyCode}] does not exist in namespace [{namespace}]</td></tr></table>

func NewDeleteCurrencyNotFound

func NewDeleteCurrencyNotFound() *DeleteCurrencyNotFound

NewDeleteCurrencyNotFound creates a DeleteCurrencyNotFound with default headers values

func (*DeleteCurrencyNotFound) Error

func (o *DeleteCurrencyNotFound) Error() string

func (*DeleteCurrencyNotFound) GetPayload

type DeleteCurrencyOK

type DeleteCurrencyOK struct {
	Payload *platformclientmodels.CurrencyInfo
}

DeleteCurrencyOK handles this case with default header values.

successful operation

func NewDeleteCurrencyOK

func NewDeleteCurrencyOK() *DeleteCurrencyOK

NewDeleteCurrencyOK creates a DeleteCurrencyOK with default headers values

func (*DeleteCurrencyOK) Error

func (o *DeleteCurrencyOK) Error() string

func (*DeleteCurrencyOK) GetPayload

type DeleteCurrencyParams

type DeleteCurrencyParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CurrencyCode
	  currencyCode

	*/
	CurrencyCode string
	/*Namespace*/
	Namespace string

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

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

func NewDeleteCurrencyParams

func NewDeleteCurrencyParams() *DeleteCurrencyParams

NewDeleteCurrencyParams creates a new DeleteCurrencyParams object with the default values initialized.

func NewDeleteCurrencyParamsWithContext

func NewDeleteCurrencyParamsWithContext(ctx context.Context) *DeleteCurrencyParams

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

func NewDeleteCurrencyParamsWithHTTPClient

func NewDeleteCurrencyParamsWithHTTPClient(client *http.Client) *DeleteCurrencyParams

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

func NewDeleteCurrencyParamsWithTimeout

func NewDeleteCurrencyParamsWithTimeout(timeout time.Duration) *DeleteCurrencyParams

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

func (*DeleteCurrencyParams) SetAuthInfoWriter added in v0.17.0

func (o *DeleteCurrencyParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the delete currency params

func (*DeleteCurrencyParams) SetContext

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

SetContext adds the context to the delete currency params

func (*DeleteCurrencyParams) SetCurrencyCode

func (o *DeleteCurrencyParams) SetCurrencyCode(currencyCode string)

SetCurrencyCode adds the currencyCode to the delete currency params

func (*DeleteCurrencyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete currency params

func (*DeleteCurrencyParams) SetHTTPClientTransport added in v0.19.0

func (o *DeleteCurrencyParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the delete currency params

func (*DeleteCurrencyParams) SetNamespace

func (o *DeleteCurrencyParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete currency params

func (*DeleteCurrencyParams) SetTimeout

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

SetTimeout adds the timeout to the delete currency params

func (*DeleteCurrencyParams) WithContext

WithContext adds the context to the delete currency params

func (*DeleteCurrencyParams) WithCurrencyCode

func (o *DeleteCurrencyParams) WithCurrencyCode(currencyCode string) *DeleteCurrencyParams

WithCurrencyCode adds the currencyCode to the delete currency params

func (*DeleteCurrencyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete currency params

func (*DeleteCurrencyParams) WithNamespace

func (o *DeleteCurrencyParams) WithNamespace(namespace string) *DeleteCurrencyParams

WithNamespace adds the namespace to the delete currency params

func (*DeleteCurrencyParams) WithTimeout

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

WithTimeout adds the timeout to the delete currency params

func (*DeleteCurrencyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteCurrencyReader

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

DeleteCurrencyReader is a Reader for the DeleteCurrency structure.

func (*DeleteCurrencyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCurrencyConfigNotFound

type GetCurrencyConfigNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetCurrencyConfigNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>36141</td><td>Currency [{currencyCode}] does not exist in namespace [{namespace}]</td></tr></table>

func NewGetCurrencyConfigNotFound

func NewGetCurrencyConfigNotFound() *GetCurrencyConfigNotFound

NewGetCurrencyConfigNotFound creates a GetCurrencyConfigNotFound with default headers values

func (*GetCurrencyConfigNotFound) Error

func (o *GetCurrencyConfigNotFound) Error() string

func (*GetCurrencyConfigNotFound) GetPayload

type GetCurrencyConfigOK

type GetCurrencyConfigOK struct {
	Payload *platformclientmodels.CurrencyConfig
}

GetCurrencyConfigOK handles this case with default header values.

successful operation

func NewGetCurrencyConfigOK

func NewGetCurrencyConfigOK() *GetCurrencyConfigOK

NewGetCurrencyConfigOK creates a GetCurrencyConfigOK with default headers values

func (*GetCurrencyConfigOK) Error

func (o *GetCurrencyConfigOK) Error() string

func (*GetCurrencyConfigOK) GetPayload

type GetCurrencyConfigParams

type GetCurrencyConfigParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CurrencyCode
	  currencyCode

	*/
	CurrencyCode string
	/*Namespace
	  Namespace

	*/
	Namespace string

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

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

func NewGetCurrencyConfigParams

func NewGetCurrencyConfigParams() *GetCurrencyConfigParams

NewGetCurrencyConfigParams creates a new GetCurrencyConfigParams object with the default values initialized.

func NewGetCurrencyConfigParamsWithContext

func NewGetCurrencyConfigParamsWithContext(ctx context.Context) *GetCurrencyConfigParams

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

func NewGetCurrencyConfigParamsWithHTTPClient

func NewGetCurrencyConfigParamsWithHTTPClient(client *http.Client) *GetCurrencyConfigParams

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

func NewGetCurrencyConfigParamsWithTimeout

func NewGetCurrencyConfigParamsWithTimeout(timeout time.Duration) *GetCurrencyConfigParams

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

func (*GetCurrencyConfigParams) SetAuthInfoWriter added in v0.17.0

func (o *GetCurrencyConfigParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get currency config params

func (*GetCurrencyConfigParams) SetContext

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

SetContext adds the context to the get currency config params

func (*GetCurrencyConfigParams) SetCurrencyCode

func (o *GetCurrencyConfigParams) SetCurrencyCode(currencyCode string)

SetCurrencyCode adds the currencyCode to the get currency config params

func (*GetCurrencyConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get currency config params

func (*GetCurrencyConfigParams) SetHTTPClientTransport added in v0.19.0

func (o *GetCurrencyConfigParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get currency config params

func (*GetCurrencyConfigParams) SetNamespace

func (o *GetCurrencyConfigParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get currency config params

func (*GetCurrencyConfigParams) SetTimeout

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

SetTimeout adds the timeout to the get currency config params

func (*GetCurrencyConfigParams) WithContext

WithContext adds the context to the get currency config params

func (*GetCurrencyConfigParams) WithCurrencyCode

func (o *GetCurrencyConfigParams) WithCurrencyCode(currencyCode string) *GetCurrencyConfigParams

WithCurrencyCode adds the currencyCode to the get currency config params

func (*GetCurrencyConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get currency config params

func (*GetCurrencyConfigParams) WithNamespace

func (o *GetCurrencyConfigParams) WithNamespace(namespace string) *GetCurrencyConfigParams

WithNamespace adds the namespace to the get currency config params

func (*GetCurrencyConfigParams) WithTimeout

WithTimeout adds the timeout to the get currency config params

func (*GetCurrencyConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCurrencyConfigReader

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

GetCurrencyConfigReader is a Reader for the GetCurrencyConfig structure.

func (*GetCurrencyConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCurrencySummaryNotFound

type GetCurrencySummaryNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetCurrencySummaryNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>36141</td><td>Currency [{currencyCode}] does not exist in namespace [{namespace}]</td></tr></table>

func NewGetCurrencySummaryNotFound

func NewGetCurrencySummaryNotFound() *GetCurrencySummaryNotFound

NewGetCurrencySummaryNotFound creates a GetCurrencySummaryNotFound with default headers values

func (*GetCurrencySummaryNotFound) Error

func (*GetCurrencySummaryNotFound) GetPayload

type GetCurrencySummaryOK

type GetCurrencySummaryOK struct {
	Payload *platformclientmodels.CurrencySummary
}

GetCurrencySummaryOK handles this case with default header values.

successful operation

func NewGetCurrencySummaryOK

func NewGetCurrencySummaryOK() *GetCurrencySummaryOK

NewGetCurrencySummaryOK creates a GetCurrencySummaryOK with default headers values

func (*GetCurrencySummaryOK) Error

func (o *GetCurrencySummaryOK) Error() string

func (*GetCurrencySummaryOK) GetPayload

type GetCurrencySummaryParams

type GetCurrencySummaryParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CurrencyCode
	  currencyCode

	*/
	CurrencyCode string
	/*Namespace
	  Namespace

	*/
	Namespace string

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

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

func NewGetCurrencySummaryParams

func NewGetCurrencySummaryParams() *GetCurrencySummaryParams

NewGetCurrencySummaryParams creates a new GetCurrencySummaryParams object with the default values initialized.

func NewGetCurrencySummaryParamsWithContext

func NewGetCurrencySummaryParamsWithContext(ctx context.Context) *GetCurrencySummaryParams

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

func NewGetCurrencySummaryParamsWithHTTPClient

func NewGetCurrencySummaryParamsWithHTTPClient(client *http.Client) *GetCurrencySummaryParams

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

func NewGetCurrencySummaryParamsWithTimeout

func NewGetCurrencySummaryParamsWithTimeout(timeout time.Duration) *GetCurrencySummaryParams

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

func (*GetCurrencySummaryParams) SetAuthInfoWriter added in v0.17.0

func (o *GetCurrencySummaryParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get currency summary params

func (*GetCurrencySummaryParams) SetContext

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

SetContext adds the context to the get currency summary params

func (*GetCurrencySummaryParams) SetCurrencyCode

func (o *GetCurrencySummaryParams) SetCurrencyCode(currencyCode string)

SetCurrencyCode adds the currencyCode to the get currency summary params

func (*GetCurrencySummaryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get currency summary params

func (*GetCurrencySummaryParams) SetHTTPClientTransport added in v0.19.0

func (o *GetCurrencySummaryParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get currency summary params

func (*GetCurrencySummaryParams) SetNamespace

func (o *GetCurrencySummaryParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get currency summary params

func (*GetCurrencySummaryParams) SetTimeout

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

SetTimeout adds the timeout to the get currency summary params

func (*GetCurrencySummaryParams) WithContext

WithContext adds the context to the get currency summary params

func (*GetCurrencySummaryParams) WithCurrencyCode

func (o *GetCurrencySummaryParams) WithCurrencyCode(currencyCode string) *GetCurrencySummaryParams

WithCurrencyCode adds the currencyCode to the get currency summary params

func (*GetCurrencySummaryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get currency summary params

func (*GetCurrencySummaryParams) WithNamespace

func (o *GetCurrencySummaryParams) WithNamespace(namespace string) *GetCurrencySummaryParams

WithNamespace adds the namespace to the get currency summary params

func (*GetCurrencySummaryParams) WithTimeout

WithTimeout adds the timeout to the get currency summary params

func (*GetCurrencySummaryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCurrencySummaryReader

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

GetCurrencySummaryReader is a Reader for the GetCurrencySummary structure.

func (*GetCurrencySummaryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListCurrenciesOK

type ListCurrenciesOK struct {
	Payload []*platformclientmodels.CurrencyInfo
}

ListCurrenciesOK handles this case with default header values.

successful operation

func NewListCurrenciesOK

func NewListCurrenciesOK() *ListCurrenciesOK

NewListCurrenciesOK creates a ListCurrenciesOK with default headers values

func (*ListCurrenciesOK) Error

func (o *ListCurrenciesOK) Error() string

func (*ListCurrenciesOK) GetPayload

type ListCurrenciesParams

type ListCurrenciesParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CurrencyType
	  currencyType

	*/
	CurrencyType *string
	/*Namespace
	  Namespace

	*/
	Namespace string

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

ListCurrenciesParams contains all the parameters to send to the API endpoint for the list currencies operation typically these are written to a http.Request

func NewListCurrenciesParams

func NewListCurrenciesParams() *ListCurrenciesParams

NewListCurrenciesParams creates a new ListCurrenciesParams object with the default values initialized.

func NewListCurrenciesParamsWithContext

func NewListCurrenciesParamsWithContext(ctx context.Context) *ListCurrenciesParams

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

func NewListCurrenciesParamsWithHTTPClient

func NewListCurrenciesParamsWithHTTPClient(client *http.Client) *ListCurrenciesParams

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

func NewListCurrenciesParamsWithTimeout

func NewListCurrenciesParamsWithTimeout(timeout time.Duration) *ListCurrenciesParams

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

func (*ListCurrenciesParams) SetAuthInfoWriter added in v0.17.0

func (o *ListCurrenciesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the list currencies params

func (*ListCurrenciesParams) SetContext

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

SetContext adds the context to the list currencies params

func (*ListCurrenciesParams) SetCurrencyType added in v0.18.0

func (o *ListCurrenciesParams) SetCurrencyType(currencyType *string)

SetCurrencyType adds the currencyType to the list currencies params

func (*ListCurrenciesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list currencies params

func (*ListCurrenciesParams) SetHTTPClientTransport added in v0.19.0

func (o *ListCurrenciesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the list currencies params

func (*ListCurrenciesParams) SetNamespace

func (o *ListCurrenciesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the list currencies params

func (*ListCurrenciesParams) SetTimeout

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

SetTimeout adds the timeout to the list currencies params

func (*ListCurrenciesParams) WithContext

WithContext adds the context to the list currencies params

func (*ListCurrenciesParams) WithCurrencyType added in v0.18.0

func (o *ListCurrenciesParams) WithCurrencyType(currencyType *string) *ListCurrenciesParams

WithCurrencyType adds the currencyType to the list currencies params

func (*ListCurrenciesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list currencies params

func (*ListCurrenciesParams) WithNamespace

func (o *ListCurrenciesParams) WithNamespace(namespace string) *ListCurrenciesParams

WithNamespace adds the namespace to the list currencies params

func (*ListCurrenciesParams) WithTimeout

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

WithTimeout adds the timeout to the list currencies params

func (*ListCurrenciesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListCurrenciesReader

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

ListCurrenciesReader is a Reader for the ListCurrencies structure.

func (*ListCurrenciesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicListCurrenciesOK

type PublicListCurrenciesOK struct {
	Payload []*platformclientmodels.CurrencyInfo
}

PublicListCurrenciesOK handles this case with default header values.

successful operation

func NewPublicListCurrenciesOK

func NewPublicListCurrenciesOK() *PublicListCurrenciesOK

NewPublicListCurrenciesOK creates a PublicListCurrenciesOK with default headers values

func (*PublicListCurrenciesOK) Error

func (o *PublicListCurrenciesOK) Error() string

func (*PublicListCurrenciesOK) GetPayload

type PublicListCurrenciesParams

type PublicListCurrenciesParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*CurrencyType
	  currencyType

	*/
	CurrencyType *string
	/*Namespace
	  Namespace

	*/
	Namespace string

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

PublicListCurrenciesParams contains all the parameters to send to the API endpoint for the public list currencies operation typically these are written to a http.Request

func NewPublicListCurrenciesParams

func NewPublicListCurrenciesParams() *PublicListCurrenciesParams

NewPublicListCurrenciesParams creates a new PublicListCurrenciesParams object with the default values initialized.

func NewPublicListCurrenciesParamsWithContext

func NewPublicListCurrenciesParamsWithContext(ctx context.Context) *PublicListCurrenciesParams

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

func NewPublicListCurrenciesParamsWithHTTPClient

func NewPublicListCurrenciesParamsWithHTTPClient(client *http.Client) *PublicListCurrenciesParams

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

func NewPublicListCurrenciesParamsWithTimeout

func NewPublicListCurrenciesParamsWithTimeout(timeout time.Duration) *PublicListCurrenciesParams

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

func (*PublicListCurrenciesParams) SetAuthInfoWriter added in v0.17.0

func (o *PublicListCurrenciesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the public list currencies params

func (*PublicListCurrenciesParams) SetContext

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

SetContext adds the context to the public list currencies params

func (*PublicListCurrenciesParams) SetCurrencyType added in v0.18.0

func (o *PublicListCurrenciesParams) SetCurrencyType(currencyType *string)

SetCurrencyType adds the currencyType to the public list currencies params

func (*PublicListCurrenciesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public list currencies params

func (*PublicListCurrenciesParams) SetHTTPClientTransport added in v0.19.0

func (o *PublicListCurrenciesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the public list currencies params

func (*PublicListCurrenciesParams) SetNamespace

func (o *PublicListCurrenciesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public list currencies params

func (*PublicListCurrenciesParams) SetTimeout

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

SetTimeout adds the timeout to the public list currencies params

func (*PublicListCurrenciesParams) WithContext

WithContext adds the context to the public list currencies params

func (*PublicListCurrenciesParams) WithCurrencyType added in v0.18.0

func (o *PublicListCurrenciesParams) WithCurrencyType(currencyType *string) *PublicListCurrenciesParams

WithCurrencyType adds the currencyType to the public list currencies params

func (*PublicListCurrenciesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public list currencies params

func (*PublicListCurrenciesParams) WithNamespace

func (o *PublicListCurrenciesParams) WithNamespace(namespace string) *PublicListCurrenciesParams

WithNamespace adds the namespace to the public list currencies params

func (*PublicListCurrenciesParams) WithTimeout

WithTimeout adds the timeout to the public list currencies params

func (*PublicListCurrenciesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicListCurrenciesReader

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

PublicListCurrenciesReader is a Reader for the PublicListCurrencies structure.

func (*PublicListCurrenciesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateCurrencyNotFound

type UpdateCurrencyNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateCurrencyNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>36141</td><td>Currency [{currencyCode}] does not exist in namespace [{namespace}]</td></tr></table>

func NewUpdateCurrencyNotFound

func NewUpdateCurrencyNotFound() *UpdateCurrencyNotFound

NewUpdateCurrencyNotFound creates a UpdateCurrencyNotFound with default headers values

func (*UpdateCurrencyNotFound) Error

func (o *UpdateCurrencyNotFound) Error() string

func (*UpdateCurrencyNotFound) GetPayload

type UpdateCurrencyOK

type UpdateCurrencyOK struct {
	Payload *platformclientmodels.CurrencyInfo
}

UpdateCurrencyOK handles this case with default header values.

successful operation

func NewUpdateCurrencyOK

func NewUpdateCurrencyOK() *UpdateCurrencyOK

NewUpdateCurrencyOK creates a UpdateCurrencyOK with default headers values

func (*UpdateCurrencyOK) Error

func (o *UpdateCurrencyOK) Error() string

func (*UpdateCurrencyOK) GetPayload

type UpdateCurrencyParams

type UpdateCurrencyParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.CurrencyUpdate
	/*CurrencyCode
	  currencyCode

	*/
	CurrencyCode string
	/*Namespace
	  Namespace

	*/
	Namespace string

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

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

func NewUpdateCurrencyParams

func NewUpdateCurrencyParams() *UpdateCurrencyParams

NewUpdateCurrencyParams creates a new UpdateCurrencyParams object with the default values initialized.

func NewUpdateCurrencyParamsWithContext

func NewUpdateCurrencyParamsWithContext(ctx context.Context) *UpdateCurrencyParams

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

func NewUpdateCurrencyParamsWithHTTPClient

func NewUpdateCurrencyParamsWithHTTPClient(client *http.Client) *UpdateCurrencyParams

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

func NewUpdateCurrencyParamsWithTimeout

func NewUpdateCurrencyParamsWithTimeout(timeout time.Duration) *UpdateCurrencyParams

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

func (*UpdateCurrencyParams) SetAuthInfoWriter added in v0.17.0

func (o *UpdateCurrencyParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the update currency params

func (*UpdateCurrencyParams) SetBody

SetBody adds the body to the update currency params

func (*UpdateCurrencyParams) SetContext

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

SetContext adds the context to the update currency params

func (*UpdateCurrencyParams) SetCurrencyCode

func (o *UpdateCurrencyParams) SetCurrencyCode(currencyCode string)

SetCurrencyCode adds the currencyCode to the update currency params

func (*UpdateCurrencyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update currency params

func (*UpdateCurrencyParams) SetHTTPClientTransport added in v0.19.0

func (o *UpdateCurrencyParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the update currency params

func (*UpdateCurrencyParams) SetNamespace

func (o *UpdateCurrencyParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update currency params

func (*UpdateCurrencyParams) SetTimeout

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

SetTimeout adds the timeout to the update currency params

func (*UpdateCurrencyParams) WithBody

WithBody adds the body to the update currency params

func (*UpdateCurrencyParams) WithContext

WithContext adds the context to the update currency params

func (*UpdateCurrencyParams) WithCurrencyCode

func (o *UpdateCurrencyParams) WithCurrencyCode(currencyCode string) *UpdateCurrencyParams

WithCurrencyCode adds the currencyCode to the update currency params

func (*UpdateCurrencyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update currency params

func (*UpdateCurrencyParams) WithNamespace

func (o *UpdateCurrencyParams) WithNamespace(namespace string) *UpdateCurrencyParams

WithNamespace adds the namespace to the update currency params

func (*UpdateCurrencyParams) WithTimeout

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

WithTimeout adds the timeout to the update currency params

func (*UpdateCurrencyParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateCurrencyReader

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

UpdateCurrencyReader is a Reader for the UpdateCurrency structure.

func (*UpdateCurrencyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateCurrencyUnprocessableEntity

type UpdateCurrencyUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

UpdateCurrencyUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewUpdateCurrencyUnprocessableEntity

func NewUpdateCurrencyUnprocessableEntity() *UpdateCurrencyUnprocessableEntity

NewUpdateCurrencyUnprocessableEntity creates a UpdateCurrencyUnprocessableEntity with default headers values

func (*UpdateCurrencyUnprocessableEntity) Error

func (*UpdateCurrencyUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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