From 63014adffb030fcc6afaaa9727853f0adda8b620 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 21:13:52 +0000 Subject: [PATCH] feat(api): api update --- .stats.yml | 4 ++-- src/finch/types/hris/employment_data.py | 2 +- src/finch/types/hris/employment_data_response.py | 1 + src/finch/types/hris/individual_in_directory.py | 2 +- tests/api_resources/hris/test_pay_statements.py | 12 ++++++------ tests/api_resources/sandbox/test_directory.py | 4 ++-- tests/api_resources/sandbox/test_employment.py | 4 ++-- 7 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.stats.yml b/.stats.yml index 66cac5a2..c0755a51 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 41 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-3224f142ed1542ed2535c155e8eb23b7ea10470c12448d60c3ce584126073a93.yml -openapi_spec_hash: 6c4b213ed5e4f7d1b369e04e4bfb5164 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-01e6814875a5c867925b75141c5450f528389ac6c4b63d91aa341cb8a1249ef9.yml +openapi_spec_hash: ce8289026fb42111f01b37d5138ca100 config_hash: 8303e755d3e16cf28542d5f0aec83851 diff --git a/src/finch/types/hris/employment_data.py b/src/finch/types/hris/employment_data.py index cc18ecc2..d05d7c18 100644 --- a/src/finch/types/hris/employment_data.py +++ b/src/finch/types/hris/employment_data.py @@ -40,7 +40,7 @@ class Manager(BaseModel): class EmploymentData(BaseModel): id: Optional[str] = None - """string A stable Finch `id` (UUID v4) for an individual in the company.""" + """A stable Finch `id` (UUID v4) for an individual in the company.""" class_code: Optional[str] = None """Worker's compensation classification code for this employee""" diff --git a/src/finch/types/hris/employment_data_response.py b/src/finch/types/hris/employment_data_response.py index 605e4473..54f62a6d 100644 --- a/src/finch/types/hris/employment_data_response.py +++ b/src/finch/types/hris/employment_data_response.py @@ -14,3 +14,4 @@ class EmploymentDataResponse(BaseModel): code: Optional[int] = None individual_id: Optional[str] = None + """A stable Finch `id` (UUID v4) for an individual in the company.""" diff --git a/src/finch/types/hris/individual_in_directory.py b/src/finch/types/hris/individual_in_directory.py index c29f34e1..6918c744 100644 --- a/src/finch/types/hris/individual_in_directory.py +++ b/src/finch/types/hris/individual_in_directory.py @@ -19,7 +19,7 @@ class Manager(BaseModel): class IndividualInDirectory(BaseModel): id: Optional[str] = None - """A stable Finch id (UUID v4) for an individual in the company.""" + """A stable Finch `id` (UUID v4) for an individual in the company.""" department: Optional[Department] = None """The department object.""" diff --git a/tests/api_resources/hris/test_pay_statements.py b/tests/api_resources/hris/test_pay_statements.py index b52cc2b7..961bdba3 100644 --- a/tests/api_resources/hris/test_pay_statements.py +++ b/tests/api_resources/hris/test_pay_statements.py @@ -21,14 +21,14 @@ class TestPayStatements: @parametrize def test_method_retrieve_many(self, client: Finch) -> None: pay_statement = client.hris.pay_statements.retrieve_many( - requests=[{"payment_id": "string"}], + requests=[{"payment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}], ) assert_matches_type(SyncResponsesPage[PayStatementResponse], pay_statement, path=["response"]) @parametrize def test_raw_response_retrieve_many(self, client: Finch) -> None: response = client.hris.pay_statements.with_raw_response.retrieve_many( - requests=[{"payment_id": "string"}], + requests=[{"payment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}], ) assert response.is_closed is True @@ -39,7 +39,7 @@ def test_raw_response_retrieve_many(self, client: Finch) -> None: @parametrize def test_streaming_response_retrieve_many(self, client: Finch) -> None: with client.hris.pay_statements.with_streaming_response.retrieve_many( - requests=[{"payment_id": "string"}], + requests=[{"payment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}], ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -56,14 +56,14 @@ class TestAsyncPayStatements: @parametrize async def test_method_retrieve_many(self, async_client: AsyncFinch) -> None: pay_statement = await async_client.hris.pay_statements.retrieve_many( - requests=[{"payment_id": "string"}], + requests=[{"payment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}], ) assert_matches_type(AsyncResponsesPage[PayStatementResponse], pay_statement, path=["response"]) @parametrize async def test_raw_response_retrieve_many(self, async_client: AsyncFinch) -> None: response = await async_client.hris.pay_statements.with_raw_response.retrieve_many( - requests=[{"payment_id": "string"}], + requests=[{"payment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}], ) assert response.is_closed is True @@ -74,7 +74,7 @@ async def test_raw_response_retrieve_many(self, async_client: AsyncFinch) -> Non @parametrize async def test_streaming_response_retrieve_many(self, async_client: AsyncFinch) -> None: async with async_client.hris.pay_statements.with_streaming_response.retrieve_many( - requests=[{"payment_id": "string"}], + requests=[{"payment_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}], ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/sandbox/test_directory.py b/tests/api_resources/sandbox/test_directory.py index 104e1a24..c7adaf51 100644 --- a/tests/api_resources/sandbox/test_directory.py +++ b/tests/api_resources/sandbox/test_directory.py @@ -79,7 +79,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None: "source_id": "source_id", "state": "state", }, - "manager": {"id": "id"}, + "manager": {"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}, "middle_name": "middle_name", "phone_numbers": [ { @@ -193,7 +193,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) -> "source_id": "source_id", "state": "state", }, - "manager": {"id": "id"}, + "manager": {"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}, "middle_name": "middle_name", "phone_numbers": [ { diff --git a/tests/api_resources/sandbox/test_employment.py b/tests/api_resources/sandbox/test_employment.py index 368ae958..0dc28f1e 100644 --- a/tests/api_resources/sandbox/test_employment.py +++ b/tests/api_resources/sandbox/test_employment.py @@ -70,7 +70,7 @@ def test_method_update_with_all_params(self, client: Finch) -> None: "source_id": "source_id", "state": "state", }, - manager={"id": "id"}, + manager={"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}, middle_name="middle_name", source_id="source_id", start_date="start_date", @@ -166,7 +166,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> "source_id": "source_id", "state": "state", }, - manager={"id": "id"}, + manager={"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"}, middle_name="middle_name", source_id="source_id", start_date="start_date",