mirror of
https://github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot.git
synced 2026-01-19 19:32:10 +00:00
Update balance.py
This commit is contained in:
@@ -81,3 +81,46 @@ class StarsInvoiceResponse(BaseModel):
|
||||
invoice_url: str
|
||||
stars_amount: int
|
||||
amount_kopeks: int
|
||||
|
||||
|
||||
class PendingPaymentResponse(BaseModel):
|
||||
"""Pending payment details for manual verification."""
|
||||
id: int
|
||||
method: str
|
||||
method_display: str
|
||||
identifier: str
|
||||
amount_kopeks: int
|
||||
amount_rubles: float
|
||||
status: str
|
||||
status_emoji: str
|
||||
status_text: str
|
||||
is_paid: bool
|
||||
is_checkable: bool
|
||||
created_at: datetime
|
||||
expires_at: Optional[datetime] = None
|
||||
payment_url: Optional[str] = None
|
||||
user_id: Optional[int] = None
|
||||
user_telegram_id: Optional[int] = None
|
||||
user_username: Optional[str] = None
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class PendingPaymentListResponse(BaseModel):
|
||||
"""Paginated list of pending payments."""
|
||||
items: List[PendingPaymentResponse]
|
||||
total: int
|
||||
page: int
|
||||
per_page: int
|
||||
pages: int
|
||||
|
||||
|
||||
class ManualCheckResponse(BaseModel):
|
||||
"""Response after manual payment status check."""
|
||||
success: bool
|
||||
message: str
|
||||
payment: Optional[PendingPaymentResponse] = None
|
||||
status_changed: bool = False
|
||||
old_status: Optional[str] = None
|
||||
new_status: Optional[str] = None
|
||||
|
||||
Reference in New Issue
Block a user