wallet

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 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 wallet API

func (*Client) CreateBSCTransaction added in v0.3.0

func (a *Client) CreateBSCTransaction(params *CreateBSCTransactionParams, opts ...ClientOption) (*CreateBSCTransactionCreated, error)

CreateBSCTransaction creates b s c transaction

func (*Client) CreateEthereumTransaction

func (a *Client) CreateEthereumTransaction(params *CreateEthereumTransactionParams, opts ...ClientOption) (*CreateEthereumTransactionCreated, error)

CreateEthereumTransaction creates ethereum transaction

func (*Client) CreateMaticTransaction

func (a *Client) CreateMaticTransaction(params *CreateMaticTransactionParams, opts ...ClientOption) (*CreateMaticTransactionCreated, error)

CreateMaticTransaction creates polygon transaction

func (*Client) CreateTronTransaction

func (a *Client) CreateTronTransaction(params *CreateTronTransactionParams, opts ...ClientOption) (*CreateTronTransactionCreated, error)

CreateTronTransaction creates tron transaction

func (*Client) CreateWallet

func (a *Client) CreateWallet(params *CreateWalletParams, opts ...ClientOption) (*CreateWalletCreated, error)

CreateWallet creates wallet

func (*Client) DeleteWallet

func (a *Client) DeleteWallet(params *DeleteWalletParams, opts ...ClientOption) (*DeleteWalletNoContent, error)

DeleteWallet deletes wallet

func (*Client) GetWallet

func (a *Client) GetWallet(params *GetWalletParams, opts ...ClientOption) (*GetWalletOK, error)

GetWallet gets wallet

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 {
	CreateBSCTransaction(params *CreateBSCTransactionParams, opts ...ClientOption) (*CreateBSCTransactionCreated, error)

	CreateEthereumTransaction(params *CreateEthereumTransactionParams, opts ...ClientOption) (*CreateEthereumTransactionCreated, error)

	CreateMaticTransaction(params *CreateMaticTransactionParams, opts ...ClientOption) (*CreateMaticTransactionCreated, error)

	CreateTronTransaction(params *CreateTronTransactionParams, opts ...ClientOption) (*CreateTronTransactionCreated, error)

	CreateWallet(params *CreateWalletParams, opts ...ClientOption) (*CreateWalletCreated, error)

	DeleteWallet(params *DeleteWalletParams, opts ...ClientOption) (*DeleteWalletNoContent, error)

	GetWallet(params *GetWalletParams, opts ...ClientOption) (*GetWalletOK, 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 wallet API client.

type CreateBSCTransactionBadRequest added in v0.3.0

type CreateBSCTransactionBadRequest struct {
	Payload *model.ErrorResponse
}
CreateBSCTransactionBadRequest describes a response with status code 400, with default header values.

Validation error / Not found

func NewCreateBSCTransactionBadRequest added in v0.3.0

func NewCreateBSCTransactionBadRequest() *CreateBSCTransactionBadRequest

NewCreateBSCTransactionBadRequest creates a CreateBSCTransactionBadRequest with default headers values

func (*CreateBSCTransactionBadRequest) Error added in v0.3.0

func (*CreateBSCTransactionBadRequest) GetPayload added in v0.3.0

type CreateBSCTransactionCreated added in v0.3.0

type CreateBSCTransactionCreated struct {
	Payload *model.BSCTransaction
}
CreateBSCTransactionCreated describes a response with status code 201, with default header values.

Transaction Created

func NewCreateBSCTransactionCreated added in v0.3.0

func NewCreateBSCTransactionCreated() *CreateBSCTransactionCreated

NewCreateBSCTransactionCreated creates a CreateBSCTransactionCreated with default headers values

func (*CreateBSCTransactionCreated) Error added in v0.3.0

func (*CreateBSCTransactionCreated) GetPayload added in v0.3.0

type CreateBSCTransactionParams added in v0.3.0

type CreateBSCTransactionParams struct {

	// Data.
	Data *model.CreateBSCTransactionRequest

	/* WalletID.

	   Wallet UUID
	*/
	WalletID string

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

CreateBSCTransactionParams contains all the parameters to send to the API endpoint

for the create b s c transaction operation.

Typically these are written to a http.Request.

func NewCreateBSCTransactionParams added in v0.3.0

func NewCreateBSCTransactionParams() *CreateBSCTransactionParams

NewCreateBSCTransactionParams creates a new CreateBSCTransactionParams 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 NewCreateBSCTransactionParamsWithContext added in v0.3.0

func NewCreateBSCTransactionParamsWithContext(ctx context.Context) *CreateBSCTransactionParams

NewCreateBSCTransactionParamsWithContext creates a new CreateBSCTransactionParams object with the ability to set a context for a request.

func NewCreateBSCTransactionParamsWithHTTPClient added in v0.3.0

func NewCreateBSCTransactionParamsWithHTTPClient(client *http.Client) *CreateBSCTransactionParams

NewCreateBSCTransactionParamsWithHTTPClient creates a new CreateBSCTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewCreateBSCTransactionParamsWithTimeout added in v0.3.0

func NewCreateBSCTransactionParamsWithTimeout(timeout time.Duration) *CreateBSCTransactionParams

NewCreateBSCTransactionParamsWithTimeout creates a new CreateBSCTransactionParams object with the ability to set a timeout on a request.

func (*CreateBSCTransactionParams) SetContext added in v0.3.0

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

SetContext adds the context to the create b s c transaction params

func (*CreateBSCTransactionParams) SetData added in v0.3.0

SetData adds the data to the create b s c transaction params

func (*CreateBSCTransactionParams) SetDefaults added in v0.3.0

func (o *CreateBSCTransactionParams) SetDefaults()

SetDefaults hydrates default values in the create b s c transaction params (not the query body).

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

func (*CreateBSCTransactionParams) SetHTTPClient added in v0.3.0

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

SetHTTPClient adds the HTTPClient to the create b s c transaction params

func (*CreateBSCTransactionParams) SetTimeout added in v0.3.0

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

SetTimeout adds the timeout to the create b s c transaction params

func (*CreateBSCTransactionParams) SetWalletID added in v0.3.0

func (o *CreateBSCTransactionParams) SetWalletID(walletID string)

SetWalletID adds the walletId to the create b s c transaction params

func (*CreateBSCTransactionParams) WithContext added in v0.3.0

WithContext adds the context to the create b s c transaction params

func (*CreateBSCTransactionParams) WithData added in v0.3.0

WithData adds the data to the create b s c transaction params

func (*CreateBSCTransactionParams) WithDefaults added in v0.3.0

WithDefaults hydrates default values in the create b s c transaction params (not the query body).

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

func (*CreateBSCTransactionParams) WithHTTPClient added in v0.3.0

WithHTTPClient adds the HTTPClient to the create b s c transaction params

func (*CreateBSCTransactionParams) WithTimeout added in v0.3.0

WithTimeout adds the timeout to the create b s c transaction params

func (*CreateBSCTransactionParams) WithWalletID added in v0.3.0

WithWalletID adds the walletID to the create b s c transaction params

func (*CreateBSCTransactionParams) WriteToRequest added in v0.3.0

WriteToRequest writes these params to a swagger request

type CreateBSCTransactionReader added in v0.3.0

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

CreateBSCTransactionReader is a Reader for the CreateBSCTransaction structure.

func (*CreateBSCTransactionReader) ReadResponse added in v0.3.0

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

ReadResponse reads a server response into the received o.

type CreateEthereumTransactionBadRequest

type CreateEthereumTransactionBadRequest struct {
	Payload *model.ErrorResponse
}
CreateEthereumTransactionBadRequest describes a response with status code 400, with default header values.

Validation error / Not found

func NewCreateEthereumTransactionBadRequest

func NewCreateEthereumTransactionBadRequest() *CreateEthereumTransactionBadRequest

NewCreateEthereumTransactionBadRequest creates a CreateEthereumTransactionBadRequest with default headers values

func (*CreateEthereumTransactionBadRequest) Error

func (*CreateEthereumTransactionBadRequest) GetPayload

type CreateEthereumTransactionCreated

type CreateEthereumTransactionCreated struct {
	Payload *model.EthereumTransaction
}
CreateEthereumTransactionCreated describes a response with status code 201, with default header values.

Transaction Created

func NewCreateEthereumTransactionCreated

func NewCreateEthereumTransactionCreated() *CreateEthereumTransactionCreated

NewCreateEthereumTransactionCreated creates a CreateEthereumTransactionCreated with default headers values

func (*CreateEthereumTransactionCreated) Error

func (*CreateEthereumTransactionCreated) GetPayload

type CreateEthereumTransactionParams

type CreateEthereumTransactionParams struct {

	// Data.
	Data *model.CreateEthereumTransactionRequest

	/* WalletID.

	   Wallet UUID
	*/
	WalletID string

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

CreateEthereumTransactionParams contains all the parameters to send to the API endpoint

for the create ethereum transaction operation.

Typically these are written to a http.Request.

func NewCreateEthereumTransactionParams

func NewCreateEthereumTransactionParams() *CreateEthereumTransactionParams

NewCreateEthereumTransactionParams creates a new CreateEthereumTransactionParams 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 NewCreateEthereumTransactionParamsWithContext

func NewCreateEthereumTransactionParamsWithContext(ctx context.Context) *CreateEthereumTransactionParams

NewCreateEthereumTransactionParamsWithContext creates a new CreateEthereumTransactionParams object with the ability to set a context for a request.

func NewCreateEthereumTransactionParamsWithHTTPClient

func NewCreateEthereumTransactionParamsWithHTTPClient(client *http.Client) *CreateEthereumTransactionParams

NewCreateEthereumTransactionParamsWithHTTPClient creates a new CreateEthereumTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewCreateEthereumTransactionParamsWithTimeout

func NewCreateEthereumTransactionParamsWithTimeout(timeout time.Duration) *CreateEthereumTransactionParams

NewCreateEthereumTransactionParamsWithTimeout creates a new CreateEthereumTransactionParams object with the ability to set a timeout on a request.

func (*CreateEthereumTransactionParams) SetContext

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

SetContext adds the context to the create ethereum transaction params

func (*CreateEthereumTransactionParams) SetData

SetData adds the data to the create ethereum transaction params

func (*CreateEthereumTransactionParams) SetDefaults

func (o *CreateEthereumTransactionParams) SetDefaults()

SetDefaults hydrates default values in the create ethereum transaction params (not the query body).

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

func (*CreateEthereumTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create ethereum transaction params

func (*CreateEthereumTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the create ethereum transaction params

func (*CreateEthereumTransactionParams) SetWalletID

func (o *CreateEthereumTransactionParams) SetWalletID(walletID string)

SetWalletID adds the walletId to the create ethereum transaction params

func (*CreateEthereumTransactionParams) WithContext

WithContext adds the context to the create ethereum transaction params

func (*CreateEthereumTransactionParams) WithData

WithData adds the data to the create ethereum transaction params

func (*CreateEthereumTransactionParams) WithDefaults

WithDefaults hydrates default values in the create ethereum transaction params (not the query body).

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

func (*CreateEthereumTransactionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create ethereum transaction params

func (*CreateEthereumTransactionParams) WithTimeout

WithTimeout adds the timeout to the create ethereum transaction params

func (*CreateEthereumTransactionParams) WithWalletID

WithWalletID adds the walletID to the create ethereum transaction params

func (*CreateEthereumTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateEthereumTransactionReader

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

CreateEthereumTransactionReader is a Reader for the CreateEthereumTransaction structure.

func (*CreateEthereumTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateMaticTransactionBadRequest

type CreateMaticTransactionBadRequest struct {
	Payload *model.ErrorResponse
}
CreateMaticTransactionBadRequest describes a response with status code 400, with default header values.

Validation error / Not found

func NewCreateMaticTransactionBadRequest

func NewCreateMaticTransactionBadRequest() *CreateMaticTransactionBadRequest

NewCreateMaticTransactionBadRequest creates a CreateMaticTransactionBadRequest with default headers values

func (*CreateMaticTransactionBadRequest) Error

func (*CreateMaticTransactionBadRequest) GetPayload

type CreateMaticTransactionCreated

type CreateMaticTransactionCreated struct {
	Payload *model.MaticTransaction
}
CreateMaticTransactionCreated describes a response with status code 201, with default header values.

Transaction Created

func NewCreateMaticTransactionCreated

func NewCreateMaticTransactionCreated() *CreateMaticTransactionCreated

NewCreateMaticTransactionCreated creates a CreateMaticTransactionCreated with default headers values

func (*CreateMaticTransactionCreated) Error

func (*CreateMaticTransactionCreated) GetPayload

type CreateMaticTransactionParams

type CreateMaticTransactionParams struct {

	// Data.
	Data *model.CreateMaticTransactionRequest

	/* WalletID.

	   Wallet UUID
	*/
	WalletID string

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

CreateMaticTransactionParams contains all the parameters to send to the API endpoint

for the create matic transaction operation.

Typically these are written to a http.Request.

func NewCreateMaticTransactionParams

func NewCreateMaticTransactionParams() *CreateMaticTransactionParams

NewCreateMaticTransactionParams creates a new CreateMaticTransactionParams 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 NewCreateMaticTransactionParamsWithContext

func NewCreateMaticTransactionParamsWithContext(ctx context.Context) *CreateMaticTransactionParams

NewCreateMaticTransactionParamsWithContext creates a new CreateMaticTransactionParams object with the ability to set a context for a request.

func NewCreateMaticTransactionParamsWithHTTPClient

func NewCreateMaticTransactionParamsWithHTTPClient(client *http.Client) *CreateMaticTransactionParams

NewCreateMaticTransactionParamsWithHTTPClient creates a new CreateMaticTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewCreateMaticTransactionParamsWithTimeout

func NewCreateMaticTransactionParamsWithTimeout(timeout time.Duration) *CreateMaticTransactionParams

NewCreateMaticTransactionParamsWithTimeout creates a new CreateMaticTransactionParams object with the ability to set a timeout on a request.

func (*CreateMaticTransactionParams) SetContext

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

SetContext adds the context to the create matic transaction params

func (*CreateMaticTransactionParams) SetData

SetData adds the data to the create matic transaction params

func (*CreateMaticTransactionParams) SetDefaults

func (o *CreateMaticTransactionParams) SetDefaults()

SetDefaults hydrates default values in the create matic transaction params (not the query body).

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

func (*CreateMaticTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create matic transaction params

func (*CreateMaticTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the create matic transaction params

func (*CreateMaticTransactionParams) SetWalletID

func (o *CreateMaticTransactionParams) SetWalletID(walletID string)

SetWalletID adds the walletId to the create matic transaction params

func (*CreateMaticTransactionParams) WithContext

WithContext adds the context to the create matic transaction params

func (*CreateMaticTransactionParams) WithData

WithData adds the data to the create matic transaction params

func (*CreateMaticTransactionParams) WithDefaults

WithDefaults hydrates default values in the create matic transaction params (not the query body).

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

func (*CreateMaticTransactionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create matic transaction params

func (*CreateMaticTransactionParams) WithTimeout

WithTimeout adds the timeout to the create matic transaction params

func (*CreateMaticTransactionParams) WithWalletID

WithWalletID adds the walletID to the create matic transaction params

func (*CreateMaticTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateMaticTransactionReader

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

CreateMaticTransactionReader is a Reader for the CreateMaticTransaction structure.

func (*CreateMaticTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateTronTransactionBadRequest

type CreateTronTransactionBadRequest struct {
	Payload *model.ErrorResponse
}
CreateTronTransactionBadRequest describes a response with status code 400, with default header values.

Validation error / Not found

func NewCreateTronTransactionBadRequest

func NewCreateTronTransactionBadRequest() *CreateTronTransactionBadRequest

NewCreateTronTransactionBadRequest creates a CreateTronTransactionBadRequest with default headers values

func (*CreateTronTransactionBadRequest) Error

func (*CreateTronTransactionBadRequest) GetPayload

type CreateTronTransactionCreated

type CreateTronTransactionCreated struct {
	Payload *model.TronTransaction
}
CreateTronTransactionCreated describes a response with status code 201, with default header values.

Transaction Created

func NewCreateTronTransactionCreated

func NewCreateTronTransactionCreated() *CreateTronTransactionCreated

NewCreateTronTransactionCreated creates a CreateTronTransactionCreated with default headers values

func (*CreateTronTransactionCreated) Error

func (*CreateTronTransactionCreated) GetPayload

type CreateTronTransactionParams

type CreateTronTransactionParams struct {

	// Data.
	Data *model.CreateTronTransactionRequest

	/* WalletID.

	   Wallet UUID
	*/
	WalletID string

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

CreateTronTransactionParams contains all the parameters to send to the API endpoint

for the create tron transaction operation.

Typically these are written to a http.Request.

func NewCreateTronTransactionParams

func NewCreateTronTransactionParams() *CreateTronTransactionParams

NewCreateTronTransactionParams creates a new CreateTronTransactionParams 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 NewCreateTronTransactionParamsWithContext

func NewCreateTronTransactionParamsWithContext(ctx context.Context) *CreateTronTransactionParams

NewCreateTronTransactionParamsWithContext creates a new CreateTronTransactionParams object with the ability to set a context for a request.

func NewCreateTronTransactionParamsWithHTTPClient

func NewCreateTronTransactionParamsWithHTTPClient(client *http.Client) *CreateTronTransactionParams

NewCreateTronTransactionParamsWithHTTPClient creates a new CreateTronTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTronTransactionParamsWithTimeout

func NewCreateTronTransactionParamsWithTimeout(timeout time.Duration) *CreateTronTransactionParams

NewCreateTronTransactionParamsWithTimeout creates a new CreateTronTransactionParams object with the ability to set a timeout on a request.

func (*CreateTronTransactionParams) SetContext

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

SetContext adds the context to the create tron transaction params

func (*CreateTronTransactionParams) SetData

SetData adds the data to the create tron transaction params

func (*CreateTronTransactionParams) SetDefaults

func (o *CreateTronTransactionParams) SetDefaults()

SetDefaults hydrates default values in the create tron transaction params (not the query body).

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

func (*CreateTronTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create tron transaction params

func (*CreateTronTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the create tron transaction params

func (*CreateTronTransactionParams) SetWalletID

func (o *CreateTronTransactionParams) SetWalletID(walletID string)

SetWalletID adds the walletId to the create tron transaction params

func (*CreateTronTransactionParams) WithContext

WithContext adds the context to the create tron transaction params

func (*CreateTronTransactionParams) WithData

WithData adds the data to the create tron transaction params

func (*CreateTronTransactionParams) WithDefaults

WithDefaults hydrates default values in the create tron transaction params (not the query body).

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

func (*CreateTronTransactionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create tron transaction params

func (*CreateTronTransactionParams) WithTimeout

WithTimeout adds the timeout to the create tron transaction params

func (*CreateTronTransactionParams) WithWalletID

WithWalletID adds the walletID to the create tron transaction params

func (*CreateTronTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateTronTransactionReader

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

CreateTronTransactionReader is a Reader for the CreateTronTransaction structure.

func (*CreateTronTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateWalletBadRequest

type CreateWalletBadRequest struct {
	Payload *model.ErrorResponse
}
CreateWalletBadRequest describes a response with status code 400, with default header values.

Validation error

func NewCreateWalletBadRequest

func NewCreateWalletBadRequest() *CreateWalletBadRequest

NewCreateWalletBadRequest creates a CreateWalletBadRequest with default headers values

func (*CreateWalletBadRequest) Error

func (o *CreateWalletBadRequest) Error() string

func (*CreateWalletBadRequest) GetPayload

func (o *CreateWalletBadRequest) GetPayload() *model.ErrorResponse

type CreateWalletCreated

type CreateWalletCreated struct {
	Payload *model.Wallet
}
CreateWalletCreated describes a response with status code 201, with default header values.

Wallet created

func NewCreateWalletCreated

func NewCreateWalletCreated() *CreateWalletCreated

NewCreateWalletCreated creates a CreateWalletCreated with default headers values

func (*CreateWalletCreated) Error

func (o *CreateWalletCreated) Error() string

func (*CreateWalletCreated) GetPayload

func (o *CreateWalletCreated) GetPayload() *model.Wallet

type CreateWalletParams

type CreateWalletParams struct {

	// Data.
	Data *model.CreateWalletRequest

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

CreateWalletParams contains all the parameters to send to the API endpoint

for the create wallet operation.

Typically these are written to a http.Request.

func NewCreateWalletParams

func NewCreateWalletParams() *CreateWalletParams

NewCreateWalletParams creates a new CreateWalletParams 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 NewCreateWalletParamsWithContext

func NewCreateWalletParamsWithContext(ctx context.Context) *CreateWalletParams

NewCreateWalletParamsWithContext creates a new CreateWalletParams object with the ability to set a context for a request.

func NewCreateWalletParamsWithHTTPClient

func NewCreateWalletParamsWithHTTPClient(client *http.Client) *CreateWalletParams

NewCreateWalletParamsWithHTTPClient creates a new CreateWalletParams object with the ability to set a custom HTTPClient for a request.

func NewCreateWalletParamsWithTimeout

func NewCreateWalletParamsWithTimeout(timeout time.Duration) *CreateWalletParams

NewCreateWalletParamsWithTimeout creates a new CreateWalletParams object with the ability to set a timeout on a request.

func (*CreateWalletParams) SetContext

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

SetContext adds the context to the create wallet params

func (*CreateWalletParams) SetData

func (o *CreateWalletParams) SetData(data *model.CreateWalletRequest)

SetData adds the data to the create wallet params

func (*CreateWalletParams) SetDefaults

func (o *CreateWalletParams) SetDefaults()

SetDefaults hydrates default values in the create wallet params (not the query body).

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

func (*CreateWalletParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create wallet params

func (*CreateWalletParams) SetTimeout

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

SetTimeout adds the timeout to the create wallet params

func (*CreateWalletParams) WithContext

WithContext adds the context to the create wallet params

func (*CreateWalletParams) WithData

WithData adds the data to the create wallet params

func (*CreateWalletParams) WithDefaults

func (o *CreateWalletParams) WithDefaults() *CreateWalletParams

WithDefaults hydrates default values in the create wallet params (not the query body).

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

func (*CreateWalletParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create wallet params

func (*CreateWalletParams) WithTimeout

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

WithTimeout adds the timeout to the create wallet params

func (*CreateWalletParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateWalletReader

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

CreateWalletReader is a Reader for the CreateWallet structure.

func (*CreateWalletReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteWalletBadRequest

type DeleteWalletBadRequest struct {
	Payload *model.ErrorResponse
}
DeleteWalletBadRequest describes a response with status code 400, with default header values.

Validation error / Not found

func NewDeleteWalletBadRequest

func NewDeleteWalletBadRequest() *DeleteWalletBadRequest

NewDeleteWalletBadRequest creates a DeleteWalletBadRequest with default headers values

func (*DeleteWalletBadRequest) Error

func (o *DeleteWalletBadRequest) Error() string

func (*DeleteWalletBadRequest) GetPayload

func (o *DeleteWalletBadRequest) GetPayload() *model.ErrorResponse

type DeleteWalletNoContent

type DeleteWalletNoContent struct {
}
DeleteWalletNoContent describes a response with status code 204, with default header values.

Wallet deleted

func NewDeleteWalletNoContent

func NewDeleteWalletNoContent() *DeleteWalletNoContent

NewDeleteWalletNoContent creates a DeleteWalletNoContent with default headers values

func (*DeleteWalletNoContent) Error

func (o *DeleteWalletNoContent) Error() string

type DeleteWalletParams

type DeleteWalletParams struct {

	/* WalletID.

	   Wallet UUID
	*/
	WalletID string

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

DeleteWalletParams contains all the parameters to send to the API endpoint

for the delete wallet operation.

Typically these are written to a http.Request.

func NewDeleteWalletParams

func NewDeleteWalletParams() *DeleteWalletParams

NewDeleteWalletParams creates a new DeleteWalletParams 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 NewDeleteWalletParamsWithContext

func NewDeleteWalletParamsWithContext(ctx context.Context) *DeleteWalletParams

NewDeleteWalletParamsWithContext creates a new DeleteWalletParams object with the ability to set a context for a request.

func NewDeleteWalletParamsWithHTTPClient

func NewDeleteWalletParamsWithHTTPClient(client *http.Client) *DeleteWalletParams

NewDeleteWalletParamsWithHTTPClient creates a new DeleteWalletParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteWalletParamsWithTimeout

func NewDeleteWalletParamsWithTimeout(timeout time.Duration) *DeleteWalletParams

NewDeleteWalletParamsWithTimeout creates a new DeleteWalletParams object with the ability to set a timeout on a request.

func (*DeleteWalletParams) SetContext

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

SetContext adds the context to the delete wallet params

func (*DeleteWalletParams) SetDefaults

func (o *DeleteWalletParams) SetDefaults()

SetDefaults hydrates default values in the delete wallet params (not the query body).

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

func (*DeleteWalletParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete wallet params

func (*DeleteWalletParams) SetTimeout

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

SetTimeout adds the timeout to the delete wallet params

func (*DeleteWalletParams) SetWalletID

func (o *DeleteWalletParams) SetWalletID(walletID string)

SetWalletID adds the walletId to the delete wallet params

func (*DeleteWalletParams) WithContext

WithContext adds the context to the delete wallet params

func (*DeleteWalletParams) WithDefaults

func (o *DeleteWalletParams) WithDefaults() *DeleteWalletParams

WithDefaults hydrates default values in the delete wallet params (not the query body).

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

func (*DeleteWalletParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete wallet params

func (*DeleteWalletParams) WithTimeout

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

WithTimeout adds the timeout to the delete wallet params

func (*DeleteWalletParams) WithWalletID

func (o *DeleteWalletParams) WithWalletID(walletID string) *DeleteWalletParams

WithWalletID adds the walletID to the delete wallet params

func (*DeleteWalletParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteWalletReader

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

DeleteWalletReader is a Reader for the DeleteWallet structure.

func (*DeleteWalletReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetWalletBadRequest

type GetWalletBadRequest struct {
	Payload *model.ErrorResponse
}
GetWalletBadRequest describes a response with status code 400, with default header values.

Validation error / Not found

func NewGetWalletBadRequest

func NewGetWalletBadRequest() *GetWalletBadRequest

NewGetWalletBadRequest creates a GetWalletBadRequest with default headers values

func (*GetWalletBadRequest) Error

func (o *GetWalletBadRequest) Error() string

func (*GetWalletBadRequest) GetPayload

func (o *GetWalletBadRequest) GetPayload() *model.ErrorResponse

type GetWalletOK

type GetWalletOK struct {
	Payload *model.Wallet
}
GetWalletOK describes a response with status code 200, with default header values.

Wallet

func NewGetWalletOK

func NewGetWalletOK() *GetWalletOK

NewGetWalletOK creates a GetWalletOK with default headers values

func (*GetWalletOK) Error

func (o *GetWalletOK) Error() string

func (*GetWalletOK) GetPayload

func (o *GetWalletOK) GetPayload() *model.Wallet

type GetWalletParams

type GetWalletParams struct {

	/* WalletID.

	   Wallet UUID
	*/
	WalletID string

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

GetWalletParams contains all the parameters to send to the API endpoint

for the get wallet operation.

Typically these are written to a http.Request.

func NewGetWalletParams

func NewGetWalletParams() *GetWalletParams

NewGetWalletParams creates a new GetWalletParams 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 NewGetWalletParamsWithContext

func NewGetWalletParamsWithContext(ctx context.Context) *GetWalletParams

NewGetWalletParamsWithContext creates a new GetWalletParams object with the ability to set a context for a request.

func NewGetWalletParamsWithHTTPClient

func NewGetWalletParamsWithHTTPClient(client *http.Client) *GetWalletParams

NewGetWalletParamsWithHTTPClient creates a new GetWalletParams object with the ability to set a custom HTTPClient for a request.

func NewGetWalletParamsWithTimeout

func NewGetWalletParamsWithTimeout(timeout time.Duration) *GetWalletParams

NewGetWalletParamsWithTimeout creates a new GetWalletParams object with the ability to set a timeout on a request.

func (*GetWalletParams) SetContext

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

SetContext adds the context to the get wallet params

func (*GetWalletParams) SetDefaults

func (o *GetWalletParams) SetDefaults()

SetDefaults hydrates default values in the get wallet params (not the query body).

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

func (*GetWalletParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get wallet params

func (*GetWalletParams) SetTimeout

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

SetTimeout adds the timeout to the get wallet params

func (*GetWalletParams) SetWalletID

func (o *GetWalletParams) SetWalletID(walletID string)

SetWalletID adds the walletId to the get wallet params

func (*GetWalletParams) WithContext

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

WithContext adds the context to the get wallet params

func (*GetWalletParams) WithDefaults

func (o *GetWalletParams) WithDefaults() *GetWalletParams

WithDefaults hydrates default values in the get wallet params (not the query body).

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

func (*GetWalletParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get wallet params

func (*GetWalletParams) WithTimeout

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

WithTimeout adds the timeout to the get wallet params

func (*GetWalletParams) WithWalletID

func (o *GetWalletParams) WithWalletID(walletID string) *GetWalletParams

WithWalletID adds the walletID to the get wallet params

func (*GetWalletParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetWalletReader

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

GetWalletReader is a Reader for the GetWallet structure.

func (*GetWalletReader) ReadResponse

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