|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 | 5 | from typing import Iterable, Optional
|
| 6 | +from typing_extensions import Literal |
6 | 7 |
|
7 | 8 | import httpx
|
8 | 9 |
|
@@ -52,6 +53,10 @@ def update(
|
52 | 53 | custom_fields: Iterable[employment_update_params.CustomField] | NotGiven = NOT_GIVEN,
|
53 | 54 | department: Optional[employment_update_params.Department] | NotGiven = NOT_GIVEN,
|
54 | 55 | employment: Optional[employment_update_params.Employment] | NotGiven = NOT_GIVEN,
|
| 56 | + employment_status: Optional[ |
| 57 | + Literal["active", "deceased", "leave", "onboarding", "prehire", "retired", "terminated"] |
| 58 | + ] |
| 59 | + | NotGiven = NOT_GIVEN, |
55 | 60 | end_date: Optional[str] | NotGiven = NOT_GIVEN,
|
56 | 61 | first_name: Optional[str] | NotGiven = NOT_GIVEN,
|
57 | 62 | income: Optional[IncomeParam] | NotGiven = NOT_GIVEN,
|
@@ -86,6 +91,8 @@ def update(
|
86 | 91 |
|
87 | 92 | employment: The employment object.
|
88 | 93 |
|
| 94 | + employment_status: The detailed employment status of the individual. |
| 95 | +
|
89 | 96 | first_name: The legal first name of the individual.
|
90 | 97 |
|
91 | 98 | income: The employee's income as reported by the provider. This may not always be
|
@@ -126,6 +133,7 @@ def update(
|
126 | 133 | "custom_fields": custom_fields,
|
127 | 134 | "department": department,
|
128 | 135 | "employment": employment,
|
| 136 | + "employment_status": employment_status, |
129 | 137 | "end_date": end_date,
|
130 | 138 | "first_name": first_name,
|
131 | 139 | "income": income,
|
@@ -177,6 +185,10 @@ async def update(
|
177 | 185 | custom_fields: Iterable[employment_update_params.CustomField] | NotGiven = NOT_GIVEN,
|
178 | 186 | department: Optional[employment_update_params.Department] | NotGiven = NOT_GIVEN,
|
179 | 187 | employment: Optional[employment_update_params.Employment] | NotGiven = NOT_GIVEN,
|
| 188 | + employment_status: Optional[ |
| 189 | + Literal["active", "deceased", "leave", "onboarding", "prehire", "retired", "terminated"] |
| 190 | + ] |
| 191 | + | NotGiven = NOT_GIVEN, |
180 | 192 | end_date: Optional[str] | NotGiven = NOT_GIVEN,
|
181 | 193 | first_name: Optional[str] | NotGiven = NOT_GIVEN,
|
182 | 194 | income: Optional[IncomeParam] | NotGiven = NOT_GIVEN,
|
@@ -211,6 +223,8 @@ async def update(
|
211 | 223 |
|
212 | 224 | employment: The employment object.
|
213 | 225 |
|
| 226 | + employment_status: The detailed employment status of the individual. |
| 227 | +
|
214 | 228 | first_name: The legal first name of the individual.
|
215 | 229 |
|
216 | 230 | income: The employee's income as reported by the provider. This may not always be
|
@@ -251,6 +265,7 @@ async def update(
|
251 | 265 | "custom_fields": custom_fields,
|
252 | 266 | "department": department,
|
253 | 267 | "employment": employment,
|
| 268 | + "employment_status": employment_status, |
254 | 269 | "end_date": end_date,
|
255 | 270 | "first_name": first_name,
|
256 | 271 | "income": income,
|
|
0 commit comments