|
6 | 6 | from ..._models import BaseModel |
7 | 7 | from ..location import Location |
8 | 8 |
|
9 | | -__all__ = ["Individual", "Email", "PhoneNumber"] |
| 9 | +__all__ = ["Individual", "PhoneNumber", "Email"] |
10 | 10 |
|
11 | 11 |
|
12 | | -class Email(BaseModel): |
| 12 | +class PhoneNumber(BaseModel): |
13 | 13 | data: Optional[str] = None |
14 | 14 |
|
15 | 15 | type: Optional[Literal["work", "personal"]] = None |
16 | 16 |
|
17 | 17 |
|
18 | | -class PhoneNumber(BaseModel): |
19 | | - data: Optional[str] = None |
| 18 | +class Email(BaseModel): |
| 19 | + data: str |
20 | 20 |
|
21 | 21 | type: Optional[Literal["work", "personal"]] = None |
22 | 22 |
|
23 | 23 |
|
24 | 24 | class Individual(BaseModel): |
25 | | - id: Optional[str] = None |
| 25 | + id: str |
26 | 26 | """A stable Finch `id` (UUID v4) for an individual in the company.""" |
27 | 27 |
|
28 | 28 | dob: Optional[str] = None |
29 | 29 |
|
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 | | - |
39 | 30 | ethnicity: Optional[ |
40 | 31 | Literal[ |
41 | 32 | "asian", |
@@ -69,6 +60,15 @@ class Individual(BaseModel): |
69 | 60 |
|
70 | 61 | residence: Optional[Location] = None |
71 | 62 |
|
| 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 | + |
72 | 72 | ssn: Optional[str] = None |
73 | 73 | """Social Security Number of the individual. |
74 | 74 |
|
|
0 commit comments