Skip to content

feat(api): api update #633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/finch/types/hris/employment_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down
1 change: 1 addition & 0 deletions src/finch/types/hris/employment_data_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
2 changes: 1 addition & 1 deletion src/finch/types/hris/individual_in_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down
12 changes: 6 additions & 6 deletions tests/api_resources/hris/test_pay_statements.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/sandbox/test_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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": [
{
Expand Down
4 changes: 2 additions & 2 deletions tests/api_resources/sandbox/test_employment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down