summaryrefslogtreecommitdiff
path: root/finance/model.py
blob: 8bf2e3d2b9741382e9ceebbc7dc50b6f3e4c1603 (plain)
1
2
3
4
5
6
7
8
9
10
11
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