Skip to content

Commit ed4e919

Browse files
feat(api): api update
1 parent addc584 commit ed4e919

File tree

3 files changed

+55
-13
lines changed

3 files changed

+55
-13
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-6190639c909b62f2e182a32dc56a80a87ca470e8970efd6ce8d3d7bd659d237c.yml
3-
openapi_spec_hash: c4078fa61a4ab0b480a2c7b40e495104
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-970ab04a97244c68824c0c52e06925cba14fb7dbfc36c03167c1afe74cd1b150.yml
3+
openapi_spec_hash: 315e7859c3f77311261fb824b74a8247
44
config_hash: f2846563903bf75ab0858872154df0f7

src/finch/types/hris/benefits/individual_benefit.py

Lines changed: 52 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,32 @@
2323

2424
class BodyUnionMember0CompanyContributionUnionMember0(BaseModel):
2525
amount: int
26-
"""Contribution amount in cents."""
26+
"""
27+
Contribution amount in cents (for type=fixed) or basis points (for type=percent,
28+
where 100 = 1%). Not used for type=tiered.
29+
"""
2730

2831
type: Literal["fixed"]
29-
"""Fixed contribution type."""
32+
"""Contribution type.
33+
34+
Supported values: "fixed" (amount in cents), "percent" (amount in basis points),
35+
or "tiered" (multi-tier matching).
36+
"""
3037

3138

3239
class BodyUnionMember0CompanyContributionUnionMember1(BaseModel):
3340
amount: int
34-
"""Contribution amount in basis points (1/100th of a percent)."""
41+
"""
42+
Contribution amount in cents (for type=fixed) or basis points (for type=percent,
43+
where 100 = 1%). Not used for type=tiered.
44+
"""
3545

3646
type: Literal["percent"]
37-
"""Percentage contribution type."""
47+
"""Contribution type.
48+
49+
Supported values: "fixed" (amount in cents), "percent" (amount in basis points),
50+
or "tiered" (multi-tier matching).
51+
"""
3852

3953

4054
class BodyUnionMember0CompanyContributionUnionMember2Tier(BaseModel):
@@ -47,11 +61,15 @@ class BodyUnionMember0CompanyContributionUnionMember2(BaseModel):
4761
tiers: List[BodyUnionMember0CompanyContributionUnionMember2Tier]
4862
"""
4963
Array of tier objects defining employer match tiers based on employee
50-
contribution thresholds.
64+
contribution thresholds. Required when type=tiered.
5165
"""
5266

5367
type: Literal["tiered"]
54-
"""Tiered contribution type (only valid for company_contribution)."""
68+
"""Contribution type.
69+
70+
Supported values: "fixed" (amount in cents), "percent" (amount in basis points),
71+
or "tiered" (multi-tier matching).
72+
"""
5573

5674

5775
BodyUnionMember0CompanyContribution: TypeAlias = Union[
@@ -64,18 +82,32 @@ class BodyUnionMember0CompanyContributionUnionMember2(BaseModel):
6482

6583
class BodyUnionMember0EmployeeDeductionUnionMember0(BaseModel):
6684
amount: int
67-
"""Contribution amount in cents."""
85+
"""
86+
Contribution amount in cents (for type=fixed) or basis points (for type=percent,
87+
where 100 = 1%).
88+
"""
6889

6990
type: Literal["fixed"]
70-
"""Fixed contribution type."""
91+
"""Contribution type.
92+
93+
Supported values: "fixed" (amount in cents) or "percent" (amount in basis
94+
points).
95+
"""
7196

7297

7398
class BodyUnionMember0EmployeeDeductionUnionMember1(BaseModel):
7499
amount: int
75-
"""Contribution amount in basis points (1/100th of a percent)."""
100+
"""
101+
Contribution amount in cents (for type=fixed) or basis points (for type=percent,
102+
where 100 = 1%).
103+
"""
76104

77105
type: Literal["percent"]
78-
"""Percentage contribution type."""
106+
"""Contribution type.
107+
108+
Supported values: "fixed" (amount in cents) or "percent" (amount in basis
109+
points).
110+
"""
79111

80112

81113
BodyUnionMember0EmployeeDeduction: TypeAlias = Union[
@@ -96,8 +128,18 @@ class BodyUnionMember0(BaseModel):
96128
"""
97129

98130
company_contribution: Optional[BodyUnionMember0CompanyContribution] = None
131+
"""Company contribution configuration.
132+
133+
Supports fixed amounts (in cents), percentage-based contributions (in basis
134+
points where 100 = 1%), or tiered matching structures.
135+
"""
99136

100137
employee_deduction: Optional[BodyUnionMember0EmployeeDeduction] = None
138+
"""Employee deduction configuration.
139+
140+
Supports both fixed amounts (in cents) and percentage-based contributions (in
141+
basis points where 100 = 1%).
142+
"""
101143

102144
hsa_contribution_limit: Optional[Literal["individual", "family"]] = None
103145
"""Type for HSA contribution limit if the benefit is a HSA."""

src/finch/types/request_forwarding_forward_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Request(BaseModel):
2222
data: Union[str, Dict[str, Optional[object]], None] = None
2323
"""The body that was specified for the forwarded request."""
2424

25-
headers: Optional[Dict[str, Optional[object]]] = None
25+
headers: Optional[Dict[str, str]] = None
2626
"""The HTTP headers that were specified for the forwarded request."""
2727

2828
params: Optional[Dict[str, Optional[object]]] = None

0 commit comments

Comments
 (0)