-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathemployee_statutory_leave_summary.py
More file actions
273 lines (208 loc) · 7.85 KB
/
employee_statutory_leave_summary.py
File metadata and controls
273 lines (208 loc) · 7.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
# coding: utf-8
"""
Xero Payroll UK
This is the Xero Payroll API for orgs in the UK region. # noqa: E501
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
class EmployeeStatutoryLeaveSummary(BaseModel):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
Do not edit the class manually.
"""
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
openapi_types = {
"statutory_leave_id": "str",
"employee_id": "str",
"type": "str",
"start_date": "date",
"end_date": "date",
"is_entitled": "bool",
"status": "str",
}
attribute_map = {
"statutory_leave_id": "statutoryLeaveID",
"employee_id": "employeeID",
"type": "type",
"start_date": "startDate",
"end_date": "endDate",
"is_entitled": "isEntitled",
"status": "status",
}
def __init__(
self,
statutory_leave_id=None,
employee_id=None,
type=None,
start_date=None,
end_date=None,
is_entitled=None,
status=None,
): # noqa: E501
"""EmployeeStatutoryLeaveSummary - a model defined in OpenAPI""" # noqa: E501
self._statutory_leave_id = None
self._employee_id = None
self._type = None
self._start_date = None
self._end_date = None
self._is_entitled = None
self._status = None
self.discriminator = None
if statutory_leave_id is not None:
self.statutory_leave_id = statutory_leave_id
if employee_id is not None:
self.employee_id = employee_id
if type is not None:
self.type = type
if start_date is not None:
self.start_date = start_date
if end_date is not None:
self.end_date = end_date
if is_entitled is not None:
self.is_entitled = is_entitled
if status is not None:
self.status = status
@property
def statutory_leave_id(self):
"""Gets the statutory_leave_id of this EmployeeStatutoryLeaveSummary. # noqa: E501
The unique identifier (guid) of a statutory leave. # noqa: E501
:return: The statutory_leave_id of this EmployeeStatutoryLeaveSummary. # noqa: E501
:rtype: str
"""
return self._statutory_leave_id
@statutory_leave_id.setter
def statutory_leave_id(self, statutory_leave_id):
"""Sets the statutory_leave_id of this EmployeeStatutoryLeaveSummary.
The unique identifier (guid) of a statutory leave. # noqa: E501
:param statutory_leave_id: The statutory_leave_id of this EmployeeStatutoryLeaveSummary. # noqa: E501
:type: str
"""
self._statutory_leave_id = statutory_leave_id
@property
def employee_id(self):
"""Gets the employee_id of this EmployeeStatutoryLeaveSummary. # noqa: E501
The unique identifier (guid) of the employee # noqa: E501
:return: The employee_id of this EmployeeStatutoryLeaveSummary. # noqa: E501
:rtype: str
"""
return self._employee_id
@employee_id.setter
def employee_id(self, employee_id):
"""Sets the employee_id of this EmployeeStatutoryLeaveSummary.
The unique identifier (guid) of the employee # noqa: E501
:param employee_id: The employee_id of this EmployeeStatutoryLeaveSummary. # noqa: E501
:type: str
"""
self._employee_id = employee_id
@property
def type(self):
"""Gets the type of this EmployeeStatutoryLeaveSummary. # noqa: E501
The category of statutory leave # noqa: E501
:return: The type of this EmployeeStatutoryLeaveSummary. # noqa: E501
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
"""Sets the type of this EmployeeStatutoryLeaveSummary.
The category of statutory leave # noqa: E501
:param type: The type of this EmployeeStatutoryLeaveSummary. # noqa: E501
:type: str
"""
allowed_values = [
"Sick",
"Adoption",
"Maternity",
"Paternity",
"Sharedparental",
"Bereavement",
"None",
] # noqa: E501
if type:
if type not in allowed_values:
raise ValueError(
"Invalid value for `type` ({0}), must be one of {1}".format( # noqa: E501
type, allowed_values
)
)
self._type = type
@property
def start_date(self):
"""Gets the start_date of this EmployeeStatutoryLeaveSummary. # noqa: E501
The date when the leave starts # noqa: E501
:return: The start_date of this EmployeeStatutoryLeaveSummary. # noqa: E501
:rtype: date
"""
return self._start_date
@start_date.setter
def start_date(self, start_date):
"""Sets the start_date of this EmployeeStatutoryLeaveSummary.
The date when the leave starts # noqa: E501
:param start_date: The start_date of this EmployeeStatutoryLeaveSummary. # noqa: E501
:type: date
"""
self._start_date = start_date
@property
def end_date(self):
"""Gets the end_date of this EmployeeStatutoryLeaveSummary. # noqa: E501
The date when the leave ends # noqa: E501
:return: The end_date of this EmployeeStatutoryLeaveSummary. # noqa: E501
:rtype: date
"""
return self._end_date
@end_date.setter
def end_date(self, end_date):
"""Sets the end_date of this EmployeeStatutoryLeaveSummary.
The date when the leave ends # noqa: E501
:param end_date: The end_date of this EmployeeStatutoryLeaveSummary. # noqa: E501
:type: date
"""
self._end_date = end_date
@property
def is_entitled(self):
"""Gets the is_entitled of this EmployeeStatutoryLeaveSummary. # noqa: E501
Whether the leave was entitled to receive payment # noqa: E501
:return: The is_entitled of this EmployeeStatutoryLeaveSummary. # noqa: E501
:rtype: bool
"""
return self._is_entitled
@is_entitled.setter
def is_entitled(self, is_entitled):
"""Sets the is_entitled of this EmployeeStatutoryLeaveSummary.
Whether the leave was entitled to receive payment # noqa: E501
:param is_entitled: The is_entitled of this EmployeeStatutoryLeaveSummary. # noqa: E501
:type: bool
"""
self._is_entitled = is_entitled
@property
def status(self):
"""Gets the status of this EmployeeStatutoryLeaveSummary. # noqa: E501
The status of the leave # noqa: E501
:return: The status of this EmployeeStatutoryLeaveSummary. # noqa: E501
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""Sets the status of this EmployeeStatutoryLeaveSummary.
The status of the leave # noqa: E501
:param status: The status of this EmployeeStatutoryLeaveSummary. # noqa: E501
:type: str
"""
allowed_values = ["Pending", "In-Progress", "Completed", "None"] # noqa: E501
if status:
if status not in allowed_values:
raise ValueError(
"Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501
status, allowed_values
)
)
self._status = status