transactions

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathCat added in v0.0.6

func PathCat(base string, token string) string

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func Create

func Create(get types.RemoteCall) *Client

func (*Client) Daily added in v0.0.5

func (c *Client) Daily(payload TransactionHistoryDailyReq) ([]*types.Transaction, error)

func (*Client) History

func (c *Client) History(payload TransactionHistoryReq) ([]*types.Transaction, error)

func (*Client) Monthly added in v0.0.5

func (c *Client) Monthly(payload TransactionHistoryMonthlyReq) ([]*types.Transaction, error)

func (*Client) Query added in v0.0.6

func (c *Client) Query(token string) (*types.CreditCardStatus, error)

func (*Client) Weekly added in v0.0.5

func (c *Client) Weekly(payload TransactionHistoryWeeklyReq) ([]*types.Transaction, error)

type TransactionHistoryDailyReq added in v0.0.5

type TransactionHistoryDailyReq struct {
	Date types.Time `payfast:"date,query,yyyy-mm-dd,optional"`
}

type TransactionHistoryMonthlyReq added in v0.0.5

type TransactionHistoryMonthlyReq struct {
	Date types.Time `payfast:"date,query,yyyy-mm-dd,optional"`
}

type TransactionHistoryReq

type TransactionHistoryReq struct {
	From types.Time `payfast:"from,query,yyyy-mm-dd,optional"`
	To   types.Time `payfast:"to,query,yyyy-mm-dd,optional"`
}

type TransactionHistoryWeeklyReq added in v0.0.5

type TransactionHistoryWeeklyReq struct {
	Date types.Time `payfast:"date,query,yyyy-mm-dd,optional"`
}

Jump to

Keyboard shortcuts

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