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

from __future__ import annotations
from .bankrelationship import BankRelationship, BankRelationshipTypedDict
from ascend_sdk.types import BaseModel
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


class ListBankRelationshipsResponseTypedDict(TypedDict):
    r"""Returns bank relationships for a parent account."""

    bank_relationships: NotRequired[List[BankRelationshipTypedDict]]
    r"""The bank relationships from the specified account."""
    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 ListBankRelationshipsResponse(BaseModel):
    r"""Returns bank relationships for a parent account."""

    bank_relationships: Optional[List[BankRelationship]] = None
    r"""The bank relationships from the specified account."""

    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."""
