6
6
from ...types import location
7
7
from ..._models import BaseModel
8
8
9
- __all__ = ["Company" , "Entity" , "Department" , "DepartmentParent" , "Account" ]
10
-
11
-
12
- class Entity (BaseModel ):
13
- subtype : Optional [Literal ["s_corporation" , "c_corporation" , "b_corporation" ]]
14
- """The tax payer subtype of the company."""
15
-
16
- type : Optional [Literal ["llc" , "corporation" , "sole_proprietor" , "non_profit" , "partnership" , "cooperative" ]]
17
- """The tax payer type of the company."""
18
-
19
-
20
- class DepartmentParent (BaseModel ):
21
- name : Optional [str ]
22
- """The parent department's name."""
23
-
24
-
25
- class Department (BaseModel ):
26
- name : Optional [str ]
27
- """The department name."""
28
-
29
- parent : Optional [DepartmentParent ]
30
- """The parent department, if present."""
9
+ __all__ = ["Company" , "Account" , "Department" , "DepartmentParent" , "Entity" ]
31
10
32
11
33
12
class Account (BaseModel ):
@@ -50,7 +29,31 @@ class Account(BaseModel):
50
29
"""
51
30
52
31
32
+ class DepartmentParent (BaseModel ):
33
+ name : Optional [str ]
34
+ """The parent department's name."""
35
+
36
+
37
+ class Department (BaseModel ):
38
+ name : Optional [str ]
39
+ """The department name."""
40
+
41
+ parent : Optional [DepartmentParent ]
42
+ """The parent department, if present."""
43
+
44
+
45
+ class Entity (BaseModel ):
46
+ subtype : Optional [Literal ["s_corporation" , "c_corporation" , "b_corporation" ]]
47
+ """The tax payer subtype of the company."""
48
+
49
+ type : Optional [Literal ["llc" , "corporation" , "sole_proprietor" , "non_profit" , "partnership" , "cooperative" ]]
50
+ """The tax payer type of the company."""
51
+
52
+
53
53
class Company (BaseModel ):
54
+ id : str
55
+ """A stable Finch `id` (UUID v4) for the company."""
56
+
54
57
accounts : Optional [List [Account ]]
55
58
"""An array of bank account objects associated with the payroll/HRIS system."""
56
59
@@ -63,9 +66,6 @@ class Company(BaseModel):
63
66
entity : Optional [Entity ]
64
67
"""The entity type object."""
65
68
66
- id : str
67
- """A stable Finch `id` (UUID v4) for the company."""
68
-
69
69
legal_name : Optional [str ]
70
70
"""The legal name of the company."""
71
71
0 commit comments