Skip to content

Commit 8a699b4

Browse files
feat(api): api update
1 parent 53a339f commit 8a699b4

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
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-18aa62b45276cc7202c0dd786f514671b30e3d5bfc761986c4ca6b587436f935.yml
3-
openapi_spec_hash: c0722ad9e1e066d79b661f5e955dbf64
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-ebcacef9e289357a2688343001fd928ada6811c88b841cd738a9a09178b1991c.yml
3+
openapi_spec_hash: 2d9c296dca75299fd6565aafc4875f19
44
config_hash: 53778a0b839c4f6ad34fbba051f5e8a6

src/finch/types/hris/individual.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,27 @@
66
from ..._models import BaseModel
77
from ..location import Location
88

9-
__all__ = ["Individual", "Email", "PhoneNumber"]
9+
__all__ = ["Individual", "PhoneNumber", "Email"]
1010

1111

12-
class Email(BaseModel):
12+
class PhoneNumber(BaseModel):
1313
data: Optional[str] = None
1414

1515
type: Optional[Literal["work", "personal"]] = None
1616

1717

18-
class PhoneNumber(BaseModel):
19-
data: Optional[str] = None
18+
class Email(BaseModel):
19+
data: str
2020

2121
type: Optional[Literal["work", "personal"]] = None
2222

2323

2424
class Individual(BaseModel):
25-
id: Optional[str] = None
25+
id: str
2626
"""A stable Finch `id` (UUID v4) for an individual in the company."""
2727

2828
dob: Optional[str] = None
2929

30-
emails: Optional[List[Email]] = None
31-
32-
encrypted_ssn: Optional[str] = None
33-
"""Social Security Number of the individual in **encrypted** format.
34-
35-
This field is only available with the `ssn` scope enabled and the
36-
`options: { include: ['ssn'] }` param set in the body.
37-
"""
38-
3930
ethnicity: Optional[
4031
Literal[
4132
"asian",
@@ -69,6 +60,15 @@ class Individual(BaseModel):
6960

7061
residence: Optional[Location] = None
7162

63+
emails: Optional[List[Email]] = None
64+
65+
encrypted_ssn: Optional[str] = None
66+
"""Social Security Number of the individual in **encrypted** format.
67+
68+
This field is only available with the `ssn` scope enabled and the
69+
`options: { include: ['ssn'] }` param set in the body.
70+
"""
71+
7272
ssn: Optional[str] = None
7373
"""Social Security Number of the individual.
7474
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
4-
53
from ..._models import BaseModel
64
from .individual import Individual
75

86
__all__ = ["IndividualResponse"]
97

108

119
class IndividualResponse(BaseModel):
12-
body: Optional[Individual] = None
10+
body: Individual
1311

14-
code: Optional[int] = None
12+
code: int
1513

16-
individual_id: Optional[str] = None
14+
individual_id: str

0 commit comments

Comments
 (0)