018 add parcel type
This commit is contained in:
@@ -10,6 +10,11 @@ class DeliveryEntity(StrEnum):
|
||||
LEGAL = "legal"
|
||||
|
||||
|
||||
class ParcelType(StrEnum):
|
||||
DOC = "doc"
|
||||
PARCEL = "parcel"
|
||||
|
||||
|
||||
class DeliveryRequest(BaseModel):
|
||||
entity: DeliveryEntity
|
||||
from_city: str = Field(min_length=1)
|
||||
@@ -19,3 +24,4 @@ class DeliveryRequest(BaseModel):
|
||||
length_cm: float = Field(gt=0)
|
||||
width_cm: float = Field(gt=0)
|
||||
height_cm: float = Field(gt=0)
|
||||
parcel_type: ParcelType | None = None
|
||||
|
||||
Reference in New Issue
Block a user