# Generated by ariadne-codegen
# Source: operations/

from typing import Optional

from pydantic import Field

from .base_model import BaseModel


class Regions(BaseModel):
    regions: list["RegionsRegions"]


class RegionsRegions(BaseModel):
    id: str
    code: str
    name: str
    description: str
    provider_info: Optional["RegionsRegionsProviderInfo"] = Field(alias="providerInfo")
    available: bool
    coordinates: list[float]
    continent: str
    country: str
    city: str


class RegionsRegionsProviderInfo(BaseModel):
    code: str
    name: str
    icon: str
    homepage: str
    console: str
    can_refund: bool = Field(alias="canRefund")


Regions.model_rebuild()
RegionsRegions.model_rebuild()
