Skip to content

Commit 9accf06

Browse files
feat(api): api update (#635)
1 parent cb0dc56 commit 9accf06

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 41
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-01e6814875a5c867925b75141c5450f528389ac6c4b63d91aa341cb8a1249ef9.yml
3-
openapi_spec_hash: ce8289026fb42111f01b37d5138ca100
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-df94542d153a8558bbe63b273e8d6ae79f46b8d81df1ebeeacd07fee6f9ee22a.yml
3+
openapi_spec_hash: aeb92e382ee0a9b86e2ba39e54cdfe9a
44
config_hash: 8303e755d3e16cf28542d5f0aec83851

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

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
from __future__ import annotations
44

5-
from typing import Iterable, Optional
6-
from typing_extensions import Literal, TypedDict
5+
from typing import Union, Iterable, Optional
6+
from datetime import date
7+
from typing_extensions import Literal, Annotated, TypedDict
8+
9+
from ...._utils import PropertyInfo
710

811
__all__ = [
912
"IndividualEnrollManyParams",
@@ -54,6 +57,9 @@ class IndividualConfiguration(TypedDict, total=False):
5457

5558
company_contribution: IndividualConfigurationCompanyContribution
5659

60+
effective_date: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
61+
"""The date the enrollment will take effect"""
62+
5763
employee_deduction: IndividualConfigurationEmployeeDeduction
5864

5965

tests/api_resources/hris/benefits/test_individuals.py

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
from finch import Finch, AsyncFinch
1111
from tests.utils import assert_matches_type
12+
from finch._utils import parse_date
1213
from finch.pagination import SyncSinglePage, AsyncSinglePage
1314
from finch.types.hris.benefits import (
1415
IndividualBenefit,
@@ -44,6 +45,7 @@ def test_method_enroll_many_with_all_params(self, client: Finch) -> None:
4445
"amount": 400,
4546
"type": "fixed",
4647
},
48+
"effective_date": parse_date("2025-01-01"),
4749
"employee_deduction": {
4850
"amount": 1000,
4951
"type": "fixed",
@@ -241,6 +243,7 @@ async def test_method_enroll_many_with_all_params(self, async_client: AsyncFinch
241243
"amount": 400,
242244
"type": "fixed",
243245
},
246+
"effective_date": parse_date("2025-01-01"),
244247
"employee_deduction": {
245248
"amount": 1000,
246249
"type": "fixed",

0 commit comments

Comments
 (0)