From 05475743f12c8ca6558a6b3417b2accea6ccc12d Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Wed, 9 Apr 2025 19:06:52 +0000
Subject: [PATCH] chore: fix typo
---
.stats.yml | 2 +-
api.md | 4 ++--
.../resources/hris/benefits/individuals.py | 10 +++++-----
src/finch/types/hris/benefits/__init__.py | 2 +-
...nifit.py => enrolled_individual_benefit.py} | 4 ++--
.../hris/benefits/test_individuals.py | 18 +++++++++---------
6 files changed, 20 insertions(+), 20 deletions(-)
rename src/finch/types/hris/benefits/{enrolled_individual_benifit.py => enrolled_individual_benefit.py} (62%)
diff --git a/.stats.yml b/.stats.yml
index de2b9cc9..7ded5a0c 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 46
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-bf858f37d7ab420841ddc6329dad8c46377308b6a5c8e935908011d0f9845e22.yml
openapi_spec_hash: 2523952a32436e3c7fd3b55508c2e7ee
-config_hash: 4a8def48077df6382ed9fe00588baecf
+config_hash: 9faa2458e0e8bb125bf5d41e514a19e7
diff --git a/api.md b/api.md
index 30c1697a..8d16eed1 100644
--- a/api.md
+++ b/api.md
@@ -182,7 +182,7 @@ Types:
```python
from finch.types.hris.benefits import (
- EnrolledIndividualBenifit,
+ EnrolledIndividualBenefit,
IndividualBenefit,
IndividualEnrolledIDsResponse,
IndividualUnenrollManyResponse,
@@ -191,7 +191,7 @@ from finch.types.hris.benefits import (
Methods:
-- client.hris.benefits.individuals.enroll_many(benefit_id, \*\*params) -> EnrolledIndividualBenifit
+- client.hris.benefits.individuals.enroll_many(benefit_id, \*\*params) -> EnrolledIndividualBenefit
- client.hris.benefits.individuals.enrolled_ids(benefit_id) -> IndividualEnrolledIDsResponse
- client.hris.benefits.individuals.retrieve_many_benefits(benefit_id, \*\*params) -> SyncSinglePage[IndividualBenefit]
- client.hris.benefits.individuals.unenroll_many(benefit_id, \*\*params) -> IndividualUnenrollManyResponse
diff --git a/src/finch/resources/hris/benefits/individuals.py b/src/finch/resources/hris/benefits/individuals.py
index 3e06189d..144bfff2 100644
--- a/src/finch/resources/hris/benefits/individuals.py
+++ b/src/finch/resources/hris/benefits/individuals.py
@@ -23,7 +23,7 @@
individual_retrieve_many_benefits_params,
)
from ....types.hris.benefits.individual_benefit import IndividualBenefit
-from ....types.hris.benefits.enrolled_individual_benifit import EnrolledIndividualBenifit
+from ....types.hris.benefits.enrolled_individual_benefit import EnrolledIndividualBenefit
from ....types.hris.benefits.individual_enrolled_ids_response import IndividualEnrolledIDsResponse
from ....types.hris.benefits.individual_unenroll_many_response import IndividualUnenrollManyResponse
@@ -61,7 +61,7 @@ def enroll_many(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> EnrolledIndividualBenifit:
+ ) -> EnrolledIndividualBenefit:
"""Enroll an individual into a deduction or contribution.
This is an overwrite
@@ -88,7 +88,7 @@ def enroll_many(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=EnrolledIndividualBenifit,
+ cast_to=EnrolledIndividualBenefit,
)
def enrolled_ids(
@@ -240,7 +240,7 @@ async def enroll_many(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
- ) -> EnrolledIndividualBenifit:
+ ) -> EnrolledIndividualBenefit:
"""Enroll an individual into a deduction or contribution.
This is an overwrite
@@ -267,7 +267,7 @@ async def enroll_many(
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
- cast_to=EnrolledIndividualBenifit,
+ cast_to=EnrolledIndividualBenefit,
)
async def enrolled_ids(
diff --git a/src/finch/types/hris/benefits/__init__.py b/src/finch/types/hris/benefits/__init__.py
index 99dae977..2b8e565a 100644
--- a/src/finch/types/hris/benefits/__init__.py
+++ b/src/finch/types/hris/benefits/__init__.py
@@ -3,7 +3,7 @@
from __future__ import annotations
from .individual_benefit import IndividualBenefit as IndividualBenefit
-from .enrolled_individual_benifit import EnrolledIndividualBenifit as EnrolledIndividualBenifit
+from .enrolled_individual_benefit import EnrolledIndividualBenefit as EnrolledIndividualBenefit
from .individual_enroll_many_params import IndividualEnrollManyParams as IndividualEnrollManyParams
from .individual_unenroll_many_params import IndividualUnenrollManyParams as IndividualUnenrollManyParams
from .individual_enrolled_ids_response import IndividualEnrolledIDsResponse as IndividualEnrolledIDsResponse
diff --git a/src/finch/types/hris/benefits/enrolled_individual_benifit.py b/src/finch/types/hris/benefits/enrolled_individual_benefit.py
similarity index 62%
rename from src/finch/types/hris/benefits/enrolled_individual_benifit.py
rename to src/finch/types/hris/benefits/enrolled_individual_benefit.py
index 6f1354e5..1e08cda3 100644
--- a/src/finch/types/hris/benefits/enrolled_individual_benifit.py
+++ b/src/finch/types/hris/benefits/enrolled_individual_benefit.py
@@ -3,8 +3,8 @@
from ...._models import BaseModel
-__all__ = ["EnrolledIndividualBenifit"]
+__all__ = ["EnrolledIndividualBenefit"]
-class EnrolledIndividualBenifit(BaseModel):
+class EnrolledIndividualBenefit(BaseModel):
job_id: str
diff --git a/tests/api_resources/hris/benefits/test_individuals.py b/tests/api_resources/hris/benefits/test_individuals.py
index 8c49ddd5..14df0529 100644
--- a/tests/api_resources/hris/benefits/test_individuals.py
+++ b/tests/api_resources/hris/benefits/test_individuals.py
@@ -13,7 +13,7 @@
from finch.pagination import SyncSinglePage, AsyncSinglePage
from finch.types.hris.benefits import (
IndividualBenefit,
- EnrolledIndividualBenifit,
+ EnrolledIndividualBenefit,
IndividualEnrolledIDsResponse,
IndividualUnenrollManyResponse,
)
@@ -29,7 +29,7 @@ def test_method_enroll_many(self, client: Finch) -> None:
individual = client.hris.benefits.individuals.enroll_many(
benefit_id="benefit_id",
)
- assert_matches_type(EnrolledIndividualBenifit, individual, path=["response"])
+ assert_matches_type(EnrolledIndividualBenefit, individual, path=["response"])
@parametrize
def test_method_enroll_many_with_all_params(self, client: Finch) -> None:
@@ -55,7 +55,7 @@ def test_method_enroll_many_with_all_params(self, client: Finch) -> None:
}
],
)
- assert_matches_type(EnrolledIndividualBenifit, individual, path=["response"])
+ assert_matches_type(EnrolledIndividualBenefit, individual, path=["response"])
@parametrize
def test_raw_response_enroll_many(self, client: Finch) -> None:
@@ -66,7 +66,7 @@ def test_raw_response_enroll_many(self, client: Finch) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
individual = response.parse()
- assert_matches_type(EnrolledIndividualBenifit, individual, path=["response"])
+ assert_matches_type(EnrolledIndividualBenefit, individual, path=["response"])
@parametrize
def test_streaming_response_enroll_many(self, client: Finch) -> None:
@@ -77,7 +77,7 @@ def test_streaming_response_enroll_many(self, client: Finch) -> None:
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
individual = response.parse()
- assert_matches_type(EnrolledIndividualBenifit, individual, path=["response"])
+ assert_matches_type(EnrolledIndividualBenefit, individual, path=["response"])
assert cast(Any, response.is_closed) is True
@@ -227,7 +227,7 @@ async def test_method_enroll_many(self, async_client: AsyncFinch) -> None:
individual = await async_client.hris.benefits.individuals.enroll_many(
benefit_id="benefit_id",
)
- assert_matches_type(EnrolledIndividualBenifit, individual, path=["response"])
+ assert_matches_type(EnrolledIndividualBenefit, individual, path=["response"])
@parametrize
async def test_method_enroll_many_with_all_params(self, async_client: AsyncFinch) -> None:
@@ -253,7 +253,7 @@ async def test_method_enroll_many_with_all_params(self, async_client: AsyncFinch
}
],
)
- assert_matches_type(EnrolledIndividualBenifit, individual, path=["response"])
+ assert_matches_type(EnrolledIndividualBenefit, individual, path=["response"])
@parametrize
async def test_raw_response_enroll_many(self, async_client: AsyncFinch) -> None:
@@ -264,7 +264,7 @@ async def test_raw_response_enroll_many(self, async_client: AsyncFinch) -> None:
assert response.is_closed is True
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
individual = response.parse()
- assert_matches_type(EnrolledIndividualBenifit, individual, path=["response"])
+ assert_matches_type(EnrolledIndividualBenefit, individual, path=["response"])
@parametrize
async def test_streaming_response_enroll_many(self, async_client: AsyncFinch) -> None:
@@ -275,7 +275,7 @@ async def test_streaming_response_enroll_many(self, async_client: AsyncFinch) ->
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
individual = await response.parse()
- assert_matches_type(EnrolledIndividualBenifit, individual, path=["response"])
+ assert_matches_type(EnrolledIndividualBenefit, individual, path=["response"])
assert cast(Any, response.is_closed) is True