Se agregaron los moduloes de api_v2

This commit is contained in:
2025-10-03 23:16:47 -06:00
parent ac075bfeb7
commit 7149515606
60 changed files with 3714 additions and 252 deletions

View File

@@ -1,22 +1,20 @@
from fastapi import FastAPI
from pydantic import BaseModel
from uuid import UUID
from pydantic import BaseModel, Field, field_validator
from schemas.CredencialSchema import CredencialBaseSchema
from api.api_v2.modules.pedimentos.schemas import PedimentoBaseSchema
# Aplica para Acuse, Acuse Cove y Edocuments
class AcuseBaseSchema(BaseModel):
id: int = Field(..., description="ID único del eDocument")
numero_edocument: str =Field(..., description="Número del eDocument")
class AcuseSchema(BaseModel):
pedimento: str
organizacion: str
numero_documento: str
vu_user: str
password: str
edoc: AcuseBaseSchema
pedimento: PedimentoBaseSchema
credencial: CredencialBaseSchema
class AcuseMasivoSchema(BaseModel):
pedimento: str
organizacion: str
numeros_documentos: list[str]
vu_user: str
password: str
edocs: list[AcuseBaseSchema]
pedimento: PedimentoBaseSchema
credencial: CredencialBaseSchema