fix stars peyment status/ remove literal for schemas

This commit is contained in:
Vladless
2025-09-24 00:55:24 +03:00
parent 91c0db6e3c
commit 8e8dcab230
2 changed files with 1 additions and 9 deletions
+1 -9
View File
@@ -1,5 +1,4 @@
from datetime import datetime
from typing import Literal
from pydantic import BaseModel
@@ -8,14 +7,7 @@ class PaymentBase(BaseModel):
tg_id: int
amount: float
payment_system: str
status: Literal[
"awaiting_choice",
"issued",
"pending",
"success",
"failed",
"cancelled",
]
status: str
class PaymentResponse(PaymentBase):