- Added schemas, services, and routers for PROSEC, RCG2, Regulaciones, REIT, RequisitoPrevio, TLCS, and Vehiculos modules. - Each module includes search and get by ID functionalities. - Integrated FastAPI routers for each module into the main SITAR router. - Ensured proper response models using Pydantic for data validation.
21 lines
633 B
Python
21 lines
633 B
Python
"""IEPS Schemas"""
|
|
|
|
from typing import Optional
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class IepsResponse(BaseModel):
|
|
"""IEPS (Impuesto Especial sobre Producción y Servicios)"""
|
|
|
|
FRACCION_SIN_PUNTO: Optional[str] = Field(None, max_length=10)
|
|
FRACCION_CON_PUNTO: Optional[str] = Field(None, max_length=10)
|
|
FUNDAMENTO: Optional[str] = Field(None, max_length=1000)
|
|
CONDICION: Optional[str] = Field(None, max_length=5000)
|
|
TASA: Optional[str] = None
|
|
TASAESPECIFICO: Optional[str] = None
|
|
NICO: Optional[str] = Field("", max_length=2)
|
|
CONSECUTIVO: int
|
|
|
|
class Config:
|
|
from_attributes = True
|