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

from __future__ import annotations
from .contributionconstraints_contributiontypeinfo import (
    ContributionConstraintsContributionTypeInfo,
    ContributionConstraintsContributionTypeInfoTypedDict,
)
from ascend_sdk.types import BaseModel
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


class ContributionConstraintsTypedDict(TypedDict):
    r"""Retirement contribution constraints when depositing money into an Apex account"""

    only_allow_current_year: NotRequired[bool]
    r"""Whether retirement contributions are only allowed for the current year, with regards to the tax deadline"""
    valid_types: NotRequired[List[ContributionConstraintsContributionTypeInfoTypedDict]]
    r"""Valid contribution types"""


class ContributionConstraints(BaseModel):
    r"""Retirement contribution constraints when depositing money into an Apex account"""

    only_allow_current_year: Optional[bool] = None
    r"""Whether retirement contributions are only allowed for the current year, with regards to the tax deadline"""

    valid_types: Optional[List[ContributionConstraintsContributionTypeInfo]] = None
    r"""Valid contribution types"""
