mirror of
https://github.com/BEDOLAGA-DEV/remnawave-bedolaga-telegram-bot.git
synced 2026-02-28 07:11:37 +00:00
- Add pyproject.toml with uv and ruff configuration - Pin Python version to 3.13 via .python-version - Add Makefile commands: lint, format, fix - Apply ruff formatting to entire codebase - Remove unused imports (base64 in yookassa/simple_subscription) - Update .gitignore for new config files
27 lines
553 B
Python
27 lines
553 B
Python
from __future__ import annotations
|
|
|
|
from datetime import datetime
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class TransactionResponse(BaseModel):
|
|
id: int
|
|
user_id: int
|
|
type: str
|
|
amount_kopeks: int
|
|
amount_rubles: float
|
|
description: str | None = None
|
|
payment_method: str | None = None
|
|
external_id: str | None = None
|
|
is_completed: bool
|
|
created_at: datetime
|
|
completed_at: datetime | None = None
|
|
|
|
|
|
class TransactionListResponse(BaseModel):
|
|
items: list[TransactionResponse]
|
|
total: int
|
|
limit: int
|
|
offset: int
|