feat(sub): handling upgrade/downgrade
rw integration and /me endpoints are left
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user