From f8194d748c7b37fa624a3ca36f0f29b6243aa7d5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:48:46 +0000 Subject: [PATCH 1/2] fix(payroll): pay_statement_item is now a direct subresource of hris instead of company --- .stats.yml | 4 +- api.md | 20 ++--- src/finch/resources/hris/__init__.py | 14 ++++ .../resources/hris/{company => }/company.py | 50 +++---------- src/finch/resources/hris/company/__init__.py | 33 --------- src/finch/resources/hris/hris.py | 48 ++++++++++-- .../pay_statement_item/__init__.py | 0 .../pay_statement_item/pay_statement_item.py | 20 ++--- .../{company => }/pay_statement_item/rules.py | 26 +++---- src/finch/types/hris/__init__.py | 2 + src/finch/types/hris/{company => }/company.py | 4 +- src/finch/types/hris/company/__init__.py | 7 -- .../pay_statement_item/__init__.py | 0 .../pay_statement_item/rule_create_params.py | 2 +- .../rule_create_response.py | 2 +- .../pay_statement_item/rule_delete_params.py | 2 +- .../rule_delete_response.py | 2 +- .../pay_statement_item/rule_list_params.py | 2 +- .../pay_statement_item/rule_list_response.py | 2 +- .../pay_statement_item/rule_update_params.py | 4 +- .../rule_update_response.py | 2 +- .../pay_statement_item_list_params.py | 4 +- .../pay_statement_item_list_response.py | 2 +- .../company/pay_statement_item/__init__.py | 1 - .../__init__.py | 0 .../pay_statement_item/test_rules.py | 74 +++++++++---------- tests/api_resources/hris/test_company.py | 2 +- .../{company => }/test_pay_statement_item.py | 18 ++--- 28 files changed, 161 insertions(+), 186 deletions(-) rename src/finch/resources/hris/{company => }/company.py (76%) delete mode 100644 src/finch/resources/hris/company/__init__.py rename src/finch/resources/hris/{company => }/pay_statement_item/__init__.py (100%) rename src/finch/resources/hris/{company => }/pay_statement_item/pay_statement_item.py (93%) rename src/finch/resources/hris/{company => }/pay_statement_item/rules.py (95%) rename src/finch/types/hris/{company => }/company.py (97%) delete mode 100644 src/finch/types/hris/company/__init__.py rename src/finch/types/hris/{company => }/pay_statement_item/__init__.py (100%) rename src/finch/types/hris/{company => }/pay_statement_item/rule_create_params.py (97%) rename src/finch/types/hris/{company => }/pay_statement_item/rule_create_response.py (98%) rename src/finch/types/hris/{company => }/pay_statement_item/rule_delete_params.py (89%) rename src/finch/types/hris/{company => }/pay_statement_item/rule_delete_response.py (98%) rename src/finch/types/hris/{company => }/pay_statement_item/rule_list_params.py (89%) rename src/finch/types/hris/{company => }/pay_statement_item/rule_list_response.py (98%) rename src/finch/types/hris/{company => }/pay_statement_item/rule_update_params.py (84%) rename src/finch/types/hris/{company => }/pay_statement_item/rule_update_response.py (98%) rename src/finch/types/hris/{company => }/pay_statement_item_list_params.py (94%) rename src/finch/types/hris/{company => }/pay_statement_item_list_response.py (97%) delete mode 100644 tests/api_resources/hris/company/pay_statement_item/__init__.py rename tests/api_resources/hris/{company => pay_statement_item}/__init__.py (100%) rename tests/api_resources/hris/{company => }/pay_statement_item/test_rules.py (79%) rename tests/api_resources/hris/{company => }/test_pay_statement_item.py (83%) diff --git a/.stats.yml b/.stats.yml index b7a7420d..431aa1d4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 48 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-7e39b6a20bf3e1f23ad832300b73ae92b6f6ce7c9d86eaa8fcc0710b51455f17.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-ecd3f6c28edae07dbe9f54d8040a6d7f2af5ac032b20f8df06065542478e4e73.yml openapi_spec_hash: 5e0e04e7274494062ff46ac85d358f5b -config_hash: 8b3c2a32014346513c18d98cbb752d2c +config_hash: 9ae56f40cec7304896138bfad5caf748 diff --git a/api.md b/api.md index ccbf6777..04649d45 100644 --- a/api.md +++ b/api.md @@ -41,26 +41,26 @@ from finch.types.hris import Company Methods: -- client.hris.company.retrieve(\*\*params) -> Company +- client.hris.company.retrieve(\*\*params) -> Company -### PayStatementItem +## PayStatementItem Types: ```python -from finch.types.hris.company import PayStatementItemListResponse +from finch.types.hris import PayStatementItemListResponse ``` Methods: -- client.hris.company.pay_statement_item.list(\*\*params) -> SyncResponsesPage[PayStatementItemListResponse] +- client.hris.pay_statement_item.list(\*\*params) -> SyncResponsesPage[PayStatementItemListResponse] -#### Rules +### Rules Types: ```python -from finch.types.hris.company.pay_statement_item import ( +from finch.types.hris.pay_statement_item import ( RuleCreateResponse, RuleUpdateResponse, RuleListResponse, @@ -70,10 +70,10 @@ from finch.types.hris.company.pay_statement_item import ( Methods: -- client.hris.company.pay_statement_item.rules.create(\*\*params) -> RuleCreateResponse -- client.hris.company.pay_statement_item.rules.update(rule_id, \*\*params) -> RuleUpdateResponse -- client.hris.company.pay_statement_item.rules.list(\*\*params) -> SyncResponsesPage[RuleListResponse] -- client.hris.company.pay_statement_item.rules.delete(rule_id, \*\*params) -> RuleDeleteResponse +- client.hris.pay_statement_item.rules.create(\*\*params) -> RuleCreateResponse +- client.hris.pay_statement_item.rules.update(rule_id, \*\*params) -> RuleUpdateResponse +- client.hris.pay_statement_item.rules.list(\*\*params) -> SyncResponsesPage[RuleListResponse] +- client.hris.pay_statement_item.rules.delete(rule_id, \*\*params) -> RuleDeleteResponse ## Directory diff --git a/src/finch/resources/hris/__init__.py b/src/finch/resources/hris/__init__.py index 5a795829..8a1ec63a 100644 --- a/src/finch/resources/hris/__init__.py +++ b/src/finch/resources/hris/__init__.py @@ -72,6 +72,14 @@ PayStatementsWithStreamingResponse, AsyncPayStatementsWithStreamingResponse, ) +from .pay_statement_item import ( + PayStatementItem, + AsyncPayStatementItem, + PayStatementItemWithRawResponse, + AsyncPayStatementItemWithRawResponse, + PayStatementItemWithStreamingResponse, + AsyncPayStatementItemWithStreamingResponse, +) __all__ = [ "CompanyResource", @@ -80,6 +88,12 @@ "AsyncCompanyResourceWithRawResponse", "CompanyResourceWithStreamingResponse", "AsyncCompanyResourceWithStreamingResponse", + "PayStatementItem", + "AsyncPayStatementItem", + "PayStatementItemWithRawResponse", + "AsyncPayStatementItemWithRawResponse", + "PayStatementItemWithStreamingResponse", + "AsyncPayStatementItemWithStreamingResponse", "Directory", "AsyncDirectory", "DirectoryWithRawResponse", diff --git a/src/finch/resources/hris/company/company.py b/src/finch/resources/hris/company.py similarity index 76% rename from src/finch/resources/hris/company/company.py rename to src/finch/resources/hris/company.py index f18c4cfd..180ef359 100644 --- a/src/finch/resources/hris/company/company.py +++ b/src/finch/resources/hris/company.py @@ -4,32 +4,20 @@ import httpx -from .... import _legacy_response -from ...._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given -from ...._utils import maybe_transform, async_maybe_transform -from ...._compat import cached_property -from ...._resource import SyncAPIResource, AsyncAPIResource -from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper -from ....types.hris import company_retrieve_params -from ...._base_client import make_request_options -from ....types.hris.company.company import Company -from .pay_statement_item.pay_statement_item import ( - PayStatementItem, - AsyncPayStatementItem, - PayStatementItemWithRawResponse, - AsyncPayStatementItemWithRawResponse, - PayStatementItemWithStreamingResponse, - AsyncPayStatementItemWithStreamingResponse, -) +from ... import _legacy_response +from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given +from ..._utils import maybe_transform, async_maybe_transform +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper +from ...types.hris import company_retrieve_params +from ..._base_client import make_request_options +from ...types.hris.company import Company __all__ = ["CompanyResource", "AsyncCompanyResource"] class CompanyResource(SyncAPIResource): - @cached_property - def pay_statement_item(self) -> PayStatementItem: - return PayStatementItem(self._client) - @cached_property def with_raw_response(self) -> CompanyResourceWithRawResponse: """ @@ -89,10 +77,6 @@ def retrieve( class AsyncCompanyResource(AsyncAPIResource): - @cached_property - def pay_statement_item(self) -> AsyncPayStatementItem: - return AsyncPayStatementItem(self._client) - @cached_property def with_raw_response(self) -> AsyncCompanyResourceWithRawResponse: """ @@ -161,10 +145,6 @@ def __init__(self, company: CompanyResource) -> None: company.retrieve, ) - @cached_property - def pay_statement_item(self) -> PayStatementItemWithRawResponse: - return PayStatementItemWithRawResponse(self._company.pay_statement_item) - class AsyncCompanyResourceWithRawResponse: def __init__(self, company: AsyncCompanyResource) -> None: @@ -174,10 +154,6 @@ def __init__(self, company: AsyncCompanyResource) -> None: company.retrieve, ) - @cached_property - def pay_statement_item(self) -> AsyncPayStatementItemWithRawResponse: - return AsyncPayStatementItemWithRawResponse(self._company.pay_statement_item) - class CompanyResourceWithStreamingResponse: def __init__(self, company: CompanyResource) -> None: @@ -187,10 +163,6 @@ def __init__(self, company: CompanyResource) -> None: company.retrieve, ) - @cached_property - def pay_statement_item(self) -> PayStatementItemWithStreamingResponse: - return PayStatementItemWithStreamingResponse(self._company.pay_statement_item) - class AsyncCompanyResourceWithStreamingResponse: def __init__(self, company: AsyncCompanyResource) -> None: @@ -199,7 +171,3 @@ def __init__(self, company: AsyncCompanyResource) -> None: self.retrieve = async_to_streamed_response_wrapper( company.retrieve, ) - - @cached_property - def pay_statement_item(self) -> AsyncPayStatementItemWithStreamingResponse: - return AsyncPayStatementItemWithStreamingResponse(self._company.pay_statement_item) diff --git a/src/finch/resources/hris/company/__init__.py b/src/finch/resources/hris/company/__init__.py deleted file mode 100644 index 1a335c71..00000000 --- a/src/finch/resources/hris/company/__init__.py +++ /dev/null @@ -1,33 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from .company import ( - CompanyResource, - AsyncCompanyResource, - CompanyResourceWithRawResponse, - AsyncCompanyResourceWithRawResponse, - CompanyResourceWithStreamingResponse, - AsyncCompanyResourceWithStreamingResponse, -) -from .pay_statement_item import ( - PayStatementItem, - AsyncPayStatementItem, - PayStatementItemWithRawResponse, - AsyncPayStatementItemWithRawResponse, - PayStatementItemWithStreamingResponse, - AsyncPayStatementItemWithStreamingResponse, -) - -__all__ = [ - "PayStatementItem", - "AsyncPayStatementItem", - "PayStatementItemWithRawResponse", - "AsyncPayStatementItemWithRawResponse", - "PayStatementItemWithStreamingResponse", - "AsyncPayStatementItemWithStreamingResponse", - "CompanyResource", - "AsyncCompanyResource", - "CompanyResourceWithRawResponse", - "AsyncCompanyResourceWithRawResponse", - "CompanyResourceWithStreamingResponse", - "AsyncCompanyResourceWithStreamingResponse", -] diff --git a/src/finch/resources/hris/hris.py b/src/finch/resources/hris/hris.py index ca781316..c5c82881 100644 --- a/src/finch/resources/hris/hris.py +++ b/src/finch/resources/hris/hris.py @@ -2,6 +2,14 @@ from __future__ import annotations +from .company import ( + CompanyResource, + AsyncCompanyResource, + CompanyResourceWithRawResponse, + AsyncCompanyResourceWithRawResponse, + CompanyResourceWithStreamingResponse, + AsyncCompanyResourceWithStreamingResponse, +) from .payments import ( Payments, AsyncPayments, @@ -52,14 +60,6 @@ PayStatementsWithStreamingResponse, AsyncPayStatementsWithStreamingResponse, ) -from .company.company import ( - CompanyResource, - AsyncCompanyResource, - CompanyResourceWithRawResponse, - AsyncCompanyResourceWithRawResponse, - CompanyResourceWithStreamingResponse, - AsyncCompanyResourceWithStreamingResponse, -) from .benefits.benefits import ( Benefits, AsyncBenefits, @@ -68,6 +68,14 @@ BenefitsWithStreamingResponse, AsyncBenefitsWithStreamingResponse, ) +from .pay_statement_item.pay_statement_item import ( + PayStatementItem, + AsyncPayStatementItem, + PayStatementItemWithRawResponse, + AsyncPayStatementItemWithRawResponse, + PayStatementItemWithStreamingResponse, + AsyncPayStatementItemWithStreamingResponse, +) __all__ = ["HRIS", "AsyncHRIS"] @@ -77,6 +85,10 @@ class HRIS(SyncAPIResource): def company(self) -> CompanyResource: return CompanyResource(self._client) + @cached_property + def pay_statement_item(self) -> PayStatementItem: + return PayStatementItem(self._client) + @cached_property def directory(self) -> Directory: return Directory(self._client) @@ -130,6 +142,10 @@ class AsyncHRIS(AsyncAPIResource): def company(self) -> AsyncCompanyResource: return AsyncCompanyResource(self._client) + @cached_property + def pay_statement_item(self) -> AsyncPayStatementItem: + return AsyncPayStatementItem(self._client) + @cached_property def directory(self) -> AsyncDirectory: return AsyncDirectory(self._client) @@ -186,6 +202,10 @@ def __init__(self, hris: HRIS) -> None: def company(self) -> CompanyResourceWithRawResponse: return CompanyResourceWithRawResponse(self._hris.company) + @cached_property + def pay_statement_item(self) -> PayStatementItemWithRawResponse: + return PayStatementItemWithRawResponse(self._hris.pay_statement_item) + @cached_property def directory(self) -> DirectoryWithRawResponse: return DirectoryWithRawResponse(self._hris.directory) @@ -223,6 +243,10 @@ def __init__(self, hris: AsyncHRIS) -> None: def company(self) -> AsyncCompanyResourceWithRawResponse: return AsyncCompanyResourceWithRawResponse(self._hris.company) + @cached_property + def pay_statement_item(self) -> AsyncPayStatementItemWithRawResponse: + return AsyncPayStatementItemWithRawResponse(self._hris.pay_statement_item) + @cached_property def directory(self) -> AsyncDirectoryWithRawResponse: return AsyncDirectoryWithRawResponse(self._hris.directory) @@ -260,6 +284,10 @@ def __init__(self, hris: HRIS) -> None: def company(self) -> CompanyResourceWithStreamingResponse: return CompanyResourceWithStreamingResponse(self._hris.company) + @cached_property + def pay_statement_item(self) -> PayStatementItemWithStreamingResponse: + return PayStatementItemWithStreamingResponse(self._hris.pay_statement_item) + @cached_property def directory(self) -> DirectoryWithStreamingResponse: return DirectoryWithStreamingResponse(self._hris.directory) @@ -297,6 +325,10 @@ def __init__(self, hris: AsyncHRIS) -> None: def company(self) -> AsyncCompanyResourceWithStreamingResponse: return AsyncCompanyResourceWithStreamingResponse(self._hris.company) + @cached_property + def pay_statement_item(self) -> AsyncPayStatementItemWithStreamingResponse: + return AsyncPayStatementItemWithStreamingResponse(self._hris.pay_statement_item) + @cached_property def directory(self) -> AsyncDirectoryWithStreamingResponse: return AsyncDirectoryWithStreamingResponse(self._hris.directory) diff --git a/src/finch/resources/hris/company/pay_statement_item/__init__.py b/src/finch/resources/hris/pay_statement_item/__init__.py similarity index 100% rename from src/finch/resources/hris/company/pay_statement_item/__init__.py rename to src/finch/resources/hris/pay_statement_item/__init__.py diff --git a/src/finch/resources/hris/company/pay_statement_item/pay_statement_item.py b/src/finch/resources/hris/pay_statement_item/pay_statement_item.py similarity index 93% rename from src/finch/resources/hris/company/pay_statement_item/pay_statement_item.py rename to src/finch/resources/hris/pay_statement_item/pay_statement_item.py index 57686bc6..0c95b967 100644 --- a/src/finch/resources/hris/company/pay_statement_item/pay_statement_item.py +++ b/src/finch/resources/hris/pay_statement_item/pay_statement_item.py @@ -8,7 +8,7 @@ import httpx -from ..... import _legacy_response +from .... import _legacy_response from .rules import ( Rules, AsyncRules, @@ -17,15 +17,15 @@ RulesWithStreamingResponse, AsyncRulesWithStreamingResponse, ) -from ....._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given -from ....._utils import maybe_transform -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource -from ....._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper -from .....pagination import SyncResponsesPage, AsyncResponsesPage -from ....._base_client import AsyncPaginator, make_request_options -from .....types.hris.company import pay_statement_item_list_params -from .....types.hris.company.pay_statement_item_list_response import PayStatementItemListResponse +from ...._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given +from ...._utils import maybe_transform +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper +from ....pagination import SyncResponsesPage, AsyncResponsesPage +from ....types.hris import pay_statement_item_list_params +from ...._base_client import AsyncPaginator, make_request_options +from ....types.hris.pay_statement_item_list_response import PayStatementItemListResponse __all__ = ["PayStatementItem", "AsyncPayStatementItem"] diff --git a/src/finch/resources/hris/company/pay_statement_item/rules.py b/src/finch/resources/hris/pay_statement_item/rules.py similarity index 95% rename from src/finch/resources/hris/company/pay_statement_item/rules.py rename to src/finch/resources/hris/pay_statement_item/rules.py index 79b30ce8..fe7275e9 100644 --- a/src/finch/resources/hris/company/pay_statement_item/rules.py +++ b/src/finch/resources/hris/pay_statement_item/rules.py @@ -7,24 +7,24 @@ import httpx -from ..... import _legacy_response -from ....._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given -from ....._utils import path_template, maybe_transform, async_maybe_transform -from ....._compat import cached_property -from ....._resource import SyncAPIResource, AsyncAPIResource -from ....._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper -from .....pagination import SyncResponsesPage, AsyncResponsesPage -from ....._base_client import AsyncPaginator, make_request_options -from .....types.hris.company.pay_statement_item import ( +from .... import _legacy_response +from ...._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given +from ...._utils import path_template, maybe_transform, async_maybe_transform +from ...._compat import cached_property +from ...._resource import SyncAPIResource, AsyncAPIResource +from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper +from ....pagination import SyncResponsesPage, AsyncResponsesPage +from ...._base_client import AsyncPaginator, make_request_options +from ....types.hris.pay_statement_item import ( rule_list_params, rule_create_params, rule_delete_params, rule_update_params, ) -from .....types.hris.company.pay_statement_item.rule_list_response import RuleListResponse -from .....types.hris.company.pay_statement_item.rule_create_response import RuleCreateResponse -from .....types.hris.company.pay_statement_item.rule_delete_response import RuleDeleteResponse -from .....types.hris.company.pay_statement_item.rule_update_response import RuleUpdateResponse +from ....types.hris.pay_statement_item.rule_list_response import RuleListResponse +from ....types.hris.pay_statement_item.rule_create_response import RuleCreateResponse +from ....types.hris.pay_statement_item.rule_delete_response import RuleDeleteResponse +from ....types.hris.pay_statement_item.rule_update_response import RuleUpdateResponse __all__ = ["Rules", "AsyncRules"] diff --git a/src/finch/types/hris/__init__.py b/src/finch/types/hris/__init__.py index 4f3c69d1..2021db70 100644 --- a/src/finch/types/hris/__init__.py +++ b/src/finch/types/hris/__init__.py @@ -33,11 +33,13 @@ from .employment_data_response import EmploymentDataResponse as EmploymentDataResponse from .support_per_benefit_type import SupportPerBenefitType as SupportPerBenefitType from .document_retreive_response import DocumentRetreiveResponse as DocumentRetreiveResponse +from .pay_statement_item_list_params import PayStatementItemListParams as PayStatementItemListParams from .benefit_features_and_operations import BenefitFeaturesAndOperations as BenefitFeaturesAndOperations from .employment_retrieve_many_params import EmploymentRetrieveManyParams as EmploymentRetrieveManyParams from .individual_retrieve_many_params import IndividualRetrieveManyParams as IndividualRetrieveManyParams from .update_company_benefit_response import UpdateCompanyBenefitResponse as UpdateCompanyBenefitResponse from .create_company_benefits_response import CreateCompanyBenefitsResponse as CreateCompanyBenefitsResponse +from .pay_statement_item_list_response import PayStatementItemListResponse as PayStatementItemListResponse from .directory_list_individuals_params import DirectoryListIndividualsParams as DirectoryListIndividualsParams from .register_company_benefit_response import RegisterCompanyBenefitResponse as RegisterCompanyBenefitResponse from .pay_statement_retrieve_many_params import PayStatementRetrieveManyParams as PayStatementRetrieveManyParams diff --git a/src/finch/types/hris/company/company.py b/src/finch/types/hris/company.py similarity index 97% rename from src/finch/types/hris/company/company.py rename to src/finch/types/hris/company.py index c96bcb15..1b9913de 100644 --- a/src/finch/types/hris/company/company.py +++ b/src/finch/types/hris/company.py @@ -3,8 +3,8 @@ from typing import List, Optional from typing_extensions import Literal -from ...._models import BaseModel -from ...location import Location +from ..._models import BaseModel +from ..location import Location __all__ = ["Company", "Account", "Department", "DepartmentParent", "Entity"] diff --git a/src/finch/types/hris/company/__init__.py b/src/finch/types/hris/company/__init__.py deleted file mode 100644 index d1e4e798..00000000 --- a/src/finch/types/hris/company/__init__.py +++ /dev/null @@ -1,7 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from .company import Company as Company -from .pay_statement_item_list_params import PayStatementItemListParams as PayStatementItemListParams -from .pay_statement_item_list_response import PayStatementItemListResponse as PayStatementItemListResponse diff --git a/src/finch/types/hris/company/pay_statement_item/__init__.py b/src/finch/types/hris/pay_statement_item/__init__.py similarity index 100% rename from src/finch/types/hris/company/pay_statement_item/__init__.py rename to src/finch/types/hris/pay_statement_item/__init__.py diff --git a/src/finch/types/hris/company/pay_statement_item/rule_create_params.py b/src/finch/types/hris/pay_statement_item/rule_create_params.py similarity index 97% rename from src/finch/types/hris/company/pay_statement_item/rule_create_params.py rename to src/finch/types/hris/pay_statement_item/rule_create_params.py index 48dc32e1..596c8a64 100644 --- a/src/finch/types/hris/company/pay_statement_item/rule_create_params.py +++ b/src/finch/types/hris/pay_statement_item/rule_create_params.py @@ -5,7 +5,7 @@ from typing import Dict, Iterable, Optional from typing_extensions import Literal, TypedDict -from ....._types import SequenceNotStr +from ...._types import SequenceNotStr __all__ = ["RuleCreateParams", "Attributes", "Condition"] diff --git a/src/finch/types/hris/company/pay_statement_item/rule_create_response.py b/src/finch/types/hris/pay_statement_item/rule_create_response.py similarity index 98% rename from src/finch/types/hris/company/pay_statement_item/rule_create_response.py rename to src/finch/types/hris/pay_statement_item/rule_create_response.py index ee0fa167..7525d97a 100644 --- a/src/finch/types/hris/company/pay_statement_item/rule_create_response.py +++ b/src/finch/types/hris/pay_statement_item/rule_create_response.py @@ -4,7 +4,7 @@ from datetime import datetime from typing_extensions import Literal -from ....._models import BaseModel +from ...._models import BaseModel __all__ = ["RuleCreateResponse", "Attributes", "Condition"] diff --git a/src/finch/types/hris/company/pay_statement_item/rule_delete_params.py b/src/finch/types/hris/pay_statement_item/rule_delete_params.py similarity index 89% rename from src/finch/types/hris/company/pay_statement_item/rule_delete_params.py rename to src/finch/types/hris/pay_statement_item/rule_delete_params.py index c242816f..d704df6b 100644 --- a/src/finch/types/hris/company/pay_statement_item/rule_delete_params.py +++ b/src/finch/types/hris/pay_statement_item/rule_delete_params.py @@ -4,7 +4,7 @@ from typing_extensions import TypedDict -from ....._types import SequenceNotStr +from ...._types import SequenceNotStr __all__ = ["RuleDeleteParams"] diff --git a/src/finch/types/hris/company/pay_statement_item/rule_delete_response.py b/src/finch/types/hris/pay_statement_item/rule_delete_response.py similarity index 98% rename from src/finch/types/hris/company/pay_statement_item/rule_delete_response.py rename to src/finch/types/hris/pay_statement_item/rule_delete_response.py index 1850ef22..9f2df60b 100644 --- a/src/finch/types/hris/company/pay_statement_item/rule_delete_response.py +++ b/src/finch/types/hris/pay_statement_item/rule_delete_response.py @@ -4,7 +4,7 @@ from datetime import datetime from typing_extensions import Literal -from ....._models import BaseModel +from ...._models import BaseModel __all__ = ["RuleDeleteResponse", "Attributes", "Condition"] diff --git a/src/finch/types/hris/company/pay_statement_item/rule_list_params.py b/src/finch/types/hris/pay_statement_item/rule_list_params.py similarity index 89% rename from src/finch/types/hris/company/pay_statement_item/rule_list_params.py rename to src/finch/types/hris/pay_statement_item/rule_list_params.py index 5786e11d..e054cbf1 100644 --- a/src/finch/types/hris/company/pay_statement_item/rule_list_params.py +++ b/src/finch/types/hris/pay_statement_item/rule_list_params.py @@ -4,7 +4,7 @@ from typing_extensions import TypedDict -from ....._types import SequenceNotStr +from ...._types import SequenceNotStr __all__ = ["RuleListParams"] diff --git a/src/finch/types/hris/company/pay_statement_item/rule_list_response.py b/src/finch/types/hris/pay_statement_item/rule_list_response.py similarity index 98% rename from src/finch/types/hris/company/pay_statement_item/rule_list_response.py rename to src/finch/types/hris/pay_statement_item/rule_list_response.py index bcf9d9c0..4735960e 100644 --- a/src/finch/types/hris/company/pay_statement_item/rule_list_response.py +++ b/src/finch/types/hris/pay_statement_item/rule_list_response.py @@ -4,7 +4,7 @@ from datetime import datetime from typing_extensions import Literal -from ....._models import BaseModel +from ...._models import BaseModel __all__ = ["RuleListResponse", "Attributes", "Condition"] diff --git a/src/finch/types/hris/company/pay_statement_item/rule_update_params.py b/src/finch/types/hris/pay_statement_item/rule_update_params.py similarity index 84% rename from src/finch/types/hris/company/pay_statement_item/rule_update_params.py rename to src/finch/types/hris/pay_statement_item/rule_update_params.py index 5795a8dd..689cd81d 100644 --- a/src/finch/types/hris/company/pay_statement_item/rule_update_params.py +++ b/src/finch/types/hris/pay_statement_item/rule_update_params.py @@ -4,8 +4,8 @@ from typing_extensions import Annotated, TypedDict -from ....._types import SequenceNotStr -from ....._utils import PropertyInfo +from ...._types import SequenceNotStr +from ...._utils import PropertyInfo __all__ = ["RuleUpdateParams"] diff --git a/src/finch/types/hris/company/pay_statement_item/rule_update_response.py b/src/finch/types/hris/pay_statement_item/rule_update_response.py similarity index 98% rename from src/finch/types/hris/company/pay_statement_item/rule_update_response.py rename to src/finch/types/hris/pay_statement_item/rule_update_response.py index 2f3b7431..0b40b2c2 100644 --- a/src/finch/types/hris/company/pay_statement_item/rule_update_response.py +++ b/src/finch/types/hris/pay_statement_item/rule_update_response.py @@ -4,7 +4,7 @@ from datetime import datetime from typing_extensions import Literal -from ....._models import BaseModel +from ...._models import BaseModel __all__ = ["RuleUpdateResponse", "Attributes", "Condition"] diff --git a/src/finch/types/hris/company/pay_statement_item_list_params.py b/src/finch/types/hris/pay_statement_item_list_params.py similarity index 94% rename from src/finch/types/hris/company/pay_statement_item_list_params.py rename to src/finch/types/hris/pay_statement_item_list_params.py index 88fc9e77..082ad652 100644 --- a/src/finch/types/hris/company/pay_statement_item_list_params.py +++ b/src/finch/types/hris/pay_statement_item_list_params.py @@ -6,8 +6,8 @@ from datetime import date from typing_extensions import Literal, Annotated, TypedDict -from ...._types import SequenceNotStr -from ...._utils import PropertyInfo +from ..._types import SequenceNotStr +from ..._utils import PropertyInfo __all__ = ["PayStatementItemListParams"] diff --git a/src/finch/types/hris/company/pay_statement_item_list_response.py b/src/finch/types/hris/pay_statement_item_list_response.py similarity index 97% rename from src/finch/types/hris/company/pay_statement_item_list_response.py rename to src/finch/types/hris/pay_statement_item_list_response.py index 9d9f7fdb..e5ef4cdc 100644 --- a/src/finch/types/hris/company/pay_statement_item_list_response.py +++ b/src/finch/types/hris/pay_statement_item_list_response.py @@ -3,7 +3,7 @@ from typing import Dict, Optional from typing_extensions import Literal -from ...._models import BaseModel +from ..._models import BaseModel __all__ = ["PayStatementItemListResponse", "Attributes"] diff --git a/tests/api_resources/hris/company/pay_statement_item/__init__.py b/tests/api_resources/hris/company/pay_statement_item/__init__.py deleted file mode 100644 index fd8019a9..00000000 --- a/tests/api_resources/hris/company/pay_statement_item/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. diff --git a/tests/api_resources/hris/company/__init__.py b/tests/api_resources/hris/pay_statement_item/__init__.py similarity index 100% rename from tests/api_resources/hris/company/__init__.py rename to tests/api_resources/hris/pay_statement_item/__init__.py diff --git a/tests/api_resources/hris/company/pay_statement_item/test_rules.py b/tests/api_resources/hris/pay_statement_item/test_rules.py similarity index 79% rename from tests/api_resources/hris/company/pay_statement_item/test_rules.py rename to tests/api_resources/hris/pay_statement_item/test_rules.py index 39af7a0f..ee06fd93 100644 --- a/tests/api_resources/hris/company/pay_statement_item/test_rules.py +++ b/tests/api_resources/hris/pay_statement_item/test_rules.py @@ -10,7 +10,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type from finch.pagination import SyncResponsesPage, AsyncResponsesPage -from finch.types.hris.company.pay_statement_item import ( +from finch.types.hris.pay_statement_item import ( RuleListResponse, RuleCreateResponse, RuleDeleteResponse, @@ -25,12 +25,12 @@ class TestRules: @parametrize def test_method_create(self, client: Finch) -> None: - rule = client.hris.company.pay_statement_item.rules.create() + rule = client.hris.pay_statement_item.rules.create() assert_matches_type(RuleCreateResponse, rule, path=["response"]) @parametrize def test_method_create_with_all_params(self, client: Finch) -> None: - rule = client.hris.company.pay_statement_item.rules.create( + rule = client.hris.pay_statement_item.rules.create( entity_ids=["550e8400-e29b-41d4-a716-446655440000"], attributes={"metadata": {"foo": "bar"}}, conditions=[ @@ -48,7 +48,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None: @parametrize def test_raw_response_create(self, client: Finch) -> None: - response = client.hris.company.pay_statement_item.rules.with_raw_response.create() + response = client.hris.pay_statement_item.rules.with_raw_response.create() assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -57,7 +57,7 @@ def test_raw_response_create(self, client: Finch) -> None: @parametrize def test_streaming_response_create(self, client: Finch) -> None: - with client.hris.company.pay_statement_item.rules.with_streaming_response.create() as response: + with client.hris.pay_statement_item.rules.with_streaming_response.create() as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -68,14 +68,14 @@ def test_streaming_response_create(self, client: Finch) -> None: @parametrize def test_method_update(self, client: Finch) -> None: - rule = client.hris.company.pay_statement_item.rules.update( + rule = client.hris.pay_statement_item.rules.update( rule_id="rule_id", ) assert_matches_type(RuleUpdateResponse, rule, path=["response"]) @parametrize def test_method_update_with_all_params(self, client: Finch) -> None: - rule = client.hris.company.pay_statement_item.rules.update( + rule = client.hris.pay_statement_item.rules.update( rule_id="rule_id", entity_ids=["550e8400-e29b-41d4-a716-446655440000"], optional_property={}, @@ -84,7 +84,7 @@ def test_method_update_with_all_params(self, client: Finch) -> None: @parametrize def test_raw_response_update(self, client: Finch) -> None: - response = client.hris.company.pay_statement_item.rules.with_raw_response.update( + response = client.hris.pay_statement_item.rules.with_raw_response.update( rule_id="rule_id", ) @@ -95,7 +95,7 @@ def test_raw_response_update(self, client: Finch) -> None: @parametrize def test_streaming_response_update(self, client: Finch) -> None: - with client.hris.company.pay_statement_item.rules.with_streaming_response.update( + with client.hris.pay_statement_item.rules.with_streaming_response.update( rule_id="rule_id", ) as response: assert not response.is_closed @@ -109,25 +109,25 @@ def test_streaming_response_update(self, client: Finch) -> None: @parametrize def test_path_params_update(self, client: Finch) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"): - client.hris.company.pay_statement_item.rules.with_raw_response.update( + client.hris.pay_statement_item.rules.with_raw_response.update( rule_id="", ) @parametrize def test_method_list(self, client: Finch) -> None: - rule = client.hris.company.pay_statement_item.rules.list() + rule = client.hris.pay_statement_item.rules.list() assert_matches_type(SyncResponsesPage[RuleListResponse], rule, path=["response"]) @parametrize def test_method_list_with_all_params(self, client: Finch) -> None: - rule = client.hris.company.pay_statement_item.rules.list( + rule = client.hris.pay_statement_item.rules.list( entity_ids=["550e8400-e29b-41d4-a716-446655440000"], ) assert_matches_type(SyncResponsesPage[RuleListResponse], rule, path=["response"]) @parametrize def test_raw_response_list(self, client: Finch) -> None: - response = client.hris.company.pay_statement_item.rules.with_raw_response.list() + response = client.hris.pay_statement_item.rules.with_raw_response.list() assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -136,7 +136,7 @@ def test_raw_response_list(self, client: Finch) -> None: @parametrize def test_streaming_response_list(self, client: Finch) -> None: - with client.hris.company.pay_statement_item.rules.with_streaming_response.list() as response: + with client.hris.pay_statement_item.rules.with_streaming_response.list() as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -147,14 +147,14 @@ def test_streaming_response_list(self, client: Finch) -> None: @parametrize def test_method_delete(self, client: Finch) -> None: - rule = client.hris.company.pay_statement_item.rules.delete( + rule = client.hris.pay_statement_item.rules.delete( rule_id="rule_id", ) assert_matches_type(RuleDeleteResponse, rule, path=["response"]) @parametrize def test_method_delete_with_all_params(self, client: Finch) -> None: - rule = client.hris.company.pay_statement_item.rules.delete( + rule = client.hris.pay_statement_item.rules.delete( rule_id="rule_id", entity_ids=["550e8400-e29b-41d4-a716-446655440000"], ) @@ -162,7 +162,7 @@ def test_method_delete_with_all_params(self, client: Finch) -> None: @parametrize def test_raw_response_delete(self, client: Finch) -> None: - response = client.hris.company.pay_statement_item.rules.with_raw_response.delete( + response = client.hris.pay_statement_item.rules.with_raw_response.delete( rule_id="rule_id", ) @@ -173,7 +173,7 @@ def test_raw_response_delete(self, client: Finch) -> None: @parametrize def test_streaming_response_delete(self, client: Finch) -> None: - with client.hris.company.pay_statement_item.rules.with_streaming_response.delete( + with client.hris.pay_statement_item.rules.with_streaming_response.delete( rule_id="rule_id", ) as response: assert not response.is_closed @@ -187,7 +187,7 @@ def test_streaming_response_delete(self, client: Finch) -> None: @parametrize def test_path_params_delete(self, client: Finch) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"): - client.hris.company.pay_statement_item.rules.with_raw_response.delete( + client.hris.pay_statement_item.rules.with_raw_response.delete( rule_id="", ) @@ -199,12 +199,12 @@ class TestAsyncRules: @parametrize async def test_method_create(self, async_client: AsyncFinch) -> None: - rule = await async_client.hris.company.pay_statement_item.rules.create() + rule = await async_client.hris.pay_statement_item.rules.create() assert_matches_type(RuleCreateResponse, rule, path=["response"]) @parametrize async def test_method_create_with_all_params(self, async_client: AsyncFinch) -> None: - rule = await async_client.hris.company.pay_statement_item.rules.create( + rule = await async_client.hris.pay_statement_item.rules.create( entity_ids=["550e8400-e29b-41d4-a716-446655440000"], attributes={"metadata": {"foo": "bar"}}, conditions=[ @@ -222,7 +222,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) -> @parametrize async def test_raw_response_create(self, async_client: AsyncFinch) -> None: - response = await async_client.hris.company.pay_statement_item.rules.with_raw_response.create() + response = await async_client.hris.pay_statement_item.rules.with_raw_response.create() assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -231,7 +231,7 @@ async def test_raw_response_create(self, async_client: AsyncFinch) -> None: @parametrize async def test_streaming_response_create(self, async_client: AsyncFinch) -> None: - async with async_client.hris.company.pay_statement_item.rules.with_streaming_response.create() as response: + async with async_client.hris.pay_statement_item.rules.with_streaming_response.create() as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -242,14 +242,14 @@ async def test_streaming_response_create(self, async_client: AsyncFinch) -> None @parametrize async def test_method_update(self, async_client: AsyncFinch) -> None: - rule = await async_client.hris.company.pay_statement_item.rules.update( + rule = await async_client.hris.pay_statement_item.rules.update( rule_id="rule_id", ) assert_matches_type(RuleUpdateResponse, rule, path=["response"]) @parametrize async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> None: - rule = await async_client.hris.company.pay_statement_item.rules.update( + rule = await async_client.hris.pay_statement_item.rules.update( rule_id="rule_id", entity_ids=["550e8400-e29b-41d4-a716-446655440000"], optional_property={}, @@ -258,7 +258,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> @parametrize async def test_raw_response_update(self, async_client: AsyncFinch) -> None: - response = await async_client.hris.company.pay_statement_item.rules.with_raw_response.update( + response = await async_client.hris.pay_statement_item.rules.with_raw_response.update( rule_id="rule_id", ) @@ -269,7 +269,7 @@ async def test_raw_response_update(self, async_client: AsyncFinch) -> None: @parametrize async def test_streaming_response_update(self, async_client: AsyncFinch) -> None: - async with async_client.hris.company.pay_statement_item.rules.with_streaming_response.update( + async with async_client.hris.pay_statement_item.rules.with_streaming_response.update( rule_id="rule_id", ) as response: assert not response.is_closed @@ -283,25 +283,25 @@ async def test_streaming_response_update(self, async_client: AsyncFinch) -> None @parametrize async def test_path_params_update(self, async_client: AsyncFinch) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"): - await async_client.hris.company.pay_statement_item.rules.with_raw_response.update( + await async_client.hris.pay_statement_item.rules.with_raw_response.update( rule_id="", ) @parametrize async def test_method_list(self, async_client: AsyncFinch) -> None: - rule = await async_client.hris.company.pay_statement_item.rules.list() + rule = await async_client.hris.pay_statement_item.rules.list() assert_matches_type(AsyncResponsesPage[RuleListResponse], rule, path=["response"]) @parametrize async def test_method_list_with_all_params(self, async_client: AsyncFinch) -> None: - rule = await async_client.hris.company.pay_statement_item.rules.list( + rule = await async_client.hris.pay_statement_item.rules.list( entity_ids=["550e8400-e29b-41d4-a716-446655440000"], ) assert_matches_type(AsyncResponsesPage[RuleListResponse], rule, path=["response"]) @parametrize async def test_raw_response_list(self, async_client: AsyncFinch) -> None: - response = await async_client.hris.company.pay_statement_item.rules.with_raw_response.list() + response = await async_client.hris.pay_statement_item.rules.with_raw_response.list() assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -310,7 +310,7 @@ async def test_raw_response_list(self, async_client: AsyncFinch) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncFinch) -> None: - async with async_client.hris.company.pay_statement_item.rules.with_streaming_response.list() as response: + async with async_client.hris.pay_statement_item.rules.with_streaming_response.list() as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -321,14 +321,14 @@ async def test_streaming_response_list(self, async_client: AsyncFinch) -> None: @parametrize async def test_method_delete(self, async_client: AsyncFinch) -> None: - rule = await async_client.hris.company.pay_statement_item.rules.delete( + rule = await async_client.hris.pay_statement_item.rules.delete( rule_id="rule_id", ) assert_matches_type(RuleDeleteResponse, rule, path=["response"]) @parametrize async def test_method_delete_with_all_params(self, async_client: AsyncFinch) -> None: - rule = await async_client.hris.company.pay_statement_item.rules.delete( + rule = await async_client.hris.pay_statement_item.rules.delete( rule_id="rule_id", entity_ids=["550e8400-e29b-41d4-a716-446655440000"], ) @@ -336,7 +336,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncFinch) -> @parametrize async def test_raw_response_delete(self, async_client: AsyncFinch) -> None: - response = await async_client.hris.company.pay_statement_item.rules.with_raw_response.delete( + response = await async_client.hris.pay_statement_item.rules.with_raw_response.delete( rule_id="rule_id", ) @@ -347,7 +347,7 @@ async def test_raw_response_delete(self, async_client: AsyncFinch) -> None: @parametrize async def test_streaming_response_delete(self, async_client: AsyncFinch) -> None: - async with async_client.hris.company.pay_statement_item.rules.with_streaming_response.delete( + async with async_client.hris.pay_statement_item.rules.with_streaming_response.delete( rule_id="rule_id", ) as response: assert not response.is_closed @@ -361,6 +361,6 @@ async def test_streaming_response_delete(self, async_client: AsyncFinch) -> None @parametrize async def test_path_params_delete(self, async_client: AsyncFinch) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `rule_id` but received ''"): - await async_client.hris.company.pay_statement_item.rules.with_raw_response.delete( + await async_client.hris.pay_statement_item.rules.with_raw_response.delete( rule_id="", ) diff --git a/tests/api_resources/hris/test_company.py b/tests/api_resources/hris/test_company.py index 6c8491ea..156f9a64 100644 --- a/tests/api_resources/hris/test_company.py +++ b/tests/api_resources/hris/test_company.py @@ -9,7 +9,7 @@ from finch import Finch, AsyncFinch from tests.utils import assert_matches_type -from finch.types.hris.company import Company +from finch.types.hris import Company base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") diff --git a/tests/api_resources/hris/company/test_pay_statement_item.py b/tests/api_resources/hris/test_pay_statement_item.py similarity index 83% rename from tests/api_resources/hris/company/test_pay_statement_item.py rename to tests/api_resources/hris/test_pay_statement_item.py index 42989f22..9cb2bed1 100644 --- a/tests/api_resources/hris/company/test_pay_statement_item.py +++ b/tests/api_resources/hris/test_pay_statement_item.py @@ -11,7 +11,7 @@ from tests.utils import assert_matches_type from finch._utils import parse_date from finch.pagination import SyncResponsesPage, AsyncResponsesPage -from finch.types.hris.company import PayStatementItemListResponse +from finch.types.hris import PayStatementItemListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") @@ -21,12 +21,12 @@ class TestPayStatementItem: @parametrize def test_method_list(self, client: Finch) -> None: - pay_statement_item = client.hris.company.pay_statement_item.list() + pay_statement_item = client.hris.pay_statement_item.list() assert_matches_type(SyncResponsesPage[PayStatementItemListResponse], pay_statement_item, path=["response"]) @parametrize def test_method_list_with_all_params(self, client: Finch) -> None: - pay_statement_item = client.hris.company.pay_statement_item.list( + pay_statement_item = client.hris.pay_statement_item.list( categories=["earnings"], end_date=parse_date("2024-07-01"), entity_ids=["550e8400-e29b-41d4-a716-446655440000"], @@ -38,7 +38,7 @@ def test_method_list_with_all_params(self, client: Finch) -> None: @parametrize def test_raw_response_list(self, client: Finch) -> None: - response = client.hris.company.pay_statement_item.with_raw_response.list() + response = client.hris.pay_statement_item.with_raw_response.list() assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -47,7 +47,7 @@ def test_raw_response_list(self, client: Finch) -> None: @parametrize def test_streaming_response_list(self, client: Finch) -> None: - with client.hris.company.pay_statement_item.with_streaming_response.list() as response: + with client.hris.pay_statement_item.with_streaming_response.list() as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -64,12 +64,12 @@ class TestAsyncPayStatementItem: @parametrize async def test_method_list(self, async_client: AsyncFinch) -> None: - pay_statement_item = await async_client.hris.company.pay_statement_item.list() + pay_statement_item = await async_client.hris.pay_statement_item.list() assert_matches_type(AsyncResponsesPage[PayStatementItemListResponse], pay_statement_item, path=["response"]) @parametrize async def test_method_list_with_all_params(self, async_client: AsyncFinch) -> None: - pay_statement_item = await async_client.hris.company.pay_statement_item.list( + pay_statement_item = await async_client.hris.pay_statement_item.list( categories=["earnings"], end_date=parse_date("2024-07-01"), entity_ids=["550e8400-e29b-41d4-a716-446655440000"], @@ -81,7 +81,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncFinch) -> No @parametrize async def test_raw_response_list(self, async_client: AsyncFinch) -> None: - response = await async_client.hris.company.pay_statement_item.with_raw_response.list() + response = await async_client.hris.pay_statement_item.with_raw_response.list() assert response.is_closed is True assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -90,7 +90,7 @@ async def test_raw_response_list(self, async_client: AsyncFinch) -> None: @parametrize async def test_streaming_response_list(self, async_client: AsyncFinch) -> None: - async with async_client.hris.company.pay_statement_item.with_streaming_response.list() as response: + async with async_client.hris.pay_statement_item.with_streaming_response.list() as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" From 11222f90f568c2880659ffa427357ddcbdf729c2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:50:23 +0000 Subject: [PATCH 2/2] release: 2.0.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/finch/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 4b6cc3c8..65f558e7 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.46.0" + ".": "2.0.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 06afabac..71bbdcfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 2.0.0 (2026-06-22) + +Full Changelog: [v1.46.0...v2.0.0](https://github.com/Finch-API/finch-api-python/compare/v1.46.0...v2.0.0) + +### Bug Fixes + +* **payroll:** pay_statement_item is now a direct subresource of hris instead of company ([f8194d7](https://github.com/Finch-API/finch-api-python/commit/f8194d748c7b37fa624a3ca36f0f29b6243aa7d5)) + ## 1.46.0 (2026-06-22) Full Changelog: [v1.45.0...v1.46.0](https://github.com/Finch-API/finch-api-python/compare/v1.45.0...v1.46.0) diff --git a/pyproject.toml b/pyproject.toml index 42eb60eb..c2c35b15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "finch-api" -version = "1.46.0" +version = "2.0.0" description = "The official Python library for the Finch API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/finch/_version.py b/src/finch/_version.py index a4030504..8251f76a 100644 --- a/src/finch/_version.py +++ b/src/finch/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "finch" -__version__ = "1.46.0" # x-release-please-version +__version__ = "2.0.0" # x-release-please-version