diff --git a/.stats.yml b/.stats.yml index bbc587b1..48015130 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 39 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-f07b743d2ab438d7cdb6b7cfa8c0b3859ec148f84027baebbb50c6ff56cb6aef.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-1d705472a04ca3f84ed5fe8878b537e6359cab6c48cdfd3cd08656473e373f80.yml diff --git a/src/finch/resources/sandbox/employment.py b/src/finch/resources/sandbox/employment.py index 3adb0c1a..7a79c759 100644 --- a/src/finch/resources/sandbox/employment.py +++ b/src/finch/resources/sandbox/employment.py @@ -3,6 +3,7 @@ from __future__ import annotations from typing import Iterable, Optional +from typing_extensions import Literal import httpx @@ -52,6 +53,10 @@ def update( custom_fields: Iterable[employment_update_params.CustomField] | NotGiven = NOT_GIVEN, department: Optional[employment_update_params.Department] | NotGiven = NOT_GIVEN, employment: Optional[employment_update_params.Employment] | NotGiven = NOT_GIVEN, + employment_status: Optional[ + Literal["active", "deceased", "leave", "onboarding", "prehire", "retired", "terminated"] + ] + | NotGiven = NOT_GIVEN, end_date: Optional[str] | NotGiven = NOT_GIVEN, first_name: Optional[str] | NotGiven = NOT_GIVEN, income: Optional[IncomeParam] | NotGiven = NOT_GIVEN, @@ -86,6 +91,8 @@ def update( employment: The employment object. + employment_status: The detailed employment status of the individual. + first_name: The legal first name of the individual. income: The employee's income as reported by the provider. This may not always be @@ -126,6 +133,7 @@ def update( "custom_fields": custom_fields, "department": department, "employment": employment, + "employment_status": employment_status, "end_date": end_date, "first_name": first_name, "income": income, @@ -177,6 +185,10 @@ async def update( custom_fields: Iterable[employment_update_params.CustomField] | NotGiven = NOT_GIVEN, department: Optional[employment_update_params.Department] | NotGiven = NOT_GIVEN, employment: Optional[employment_update_params.Employment] | NotGiven = NOT_GIVEN, + employment_status: Optional[ + Literal["active", "deceased", "leave", "onboarding", "prehire", "retired", "terminated"] + ] + | NotGiven = NOT_GIVEN, end_date: Optional[str] | NotGiven = NOT_GIVEN, first_name: Optional[str] | NotGiven = NOT_GIVEN, income: Optional[IncomeParam] | NotGiven = NOT_GIVEN, @@ -211,6 +223,8 @@ async def update( employment: The employment object. + employment_status: The detailed employment status of the individual. + first_name: The legal first name of the individual. income: The employee's income as reported by the provider. This may not always be @@ -251,6 +265,7 @@ async def update( "custom_fields": custom_fields, "department": department, "employment": employment, + "employment_status": employment_status, "end_date": end_date, "first_name": first_name, "income": income, diff --git a/src/finch/types/account_update_event.py b/src/finch/types/account_update_event.py index fe85887d..792283ec 100644 --- a/src/finch/types/account_update_event.py +++ b/src/finch/types/account_update_event.py @@ -187,6 +187,8 @@ class AccountUpdateEventDataAuthenticationMethodSupportedFieldsEmployment(BaseMo employment: Optional[AccountUpdateEventDataAuthenticationMethodSupportedFieldsEmploymentEmployment] = None + employment_status: Optional[bool] = None + end_date: Optional[bool] = None first_name: Optional[bool] = None diff --git a/src/finch/types/hris/employment_data.py b/src/finch/types/hris/employment_data.py index 6c9a161d..cc18ecc2 100644 --- a/src/finch/types/hris/employment_data.py +++ b/src/finch/types/hris/employment_data.py @@ -57,6 +57,15 @@ class EmploymentData(BaseModel): employment: Optional[Employment] = None """The employment object.""" + employment_status: Optional[ + Literal["active", "deceased", "leave", "onboarding", "prehire", "retired", "terminated"] + ] = None + """The detailed employment status of the individual. + + Available options: `active`, `deceased`, `leave`, `onboarding`, `prehire`, + `retired`, `terminated`. + """ + end_date: Optional[str] = None first_name: Optional[str] = None diff --git a/src/finch/types/provider.py b/src/finch/types/provider.py index 8e81f3a5..b7051379 100644 --- a/src/finch/types/provider.py +++ b/src/finch/types/provider.py @@ -184,6 +184,8 @@ class AuthenticationMethodSupportedFieldsEmployment(BaseModel): employment: Optional[AuthenticationMethodSupportedFieldsEmploymentEmployment] = None + employment_status: Optional[bool] = None + end_date: Optional[bool] = None first_name: Optional[bool] = None diff --git a/src/finch/types/sandbox/directory_create_params.py b/src/finch/types/sandbox/directory_create_params.py index f8320f44..1684d178 100644 --- a/src/finch/types/sandbox/directory_create_params.py +++ b/src/finch/types/sandbox/directory_create_params.py @@ -90,6 +90,11 @@ class Body(TypedDict, total=False): employment: Optional[BodyEmployment] """The employment object.""" + employment_status: Optional[ + Literal["active", "deceased", "leave", "onboarding", "prehire", "retired", "terminated"] + ] + """The detailed employment status of the individual.""" + encrypted_ssn: Optional[str] """Social Security Number of the individual in **encrypted** format. diff --git a/src/finch/types/sandbox/employment_update_params.py b/src/finch/types/sandbox/employment_update_params.py index 0b6382c5..651e5eaa 100644 --- a/src/finch/types/sandbox/employment_update_params.py +++ b/src/finch/types/sandbox/employment_update_params.py @@ -28,6 +28,11 @@ class EmploymentUpdateParams(TypedDict, total=False): employment: Optional[Employment] """The employment object.""" + employment_status: Optional[ + Literal["active", "deceased", "leave", "onboarding", "prehire", "retired", "terminated"] + ] + """The detailed employment status of the individual.""" + end_date: Optional[str] first_name: Optional[str] diff --git a/src/finch/types/sandbox/employment_update_response.py b/src/finch/types/sandbox/employment_update_response.py index 803332ea..072af47f 100644 --- a/src/finch/types/sandbox/employment_update_response.py +++ b/src/finch/types/sandbox/employment_update_response.py @@ -58,6 +58,11 @@ class EmploymentUpdateResponse(BaseModel): employment: Optional[Employment] = None """The employment object.""" + employment_status: Optional[ + Literal["active", "deceased", "leave", "onboarding", "prehire", "retired", "terminated"] + ] = None + """The detailed employment status of the individual.""" + end_date: Optional[str] = None first_name: Optional[str] = None diff --git a/tests/api_resources/sandbox/test_employment.py b/tests/api_resources/sandbox/test_employment.py index 96546527..677cbc8e 100644 --- a/tests/api_resources/sandbox/test_employment.py +++ b/tests/api_resources/sandbox/test_employment.py @@ -40,6 +40,7 @@ def test_method_update_with_all_params(self, client: Finch) -> None: "subtype": "full_time", "type": "employee", }, + employment_status="active", end_date="end_date", first_name="first_name", income={ @@ -135,6 +136,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> "subtype": "full_time", "type": "employee", }, + employment_status="active", end_date="end_date", first_name="first_name", income={