Documentation
¶
Index ¶
- Variables
- type Amount
- type BPAY
- type Bill
- type Bills
- type Bit2Bill
- func (*Bit2Bill) Name() string
- func (bb *Bit2Bill) PayBPAY(cb *CryptoBill, bpay *PayBPAY) (*PayResult, error)
- func (bb *Bit2Bill) PayEFT(cb *CryptoBill, eft *PayEFT) (*PayResult, error)
- func (bb *Bit2Bill) Quote(cb *CryptoBill, info *FiatInfo) ([]QuoteResult, error)
- func (*Bit2Bill) ShortName() string
- func (*Bit2Bill) Website() string
- type Conversion
- type CryptoBill
- func (cb *CryptoBill) AddBill(entry *Bill) error
- func (cb *CryptoBill) GetBill(name string) (*Bill, error)
- func (cb *CryptoBill) ListBills() error
- func (cb *CryptoBill) LoadBills() (Bills, error)
- func (cb *CryptoBill) PayBPAY(bpay *PayBPAY) (*PayResult, error)
- func (cb *CryptoBill) PayEFT(eft *PayEFT) (*PayResult, error)
- func (cb *CryptoBill) Quote(info *FiatInfo) ([]QuoteResult, error)
- func (cb *CryptoBill) SaveBills(entries Bills) error
- type CurrenciesResponse
- type Currency
- type CurrencyDetail
- type EFT
- type ExchangeRateResponse
- type FiatInfo
- type LivingRoom
- func (lros *LivingRoom) Name() string
- func (lros *LivingRoom) PayBPAY(cb *CryptoBill, bpay *PayBPAY) (*PayResult, error)
- func (lros *LivingRoom) PayEFT(cb *CryptoBill, eft *PayEFT) (*PayResult, error)
- func (lros *LivingRoom) Quote(cb *CryptoBill, info *FiatInfo) ([]QuoteResult, error)
- func (lros *LivingRoom) ShortName() string
- func (lros *LivingRoom) Website() string
- type OrderBookResponse
- type PaidByCoins
- func (*PaidByCoins) Name() string
- func (pbc *PaidByCoins) PayBPAY(cb *CryptoBill, bpay *PayBPAY) (*PayResult, error)
- func (pbc *PaidByCoins) PayEFT(cb *CryptoBill, eft *PayEFT) (*PayResult, error)
- func (pbc *PaidByCoins) Quote(cb *CryptoBill, info *FiatInfo) ([]QuoteResult, error)
- func (*PaidByCoins) ShortName() string
- func (*PaidByCoins) Website() string
- type Pair
- type PayBPAY
- type PayEFT
- type PayInfo
- type PayInfoService
- type PayResult
- type QuoteResponse
- type QuoteResult
- type Service
- type TransactionAddRequest
- type TransactionAddResponse
- type VerifyEmailResponse
- type VerifyPinRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var Currencies = map[string]Currency{ "AUD": Currency("AUD"), "BTC": Currency("BTC"), "ETH": Currency("ETH"), "BCH": Currency("BCH"), "LTC": Currency("LTC"), "XRP": Currency("XRP"), "STEEM": Currency("STEEM"), "PIVX": Currency("PIVX"), "ZEC": Currency("ZEC"), "ETC": Currency("ETC"), "XMR": Currency("XMR"), "DASH": Currency("DASH"), "DOGE": Currency("DOGE"), "BTX": Currency("BTX"), "XEM": Currency("XEM"), "SBD": Currency("SBD"), "LIGHTNING": Currency("LIGHTNING"), "DCR": Currency("DCR"), "OMG": Currency("OMG"), }
View Source
var Services = []Service{ NewLivingRoom(), NewPaidByCoins(), NewBit2Bill(), }
Functions ¶
This section is empty.
Types ¶
type Bit2Bill ¶
type Bit2Bill struct{}
func (*Bit2Bill) PayBPAY ¶
func (bb *Bit2Bill) PayBPAY(cb *CryptoBill, bpay *PayBPAY) (*PayResult, error)
func (*Bit2Bill) PayEFT ¶
func (bb *Bit2Bill) PayEFT(cb *CryptoBill, eft *PayEFT) (*PayResult, error)
func (*Bit2Bill) Quote ¶
func (bb *Bit2Bill) Quote(cb *CryptoBill, info *FiatInfo) ([]QuoteResult, error)
type Conversion ¶
type Conversion struct {
Fiat, Crypto Amount
}
type CryptoBill ¶
func NewCryptoBill ¶
func NewCryptoBill() *CryptoBill
func (*CryptoBill) AddBill ¶
func (cb *CryptoBill) AddBill(entry *Bill) error
func (*CryptoBill) ListBills ¶
func (cb *CryptoBill) ListBills() error
func (*CryptoBill) LoadBills ¶
func (cb *CryptoBill) LoadBills() (Bills, error)
func (*CryptoBill) Quote ¶
func (cb *CryptoBill) Quote(info *FiatInfo) ([]QuoteResult, error)
func (*CryptoBill) SaveBills ¶
func (cb *CryptoBill) SaveBills(entries Bills) error
type CurrenciesResponse ¶
type CurrenciesResponse struct {
Message string
Items struct {
CurrencyDetails []CurrencyDetail
}
}
type CurrencyDetail ¶
type ExchangeRateResponse ¶
type LivingRoom ¶
type LivingRoom struct{}
func (*LivingRoom) Name ¶
func (lros *LivingRoom) Name() string
func (*LivingRoom) PayBPAY ¶
func (lros *LivingRoom) PayBPAY(cb *CryptoBill, bpay *PayBPAY) (*PayResult, error)
func (*LivingRoom) PayEFT ¶
func (lros *LivingRoom) PayEFT(cb *CryptoBill, eft *PayEFT) (*PayResult, error)
func (*LivingRoom) Quote ¶
func (lros *LivingRoom) Quote(cb *CryptoBill, info *FiatInfo) ([]QuoteResult, error)
func (*LivingRoom) ShortName ¶
func (lros *LivingRoom) ShortName() string
func (*LivingRoom) Website ¶
func (lros *LivingRoom) Website() string
type OrderBookResponse ¶
type OrderBookResponse struct {
HighestBuy float64
}
type PaidByCoins ¶
type PaidByCoins struct {
}
func (*PaidByCoins) Name ¶
func (*PaidByCoins) Name() string
func (*PaidByCoins) PayBPAY ¶
func (pbc *PaidByCoins) PayBPAY(cb *CryptoBill, bpay *PayBPAY) (*PayResult, error)
TODO: Refactor PayBPAY and PayEFT to reuse same code
func (*PaidByCoins) PayEFT ¶
func (pbc *PaidByCoins) PayEFT(cb *CryptoBill, eft *PayEFT) (*PayResult, error)
TODO: Refactor PayBPAY and PayEFT to reuse same code
func (*PaidByCoins) Quote ¶
func (pbc *PaidByCoins) Quote(cb *CryptoBill, info *FiatInfo) ([]QuoteResult, error)
func (*PaidByCoins) ShortName ¶
func (*PaidByCoins) ShortName() string
func (*PaidByCoins) Website ¶
func (*PaidByCoins) Website() string
type PayBPAY ¶
type PayBPAY struct {
PayInfoService
BPAY
}
type PayEFT ¶
type PayEFT struct {
PayInfoService
EFT
}
type PayInfoService ¶
type QuoteResponse ¶
type QuoteResult ¶
type QuoteResult struct {
Service Service
Pair Pair
Conversion Conversion
}
type Service ¶
type Service interface {
Name() string
ShortName() string
Website() string
Quote(cb *CryptoBill, info *FiatInfo) ([]QuoteResult, error)
PayBPAY(cb *CryptoBill, bpay *PayBPAY) (*PayResult, error)
PayEFT(cb *CryptoBill, eft *PayEFT) (*PayResult, error)
}
func NewBit2Bill ¶
func NewBit2Bill() Service
func NewLivingRoom ¶
func NewLivingRoom() Service
func NewPaidByCoins ¶
func NewPaidByCoins() Service
type TransactionAddRequest ¶
type TransactionAddRequest struct {
BillerCode int `json:",omitempty"`
BillerName string `json:",omitempty"`
RefCode string `json:",omitempty"`
BSB string `json:",omitempty"`
BSBName string `json:",omitempty"`
AccountNo string `json:",omitempty"`
AccountName string `json:",omitempty"`
Description string `json:",omitempty"`
EnteredAmount float64
CurrencyType string
EnteredCurrency string
CurrencyExchRate float64
TotalAmount string
Email string
HasEmail bool
SessionID string
AlternateAddress string
TransactionServiceAmount int
RTXVal float64
QuoteExchgID int
CurrencyRatePerAUD int
}
type TransactionAddResponse ¶
type VerifyEmailResponse ¶
type VerifyPinRequest ¶
type VerifyPinRequest struct {
Email, Pin string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.