feat: add itemized claims and payments

This commit is contained in:
Marcel Peterkau
2026-06-21 18:20:55 +02:00
parent c717d6806b
commit 80d4d5ef90
12 changed files with 1049 additions and 6 deletions
+12
View File
@@ -229,6 +229,18 @@ class Housekeeper:
"script_hash": rule.script_hash,
},
}
if not claim.get("items"):
claim["items"] = [
{
"item_id": str(uuid4()),
"type": "base",
"description": str(claim.get("title", claim_key)),
"quantity": "1.00",
"unit_price": str(claim.get("amount", "0.00")),
"amount": str(claim.get("amount", "0.00")),
"created_at": now,
}
]
data.claims.append(claim)
self.repository.save_contributions(action.member_id, data)
self.repository.append_event(