feat(sub): handling upgrade/downgrade

rw integration and /me endpoints are left
This commit is contained in:
2026-08-02 14:16:57 +07:00
parent 24f857ef1b
commit 97a4e819d6
10 changed files with 401 additions and 58 deletions

View File

@@ -21,9 +21,12 @@ class InvoiceRepository:
return list(r.scalars().all())
async def create(self, creator_id: int, amount: int | float, status: InvoiceStatus) -> Invoice:
async def create(
self, creator_id: int, order_id: int, amount: int | float, status: InvoiceStatus
) -> Invoice:
obj = Invoice(
creator_id=creator_id,
order_id=order_id,
amount=amount,
status=status,
)