|
2 | 2 |
|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 |
| -from typing import Iterable |
6 |
| -from typing_extensions import Required, TypedDict |
| 5 | +from typing import Iterable, Optional |
| 6 | +from typing_extensions import Literal, Required, TypedDict |
7 | 7 |
|
8 |
| -__all__ = ["IndividualEnrollManyParams", "Individual"] |
| 8 | +__all__ = [ |
| 9 | + "IndividualEnrollManyParams", |
| 10 | + "Individual", |
| 11 | + "IndividualConfiguration", |
| 12 | + "IndividualConfigurationCompanyContribution", |
| 13 | + "IndividualConfigurationEmployeeDeduction", |
| 14 | +] |
9 | 15 |
|
10 | 16 |
|
11 | 17 | class IndividualEnrollManyParams(TypedDict, total=False):
|
12 | 18 | individuals: Required[Iterable[Individual]]
|
13 | 19 | """Array of the individual_id to enroll and a configuration object."""
|
14 | 20 |
|
15 | 21 |
|
| 22 | +class IndividualConfigurationCompanyContribution(TypedDict, total=False): |
| 23 | + amount: int |
| 24 | + """ |
| 25 | + Amount in cents for fixed type or basis points (1/100th of a percent) for |
| 26 | + percent type |
| 27 | + """ |
| 28 | + |
| 29 | + type: Literal["fixed", "percent"] |
| 30 | + |
| 31 | + |
| 32 | +class IndividualConfigurationEmployeeDeduction(TypedDict, total=False): |
| 33 | + amount: int |
| 34 | + """ |
| 35 | + Amount in cents for fixed type or basis points (1/100th of a percent) for |
| 36 | + percent type |
| 37 | + """ |
| 38 | + |
| 39 | + type: Literal["fixed", "percent"] |
| 40 | + |
| 41 | + |
| 42 | +class IndividualConfiguration(TypedDict, total=False): |
| 43 | + annual_contribution_limit: Literal["individual", "family"] |
| 44 | + """ |
| 45 | + For HSA benefits only - whether the contribution limit is for an individual or |
| 46 | + family |
| 47 | + """ |
| 48 | + |
| 49 | + annual_maximum: Optional[int] |
| 50 | + """Maximum annual amount in cents""" |
| 51 | + |
| 52 | + catch_up: bool |
| 53 | + """For retirement benefits only - whether catch up contributions are enabled""" |
| 54 | + |
| 55 | + company_contribution: IndividualConfigurationCompanyContribution |
| 56 | + |
| 57 | + employee_deduction: IndividualConfigurationEmployeeDeduction |
| 58 | + |
| 59 | + |
16 | 60 | class Individual(TypedDict, total=False):
|
17 |
| - configuration: object |
| 61 | + configuration: IndividualConfiguration |
18 | 62 |
|
19 | 63 | individual_id: str
|
20 | 64 | """Finch id (uuidv4) for the individual to enroll"""
|
0 commit comments