feat(rules): expose if the transaction is recurring/installment

This commit is contained in:
Herculino Trotta
2025-09-14 01:18:08 -03:00
parent 2a463c63b8
commit 9eb1818a20
2 changed files with 24 additions and 0 deletions

View File

@@ -90,4 +90,12 @@ def serialize_transaction(sender: Transaction, deleted: bool):
"internal_note": sender.internal_note,
"internal_id": sender.internal_id,
"mute": sender.mute,
"installment_id": sender.installment_id if sender.installment_plan else None,
"installment_total": (
sender.installment_plan.number_of_installments
if sender.installment_plan is not None
else None
),
"installment": sender.installment_plan is not None,
"recurring_transaction": sender.recurring_transaction is not None,
}