From 1d00a3210dee1aaf3c88334c0acbccbd78b1c48f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jul 2024 16:18:21 +0000 Subject: [PATCH 1/5] fix(api): remove unused fields (#432) --- .stats.yml | 2 +- src/finch/resources/hris/benefits/benefits.py | 8 ++++++++ src/finch/types/hris/benefit_create_params.py | 5 +++++ src/finch/types/hris/company_benefit.py | 5 ----- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1d061290..5c00677f 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 37 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-d354479cc46ae377d1b32b8896fd1ffdf4abb8a64e1ef49159fa20528e9e1288.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-f07d08f8590304c1e41dce8d97b2a734c04e9f6736ca1266f3669606682439cf.yml diff --git a/src/finch/resources/hris/benefits/benefits.py b/src/finch/resources/hris/benefits/benefits.py index 0484a21d..be079297 100644 --- a/src/finch/resources/hris/benefits/benefits.py +++ b/src/finch/resources/hris/benefits/benefits.py @@ -68,6 +68,10 @@ def create( `/providers` endpoint to view available types for each provider. Args: + description: Name of the benefit as it appears in the provider and pay statements. Recommend + limiting this to <30 characters due to limitations in specific providers (e.g. + Justworks). + type: Type of benefit. extra_headers: Send extra headers @@ -237,6 +241,10 @@ async def create( `/providers` endpoint to view available types for each provider. Args: + description: Name of the benefit as it appears in the provider and pay statements. Recommend + limiting this to <30 characters due to limitations in specific providers (e.g. + Justworks). + type: Type of benefit. extra_headers: Send extra headers diff --git a/src/finch/types/hris/benefit_create_params.py b/src/finch/types/hris/benefit_create_params.py index efea46a5..00537cc6 100644 --- a/src/finch/types/hris/benefit_create_params.py +++ b/src/finch/types/hris/benefit_create_params.py @@ -13,6 +13,11 @@ class BenefitCreateParams(TypedDict, total=False): description: str + """Name of the benefit as it appears in the provider and pay statements. + + Recommend limiting this to <30 characters due to limitations in specific + providers (e.g. Justworks). + """ frequency: Optional[BenefitFrequency] diff --git a/src/finch/types/hris/company_benefit.py b/src/finch/types/hris/company_benefit.py index 642642ba..a3eaeb9c 100644 --- a/src/finch/types/hris/company_benefit.py +++ b/src/finch/types/hris/company_benefit.py @@ -5,7 +5,6 @@ from ..._models import BaseModel from .benefit_type import BenefitType from .benefit_frequency import BenefitFrequency -from .benefit_contribution import BenefitContribution __all__ = ["CompanyBenefit"] @@ -13,12 +12,8 @@ class CompanyBenefit(BaseModel): benefit_id: str - company_contribution: Optional[BenefitContribution] = None - description: Optional[str] = None - employee_deduction: Optional[BenefitContribution] = None - frequency: Optional[BenefitFrequency] = None type: Optional[BenefitType] = None From 178f659bcd0005c433548fcbc0611c5be5fac464 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 15 Jul 2024 18:20:57 +0000 Subject: [PATCH 2/5] chore(docs): minor update to formatting of API link in README (#434) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 55f1486b..88c99b3b 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ and offers both synchronous and asynchronous clients powered by [httpx](https:// ## Documentation -The REST API documentation can be found [in the Finch Documentation Center](https://developer.tryfinch.com/). The full API of this library can be found in [api.md](api.md). +The REST API documentation can be found on [developer.tryfinch.com](https://developer.tryfinch.com/). The full API of this library can be found in [api.md](api.md). ## Installation From ae16b3ae58e2fb9c987b553b27214ef64c66706e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jul 2024 14:57:32 +0000 Subject: [PATCH 3/5] chore(internal): update formatting (#435) --- src/finch/types/base_webhook_event.py | 1 - src/finch/types/disconnect_response.py | 1 - src/finch/types/hris/benfit_contribution.py | 1 - src/finch/types/hris/create_company_benefits_response.py | 1 - src/finch/types/hris/update_company_benefit_response.py | 1 - src/finch/types/jobs/automated_create_response.py | 1 - src/finch/types/sandbox/job_create_response.py | 1 - src/finch/types/sandbox/payment_create_response.py | 1 - 8 files changed, 8 deletions(-) diff --git a/src/finch/types/base_webhook_event.py b/src/finch/types/base_webhook_event.py index 87bd216a..0e81ab38 100644 --- a/src/finch/types/base_webhook_event.py +++ b/src/finch/types/base_webhook_event.py @@ -1,7 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from .._models import BaseModel __all__ = ["BaseWebhookEvent"] diff --git a/src/finch/types/disconnect_response.py b/src/finch/types/disconnect_response.py index d30ec36c..ae2efc6d 100644 --- a/src/finch/types/disconnect_response.py +++ b/src/finch/types/disconnect_response.py @@ -1,7 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from .._models import BaseModel __all__ = ["DisconnectResponse"] diff --git a/src/finch/types/hris/benfit_contribution.py b/src/finch/types/hris/benfit_contribution.py index ca806127..9a07b032 100644 --- a/src/finch/types/hris/benfit_contribution.py +++ b/src/finch/types/hris/benfit_contribution.py @@ -1,7 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from .benefit_contribution import BenefitContribution __all__ = ["BenfitContribution"] diff --git a/src/finch/types/hris/create_company_benefits_response.py b/src/finch/types/hris/create_company_benefits_response.py index 105cec00..176c024d 100644 --- a/src/finch/types/hris/create_company_benefits_response.py +++ b/src/finch/types/hris/create_company_benefits_response.py @@ -1,7 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from ..._models import BaseModel __all__ = ["CreateCompanyBenefitsResponse"] diff --git a/src/finch/types/hris/update_company_benefit_response.py b/src/finch/types/hris/update_company_benefit_response.py index 9cc7e992..de9f25b0 100644 --- a/src/finch/types/hris/update_company_benefit_response.py +++ b/src/finch/types/hris/update_company_benefit_response.py @@ -1,7 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from ..._models import BaseModel __all__ = ["UpdateCompanyBenefitResponse"] diff --git a/src/finch/types/jobs/automated_create_response.py b/src/finch/types/jobs/automated_create_response.py index cb3159b9..8ff5d991 100644 --- a/src/finch/types/jobs/automated_create_response.py +++ b/src/finch/types/jobs/automated_create_response.py @@ -1,7 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from ..._models import BaseModel __all__ = ["AutomatedCreateResponse"] diff --git a/src/finch/types/sandbox/job_create_response.py b/src/finch/types/sandbox/job_create_response.py index 80bc795d..f8e39f16 100644 --- a/src/finch/types/sandbox/job_create_response.py +++ b/src/finch/types/sandbox/job_create_response.py @@ -1,7 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from ..._models import BaseModel __all__ = ["JobCreateResponse"] diff --git a/src/finch/types/sandbox/payment_create_response.py b/src/finch/types/sandbox/payment_create_response.py index 6b31d415..028bbde5 100644 --- a/src/finch/types/sandbox/payment_create_response.py +++ b/src/finch/types/sandbox/payment_create_response.py @@ -1,7 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - from ..._models import BaseModel __all__ = ["PaymentCreateResponse"] From 67630b392348670c88b3effdd62b8ad132de8b04 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jul 2024 22:33:15 +0000 Subject: [PATCH 4/5] chore(internal): update formatting (#436) --- src/finch/types/base_webhook_event.py | 1 + src/finch/types/disconnect_response.py | 1 + src/finch/types/hris/benfit_contribution.py | 1 + src/finch/types/hris/create_company_benefits_response.py | 1 + src/finch/types/hris/update_company_benefit_response.py | 1 + src/finch/types/jobs/automated_create_response.py | 1 + src/finch/types/sandbox/job_create_response.py | 1 + src/finch/types/sandbox/payment_create_response.py | 1 + 8 files changed, 8 insertions(+) diff --git a/src/finch/types/base_webhook_event.py b/src/finch/types/base_webhook_event.py index 0e81ab38..87bd216a 100644 --- a/src/finch/types/base_webhook_event.py +++ b/src/finch/types/base_webhook_event.py @@ -1,6 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from .._models import BaseModel __all__ = ["BaseWebhookEvent"] diff --git a/src/finch/types/disconnect_response.py b/src/finch/types/disconnect_response.py index ae2efc6d..d30ec36c 100644 --- a/src/finch/types/disconnect_response.py +++ b/src/finch/types/disconnect_response.py @@ -1,6 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from .._models import BaseModel __all__ = ["DisconnectResponse"] diff --git a/src/finch/types/hris/benfit_contribution.py b/src/finch/types/hris/benfit_contribution.py index 9a07b032..ca806127 100644 --- a/src/finch/types/hris/benfit_contribution.py +++ b/src/finch/types/hris/benfit_contribution.py @@ -1,6 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from .benefit_contribution import BenefitContribution __all__ = ["BenfitContribution"] diff --git a/src/finch/types/hris/create_company_benefits_response.py b/src/finch/types/hris/create_company_benefits_response.py index 176c024d..105cec00 100644 --- a/src/finch/types/hris/create_company_benefits_response.py +++ b/src/finch/types/hris/create_company_benefits_response.py @@ -1,6 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from ..._models import BaseModel __all__ = ["CreateCompanyBenefitsResponse"] diff --git a/src/finch/types/hris/update_company_benefit_response.py b/src/finch/types/hris/update_company_benefit_response.py index de9f25b0..9cc7e992 100644 --- a/src/finch/types/hris/update_company_benefit_response.py +++ b/src/finch/types/hris/update_company_benefit_response.py @@ -1,6 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from ..._models import BaseModel __all__ = ["UpdateCompanyBenefitResponse"] diff --git a/src/finch/types/jobs/automated_create_response.py b/src/finch/types/jobs/automated_create_response.py index 8ff5d991..cb3159b9 100644 --- a/src/finch/types/jobs/automated_create_response.py +++ b/src/finch/types/jobs/automated_create_response.py @@ -1,6 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from ..._models import BaseModel __all__ = ["AutomatedCreateResponse"] diff --git a/src/finch/types/sandbox/job_create_response.py b/src/finch/types/sandbox/job_create_response.py index f8e39f16..80bc795d 100644 --- a/src/finch/types/sandbox/job_create_response.py +++ b/src/finch/types/sandbox/job_create_response.py @@ -1,6 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from ..._models import BaseModel __all__ = ["JobCreateResponse"] diff --git a/src/finch/types/sandbox/payment_create_response.py b/src/finch/types/sandbox/payment_create_response.py index 028bbde5..6b31d415 100644 --- a/src/finch/types/sandbox/payment_create_response.py +++ b/src/finch/types/sandbox/payment_create_response.py @@ -1,6 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + from ..._models import BaseModel __all__ = ["PaymentCreateResponse"] From cd5a3477ef492206caae2dc70593ca0f84d56845 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 16 Jul 2024 22:33:33 +0000 Subject: [PATCH 5/5] release: 0.21.12 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 15 +++++++++++++++ pyproject.toml | 2 +- src/finch/_version.py | 2 +- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 03d9f9f6..88f43163 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.21.11" + ".": "0.21.12" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index ae341c61..6fe6f3a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 0.21.12 (2024-07-16) + +Full Changelog: [v0.21.11...v0.21.12](https://github.com/Finch-API/finch-api-python/compare/v0.21.11...v0.21.12) + +### Bug Fixes + +* **api:** remove unused fields ([#432](https://github.com/Finch-API/finch-api-python/issues/432)) ([1d00a32](https://github.com/Finch-API/finch-api-python/commit/1d00a3210dee1aaf3c88334c0acbccbd78b1c48f)) + + +### Chores + +* **docs:** minor update to formatting of API link in README ([#434](https://github.com/Finch-API/finch-api-python/issues/434)) ([178f659](https://github.com/Finch-API/finch-api-python/commit/178f659bcd0005c433548fcbc0611c5be5fac464)) +* **internal:** update formatting ([#435](https://github.com/Finch-API/finch-api-python/issues/435)) ([ae16b3a](https://github.com/Finch-API/finch-api-python/commit/ae16b3ae58e2fb9c987b553b27214ef64c66706e)) +* **internal:** update formatting ([#436](https://github.com/Finch-API/finch-api-python/issues/436)) ([67630b3](https://github.com/Finch-API/finch-api-python/commit/67630b392348670c88b3effdd62b8ad132de8b04)) + ## 0.21.11 (2024-07-15) Full Changelog: [v0.21.10...v0.21.11](https://github.com/Finch-API/finch-api-python/compare/v0.21.10...v0.21.11) diff --git a/pyproject.toml b/pyproject.toml index 0ea0bd7b..2246203f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "finch-api" -version = "0.21.11" +version = "0.21.12" 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 f9d782cf..bc74e3e0 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__ = "0.21.11" # x-release-please-version +__version__ = "0.21.12" # x-release-please-version