Skip to content

Commit de22285

Browse files
feat(api): api update (#551)
1 parent a5fff19 commit de22285

File tree

2 files changed

+49
-5
lines changed

2 files changed

+49
-5
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 39
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-8782658ecd57622a964238df7b5dd997ac63789f8220852660ecf32fa115296b.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-cf610d4dbb7e3d84161b5783a0861b2e551422eb5cf727dde86a839325d7ef76.yml

src/finch/types/hris/benefits/individual_enroll_many_params.py

+48-4
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,63 @@
22

33
from __future__ import annotations
44

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
77

8-
__all__ = ["IndividualEnrollManyParams", "Individual"]
8+
__all__ = [
9+
"IndividualEnrollManyParams",
10+
"Individual",
11+
"IndividualConfiguration",
12+
"IndividualConfigurationCompanyContribution",
13+
"IndividualConfigurationEmployeeDeduction",
14+
]
915

1016

1117
class IndividualEnrollManyParams(TypedDict, total=False):
1218
individuals: Required[Iterable[Individual]]
1319
"""Array of the individual_id to enroll and a configuration object."""
1420

1521

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+
1660
class Individual(TypedDict, total=False):
17-
configuration: object
61+
configuration: IndividualConfiguration
1862

1963
individual_id: str
2064
"""Finch id (uuidv4) for the individual to enroll"""

0 commit comments

Comments
 (0)