# generated by datamodel-codegen:
#   filename:  namespace_collisions.xsd
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from typing import Any

from pydantic import BaseModel, Field, RootModel, constr


class HttpsExampleComCommonBillingCode(RootModel[constr(max_length=4)]):
    root: constr(max_length=4) = Field(..., title='HttpsExampleComCommonBillingCode')


class HttpsExampleComCommonShippingCode(RootModel[constr(min_length=2)]):
    root: constr(min_length=2) = Field(..., title='HttpsExampleComCommonShippingCode')


class HttpsExampleComOrderCode(RootModel[str]):
    root: str = Field(..., title='HttpsExampleComOrderCode')


class UrnABThing(RootModel[str]):
    root: str = Field(..., title='UrnABThing')


class UrnABThing2(RootModel[str]):
    root: str = Field(..., title='UrnABThing2')


class HttpsExampleComBillingAddress(BaseModel):
    code: HttpsExampleComCommonBillingCode


class HttpsExampleComShippingAddress(BaseModel):
    code: HttpsExampleComCommonShippingCode


class Model(BaseModel):
    shipping: HttpsExampleComShippingAddress
    billing: HttpsExampleComBillingAddress
    localCode: Any = Field(..., title='LocalCode')
    dashThing: UrnABThing
    underscoreThing: UrnABThing2
