Skip to content

Commit 9885ba4

Browse files
feat(api): api update
1 parent 833690f commit 9885ba4

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
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-bfcb61384672f485be2ee4e2ae2938ef8c57c063c2ea5d0e7890e68098300579.yml
3-
openapi_spec_hash: 5d75581b91b95d16f0fae017a36b4ea9
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-199a2fd8b7387b0648e88b5942a8248895373a561aff663389982073e55c8eb5.yml
3+
openapi_spec_hash: 7415c1faca5f2e873824893b140650f1
44
config_hash: 6d3585c0032e08d723d077d660fc8448

src/finch/types/hris/document_response.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
class DocumentResponse(BaseModel):
12-
id: Optional[str] = None
12+
id: str
1313
"""A stable Finch id for the document."""
1414

1515
individual_id: Optional[str] = None
@@ -18,14 +18,14 @@ class DocumentResponse(BaseModel):
1818
This will be null for employer-level documents.
1919
"""
2020

21-
type: Optional[Literal["w4_2020", "w4_2005"]] = None
21+
type: Literal["w4_2020", "w4_2005"]
2222
"""The type of document."""
2323

24-
url: Optional[str] = None
24+
url: str
2525
"""A URL to access the document.
2626
2727
Format: `https://api.tryfinch.com/employer/documents/:document_id`.
2828
"""
2929

30-
year: Optional[float] = None
30+
year: float
3131
"""The year the document applies to, if available."""

src/finch/types/hris/w42005.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
class Data(BaseModel):
12-
additional_withholding: Optional[int] = None
12+
additional_withholding: int
1313
"""Additional withholding amount (in cents)."""
1414

1515
exemption: Optional[Literal["exempt", "non_exempt"]] = None
@@ -18,19 +18,19 @@ class Data(BaseModel):
1818
filing_status: Optional[Literal["married", "married_but_withhold_at_higher_single_rate", "single"]] = None
1919
"""The individual's filing status for tax purposes."""
2020

21-
individual_id: Optional[str] = None
21+
individual_id: str
2222
"""The unique identifier for the individual associated with this 2005 W4 form."""
2323

24-
total_number_of_allowances: Optional[int] = None
24+
total_number_of_allowances: int
2525
"""Total number of allowances claimed (in cents)."""
2626

2727

2828
class W42005(BaseModel):
29-
data: Optional[Data] = None
29+
data: Data
3030
"""Detailed information specific to the 2005 W4 form."""
3131

32-
type: Optional[Literal["w4_2005"]] = None
32+
type: Literal["w4_2005"]
3333
"""Specifies the form type, indicating that this document is a 2005 W4 form."""
3434

35-
year: Optional[float] = None
35+
year: float
3636
"""The tax year this W4 document applies to."""

src/finch/types/hris/w42020.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99

1010

1111
class Data(BaseModel):
12-
amount_for_other_dependents: Optional[int] = None
12+
amount_for_other_dependents: int
1313
"""
1414
Amount claimed for dependents other than qualifying children under 17 (in
1515
cents).
1616
"""
1717

18-
amount_for_qualifying_children_under_17: Optional[int] = None
18+
amount_for_qualifying_children_under_17: int
1919
"""Amount claimed for dependents under 17 years old (in cents)."""
2020

21-
deductions: Optional[int] = None
21+
deductions: int
2222
"""Deductible expenses (in cents)."""
2323

24-
extra_withholding: Optional[int] = None
24+
extra_withholding: int
2525
"""Additional withholding amount (in cents)."""
2626

2727
filing_status: Optional[
@@ -33,22 +33,22 @@ class Data(BaseModel):
3333
] = None
3434
"""The individual's filing status for tax purposes."""
3535

36-
individual_id: Optional[str] = None
36+
individual_id: str
3737
"""The unique identifier for the individual associated with this document."""
3838

39-
other_income: Optional[int] = None
39+
other_income: int
4040
"""Additional income from sources outside of primary employment (in cents)."""
4141

42-
total_claim_dependent_and_other_credits: Optional[int] = None
42+
total_claim_dependent_and_other_credits: int
4343
"""Total amount claimed for dependents and other credits (in cents)."""
4444

4545

4646
class W42020(BaseModel):
47-
data: Optional[Data] = None
47+
data: Data
4848
"""Detailed information specific to the 2020 W4 form."""
4949

50-
type: Optional[Literal["w4_2020"]] = None
50+
type: Literal["w4_2020"]
5151
"""Specifies the form type, indicating that this document is a 2020 W4 form."""
5252

53-
year: Optional[float] = None
53+
year: float
5454
"""The tax year this W4 document applies to."""

0 commit comments

Comments
 (0)