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

from __future__ import annotations
from .errorresponse import ErrorResponse, ErrorResponseTypedDict
from .shipmentdetails import ShipmentDetails, ShipmentDetailsTypedDict
from postivo_client.types import BaseModel
from typing import Dict, List, Union
from typing_extensions import TypeAliasType, TypedDict


ShipmentDispatchResponseResultTypedDict = TypeAliasType(
    "ShipmentDispatchResponseResultTypedDict",
    Union[ErrorResponseTypedDict, List[ShipmentDetailsTypedDict]],
)


ShipmentDispatchResponseResult = TypeAliasType(
    "ShipmentDispatchResponseResult", Union[ErrorResponse, List[ShipmentDetails]]
)


class ShipmentDispatchResponseTypedDict(TypedDict):
    headers: Dict[str, List[str]]
    result: ShipmentDispatchResponseResultTypedDict


class ShipmentDispatchResponse(BaseModel):
    headers: Dict[str, List[str]]

    result: ShipmentDispatchResponseResult
