Skip to content

Commit fafab61

Browse files
chore(internal): minor restructuring (#84)
1 parent fff39ad commit fafab61

File tree

1 file changed

+7
-27
lines changed

1 file changed

+7
-27
lines changed

src/finch/types/hris/benefit_create_params.py

+7-27
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,18 @@
22

33
from __future__ import annotations
44

5-
from typing import Optional
6-
from typing_extensions import Literal, TypedDict
5+
from typing_extensions import TypedDict
6+
7+
from .benefit_type import BenefitType
8+
from .benefit_frequency import BenefitFrequency
79

810
__all__ = ["BenefitCreateParams"]
911

1012

1113
class BenefitCreateParams(TypedDict, total=False):
1214
description: str
1315

14-
frequency: Optional[Literal["one_time", "every_paycheck"]]
15-
16-
type: Optional[
17-
Literal[
18-
"401k",
19-
"401k_roth",
20-
"401k_loan",
21-
"403b",
22-
"403b_roth",
23-
"457",
24-
"457_roth",
25-
"s125_medical",
26-
"s125_dental",
27-
"s125_vision",
28-
"hsa_pre",
29-
"hsa_post",
30-
"fsa_medical",
31-
"fsa_dependent_care",
32-
"simple_ira",
33-
"simple",
34-
"commuter",
35-
"custom_post_tax",
36-
"custom_pre_tax",
37-
]
38-
]
16+
frequency: BenefitFrequency
17+
18+
type: BenefitType
3919
"""Type of benefit."""

0 commit comments

Comments
 (0)