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

from __future__ import annotations
from .distributionconstraints_distributiontypeinfo import (
    DistributionConstraintsDistributionTypeInfo,
    DistributionConstraintsDistributionTypeInfoTypedDict,
)
from ascend_sdk.types import BaseModel
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


class DistributionConstraintsTypedDict(TypedDict):
    r"""Retirement distribution constraints when withdrawing money from an Apex account"""

    full_distribution_allowed: NotRequired[bool]
    r"""Whether a full distribution withdrawal is allowed"""
    valid_types: NotRequired[List[DistributionConstraintsDistributionTypeInfoTypedDict]]
    r"""Valid distribution types"""


class DistributionConstraints(BaseModel):
    r"""Retirement distribution constraints when withdrawing money from an Apex account"""

    full_distribution_allowed: Optional[bool] = None
    r"""Whether a full distribution withdrawal is allowed"""

    valid_types: Optional[List[DistributionConstraintsDistributionTypeInfo]] = None
    r"""Valid distribution types"""
