"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from .accountresponse import AccountResponse, AccountResponseTypedDict
from .errorresponse import ErrorResponse, ErrorResponseTypedDict
from postivo_client.types import BaseModel
from postivo_client.utils import FieldMetadata, PathParamMetadata
from typing import Union
from typing_extensions import Annotated, TypeAliasType, TypedDict


class GetSubaccountDetailsRequestTypedDict(TypedDict):
    user_login: str
    r"""Login of the subaccount (user) for which to retrieve data."""


class GetSubaccountDetailsRequest(BaseModel):
    user_login: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=True))
    ]
    r"""Login of the subaccount (user) for which to retrieve data."""


GetSubaccountDetailsResponseTypedDict = TypeAliasType(
    "GetSubaccountDetailsResponseTypedDict",
    Union[ErrorResponseTypedDict, AccountResponseTypedDict],
)


GetSubaccountDetailsResponse = TypeAliasType(
    "GetSubaccountDetailsResponse", Union[ErrorResponse, AccountResponse]
)
