Update rabbitMQ&paimentsMOK
All checks were successful
Deploy / deploy (push) Successful in 48s

This commit is contained in:
2026-03-12 09:00:14 +00:00
parent 1788a12cda
commit 1dcecb8d52
4 changed files with 191 additions and 65 deletions

View File

@@ -4,6 +4,22 @@ from pydantic import BaseModel, ConfigDict
from database.models import TicketStatus
class YookassaWebhookObject(BaseModel):
id: str
status: str
paid: bool
class YookassaWebhook(BaseModel):
event: str
type: str
object: YookassaWebhookObject
class TicketBookRequest(BaseModel):
seat_id: int
class TicketBookResponse(BaseModel):
ticket_id: int
payment_url: str
class TournamentInfo(BaseModel):
id: int