ofx-processor/tests/utils.py

16 lines
287 B
Python
Raw Permalink Normal View History

import datetime
2020-09-12 08:08:44 +02:00
from dataclasses import dataclass
2020-09-12 08:08:44 +02:00
@dataclass
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 = ""