Skip to content

Commit 1d00a32

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
fix(api): remove unused fields (#432)
1 parent bea573c commit 1d00a32

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 37
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-d354479cc46ae377d1b32b8896fd1ffdf4abb8a64e1ef49159fa20528e9e1288.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-f07d08f8590304c1e41dce8d97b2a734c04e9f6736ca1266f3669606682439cf.yml

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

+8
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ def create(
6868
`/providers` endpoint to view available types for each provider.
6969
7070
Args:
71+
description: Name of the benefit as it appears in the provider and pay statements. Recommend
72+
limiting this to <30 characters due to limitations in specific providers (e.g.
73+
Justworks).
74+
7175
type: Type of benefit.
7276
7377
extra_headers: Send extra headers
@@ -237,6 +241,10 @@ async def create(
237241
`/providers` endpoint to view available types for each provider.
238242
239243
Args:
244+
description: Name of the benefit as it appears in the provider and pay statements. Recommend
245+
limiting this to <30 characters due to limitations in specific providers (e.g.
246+
Justworks).
247+
240248
type: Type of benefit.
241249
242250
extra_headers: Send extra headers

src/finch/types/hris/benefit_create_params.py

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313

1414
class BenefitCreateParams(TypedDict, total=False):
1515
description: str
16+
"""Name of the benefit as it appears in the provider and pay statements.
17+
18+
Recommend limiting this to <30 characters due to limitations in specific
19+
providers (e.g. Justworks).
20+
"""
1621

1722
frequency: Optional[BenefitFrequency]
1823

src/finch/types/hris/company_benefit.py

-5
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,15 @@
55
from ..._models import BaseModel
66
from .benefit_type import BenefitType
77
from .benefit_frequency import BenefitFrequency
8-
from .benefit_contribution import BenefitContribution
98

109
__all__ = ["CompanyBenefit"]
1110

1211

1312
class CompanyBenefit(BaseModel):
1413
benefit_id: str
1514

16-
company_contribution: Optional[BenefitContribution] = None
17-
1815
description: Optional[str] = None
1916

20-
employee_deduction: Optional[BenefitContribution] = None
21-
2217
frequency: Optional[BenefitFrequency] = None
2318

2419
type: Optional[BenefitType] = None

0 commit comments

Comments
 (0)