diff --git a/.stats.yml b/.stats.yml index 0a6da857..7349bde2 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-c7c3b67aee7f77702be22b17af22bdf799b8c95be8028f20ac406af8b5ec0439.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-2526a31a361274411e6cfc64858b1b084a22ffb491a9490374b717534827b3e1.yml diff --git a/src/finch/resources/jobs/automated.py b/src/finch/resources/jobs/automated.py index af6b303c..669221d6 100644 --- a/src/finch/resources/jobs/automated.py +++ b/src/finch/resources/jobs/automated.py @@ -67,8 +67,8 @@ def create( progress. Finch allows a fixed window rate limit of 1 forced refresh per hour per connection. - `w4_data_sync`: Enqueues a job for sync W-4 data for a particular individual, - identified by `individual_id`. This feature is currently in beta. + `w4_form_employee_sync`: Enqueues a job for sync W-4 data for a particular + individual, identified by `individual_id`. This feature is currently in beta. This endpoint is available for _Scale_ tier customers as an add-on. To request access to this endpoint, please contact your Finch account manager. @@ -91,7 +91,7 @@ def create( self, *, individual_id: str, - type: Literal["w4_data_sync"], + type: Literal["w4_form_employee_sync"], # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -109,8 +109,8 @@ def create( progress. Finch allows a fixed window rate limit of 1 forced refresh per hour per connection. - `w4_data_sync`: Enqueues a job for sync W-4 data for a particular individual, - identified by `individual_id`. This feature is currently in beta. + `w4_form_employee_sync`: Enqueues a job for sync W-4 data for a particular + individual, identified by `individual_id`. This feature is currently in beta. This endpoint is available for _Scale_ tier customers as an add-on. To request access to this endpoint, please contact your Finch account manager. @@ -134,7 +134,7 @@ def create( def create( self, *, - type: Literal["data_sync_all"] | Literal["w4_data_sync"], + type: Literal["data_sync_all"] | Literal["w4_form_employee_sync"], individual_id: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -284,8 +284,8 @@ async def create( progress. Finch allows a fixed window rate limit of 1 forced refresh per hour per connection. - `w4_data_sync`: Enqueues a job for sync W-4 data for a particular individual, - identified by `individual_id`. This feature is currently in beta. + `w4_form_employee_sync`: Enqueues a job for sync W-4 data for a particular + individual, identified by `individual_id`. This feature is currently in beta. This endpoint is available for _Scale_ tier customers as an add-on. To request access to this endpoint, please contact your Finch account manager. @@ -308,7 +308,7 @@ async def create( self, *, individual_id: str, - type: Literal["w4_data_sync"], + type: Literal["w4_form_employee_sync"], # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -326,8 +326,8 @@ async def create( progress. Finch allows a fixed window rate limit of 1 forced refresh per hour per connection. - `w4_data_sync`: Enqueues a job for sync W-4 data for a particular individual, - identified by `individual_id`. This feature is currently in beta. + `w4_form_employee_sync`: Enqueues a job for sync W-4 data for a particular + individual, identified by `individual_id`. This feature is currently in beta. This endpoint is available for _Scale_ tier customers as an add-on. To request access to this endpoint, please contact your Finch account manager. @@ -351,7 +351,7 @@ async def create( async def create( self, *, - type: Literal["data_sync_all"] | Literal["w4_data_sync"], + type: Literal["data_sync_all"] | Literal["w4_form_employee_sync"], individual_id: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. diff --git a/src/finch/types/jobs/automated_create_params.py b/src/finch/types/jobs/automated_create_params.py index baa97c11..88b5c9ac 100644 --- a/src/finch/types/jobs/automated_create_params.py +++ b/src/finch/types/jobs/automated_create_params.py @@ -5,7 +5,7 @@ from typing import Union from typing_extensions import Literal, Required, TypeAlias, TypedDict -__all__ = ["AutomatedCreateParams", "DataSyncAll", "W4DataSync"] +__all__ = ["AutomatedCreateParams", "DataSyncAll", "W4FormEmployeeSync"] class DataSyncAll(TypedDict, total=False): @@ -13,12 +13,12 @@ class DataSyncAll(TypedDict, total=False): """The type of job to start.""" -class W4DataSync(TypedDict, total=False): +class W4FormEmployeeSync(TypedDict, total=False): individual_id: Required[str] """The unique ID of the individual for W-4 data sync.""" - type: Required[Literal["w4_data_sync"]] + type: Required[Literal["w4_form_employee_sync"]] """The type of job to start.""" -AutomatedCreateParams: TypeAlias = Union[DataSyncAll, W4DataSync] +AutomatedCreateParams: TypeAlias = Union[DataSyncAll, W4FormEmployeeSync] diff --git a/tests/api_resources/jobs/test_automated.py b/tests/api_resources/jobs/test_automated.py index 2761582d..c7571fa6 100644 --- a/tests/api_resources/jobs/test_automated.py +++ b/tests/api_resources/jobs/test_automated.py @@ -53,7 +53,7 @@ def test_streaming_response_create_overload_1(self, client: Finch) -> None: def test_method_create_overload_2(self, client: Finch) -> None: automated = client.jobs.automated.create( individual_id="individual_id", - type="w4_data_sync", + type="w4_form_employee_sync", ) assert_matches_type(AutomatedCreateResponse, automated, path=["response"]) @@ -61,7 +61,7 @@ def test_method_create_overload_2(self, client: Finch) -> None: def test_raw_response_create_overload_2(self, client: Finch) -> None: response = client.jobs.automated.with_raw_response.create( individual_id="individual_id", - type="w4_data_sync", + type="w4_form_employee_sync", ) assert response.is_closed is True @@ -73,7 +73,7 @@ def test_raw_response_create_overload_2(self, client: Finch) -> None: def test_streaming_response_create_overload_2(self, client: Finch) -> None: with client.jobs.automated.with_streaming_response.create( individual_id="individual_id", - type="w4_data_sync", + type="w4_form_employee_sync", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -193,7 +193,7 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncFin async def test_method_create_overload_2(self, async_client: AsyncFinch) -> None: automated = await async_client.jobs.automated.create( individual_id="individual_id", - type="w4_data_sync", + type="w4_form_employee_sync", ) assert_matches_type(AutomatedCreateResponse, automated, path=["response"]) @@ -201,7 +201,7 @@ async def test_method_create_overload_2(self, async_client: AsyncFinch) -> None: async def test_raw_response_create_overload_2(self, async_client: AsyncFinch) -> None: response = await async_client.jobs.automated.with_raw_response.create( individual_id="individual_id", - type="w4_data_sync", + type="w4_form_employee_sync", ) assert response.is_closed is True @@ -213,7 +213,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncFinch) -> async def test_streaming_response_create_overload_2(self, async_client: AsyncFinch) -> None: async with async_client.jobs.automated.with_streaming_response.create( individual_id="individual_id", - type="w4_data_sync", + type="w4_form_employee_sync", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python"