qiwi

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckToken

func CheckToken(token string) (walletID uint64, blocked bool, balance float64, err error)

CheckToken simple token checker

func DetectFee added in v0.0.2

func DetectFee(token string, to string, amount float64) (fee float64, err error)

DetectFee detet provider and after fee

func DetectProvider added in v0.0.2

func DetectProvider(token string, to string) (id int, err error)

DetectProvider detect provider

func Fee added in v0.0.2

func Fee(token string, providerID int, to string, amount float64) (fee float64, err error)

Fee returns fee of payment

func GetLastTxns

func GetLastTxns(token string, walletID uint64) (res []models.Txn, err error)

GetLastTxns call qiwi api and returns last 50 txns

func GetStat

func GetStat(token string, walletID uint64) (incoming, outgoing float64, err error)

GetStat return stat of current month

func Transfer

func Transfer(token, to string, amount float64, comments ...string) (transactionID uint, err error)

Transfer transfer money

func TransferFromGroup added in v0.0.2

func TransferFromGroup(groupID, userID uint, to string, restAmount float64) (errs []error)

TransferFromGroup transfer from group wallets to target

func TransferWithProvider added in v0.0.2

func TransferWithProvider(providerID int, token, to string, amount float64, comments ...string) (transactionID uint, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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