Skip to content

release: 1.16.0 #606

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 2 commits into from
Feb 27, 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
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.15.0"
".": "1.16.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 41
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-57fcc886b05984f78d7e68e9b2494af925f1b104e3475ed5281fde6c728a8518.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-7a816d4a5f0039230590a6662f3513d5756344ca662761ecbc49016593f65836.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.16.0 (2025-02-27)

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

### Features

* **api:** api update ([#605](https://github.com/Finch-API/finch-api-python/issues/605)) ([3967436](https://github.com/Finch-API/finch-api-python/commit/3967436c42269da3e164c1351297e64b841fdf04))

## 1.15.0 (2025-02-26)

Full Changelog: [v1.14.2...v1.15.0](https://github.com/Finch-API/finch-api-python/compare/v1.14.2...v1.15.0)
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.15.0"
version = "1.16.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.15.0" # x-release-please-version
__version__ = "1.16.0" # x-release-please-version
28 changes: 24 additions & 4 deletions src/finch/types/hris/pay_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,20 @@
"PayStatement",
"Earning",
"EarningAttributes",
"EarningAttributesMetadata",
"EmployeeDeduction",
"EmployeeDeductionAttributes",
"EmployeeDeductionAttributesMetadata",
"EmployerContribution",
"EmployerContributionAttributes",
"EmployerContributionAttributesMetadata",
"Tax",
"TaxAttributes",
"TaxAttributesMetadata",
]


class EarningAttributes(BaseModel):
class EarningAttributesMetadata(BaseModel):
metadata: Optional[Dict[str, object]] = None
"""The metadata to be attached to the entity by existing rules.

Expand All @@ -29,6 +33,10 @@ class EarningAttributes(BaseModel):
"""


class EarningAttributes(BaseModel):
metadata: Optional[EarningAttributesMetadata] = None


class Earning(BaseModel):
amount: Optional[int] = None
"""The earnings amount in cents."""
Expand Down Expand Up @@ -68,7 +76,7 @@ class Earning(BaseModel):
"""The type of earning."""


class EmployeeDeductionAttributes(BaseModel):
class EmployeeDeductionAttributesMetadata(BaseModel):
metadata: Optional[Dict[str, object]] = None
"""The metadata to be attached to the entity by existing rules.

Expand All @@ -77,6 +85,10 @@ class EmployeeDeductionAttributes(BaseModel):
"""


class EmployeeDeductionAttributes(BaseModel):
metadata: Optional[EmployeeDeductionAttributesMetadata] = None


class EmployeeDeduction(BaseModel):
amount: Optional[int] = None
"""The deduction amount in cents."""
Expand All @@ -96,7 +108,7 @@ class EmployeeDeduction(BaseModel):
"""Type of benefit."""


class EmployerContributionAttributes(BaseModel):
class EmployerContributionAttributesMetadata(BaseModel):
metadata: Optional[Dict[str, object]] = None
"""The metadata to be attached to the entity by existing rules.

Expand All @@ -105,6 +117,10 @@ class EmployerContributionAttributes(BaseModel):
"""


class EmployerContributionAttributes(BaseModel):
metadata: Optional[EmployerContributionAttributesMetadata] = None


class EmployerContribution(BaseModel):
amount: Optional[int] = None
"""The contribution amount in cents."""
Expand All @@ -121,7 +137,7 @@ class EmployerContribution(BaseModel):
"""Type of benefit."""


class TaxAttributes(BaseModel):
class TaxAttributesMetadata(BaseModel):
metadata: Optional[Dict[str, object]] = None
"""The metadata to be attached to the entity by existing rules.

Expand All @@ -130,6 +146,10 @@ class TaxAttributes(BaseModel):
"""


class TaxAttributes(BaseModel):
metadata: Optional[TaxAttributesMetadata] = None


class Tax(BaseModel):
amount: Optional[int] = None
"""The tax amount in cents."""
Expand Down
28 changes: 24 additions & 4 deletions src/finch/types/sandbox/payment_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@
"PayStatement",
"PayStatementEarning",
"PayStatementEarningAttributes",
"PayStatementEarningAttributesMetadata",
"PayStatementEmployeeDeduction",
"PayStatementEmployeeDeductionAttributes",
"PayStatementEmployeeDeductionAttributesMetadata",
"PayStatementEmployerContribution",
"PayStatementEmployerContributionAttributes",
"PayStatementEmployerContributionAttributesMetadata",
"PayStatementTax",
"PayStatementTaxAttributes",
"PayStatementTaxAttributesMetadata",
]


Expand All @@ -30,7 +34,7 @@ class PaymentCreateParams(TypedDict, total=False):
start_date: str


class PayStatementEarningAttributes(TypedDict, total=False):
class PayStatementEarningAttributesMetadata(TypedDict, total=False):
metadata: Dict[str, object]
"""The metadata to be attached to the entity by existing rules.

Expand All @@ -39,6 +43,10 @@ class PayStatementEarningAttributes(TypedDict, total=False):
"""


class PayStatementEarningAttributes(TypedDict, total=False):
metadata: PayStatementEarningAttributesMetadata


class PayStatementEarning(TypedDict, total=False):
amount: Optional[int]
"""The earnings amount in cents."""
Expand Down Expand Up @@ -78,7 +86,7 @@ class PayStatementEarning(TypedDict, total=False):
"""The type of earning."""


class PayStatementEmployeeDeductionAttributes(TypedDict, total=False):
class PayStatementEmployeeDeductionAttributesMetadata(TypedDict, total=False):
metadata: Dict[str, object]
"""The metadata to be attached to the entity by existing rules.

Expand All @@ -87,6 +95,10 @@ class PayStatementEmployeeDeductionAttributes(TypedDict, total=False):
"""


class PayStatementEmployeeDeductionAttributes(TypedDict, total=False):
metadata: PayStatementEmployeeDeductionAttributesMetadata


class PayStatementEmployeeDeduction(TypedDict, total=False):
amount: Optional[int]
"""The deduction amount in cents."""
Expand All @@ -106,7 +118,7 @@ class PayStatementEmployeeDeduction(TypedDict, total=False):
"""Type of benefit."""


class PayStatementEmployerContributionAttributes(TypedDict, total=False):
class PayStatementEmployerContributionAttributesMetadata(TypedDict, total=False):
metadata: Dict[str, object]
"""The metadata to be attached to the entity by existing rules.

Expand All @@ -115,6 +127,10 @@ class PayStatementEmployerContributionAttributes(TypedDict, total=False):
"""


class PayStatementEmployerContributionAttributes(TypedDict, total=False):
metadata: PayStatementEmployerContributionAttributesMetadata


class PayStatementEmployerContribution(TypedDict, total=False):
amount: Optional[int]
"""The contribution amount in cents."""
Expand All @@ -131,7 +147,7 @@ class PayStatementEmployerContribution(TypedDict, total=False):
"""Type of benefit."""


class PayStatementTaxAttributes(TypedDict, total=False):
class PayStatementTaxAttributesMetadata(TypedDict, total=False):
metadata: Dict[str, object]
"""The metadata to be attached to the entity by existing rules.

Expand All @@ -140,6 +156,10 @@ class PayStatementTaxAttributes(TypedDict, total=False):
"""


class PayStatementTaxAttributes(TypedDict, total=False):
metadata: PayStatementTaxAttributesMetadata


class PayStatementTax(TypedDict, total=False):
amount: Optional[int]
"""The tax amount in cents."""
Expand Down
32 changes: 16 additions & 16 deletions tests/api_resources/sandbox/test_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None:
"earnings": [
{
"amount": 0,
"attributes": {"metadata": {"foo": "bar"}},
"attributes": {"metadata": {"metadata": {"foo": "bar"}}},
"currency": "currency",
"hours": 0,
"name": "name",
Expand All @@ -40,18 +40,18 @@ def test_method_create_with_all_params(self, client: Finch) -> None:
],
"employee_deductions": [
{
"amount": 0,
"attributes": {"metadata": {"foo": "bar"}},
"currency": "currency",
"name": "name",
"amount": 2000,
"attributes": {"metadata": {"metadata": {"foo": "bar"}}},
"currency": "usd",
"name": "401k test",
"pre_tax": True,
"type": "401k",
}
],
"employer_contributions": [
{
"amount": 0,
"attributes": {"metadata": {"foo": "bar"}},
"attributes": {"metadata": {"metadata": {"foo": "bar"}}},
"currency": "currency",
"name": "name",
"type": "401k",
Expand All @@ -61,7 +61,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None:
"amount": 0,
"currency": "currency",
},
"individual_id": "individual_id",
"individual_id": "b2338cfb-472f-4f72-9faa-e028c083144a",
"net_pay": {
"amount": 0,
"currency": "currency",
Expand All @@ -70,7 +70,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None:
"taxes": [
{
"amount": 0,
"attributes": {"metadata": {"foo": "bar"}},
"attributes": {"metadata": {"metadata": {"foo": "bar"}}},
"currency": "currency",
"employer": True,
"name": "name",
Expand Down Expand Up @@ -123,7 +123,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) ->
"earnings": [
{
"amount": 0,
"attributes": {"metadata": {"foo": "bar"}},
"attributes": {"metadata": {"metadata": {"foo": "bar"}}},
"currency": "currency",
"hours": 0,
"name": "name",
Expand All @@ -132,18 +132,18 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) ->
],
"employee_deductions": [
{
"amount": 0,
"attributes": {"metadata": {"foo": "bar"}},
"currency": "currency",
"name": "name",
"amount": 2000,
"attributes": {"metadata": {"metadata": {"foo": "bar"}}},
"currency": "usd",
"name": "401k test",
"pre_tax": True,
"type": "401k",
}
],
"employer_contributions": [
{
"amount": 0,
"attributes": {"metadata": {"foo": "bar"}},
"attributes": {"metadata": {"metadata": {"foo": "bar"}}},
"currency": "currency",
"name": "name",
"type": "401k",
Expand All @@ -153,7 +153,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) ->
"amount": 0,
"currency": "currency",
},
"individual_id": "individual_id",
"individual_id": "b2338cfb-472f-4f72-9faa-e028c083144a",
"net_pay": {
"amount": 0,
"currency": "currency",
Expand All @@ -162,7 +162,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) ->
"taxes": [
{
"amount": 0,
"attributes": {"metadata": {"foo": "bar"}},
"attributes": {"metadata": {"metadata": {"foo": "bar"}}},
"currency": "currency",
"employer": True,
"name": "name",
Expand Down