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

from __future__ import annotations
from .achwithdrawalschedule import AchWithdrawalSchedule, AchWithdrawalScheduleTypedDict
from ascend_sdk.types import BaseModel
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


class ListAchWithdrawalSchedulesResponseTypedDict(TypedDict):
    r"""A paged response containing a list of ACH withdrawal transfer schedules"""

    ach_withdrawal_schedules: NotRequired[List[AchWithdrawalScheduleTypedDict]]
    r"""The list of transfer schedules"""
    next_page_token: NotRequired[str]
    r"""The next page token"""


class ListAchWithdrawalSchedulesResponse(BaseModel):
    r"""A paged response containing a list of ACH withdrawal transfer schedules"""

    ach_withdrawal_schedules: Optional[List[AchWithdrawalSchedule]] = None
    r"""The list of transfer schedules"""

    next_page_token: Optional[str] = None
    r"""The next page token"""
