transaction

package
v0.0.0-2415 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllTransactionTypesMap

func GetAllTransactionTypesMap() map[string]TransactionType

Types

type AllTransactionTypes

type AllTransactionTypes struct {
	TransferDeposit TransactionType
	InterestDeposit TransactionType
	CashDeposit     TransactionType

	PaymentReceived TransactionType

	CashWithdrawal     TransactionType
	TransferWithdrawal TransactionType
	ChequeWithdrawal   TransactionType

	ClearingCheque      TransactionType
	ChequeMoneyTransfer TransactionType

	Commission   TransactionType
	LetterCredit TransactionType

	WitholdingTaxPayable TransactionType

	OpenAccount TransactionType
}

func GetAllTransactionTypes

func GetAllTransactionTypes() AllTransactionTypes

type ServiceChannel

type ServiceChannel string

type Transaction

type Transaction struct {
	Date                  time.Time       `json:"date"`
	Type                  TransactionType `json:"type"`
	AmountTHB             float64         `json:"amountTHB"`
	OutstandingBalanceTHB float64         `json:"outstandingBalanceTHB"`
	Channel               ServiceChannel  `json:"channel"`
	Note                  string          `json:"note"`
	ChequeNumber          *string         `json:"chequeNumber"`
}

func Parse

func Parse(records [][]string, hasCheckNumber bool) []Transaction

type TransactionType

type TransactionType string

Jump to

Keyboard shortcuts

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