minor fixes/api for payments
This commit is contained in:
+8
-1
@@ -8,7 +8,14 @@ class PaymentBase(BaseModel):
|
||||
tg_id: int
|
||||
amount: float
|
||||
payment_system: str
|
||||
status: Literal["success", "pending", "failed"]
|
||||
status: Literal[
|
||||
"awaiting_choice",
|
||||
"issued",
|
||||
"processing",
|
||||
"success",
|
||||
"failed",
|
||||
"cancelled",
|
||||
]
|
||||
|
||||
|
||||
class PaymentResponse(PaymentBase):
|
||||
|
||||
Binary file not shown.
@@ -108,7 +108,7 @@ class DirectStartBlockerMiddleware(BaseMiddleware):
|
||||
else:
|
||||
ok = (
|
||||
await session.execute(
|
||||
select(Gift.id)
|
||||
select(Gift.gift_id)
|
||||
.where(
|
||||
Gift.gift_id == gift_id,
|
||||
Gift.is_used.is_(False),
|
||||
|
||||
Reference in New Issue
Block a user