brynq-sdk-factorial 2.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- brynq_sdk_factorial/__init__.py +60 -0
- brynq_sdk_factorial/companies.py +76 -0
- brynq_sdk_factorial/compensations.py +80 -0
- brynq_sdk_factorial/contracts.py +50 -0
- brynq_sdk_factorial/costcenter.py +80 -0
- brynq_sdk_factorial/custom_fields.py +76 -0
- brynq_sdk_factorial/employees.py +57 -0
- brynq_sdk_factorial/family_situation.py +50 -0
- brynq_sdk_factorial/files.py +22 -0
- brynq_sdk_factorial/locations.py +49 -0
- brynq_sdk_factorial/payroll.py +54 -0
- brynq_sdk_factorial/schemas/attendance_schemas.py +264 -0
- brynq_sdk_factorial/schemas/banking_schemas.py +87 -0
- brynq_sdk_factorial/schemas/companies_schemas.py +29 -0
- brynq_sdk_factorial/schemas/contracts_schemas.py +395 -0
- brynq_sdk_factorial/schemas/documents_schemas.py +95 -0
- brynq_sdk_factorial/schemas/employee_updates_schemas.py +300 -0
- brynq_sdk_factorial/schemas/employees_schemas.py +187 -0
- brynq_sdk_factorial/schemas/expenses_schemas.py +144 -0
- brynq_sdk_factorial/schemas/family_situation.py +33 -0
- brynq_sdk_factorial/schemas/finance_schemas.py +433 -0
- brynq_sdk_factorial/schemas/holidays_schemas.py +21 -0
- brynq_sdk_factorial/schemas/job_catalog_schemas.py +35 -0
- brynq_sdk_factorial/schemas/locations_schemas.py +85 -0
- brynq_sdk_factorial/schemas/payroll_employees_schemas.py +33 -0
- brynq_sdk_factorial/schemas/payroll_integrations_base_schemas.py +27 -0
- brynq_sdk_factorial/schemas/payroll_schemas.py +92 -0
- brynq_sdk_factorial/schemas/project_management_schemas.py +192 -0
- brynq_sdk_factorial/schemas/shift_management_schemas.py +40 -0
- brynq_sdk_factorial/schemas/teams_schemas.py +57 -0
- brynq_sdk_factorial/schemas/time_planning_schemas.py +28 -0
- brynq_sdk_factorial/schemas/time_settings_schemas.py +29 -0
- brynq_sdk_factorial/schemas/timeoff_schemas.py +386 -0
- brynq_sdk_factorial/schemas/trainings_schemas.py +215 -0
- brynq_sdk_factorial/schemas/work_schedule_schemas.py +82 -0
- brynq_sdk_factorial/teams.py +76 -0
- brynq_sdk_factorial/workschedules.py +50 -0
- brynq_sdk_factorial-2.3.0.dist-info/METADATA +17 -0
- brynq_sdk_factorial-2.3.0.dist-info/RECORD +41 -0
- brynq_sdk_factorial-2.3.0.dist-info/WHEEL +5 -0
- brynq_sdk_factorial-2.3.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
# Auto-generated schemas for category: finance
|
|
2
|
+
|
|
3
|
+
import pandas as pd
|
|
4
|
+
import pandera as pa
|
|
5
|
+
from pandera.typing import Series, String, Int, Float, Bool, DateTime
|
|
6
|
+
import pandera.extensions as extensions
|
|
7
|
+
from brynq_sdk_functions import BrynQPanderaDataFrameModel
|
|
8
|
+
from typing import Optional, Annotated
|
|
9
|
+
from pydantic import BaseModel, Field, StringConstraints
|
|
10
|
+
|
|
11
|
+
class Accounting_settingsGet(BrynQPanderaDataFrameModel):
|
|
12
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Identifier for the AccountingSetting.", alias="id")
|
|
13
|
+
external_id: Series[String] = pa.Field(coerce=True, nullable=True, description="External ID for the accounting setting.", alias="external_id")
|
|
14
|
+
company_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="ID of the associated Company.", alias="company_id")
|
|
15
|
+
legal_entity_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="ID of the associated Legal Entity.", alias="legal_entity_id")
|
|
16
|
+
updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="Timestamp when the accounting setting was last updated.", alias="updated_at")
|
|
17
|
+
default_account_for_purchase_invoices_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Default account for purchase invoices.", alias="default_account_for_purchase_invoices_id")
|
|
18
|
+
default_account_for_vendors_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Default account for vendors.", alias="default_account_for_vendors_id")
|
|
19
|
+
default_account_for_banks_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Default account for banks.", alias="default_account_for_banks_id")
|
|
20
|
+
default_account_for_suspense_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Default suspense account.", alias="default_account_for_suspense_id")
|
|
21
|
+
default_account_for_expenses_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Default account for expenses.", alias="default_account_for_expenses_id")
|
|
22
|
+
default_account_for_employees_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Default account for employees.", alias="default_account_for_employees_id")
|
|
23
|
+
default_account_for_sale_invoices_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Default account for sale invoices.", alias="default_account_for_sale_invoices_id")
|
|
24
|
+
default_account_for_clients_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Default account for clients.", alias="default_account_for_clients_id")
|
|
25
|
+
default_account_for_benefits_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Default account for benefits.", alias="default_account_for_benefits_id")
|
|
26
|
+
|
|
27
|
+
class _Annotation:
|
|
28
|
+
primary_key = "id"
|
|
29
|
+
foreign_keys = {
|
|
30
|
+
"legal_entity_id": {
|
|
31
|
+
"parent_schema": "Legal_entitiesGet",
|
|
32
|
+
"parent_column": "id",
|
|
33
|
+
"cardinality": "N:1"
|
|
34
|
+
},
|
|
35
|
+
"default_account_for_purchase_invoices_id": {
|
|
36
|
+
"parent_schema": "AccountsGet",
|
|
37
|
+
"parent_column": "id",
|
|
38
|
+
"cardinality": "N:1"
|
|
39
|
+
},
|
|
40
|
+
"default_account_for_vendors_id": {
|
|
41
|
+
"parent_schema": "AccountsGet",
|
|
42
|
+
"parent_column": "id",
|
|
43
|
+
"cardinality": "N:1"
|
|
44
|
+
},
|
|
45
|
+
"default_account_for_banks_id": {
|
|
46
|
+
"parent_schema": "AccountsGet",
|
|
47
|
+
"parent_column": "id",
|
|
48
|
+
"cardinality": "N:1"
|
|
49
|
+
},
|
|
50
|
+
"default_account_for_suspense_id": {
|
|
51
|
+
"parent_schema": "AccountsGet",
|
|
52
|
+
"parent_column": "id",
|
|
53
|
+
"cardinality": "N:1"
|
|
54
|
+
},
|
|
55
|
+
"default_account_for_expenses_id": {
|
|
56
|
+
"parent_schema": "AccountsGet",
|
|
57
|
+
"parent_column": "id",
|
|
58
|
+
"cardinality": "N:1"
|
|
59
|
+
},
|
|
60
|
+
"default_account_for_employees_id": {
|
|
61
|
+
"parent_schema": "AccountsGet",
|
|
62
|
+
"parent_column": "id",
|
|
63
|
+
"cardinality": "N:1"
|
|
64
|
+
},
|
|
65
|
+
"default_account_for_sale_invoices_id": {
|
|
66
|
+
"parent_schema": "AccountsGet",
|
|
67
|
+
"parent_column": "id",
|
|
68
|
+
"cardinality": "N:1"
|
|
69
|
+
},
|
|
70
|
+
"default_account_for_clients_id": {
|
|
71
|
+
"parent_schema": "AccountsGet",
|
|
72
|
+
"parent_column": "id",
|
|
73
|
+
"cardinality": "N:1"
|
|
74
|
+
},
|
|
75
|
+
"default_account_for_benefits_id": {
|
|
76
|
+
"parent_schema": "AccountsGet",
|
|
77
|
+
"parent_column": "id",
|
|
78
|
+
"cardinality": "N:1"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
class AccountsGet(BrynQPanderaDataFrameModel):
|
|
83
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Unique identifier in factorial for the ledger account", alias="id")
|
|
84
|
+
name: Series[String] = pa.Field(coerce=True, nullable=True, description="Name of the ledger account", alias="name")
|
|
85
|
+
legal_entity_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Legal entity ID of the ledger account", alias="legal_entity_id")
|
|
86
|
+
number: Series[String] = pa.Field(coerce=True, nullable=False, description="Number of the ledger account", alias="number")
|
|
87
|
+
disabled: Series[Bool] = pa.Field(coerce=True, nullable=False, description="Whether the ledger account is disabled", alias="disabled")
|
|
88
|
+
type: Series[String] = pa.Field(coerce=True, nullable=False, description="Type of the ledger account", alias="type")
|
|
89
|
+
external_id: Series[String] = pa.Field(coerce=True, nullable=True, description="Id of the ledger account on the external system", alias="external_id")
|
|
90
|
+
updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="Last updated date of the ledger account", alias="updated_at")
|
|
91
|
+
|
|
92
|
+
class _Annotation:
|
|
93
|
+
primary_key = "id"
|
|
94
|
+
foreign_keys = {
|
|
95
|
+
"legal_entity_id": {
|
|
96
|
+
"parent_schema": "Legal_entitiesGet",
|
|
97
|
+
"parent_column": "id",
|
|
98
|
+
"cardinality": "N:1"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
class ContactsGet(BrynQPanderaDataFrameModel):
|
|
103
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Unique identifier for the Contact.", alias="id")
|
|
104
|
+
tax_id: Series[String] = pa.Field(coerce=True, nullable=False, description="Tax identification number assigned to the Contact.", alias="tax_id")
|
|
105
|
+
legal_name: Series[String] = pa.Field(coerce=True, nullable=False, description="The official or legal name of the Contact.", alias="legal_name")
|
|
106
|
+
address: Series[String] = pa.Field(coerce=True, nullable=False, description="The address object containing street, city, etc.", alias="address")
|
|
107
|
+
external_id: Series[String] = pa.Field(coerce=True, nullable=True, description="The external id of the contact.", alias="external_id")
|
|
108
|
+
updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="Timestamp when the Contact was last updated.", alias="updated_at")
|
|
109
|
+
iban: Series[String] = pa.Field(coerce=True, nullable=True, description="International Bank Account Number if provided.", alias="iban")
|
|
110
|
+
bank_code: Series[String] = pa.Field(coerce=True, nullable=True, description="Bank or branch code for the Contact if relevant.", alias="bank_code")
|
|
111
|
+
preferred_payment_method: Series[String] = pa.Field(coerce=True, nullable=True, description="Preferred payment method for the Contact (e.g. wire_transfer, paypal).", alias="preferred_payment_method")
|
|
112
|
+
|
|
113
|
+
class _Annotation:
|
|
114
|
+
primary_key = "id"
|
|
115
|
+
foreign_keys = {}
|
|
116
|
+
|
|
117
|
+
class Cost_centersGet(BrynQPanderaDataFrameModel):
|
|
118
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="", alias="id")
|
|
119
|
+
name: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="name")
|
|
120
|
+
company_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="", alias="company_id")
|
|
121
|
+
legal_entity_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="", alias="legal_entity_id")
|
|
122
|
+
code: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="code")
|
|
123
|
+
description: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="description")
|
|
124
|
+
active_employees_count: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="", alias="active_employees_count")
|
|
125
|
+
historical_employees_count: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="", alias="historical_employees_count")
|
|
126
|
+
status: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="status")
|
|
127
|
+
deactivation_date: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="deactivation_date")
|
|
128
|
+
|
|
129
|
+
class _Annotation:
|
|
130
|
+
primary_key = "id"
|
|
131
|
+
foreign_keys = {
|
|
132
|
+
"legal_entity_id": {
|
|
133
|
+
"parent_schema": "Legal_entitiesGet",
|
|
134
|
+
"parent_column": "id",
|
|
135
|
+
"cardinality": "N:1"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
class Financial_documentsGet(BrynQPanderaDataFrameModel):
|
|
140
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Factorial unique identifier.", alias="id")
|
|
141
|
+
net_amount_cents: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Net amount in cents.", alias="net_amount_cents")
|
|
142
|
+
total_amount_cents: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Total amount in cents.", alias="total_amount_cents")
|
|
143
|
+
document_number: Series[String] = pa.Field(coerce=True, nullable=True, description="Document number.", alias="document_number")
|
|
144
|
+
currency: Series[String] = pa.Field(coerce=True, nullable=True, description="Document currency.", alias="currency")
|
|
145
|
+
status: Series[String] = pa.Field(coerce=True, nullable=False, description="Current status.", alias="status")
|
|
146
|
+
due_date: Series[String] = pa.Field(coerce=True, nullable=True, description="Due date.", alias="due_date")
|
|
147
|
+
document_date: Series[String] = pa.Field(coerce=True, nullable=True, description="Document date.", alias="document_date")
|
|
148
|
+
legal_entity_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Factorial unique identifier for the legal entity of the financial document.", alias="legal_entity_id")
|
|
149
|
+
vendor_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Factorial unique identifier for the vendor of the financial document.", alias="vendor_id")
|
|
150
|
+
file: Series[String] = pa.Field(coerce=True, nullable=True, description="File attached.", alias="file")
|
|
151
|
+
updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="Updation date.", alias="updated_at")
|
|
152
|
+
taxes: Series[String] = pa.Field(coerce=True, nullable=False, description="Taxes.", alias="taxes")
|
|
153
|
+
fully_reconciled_at: Series[String] = pa.Field(coerce=True, nullable=True, description="Date when was fully reconciled.", alias="fully_reconciled_at")
|
|
154
|
+
recorded_at: Series[String] = pa.Field(coerce=True, nullable=True, description="Date when was recorded.", alias="recorded_at")
|
|
155
|
+
duplicate_financial_document_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Factorial unique identifier for the duplicate financial document.", alias="duplicate_financial_document_id")
|
|
156
|
+
validated_at: Series[String] = pa.Field(coerce=True, nullable=True, description="Date when was validated.", alias="validated_at")
|
|
157
|
+
validated_by_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Factorial unique identifier for the user who validated the financial document.", alias="validated_by_id")
|
|
158
|
+
document_type: Series[String] = pa.Field(coerce=True, nullable=False, description="Type of the financial document. Using 'invoice' as default.", alias="document_type")
|
|
159
|
+
parent_financial_document_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Factorial unique identifier for the parent financial document of the financial document.", alias="parent_financial_document_id")
|
|
160
|
+
taxes_total_amount_cents: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Taxes total amount in cents.", alias="taxes_total_amount_cents")
|
|
161
|
+
|
|
162
|
+
class _Annotation:
|
|
163
|
+
primary_key = "id"
|
|
164
|
+
foreign_keys = {
|
|
165
|
+
"legal_entity_id": {
|
|
166
|
+
"parent_schema": "Legal_entitiesGet",
|
|
167
|
+
"parent_column": "id",
|
|
168
|
+
"cardinality": "N:1"
|
|
169
|
+
},
|
|
170
|
+
"vendor_id": {
|
|
171
|
+
"parent_schema": "ContactsGet",
|
|
172
|
+
"parent_column": "id",
|
|
173
|
+
"cardinality": "N:1"
|
|
174
|
+
},
|
|
175
|
+
"duplicate_financial_document_id": {
|
|
176
|
+
"parent_schema": "Financial_documentsGet",
|
|
177
|
+
"parent_column": "id",
|
|
178
|
+
"cardinality": "N:1"
|
|
179
|
+
},
|
|
180
|
+
"validated_by_id": {
|
|
181
|
+
"parent_schema": "UserSchema",
|
|
182
|
+
"parent_column": "id",
|
|
183
|
+
"cardinality": "N:1"
|
|
184
|
+
},
|
|
185
|
+
"parent_financial_document_id": {
|
|
186
|
+
"parent_schema": "Financial_documentsGet",
|
|
187
|
+
"parent_column": "id",
|
|
188
|
+
"cardinality": "N:1"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
class Journal_entriesGet(BrynQPanderaDataFrameModel):
|
|
193
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Journal entry ID", alias="id")
|
|
194
|
+
number: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Incremental number assigned to the journal entry", alias="number")
|
|
195
|
+
published_at: Series[String] = pa.Field(coerce=True, nullable=False, description="Timestamp when the journal entry was published.", alias="published_at")
|
|
196
|
+
type: Series[String] = pa.Field(coerce=True, nullable=False, description="Journal entry type (e.g. bank, invoice, tax)", alias="type")
|
|
197
|
+
source_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Source id related with this journal entry", alias="source_id")
|
|
198
|
+
source_type: Series[String] = pa.Field(coerce=True, nullable=True, description="Source type related with this journal entry", alias="source_type")
|
|
199
|
+
reference_date: Series[String] = pa.Field(coerce=True, nullable=False, description="Date of the associate source", alias="reference_date")
|
|
200
|
+
description: Series[String] = pa.Field(coerce=True, nullable=True, description="Description of the journal entry", alias="description")
|
|
201
|
+
legal_entity_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The associated Legal Entity ID", alias="legal_entity_id")
|
|
202
|
+
external_id: Series[String] = pa.Field(coerce=True, nullable=True, description="External identifier for the journal entry", alias="external_id")
|
|
203
|
+
status: Series[String] = pa.Field(coerce=True, nullable=False, description="The status of the journal entry (draft, published, etc.)", alias="status")
|
|
204
|
+
updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="Timestamp when the journal entry was last updated.", alias="updated_at")
|
|
205
|
+
|
|
206
|
+
class _Annotation:
|
|
207
|
+
primary_key = "id"
|
|
208
|
+
foreign_keys = {
|
|
209
|
+
"legal_entity_id": {
|
|
210
|
+
"parent_schema": "Legal_entitiesGet",
|
|
211
|
+
"parent_column": "id",
|
|
212
|
+
"cardinality": "N:1"
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
class Journal_linesGet(BrynQPanderaDataFrameModel):
|
|
217
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Factorial id", alias="id")
|
|
218
|
+
number: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Sequential number assigned to the line", alias="number")
|
|
219
|
+
debit_amount_cents: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The debit amount in cents", alias="debit_amount_cents")
|
|
220
|
+
credit_amount_cents: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The credit amount in cents", alias="credit_amount_cents")
|
|
221
|
+
journal_entry_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="ID of the parent journal entry", alias="journal_entry_id")
|
|
222
|
+
account_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="ID of the associated account", alias="account_id")
|
|
223
|
+
fully_reconciled_at: Series[String] = pa.Field(coerce=True, nullable=True, description="Timestamp when the journal line was reconciled", alias="fully_reconciled_at")
|
|
224
|
+
external_id: Series[String] = pa.Field(coerce=True, nullable=True, description="External identifier for the journal line", alias="external_id")
|
|
225
|
+
updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="Timestamp when the journal line was last updated.", alias="updated_at")
|
|
226
|
+
|
|
227
|
+
class _Annotation:
|
|
228
|
+
primary_key = "id"
|
|
229
|
+
foreign_keys = {
|
|
230
|
+
"journal_entry_id": {
|
|
231
|
+
"parent_schema": "Journal_entriesGet",
|
|
232
|
+
"parent_column": "id",
|
|
233
|
+
"cardinality": "N:1"
|
|
234
|
+
},
|
|
235
|
+
"account_id": {
|
|
236
|
+
"parent_schema": "AccountsGet",
|
|
237
|
+
"parent_column": "id",
|
|
238
|
+
"cardinality": "N:1"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
class Ledger_account_resourcesGet(BrynQPanderaDataFrameModel):
|
|
243
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Factorial unique identifier.", alias="id")
|
|
244
|
+
resource_type: Series[String] = pa.Field(coerce=True, nullable=False, description="Ledger account resource type.", alias="resource_type")
|
|
245
|
+
resource_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Factorial unique identifier of the resource associated to the ledger account resource.", alias="resource_id")
|
|
246
|
+
account_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Factorial Ledger Account identifier.", alias="account_id")
|
|
247
|
+
balance_type: Series[String] = pa.Field(coerce=True, nullable=True, description="Ledger account balance type.", alias="balance_type")
|
|
248
|
+
updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="Last time the resource was updated.", alias="updated_at")
|
|
249
|
+
external_id: Series[String] = pa.Field(coerce=True, nullable=True, description="External identifier.", alias="external_id")
|
|
250
|
+
legal_entity_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=True, description="Factorial unique identifier of the Legal entity.", alias="legal_entity_id")
|
|
251
|
+
|
|
252
|
+
class _Annotation:
|
|
253
|
+
primary_key = "id"
|
|
254
|
+
foreign_keys = {
|
|
255
|
+
"account_id": {
|
|
256
|
+
"parent_schema": "AccountsGet",
|
|
257
|
+
"parent_column": "id",
|
|
258
|
+
"cardinality": "N:1"
|
|
259
|
+
},
|
|
260
|
+
"legal_entity_id": {
|
|
261
|
+
"parent_schema": "Legal_entitiesGet",
|
|
262
|
+
"parent_column": "id",
|
|
263
|
+
"cardinality": "N:1"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
class Tax_ratesGet(BrynQPanderaDataFrameModel):
|
|
268
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Factorial id", alias="id")
|
|
269
|
+
rate: Series[Float] = pa.Field(coerce=True, nullable=False, description="Specifies the numerical percentage for the tax rate between -1 and 1.", alias="rate")
|
|
270
|
+
description: Series[String] = pa.Field(coerce=True, nullable=True, description="An optional text describing the tax rate's purpose or context.", alias="description")
|
|
271
|
+
tax_type_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="The identifier of the related TaxType record.", alias="tax_type_id")
|
|
272
|
+
external_id: Series[String] = pa.Field(coerce=True, nullable=True, description="The external id of the tax rate.", alias="external_id")
|
|
273
|
+
updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="Last update date of the tax rate.", alias="updated_at")
|
|
274
|
+
|
|
275
|
+
class _Annotation:
|
|
276
|
+
primary_key = "id"
|
|
277
|
+
foreign_keys = {
|
|
278
|
+
"tax_type_id": {
|
|
279
|
+
"parent_schema": "Tax_typesGet",
|
|
280
|
+
"parent_column": "id",
|
|
281
|
+
"cardinality": "N:1"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
class Tax_typesGet(BrynQPanderaDataFrameModel):
|
|
286
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Factorial id", alias="id")
|
|
287
|
+
name: Series[String] = pa.Field(coerce=True, nullable=False, description="The name assigned to the tax type.", alias="name")
|
|
288
|
+
type: Series[String] = pa.Field(coerce=True, nullable=False, description="The tax category used to distinguish different tax kinds.", alias="type")
|
|
289
|
+
country_code: Series[String] = pa.Field(coerce=True, nullable=True, description="The country code where this tax type applies.", alias="country_code")
|
|
290
|
+
external_id: Series[String] = pa.Field(coerce=True, nullable=True, description="The external id of the tax type.", alias="external_id")
|
|
291
|
+
updated_at: Series[String] = pa.Field(coerce=True, nullable=False, description="Last update date of the tax type.", alias="updated_at")
|
|
292
|
+
|
|
293
|
+
class _Annotation:
|
|
294
|
+
primary_key = "id"
|
|
295
|
+
foreign_keys = {}
|
|
296
|
+
|
|
297
|
+
class Accounting_settingsCreate(BaseModel):
|
|
298
|
+
id: int = Field(..., description="Identifier for the AccountingSetting.", alias="id")
|
|
299
|
+
external_id: Optional[str] = Field(None, description="External ID for the accounting setting.", alias="external_id")
|
|
300
|
+
company_id: int = Field(..., description="ID of the associated Company.", alias="company_id")
|
|
301
|
+
legal_entity_id: int = Field(..., description="ID of the associated Legal Entity.", alias="legal_entity_id")
|
|
302
|
+
updated_at: str = Field(..., description="Timestamp when the accounting setting was last updated.", alias="updated_at")
|
|
303
|
+
default_account_for_purchase_invoices_id: Optional[int] = Field(None, description="Default account for purchase invoices.", alias="default_account_for_purchase_invoices_id")
|
|
304
|
+
default_account_for_vendors_id: Optional[int] = Field(None, description="Default account for vendors.", alias="default_account_for_vendors_id")
|
|
305
|
+
default_account_for_banks_id: Optional[int] = Field(None, description="Default account for banks.", alias="default_account_for_banks_id")
|
|
306
|
+
default_account_for_suspense_id: Optional[int] = Field(None, description="Default suspense account.", alias="default_account_for_suspense_id")
|
|
307
|
+
default_account_for_expenses_id: Optional[int] = Field(None, description="Default account for expenses.", alias="default_account_for_expenses_id")
|
|
308
|
+
default_account_for_employees_id: Optional[int] = Field(None, description="Default account for employees.", alias="default_account_for_employees_id")
|
|
309
|
+
default_account_for_sale_invoices_id: Optional[int] = Field(None, description="Default account for sale invoices.", alias="default_account_for_sale_invoices_id")
|
|
310
|
+
default_account_for_clients_id: Optional[int] = Field(None, description="Default account for clients.", alias="default_account_for_clients_id")
|
|
311
|
+
default_account_for_benefits_id: Optional[int] = Field(None, description="Default account for benefits.", alias="default_account_for_benefits_id")
|
|
312
|
+
|
|
313
|
+
class Accounting_settingsDelete(BaseModel):
|
|
314
|
+
id: int = Field(..., description="ID", alias="id")
|
|
315
|
+
|
|
316
|
+
class AccountsCreate(BaseModel):
|
|
317
|
+
name: Optional[str] = Field(None, description="Name of the ledger account", alias="name")
|
|
318
|
+
number: str = Field(..., description="Number of the ledger account", alias="number")
|
|
319
|
+
type: Annotated[str, StringConstraints(pattern=r'^equity|non_current_asset|current_asset|bank|non_current_liability|current_liability|expense|income$', strip_whitespace=True)] = Field(..., description="Type of the ledger account", alias="type")
|
|
320
|
+
currency: str = Field(..., description="Currency of the ledger account", alias="currency")
|
|
321
|
+
legal_entity_id: int = Field(..., description="Legal entity ID of the ledger account", alias="legal_entity_id")
|
|
322
|
+
external_id: Optional[str] = Field(None, description="Id of the ledger account on the external system. This field is important to avoid having duplicated ledger accounts", alias="external_id")
|
|
323
|
+
|
|
324
|
+
class AccountsUpdate(BaseModel):
|
|
325
|
+
id: int = Field(..., description="ID", alias="id")
|
|
326
|
+
name: Optional[str] = Field(None, description="Name of the ledger account", alias="name")
|
|
327
|
+
legal_entity_id: int = Field(..., description="Legal entity ID of the ledger account", alias="legal_entity_id")
|
|
328
|
+
number: str = Field(..., description="Number of the ledger account", alias="number")
|
|
329
|
+
disabled: bool = Field(..., description="Whether the ledger account is disabled", alias="disabled")
|
|
330
|
+
type: Annotated[str, StringConstraints(pattern=r'^equity|non_current_asset|current_asset|bank|non_current_liability|current_liability|expense|income$', strip_whitespace=True)] = Field(..., description="Type of the ledger account", alias="type")
|
|
331
|
+
external_id: Optional[str] = Field(None, description="Id of the ledger account on the external system", alias="external_id")
|
|
332
|
+
updated_at: str = Field(..., description="Last updated date of the ledger account", alias="updated_at")
|
|
333
|
+
|
|
334
|
+
class AccountsDelete(BaseModel):
|
|
335
|
+
id: int = Field(..., description="ID", alias="id")
|
|
336
|
+
|
|
337
|
+
class ContactsCreate(BaseModel):
|
|
338
|
+
tax_id: str = Field(..., description="Tax identification number assigned to the Contact.", alias="tax_id")
|
|
339
|
+
legal_name: str = Field(..., description="The official or legal name of the Contact.", alias="legal_name")
|
|
340
|
+
address: str = Field(..., description="The address object containing street, city, etc.", alias="address")
|
|
341
|
+
iban: Optional[str] = Field(None, description="International Bank Account Number if provided.", alias="iban")
|
|
342
|
+
bank_code: Optional[str] = Field(None, description="Bank or branch code for the Contact if relevant.", alias="bank_code")
|
|
343
|
+
external_id: Optional[str] = Field(None, description="The external id of the contact.", alias="external_id")
|
|
344
|
+
project_ids: Optional[str] = Field(None, description="List of project IDs associated with the Contact.", alias="project_ids")
|
|
345
|
+
|
|
346
|
+
class ContactsUpdate(BaseModel):
|
|
347
|
+
id: int = Field(..., description="ID", alias="id")
|
|
348
|
+
tax_id: str = Field(..., description="Tax identification number assigned to the Contact.", alias="tax_id")
|
|
349
|
+
legal_name: str = Field(..., description="The official or legal name of the Contact.", alias="legal_name")
|
|
350
|
+
address: str = Field(..., description="The address object containing street, city, etc.", alias="address")
|
|
351
|
+
external_id: Optional[str] = Field(None, description="The external id of the contact.", alias="external_id")
|
|
352
|
+
updated_at: str = Field(..., description="Timestamp when the Contact was last updated.", alias="updated_at")
|
|
353
|
+
iban: Optional[str] = Field(None, description="International Bank Account Number if provided.", alias="iban")
|
|
354
|
+
bank_code: Optional[str] = Field(None, description="Bank or branch code for the Contact if relevant.", alias="bank_code")
|
|
355
|
+
preferred_payment_method: Optional[Annotated[str, StringConstraints(pattern=r'^card|banktransfer$', strip_whitespace=True)]] = Field(None, description="Preferred payment method for the Contact (e.g. wire_transfer, paypal).", alias="preferred_payment_method")
|
|
356
|
+
|
|
357
|
+
class ContactsDelete(BaseModel):
|
|
358
|
+
id: int = Field(..., description="ID", alias="id")
|
|
359
|
+
|
|
360
|
+
class Cost_centersCreate(BaseModel):
|
|
361
|
+
name: str = Field(..., description="", alias="name")
|
|
362
|
+
company_id: int = Field(..., description="", alias="company_id")
|
|
363
|
+
legal_entity_id: Optional[int] = Field(None, description="", alias="legal_entity_id")
|
|
364
|
+
code: Optional[str] = Field(None, description="", alias="code")
|
|
365
|
+
description: Optional[str] = Field(None, description="", alias="description")
|
|
366
|
+
|
|
367
|
+
class Cost_centersDelete(BaseModel):
|
|
368
|
+
id: int = Field(..., description="ID", alias="id")
|
|
369
|
+
|
|
370
|
+
class Financial_documentsDelete(BaseModel):
|
|
371
|
+
id: int = Field(..., description="ID", alias="id")
|
|
372
|
+
|
|
373
|
+
class Journal_entriesCreate(BaseModel):
|
|
374
|
+
external_id: Optional[str] = Field(None, description="External identifier for the journal entry", alias="external_id")
|
|
375
|
+
legal_entity_id: int = Field(..., description="The associated Legal Entity ID", alias="legal_entity_id")
|
|
376
|
+
type: Optional[Annotated[str, StringConstraints(pattern=r'^bank|bill|invoice|credit_note|merged_ledger_account|reconciliation|tax|receipt|payroll_result|external$', strip_whitespace=True)]] = Field(None, description="Journal entry type (e.g. bank, invoice, tax)", alias="type")
|
|
377
|
+
lines: str = Field(..., description="Array of journal lines for this entry, example: [{'account_id': 9876, 'debit_amount_cents': 0, 'credit_amount_cents': 100, 'external_id': 'LINE-001'}, {'account_id': 9876, 'debit_amount_cents': 100, 'credit_amount_cents': 0, 'external_id': 'LINE-002'}]", alias="lines")
|
|
378
|
+
reference_date: str = Field(..., description="Date of the associate source", alias="reference_date")
|
|
379
|
+
description: Optional[str] = Field(None, description="Description of the journal entry", alias="description")
|
|
380
|
+
status: Optional[Annotated[str, StringConstraints(pattern=r'^published|reversed$', strip_whitespace=True)]] = Field(None, description="Status of the journal entry (reversed, published, etc.)", alias="status")
|
|
381
|
+
|
|
382
|
+
class Journal_entriesDelete(BaseModel):
|
|
383
|
+
id: int = Field(..., description="ID", alias="id")
|
|
384
|
+
|
|
385
|
+
class Journal_linesDelete(BaseModel):
|
|
386
|
+
id: int = Field(..., description="ID", alias="id")
|
|
387
|
+
|
|
388
|
+
class Ledger_account_resourcesCreate(BaseModel):
|
|
389
|
+
id: int = Field(..., description="Factorial unique identifier.", alias="id")
|
|
390
|
+
resource_type: Annotated[str, StringConstraints(pattern=r'^expensablecategory|customcategory|bankaccount|vendor|taxtype|invoice|payrollconcept$', strip_whitespace=True)] = Field(..., description="Ledger account resource type.", alias="resource_type")
|
|
391
|
+
resource_id: int = Field(..., description="Factorial unique identifier of the resource associated to the ledger account resource.", alias="resource_id")
|
|
392
|
+
account_id: int = Field(..., description="Factorial Ledger Account identifier.", alias="account_id")
|
|
393
|
+
balance_type: Optional[Annotated[str, StringConstraints(pattern=r'^credit|debit$', strip_whitespace=True)]] = Field(None, description="Ledger account balance type.", alias="balance_type")
|
|
394
|
+
updated_at: str = Field(..., description="Last time the resource was updated.", alias="updated_at")
|
|
395
|
+
external_id: Optional[str] = Field(None, description="External identifier.", alias="external_id")
|
|
396
|
+
legal_entity_id: Optional[int] = Field(None, description="Factorial unique identifier of the Legal entity.", alias="legal_entity_id")
|
|
397
|
+
|
|
398
|
+
class Ledger_account_resourcesDelete(BaseModel):
|
|
399
|
+
id: int = Field(..., description="ID", alias="id")
|
|
400
|
+
|
|
401
|
+
class Tax_ratesCreate(BaseModel):
|
|
402
|
+
description: Optional[str] = Field(None, description="An optional text describing the tax rate's purpose or context.", alias="description")
|
|
403
|
+
rate: Optional[float] = Field(None, description="Specifies the numerical percentage for the tax rate between -1 and 1.", alias="rate")
|
|
404
|
+
tax_type_id: Optional[int] = Field(None, description="The identifier of the related TaxType record.", alias="tax_type_id")
|
|
405
|
+
external_id: Optional[str] = Field(None, description="The external id of the tax rate.", alias="external_id")
|
|
406
|
+
|
|
407
|
+
class Tax_ratesUpdate(BaseModel):
|
|
408
|
+
id: int = Field(..., description="ID", alias="id")
|
|
409
|
+
rate: float = Field(..., description="Specifies the numerical percentage for the tax rate between -1 and 1.", alias="rate")
|
|
410
|
+
description: Optional[str] = Field(None, description="An optional text describing the tax rate's purpose or context.", alias="description")
|
|
411
|
+
tax_type_id: int = Field(..., description="The identifier of the related TaxType record.", alias="tax_type_id")
|
|
412
|
+
external_id: Optional[str] = Field(None, description="The external id of the tax rate.", alias="external_id")
|
|
413
|
+
updated_at: str = Field(..., description="Last update date of the tax rate.", alias="updated_at")
|
|
414
|
+
|
|
415
|
+
class Tax_ratesDelete(BaseModel):
|
|
416
|
+
id: int = Field(..., description="ID", alias="id")
|
|
417
|
+
|
|
418
|
+
class Tax_typesCreate(BaseModel):
|
|
419
|
+
name: str = Field(..., description="The name assigned to the tax type.", alias="name")
|
|
420
|
+
type: Annotated[str, StringConstraints(pattern=r'^vat|personal_income$', strip_whitespace=True)] = Field(..., description="The tax category used to distinguish different tax kinds.", alias="type")
|
|
421
|
+
country_code: Optional[str] = Field(None, description="The country code where this tax type applies.", alias="country_code")
|
|
422
|
+
external_id: Optional[str] = Field(None, description="The external id of the tax type.", alias="external_id")
|
|
423
|
+
|
|
424
|
+
class Tax_typesUpdate(BaseModel):
|
|
425
|
+
id: int = Field(..., description="ID", alias="id")
|
|
426
|
+
name: str = Field(..., description="The name assigned to the tax type.", alias="name")
|
|
427
|
+
type: Annotated[str, StringConstraints(pattern=r'^vat|personal_income$', strip_whitespace=True)] = Field(..., description="The tax category used to distinguish different tax kinds.", alias="type")
|
|
428
|
+
country_code: Optional[str] = Field(None, description="The country code where this tax type applies.", alias="country_code")
|
|
429
|
+
external_id: Optional[str] = Field(None, description="The external id of the tax type.", alias="external_id")
|
|
430
|
+
updated_at: str = Field(..., description="Last update date of the tax type.", alias="updated_at")
|
|
431
|
+
|
|
432
|
+
class Tax_typesDelete(BaseModel):
|
|
433
|
+
id: int = Field(..., description="ID", alias="id")
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Auto-generated schemas for category: holidays
|
|
2
|
+
|
|
3
|
+
import pandas as pd
|
|
4
|
+
import pandera as pa
|
|
5
|
+
from pandera.typing import Series, String, Int, Float, Bool, DateTime
|
|
6
|
+
import pandera.extensions as extensions
|
|
7
|
+
from brynq_sdk_functions import BrynQPanderaDataFrameModel
|
|
8
|
+
from typing import Optional, Annotated
|
|
9
|
+
from pydantic import BaseModel, Field, StringConstraints
|
|
10
|
+
|
|
11
|
+
class Company_holidaysGet(BrynQPanderaDataFrameModel):
|
|
12
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Company holiday id", alias="id")
|
|
13
|
+
location_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Related location id", alias="location_id")
|
|
14
|
+
summary: Series[String] = pa.Field(coerce=True, nullable=True, description="Company holiday summary", alias="summary")
|
|
15
|
+
description: Series[String] = pa.Field(coerce=True, nullable=True, description="Company holiday description", alias="description")
|
|
16
|
+
date: Series[String] = pa.Field(coerce=True, nullable=False, description="Company holiday date", alias="date")
|
|
17
|
+
half_day: Series[String] = pa.Field(coerce=True, nullable=True, description="If the company holiday is half-day and which part of the day", alias="half_day")
|
|
18
|
+
|
|
19
|
+
class Company_holidaysDelete(BaseModel):
|
|
20
|
+
id: int = Field(..., description="ID", alias="id")
|
|
21
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Auto-generated schemas for category: job_catalog
|
|
2
|
+
|
|
3
|
+
import pandas as pd
|
|
4
|
+
import pandera as pa
|
|
5
|
+
from pandera.typing import Series, String, Int, Float, Bool, DateTime
|
|
6
|
+
import pandera.extensions as extensions
|
|
7
|
+
from brynq_sdk_functions import BrynQPanderaDataFrameModel
|
|
8
|
+
from typing import Optional, Annotated
|
|
9
|
+
from pydantic import BaseModel, Field, StringConstraints
|
|
10
|
+
|
|
11
|
+
class LevelsGet(BrynQPanderaDataFrameModel):
|
|
12
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="identifier for the job catalog level.", alias="id")
|
|
13
|
+
role_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="identifier for the job catalog role.", alias="role_id")
|
|
14
|
+
name: Series[String] = pa.Field(coerce=True, nullable=False, description="Level name.", alias="name")
|
|
15
|
+
role_name: Series[String] = pa.Field(coerce=True, nullable=False, description="Role name.", alias="role_name")
|
|
16
|
+
order: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Order of the level.", alias="order")
|
|
17
|
+
archived: Series[Bool] = pa.Field(coerce=True, nullable=False, description="Shows if the role is archived.", alias="archived")
|
|
18
|
+
is_default: Series[Bool] = pa.Field(coerce=True, nullable=False, description="Shows if the level is the default one.", alias="is_default")
|
|
19
|
+
|
|
20
|
+
class RolesGet(BrynQPanderaDataFrameModel):
|
|
21
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="identifier for the job catalog role.", alias="id")
|
|
22
|
+
company_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="Identifier for the company.", alias="company_id")
|
|
23
|
+
name: Series[String] = pa.Field(coerce=True, nullable=False, description="Role name.", alias="name")
|
|
24
|
+
description: Series[String] = pa.Field(coerce=True, nullable=True, description="Role description.", alias="description")
|
|
25
|
+
legal_entities_ids: Series[String] = pa.Field(coerce=True, nullable=False, description="List of legal entities.", alias="legal_entities_ids")
|
|
26
|
+
supervisors_ids: Series[String] = pa.Field(coerce=True, nullable=True, description="List of supervisors.", alias="supervisors_ids")
|
|
27
|
+
competencies_ids: Series[String] = pa.Field(coerce=True, nullable=True, description="List of competencies.", alias="competencies_ids")
|
|
28
|
+
archived: Series[Bool] = pa.Field(coerce=True, nullable=False, description="Shows if the role is archived.", alias="archived")
|
|
29
|
+
|
|
30
|
+
class LevelsDelete(BaseModel):
|
|
31
|
+
id: int = Field(..., description="ID", alias="id")
|
|
32
|
+
|
|
33
|
+
class RolesDelete(BaseModel):
|
|
34
|
+
id: int = Field(..., description="ID", alias="id")
|
|
35
|
+
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Auto-generated schemas for category: locations
|
|
2
|
+
|
|
3
|
+
import pandas as pd
|
|
4
|
+
import pandera as pa
|
|
5
|
+
from pandera.typing import Series, String, Int, Float, Bool, DateTime
|
|
6
|
+
import pandera.extensions as extensions
|
|
7
|
+
from brynq_sdk_functions import BrynQPanderaDataFrameModel
|
|
8
|
+
from typing import Optional, Annotated
|
|
9
|
+
from pydantic import BaseModel, Field, StringConstraints
|
|
10
|
+
|
|
11
|
+
class LocationsGet(BrynQPanderaDataFrameModel):
|
|
12
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="identifier of the location", alias="id")
|
|
13
|
+
company_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="company identifier", alias="company_id")
|
|
14
|
+
name: Series[String] = pa.Field(coerce=True, nullable=False, description="name of the location", alias="name")
|
|
15
|
+
timezone: Series[String] = pa.Field(coerce=True, nullable=True, description="timezone of the location", alias="timezone")
|
|
16
|
+
country: Series[String] = pa.Field(coerce=True, nullable=True, description="country code of the location", alias="country")
|
|
17
|
+
state: Series[String] = pa.Field(coerce=True, nullable=True, description="State of the location", alias="state")
|
|
18
|
+
city: Series[String] = pa.Field(coerce=True, nullable=True, description="City of the location", alias="city")
|
|
19
|
+
address_line_1: Series[String] = pa.Field(coerce=True, nullable=True, description="Address line 1 of the location", alias="address_line_1")
|
|
20
|
+
address_line_2: Series[String] = pa.Field(coerce=True, nullable=True, description="Address line 2 of the location", alias="address_line_2")
|
|
21
|
+
postal_code: Series[String] = pa.Field(coerce=True, nullable=True, description="Postal code of the location", alias="postal_code")
|
|
22
|
+
phone_number: Series[String] = pa.Field(coerce=True, nullable=True, description="phone number of the location", alias="phone_number")
|
|
23
|
+
main: Series[Bool] = pa.Field(coerce=True, nullable=False, description="whether the location is the main one", alias="main")
|
|
24
|
+
latitude: Series[Float] = pa.Field(coerce=True, nullable=True, description="latitude of the location", alias="latitude")
|
|
25
|
+
longitude: Series[Float] = pa.Field(coerce=True, nullable=True, description="longitude of the location", alias="longitude")
|
|
26
|
+
radius: Series[Float] = pa.Field(coerce=True, nullable=True, description="radius of the location", alias="radius")
|
|
27
|
+
siret: Series[String] = pa.Field(coerce=True, nullable=True, description="siret of the location (only for France)", alias="siret")
|
|
28
|
+
|
|
29
|
+
class Work_areasGet(BrynQPanderaDataFrameModel):
|
|
30
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="", alias="id")
|
|
31
|
+
location_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="", alias="location_id")
|
|
32
|
+
name: Series[String] = pa.Field(coerce=True, nullable=False, description="", alias="name")
|
|
33
|
+
archived_at: Series[String] = pa.Field(coerce=True, nullable=True, description="", alias="archived_at")
|
|
34
|
+
|
|
35
|
+
class LocationsCreate(BaseModel):
|
|
36
|
+
name: str = Field(..., description="name of the location", alias="name")
|
|
37
|
+
country: str = Field(..., description="country code of the location", alias="country")
|
|
38
|
+
main: Optional[bool] = Field(None, description="whether the location is the main one", alias="main")
|
|
39
|
+
city: Optional[str] = Field(None, description="City of the location", alias="city")
|
|
40
|
+
state: Optional[str] = Field(None, description="State of the location", alias="state")
|
|
41
|
+
phone_number: Optional[str] = Field(None, description="phone number of the location", alias="phone_number")
|
|
42
|
+
postal_code: Optional[str] = Field(None, description="Postal code of the location", alias="postal_code")
|
|
43
|
+
address_line_one: Optional[str] = Field(None, description="Address line 1 of the location", alias="address_line_one")
|
|
44
|
+
address_line_two: Optional[str] = Field(None, description="Address line 2 of the location", alias="address_line_two")
|
|
45
|
+
latitude: Optional[float] = Field(None, description="latitude of the location", alias="latitude")
|
|
46
|
+
longitude: Optional[float] = Field(None, description="longitude of the location", alias="longitude")
|
|
47
|
+
timezone: str = Field(..., description="timezone of the location", alias="timezone")
|
|
48
|
+
radius: Optional[float] = Field(None, description="radius of the location", alias="radius")
|
|
49
|
+
company_id: int = Field(..., description="company identifier", alias="company_id")
|
|
50
|
+
siret: Optional[str] = Field(None, description="siret of the location (only for France)", alias="siret")
|
|
51
|
+
|
|
52
|
+
class LocationsUpdate(BaseModel):
|
|
53
|
+
id: int = Field(..., description="ID", alias="id")
|
|
54
|
+
company_id: int = Field(..., description="company identifier", alias="company_id")
|
|
55
|
+
name: str = Field(..., description="name of the location", alias="name")
|
|
56
|
+
timezone: Optional[str] = Field(None, description="timezone of the location", alias="timezone")
|
|
57
|
+
country: Optional[str] = Field(None, description="country code of the location", alias="country")
|
|
58
|
+
state: Optional[str] = Field(None, description="State of the location", alias="state")
|
|
59
|
+
city: Optional[str] = Field(None, description="City of the location", alias="city")
|
|
60
|
+
address_line_1: Optional[str] = Field(None, description="Address line 1 of the location", alias="address_line_1")
|
|
61
|
+
address_line_2: Optional[str] = Field(None, description="Address line 2 of the location", alias="address_line_2")
|
|
62
|
+
postal_code: Optional[str] = Field(None, description="Postal code of the location", alias="postal_code")
|
|
63
|
+
phone_number: Optional[str] = Field(None, description="phone number of the location", alias="phone_number")
|
|
64
|
+
main: bool = Field(..., description="whether the location is the main one", alias="main")
|
|
65
|
+
latitude: Optional[float] = Field(None, description="latitude of the location", alias="latitude")
|
|
66
|
+
longitude: Optional[float] = Field(None, description="longitude of the location", alias="longitude")
|
|
67
|
+
radius: Optional[float] = Field(None, description="radius of the location", alias="radius")
|
|
68
|
+
siret: Optional[str] = Field(None, description="siret of the location (only for France)", alias="siret")
|
|
69
|
+
|
|
70
|
+
class LocationsDelete(BaseModel):
|
|
71
|
+
id: int = Field(..., description="ID", alias="id")
|
|
72
|
+
|
|
73
|
+
class Work_areasCreate(BaseModel):
|
|
74
|
+
name: str = Field(..., description="", alias="name")
|
|
75
|
+
location_id: int = Field(..., description="", alias="location_id")
|
|
76
|
+
|
|
77
|
+
class Work_areasUpdate(BaseModel):
|
|
78
|
+
id: int = Field(..., description="ID", alias="id")
|
|
79
|
+
location_id: int = Field(..., description="", alias="location_id")
|
|
80
|
+
name: str = Field(..., description="", alias="name")
|
|
81
|
+
archived_at: Optional[str] = Field(None, description="", alias="archived_at")
|
|
82
|
+
|
|
83
|
+
class Work_areasDelete(BaseModel):
|
|
84
|
+
id: int = Field(..., description="ID", alias="id")
|
|
85
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Auto-generated schemas for category: payroll_employees
|
|
2
|
+
|
|
3
|
+
import pandas as pd
|
|
4
|
+
import pandera as pa
|
|
5
|
+
from pandera.typing import Series, String, Int, Float, Bool, DateTime
|
|
6
|
+
import pandera.extensions as extensions
|
|
7
|
+
from brynq_sdk_functions import BrynQPanderaDataFrameModel
|
|
8
|
+
from typing import Optional, Annotated
|
|
9
|
+
from pydantic import BaseModel, Field, StringConstraints
|
|
10
|
+
|
|
11
|
+
class IdentifiersGet(BrynQPanderaDataFrameModel):
|
|
12
|
+
id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="payroll employee identifier", alias="id")
|
|
13
|
+
employee_id: Series[pd.Int64Dtype] = pa.Field(coerce=True, nullable=False, description="identifier of the employee", alias="employee_id")
|
|
14
|
+
social_security_number: Series[String] = pa.Field(coerce=True, nullable=True, description="social security number of the employee", alias="social_security_number")
|
|
15
|
+
tax_id: Series[String] = pa.Field(coerce=True, nullable=True, description="tax id of the employee", alias="tax_id")
|
|
16
|
+
country: Series[String] = pa.Field(coerce=True, nullable=False, description="country code of the employee pt | it | de", alias="country")
|
|
17
|
+
|
|
18
|
+
class IdentifiersCreate(BaseModel):
|
|
19
|
+
employee_id: int = Field(..., description="identifier of the employee", alias="employee_id")
|
|
20
|
+
social_security_number: Optional[str] = Field(None, description="social security number of the employee", alias="social_security_number")
|
|
21
|
+
tax_id: Optional[str] = Field(None, description="tax id of the employee", alias="tax_id")
|
|
22
|
+
country: Annotated[str, StringConstraints(pattern=r'^pt|de|it$', strip_whitespace=True)] = Field(..., description="country code of the employee pt | it | de", alias="country")
|
|
23
|
+
|
|
24
|
+
class IdentifiersUpdate(BaseModel):
|
|
25
|
+
id: int = Field(..., description="ID", alias="id")
|
|
26
|
+
employee_id: int = Field(..., description="identifier of the employee", alias="employee_id")
|
|
27
|
+
social_security_number: Optional[str] = Field(None, description="social security number of the employee", alias="social_security_number")
|
|
28
|
+
tax_id: Optional[str] = Field(None, description="tax id of the employee", alias="tax_id")
|
|
29
|
+
country: Annotated[str, StringConstraints(pattern=r'^pt|de|it$', strip_whitespace=True)] = Field(..., description="country code of the employee pt | it | de", alias="country")
|
|
30
|
+
|
|
31
|
+
class IdentifiersDelete(BaseModel):
|
|
32
|
+
id: int = Field(..., description="ID", alias="id")
|
|
33
|
+
|