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

from __future__ import annotations
from .errorresponse import ErrorResponse, ErrorResponseTypedDict
from .shipmentprice import ShipmentPrice, ShipmentPriceTypedDict
from postivo_client.types import BaseModel
from typing import Dict, List, Union
from typing_extensions import TypeAliasType, TypedDict


ShipmentPriceResponseResultTypedDict = TypeAliasType(
    "ShipmentPriceResponseResultTypedDict",
    Union[ErrorResponseTypedDict, List[ShipmentPriceTypedDict]],
)


ShipmentPriceResponseResult = TypeAliasType(
    "ShipmentPriceResponseResult", Union[ErrorResponse, List[ShipmentPrice]]
)


class ShipmentPriceResponseTypedDict(TypedDict):
    headers: Dict[str, List[str]]
    result: ShipmentPriceResponseResultTypedDict


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

    result: ShipmentPriceResponseResult
