This commit is contained in:
2026-01-21 21:31:32 -03:00
parent 26c3df876f
commit 37a9b20188
38 changed files with 1009 additions and 532 deletions

View File

@@ -69,14 +69,14 @@ class Address(BaseModel):
class Item(BaseModel):
id: UUID4
name: str
unit_price: Decimal
quantity: int = 1
unit_price: Decimal = Field(..., ge=1)
quantity: int = Field(1, ge=1)
class Coupon(BaseModel):
code: str
type: Literal['PERCENT', 'FIXED']
amount: Decimal
amount: Decimal = Field(..., ge=1)
class Checkout(BaseModel):