Skip to content

Commit f616b88

Browse files
feat(api): api update
1 parent 6d98868 commit f616b88

13 files changed

Lines changed: 180 additions & 2 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 48
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-166cc05754d8591beda094f4ee6f438f55d5f65d490ab364ea130c5100134375.yml
3-
openapi_spec_hash: 4582a35bbe9fb5404d1e4f804c877fa8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch/finch-bdcc610cd7d5dcb5d3d7598a33957dd673cb81f14ca5d8dc9d41fced4230f114.yml
3+
openapi_spec_hash: 16dce00b8187a592fab5c88efc7bf7fc
44
config_hash: 9ae56f40cec7304896138bfad5caf748

src/finch/resources/sandbox/employment.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ def update(
5757
end_date: Optional[str] | Omit = omit,
5858
first_name: Optional[str] | Omit = omit,
5959
flsa_status: Optional[Literal["exempt", "non_exempt", "unknown"]] | Omit = omit,
60+
highly_compensated_employee: Optional[bool] | Omit = omit,
6061
income: Optional[IncomeParam] | Omit = omit,
6162
income_history: Optional[Iterable[Optional[IncomeParam]]] | Omit = omit,
6263
is_active: Optional[bool] | Omit = omit,
64+
key_employee: Optional[bool] | Omit = omit,
6365
last_name: Optional[str] | Omit = omit,
6466
latest_rehire_date: Optional[str] | Omit = omit,
6567
location: Optional[LocationParam] | Omit = omit,
@@ -68,6 +70,8 @@ def update(
6870
source_id: Optional[str] | Omit = omit,
6971
start_date: Optional[str] | Omit = omit,
7072
title: Optional[str] | Omit = omit,
73+
union_code: Optional[str] | Omit = omit,
74+
union_local: Optional[str] | Omit = omit,
7175
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
7276
# The extra values given here take precedence over values defined on the client or passed to this method.
7377
extra_headers: Headers | None = None,
@@ -96,6 +100,9 @@ def update(
96100
flsa_status: The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
97101
`unknown`.
98102
103+
highly_compensated_employee: IRS flag indicating whether the employee is classified as a Highly Compensated
104+
Employee for nondiscrimination testing purposes (ADP/ACP tests). US-only.
105+
99106
income: The employee's income as reported by the provider. This may not always be
100107
annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
101108
depending on what information the provider returns.
@@ -104,6 +111,9 @@ def update(
104111
105112
is_active: `true` if the individual an an active employee or contractor at the company.
106113
114+
key_employee: IRS flag indicating whether the employee is classified as a Key Employee for
115+
top-heavy testing purposes. US-only.
116+
107117
last_name: The legal last name of the individual.
108118
109119
location
@@ -116,6 +126,11 @@ def update(
116126
117127
title: The current title of the individual.
118128
129+
union_code: The code identifying the union the employee is a member of, as configured in the
130+
payroll system.
131+
132+
union_local: The local chapter or local number within the employee's union.
133+
119134
extra_headers: Send extra headers
120135
121136
extra_query: Add additional query parameters to the request
@@ -138,9 +153,11 @@ def update(
138153
"end_date": end_date,
139154
"first_name": first_name,
140155
"flsa_status": flsa_status,
156+
"highly_compensated_employee": highly_compensated_employee,
141157
"income": income,
142158
"income_history": income_history,
143159
"is_active": is_active,
160+
"key_employee": key_employee,
144161
"last_name": last_name,
145162
"latest_rehire_date": latest_rehire_date,
146163
"location": location,
@@ -149,6 +166,8 @@ def update(
149166
"source_id": source_id,
150167
"start_date": start_date,
151168
"title": title,
169+
"union_code": union_code,
170+
"union_local": union_local,
152171
},
153172
employment_update_params.EmploymentUpdateParams,
154173
),
@@ -198,9 +217,11 @@ async def update(
198217
end_date: Optional[str] | Omit = omit,
199218
first_name: Optional[str] | Omit = omit,
200219
flsa_status: Optional[Literal["exempt", "non_exempt", "unknown"]] | Omit = omit,
220+
highly_compensated_employee: Optional[bool] | Omit = omit,
201221
income: Optional[IncomeParam] | Omit = omit,
202222
income_history: Optional[Iterable[Optional[IncomeParam]]] | Omit = omit,
203223
is_active: Optional[bool] | Omit = omit,
224+
key_employee: Optional[bool] | Omit = omit,
204225
last_name: Optional[str] | Omit = omit,
205226
latest_rehire_date: Optional[str] | Omit = omit,
206227
location: Optional[LocationParam] | Omit = omit,
@@ -209,6 +230,8 @@ async def update(
209230
source_id: Optional[str] | Omit = omit,
210231
start_date: Optional[str] | Omit = omit,
211232
title: Optional[str] | Omit = omit,
233+
union_code: Optional[str] | Omit = omit,
234+
union_local: Optional[str] | Omit = omit,
212235
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
213236
# The extra values given here take precedence over values defined on the client or passed to this method.
214237
extra_headers: Headers | None = None,
@@ -237,6 +260,9 @@ async def update(
237260
flsa_status: The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
238261
`unknown`.
239262
263+
highly_compensated_employee: IRS flag indicating whether the employee is classified as a Highly Compensated
264+
Employee for nondiscrimination testing purposes (ADP/ACP tests). US-only.
265+
240266
income: The employee's income as reported by the provider. This may not always be
241267
annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
242268
depending on what information the provider returns.
@@ -245,6 +271,9 @@ async def update(
245271
246272
is_active: `true` if the individual an an active employee or contractor at the company.
247273
274+
key_employee: IRS flag indicating whether the employee is classified as a Key Employee for
275+
top-heavy testing purposes. US-only.
276+
248277
last_name: The legal last name of the individual.
249278
250279
location
@@ -257,6 +286,11 @@ async def update(
257286
258287
title: The current title of the individual.
259288
289+
union_code: The code identifying the union the employee is a member of, as configured in the
290+
payroll system.
291+
292+
union_local: The local chapter or local number within the employee's union.
293+
260294
extra_headers: Send extra headers
261295
262296
extra_query: Add additional query parameters to the request
@@ -279,9 +313,11 @@ async def update(
279313
"end_date": end_date,
280314
"first_name": first_name,
281315
"flsa_status": flsa_status,
316+
"highly_compensated_employee": highly_compensated_employee,
282317
"income": income,
283318
"income_history": income_history,
284319
"is_active": is_active,
320+
"key_employee": key_employee,
285321
"last_name": last_name,
286322
"latest_rehire_date": latest_rehire_date,
287323
"location": location,
@@ -290,6 +326,8 @@ async def update(
290326
"source_id": source_id,
291327
"start_date": start_date,
292328
"title": title,
329+
"union_code": union_code,
330+
"union_local": union_local,
293331
},
294332
employment_update_params.EmploymentUpdateParams,
295333
),

src/finch/resources/sandbox/individual.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def update(
6464
first_name: Optional[str] | Omit = omit,
6565
gender: Optional[Literal["female", "male", "other", "decline_to_specify"]] | Omit = omit,
6666
last_name: Optional[str] | Omit = omit,
67+
marital_status: Optional[Literal["single", "married", "divorced", "widowed", "domestic_partner", "unknown"]]
68+
| Omit = omit,
6769
middle_name: Optional[str] | Omit = omit,
6870
phone_numbers: Optional[Iterable[Optional[individual_update_params.PhoneNumber]]] | Omit = omit,
6971
preferred_name: Optional[str] | Omit = omit,
@@ -92,6 +94,9 @@ def update(
9294
9395
last_name: The legal last name of the individual.
9496
97+
marital_status: The employee's marital status, used for beneficiary designation and spousal
98+
consent workflows.
99+
95100
middle_name: The legal middle name of the individual.
96101
97102
preferred_name: The preferred name of the individual.
@@ -124,6 +129,7 @@ def update(
124129
"first_name": first_name,
125130
"gender": gender,
126131
"last_name": last_name,
132+
"marital_status": marital_status,
127133
"middle_name": middle_name,
128134
"phone_numbers": phone_numbers,
129135
"preferred_name": preferred_name,
@@ -186,6 +192,8 @@ async def update(
186192
first_name: Optional[str] | Omit = omit,
187193
gender: Optional[Literal["female", "male", "other", "decline_to_specify"]] | Omit = omit,
188194
last_name: Optional[str] | Omit = omit,
195+
marital_status: Optional[Literal["single", "married", "divorced", "widowed", "domestic_partner", "unknown"]]
196+
| Omit = omit,
189197
middle_name: Optional[str] | Omit = omit,
190198
phone_numbers: Optional[Iterable[Optional[individual_update_params.PhoneNumber]]] | Omit = omit,
191199
preferred_name: Optional[str] | Omit = omit,
@@ -214,6 +222,9 @@ async def update(
214222
215223
last_name: The legal last name of the individual.
216224
225+
marital_status: The employee's marital status, used for beneficiary designation and spousal
226+
consent workflows.
227+
217228
middle_name: The legal middle name of the individual.
218229
219230
preferred_name: The preferred name of the individual.
@@ -246,6 +257,7 @@ async def update(
246257
"first_name": first_name,
247258
"gender": gender,
248259
"last_name": last_name,
260+
"marital_status": marital_status,
249261
"middle_name": middle_name,
250262
"phone_numbers": phone_numbers,
251263
"preferred_name": preferred_name,

src/finch/types/hris/employment_data.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,21 @@ class EmploymentDataResponseBody(BaseModel):
8181
Available options: `exempt`, `non_exempt`, `unknown`.
8282
"""
8383

84+
highly_compensated_employee: Optional[bool] = None
85+
"""
86+
IRS flag indicating whether the employee is classified as a Highly Compensated
87+
Employee for nondiscrimination testing purposes (ADP/ACP tests). US-only.
88+
"""
89+
8490
is_active: Optional[bool] = None
8591
"""`true` if the individual an an active employee or contractor at the company."""
8692

93+
key_employee: Optional[bool] = None
94+
"""
95+
IRS flag indicating whether the employee is classified as a Key Employee for
96+
top-heavy testing purposes. US-only.
97+
"""
98+
8799
last_name: Optional[str] = None
88100
"""The legal last name of the individual."""
89101

@@ -102,6 +114,15 @@ class EmploymentDataResponseBody(BaseModel):
102114
title: Optional[str] = None
103115
"""The current title of the individual."""
104116

117+
union_code: Optional[str] = None
118+
"""
119+
The code identifying the union the employee is a member of, as configured in the
120+
payroll system.
121+
"""
122+
123+
union_local: Optional[str] = None
124+
"""The local chapter or local number within the employee's union."""
125+
105126
custom_fields: Optional[List[EmploymentDataResponseBodyCustomField]] = None
106127
"""Custom fields for the individual.
107128

src/finch/types/hris/individual.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ class IndividualResponseBody(BaseModel):
5656
last_name: Optional[str] = None
5757
"""The legal last name of the individual."""
5858

59+
marital_status: Optional[Literal["single", "married", "divorced", "widowed", "domestic_partner", "unknown"]] = None
60+
"""
61+
The employee's marital status, used for beneficiary designation and spousal
62+
consent workflows.
63+
"""
64+
5965
middle_name: Optional[str] = None
6066
"""The legal middle name of the individual."""
6167

src/finch/types/sandbox/directory_create_params.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ class Body(TypedDict, total=False):
136136
gender: Optional[Literal["female", "male", "other", "decline_to_specify"]]
137137
"""The gender of the individual."""
138138

139+
highly_compensated_employee: Optional[bool]
140+
"""
141+
IRS flag indicating whether the employee is classified as a Highly Compensated
142+
Employee for nondiscrimination testing purposes (ADP/ACP tests). US-only.
143+
"""
144+
139145
income: Optional[IncomeParam]
140146
"""The employee's income as reported by the provider.
141147
@@ -149,6 +155,12 @@ class Body(TypedDict, total=False):
149155
is_active: Optional[bool]
150156
"""`true` if the individual an an active employee or contractor at the company."""
151157

158+
key_employee: Optional[bool]
159+
"""
160+
IRS flag indicating whether the employee is classified as a Key Employee for
161+
top-heavy testing purposes. US-only.
162+
"""
163+
152164
last_name: Optional[str]
153165
"""The legal last name of the individual."""
154166

@@ -159,6 +171,12 @@ class Body(TypedDict, total=False):
159171
manager: Optional[BodyManager]
160172
"""The manager object representing the manager of the individual within the org."""
161173

174+
marital_status: Optional[Literal["single", "married", "divorced", "widowed", "domestic_partner", "unknown"]]
175+
"""
176+
The employee's marital status, used for beneficiary designation and spousal
177+
consent workflows.
178+
"""
179+
162180
middle_name: Optional[str]
163181
"""The legal middle name of the individual."""
164182

@@ -184,3 +202,12 @@ class Body(TypedDict, total=False):
184202

185203
title: Optional[str]
186204
"""The current title of the individual."""
205+
206+
union_code: Optional[str]
207+
"""
208+
The code identifying the union the employee is a member of, as configured in the
209+
payroll system.
210+
"""
211+
212+
union_local: Optional[str]
213+
"""The local chapter or local number within the employee's union."""

src/finch/types/sandbox/employment_update_params.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ class EmploymentUpdateParams(TypedDict, total=False):
4444
Available options: `exempt`, `non_exempt`, `unknown`.
4545
"""
4646

47+
highly_compensated_employee: Optional[bool]
48+
"""
49+
IRS flag indicating whether the employee is classified as a Highly Compensated
50+
Employee for nondiscrimination testing purposes (ADP/ACP tests). US-only.
51+
"""
52+
4753
income: Optional[IncomeParam]
4854
"""The employee's income as reported by the provider.
4955
@@ -57,6 +63,12 @@ class EmploymentUpdateParams(TypedDict, total=False):
5763
is_active: Optional[bool]
5864
"""`true` if the individual an an active employee or contractor at the company."""
5965

66+
key_employee: Optional[bool]
67+
"""
68+
IRS flag indicating whether the employee is classified as a Key Employee for
69+
top-heavy testing purposes. US-only.
70+
"""
71+
6072
last_name: Optional[str]
6173
"""The legal last name of the individual."""
6274

@@ -78,6 +90,15 @@ class EmploymentUpdateParams(TypedDict, total=False):
7890
title: Optional[str]
7991
"""The current title of the individual."""
8092

93+
union_code: Optional[str]
94+
"""
95+
The code identifying the union the employee is a member of, as configured in the
96+
payroll system.
97+
"""
98+
99+
union_local: Optional[str]
100+
"""The local chapter or local number within the employee's union."""
101+
81102

82103
class CustomField(TypedDict, total=False):
83104
name: Optional[str]

src/finch/types/sandbox/employment_update_response.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ class EmploymentUpdateResponse(BaseModel):
8080
Available options: `exempt`, `non_exempt`, `unknown`.
8181
"""
8282

83+
highly_compensated_employee: Optional[bool] = None
84+
"""
85+
IRS flag indicating whether the employee is classified as a Highly Compensated
86+
Employee for nondiscrimination testing purposes (ADP/ACP tests). US-only.
87+
"""
88+
8389
income_history: Optional[List[Optional[Income]]] = None
8490
"""The array of income history."""
8591

@@ -93,6 +99,12 @@ class EmploymentUpdateResponse(BaseModel):
9399
is_active: Optional[bool] = None
94100
"""`true` if the individual an an active employee or contractor at the company."""
95101

102+
key_employee: Optional[bool] = None
103+
"""
104+
IRS flag indicating whether the employee is classified as a Key Employee for
105+
top-heavy testing purposes. US-only.
106+
"""
107+
96108
last_name: Optional[str] = None
97109
"""The legal last name of the individual."""
98110

@@ -113,3 +125,12 @@ class EmploymentUpdateResponse(BaseModel):
113125

114126
title: Optional[str] = None
115127
"""The current title of the individual."""
128+
129+
union_code: Optional[str] = None
130+
"""
131+
The code identifying the union the employee is a member of, as configured in the
132+
payroll system.
133+
"""
134+
135+
union_local: Optional[str] = None
136+
"""The local chapter or local number within the employee's union."""

0 commit comments

Comments
 (0)