types

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Monthly int = iota + 3
	Quarterly
	Biannual
	Annual
)
View Source
const (
	Active int = iota + 1
	Cancelled
	Paused
	Complete
	InReview
	Failed
	SystemPaused
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AlphaNumeric

type AlphaNumeric struct {
	Valid bool
	Value string
}

func NewAlphaNumeric

func NewAlphaNumeric(value string) AlphaNumeric

type Bool

type Bool struct {
	Valid bool
	Value bool
}

func NewBool

func NewBool(value bool) Bool

type CreditCardStatus added in v0.0.6

type CreditCardStatus struct {
	PayfastPaymentID  int    `json:"pf_payment_id"`
	MerchantPaymentID string `json:"m_payment_id"`
	Status            string `json:"status"`
	TransactionToken  string `json:"transaction_token"`
	Amount            int    `json:"amount"`
	CreditCardStatus  string `json:"cc_status"`
	CreditCardMessage string `json:"cc_message"`
}

func (*CreditCardStatus) Copy added in v0.0.6

func (c *CreditCardStatus) Copy(data map[string]interface{})

type Numeric

type Numeric struct {
	Valid bool
	Value int
}

func NewNumeric

func NewNumeric(value int) Numeric

type RemoteCall added in v0.0.4

type RemoteCall func(url string, payload interface{}) ([]byte, error)

type Response

type Response struct {
	Code   int          `json:"code"`
	Status string       `json:"status"`
	Data   ResponseData `json:"data"`
}

type ResponseData

type ResponseData struct {
	Response interface{} `json:"response"`
}

type Subscription

type Subscription struct {
	Amount         int       `json:"amount"`
	Cycles         int       `json:"cycles"`
	CyclesComplete int       `json:"cycles_complete"`
	Frequency      int       `json:"frequency"`
	RunDate        time.Time `json:"run_date"`
	Status         int       `json:"status"`
	StatusReason   string    `json:"status_reason"`
	StatusText     string    `json:"status_text"`
	Token          string    `json:"token"`
}

func (*Subscription) Copy

func (s *Subscription) Copy(data map[string]interface{})

type Time added in v0.0.4

type Time struct {
	Valid bool
	Value time.Time
}

func NewTime added in v0.0.4

func NewTime(value time.Time) Time

type Transaction added in v0.0.4

type Transaction struct {
	Date          time.Time
	Type          string
	Sign          string
	Party         string
	Name          string
	Description   string
	Currency      string
	FundingType   string
	Gross         float64
	Fee           float64
	Net           float64
	Balance       float64
	MPaymentID    string
	PFPaymentID   string
	CustomString1 string
	CustomString2 string
	CustomString3 string
	CustomString4 string
	CustomString5 string
	CustomInt1    int
	CustomInt2    int
	CustomInt3    int
	CustomInt4    int
	CustomInt5    int
}

func (*Transaction) Copy added in v0.0.4

func (t *Transaction) Copy(tx []string) error

Jump to

Keyboard shortcuts

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