accounts

package
v0.0.0-...-3ff5be2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: GPL-3.0 Imports: 8 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 {
	Getter
}

func NewClient

func NewClient(config *config.Config, httpClient *http.Client, token *oauth2.Token) *Client

type Getter

type Getter interface {
	Get(playerID int, ctx context.Context) (*PlayerAccount, error)
}

func NewGetter

func NewGetter(config *config.Config, httpClient *http.Client, token *oauth2.Token) Getter

type PlayerAccount

type PlayerAccount struct {
	AccountActiveField     bool   `json:"AccountActiveField"`
	AccountExpiry          string `json:"AccountExpiry"`
	AccountExpirySpecified bool   `json:"AccountExpirySpecified"`
	AccountId              string `json:"AccountId"`
	AccountName            string `json:"AccountName"`
	AccountOwnership       bool   `json:"AccountOwnership"`
	AccountType            int    `json:"AccountType"`
	CurrencyCode           string `json:"CurrencyCode"`
	CreditType             string `json:"CreditType"`
	DepositOk              bool   `json:"DepositOk"`
	ForeignCode            string `json:"ForeignCode"`
	ForeignDefaultAmount   int    `json:"ForeignDefaultAmount"`
	ForeignDepositMax      int    `json:"ForeignDepositMax"`
	ForeignDepositMin      int    `json:"ForeignDepositMin"`
	ForeignExpiry          string `json:"ForeignExpiry"`
	ForeignExpirySpecified bool   `json:"ForeignExpirySpecified"`
	ForeignRate            int    `json:"ForeignRate"`
	ForeignWithdrawInc     int    `json:"ForeignWithdrawInc"`
	ForeignWithdrawMax     int    `json:"ForeignWithdrawMax"`
	ForeignWithdrawMin     int    `json:"ForeignWithdrawMin"`
	LocalDefaultAmount     int    `json:"LocalDefaultAmount"`
	LocalDepositMax        int    `json:"LocalDepositMax"`
	LocalDepositMin        int    `json:"LocalDepositMin"`
	LocalWithdrawInc       int    `json:"LocalWithdrawInc"`
	LocalWithdrawMax       int    `json:"LocalWithdrawMax"`
	LocalWithdrawMin       int    `json:"LocalWithdrawMin"`
	OwnershipAttributes    bool   `json:"OwnershipAttributes"`
	PinProtected           bool   `json:"PinProtected"`
	SelectAmount           bool   `json:"SelectAmount"`
	WithdrawOk             bool   `json:"WithdrawOk"`
}

Jump to

Keyboard shortcuts

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