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

from __future__ import annotations
from .basketorder import BasketOrder, BasketOrderTypedDict
from ascend_sdk.types import BaseModel
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


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

    basket_orders: NotRequired[List[BasketOrderTypedDict]]
    r"""The basket 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 `ListBasketOrders` method to retrieve the next page of results."""


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

    basket_orders: Optional[List[BasketOrder]] = None
    r"""The basket 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 `ListBasketOrders` method to retrieve the next page of results."""
