Skip to content

Commit cb0dc56

Browse files
feat(api): api update (#633)
1 parent 1ad3f9a commit cb0dc56

File tree

7 files changed

+15
-14
lines changed

7 files changed

+15
-14
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-3224f142ed1542ed2535c155e8eb23b7ea10470c12448d60c3ce584126073a93.yml
3-
openapi_spec_hash: 6c4b213ed5e4f7d1b369e04e4bfb5164
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-01e6814875a5c867925b75141c5450f528389ac6c4b63d91aa341cb8a1249ef9.yml
3+
openapi_spec_hash: ce8289026fb42111f01b37d5138ca100
44
config_hash: 8303e755d3e16cf28542d5f0aec83851

src/finch/types/hris/employment_data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Manager(BaseModel):
4040

4141
class EmploymentData(BaseModel):
4242
id: Optional[str] = None
43-
"""string A stable Finch `id` (UUID v4) for an individual in the company."""
43+
"""A stable Finch `id` (UUID v4) for an individual in the company."""
4444

4545
class_code: Optional[str] = None
4646
"""Worker's compensation classification code for this employee"""

src/finch/types/hris/employment_data_response.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ class EmploymentDataResponse(BaseModel):
1414
code: Optional[int] = None
1515

1616
individual_id: Optional[str] = None
17+
"""A stable Finch `id` (UUID v4) for an individual in the company."""

src/finch/types/hris/individual_in_directory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Manager(BaseModel):
1919

2020
class IndividualInDirectory(BaseModel):
2121
id: Optional[str] = None
22-
"""A stable Finch id (UUID v4) for an individual in the company."""
22+
"""A stable Finch `id` (UUID v4) for an individual in the company."""
2323

2424
department: Optional[Department] = None
2525
"""The department object."""

tests/api_resources/hris/test_pay_statements.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ class TestPayStatements:
2121
@parametrize
2222
def test_method_retrieve_many(self, client: Finch) -> None:
2323
pay_statement = client.hris.pay_statements.retrieve_many(
24-
requests=[{"payment_id": "string"}],
24+
requests=[{"payment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}],
2525
)
2626
assert_matches_type(SyncResponsesPage[PayStatementResponse], pay_statement, path=["response"])
2727

2828
@parametrize
2929
def test_raw_response_retrieve_many(self, client: Finch) -> None:
3030
response = client.hris.pay_statements.with_raw_response.retrieve_many(
31-
requests=[{"payment_id": "string"}],
31+
requests=[{"payment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}],
3232
)
3333

3434
assert response.is_closed is True
@@ -39,7 +39,7 @@ def test_raw_response_retrieve_many(self, client: Finch) -> None:
3939
@parametrize
4040
def test_streaming_response_retrieve_many(self, client: Finch) -> None:
4141
with client.hris.pay_statements.with_streaming_response.retrieve_many(
42-
requests=[{"payment_id": "string"}],
42+
requests=[{"payment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}],
4343
) as response:
4444
assert not response.is_closed
4545
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -56,14 +56,14 @@ class TestAsyncPayStatements:
5656
@parametrize
5757
async def test_method_retrieve_many(self, async_client: AsyncFinch) -> None:
5858
pay_statement = await async_client.hris.pay_statements.retrieve_many(
59-
requests=[{"payment_id": "string"}],
59+
requests=[{"payment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}],
6060
)
6161
assert_matches_type(AsyncResponsesPage[PayStatementResponse], pay_statement, path=["response"])
6262

6363
@parametrize
6464
async def test_raw_response_retrieve_many(self, async_client: AsyncFinch) -> None:
6565
response = await async_client.hris.pay_statements.with_raw_response.retrieve_many(
66-
requests=[{"payment_id": "string"}],
66+
requests=[{"payment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}],
6767
)
6868

6969
assert response.is_closed is True
@@ -74,7 +74,7 @@ async def test_raw_response_retrieve_many(self, async_client: AsyncFinch) -> Non
7474
@parametrize
7575
async def test_streaming_response_retrieve_many(self, async_client: AsyncFinch) -> None:
7676
async with async_client.hris.pay_statements.with_streaming_response.retrieve_many(
77-
requests=[{"payment_id": "string"}],
77+
requests=[{"payment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}],
7878
) as response:
7979
assert not response.is_closed
8080
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

tests/api_resources/sandbox/test_directory.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None:
7979
"source_id": "source_id",
8080
"state": "state",
8181
},
82-
"manager": {"id": "id"},
82+
"manager": {"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"},
8383
"middle_name": "middle_name",
8484
"phone_numbers": [
8585
{
@@ -193,7 +193,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) ->
193193
"source_id": "source_id",
194194
"state": "state",
195195
},
196-
"manager": {"id": "id"},
196+
"manager": {"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"},
197197
"middle_name": "middle_name",
198198
"phone_numbers": [
199199
{

tests/api_resources/sandbox/test_employment.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def test_method_update_with_all_params(self, client: Finch) -> None:
7070
"source_id": "source_id",
7171
"state": "state",
7272
},
73-
manager={"id": "id"},
73+
manager={"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"},
7474
middle_name="middle_name",
7575
source_id="source_id",
7676
start_date="start_date",
@@ -166,7 +166,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) ->
166166
"source_id": "source_id",
167167
"state": "state",
168168
},
169-
manager={"id": "id"},
169+
manager={"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"},
170170
middle_name="middle_name",
171171
source_id="source_id",
172172
start_date="start_date",

0 commit comments

Comments
 (0)