Skip to main content
This module contains all address and location-related models used throughout the chatbot system.

AddressDTO

Model for address data with support for geocoding coordinates.
FieldTypeRequiredDescription
addressstringNoStreet and number
address2stringNoAddress complement
postalCodestringNoPostal code
citystringNoCity
countrystringNoCountry
latitudenumberNoLatitude of the location
longitudenumberNoLongitude of the location
Fields are kept optional for backward compatibility, though they may be required in specific contexts.

DeliveryPostalCodeDTO

Model for delivery postal code data with minimum order requirements and fees.
FieldTypeRequiredDescription
postalCodenumberYesPostal code as integer
minimumOrderAmountnumberYesMinimum order amount for this postal code
deliveryFeePriceDTOYesDelivery fee for this postal code

DeliverySettingsDTO

Model for delivery settings configuration.
FieldTypeRequiredDescription
modestringYesDelivery mode: “none”, “postalCode”, “uberDirect”, “chaskis”, “free”
postalCodesDeliveryPostalCodeDTO[]NoRequired if mode is “postalCode”

Delivery Modes

  • none: No delivery available
  • postalCode: Delivery based on postal code zones
  • uberDirect: Delivery via Uber Direct integration
  • chaskis: Delivery via Chaskis integration
  • free: Free delivery for all orders

CoordinatesDTO

Simple coordinate pair model.
FieldTypeRequiredDescription
latitudenumberYesLatitude
longitudenumberYesLongitude

AddressCheckResponseDTO

Response from address validation service.
FieldTypeRequiredDescription
successbooleanYesWhether address validation succeeded
codestringNoResponse code (maps to CheckAddressResponseCode)
foundAddressstringNoStandardized address string
deliveryFeenumberNoDelivery fee as float
deliveryTimestringNoEstimated delivery time (ISO duration or human-readable)
distancenumberNoDistance in kilometers from address to location
locationIdstringNoLocation ID that can serve this address (org mode)
This model replaces deprecated fields from the old response format for better consistency and clarity.

GeoPointDTO

Model for geographical location data.
FieldTypeRequiredDescription
latitudenumberYesLatitude
longitudenumberYesLongitude