# generated by datamodel-codegen:
#   filename:  Oms/PendingCancelsResponse.json

from __future__ import annotations

from typing import List

from msgspec import Struct

from .Cancel import Cancel


class PendingCancelsResponse(Struct, omit_defaults=True):
    pending_cancels: List[Cancel]

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

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