Skip to content

Commit 821a77f

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): api update (#532)
1 parent a5ce0e7 commit 821a77f

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
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-c7c3b67aee7f77702be22b17af22bdf799b8c95be8028f20ac406af8b5ec0439.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-2526a31a361274411e6cfc64858b1b084a22ffb491a9490374b717534827b3e1.yml

src/finch/resources/jobs/automated.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ def create(
6767
progress. Finch allows a fixed window rate limit of 1 forced refresh per hour
6868
per connection.
6969
70-
`w4_data_sync`: Enqueues a job for sync W-4 data for a particular individual,
71-
identified by `individual_id`. This feature is currently in beta.
70+
`w4_form_employee_sync`: Enqueues a job for sync W-4 data for a particular
71+
individual, identified by `individual_id`. This feature is currently in beta.
7272
7373
This endpoint is available for _Scale_ tier customers as an add-on. To request
7474
access to this endpoint, please contact your Finch account manager.
@@ -91,7 +91,7 @@ def create(
9191
self,
9292
*,
9393
individual_id: str,
94-
type: Literal["w4_data_sync"],
94+
type: Literal["w4_form_employee_sync"],
9595
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9696
# The extra values given here take precedence over values defined on the client or passed to this method.
9797
extra_headers: Headers | None = None,
@@ -109,8 +109,8 @@ def create(
109109
progress. Finch allows a fixed window rate limit of 1 forced refresh per hour
110110
per connection.
111111
112-
`w4_data_sync`: Enqueues a job for sync W-4 data for a particular individual,
113-
identified by `individual_id`. This feature is currently in beta.
112+
`w4_form_employee_sync`: Enqueues a job for sync W-4 data for a particular
113+
individual, identified by `individual_id`. This feature is currently in beta.
114114
115115
This endpoint is available for _Scale_ tier customers as an add-on. To request
116116
access to this endpoint, please contact your Finch account manager.
@@ -134,7 +134,7 @@ def create(
134134
def create(
135135
self,
136136
*,
137-
type: Literal["data_sync_all"] | Literal["w4_data_sync"],
137+
type: Literal["data_sync_all"] | Literal["w4_form_employee_sync"],
138138
individual_id: str | NotGiven = NOT_GIVEN,
139139
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
140140
# 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(
284284
progress. Finch allows a fixed window rate limit of 1 forced refresh per hour
285285
per connection.
286286
287-
`w4_data_sync`: Enqueues a job for sync W-4 data for a particular individual,
288-
identified by `individual_id`. This feature is currently in beta.
287+
`w4_form_employee_sync`: Enqueues a job for sync W-4 data for a particular
288+
individual, identified by `individual_id`. This feature is currently in beta.
289289
290290
This endpoint is available for _Scale_ tier customers as an add-on. To request
291291
access to this endpoint, please contact your Finch account manager.
@@ -308,7 +308,7 @@ async def create(
308308
self,
309309
*,
310310
individual_id: str,
311-
type: Literal["w4_data_sync"],
311+
type: Literal["w4_form_employee_sync"],
312312
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
313313
# The extra values given here take precedence over values defined on the client or passed to this method.
314314
extra_headers: Headers | None = None,
@@ -326,8 +326,8 @@ async def create(
326326
progress. Finch allows a fixed window rate limit of 1 forced refresh per hour
327327
per connection.
328328
329-
`w4_data_sync`: Enqueues a job for sync W-4 data for a particular individual,
330-
identified by `individual_id`. This feature is currently in beta.
329+
`w4_form_employee_sync`: Enqueues a job for sync W-4 data for a particular
330+
individual, identified by `individual_id`. This feature is currently in beta.
331331
332332
This endpoint is available for _Scale_ tier customers as an add-on. To request
333333
access to this endpoint, please contact your Finch account manager.
@@ -351,7 +351,7 @@ async def create(
351351
async def create(
352352
self,
353353
*,
354-
type: Literal["data_sync_all"] | Literal["w4_data_sync"],
354+
type: Literal["data_sync_all"] | Literal["w4_form_employee_sync"],
355355
individual_id: str | NotGiven = NOT_GIVEN,
356356
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
357357
# The extra values given here take precedence over values defined on the client or passed to this method.

src/finch/types/jobs/automated_create_params.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
from typing import Union
66
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

8-
__all__ = ["AutomatedCreateParams", "DataSyncAll", "W4DataSync"]
8+
__all__ = ["AutomatedCreateParams", "DataSyncAll", "W4FormEmployeeSync"]
99

1010

1111
class DataSyncAll(TypedDict, total=False):
1212
type: Required[Literal["data_sync_all"]]
1313
"""The type of job to start."""
1414

1515

16-
class W4DataSync(TypedDict, total=False):
16+
class W4FormEmployeeSync(TypedDict, total=False):
1717
individual_id: Required[str]
1818
"""The unique ID of the individual for W-4 data sync."""
1919

20-
type: Required[Literal["w4_data_sync"]]
20+
type: Required[Literal["w4_form_employee_sync"]]
2121
"""The type of job to start."""
2222

2323

24-
AutomatedCreateParams: TypeAlias = Union[DataSyncAll, W4DataSync]
24+
AutomatedCreateParams: TypeAlias = Union[DataSyncAll, W4FormEmployeeSync]

tests/api_resources/jobs/test_automated.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ def test_streaming_response_create_overload_1(self, client: Finch) -> None:
5353
def test_method_create_overload_2(self, client: Finch) -> None:
5454
automated = client.jobs.automated.create(
5555
individual_id="individual_id",
56-
type="w4_data_sync",
56+
type="w4_form_employee_sync",
5757
)
5858
assert_matches_type(AutomatedCreateResponse, automated, path=["response"])
5959

6060
@parametrize
6161
def test_raw_response_create_overload_2(self, client: Finch) -> None:
6262
response = client.jobs.automated.with_raw_response.create(
6363
individual_id="individual_id",
64-
type="w4_data_sync",
64+
type="w4_form_employee_sync",
6565
)
6666

6767
assert response.is_closed is True
@@ -73,7 +73,7 @@ def test_raw_response_create_overload_2(self, client: Finch) -> None:
7373
def test_streaming_response_create_overload_2(self, client: Finch) -> None:
7474
with client.jobs.automated.with_streaming_response.create(
7575
individual_id="individual_id",
76-
type="w4_data_sync",
76+
type="w4_form_employee_sync",
7777
) as response:
7878
assert not response.is_closed
7979
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -193,15 +193,15 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncFin
193193
async def test_method_create_overload_2(self, async_client: AsyncFinch) -> None:
194194
automated = await async_client.jobs.automated.create(
195195
individual_id="individual_id",
196-
type="w4_data_sync",
196+
type="w4_form_employee_sync",
197197
)
198198
assert_matches_type(AutomatedCreateResponse, automated, path=["response"])
199199

200200
@parametrize
201201
async def test_raw_response_create_overload_2(self, async_client: AsyncFinch) -> None:
202202
response = await async_client.jobs.automated.with_raw_response.create(
203203
individual_id="individual_id",
204-
type="w4_data_sync",
204+
type="w4_form_employee_sync",
205205
)
206206

207207
assert response.is_closed is True
@@ -213,7 +213,7 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncFinch) ->
213213
async def test_streaming_response_create_overload_2(self, async_client: AsyncFinch) -> None:
214214
async with async_client.jobs.automated.with_streaming_response.create(
215215
individual_id="individual_id",
216-
type="w4_data_sync",
216+
type="w4_form_employee_sync",
217217
) as response:
218218
assert not response.is_closed
219219
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

0 commit comments

Comments
 (0)