banks

package
v0.0.0-...-30c84b1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BANKINPATH = "/v1/me/getdeposits"
View Source
const BANKOUTPATH = "/v1/me/getwithdrawals"
View Source
const BANKSPATH = "/v1/me/getbankaccounts"
View Source
const WITHDRAWPATH = "/v1/me/getdeposits"

Variables

This section is empty.

Functions

This section is empty.

Types

type Bank

type Bank struct {
	BankName      string `json:"bank_name"`
	BranchName    string `json:"branch_name"`
	AccountType   string `json:"account_type"`
	AccountNumber string `json:"account_number"`
	AccountName   string `json:"account_name"`
	ID            int    `json:"id"`
	IsVerified    bool   `json:"is_verified"`
}

type Bankin

type Bankin struct {
	OrderID      string             `json:"order_id"`
	CurrencyCode string             `json:"currency_code"`
	Status       string             `json:"status"`
	Amount       float64            `json:"amount"`
	EventDate    types.ExchangeTime `json:"event_date"`
	ID           int                `json:"id"`
}

type Bankout

type Bankout struct {
	OrderID       string             `json:"order_id"`
	CurrencyCode  string             `json:"currency_code"`
	Amount        float64            `json:"amount"`
	Address       string             `json:"address"`
	TxHash        string             `json:"tx_hash"`
	Fee           float64            `json:"fee"`
	AdditionalFee float64            `json:"additional_fee"`
	Status        string             `json:"status"`
	EventDate     types.ExchangeTime `json:"event_date"`
	ID            int                `json:"id"`
}

type RequestForBanks

type RequestForBanks struct {
}

func NewForBanks

func NewForBanks() *RequestForBanks

func (*RequestForBanks) Method

func (p *RequestForBanks) Method() string

func (*RequestForBanks) Path

func (p *RequestForBanks) Path() string

func (*RequestForBanks) Payload

func (p *RequestForBanks) Payload() []byte

func (*RequestForBanks) Query

func (p *RequestForBanks) Query() string

type RequestForIn

type RequestForIn struct {
	Pagination types.Pagination `json:",inline"`
}

func NewForIn

func NewForIn() *RequestForIn

func (*RequestForIn) Method

func (p *RequestForIn) Method() string

func (*RequestForIn) Path

func (p *RequestForIn) Path() string

func (*RequestForIn) Payload

func (p *RequestForIn) Payload() []byte

func (*RequestForIn) Query

func (p *RequestForIn) Query() string

func (*RequestForIn) SetPagination

func (p *RequestForIn) SetPagination(count, beforeID, afterID int) *RequestForIn

type RequestForOut

type RequestForOut struct {
	MessageID  string           `json:"message_id" url:"message_id"`
	Pagination types.Pagination `json:",inline"`
}

func NewForOut

func NewForOut(messageID string) *RequestForOut

func (*RequestForOut) Method

func (p *RequestForOut) Method() string

func (*RequestForOut) Path

func (p *RequestForOut) Path() string

func (*RequestForOut) Payload

func (p *RequestForOut) Payload() []byte

func (*RequestForOut) Query

func (p *RequestForOut) Query() string

func (*RequestForOut) SetPagination

func (p *RequestForOut) SetPagination(count, beforeID, afterID int) *RequestForOut

type RequestForWithdraw

type RequestForWithdraw struct {
	CurrencyCode  string `json:"currency_code"`
	Code          string `json:"code"`
	BankAccountID int    `json:"bank_account_id"`
	Amount        int    `json:"amount"`
}

func NewForWithdraw

func NewForWithdraw(twoFactorCode string, bankcode, amount int) *RequestForWithdraw

func (*RequestForWithdraw) Method

func (p *RequestForWithdraw) Method() string

func (*RequestForWithdraw) Path

func (p *RequestForWithdraw) Path() string

func (*RequestForWithdraw) Payload

func (p *RequestForWithdraw) Payload() []byte

func (*RequestForWithdraw) Query

func (p *RequestForWithdraw) Query() string

type ResponseForBanks

type ResponseForBanks []Bank

type ResponseForIn

type ResponseForIn []Bankin

type ResponseForOut

type ResponseForOut []Bankout

type ResponseForWithdraw

type ResponseForWithdraw struct {
	MessageID string `json:"message_id"`
}

Jump to

Keyboard shortcuts

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