~mendelmaleh/pfin

ref: 4b06f49cd6d4f9ffc730cc85847a1d7a2e22898c pfin/transaction.go -rw-r--r-- 290 bytes
4b06f49cMendel E Make pfin.Transaction.Amount() consistent 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package pfin

import (
	"time"
)

type Transaction interface {
	Date() time.Time
	Amount() float64 // positive for credit, negative for debit
	Name() string

	Category() string

	Card() string // may be empty
	User() string
	Account() string

	// should be util.FormatTx
	String() string
}