Skip to content

Commit b676295

Browse files
feat(api): api update
1 parent 3b99127 commit b676295

File tree

4 files changed

+32
-5
lines changed

4 files changed

+32
-5
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-5f9c0770c8be0fa779cbb640c25043cc1d5514236b8d0d6791c822dd7e00ffe6.yml
3-
openapi_spec_hash: d8df70c1dc1ba1ebcd572c1fab58eec6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-b57bba4d2e9b4a64e1c8c3f037aad70e35a164bb1f3b5082948717b94d501a30.yml
3+
openapi_spec_hash: 7e111f64fb635d9dc76da7eaedd0296f
44
config_hash: 6d3585c0032e08d723d077d660fc8448

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from typing import Union, Iterable, Optional
66
from datetime import date
7-
from typing_extensions import Literal, Annotated, TypedDict
7+
from typing_extensions import Literal, Required, Annotated, TypedDict
88

99
from ...._utils import PropertyInfo
1010

@@ -13,6 +13,7 @@
1313
"Individual",
1414
"IndividualConfiguration",
1515
"IndividualConfigurationCompanyContribution",
16+
"IndividualConfigurationCompanyContributionTier",
1617
"IndividualConfigurationEmployeeDeduction",
1718
]
1819

@@ -22,14 +23,28 @@ class IndividualEnrollManyParams(TypedDict, total=False):
2223
"""Array of the individual_id to enroll and a configuration object."""
2324

2425

26+
class IndividualConfigurationCompanyContributionTier(TypedDict, total=False):
27+
match: Required[int]
28+
"""The employer match percentage in basis points (0-10000 = 0-100%)"""
29+
30+
threshold: Required[int]
31+
"""The employee contribution threshold in basis points (0-10000 = 0-100%)"""
32+
33+
2534
class IndividualConfigurationCompanyContribution(TypedDict, total=False):
2635
amount: int
2736
"""
2837
Amount in cents for fixed type or basis points (1/100th of a percent) for
2938
percent type
3039
"""
3140

32-
type: Literal["fixed", "percent"]
41+
tiers: Iterable[IndividualConfigurationCompanyContributionTier]
42+
"""
43+
Array of tier objects for tiered contribution matching (required when type is
44+
tiered)
45+
"""
46+
47+
type: Literal["fixed", "percent", "tiered"]
3348

3449

3550
class IndividualConfigurationEmployeeDeduction(TypedDict, total=False):

src/finch/types/hris/supported_benefit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class SupportedBenefit(BaseModel):
1313
annual_maximum: Optional[bool] = None
1414
"""Whether the provider supports an annual maximum for this benefit."""
1515

16-
company_contribution: Optional[List[Optional[Literal["fixed", "percent"]]]] = None
16+
company_contribution: Optional[List[Optional[Literal["fixed", "percent", "tiered"]]]] = None
1717
"""Supported contribution types.
1818
1919
An empty array indicates contributions are not supported.

tests/api_resources/hris/benefits/test_individuals.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ def test_method_enroll_many_with_all_params(self, client: Finch) -> None:
4343
"catch_up": True,
4444
"company_contribution": {
4545
"amount": 0,
46+
"tiers": [
47+
{
48+
"match": 0,
49+
"threshold": 0,
50+
}
51+
],
4652
"type": "fixed",
4753
},
4854
"effective_date": parse_date("2019-12-27"),
@@ -243,6 +249,12 @@ async def test_method_enroll_many_with_all_params(self, async_client: AsyncFinch
243249
"catch_up": True,
244250
"company_contribution": {
245251
"amount": 0,
252+
"tiers": [
253+
{
254+
"match": 0,
255+
"threshold": 0,
256+
}
257+
],
246258
"type": "fixed",
247259
},
248260
"effective_date": parse_date("2019-12-27"),

0 commit comments

Comments
 (0)