"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from .legalnaturalperson import LegalNaturalPerson, LegalNaturalPersonTypedDict
from ascend_sdk.types import BaseModel
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


class ListLegalNaturalPersonsResponseTypedDict(TypedDict):
    r"""The response to list Legal Natural Persons."""

    legal_natural_persons: NotRequired[List[LegalNaturalPersonTypedDict]]
    r"""The list of available legal natural persons"""
    next_page_token: NotRequired[str]
    r"""A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages."""


class ListLegalNaturalPersonsResponse(BaseModel):
    r"""The response to list Legal Natural Persons."""

    legal_natural_persons: Optional[List[LegalNaturalPerson]] = None
    r"""The list of available legal natural persons"""

    next_page_token: Optional[str] = None
    r"""A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages."""
