diff options
Diffstat (limited to 'finance/model.py')
-rw-r--r-- | finance/model.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/finance/model.py b/finance/model.py new file mode 100644 index 0000000..8bf2e3d --- /dev/null +++ b/finance/model.py @@ -0,0 +1,12 @@ +import dataclasses +import datetime +import decimal + + +@dataclasses.dataclass(kw_only=True, frozen=True) +class Flow: + """Time-discrete flow of money paid on the first day of a month""" + + amount: decimal.Decimal + since: None | datetime.datetime + until: None | datetime.datetime |