user

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for user API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new user API client.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UserCancelWithdrawal

func (a *Client) UserCancelWithdrawal(params *UserCancelWithdrawalParams) (*UserCancelWithdrawalOK, error)

UserCancelWithdrawal cancels a withdrawal

func (*Client) UserCheckReferralCode

func (a *Client) UserCheckReferralCode(params *UserCheckReferralCodeParams) (*UserCheckReferralCodeOK, error)

UserCheckReferralCode checks if a referral code is valid

If the code is valid, responds with the referral code's discount (e.g. `0.1` for 10%). Otherwise, will return a 404.

func (*Client) UserConfirm

func (a *Client) UserConfirm(params *UserConfirmParams) (*UserConfirmOK, error)

UserConfirm confirms your email address with a token

func (*Client) UserConfirmEnableTFA

func (a *Client) UserConfirmEnableTFA(params *UserConfirmEnableTFAParams, authInfo runtime.ClientAuthInfoWriter) (*UserConfirmEnableTFAOK, error)

UserConfirmEnableTFA confirms two factor auth for this account if using a yubikey simply send a token to this endpoint

func (*Client) UserConfirmWithdrawal

func (a *Client) UserConfirmWithdrawal(params *UserConfirmWithdrawalParams) (*UserConfirmWithdrawalOK, error)

UserConfirmWithdrawal confirms a withdrawal

func (*Client) UserDisableTFA

func (a *Client) UserDisableTFA(params *UserDisableTFAParams, authInfo runtime.ClientAuthInfoWriter) (*UserDisableTFAOK, error)

UserDisableTFA disables two factor auth for this account

func (*Client) UserGet

func (a *Client) UserGet(params *UserGetParams, authInfo runtime.ClientAuthInfoWriter) (*UserGetOK, error)

UserGet gets your user model

func (*Client) UserGetAffiliateStatus

func (a *Client) UserGetAffiliateStatus(params *UserGetAffiliateStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UserGetAffiliateStatusOK, error)

UserGetAffiliateStatus gets your current affiliate referral status

func (*Client) UserGetCommission

func (a *Client) UserGetCommission(params *UserGetCommissionParams, authInfo runtime.ClientAuthInfoWriter) (*UserGetCommissionOK, error)

UserGetCommission gets your account s commission status

func (*Client) UserGetDepositAddress

func (a *Client) UserGetDepositAddress(params *UserGetDepositAddressParams, authInfo runtime.ClientAuthInfoWriter) (*UserGetDepositAddressOK, error)

UserGetDepositAddress gets a deposit address

func (*Client) UserGetMargin

func (a *Client) UserGetMargin(params *UserGetMarginParams, authInfo runtime.ClientAuthInfoWriter) (*UserGetMarginOK, error)

UserGetMargin gets your account s margin status send a currency of all to receive an array of all supported currencies

func (*Client) UserGetWallet

func (a *Client) UserGetWallet(params *UserGetWalletParams, authInfo runtime.ClientAuthInfoWriter) (*UserGetWalletOK, error)

UserGetWallet gets your current wallet information

func (*Client) UserGetWalletHistory

func (a *Client) UserGetWalletHistory(params *UserGetWalletHistoryParams, authInfo runtime.ClientAuthInfoWriter) (*UserGetWalletHistoryOK, error)

UserGetWalletHistory gets a history of all of your wallet transactions deposits withdrawals p n l

func (*Client) UserGetWalletSummary

func (a *Client) UserGetWalletSummary(params *UserGetWalletSummaryParams, authInfo runtime.ClientAuthInfoWriter) (*UserGetWalletSummaryOK, error)

UserGetWalletSummary gets a summary of all of your wallet transactions deposits withdrawals p n l

func (*Client) UserLogout

func (a *Client) UserLogout(params *UserLogoutParams) (*UserLogoutOK, error)

UserLogout logs out of bit m e x

func (*Client) UserLogoutAll

func (a *Client) UserLogoutAll(params *UserLogoutAllParams, authInfo runtime.ClientAuthInfoWriter) (*UserLogoutAllOK, error)

UserLogoutAll logs all systems out of bit m e x this will revoke all of your account s access tokens logging you out on all devices

func (*Client) UserMinWithdrawalFee

func (a *Client) UserMinWithdrawalFee(params *UserMinWithdrawalFeeParams) (*UserMinWithdrawalFeeOK, error)

UserMinWithdrawalFee gets the minimum withdrawal fee for a currency

This is changed based on network conditions to ensure timely withdrawals. During network congestion, this may be high. The fee is returned in the same currency.

func (*Client) UserRequestEnableTFA

func (a *Client) UserRequestEnableTFA(params *UserRequestEnableTFAParams, authInfo runtime.ClientAuthInfoWriter) (*UserRequestEnableTFAOK, error)

UserRequestEnableTFA gets secret key for setting up two factor auth

Use /confirmEnableTFA directly for Yubikeys. This fails if TFA is already enabled.

func (*Client) UserRequestWithdrawal

func (a *Client) UserRequestWithdrawal(params *UserRequestWithdrawalParams, authInfo runtime.ClientAuthInfoWriter) (*UserRequestWithdrawalOK, error)

UserRequestWithdrawal requests a withdrawal to an external wallet

This will send a confirmation email to the email address on record, unless requested via an API Key with the `withdraw` permission.

func (*Client) UserSavePreferences

func (a *Client) UserSavePreferences(params *UserSavePreferencesParams, authInfo runtime.ClientAuthInfoWriter) (*UserSavePreferencesOK, error)

UserSavePreferences saves user preferences

func (*Client) UserUpdate

func (a *Client) UserUpdate(params *UserUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*UserUpdateOK, error)

UserUpdate updates your password name and other attributes

type UserCancelWithdrawalOK

type UserCancelWithdrawalOK struct {
	Payload *models.Transaction
}

UserCancelWithdrawalOK handles this case with default header values.

Request was successful

func NewUserCancelWithdrawalOK

func NewUserCancelWithdrawalOK() *UserCancelWithdrawalOK

NewUserCancelWithdrawalOK creates a UserCancelWithdrawalOK with default headers values

func (*UserCancelWithdrawalOK) Error

func (o *UserCancelWithdrawalOK) Error() string

type UserCancelWithdrawalParams

type UserCancelWithdrawalParams struct {

	/*Token*/
	Token string

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

UserCancelWithdrawalParams contains all the parameters to send to the API endpoint for the user cancel withdrawal operation typically these are written to a http.Request

func NewUserCancelWithdrawalParams

func NewUserCancelWithdrawalParams() *UserCancelWithdrawalParams

NewUserCancelWithdrawalParams creates a new UserCancelWithdrawalParams object with the default values initialized.

func NewUserCancelWithdrawalParamsWithContext

func NewUserCancelWithdrawalParamsWithContext(ctx context.Context) *UserCancelWithdrawalParams

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

func NewUserCancelWithdrawalParamsWithHTTPClient

func NewUserCancelWithdrawalParamsWithHTTPClient(client *http.Client) *UserCancelWithdrawalParams

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

func NewUserCancelWithdrawalParamsWithTimeout

func NewUserCancelWithdrawalParamsWithTimeout(timeout time.Duration) *UserCancelWithdrawalParams

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

func (*UserCancelWithdrawalParams) SetContext

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

SetContext adds the context to the user cancel withdrawal params

func (*UserCancelWithdrawalParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user cancel withdrawal params

func (*UserCancelWithdrawalParams) SetTimeout

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

SetTimeout adds the timeout to the user cancel withdrawal params

func (*UserCancelWithdrawalParams) SetToken

func (o *UserCancelWithdrawalParams) SetToken(token string)

SetToken adds the token to the user cancel withdrawal params

func (*UserCancelWithdrawalParams) WithContext

WithContext adds the context to the user cancel withdrawal params

func (*UserCancelWithdrawalParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the user cancel withdrawal params

func (*UserCancelWithdrawalParams) WithTimeout

WithTimeout adds the timeout to the user cancel withdrawal params

func (*UserCancelWithdrawalParams) WithToken

WithToken adds the token to the user cancel withdrawal params

func (*UserCancelWithdrawalParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserCancelWithdrawalReader

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

UserCancelWithdrawalReader is a Reader for the UserCancelWithdrawal structure.

func (*UserCancelWithdrawalReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserCheckReferralCodeOK

type UserCheckReferralCodeOK struct {
	Payload float64
}

UserCheckReferralCodeOK handles this case with default header values.

Request was successful

func NewUserCheckReferralCodeOK

func NewUserCheckReferralCodeOK() *UserCheckReferralCodeOK

NewUserCheckReferralCodeOK creates a UserCheckReferralCodeOK with default headers values

func (*UserCheckReferralCodeOK) Error

func (o *UserCheckReferralCodeOK) Error() string

type UserCheckReferralCodeParams

type UserCheckReferralCodeParams struct {

	/*ReferralCode*/
	ReferralCode *string

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

UserCheckReferralCodeParams contains all the parameters to send to the API endpoint for the user check referral code operation typically these are written to a http.Request

func NewUserCheckReferralCodeParams

func NewUserCheckReferralCodeParams() *UserCheckReferralCodeParams

NewUserCheckReferralCodeParams creates a new UserCheckReferralCodeParams object with the default values initialized.

func NewUserCheckReferralCodeParamsWithContext

func NewUserCheckReferralCodeParamsWithContext(ctx context.Context) *UserCheckReferralCodeParams

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

func NewUserCheckReferralCodeParamsWithHTTPClient

func NewUserCheckReferralCodeParamsWithHTTPClient(client *http.Client) *UserCheckReferralCodeParams

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

func NewUserCheckReferralCodeParamsWithTimeout

func NewUserCheckReferralCodeParamsWithTimeout(timeout time.Duration) *UserCheckReferralCodeParams

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

func (*UserCheckReferralCodeParams) SetContext

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

SetContext adds the context to the user check referral code params

func (*UserCheckReferralCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user check referral code params

func (*UserCheckReferralCodeParams) SetReferralCode

func (o *UserCheckReferralCodeParams) SetReferralCode(referralCode *string)

SetReferralCode adds the referralCode to the user check referral code params

func (*UserCheckReferralCodeParams) SetTimeout

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

SetTimeout adds the timeout to the user check referral code params

func (*UserCheckReferralCodeParams) WithContext

WithContext adds the context to the user check referral code params

func (*UserCheckReferralCodeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the user check referral code params

func (*UserCheckReferralCodeParams) WithReferralCode

func (o *UserCheckReferralCodeParams) WithReferralCode(referralCode *string) *UserCheckReferralCodeParams

WithReferralCode adds the referralCode to the user check referral code params

func (*UserCheckReferralCodeParams) WithTimeout

WithTimeout adds the timeout to the user check referral code params

func (*UserCheckReferralCodeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserCheckReferralCodeReader

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

UserCheckReferralCodeReader is a Reader for the UserCheckReferralCode structure.

func (*UserCheckReferralCodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserConfirmEnableTFAOK

type UserConfirmEnableTFAOK struct {
	Payload bool
}

UserConfirmEnableTFAOK handles this case with default header values.

Request was successful

func NewUserConfirmEnableTFAOK

func NewUserConfirmEnableTFAOK() *UserConfirmEnableTFAOK

NewUserConfirmEnableTFAOK creates a UserConfirmEnableTFAOK with default headers values

func (*UserConfirmEnableTFAOK) Error

func (o *UserConfirmEnableTFAOK) Error() string

type UserConfirmEnableTFAParams

type UserConfirmEnableTFAParams struct {

	/*Token
	  Token from your selected TFA type.

	*/
	Token string
	/*Type
	  Two-factor auth type. Supported types: 'GA' (Google Authenticator), 'Yubikey'

	*/
	Type *string

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

UserConfirmEnableTFAParams contains all the parameters to send to the API endpoint for the user confirm enable t f a operation typically these are written to a http.Request

func NewUserConfirmEnableTFAParams

func NewUserConfirmEnableTFAParams() *UserConfirmEnableTFAParams

NewUserConfirmEnableTFAParams creates a new UserConfirmEnableTFAParams object with the default values initialized.

func NewUserConfirmEnableTFAParamsWithContext

func NewUserConfirmEnableTFAParamsWithContext(ctx context.Context) *UserConfirmEnableTFAParams

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

func NewUserConfirmEnableTFAParamsWithHTTPClient

func NewUserConfirmEnableTFAParamsWithHTTPClient(client *http.Client) *UserConfirmEnableTFAParams

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

func NewUserConfirmEnableTFAParamsWithTimeout

func NewUserConfirmEnableTFAParamsWithTimeout(timeout time.Duration) *UserConfirmEnableTFAParams

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

func (*UserConfirmEnableTFAParams) SetContext

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

SetContext adds the context to the user confirm enable t f a params

func (*UserConfirmEnableTFAParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user confirm enable t f a params

func (*UserConfirmEnableTFAParams) SetTimeout

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

SetTimeout adds the timeout to the user confirm enable t f a params

func (*UserConfirmEnableTFAParams) SetToken

func (o *UserConfirmEnableTFAParams) SetToken(token string)

SetToken adds the token to the user confirm enable t f a params

func (*UserConfirmEnableTFAParams) SetType

func (o *UserConfirmEnableTFAParams) SetType(typeVar *string)

SetType adds the type to the user confirm enable t f a params

func (*UserConfirmEnableTFAParams) WithContext

WithContext adds the context to the user confirm enable t f a params

func (*UserConfirmEnableTFAParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the user confirm enable t f a params

func (*UserConfirmEnableTFAParams) WithTimeout

WithTimeout adds the timeout to the user confirm enable t f a params

func (*UserConfirmEnableTFAParams) WithToken

WithToken adds the token to the user confirm enable t f a params

func (*UserConfirmEnableTFAParams) WithType

WithType adds the typeVar to the user confirm enable t f a params

func (*UserConfirmEnableTFAParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserConfirmEnableTFAReader

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

UserConfirmEnableTFAReader is a Reader for the UserConfirmEnableTFA structure.

func (*UserConfirmEnableTFAReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserConfirmOK

type UserConfirmOK struct {
	Payload *models.AccessToken
}

UserConfirmOK handles this case with default header values.

Request was successful

func NewUserConfirmOK

func NewUserConfirmOK() *UserConfirmOK

NewUserConfirmOK creates a UserConfirmOK with default headers values

func (*UserConfirmOK) Error

func (o *UserConfirmOK) Error() string

type UserConfirmParams

type UserConfirmParams struct {

	/*Token*/
	Token string

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

UserConfirmParams contains all the parameters to send to the API endpoint for the user confirm operation typically these are written to a http.Request

func NewUserConfirmParams

func NewUserConfirmParams() *UserConfirmParams

NewUserConfirmParams creates a new UserConfirmParams object with the default values initialized.

func NewUserConfirmParamsWithContext

func NewUserConfirmParamsWithContext(ctx context.Context) *UserConfirmParams

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

func NewUserConfirmParamsWithHTTPClient

func NewUserConfirmParamsWithHTTPClient(client *http.Client) *UserConfirmParams

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

func NewUserConfirmParamsWithTimeout

func NewUserConfirmParamsWithTimeout(timeout time.Duration) *UserConfirmParams

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

func (*UserConfirmParams) SetContext

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

SetContext adds the context to the user confirm params

func (*UserConfirmParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user confirm params

func (*UserConfirmParams) SetTimeout

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

SetTimeout adds the timeout to the user confirm params

func (*UserConfirmParams) SetToken

func (o *UserConfirmParams) SetToken(token string)

SetToken adds the token to the user confirm params

func (*UserConfirmParams) WithContext

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

WithContext adds the context to the user confirm params

func (*UserConfirmParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user confirm params

func (*UserConfirmParams) WithTimeout

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

WithTimeout adds the timeout to the user confirm params

func (*UserConfirmParams) WithToken

func (o *UserConfirmParams) WithToken(token string) *UserConfirmParams

WithToken adds the token to the user confirm params

func (*UserConfirmParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserConfirmReader

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

UserConfirmReader is a Reader for the UserConfirm structure.

func (*UserConfirmReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserConfirmWithdrawalOK

type UserConfirmWithdrawalOK struct {
	Payload *models.Transaction
}

UserConfirmWithdrawalOK handles this case with default header values.

Request was successful

func NewUserConfirmWithdrawalOK

func NewUserConfirmWithdrawalOK() *UserConfirmWithdrawalOK

NewUserConfirmWithdrawalOK creates a UserConfirmWithdrawalOK with default headers values

func (*UserConfirmWithdrawalOK) Error

func (o *UserConfirmWithdrawalOK) Error() string

type UserConfirmWithdrawalParams

type UserConfirmWithdrawalParams struct {

	/*Token*/
	Token string

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

UserConfirmWithdrawalParams contains all the parameters to send to the API endpoint for the user confirm withdrawal operation typically these are written to a http.Request

func NewUserConfirmWithdrawalParams

func NewUserConfirmWithdrawalParams() *UserConfirmWithdrawalParams

NewUserConfirmWithdrawalParams creates a new UserConfirmWithdrawalParams object with the default values initialized.

func NewUserConfirmWithdrawalParamsWithContext

func NewUserConfirmWithdrawalParamsWithContext(ctx context.Context) *UserConfirmWithdrawalParams

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

func NewUserConfirmWithdrawalParamsWithHTTPClient

func NewUserConfirmWithdrawalParamsWithHTTPClient(client *http.Client) *UserConfirmWithdrawalParams

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

func NewUserConfirmWithdrawalParamsWithTimeout

func NewUserConfirmWithdrawalParamsWithTimeout(timeout time.Duration) *UserConfirmWithdrawalParams

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

func (*UserConfirmWithdrawalParams) SetContext

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

SetContext adds the context to the user confirm withdrawal params

func (*UserConfirmWithdrawalParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user confirm withdrawal params

func (*UserConfirmWithdrawalParams) SetTimeout

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

SetTimeout adds the timeout to the user confirm withdrawal params

func (*UserConfirmWithdrawalParams) SetToken

func (o *UserConfirmWithdrawalParams) SetToken(token string)

SetToken adds the token to the user confirm withdrawal params

func (*UserConfirmWithdrawalParams) WithContext

WithContext adds the context to the user confirm withdrawal params

func (*UserConfirmWithdrawalParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the user confirm withdrawal params

func (*UserConfirmWithdrawalParams) WithTimeout

WithTimeout adds the timeout to the user confirm withdrawal params

func (*UserConfirmWithdrawalParams) WithToken

WithToken adds the token to the user confirm withdrawal params

func (*UserConfirmWithdrawalParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserConfirmWithdrawalReader

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

UserConfirmWithdrawalReader is a Reader for the UserConfirmWithdrawal structure.

func (*UserConfirmWithdrawalReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserDisableTFAOK

type UserDisableTFAOK struct {
	Payload bool
}

UserDisableTFAOK handles this case with default header values.

Request was successful

func NewUserDisableTFAOK

func NewUserDisableTFAOK() *UserDisableTFAOK

NewUserDisableTFAOK creates a UserDisableTFAOK with default headers values

func (*UserDisableTFAOK) Error

func (o *UserDisableTFAOK) Error() string

type UserDisableTFAParams

type UserDisableTFAParams struct {

	/*Token
	  Token from your selected TFA type.

	*/
	Token string
	/*Type
	  Two-factor auth type. Supported types: 'GA' (Google Authenticator)

	*/
	Type *string

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

UserDisableTFAParams contains all the parameters to send to the API endpoint for the user disable t f a operation typically these are written to a http.Request

func NewUserDisableTFAParams

func NewUserDisableTFAParams() *UserDisableTFAParams

NewUserDisableTFAParams creates a new UserDisableTFAParams object with the default values initialized.

func NewUserDisableTFAParamsWithContext

func NewUserDisableTFAParamsWithContext(ctx context.Context) *UserDisableTFAParams

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

func NewUserDisableTFAParamsWithHTTPClient

func NewUserDisableTFAParamsWithHTTPClient(client *http.Client) *UserDisableTFAParams

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

func NewUserDisableTFAParamsWithTimeout

func NewUserDisableTFAParamsWithTimeout(timeout time.Duration) *UserDisableTFAParams

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

func (*UserDisableTFAParams) SetContext

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

SetContext adds the context to the user disable t f a params

func (*UserDisableTFAParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user disable t f a params

func (*UserDisableTFAParams) SetTimeout

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

SetTimeout adds the timeout to the user disable t f a params

func (*UserDisableTFAParams) SetToken

func (o *UserDisableTFAParams) SetToken(token string)

SetToken adds the token to the user disable t f a params

func (*UserDisableTFAParams) SetType

func (o *UserDisableTFAParams) SetType(typeVar *string)

SetType adds the type to the user disable t f a params

func (*UserDisableTFAParams) WithContext

WithContext adds the context to the user disable t f a params

func (*UserDisableTFAParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user disable t f a params

func (*UserDisableTFAParams) WithTimeout

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

WithTimeout adds the timeout to the user disable t f a params

func (*UserDisableTFAParams) WithToken

func (o *UserDisableTFAParams) WithToken(token string) *UserDisableTFAParams

WithToken adds the token to the user disable t f a params

func (*UserDisableTFAParams) WithType

func (o *UserDisableTFAParams) WithType(typeVar *string) *UserDisableTFAParams

WithType adds the typeVar to the user disable t f a params

func (*UserDisableTFAParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserDisableTFAReader

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

UserDisableTFAReader is a Reader for the UserDisableTFA structure.

func (*UserDisableTFAReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserGetAffiliateStatusOK

type UserGetAffiliateStatusOK struct {
	Payload *models.Affiliate
}

UserGetAffiliateStatusOK handles this case with default header values.

Request was successful

func NewUserGetAffiliateStatusOK

func NewUserGetAffiliateStatusOK() *UserGetAffiliateStatusOK

NewUserGetAffiliateStatusOK creates a UserGetAffiliateStatusOK with default headers values

func (*UserGetAffiliateStatusOK) Error

func (o *UserGetAffiliateStatusOK) Error() string

type UserGetAffiliateStatusParams

type UserGetAffiliateStatusParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UserGetAffiliateStatusParams contains all the parameters to send to the API endpoint for the user get affiliate status operation typically these are written to a http.Request

func NewUserGetAffiliateStatusParams

func NewUserGetAffiliateStatusParams() *UserGetAffiliateStatusParams

NewUserGetAffiliateStatusParams creates a new UserGetAffiliateStatusParams object with the default values initialized.

func NewUserGetAffiliateStatusParamsWithContext

func NewUserGetAffiliateStatusParamsWithContext(ctx context.Context) *UserGetAffiliateStatusParams

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

func NewUserGetAffiliateStatusParamsWithHTTPClient

func NewUserGetAffiliateStatusParamsWithHTTPClient(client *http.Client) *UserGetAffiliateStatusParams

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

func NewUserGetAffiliateStatusParamsWithTimeout

func NewUserGetAffiliateStatusParamsWithTimeout(timeout time.Duration) *UserGetAffiliateStatusParams

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

func (*UserGetAffiliateStatusParams) SetContext

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

SetContext adds the context to the user get affiliate status params

func (*UserGetAffiliateStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user get affiliate status params

func (*UserGetAffiliateStatusParams) SetTimeout

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

SetTimeout adds the timeout to the user get affiliate status params

func (*UserGetAffiliateStatusParams) WithContext

WithContext adds the context to the user get affiliate status params

func (*UserGetAffiliateStatusParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the user get affiliate status params

func (*UserGetAffiliateStatusParams) WithTimeout

WithTimeout adds the timeout to the user get affiliate status params

func (*UserGetAffiliateStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserGetAffiliateStatusReader

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

UserGetAffiliateStatusReader is a Reader for the UserGetAffiliateStatus structure.

func (*UserGetAffiliateStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserGetCommissionOK

type UserGetCommissionOK struct {
	Payload []*models.UserCommission
}

UserGetCommissionOK handles this case with default header values.

Request was successful

func NewUserGetCommissionOK

func NewUserGetCommissionOK() *UserGetCommissionOK

NewUserGetCommissionOK creates a UserGetCommissionOK with default headers values

func (*UserGetCommissionOK) Error

func (o *UserGetCommissionOK) Error() string

type UserGetCommissionParams

type UserGetCommissionParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UserGetCommissionParams contains all the parameters to send to the API endpoint for the user get commission operation typically these are written to a http.Request

func NewUserGetCommissionParams

func NewUserGetCommissionParams() *UserGetCommissionParams

NewUserGetCommissionParams creates a new UserGetCommissionParams object with the default values initialized.

func NewUserGetCommissionParamsWithContext

func NewUserGetCommissionParamsWithContext(ctx context.Context) *UserGetCommissionParams

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

func NewUserGetCommissionParamsWithHTTPClient

func NewUserGetCommissionParamsWithHTTPClient(client *http.Client) *UserGetCommissionParams

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

func NewUserGetCommissionParamsWithTimeout

func NewUserGetCommissionParamsWithTimeout(timeout time.Duration) *UserGetCommissionParams

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

func (*UserGetCommissionParams) SetContext

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

SetContext adds the context to the user get commission params

func (*UserGetCommissionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user get commission params

func (*UserGetCommissionParams) SetTimeout

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

SetTimeout adds the timeout to the user get commission params

func (*UserGetCommissionParams) WithContext

WithContext adds the context to the user get commission params

func (*UserGetCommissionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user get commission params

func (*UserGetCommissionParams) WithTimeout

WithTimeout adds the timeout to the user get commission params

func (*UserGetCommissionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserGetCommissionReader

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

UserGetCommissionReader is a Reader for the UserGetCommission structure.

func (*UserGetCommissionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserGetDepositAddressOK

type UserGetDepositAddressOK struct {
	Payload string
}

UserGetDepositAddressOK handles this case with default header values.

Request was successful

func NewUserGetDepositAddressOK

func NewUserGetDepositAddressOK() *UserGetDepositAddressOK

NewUserGetDepositAddressOK creates a UserGetDepositAddressOK with default headers values

func (*UserGetDepositAddressOK) Error

func (o *UserGetDepositAddressOK) Error() string

type UserGetDepositAddressParams

type UserGetDepositAddressParams struct {

	/*Currency*/
	Currency *string

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

UserGetDepositAddressParams contains all the parameters to send to the API endpoint for the user get deposit address operation typically these are written to a http.Request

func NewUserGetDepositAddressParams

func NewUserGetDepositAddressParams() *UserGetDepositAddressParams

NewUserGetDepositAddressParams creates a new UserGetDepositAddressParams object with the default values initialized.

func NewUserGetDepositAddressParamsWithContext

func NewUserGetDepositAddressParamsWithContext(ctx context.Context) *UserGetDepositAddressParams

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

func NewUserGetDepositAddressParamsWithHTTPClient

func NewUserGetDepositAddressParamsWithHTTPClient(client *http.Client) *UserGetDepositAddressParams

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

func NewUserGetDepositAddressParamsWithTimeout

func NewUserGetDepositAddressParamsWithTimeout(timeout time.Duration) *UserGetDepositAddressParams

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

func (*UserGetDepositAddressParams) SetContext

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

SetContext adds the context to the user get deposit address params

func (*UserGetDepositAddressParams) SetCurrency

func (o *UserGetDepositAddressParams) SetCurrency(currency *string)

SetCurrency adds the currency to the user get deposit address params

func (*UserGetDepositAddressParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user get deposit address params

func (*UserGetDepositAddressParams) SetTimeout

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

SetTimeout adds the timeout to the user get deposit address params

func (*UserGetDepositAddressParams) WithContext

WithContext adds the context to the user get deposit address params

func (*UserGetDepositAddressParams) WithCurrency

WithCurrency adds the currency to the user get deposit address params

func (*UserGetDepositAddressParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the user get deposit address params

func (*UserGetDepositAddressParams) WithTimeout

WithTimeout adds the timeout to the user get deposit address params

func (*UserGetDepositAddressParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserGetDepositAddressReader

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

UserGetDepositAddressReader is a Reader for the UserGetDepositAddress structure.

func (*UserGetDepositAddressReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserGetMarginOK

type UserGetMarginOK struct {
	Payload *models.Margin
}

UserGetMarginOK handles this case with default header values.

Request was successful

func NewUserGetMarginOK

func NewUserGetMarginOK() *UserGetMarginOK

NewUserGetMarginOK creates a UserGetMarginOK with default headers values

func (*UserGetMarginOK) Error

func (o *UserGetMarginOK) Error() string

type UserGetMarginParams

type UserGetMarginParams struct {

	/*Currency*/
	Currency *string

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

UserGetMarginParams contains all the parameters to send to the API endpoint for the user get margin operation typically these are written to a http.Request

func NewUserGetMarginParams

func NewUserGetMarginParams() *UserGetMarginParams

NewUserGetMarginParams creates a new UserGetMarginParams object with the default values initialized.

func NewUserGetMarginParamsWithContext

func NewUserGetMarginParamsWithContext(ctx context.Context) *UserGetMarginParams

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

func NewUserGetMarginParamsWithHTTPClient

func NewUserGetMarginParamsWithHTTPClient(client *http.Client) *UserGetMarginParams

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

func NewUserGetMarginParamsWithTimeout

func NewUserGetMarginParamsWithTimeout(timeout time.Duration) *UserGetMarginParams

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

func (*UserGetMarginParams) SetContext

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

SetContext adds the context to the user get margin params

func (*UserGetMarginParams) SetCurrency

func (o *UserGetMarginParams) SetCurrency(currency *string)

SetCurrency adds the currency to the user get margin params

func (*UserGetMarginParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user get margin params

func (*UserGetMarginParams) SetTimeout

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

SetTimeout adds the timeout to the user get margin params

func (*UserGetMarginParams) WithContext

WithContext adds the context to the user get margin params

func (*UserGetMarginParams) WithCurrency

func (o *UserGetMarginParams) WithCurrency(currency *string) *UserGetMarginParams

WithCurrency adds the currency to the user get margin params

func (*UserGetMarginParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user get margin params

func (*UserGetMarginParams) WithTimeout

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

WithTimeout adds the timeout to the user get margin params

func (*UserGetMarginParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserGetMarginReader

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

UserGetMarginReader is a Reader for the UserGetMargin structure.

func (*UserGetMarginReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserGetOK

type UserGetOK struct {
	Payload *models.User
}

UserGetOK handles this case with default header values.

Request was successful

func NewUserGetOK

func NewUserGetOK() *UserGetOK

NewUserGetOK creates a UserGetOK with default headers values

func (*UserGetOK) Error

func (o *UserGetOK) Error() string

type UserGetParams

type UserGetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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

func NewUserGetParams

func NewUserGetParams() *UserGetParams

NewUserGetParams creates a new UserGetParams object with the default values initialized.

func NewUserGetParamsWithContext

func NewUserGetParamsWithContext(ctx context.Context) *UserGetParams

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

func NewUserGetParamsWithHTTPClient

func NewUserGetParamsWithHTTPClient(client *http.Client) *UserGetParams

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

func NewUserGetParamsWithTimeout

func NewUserGetParamsWithTimeout(timeout time.Duration) *UserGetParams

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

func (*UserGetParams) SetContext

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

SetContext adds the context to the user get params

func (*UserGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user get params

func (*UserGetParams) SetTimeout

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

SetTimeout adds the timeout to the user get params

func (*UserGetParams) WithContext

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

WithContext adds the context to the user get params

func (*UserGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user get params

func (*UserGetParams) WithTimeout

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

WithTimeout adds the timeout to the user get params

func (*UserGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserGetReader

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

UserGetReader is a Reader for the UserGet structure.

func (*UserGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserGetWalletHistoryOK

type UserGetWalletHistoryOK struct {
	Payload []*models.Transaction
}

UserGetWalletHistoryOK handles this case with default header values.

Request was successful

func NewUserGetWalletHistoryOK

func NewUserGetWalletHistoryOK() *UserGetWalletHistoryOK

NewUserGetWalletHistoryOK creates a UserGetWalletHistoryOK with default headers values

func (*UserGetWalletHistoryOK) Error

func (o *UserGetWalletHistoryOK) Error() string

type UserGetWalletHistoryParams

type UserGetWalletHistoryParams struct {

	/*Currency*/
	Currency *string

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

UserGetWalletHistoryParams contains all the parameters to send to the API endpoint for the user get wallet history operation typically these are written to a http.Request

func NewUserGetWalletHistoryParams

func NewUserGetWalletHistoryParams() *UserGetWalletHistoryParams

NewUserGetWalletHistoryParams creates a new UserGetWalletHistoryParams object with the default values initialized.

func NewUserGetWalletHistoryParamsWithContext

func NewUserGetWalletHistoryParamsWithContext(ctx context.Context) *UserGetWalletHistoryParams

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

func NewUserGetWalletHistoryParamsWithHTTPClient

func NewUserGetWalletHistoryParamsWithHTTPClient(client *http.Client) *UserGetWalletHistoryParams

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

func NewUserGetWalletHistoryParamsWithTimeout

func NewUserGetWalletHistoryParamsWithTimeout(timeout time.Duration) *UserGetWalletHistoryParams

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

func (*UserGetWalletHistoryParams) SetContext

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

SetContext adds the context to the user get wallet history params

func (*UserGetWalletHistoryParams) SetCurrency

func (o *UserGetWalletHistoryParams) SetCurrency(currency *string)

SetCurrency adds the currency to the user get wallet history params

func (*UserGetWalletHistoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user get wallet history params

func (*UserGetWalletHistoryParams) SetTimeout

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

SetTimeout adds the timeout to the user get wallet history params

func (*UserGetWalletHistoryParams) WithContext

WithContext adds the context to the user get wallet history params

func (*UserGetWalletHistoryParams) WithCurrency

func (o *UserGetWalletHistoryParams) WithCurrency(currency *string) *UserGetWalletHistoryParams

WithCurrency adds the currency to the user get wallet history params

func (*UserGetWalletHistoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the user get wallet history params

func (*UserGetWalletHistoryParams) WithTimeout

WithTimeout adds the timeout to the user get wallet history params

func (*UserGetWalletHistoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserGetWalletHistoryReader

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

UserGetWalletHistoryReader is a Reader for the UserGetWalletHistory structure.

func (*UserGetWalletHistoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserGetWalletOK

type UserGetWalletOK struct {
	Payload *models.Wallet
}

UserGetWalletOK handles this case with default header values.

Request was successful

func NewUserGetWalletOK

func NewUserGetWalletOK() *UserGetWalletOK

NewUserGetWalletOK creates a UserGetWalletOK with default headers values

func (*UserGetWalletOK) Error

func (o *UserGetWalletOK) Error() string

type UserGetWalletParams

type UserGetWalletParams struct {

	/*Currency*/
	Currency *string

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

UserGetWalletParams contains all the parameters to send to the API endpoint for the user get wallet operation typically these are written to a http.Request

func NewUserGetWalletParams

func NewUserGetWalletParams() *UserGetWalletParams

NewUserGetWalletParams creates a new UserGetWalletParams object with the default values initialized.

func NewUserGetWalletParamsWithContext

func NewUserGetWalletParamsWithContext(ctx context.Context) *UserGetWalletParams

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

func NewUserGetWalletParamsWithHTTPClient

func NewUserGetWalletParamsWithHTTPClient(client *http.Client) *UserGetWalletParams

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

func NewUserGetWalletParamsWithTimeout

func NewUserGetWalletParamsWithTimeout(timeout time.Duration) *UserGetWalletParams

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

func (*UserGetWalletParams) SetContext

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

SetContext adds the context to the user get wallet params

func (*UserGetWalletParams) SetCurrency

func (o *UserGetWalletParams) SetCurrency(currency *string)

SetCurrency adds the currency to the user get wallet params

func (*UserGetWalletParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user get wallet params

func (*UserGetWalletParams) SetTimeout

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

SetTimeout adds the timeout to the user get wallet params

func (*UserGetWalletParams) WithContext

WithContext adds the context to the user get wallet params

func (*UserGetWalletParams) WithCurrency

func (o *UserGetWalletParams) WithCurrency(currency *string) *UserGetWalletParams

WithCurrency adds the currency to the user get wallet params

func (*UserGetWalletParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user get wallet params

func (*UserGetWalletParams) WithTimeout

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

WithTimeout adds the timeout to the user get wallet params

func (*UserGetWalletParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserGetWalletReader

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

UserGetWalletReader is a Reader for the UserGetWallet structure.

func (*UserGetWalletReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserGetWalletSummaryOK

type UserGetWalletSummaryOK struct {
	Payload []*models.Transaction
}

UserGetWalletSummaryOK handles this case with default header values.

Request was successful

func NewUserGetWalletSummaryOK

func NewUserGetWalletSummaryOK() *UserGetWalletSummaryOK

NewUserGetWalletSummaryOK creates a UserGetWalletSummaryOK with default headers values

func (*UserGetWalletSummaryOK) Error

func (o *UserGetWalletSummaryOK) Error() string

type UserGetWalletSummaryParams

type UserGetWalletSummaryParams struct {

	/*Currency*/
	Currency *string

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

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

func NewUserGetWalletSummaryParams

func NewUserGetWalletSummaryParams() *UserGetWalletSummaryParams

NewUserGetWalletSummaryParams creates a new UserGetWalletSummaryParams object with the default values initialized.

func NewUserGetWalletSummaryParamsWithContext

func NewUserGetWalletSummaryParamsWithContext(ctx context.Context) *UserGetWalletSummaryParams

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

func NewUserGetWalletSummaryParamsWithHTTPClient

func NewUserGetWalletSummaryParamsWithHTTPClient(client *http.Client) *UserGetWalletSummaryParams

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

func NewUserGetWalletSummaryParamsWithTimeout

func NewUserGetWalletSummaryParamsWithTimeout(timeout time.Duration) *UserGetWalletSummaryParams

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

func (*UserGetWalletSummaryParams) SetContext

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

SetContext adds the context to the user get wallet summary params

func (*UserGetWalletSummaryParams) SetCurrency

func (o *UserGetWalletSummaryParams) SetCurrency(currency *string)

SetCurrency adds the currency to the user get wallet summary params

func (*UserGetWalletSummaryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user get wallet summary params

func (*UserGetWalletSummaryParams) SetTimeout

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

SetTimeout adds the timeout to the user get wallet summary params

func (*UserGetWalletSummaryParams) WithContext

WithContext adds the context to the user get wallet summary params

func (*UserGetWalletSummaryParams) WithCurrency

func (o *UserGetWalletSummaryParams) WithCurrency(currency *string) *UserGetWalletSummaryParams

WithCurrency adds the currency to the user get wallet summary params

func (*UserGetWalletSummaryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the user get wallet summary params

func (*UserGetWalletSummaryParams) WithTimeout

WithTimeout adds the timeout to the user get wallet summary params

func (*UserGetWalletSummaryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserGetWalletSummaryReader

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

UserGetWalletSummaryReader is a Reader for the UserGetWalletSummary structure.

func (*UserGetWalletSummaryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserLogoutAllOK

type UserLogoutAllOK struct {
	Payload float64
}

UserLogoutAllOK handles this case with default header values.

Request was successful

func NewUserLogoutAllOK

func NewUserLogoutAllOK() *UserLogoutAllOK

NewUserLogoutAllOK creates a UserLogoutAllOK with default headers values

func (*UserLogoutAllOK) Error

func (o *UserLogoutAllOK) Error() string

type UserLogoutAllParams

type UserLogoutAllParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UserLogoutAllParams contains all the parameters to send to the API endpoint for the user logout all operation typically these are written to a http.Request

func NewUserLogoutAllParams

func NewUserLogoutAllParams() *UserLogoutAllParams

NewUserLogoutAllParams creates a new UserLogoutAllParams object with the default values initialized.

func NewUserLogoutAllParamsWithContext

func NewUserLogoutAllParamsWithContext(ctx context.Context) *UserLogoutAllParams

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

func NewUserLogoutAllParamsWithHTTPClient

func NewUserLogoutAllParamsWithHTTPClient(client *http.Client) *UserLogoutAllParams

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

func NewUserLogoutAllParamsWithTimeout

func NewUserLogoutAllParamsWithTimeout(timeout time.Duration) *UserLogoutAllParams

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

func (*UserLogoutAllParams) SetContext

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

SetContext adds the context to the user logout all params

func (*UserLogoutAllParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user logout all params

func (*UserLogoutAllParams) SetTimeout

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

SetTimeout adds the timeout to the user logout all params

func (*UserLogoutAllParams) WithContext

WithContext adds the context to the user logout all params

func (*UserLogoutAllParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user logout all params

func (*UserLogoutAllParams) WithTimeout

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

WithTimeout adds the timeout to the user logout all params

func (*UserLogoutAllParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserLogoutAllReader

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

UserLogoutAllReader is a Reader for the UserLogoutAll structure.

func (*UserLogoutAllReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserLogoutOK

type UserLogoutOK struct {
	Payload interface{}
}

UserLogoutOK handles this case with default header values.

Request was successful

func NewUserLogoutOK

func NewUserLogoutOK() *UserLogoutOK

NewUserLogoutOK creates a UserLogoutOK with default headers values

func (*UserLogoutOK) Error

func (o *UserLogoutOK) Error() string

type UserLogoutParams

type UserLogoutParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UserLogoutParams contains all the parameters to send to the API endpoint for the user logout operation typically these are written to a http.Request

func NewUserLogoutParams

func NewUserLogoutParams() *UserLogoutParams

NewUserLogoutParams creates a new UserLogoutParams object with the default values initialized.

func NewUserLogoutParamsWithContext

func NewUserLogoutParamsWithContext(ctx context.Context) *UserLogoutParams

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

func NewUserLogoutParamsWithHTTPClient

func NewUserLogoutParamsWithHTTPClient(client *http.Client) *UserLogoutParams

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

func NewUserLogoutParamsWithTimeout

func NewUserLogoutParamsWithTimeout(timeout time.Duration) *UserLogoutParams

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

func (*UserLogoutParams) SetContext

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

SetContext adds the context to the user logout params

func (*UserLogoutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user logout params

func (*UserLogoutParams) SetTimeout

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

SetTimeout adds the timeout to the user logout params

func (*UserLogoutParams) WithContext

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

WithContext adds the context to the user logout params

func (*UserLogoutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user logout params

func (*UserLogoutParams) WithTimeout

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

WithTimeout adds the timeout to the user logout params

func (*UserLogoutParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserLogoutReader

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

UserLogoutReader is a Reader for the UserLogout structure.

func (*UserLogoutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserMinWithdrawalFeeOK

type UserMinWithdrawalFeeOK struct {
	Payload interface{}
}

UserMinWithdrawalFeeOK handles this case with default header values.

Request was successful

func NewUserMinWithdrawalFeeOK

func NewUserMinWithdrawalFeeOK() *UserMinWithdrawalFeeOK

NewUserMinWithdrawalFeeOK creates a UserMinWithdrawalFeeOK with default headers values

func (*UserMinWithdrawalFeeOK) Error

func (o *UserMinWithdrawalFeeOK) Error() string

type UserMinWithdrawalFeeParams

type UserMinWithdrawalFeeParams struct {

	/*Currency*/
	Currency *string

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

UserMinWithdrawalFeeParams contains all the parameters to send to the API endpoint for the user min withdrawal fee operation typically these are written to a http.Request

func NewUserMinWithdrawalFeeParams

func NewUserMinWithdrawalFeeParams() *UserMinWithdrawalFeeParams

NewUserMinWithdrawalFeeParams creates a new UserMinWithdrawalFeeParams object with the default values initialized.

func NewUserMinWithdrawalFeeParamsWithContext

func NewUserMinWithdrawalFeeParamsWithContext(ctx context.Context) *UserMinWithdrawalFeeParams

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

func NewUserMinWithdrawalFeeParamsWithHTTPClient

func NewUserMinWithdrawalFeeParamsWithHTTPClient(client *http.Client) *UserMinWithdrawalFeeParams

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

func NewUserMinWithdrawalFeeParamsWithTimeout

func NewUserMinWithdrawalFeeParamsWithTimeout(timeout time.Duration) *UserMinWithdrawalFeeParams

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

func (*UserMinWithdrawalFeeParams) SetContext

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

SetContext adds the context to the user min withdrawal fee params

func (*UserMinWithdrawalFeeParams) SetCurrency

func (o *UserMinWithdrawalFeeParams) SetCurrency(currency *string)

SetCurrency adds the currency to the user min withdrawal fee params

func (*UserMinWithdrawalFeeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user min withdrawal fee params

func (*UserMinWithdrawalFeeParams) SetTimeout

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

SetTimeout adds the timeout to the user min withdrawal fee params

func (*UserMinWithdrawalFeeParams) WithContext

WithContext adds the context to the user min withdrawal fee params

func (*UserMinWithdrawalFeeParams) WithCurrency

func (o *UserMinWithdrawalFeeParams) WithCurrency(currency *string) *UserMinWithdrawalFeeParams

WithCurrency adds the currency to the user min withdrawal fee params

func (*UserMinWithdrawalFeeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the user min withdrawal fee params

func (*UserMinWithdrawalFeeParams) WithTimeout

WithTimeout adds the timeout to the user min withdrawal fee params

func (*UserMinWithdrawalFeeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserMinWithdrawalFeeReader

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

UserMinWithdrawalFeeReader is a Reader for the UserMinWithdrawalFee structure.

func (*UserMinWithdrawalFeeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserRequestEnableTFAOK

type UserRequestEnableTFAOK struct {
	Payload bool
}

UserRequestEnableTFAOK handles this case with default header values.

Request was successful

func NewUserRequestEnableTFAOK

func NewUserRequestEnableTFAOK() *UserRequestEnableTFAOK

NewUserRequestEnableTFAOK creates a UserRequestEnableTFAOK with default headers values

func (*UserRequestEnableTFAOK) Error

func (o *UserRequestEnableTFAOK) Error() string

type UserRequestEnableTFAParams

type UserRequestEnableTFAParams struct {

	/*Type
	  Two-factor auth type. Supported types: 'GA' (Google Authenticator)

	*/
	Type *string

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

UserRequestEnableTFAParams contains all the parameters to send to the API endpoint for the user request enable t f a operation typically these are written to a http.Request

func NewUserRequestEnableTFAParams

func NewUserRequestEnableTFAParams() *UserRequestEnableTFAParams

NewUserRequestEnableTFAParams creates a new UserRequestEnableTFAParams object with the default values initialized.

func NewUserRequestEnableTFAParamsWithContext

func NewUserRequestEnableTFAParamsWithContext(ctx context.Context) *UserRequestEnableTFAParams

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

func NewUserRequestEnableTFAParamsWithHTTPClient

func NewUserRequestEnableTFAParamsWithHTTPClient(client *http.Client) *UserRequestEnableTFAParams

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

func NewUserRequestEnableTFAParamsWithTimeout

func NewUserRequestEnableTFAParamsWithTimeout(timeout time.Duration) *UserRequestEnableTFAParams

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

func (*UserRequestEnableTFAParams) SetContext

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

SetContext adds the context to the user request enable t f a params

func (*UserRequestEnableTFAParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user request enable t f a params

func (*UserRequestEnableTFAParams) SetTimeout

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

SetTimeout adds the timeout to the user request enable t f a params

func (*UserRequestEnableTFAParams) SetType

func (o *UserRequestEnableTFAParams) SetType(typeVar *string)

SetType adds the type to the user request enable t f a params

func (*UserRequestEnableTFAParams) WithContext

WithContext adds the context to the user request enable t f a params

func (*UserRequestEnableTFAParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the user request enable t f a params

func (*UserRequestEnableTFAParams) WithTimeout

WithTimeout adds the timeout to the user request enable t f a params

func (*UserRequestEnableTFAParams) WithType

WithType adds the typeVar to the user request enable t f a params

func (*UserRequestEnableTFAParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserRequestEnableTFAReader

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

UserRequestEnableTFAReader is a Reader for the UserRequestEnableTFA structure.

func (*UserRequestEnableTFAReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserRequestWithdrawalOK

type UserRequestWithdrawalOK struct {
	Payload *models.Transaction
}

UserRequestWithdrawalOK handles this case with default header values.

Request was successful

func NewUserRequestWithdrawalOK

func NewUserRequestWithdrawalOK() *UserRequestWithdrawalOK

NewUserRequestWithdrawalOK creates a UserRequestWithdrawalOK with default headers values

func (*UserRequestWithdrawalOK) Error

func (o *UserRequestWithdrawalOK) Error() string

type UserRequestWithdrawalParams

type UserRequestWithdrawalParams struct {

	/*Address
	  Destination Address.

	*/
	Address string
	/*Amount
	  Amount of withdrawal currency.

	*/
	Amount int64
	/*Currency
	  Currency you're withdrawing. Options: `XBt`

	*/
	Currency string
	/*Fee
	  Network fee for Bitcoin withdrawals. If not specified, a default value will be calculated based on Bitcoin network conditions. You will have a chance to confirm this via email.

	*/
	Fee *float64
	/*OtpToken
	  2FA token. Required if 2FA is enabled on your account.

	*/
	OtpToken *string

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

UserRequestWithdrawalParams contains all the parameters to send to the API endpoint for the user request withdrawal operation typically these are written to a http.Request

func NewUserRequestWithdrawalParams

func NewUserRequestWithdrawalParams() *UserRequestWithdrawalParams

NewUserRequestWithdrawalParams creates a new UserRequestWithdrawalParams object with the default values initialized.

func NewUserRequestWithdrawalParamsWithContext

func NewUserRequestWithdrawalParamsWithContext(ctx context.Context) *UserRequestWithdrawalParams

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

func NewUserRequestWithdrawalParamsWithHTTPClient

func NewUserRequestWithdrawalParamsWithHTTPClient(client *http.Client) *UserRequestWithdrawalParams

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

func NewUserRequestWithdrawalParamsWithTimeout

func NewUserRequestWithdrawalParamsWithTimeout(timeout time.Duration) *UserRequestWithdrawalParams

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

func (*UserRequestWithdrawalParams) SetAddress

func (o *UserRequestWithdrawalParams) SetAddress(address string)

SetAddress adds the address to the user request withdrawal params

func (*UserRequestWithdrawalParams) SetAmount

func (o *UserRequestWithdrawalParams) SetAmount(amount int64)

SetAmount adds the amount to the user request withdrawal params

func (*UserRequestWithdrawalParams) SetContext

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

SetContext adds the context to the user request withdrawal params

func (*UserRequestWithdrawalParams) SetCurrency

func (o *UserRequestWithdrawalParams) SetCurrency(currency string)

SetCurrency adds the currency to the user request withdrawal params

func (*UserRequestWithdrawalParams) SetFee

func (o *UserRequestWithdrawalParams) SetFee(fee *float64)

SetFee adds the fee to the user request withdrawal params

func (*UserRequestWithdrawalParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user request withdrawal params

func (*UserRequestWithdrawalParams) SetOtpToken

func (o *UserRequestWithdrawalParams) SetOtpToken(otpToken *string)

SetOtpToken adds the otpToken to the user request withdrawal params

func (*UserRequestWithdrawalParams) SetTimeout

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

SetTimeout adds the timeout to the user request withdrawal params

func (*UserRequestWithdrawalParams) WithAddress

WithAddress adds the address to the user request withdrawal params

func (*UserRequestWithdrawalParams) WithAmount

WithAmount adds the amount to the user request withdrawal params

func (*UserRequestWithdrawalParams) WithContext

WithContext adds the context to the user request withdrawal params

func (*UserRequestWithdrawalParams) WithCurrency

WithCurrency adds the currency to the user request withdrawal params

func (*UserRequestWithdrawalParams) WithFee

WithFee adds the fee to the user request withdrawal params

func (*UserRequestWithdrawalParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the user request withdrawal params

func (*UserRequestWithdrawalParams) WithOtpToken

WithOtpToken adds the otpToken to the user request withdrawal params

func (*UserRequestWithdrawalParams) WithTimeout

WithTimeout adds the timeout to the user request withdrawal params

func (*UserRequestWithdrawalParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserRequestWithdrawalReader

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

UserRequestWithdrawalReader is a Reader for the UserRequestWithdrawal structure.

func (*UserRequestWithdrawalReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserSavePreferencesOK

type UserSavePreferencesOK struct {
	Payload *models.User
}

UserSavePreferencesOK handles this case with default header values.

Request was successful

func NewUserSavePreferencesOK

func NewUserSavePreferencesOK() *UserSavePreferencesOK

NewUserSavePreferencesOK creates a UserSavePreferencesOK with default headers values

func (*UserSavePreferencesOK) Error

func (o *UserSavePreferencesOK) Error() string

type UserSavePreferencesParams

type UserSavePreferencesParams struct {

	/*Overwrite
	  If true, will overwrite all existing preferences.

	*/
	Overwrite *bool
	/*Prefs*/
	Prefs string

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

UserSavePreferencesParams contains all the parameters to send to the API endpoint for the user save preferences operation typically these are written to a http.Request

func NewUserSavePreferencesParams

func NewUserSavePreferencesParams() *UserSavePreferencesParams

NewUserSavePreferencesParams creates a new UserSavePreferencesParams object with the default values initialized.

func NewUserSavePreferencesParamsWithContext

func NewUserSavePreferencesParamsWithContext(ctx context.Context) *UserSavePreferencesParams

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

func NewUserSavePreferencesParamsWithHTTPClient

func NewUserSavePreferencesParamsWithHTTPClient(client *http.Client) *UserSavePreferencesParams

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

func NewUserSavePreferencesParamsWithTimeout

func NewUserSavePreferencesParamsWithTimeout(timeout time.Duration) *UserSavePreferencesParams

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

func (*UserSavePreferencesParams) SetContext

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

SetContext adds the context to the user save preferences params

func (*UserSavePreferencesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user save preferences params

func (*UserSavePreferencesParams) SetOverwrite

func (o *UserSavePreferencesParams) SetOverwrite(overwrite *bool)

SetOverwrite adds the overwrite to the user save preferences params

func (*UserSavePreferencesParams) SetPrefs

func (o *UserSavePreferencesParams) SetPrefs(prefs string)

SetPrefs adds the prefs to the user save preferences params

func (*UserSavePreferencesParams) SetTimeout

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

SetTimeout adds the timeout to the user save preferences params

func (*UserSavePreferencesParams) WithContext

WithContext adds the context to the user save preferences params

func (*UserSavePreferencesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user save preferences params

func (*UserSavePreferencesParams) WithOverwrite

func (o *UserSavePreferencesParams) WithOverwrite(overwrite *bool) *UserSavePreferencesParams

WithOverwrite adds the overwrite to the user save preferences params

func (*UserSavePreferencesParams) WithPrefs

WithPrefs adds the prefs to the user save preferences params

func (*UserSavePreferencesParams) WithTimeout

WithTimeout adds the timeout to the user save preferences params

func (*UserSavePreferencesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserSavePreferencesReader

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

UserSavePreferencesReader is a Reader for the UserSavePreferences structure.

func (*UserSavePreferencesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserUpdateOK

type UserUpdateOK struct {
	Payload *models.User
}

UserUpdateOK handles this case with default header values.

Request was successful

func NewUserUpdateOK

func NewUserUpdateOK() *UserUpdateOK

NewUserUpdateOK creates a UserUpdateOK with default headers values

func (*UserUpdateOK) Error

func (o *UserUpdateOK) Error() string

type UserUpdateParams

type UserUpdateParams struct {

	/*Country
	  Country of residence.

	*/
	Country *string
	/*Firstname*/
	Firstname *string
	/*Lastname*/
	Lastname *string
	/*NewPassword*/
	NewPassword *string
	/*NewPasswordConfirm*/
	NewPasswordConfirm *string
	/*OldPassword*/
	OldPassword *string
	/*PgpPubKey
	  PGP Public Key. If specified, automated emails will be sentwith this key.

	*/
	PgpPubKey *string
	/*Username
	  Username can only be set once. To reset, email support.

	*/
	Username *string

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

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

func NewUserUpdateParams

func NewUserUpdateParams() *UserUpdateParams

NewUserUpdateParams creates a new UserUpdateParams object with the default values initialized.

func NewUserUpdateParamsWithContext

func NewUserUpdateParamsWithContext(ctx context.Context) *UserUpdateParams

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

func NewUserUpdateParamsWithHTTPClient

func NewUserUpdateParamsWithHTTPClient(client *http.Client) *UserUpdateParams

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

func NewUserUpdateParamsWithTimeout

func NewUserUpdateParamsWithTimeout(timeout time.Duration) *UserUpdateParams

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

func (*UserUpdateParams) SetContext

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

SetContext adds the context to the user update params

func (*UserUpdateParams) SetCountry

func (o *UserUpdateParams) SetCountry(country *string)

SetCountry adds the country to the user update params

func (*UserUpdateParams) SetFirstname

func (o *UserUpdateParams) SetFirstname(firstname *string)

SetFirstname adds the firstname to the user update params

func (*UserUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user update params

func (*UserUpdateParams) SetLastname

func (o *UserUpdateParams) SetLastname(lastname *string)

SetLastname adds the lastname to the user update params

func (*UserUpdateParams) SetNewPassword

func (o *UserUpdateParams) SetNewPassword(newPassword *string)

SetNewPassword adds the newPassword to the user update params

func (*UserUpdateParams) SetNewPasswordConfirm

func (o *UserUpdateParams) SetNewPasswordConfirm(newPasswordConfirm *string)

SetNewPasswordConfirm adds the newPasswordConfirm to the user update params

func (*UserUpdateParams) SetOldPassword

func (o *UserUpdateParams) SetOldPassword(oldPassword *string)

SetOldPassword adds the oldPassword to the user update params

func (*UserUpdateParams) SetPgpPubKey

func (o *UserUpdateParams) SetPgpPubKey(pgpPubKey *string)

SetPgpPubKey adds the pgpPubKey to the user update params

func (*UserUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the user update params

func (*UserUpdateParams) SetUsername

func (o *UserUpdateParams) SetUsername(username *string)

SetUsername adds the username to the user update params

func (*UserUpdateParams) WithContext

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

WithContext adds the context to the user update params

func (*UserUpdateParams) WithCountry

func (o *UserUpdateParams) WithCountry(country *string) *UserUpdateParams

WithCountry adds the country to the user update params

func (*UserUpdateParams) WithFirstname

func (o *UserUpdateParams) WithFirstname(firstname *string) *UserUpdateParams

WithFirstname adds the firstname to the user update params

func (*UserUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user update params

func (*UserUpdateParams) WithLastname

func (o *UserUpdateParams) WithLastname(lastname *string) *UserUpdateParams

WithLastname adds the lastname to the user update params

func (*UserUpdateParams) WithNewPassword

func (o *UserUpdateParams) WithNewPassword(newPassword *string) *UserUpdateParams

WithNewPassword adds the newPassword to the user update params

func (*UserUpdateParams) WithNewPasswordConfirm

func (o *UserUpdateParams) WithNewPasswordConfirm(newPasswordConfirm *string) *UserUpdateParams

WithNewPasswordConfirm adds the newPasswordConfirm to the user update params

func (*UserUpdateParams) WithOldPassword

func (o *UserUpdateParams) WithOldPassword(oldPassword *string) *UserUpdateParams

WithOldPassword adds the oldPassword to the user update params

func (*UserUpdateParams) WithPgpPubKey

func (o *UserUpdateParams) WithPgpPubKey(pgpPubKey *string) *UserUpdateParams

WithPgpPubKey adds the pgpPubKey to the user update params

func (*UserUpdateParams) WithTimeout

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

WithTimeout adds the timeout to the user update params

func (*UserUpdateParams) WithUsername

func (o *UserUpdateParams) WithUsername(username *string) *UserUpdateParams

WithUsername adds the username to the user update params

func (*UserUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserUpdateReader

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

UserUpdateReader is a Reader for the UserUpdate structure.

func (*UserUpdateReader) ReadResponse

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