Добавлена dadata
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""Input schemas for price calculation."""
|
||||
"""Input schemas for delivery-related API requests."""
|
||||
|
||||
from enum import StrEnum
|
||||
|
||||
@@ -24,3 +24,10 @@ class DeliveryCalculationRequest(BaseModel):
|
||||
width_cm: float = Field(gt=0)
|
||||
height_cm: float = Field(gt=0)
|
||||
parcel_type: ParcelType | None = None
|
||||
|
||||
|
||||
class AddressSuggestRequest(BaseModel):
|
||||
country_code: str = Field(min_length=2, max_length=2)
|
||||
city: str = Field(min_length=1)
|
||||
query: str = Field(min_length=1)
|
||||
limit: int | None = Field(default=None, gt=0)
|
||||
|
||||
Reference in New Issue
Block a user