-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathemployee_statutory_leave_balance.py
More file actions
150 lines (113 loc) · 4.42 KB
/
employee_statutory_leave_balance.py
File metadata and controls
150 lines (113 loc) · 4.42 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
# 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 EmployeeStatutoryLeaveBalance(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 = {"leave_type": "str", "balance_remaining": "float", "units": "str"}
attribute_map = {
"leave_type": "leaveType",
"balance_remaining": "balanceRemaining",
"units": "units",
}
def __init__(
self, leave_type=None, balance_remaining=None, units=None
): # noqa: E501
"""EmployeeStatutoryLeaveBalance - a model defined in OpenAPI""" # noqa: E501
self._leave_type = None
self._balance_remaining = None
self._units = None
self.discriminator = None
if leave_type is not None:
self.leave_type = leave_type
if balance_remaining is not None:
self.balance_remaining = balance_remaining
if units is not None:
self.units = units
@property
def leave_type(self):
"""Gets the leave_type of this EmployeeStatutoryLeaveBalance. # noqa: E501
The type of statutory leave # noqa: E501
:return: The leave_type of this EmployeeStatutoryLeaveBalance. # noqa: E501
:rtype: str
"""
return self._leave_type
@leave_type.setter
def leave_type(self, leave_type):
"""Sets the leave_type of this EmployeeStatutoryLeaveBalance.
The type of statutory leave # noqa: E501
:param leave_type: The leave_type of this EmployeeStatutoryLeaveBalance. # noqa: E501
:type: str
"""
allowed_values = [
"Sick",
"Adoption",
"Maternity",
"Paternity",
"Sharedparental",
"Bereavement",
"None",
] # noqa: E501
if leave_type:
if leave_type not in allowed_values:
raise ValueError(
"Invalid value for `leave_type` ({0}), must be one of {1}".format( # noqa: E501
leave_type, allowed_values
)
)
self._leave_type = leave_type
@property
def balance_remaining(self):
"""Gets the balance_remaining of this EmployeeStatutoryLeaveBalance. # noqa: E501
The balance remaining for the corresponding leave type as of specified date. # noqa: E501
:return: The balance_remaining of this EmployeeStatutoryLeaveBalance. # noqa: E501
:rtype: float
"""
return self._balance_remaining
@balance_remaining.setter
def balance_remaining(self, balance_remaining):
"""Sets the balance_remaining of this EmployeeStatutoryLeaveBalance.
The balance remaining for the corresponding leave type as of specified date. # noqa: E501
:param balance_remaining: The balance_remaining of this EmployeeStatutoryLeaveBalance. # noqa: E501
:type: float
"""
self._balance_remaining = balance_remaining
@property
def units(self):
"""Gets the units of this EmployeeStatutoryLeaveBalance. # noqa: E501
The units will be \"Hours\" # noqa: E501
:return: The units of this EmployeeStatutoryLeaveBalance. # noqa: E501
:rtype: str
"""
return self._units
@units.setter
def units(self, units):
"""Sets the units of this EmployeeStatutoryLeaveBalance.
The units will be \"Hours\" # noqa: E501
:param units: The units of this EmployeeStatutoryLeaveBalance. # noqa: E501
:type: str
"""
allowed_values = ["Hours", "None"] # noqa: E501
if units:
if units not in allowed_values:
raise ValueError(
"Invalid value for `units` ({0}), must be one of {1}".format( # noqa: E501
units, allowed_values
)
)
self._units = units