# This file was auto-generated by Fern from our API Definition.

from ..core.unchecked_base_model import UncheckedBaseModel
import typing
import pydantic
from .error import Error
from .cash_drawer_shift_summary import CashDrawerShiftSummary
from ..core.pydantic_utilities import IS_PYDANTIC_V2


class ListCashDrawerShiftsResponse(UncheckedBaseModel):
    cursor: typing.Optional[str] = pydantic.Field(default=None)
    """
    Opaque cursor for fetching the next page of results. Cursor is not
    present in the last page of results.
    """

    errors: typing.Optional[typing.List[Error]] = pydantic.Field(default=None)
    """
    Any errors that occurred during the request.
    """

    cash_drawer_shifts: typing.Optional[typing.List[CashDrawerShiftSummary]] = pydantic.Field(default=None)
    """
    A collection of CashDrawerShiftSummary objects for shifts that match
    the query.
    """

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
