Versions in this module Expand all Collapse all v1 v1.0.0 Oct 5, 2019 Changes in this version + const CurrencyEUR + const CurrencyKZT + const CurrencyUSD + const EndpointPayment + const QiwiProviderID + var ErrInsufficient = fmt.Errorf("Недостаточно средств") + type Account struct + Alias string + Balance SumNumeric + Currency int + FsAlias string + HasBalance bool + Title string + Type Type + type AuthInfo struct + BoundEmail string + IP string + LastLoginDate string + MobilePinInfo MobilePinInfo + PassInfo PassInfo + PersonId int64 + RegistrationDate string + type Balances struct + Accounts []Account + type Code struct + Name string + Value string + type Commission struct + Ranges []Range + type Content struct + Terms Terms + type ContractInfo struct + Blocked bool + ContractID int64 + CreationDate string + Features []interface{} + IdentificationInfo []IdentificationInfo + type DetermineOperatorParams struct + Phone string + type DeterminedProvider struct + Code Code + Message string + type ErrorResponse struct + Code string + Message string + type Fields struct + Account string + AccountType string + ExpDate string type History + Data []Transaction + NextTxnDate string + NextTxnId int64 + type HistoryParams struct + EndDate string + NextTxnDate string + NextTxnId int64 + Operation string + Rows int + Sources []string + StartDate string + type Identification struct + Required bool + type IdentificationInfo struct + BankAlias string + IdentificationLevel string + type Limit struct + Currency string + Max float64 + Min float64 + type MobilePinInfo struct + LastMobilePinChange string + MobilePinUsed bool + NextMobilePinChange string + type PassInfo struct + LastPassChange string + NextPassChange string + PasswordUsed bool + type Payment struct + Comment string + Fields Fields + ID string + Source string + Sum Sum + Terms int + Transaction TransactionMin + type PaymentMethod struct + AccountID string + Type string + type PaymentParams struct + Comment string + Fields Fields + ID string + PaymentMethod PaymentMethod + Source string + Sum Sum + type PaymentStatistic struct + IncomingTotal []Sum + OutgoingTotal []Sum + type PaymentStatisticParams struct + EndDate string + Operation string + Sources []string + StartDate string type Payments + func (c *Payments) DetectProviderIDByCardNumber(ctx context.Context, cardNumber string) (id int, err error) + func (c *Payments) Payment(ctx context.Context, psID int, amount float64, account string, ...) (res PaymentResponse, err error) + type PinInfo struct + PinUsed bool + type ProfileParams struct + AuthInfoEnabled bool + ContractInfoEnabled bool + UserInfoEnabled bool + type Provider struct + Description string + ID int64 + Keys string + LogoUrl string + LongName string + ShortName string + SiteUrl string + type PurchaseTotal struct + Total Sum + type Range struct + Bound float32 + Fixed float32 + Max float32 + Min float32 + Rate float32 + type SpecialRate struct + EnrollmentSum Sum + FundingSourceCommission Sum + ProviderId string + QwCommission Sum + WithdrawSum Sum + WithdrawToEnrollmentRate int + type SpecialRateParams struct + Account string + PaymentMethod PaymentMethod + PurchaseTotal PurchaseTotal + type StandardRate struct + Content Content + type State struct + Code string + type Sum struct + Amount float64 + Currency string + type SumNumeric struct + Amount float64 + Currency int + type Terms struct + Cashbacks []interface{} + Commission Commission + Description string + ID string + Identification Identification + Limits []Limit + Overpayment bool + RepeatablePayment bool + Type string + Underpayment bool + type Transaction struct + Account string + BankDocumentAvailable bool + BankDocumentReady bool + ChequeReady bool + Comment string + Commission SumNumeric + CurrencyRate float64 + Date string + Error string + ErrorCode int + Extras []interface{} + FavoritePaymentEnabled bool + PersonId int64 + Provider Provider + RegularPaymentEnabled bool + RepeatPaymentEnabled bool + Status string + StatusText string + Sum SumNumeric + Total SumNumeric + TrmTxnId string + TxnId int64 + Type string + type TransactionMin struct + ID string + State State + type Type struct + ID string + Title string + type UserInfo struct + DefaultPayCurrency int + DefaultPaySource int + Email string + FirstTxnID int64 + Language string + Operator string + PhoneHash string + PromoEnabled string + type UserProfile struct + AuthInfo AuthInfo + ContractInfo ContractInfo + UserInfo UserInfo v0 v0.0.4 Nov 21, 2017 Changes in this version + var ErrNotFound = fmt.Errorf(...) + var ErrRateLimitReached = fmt.Errorf(...) + var ErrSyntaxError = fmt.Errorf(...) + var ErrTokenInvalid = fmt.Errorf(...) v0.0.3 Nov 12, 2017 Changes in this version type PaymentRequest + Comment string type PaymentResponse + Comment string v0.0.2 Nov 10, 2017 Changes in this version + const CurrencyRUB + const EndpointComission + const EndpointSpecialComission type Client + Payments *Payments + type ComissionResponse struct + Content struct{ ... } + type Payments struct + func NewPayments(c *Client) *Payments + func (p *Payments) Comission(providerID int) (res ComissionResponse, err error) + func (p *Payments) History(rows uint, params ...url.Values) (pr PaymentsResponse, err error) + func (p *Payments) SpecialComission(providerID int, to string, amount float64) (res SpecialComissionResponse, err error) + func (p *Payments) Stat(startDate, endDate time.Time, params ...url.Values) (res StatResponse, err error) + type SpecialComissionRequest struct + Account string + PaymentMethod struct{ ... } + PurchaseTotals struct{ ... } + type SpecialComissionResponse struct + EnrollmentSum struct{ ... } + FundingSourceCommission struct{ ... } + ProviderID int + QwCommission struct{ ... } + WithdrawSum struct{ ... } + WithdrawToEnrollmentRate float64 v0.0.1 Nov 9, 2017 Changes in this version + const BaseURL + const EndpointBalance + const EndpointCardsDetect + const EndpointCardsPayment + const EndpointIdent + const EndpointPaymentsHistory + const EndpointProfile + const EndpointStat + const EndpointTxnInfo + const OpenBaseURL + const VersionAPI + var OpenMethods = map[string]bool + func Debug(c *Client) + func Wallet(wallet string) func(c *Client) + type Balance struct + func NewBalance(c *Client) *Balance + func (b *Balance) Current() (hr *BalanceResponse, err error) + type BalanceResponse struct + Accounts []struct{ ... } + type Cards struct + func NewCards(c *Client) *Cards + func (c *Cards) Detect(cardNumber string) (id int64, err error) + func (c *Cards) Payment(psID int64, amount float64, cardNumber string) (res PaymentResponse, err error) + type CardsDetectResponse struct + Code struct{ ... } + Message json.Number + type Client struct + Balance *Balance + Cards *Cards + History *History + Profile *Profile + func New(token string, opts ...Opt) *Client + func (c *Client) SetWallet(wallet string) + type History struct + func NewHistory(c *Client) *History + func (h *History) Payments(rows uint, params ...url.Values) (hr *PaymentsResponse, err error) + func (h *History) Stat(startDate, endDate time.Time, params ...url.Values) (res StatResponse, err error) + type Opt func(c *Client) + type PaymentRequest struct + Fields struct{ ... } + ID string + PaymentMethod struct{ ... } + Sum struct{ ... } + type PaymentResponse struct + Fields struct{ ... } + ID string + Source string + Sum struct{ ... } + Terms string + Transaction struct{ ... } + type PaymentsResponse struct + Data []Txn + NextTxnDate interface{} + NextTxnID interface{} + type Profile struct + func NewProfile(c *Client) *Profile + func (h *Profile) Current() (hr *ProfileResponse, err error) + type ProfileResponse struct + AuthInfo struct{ ... } + ContractInfo struct{ ... } + UserInfo struct{ ... } + type StatResponse struct + IncomingTotal []struct{ ... } + OutgoingTotal []struct{ ... } + type Txn struct + Account string + BankDocumentAvailable bool + BankDocumentReady bool + ChequeReady bool + Comment string + Commission struct{ ... } + CurrencyRate int + Date time.Time + Error string + ErrorCode int + Extras []interface{} + FavoritePaymentEnabled bool + PersonID int64 + Provider struct{ ... } + RegularPaymentEnabled bool + RepeatPaymentEnabled bool + Source interface{} + Status string + StatusText string + Sum struct{ ... } + Total struct{ ... } + TrmTxnID string + TxnID int64 + Type string