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

from __future__ import annotations
from .compressedorder import CompressedOrder, CompressedOrderTypedDict
from ascend_sdk.types import BaseModel
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


class ListCompressedOrdersResponseTypedDict(TypedDict):
    r"""The response message for listing compressed orders within a basket"""

    compressed_orders: NotRequired[List[CompressedOrderTypedDict]]
    r"""The compressed orders in the basket"""
    next_page_token: NotRequired[str]
    r"""A token to retrieve the next page of results. Pass this value in the `page_token` field in the subsequent call to `ListCompressedOrders` method to retrieve the next page of results."""


class ListCompressedOrdersResponse(BaseModel):
    r"""The response message for listing compressed orders within a basket"""

    compressed_orders: Optional[List[CompressedOrder]] = None
    r"""The compressed orders in the basket"""

    next_page_token: Optional[str] = None
    r"""A token to retrieve the next page of results. Pass this value in the `page_token` field in the subsequent call to `ListCompressedOrders` method to retrieve the next page of results."""
