fix telegram
This commit is contained in:
11
deploy-package-20260223-151231/shared/models/__init__.py
Normal file
11
deploy-package-20260223-151231/shared/models/__init__.py
Normal file
@@ -0,0 +1,11 @@
|
||||
"""Shared Pydantic models for ROA2WEB applications."""
|
||||
|
||||
from .company import Company, CompanyListResponse
|
||||
from .calendar import CalendarPeriod, CalendarPeriodsResponse
|
||||
|
||||
__all__ = [
|
||||
"Company",
|
||||
"CompanyListResponse",
|
||||
"CalendarPeriod",
|
||||
"CalendarPeriodsResponse",
|
||||
]
|
||||
18
deploy-package-20260223-151231/shared/models/calendar.py
Normal file
18
deploy-package-20260223-151231/shared/models/calendar.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""Calendar/accounting period models for ROA2WEB applications."""
|
||||
|
||||
from typing import List, Optional
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class CalendarPeriod(BaseModel):
|
||||
"""Model for an accounting period."""
|
||||
an: int # Year
|
||||
luna: int # Month (1-12)
|
||||
display_name: str # Format: "Decembrie 2025"
|
||||
|
||||
|
||||
class CalendarPeriodsResponse(BaseModel):
|
||||
"""Response model for calendar periods list."""
|
||||
periods: List[CalendarPeriod]
|
||||
current_period: Optional[CalendarPeriod] = None
|
||||
total_count: int
|
||||
19
deploy-package-20260223-151231/shared/models/company.py
Normal file
19
deploy-package-20260223-151231/shared/models/company.py
Normal file
@@ -0,0 +1,19 @@
|
||||
"""Company models for ROA2WEB applications."""
|
||||
|
||||
from typing import List, Optional
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class Company(BaseModel):
|
||||
"""Model for a company/firma."""
|
||||
id_firma: int
|
||||
name: str
|
||||
schema_name: str
|
||||
fiscal_code: Optional[str] = None
|
||||
is_active: bool = True
|
||||
|
||||
|
||||
class CompanyListResponse(BaseModel):
|
||||
"""Response model for list of companies."""
|
||||
companies: List[Company]
|
||||
total_count: int
|
||||
Reference in New Issue
Block a user