# generated by datamodel-codegen:
#   filename:  Boss/DepositsResponse.json

from __future__ import annotations

from typing import List

from msgspec import Struct

from .. import definitions


class DepositsResponse(Struct, omit_defaults=True):
    deposits: List[definitions.Deposit]

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

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