2020-03-31 18:32:54 +02:00
|
|
|
import datetime
|
2020-09-12 08:08:44 +02:00
|
|
|
from dataclasses import dataclass
|
2020-03-31 18:32:54 +02:00
|
|
|
|
|
|
|
|
2020-09-12 08:08:44 +02:00
|
|
|
@dataclass
|
2020-03-31 18:32:54 +02:00
|
|
|
class OfxTransaction:
|
|
|
|
"""
|
|
|
|
Mimick what is retrieved via ofxtools when parsing the file
|
|
|
|
"""
|
|
|
|
|
2020-09-12 08:08:44 +02:00
|
|
|
name: str = ""
|
|
|
|
memo: str = ""
|
|
|
|
dtposted: datetime.datetime = None
|
|
|
|
trnamt: float = 0
|
|
|
|
trntype: str = ""
|