fix(pedimentos): change not_affect_usd_value and not_affect_customs_value types from bool to int in DTOs

fix(main): enable redirect_slashes in FastAPI app configuration
This commit is contained in:
Galindo97
2026-01-30 10:12:48 -06:00
parent ce8712436e
commit 2905e90a72
3 changed files with 9 additions and 8 deletions

View File

@@ -17,10 +17,10 @@ class PedimentoDecrementablesBase(BaseModel):
others: Optional[Decimal] = Field(None, description="Others")
currency: Optional[str] = Field(None, max_length=3, description="Currency")
currency_factor: Optional[Decimal] = Field(None, description="Currency factor")
not_affect_usd_value: Optional[bool] = Field(
not_affect_usd_value: Optional[int] = Field(
None, description="Not affect USD value"
)
not_affect_customs_value: Optional[bool] = Field(
not_affect_customs_value: Optional[int] = Field(
None, description="Not affect customs value"
)
@@ -41,8 +41,8 @@ class PedimentoDecrementablesUpdate(BaseModel):
others: Optional[Decimal] = None
currency: Optional[str] = Field(None, max_length=3)
currency_factor: Optional[Decimal] = None
not_affect_usd_value: Optional[bool] = None
not_affect_customs_value: Optional[bool] = None
not_affect_usd_value: Optional[int] = None
not_affect_customs_value: Optional[int] = None
class PedimentoDecrementablesResponse(PedimentoDecrementablesBase):

View File

@@ -18,10 +18,10 @@ class PedimentoIncrementablesBase(BaseModel):
deductibles: Optional[Decimal] = Field(None, description="Deductibles")
currency: Optional[str] = Field(None, max_length=3, description="Currency")
currency_factor: Optional[Decimal] = Field(None, description="Currency factor")
not_affect_usd_value: Optional[bool] = Field(
not_affect_usd_value: Optional[int] = Field(
None, description="Not affect USD value"
)
not_affect_customs_value: Optional[bool] = Field(
not_affect_customs_value: Optional[int] = Field(
None, description="Not affect customs value"
)
@@ -43,8 +43,8 @@ class PedimentoIncrementablesUpdate(BaseModel):
deductibles: Optional[Decimal] = None
currency: Optional[str] = Field(None, max_length=3)
currency_factor: Optional[Decimal] = None
not_affect_usd_value: Optional[bool] = None
not_affect_customs_value: Optional[bool] = None
not_affect_usd_value: Optional[int] = None
not_affect_customs_value: Optional[int] = None
class PedimentoIncrementablesResponse(PedimentoIncrementablesBase):