mirror of
https://git.hiabuto.net/C3MA/CCMA.git
synced 2026-07-01 11:14:52 +02:00
feat: add itemized claims and payments
This commit is contained in:
@@ -138,6 +138,7 @@ class ContributionData:
|
||||
claims: list[dict[str, Any]] = field(default_factory=list)
|
||||
payments: list[dict[str, Any]] = field(default_factory=list)
|
||||
allocations: list[dict[str, Any]] = field(default_factory=list)
|
||||
reminders: list[dict[str, Any]] = field(default_factory=list)
|
||||
schema_version: int = 1
|
||||
|
||||
def to_dict(self) -> dict[str, Any]:
|
||||
@@ -146,6 +147,7 @@ class ContributionData:
|
||||
"claims": self.claims,
|
||||
"payments": self.payments,
|
||||
"allocations": self.allocations,
|
||||
"reminders": self.reminders,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
@@ -155,6 +157,7 @@ class ContributionData:
|
||||
claims=list(data.get("claims") or []),
|
||||
payments=list(data.get("payments") or []),
|
||||
allocations=list(data.get("allocations") or []),
|
||||
reminders=list(data.get("reminders") or []),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user