# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional

from pydantic import Field as FieldInfo

from ...._models import BaseModel

__all__ = ["LocationRetrieveGeolocationResponse"]


class LocationRetrieveGeolocationResponse(BaseModel):
    city: Optional[str] = None
    """Name of the city the client is located in."""

    country: Optional[str] = None
    """Name of the country the client is located in."""

    country_code: Optional[str] = FieldInfo(alias="countryCode", default=None)
    """ISO code for the country the client is located in."""

    latitude: Optional[float] = None
    """(non-null, valid latitude)"""

    longitude: Optional[float] = None
    """(non-null, valid longitude)"""

    postal_code: Optional[str] = FieldInfo(alias="postalCode", default=None)
    """Postal code for the area the client is located in."""

    region: Optional[str] = None
    """Name of the region/state (or equivalent) the client is located in."""

    region_code: Optional[str] = FieldInfo(alias="regionCode", default=None)
    """ISO code for the region/state (or equivalent) the client is located in."""
