repackage properly

This commit is contained in:
2025-11-23 21:11:06 -08:00
parent f1c8895194
commit f973ead318
9 changed files with 246 additions and 36 deletions

19
actual_imap_poll/model.py Normal file
View File

@@ -0,0 +1,19 @@
from dataclasses import dataclass
from datetime import date
from decimal import Decimal
from uuid import UUID
@dataclass
class Transaction:
"""Represents an Actual Budget transaction to be submitted.
See: https://actualbudget.org/docs/api/reference#transaction for field descriptions
"""
account: UUID
date: date
amount: Decimal # Note: decimal dollars, JS shim will convert to cents as described in the API
payee: str # imported_payee in API
notes: str
imported_id: str