# generated by datamodel-codegen:
#   filename:  Folio/HistoricalOrdersResponse.json

from __future__ import annotations

from typing import List

from msgspec import Struct

from ..Oms.Order import Order


class HistoricalOrdersResponse(Struct, omit_defaults=True):
    orders: List[Order]

    # Constructor that takes all field titles as arguments for convenience
    @classmethod
    def new(
        cls,
        orders: List[Order],
    ):
        return cls(
            orders,
        )

    def __str__(self) -> str:
        return f"HistoricalOrdersResponse(orders={self.orders})"
