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

from __future__ import annotations
from architect_py.grpc.models.Folio.AccountSummary import AccountSummary

from msgspec import Struct

from .. import definitions


class AccountSummaryRequest(Struct, omit_defaults=True):
    account: definitions.AccountIdOrName

    # Constructor that takes all field titles as arguments for convenience
    @classmethod
    def new(
        cls,
        account: definitions.AccountIdOrName,
    ):
        return cls(
            account,
        )

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

    @staticmethod
    def get_response_type():
        return AccountSummary

    @staticmethod
    def get_unannotated_response_type():
        return AccountSummary

    @staticmethod
    def get_route() -> str:
        return "/json.architect.Folio/AccountSummary"

    @staticmethod
    def get_rpc_method():
        return "unary"
