Skip to content

Commit c6631fc

Browse files
feat(api): api update
1 parent 565de84 commit c6631fc

File tree

8 files changed

+40
-2
lines changed

8 files changed

+40
-2
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-c012d034aaa88334d6748526b99a0c0e47b0257c515b35c656749ed8f3720b8a.yml
3-
openapi_spec_hash: a3d3c013ebe997d22e08eea4d487ff03
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-093ade6f1d3115b654a73b97855fbe334c9f9c5d906081dad2ec973ab0c0b24d.yml
3+
openapi_spec_hash: 7cc27b8e483d9db9c411875289c42eb9
44
config_hash: d21a244fc073152c8dbecb8ece970209

src/finch/resources/sandbox/employment.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def update(
5656
| Omit = omit,
5757
end_date: Optional[str] | Omit = omit,
5858
first_name: Optional[str] | Omit = omit,
59+
flsa_status: Optional[Literal["exempt", "non_exempt", "unknown"]] | Omit = omit,
5960
income: Optional[IncomeParam] | Omit = omit,
6061
income_history: Optional[Iterable[Optional[IncomeParam]]] | Omit = omit,
6162
is_active: Optional[bool] | Omit = omit,
@@ -92,6 +93,9 @@ def update(
9293
9394
first_name: The legal first name of the individual.
9495
96+
flsa_status: The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
97+
`unknown`.
98+
9599
income: The employee's income as reported by the provider. This may not always be
96100
annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
97101
depending on what information the provider returns.
@@ -134,6 +138,7 @@ def update(
134138
"employment_status": employment_status,
135139
"end_date": end_date,
136140
"first_name": first_name,
141+
"flsa_status": flsa_status,
137142
"income": income,
138143
"income_history": income_history,
139144
"is_active": is_active,
@@ -189,6 +194,7 @@ async def update(
189194
| Omit = omit,
190195
end_date: Optional[str] | Omit = omit,
191196
first_name: Optional[str] | Omit = omit,
197+
flsa_status: Optional[Literal["exempt", "non_exempt", "unknown"]] | Omit = omit,
192198
income: Optional[IncomeParam] | Omit = omit,
193199
income_history: Optional[Iterable[Optional[IncomeParam]]] | Omit = omit,
194200
is_active: Optional[bool] | Omit = omit,
@@ -225,6 +231,9 @@ async def update(
225231
226232
first_name: The legal first name of the individual.
227233
234+
flsa_status: The FLSA status of the individual. Available options: `exempt`, `non_exempt`,
235+
`unknown`.
236+
228237
income: The employee's income as reported by the provider. This may not always be
229238
annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
230239
depending on what information the provider returns.
@@ -267,6 +276,7 @@ async def update(
267276
"employment_status": employment_status,
268277
"end_date": end_date,
269278
"first_name": first_name,
279+
"flsa_status": flsa_status,
270280
"income": income,
271281
"income_history": income_history,
272282
"is_active": is_active,

src/finch/types/hris/employment_data.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ class UnionMember0(BaseModel):
7575
first_name: Optional[str] = None
7676
"""The legal first name of the individual."""
7777

78+
flsa_status: Optional[Literal["exempt", "non_exempt", "unknown"]] = None
79+
"""The FLSA status of the individual.
80+
81+
Available options: `exempt`, `non_exempt`, `unknown`.
82+
"""
83+
7884
is_active: Optional[bool] = None
7985
"""`true` if the individual an an active employee or contractor at the company."""
8086

src/finch/types/sandbox/directory_create_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ class Body(TypedDict, total=False):
127127
first_name: Optional[str]
128128
"""The legal first name of the individual."""
129129

130+
flsa_status: Optional[Literal["exempt", "non_exempt", "unknown"]]
131+
"""The FLSA status of the individual.
132+
133+
Available options: `exempt`, `non_exempt`, `unknown`.
134+
"""
135+
130136
gender: Optional[Literal["female", "male", "other", "decline_to_specify"]]
131137
"""The gender of the individual."""
132138

src/finch/types/sandbox/employment_update_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ class EmploymentUpdateParams(TypedDict, total=False):
3838
first_name: Optional[str]
3939
"""The legal first name of the individual."""
4040

41+
flsa_status: Optional[Literal["exempt", "non_exempt", "unknown"]]
42+
"""The FLSA status of the individual.
43+
44+
Available options: `exempt`, `non_exempt`, `unknown`.
45+
"""
46+
4147
income: Optional[IncomeParam]
4248
"""The employee's income as reported by the provider.
4349

src/finch/types/sandbox/employment_update_response.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ class EmploymentUpdateResponse(BaseModel):
7474
first_name: Optional[str] = None
7575
"""The legal first name of the individual."""
7676

77+
flsa_status: Optional[Literal["exempt", "non_exempt", "unknown"]] = None
78+
"""The FLSA status of the individual.
79+
80+
Available options: `exempt`, `non_exempt`, `unknown`.
81+
"""
82+
7783
income_history: Optional[List[Optional[Income]]] = None
7884
"""The array of income history."""
7985

tests/api_resources/sandbox/test_directory.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def test_method_create_with_all_params(self, client: Finch) -> None:
5252
"end_date": "end_date",
5353
"ethnicity": "asian",
5454
"first_name": "first_name",
55+
"flsa_status": "exempt",
5556
"gender": "female",
5657
"income": {
5758
"amount": 0,
@@ -168,6 +169,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncFinch) ->
168169
"end_date": "end_date",
169170
"ethnicity": "asian",
170171
"first_name": "first_name",
172+
"flsa_status": "exempt",
171173
"gender": "female",
172174
"income": {
173175
"amount": 0,

tests/api_resources/sandbox/test_employment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def test_method_update_with_all_params(self, client: Finch) -> None:
4444
employment_status="active",
4545
end_date="end_date",
4646
first_name="first_name",
47+
flsa_status="exempt",
4748
income={
4849
"amount": 0,
4950
"currency": "currency",
@@ -142,6 +143,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) ->
142143
employment_status="active",
143144
end_date="end_date",
144145
first_name="first_name",
146+
flsa_status="exempt",
145147
income={
146148
"amount": 0,
147149
"currency": "currency",

0 commit comments

Comments
 (0)