Files
roa2web-service-auto/deploy-package-20260223-151231/shared/models/calendar.py
Claude Agent 8bc567a9c5 fix telegram
2026-02-23 15:12:33 +00:00

19 lines
527 B
Python

"""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