~mendelmaleh/pfin

ref: 1f051309601a4da2841fade1e72cb120bccab370 pfin/parser/bofa/interface.go -rw-r--r-- 408 bytes
1f051309Mendel E Add license 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package bofa

import (
	"time"

	"git.sr.ht/~mendelmaleh/pfin"
)

func (tx RawTransaction) Date() time.Time {
	return tx.DateField.Time
}

func (tx RawTransaction) Amount() float64 {
	return tx.AmountField
}

func (tx RawTransaction) Card() string {
	return "-"
}

func (tx RawTransaction) Name() string {
	return tx.Description
}

func (tx RawTransaction) String() string {
	return pfin.TxString(tx, " ")
}