Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { Payer struct { AccountNumPrefix int AccountNum int } DueDate time.Time Items []*Item }
Group groups payment order items to be made from a single fund source
func (*Group) AddItem ¶
func (gr *Group) AddItem(recpAccPrefix, recpAccNum, recpBankCode int, amount float64, vs, ks, ss int, msgForRecp string) *Item
AddItem adds a payment order to the group
type Item ¶
type Item struct { Recipient struct { AccountNumPrefix int AccountNum int BankCode int } Amount float64 VS int KS int SS int MessageForRecipient string }
Item is a payment order item
type Order ¶
type Order struct { CreationDate time.Time Client struct { Name string AccountNumber int BankCode int } Groups []*Group }
Order is an order in ABO/KPC format
func (*Order) AddGroup ¶
AddGroup adds a payment group. It is a group of payment orders sent from a single source of funds.
func (*Order) WriteToFile ¶
WriteToFile writes the order to a .kpc file
type Statement ¶
type Statement struct { Info struct { AccountNumber int AccountName string StartDate time.Time EndDate time.Time OpeningBalance float64 ClosingBalance float64 IncomeSum float64 ExpenseSum float64 StatementNumber int } Transactions []*Transaction }
Statement with transactions in ABO/GPC format
func FromReader ¶
FromReader parses ABO statement from io.Reader
type Transaction ¶
type Transaction struct { OwnerAccountNumber int Recipient struct { Name string AccountNumPrefix int AccountNum int BankCode int } ID int Amount float64 Currency currency.Currency Type int // 1-debet, 2-credit, 4-storno-debet, 5-storno-credit VS int KS int SS int DueDate time.Time }
Transaction single transaction
func (*Transaction) Read ¶
func (txn *Transaction) Read(inRdr io.Reader) error
Parse parses a single transaction from the input stream
func (*Transaction) String ¶
func (txn *Transaction) String() string
Click to show internal directories.
Click to hide internal directories.