~mendelmaleh/pfin

ref: parallel pfin/transaction.go -rw-r--r-- 247 bytes
95ffe938Mendel E Parallelize directory parsing 3 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
	Name() string

	Category() string

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

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