# Generated by ariadne-codegen
# Source: metasrht/graphql/

from typing import Annotated, Optional

from iso3166 import Country
from pydantic import BeforeValidator, Field

from metasrht.countries import parse

from .base_model import BaseModel


class UpdateBillingAddress(BaseModel):
    update_billing_address: "UpdateBillingAddressUpdateBillingAddress" = Field(
        alias="updateBillingAddress"
    )


class UpdateBillingAddressUpdateBillingAddress(BaseModel):
    country: Optional[Annotated[Country, BeforeValidator(parse)]]


UpdateBillingAddress.model_rebuild()
