Skip to content
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.19.0"
".": "1.20.0"
}
8 changes: 4 additions & 4 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
config_hash: 8303e755d3e16cf28542d5f0aec83851
configured_endpoints: 46
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-14d375aab89e6b212fe459805a42d6ea7d7da8eae2037ae710a187d06911be1d.yml
openapi_spec_hash: 08b86ecbec3323717d48e4aaee48ed54
config_hash: 2bca9e6b32f742acb077cf8822ec9e23
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## 1.20.0 (2025-04-04)

Full Changelog: [v1.19.0...v1.20.0](https://github.com/Finch-API/finch-api-python/compare/v1.19.0...v1.20.0)

### Features

* **api:** add new endpoints for pay statement items ([#638](https://github.com/Finch-API/finch-api-python/issues/638)) ([f7ec780](https://github.com/Finch-API/finch-api-python/commit/f7ec780012d94be05afb1b65cbbbcc1930be2c55))
* **api:** api update ([#633](https://github.com/Finch-API/finch-api-python/issues/633)) ([cb0dc56](https://github.com/Finch-API/finch-api-python/commit/cb0dc5609828467bfc647badf208f7b3ca05b763))
* **api:** api update ([#635](https://github.com/Finch-API/finch-api-python/issues/635)) ([9accf06](https://github.com/Finch-API/finch-api-python/commit/9accf06c45b602cc333ba1b47ad615b159c23080))
* **api:** api update ([#636](https://github.com/Finch-API/finch-api-python/issues/636)) ([4b822a0](https://github.com/Finch-API/finch-api-python/commit/4b822a0d837333d0a6e4ac0c5b20a4226b64097b))
* **api:** manual updates ([#639](https://github.com/Finch-API/finch-api-python/issues/639)) ([fd1f40b](https://github.com/Finch-API/finch-api-python/commit/fd1f40b4103d43758bb682c4e1178e73c123b713))


### Chores

* **internal:** remove trailing character ([#637](https://github.com/Finch-API/finch-api-python/issues/637)) ([0334e6e](https://github.com/Finch-API/finch-api-python/commit/0334e6ec5e2051ff57a862135399ab2ea1ff2496))

## 1.19.0 (2025-03-31)

Full Changelog: [v1.18.0...v1.19.0](https://github.com/Finch-API/finch-api-python/compare/v1.18.0...v1.19.0)
Expand Down
34 changes: 33 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,39 @@ from finch.types.hris import Company

Methods:

- <code title="get /employer/company">client.hris.company.<a href="./src/finch/resources/hris/company.py">retrieve</a>() -> <a href="./src/finch/types/hris/company.py">Company</a></code>
- <code title="get /employer/company">client.hris.company.<a href="./src/finch/resources/hris/company/company.py">retrieve</a>() -> <a href="./src/finch/types/hris/company/company.py">Company</a></code>

### PayStatementItem

Types:

```python
from finch.types.hris.company import PayStatementItemListResponse
```

Methods:

- <code title="get /employer/pay-statement-item">client.hris.company.pay_statement_item.<a href="./src/finch/resources/hris/company/pay_statement_item/pay_statement_item.py">list</a>(\*\*<a href="src/finch/types/hris/company/pay_statement_item_list_params.py">params</a>) -> <a href="./src/finch/types/hris/company/pay_statement_item_list_response.py">SyncResponsesPage[PayStatementItemListResponse]</a></code>

#### Rules

Types:

```python
from finch.types.hris.company.pay_statement_item import (
RuleCreateResponse,
RuleUpdateResponse,
RuleListResponse,
RuleDeleteResponse,
)
```

Methods:

- <code title="post /employer/pay-statement-item/rule">client.hris.company.pay_statement_item.rules.<a href="./src/finch/resources/hris/company/pay_statement_item/rules.py">create</a>(\*\*<a href="src/finch/types/hris/company/pay_statement_item/rule_create_params.py">params</a>) -> <a href="./src/finch/types/hris/company/pay_statement_item/rule_create_response.py">RuleCreateResponse</a></code>
- <code title="put /employer/pay-statement-item/rule/{rule_id}">client.hris.company.pay_statement_item.rules.<a href="./src/finch/resources/hris/company/pay_statement_item/rules.py">update</a>(rule_id, \*\*<a href="src/finch/types/hris/company/pay_statement_item/rule_update_params.py">params</a>) -> <a href="./src/finch/types/hris/company/pay_statement_item/rule_update_response.py">RuleUpdateResponse</a></code>
- <code title="get /employer/pay-statement-item/rule">client.hris.company.pay_statement_item.rules.<a href="./src/finch/resources/hris/company/pay_statement_item/rules.py">list</a>() -> <a href="./src/finch/types/hris/company/pay_statement_item/rule_list_response.py">SyncResponsesPage[RuleListResponse]</a></code>
- <code title="delete /employer/pay-statement-item/rule/{rule_id}">client.hris.company.pay_statement_item.rules.<a href="./src/finch/resources/hris/company/pay_statement_item/rules.py">delete</a>(rule_id) -> <a href="./src/finch/types/hris/company/pay_statement_item/rule_delete_response.py">RuleDeleteResponse</a></code>

## Directory

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "finch-api"
version = "1.19.0"
version = "1.20.0"
description = "The official Python library for the Finch API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/finch/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "finch"
__version__ = "1.19.0" # x-release-please-version
__version__ = "1.20.0" # x-release-please-version
4 changes: 4 additions & 0 deletions src/finch/resources/hris/benefits/benefits.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def create(
limiting this to <30 characters due to limitations in specific providers (e.g.
Justworks).

frequency: The frequency of the benefit deduction/contribution.

type: Type of benefit.

extra_headers: Send extra headers
Expand Down Expand Up @@ -267,6 +269,8 @@ async def create(
limiting this to <30 characters due to limitations in specific providers (e.g.
Justworks).

frequency: The frequency of the benefit deduction/contribution.

type: Type of benefit.

extra_headers: Send extra headers
Expand Down
33 changes: 33 additions & 0 deletions src/finch/resources/hris/company/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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",
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,30 @@

import httpx

from ... import _legacy_response
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
from ..._base_client import make_request_options
from ...types.hris.company import Company
from .... import _legacy_response
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from ...._compat import cached_property
from ...._resource import SyncAPIResource, AsyncAPIResource
from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
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,
)

__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:
"""
Expand Down Expand Up @@ -56,6 +68,10 @@ 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:
"""
Expand Down Expand Up @@ -103,6 +119,10 @@ 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:
Expand All @@ -112,6 +132,10 @@ 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:
Expand All @@ -121,6 +145,10 @@ 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:
Expand All @@ -129,3 +157,7 @@ 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)
33 changes: 33 additions & 0 deletions src/finch/resources/hris/company/pay_statement_item/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .rules import (
Rules,
AsyncRules,
RulesWithRawResponse,
AsyncRulesWithRawResponse,
RulesWithStreamingResponse,
AsyncRulesWithStreamingResponse,
)
from .pay_statement_item import (
PayStatementItem,
AsyncPayStatementItem,
PayStatementItemWithRawResponse,
AsyncPayStatementItemWithRawResponse,
PayStatementItemWithStreamingResponse,
AsyncPayStatementItemWithStreamingResponse,
)

__all__ = [
"Rules",
"AsyncRules",
"RulesWithRawResponse",
"AsyncRulesWithRawResponse",
"RulesWithStreamingResponse",
"AsyncRulesWithStreamingResponse",
"PayStatementItem",
"AsyncPayStatementItem",
"PayStatementItemWithRawResponse",
"AsyncPayStatementItemWithRawResponse",
"PayStatementItemWithStreamingResponse",
"AsyncPayStatementItemWithStreamingResponse",
]
Loading