Skip to content

Commit cc9ebd6

Browse files
release: 1.20.0 (#634)
* feat(api): api update (#633) * feat(api): api update (#635) * feat(api): api update (#636) * chore(internal): remove trailing character (#637) * feat(api): add new endpoints for pay statement items (#638) * feat(api): manual updates (#639) * release: 1.20.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 1ad3f9a commit cc9ebd6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1728
-42
lines changed

.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.19.0"
2+
".": "1.20.0"
33
}

.stats.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 41
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-3224f142ed1542ed2535c155e8eb23b7ea10470c12448d60c3ce584126073a93.yml
3-
openapi_spec_hash: 6c4b213ed5e4f7d1b369e04e4bfb5164
4-
config_hash: 8303e755d3e16cf28542d5f0aec83851
1+
configured_endpoints: 46
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-14d375aab89e6b212fe459805a42d6ea7d7da8eae2037ae710a187d06911be1d.yml
3+
openapi_spec_hash: 08b86ecbec3323717d48e4aaee48ed54
4+
config_hash: 2bca9e6b32f742acb077cf8822ec9e23

CHANGELOG.md

+17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## 1.20.0 (2025-04-04)
4+
5+
Full Changelog: [v1.19.0...v1.20.0](https://github.com/Finch-API/finch-api-python/compare/v1.19.0...v1.20.0)
6+
7+
### Features
8+
9+
* **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))
10+
* **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))
11+
* **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))
12+
* **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))
13+
* **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))
14+
15+
16+
### Chores
17+
18+
* **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))
19+
320
## 1.19.0 (2025-03-31)
421

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

api.md

+33-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,39 @@ from finch.types.hris import Company
4141

4242
Methods:
4343

44-
- <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>
44+
- <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>
45+
46+
### PayStatementItem
47+
48+
Types:
49+
50+
```python
51+
from finch.types.hris.company import PayStatementItemListResponse
52+
```
53+
54+
Methods:
55+
56+
- <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>
57+
58+
#### Rules
59+
60+
Types:
61+
62+
```python
63+
from finch.types.hris.company.pay_statement_item import (
64+
RuleCreateResponse,
65+
RuleUpdateResponse,
66+
RuleListResponse,
67+
RuleDeleteResponse,
68+
)
69+
```
70+
71+
Methods:
72+
73+
- <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>
74+
- <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>
75+
- <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>
76+
- <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>
4577

4678
## Directory
4779

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "finch-api"
3-
version = "1.19.0"
3+
version = "1.20.0"
44
description = "The official Python library for the Finch API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/finch/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "finch"
4-
__version__ = "1.19.0" # x-release-please-version
4+
__version__ = "1.20.0" # x-release-please-version

src/finch/resources/hris/benefits/benefits.py

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ def create(
8383
limiting this to <30 characters due to limitations in specific providers (e.g.
8484
Justworks).
8585
86+
frequency: The frequency of the benefit deduction/contribution.
87+
8688
type: Type of benefit.
8789
8890
extra_headers: Send extra headers
@@ -267,6 +269,8 @@ async def create(
267269
limiting this to <30 characters due to limitations in specific providers (e.g.
268270
Justworks).
269271
272+
frequency: The frequency of the benefit deduction/contribution.
273+
270274
type: Type of benefit.
271275
272276
extra_headers: Send extra headers
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .company import (
4+
CompanyResource,
5+
AsyncCompanyResource,
6+
CompanyResourceWithRawResponse,
7+
AsyncCompanyResourceWithRawResponse,
8+
CompanyResourceWithStreamingResponse,
9+
AsyncCompanyResourceWithStreamingResponse,
10+
)
11+
from .pay_statement_item import (
12+
PayStatementItem,
13+
AsyncPayStatementItem,
14+
PayStatementItemWithRawResponse,
15+
AsyncPayStatementItemWithRawResponse,
16+
PayStatementItemWithStreamingResponse,
17+
AsyncPayStatementItemWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"PayStatementItem",
22+
"AsyncPayStatementItem",
23+
"PayStatementItemWithRawResponse",
24+
"AsyncPayStatementItemWithRawResponse",
25+
"PayStatementItemWithStreamingResponse",
26+
"AsyncPayStatementItemWithStreamingResponse",
27+
"CompanyResource",
28+
"AsyncCompanyResource",
29+
"CompanyResourceWithRawResponse",
30+
"AsyncCompanyResourceWithRawResponse",
31+
"CompanyResourceWithStreamingResponse",
32+
"AsyncCompanyResourceWithStreamingResponse",
33+
]

src/finch/resources/hris/company.py renamed to src/finch/resources/hris/company/company.py

+39-7
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,30 @@
44

55
import httpx
66

7-
from ... import _legacy_response
8-
from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
9-
from ..._compat import cached_property
10-
from ..._resource import SyncAPIResource, AsyncAPIResource
11-
from ..._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
12-
from ..._base_client import make_request_options
13-
from ...types.hris.company import Company
7+
from .... import _legacy_response
8+
from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
9+
from ...._compat import cached_property
10+
from ...._resource import SyncAPIResource, AsyncAPIResource
11+
from ...._response import to_streamed_response_wrapper, async_to_streamed_response_wrapper
12+
from ...._base_client import make_request_options
13+
from ....types.hris.company.company import Company
14+
from .pay_statement_item.pay_statement_item import (
15+
PayStatementItem,
16+
AsyncPayStatementItem,
17+
PayStatementItemWithRawResponse,
18+
AsyncPayStatementItemWithRawResponse,
19+
PayStatementItemWithStreamingResponse,
20+
AsyncPayStatementItemWithStreamingResponse,
21+
)
1422

1523
__all__ = ["CompanyResource", "AsyncCompanyResource"]
1624

1725

1826
class CompanyResource(SyncAPIResource):
27+
@cached_property
28+
def pay_statement_item(self) -> PayStatementItem:
29+
return PayStatementItem(self._client)
30+
1931
@cached_property
2032
def with_raw_response(self) -> CompanyResourceWithRawResponse:
2133
"""
@@ -56,6 +68,10 @@ def retrieve(
5668

5769

5870
class AsyncCompanyResource(AsyncAPIResource):
71+
@cached_property
72+
def pay_statement_item(self) -> AsyncPayStatementItem:
73+
return AsyncPayStatementItem(self._client)
74+
5975
@cached_property
6076
def with_raw_response(self) -> AsyncCompanyResourceWithRawResponse:
6177
"""
@@ -103,6 +119,10 @@ def __init__(self, company: CompanyResource) -> None:
103119
company.retrieve,
104120
)
105121

122+
@cached_property
123+
def pay_statement_item(self) -> PayStatementItemWithRawResponse:
124+
return PayStatementItemWithRawResponse(self._company.pay_statement_item)
125+
106126

107127
class AsyncCompanyResourceWithRawResponse:
108128
def __init__(self, company: AsyncCompanyResource) -> None:
@@ -112,6 +132,10 @@ def __init__(self, company: AsyncCompanyResource) -> None:
112132
company.retrieve,
113133
)
114134

135+
@cached_property
136+
def pay_statement_item(self) -> AsyncPayStatementItemWithRawResponse:
137+
return AsyncPayStatementItemWithRawResponse(self._company.pay_statement_item)
138+
115139

116140
class CompanyResourceWithStreamingResponse:
117141
def __init__(self, company: CompanyResource) -> None:
@@ -121,6 +145,10 @@ def __init__(self, company: CompanyResource) -> None:
121145
company.retrieve,
122146
)
123147

148+
@cached_property
149+
def pay_statement_item(self) -> PayStatementItemWithStreamingResponse:
150+
return PayStatementItemWithStreamingResponse(self._company.pay_statement_item)
151+
124152

125153
class AsyncCompanyResourceWithStreamingResponse:
126154
def __init__(self, company: AsyncCompanyResource) -> None:
@@ -129,3 +157,7 @@ def __init__(self, company: AsyncCompanyResource) -> None:
129157
self.retrieve = async_to_streamed_response_wrapper(
130158
company.retrieve,
131159
)
160+
161+
@cached_property
162+
def pay_statement_item(self) -> AsyncPayStatementItemWithStreamingResponse:
163+
return AsyncPayStatementItemWithStreamingResponse(self._company.pay_statement_item)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .rules import (
4+
Rules,
5+
AsyncRules,
6+
RulesWithRawResponse,
7+
AsyncRulesWithRawResponse,
8+
RulesWithStreamingResponse,
9+
AsyncRulesWithStreamingResponse,
10+
)
11+
from .pay_statement_item import (
12+
PayStatementItem,
13+
AsyncPayStatementItem,
14+
PayStatementItemWithRawResponse,
15+
AsyncPayStatementItemWithRawResponse,
16+
PayStatementItemWithStreamingResponse,
17+
AsyncPayStatementItemWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"Rules",
22+
"AsyncRules",
23+
"RulesWithRawResponse",
24+
"AsyncRulesWithRawResponse",
25+
"RulesWithStreamingResponse",
26+
"AsyncRulesWithStreamingResponse",
27+
"PayStatementItem",
28+
"AsyncPayStatementItem",
29+
"PayStatementItemWithRawResponse",
30+
"AsyncPayStatementItemWithRawResponse",
31+
"PayStatementItemWithStreamingResponse",
32+
"AsyncPayStatementItemWithStreamingResponse",
33+
]

0 commit comments

Comments
 (0)