stackone_hris_client 1.5.2 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +49 -30
- data/docs/Account.md +3 -1
- data/docs/AccountMeta.md +22 -0
- data/docs/AccountsApi.md +82 -14
- data/docs/CompaniesApi.md +25 -25
- data/docs/ConnectSession.md +1 -1
- data/docs/ConnectSessionCreate.md +1 -1
- data/docs/ConnectSessionToken.md +1 -1
- data/docs/ConnectSessionsApi.md +9 -9
- data/docs/CreateEmployeeResult.md +22 -0
- data/docs/Employee.md +56 -52
- data/docs/EmployeeApiModel.md +80 -0
- data/docs/EmployeeApiModelAvatar.md +20 -0
- data/docs/EmployeeApiModelEmploymentStatus.md +20 -0
- data/docs/EmployeeApiModelEmploymentType.md +20 -0
- data/docs/EmployeeApiModelEthnicity.md +20 -0
- data/docs/EmployeeApiModelGender.md +20 -0
- data/docs/EmployeeApiModelHomeLocation.md +38 -0
- data/docs/EmployeeApiModelMaritalStatus.md +20 -0
- data/docs/EmployeeApiModelWorkLocation.md +38 -0
- data/docs/EmployeeCustomFieldTypeEnum.md +20 -0
- data/docs/EmployeeCustomFields.md +30 -0
- data/docs/EmployeeCustomFieldsType.md +20 -0
- data/docs/EmployeeResult.md +1 -1
- data/docs/EmployeesApi.md +242 -28
- data/docs/EmployeesPaginated.md +1 -1
- data/docs/Employment.md +17 -15
- data/docs/EmploymentEmploymentContractType.md +20 -0
- data/docs/EmploymentEmploymentType.md +20 -0
- data/docs/EmploymentPayFrequency.md +20 -0
- data/docs/EmploymentPayPeriod.md +20 -0
- data/docs/EmploymentScheduleTypeEnum.md +20 -0
- data/docs/EmploymentsApi.md +27 -27
- data/docs/HrisCreateEmployeeRequestDto.md +80 -0
- data/docs/Location.md +20 -20
- data/docs/LocationCountry.md +20 -0
- data/docs/LocationLocationType.md +20 -0
- data/docs/LocationsApi.md +9 -9
- data/gem-config.yml +2 -2
- data/generate_gem.sh +0 -0
- data/lib/stackone_hris_client/api/accounts_api.rb +68 -7
- data/lib/stackone_hris_client/api/companies_api.rb +20 -20
- data/lib/stackone_hris_client/api/connect_sessions_api.rb +5 -5
- data/lib/stackone_hris_client/api/employees_api.rb +251 -20
- data/lib/stackone_hris_client/api/employments_api.rb +20 -20
- data/lib/stackone_hris_client/api/locations_api.rb +5 -5
- data/lib/stackone_hris_client/api_client.rb +1 -1
- data/lib/stackone_hris_client/api_error.rb +1 -1
- data/lib/stackone_hris_client/configuration.rb +2 -2
- data/lib/stackone_hris_client/models/account.rb +16 -7
- data/lib/stackone_hris_client/models/account_meta.rb +284 -0
- data/lib/stackone_hris_client/models/companies_paginated.rb +1 -1
- data/lib/stackone_hris_client/models/company.rb +1 -1
- data/lib/stackone_hris_client/models/company_result.rb +1 -1
- data/lib/stackone_hris_client/models/connect_session.rb +1 -1
- data/lib/stackone_hris_client/models/connect_session_authenticate.rb +1 -1
- data/lib/stackone_hris_client/models/connect_session_create.rb +1 -1
- data/lib/stackone_hris_client/models/connect_session_token.rb +1 -1
- data/lib/stackone_hris_client/models/country_code_enum.rb +1 -7
- data/lib/stackone_hris_client/models/create_employee_result.rb +250 -0
- data/lib/stackone_hris_client/models/employee.rb +117 -124
- data/lib/stackone_hris_client/models/employee_api_model.rb +523 -0
- data/lib/stackone_hris_client/models/employee_api_model_avatar.rb +234 -0
- data/lib/stackone_hris_client/models/employee_api_model_employment_status.rb +272 -0
- data/lib/stackone_hris_client/models/employee_api_model_employment_type.rb +272 -0
- data/lib/stackone_hris_client/models/employee_api_model_ethnicity.rb +272 -0
- data/lib/stackone_hris_client/models/employee_api_model_gender.rb +272 -0
- data/lib/stackone_hris_client/models/employee_api_model_home_location.rb +324 -0
- data/lib/stackone_hris_client/models/employee_api_model_marital_status.rb +272 -0
- data/lib/stackone_hris_client/models/employee_api_model_work_location.rb +324 -0
- data/lib/stackone_hris_client/models/employee_custom_field_type_enum.rb +264 -0
- data/lib/stackone_hris_client/models/employee_custom_fields.rb +279 -0
- data/lib/stackone_hris_client/models/employee_custom_fields_type.rb +272 -0
- data/lib/stackone_hris_client/models/employee_result.rb +1 -1
- data/lib/stackone_hris_client/models/employees_paginated.rb +1 -1
- data/lib/stackone_hris_client/models/employment.rb +22 -7
- data/lib/stackone_hris_client/models/employment_employment_contract_type.rb +272 -0
- data/lib/stackone_hris_client/models/employment_employment_type.rb +272 -0
- data/lib/stackone_hris_client/models/employment_pay_frequency.rb +272 -0
- data/lib/stackone_hris_client/models/employment_pay_period.rb +272 -0
- data/lib/stackone_hris_client/models/employment_result.rb +1 -1
- data/lib/stackone_hris_client/models/employment_schedule_type_enum.rb +264 -0
- data/lib/stackone_hris_client/models/employment_status_enum.rb +1 -7
- data/lib/stackone_hris_client/models/employment_type_enum.rb +1 -7
- data/lib/stackone_hris_client/models/employments_paginated.rb +1 -1
- data/lib/stackone_hris_client/models/ethnicity_enum.rb +1 -7
- data/lib/stackone_hris_client/models/gender_enum.rb +1 -7
- data/lib/stackone_hris_client/models/hris_create_employee_request_dto.rb +523 -0
- data/lib/stackone_hris_client/models/image.rb +1 -1
- data/lib/stackone_hris_client/models/location.rb +12 -8
- data/lib/stackone_hris_client/models/location_country.rb +272 -0
- data/lib/stackone_hris_client/models/location_location_type.rb +272 -0
- data/lib/stackone_hris_client/models/location_result.rb +1 -1
- data/lib/stackone_hris_client/models/location_type_enum.rb +1 -7
- data/lib/stackone_hris_client/models/locations_paginated.rb +1 -1
- data/lib/stackone_hris_client/models/marital_status_enum.rb +1 -7
- data/lib/stackone_hris_client/models/pay_frequency_enum.rb +1 -7
- data/lib/stackone_hris_client/models/pay_period_enum.rb +1 -7
- data/lib/stackone_hris_client/version.rb +2 -2
- data/lib/stackone_hris_client.rb +23 -1
- data/spec/api/accounts_api_spec.rb +30 -8
- data/spec/api/companies_api_spec.rb +13 -13
- data/spec/api/connect_sessions_api_spec.rb +8 -8
- data/spec/api/employees_api_spec.rb +60 -18
- data/spec/api/employments_api_spec.rb +13 -13
- data/spec/api/locations_api_spec.rb +9 -9
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_meta_spec.rb +50 -0
- data/spec/models/account_spec.rb +18 -12
- data/spec/models/companies_paginated_spec.rb +4 -4
- data/spec/models/company_result_spec.rb +3 -3
- data/spec/models/company_spec.rb +4 -4
- data/spec/models/connect_session_authenticate_spec.rb +5 -5
- data/spec/models/connect_session_create_spec.rb +17 -11
- data/spec/models/connect_session_spec.rb +14 -14
- data/spec/models/connect_session_token_spec.rb +15 -15
- data/spec/models/country_code_enum_spec.rb +4 -4
- data/spec/models/create_employee_result_spec.rb +46 -0
- data/spec/models/employee.rb +220 -0
- data/spec/models/employee_api_model_avatar_spec.rb +40 -0
- data/spec/models/employee_api_model_employment_status_spec.rb +44 -0
- data/spec/models/employee_api_model_employment_type_spec.rb +44 -0
- data/spec/models/employee_api_model_ethnicity_spec.rb +44 -0
- data/spec/models/employee_api_model_gender_spec.rb +44 -0
- data/spec/models/employee_api_model_home_location_spec.rb +94 -0
- data/spec/models/employee_api_model_marital_status_spec.rb +44 -0
- data/spec/models/employee_api_model_spec.rb +220 -0
- data/spec/models/employee_api_model_work_location_spec.rb +94 -0
- data/spec/models/employee_custom_field_type_enum_spec.rb +44 -0
- data/spec/models/employee_custom_fields_spec.rb +70 -0
- data/spec/models/employee_custom_fields_type_spec.rb +44 -0
- data/spec/models/employee_result_spec.rb +6 -6
- data/spec/models/employees_paginated_spec.rb +7 -7
- data/spec/models/employment_employment_contract_type_spec.rb +44 -0
- data/spec/models/employment_employment_type_spec.rb +44 -0
- data/spec/models/employment_pay_frequency_spec.rb +44 -0
- data/spec/models/employment_pay_period_spec.rb +44 -0
- data/spec/models/employment_result_spec.rb +3 -3
- data/spec/models/employment_schedule_type_enum_spec.rb +44 -0
- data/spec/models/employment_spec.rb +16 -10
- data/spec/models/employment_status_enum_spec.rb +4 -4
- data/spec/models/employment_type_enum_spec.rb +4 -4
- data/spec/models/employments_paginated_spec.rb +4 -4
- data/spec/models/ethnicity_enum_spec.rb +4 -4
- data/spec/models/gender_enum_spec.rb +4 -4
- data/spec/models/hris_create_employee_request_dto_spec.rb +220 -0
- data/spec/models/image_spec.rb +3 -3
- data/spec/models/location_country_spec.rb +44 -0
- data/spec/models/location_location_type_spec.rb +44 -0
- data/spec/models/location_result_spec.rb +3 -3
- data/spec/models/location_spec.rb +12 -12
- data/spec/models/location_type_enum_spec.rb +3 -3
- data/spec/models/locations_paginated_spec.rb +4 -4
- data/spec/models/marital_status_enum_spec.rb +4 -4
- data/spec/models/pay_frequency_enum_spec.rb +4 -4
- data/spec/models/pay_period_enum_spec.rb +3 -3
- data/spec/spec_helper.rb +1 -1
- data/stackone_hris_client.gemspec +1 -1
- metadata +92 -4
- data/spec/models/employee_spec.rb +0 -124
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.6.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,66 +15,93 @@ require 'time'
|
|
15
15
|
|
16
16
|
module StackOneHRIS
|
17
17
|
class Employee
|
18
|
+
# The employee ID
|
18
19
|
attr_accessor :id
|
19
20
|
|
21
|
+
# The employee first name
|
20
22
|
attr_accessor :first_name
|
21
23
|
|
24
|
+
# The employee last name
|
22
25
|
attr_accessor :last_name
|
23
26
|
|
27
|
+
# The employee name
|
24
28
|
attr_accessor :name
|
25
29
|
|
30
|
+
# The employee display name
|
26
31
|
attr_accessor :display_name
|
27
32
|
|
28
|
-
|
29
|
-
|
30
|
-
attr_accessor :ethnicity
|
31
|
-
|
32
|
-
attr_accessor :date_of_birth
|
33
|
-
|
34
|
-
attr_accessor :birthday
|
35
|
-
|
36
|
-
attr_accessor :marital_status
|
37
|
-
|
38
|
-
attr_accessor :avatar
|
33
|
+
# The employee avatar Url
|
34
|
+
attr_accessor :avatar_url
|
39
35
|
|
36
|
+
# The employee personal email
|
40
37
|
attr_accessor :personal_email
|
41
38
|
|
39
|
+
# The employee personal phone number
|
42
40
|
attr_accessor :personal_phone_number
|
43
41
|
|
42
|
+
# The employee work email
|
44
43
|
attr_accessor :work_email
|
45
44
|
|
45
|
+
# The employee work phone number
|
46
46
|
attr_accessor :work_phone_number
|
47
47
|
|
48
|
+
# The employee job title
|
48
49
|
attr_accessor :job_title
|
49
50
|
|
51
|
+
# The employee department
|
50
52
|
attr_accessor :department
|
51
53
|
|
54
|
+
# The employee manager ID
|
52
55
|
attr_accessor :manager_id
|
53
56
|
|
57
|
+
attr_accessor :gender
|
58
|
+
|
59
|
+
attr_accessor :ethnicity
|
60
|
+
|
61
|
+
# The employee date_of_birth
|
62
|
+
attr_accessor :date_of_birth
|
63
|
+
|
64
|
+
# The employee birthday
|
65
|
+
attr_accessor :birthday
|
66
|
+
|
67
|
+
attr_accessor :marital_status
|
68
|
+
|
69
|
+
attr_accessor :avatar
|
70
|
+
|
71
|
+
# The employee hire date
|
54
72
|
attr_accessor :hire_date
|
55
73
|
|
74
|
+
# The employee start date
|
56
75
|
attr_accessor :start_date
|
57
76
|
|
77
|
+
# The employee tenure
|
58
78
|
attr_accessor :tenure
|
59
79
|
|
80
|
+
# The employee work anniversary
|
60
81
|
attr_accessor :work_anniversary
|
61
82
|
|
62
83
|
attr_accessor :employment_type
|
63
84
|
|
85
|
+
attr_accessor :employment_contract_type
|
86
|
+
|
64
87
|
attr_accessor :employment_status
|
65
88
|
|
89
|
+
# The employee termination date
|
66
90
|
attr_accessor :termination_date
|
67
91
|
|
68
|
-
attr_accessor :company_name
|
69
|
-
|
70
92
|
attr_accessor :home_location
|
71
93
|
|
72
94
|
attr_accessor :work_location
|
73
95
|
|
74
|
-
|
96
|
+
# The employee company name
|
97
|
+
attr_accessor :company_name
|
75
98
|
|
99
|
+
# The employee employments
|
76
100
|
attr_accessor :employments
|
77
101
|
|
102
|
+
# The employee custom fields
|
103
|
+
attr_accessor :custom_fields
|
104
|
+
|
78
105
|
# Attribute mapping from ruby-style variable name to JSON key.
|
79
106
|
def self.attribute_map
|
80
107
|
{
|
@@ -83,12 +110,7 @@ module StackOneHRIS
|
|
83
110
|
:'last_name' => :'last_name',
|
84
111
|
:'name' => :'name',
|
85
112
|
:'display_name' => :'display_name',
|
86
|
-
:'
|
87
|
-
:'ethnicity' => :'ethnicity',
|
88
|
-
:'date_of_birth' => :'date_of_birth',
|
89
|
-
:'birthday' => :'birthday',
|
90
|
-
:'marital_status' => :'marital_status',
|
91
|
-
:'avatar' => :'avatar',
|
113
|
+
:'avatar_url' => :'avatar_url',
|
92
114
|
:'personal_email' => :'personal_email',
|
93
115
|
:'personal_phone_number' => :'personal_phone_number',
|
94
116
|
:'work_email' => :'work_email',
|
@@ -96,18 +118,25 @@ module StackOneHRIS
|
|
96
118
|
:'job_title' => :'job_title',
|
97
119
|
:'department' => :'department',
|
98
120
|
:'manager_id' => :'manager_id',
|
121
|
+
:'gender' => :'gender',
|
122
|
+
:'ethnicity' => :'ethnicity',
|
123
|
+
:'date_of_birth' => :'date_of_birth',
|
124
|
+
:'birthday' => :'birthday',
|
125
|
+
:'marital_status' => :'marital_status',
|
126
|
+
:'avatar' => :'avatar',
|
99
127
|
:'hire_date' => :'hire_date',
|
100
128
|
:'start_date' => :'start_date',
|
101
129
|
:'tenure' => :'tenure',
|
102
130
|
:'work_anniversary' => :'work_anniversary',
|
103
131
|
:'employment_type' => :'employment_type',
|
132
|
+
:'employment_contract_type' => :'employment_contract_type',
|
104
133
|
:'employment_status' => :'employment_status',
|
105
134
|
:'termination_date' => :'termination_date',
|
106
|
-
:'company_name' => :'company_name',
|
107
135
|
:'home_location' => :'home_location',
|
108
136
|
:'work_location' => :'work_location',
|
109
|
-
:'
|
110
|
-
:'employments' => :'employments'
|
137
|
+
:'company_name' => :'company_name',
|
138
|
+
:'employments' => :'employments',
|
139
|
+
:'custom_fields' => :'custom_fields'
|
111
140
|
}
|
112
141
|
end
|
113
142
|
|
@@ -124,12 +153,7 @@ module StackOneHRIS
|
|
124
153
|
:'last_name' => :'String',
|
125
154
|
:'name' => :'String',
|
126
155
|
:'display_name' => :'String',
|
127
|
-
:'
|
128
|
-
:'ethnicity' => :'EthnicityEnum',
|
129
|
-
:'date_of_birth' => :'Time',
|
130
|
-
:'birthday' => :'Time',
|
131
|
-
:'marital_status' => :'MaritalStatusEnum',
|
132
|
-
:'avatar' => :'Image',
|
156
|
+
:'avatar_url' => :'String',
|
133
157
|
:'personal_email' => :'String',
|
134
158
|
:'personal_phone_number' => :'String',
|
135
159
|
:'work_email' => :'String',
|
@@ -137,18 +161,25 @@ module StackOneHRIS
|
|
137
161
|
:'job_title' => :'String',
|
138
162
|
:'department' => :'String',
|
139
163
|
:'manager_id' => :'String',
|
164
|
+
:'gender' => :'EmployeeApiModelGender',
|
165
|
+
:'ethnicity' => :'EmployeeApiModelEthnicity',
|
166
|
+
:'date_of_birth' => :'Time',
|
167
|
+
:'birthday' => :'Time',
|
168
|
+
:'marital_status' => :'EmployeeApiModelMaritalStatus',
|
169
|
+
:'avatar' => :'EmployeeApiModelAvatar',
|
140
170
|
:'hire_date' => :'Time',
|
141
171
|
:'start_date' => :'Time',
|
142
172
|
:'tenure' => :'Float',
|
143
173
|
:'work_anniversary' => :'Time',
|
144
|
-
:'employment_type' => :'
|
145
|
-
:'
|
174
|
+
:'employment_type' => :'EmployeeApiModelEmploymentType',
|
175
|
+
:'employment_contract_type' => :'EmploymentEmploymentContractType',
|
176
|
+
:'employment_status' => :'EmployeeApiModelEmploymentStatus',
|
146
177
|
:'termination_date' => :'Time',
|
178
|
+
:'home_location' => :'EmployeeApiModelHomeLocation',
|
179
|
+
:'work_location' => :'EmployeeApiModelWorkLocation',
|
147
180
|
:'company_name' => :'String',
|
148
|
-
:'
|
149
|
-
:'
|
150
|
-
:'company' => :'String',
|
151
|
-
:'employments' => :'Array<Employment>'
|
181
|
+
:'employments' => :'Array<Employment>',
|
182
|
+
:'custom_fields' => :'Array<EmployeeCustomFields>'
|
152
183
|
}
|
153
184
|
end
|
154
185
|
|
@@ -193,28 +224,8 @@ module StackOneHRIS
|
|
193
224
|
self.display_name = attributes[:'display_name']
|
194
225
|
end
|
195
226
|
|
196
|
-
if attributes.key?(:'
|
197
|
-
self.
|
198
|
-
end
|
199
|
-
|
200
|
-
if attributes.key?(:'ethnicity')
|
201
|
-
self.ethnicity = attributes[:'ethnicity']
|
202
|
-
end
|
203
|
-
|
204
|
-
if attributes.key?(:'date_of_birth')
|
205
|
-
self.date_of_birth = attributes[:'date_of_birth']
|
206
|
-
end
|
207
|
-
|
208
|
-
if attributes.key?(:'birthday')
|
209
|
-
self.birthday = attributes[:'birthday']
|
210
|
-
end
|
211
|
-
|
212
|
-
if attributes.key?(:'marital_status')
|
213
|
-
self.marital_status = attributes[:'marital_status']
|
214
|
-
end
|
215
|
-
|
216
|
-
if attributes.key?(:'avatar')
|
217
|
-
self.avatar = attributes[:'avatar']
|
227
|
+
if attributes.key?(:'avatar_url')
|
228
|
+
self.avatar_url = attributes[:'avatar_url']
|
218
229
|
end
|
219
230
|
|
220
231
|
if attributes.key?(:'personal_email')
|
@@ -245,6 +256,30 @@ module StackOneHRIS
|
|
245
256
|
self.manager_id = attributes[:'manager_id']
|
246
257
|
end
|
247
258
|
|
259
|
+
if attributes.key?(:'gender')
|
260
|
+
self.gender = attributes[:'gender']
|
261
|
+
end
|
262
|
+
|
263
|
+
if attributes.key?(:'ethnicity')
|
264
|
+
self.ethnicity = attributes[:'ethnicity']
|
265
|
+
end
|
266
|
+
|
267
|
+
if attributes.key?(:'date_of_birth')
|
268
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
269
|
+
end
|
270
|
+
|
271
|
+
if attributes.key?(:'birthday')
|
272
|
+
self.birthday = attributes[:'birthday']
|
273
|
+
end
|
274
|
+
|
275
|
+
if attributes.key?(:'marital_status')
|
276
|
+
self.marital_status = attributes[:'marital_status']
|
277
|
+
end
|
278
|
+
|
279
|
+
if attributes.key?(:'avatar')
|
280
|
+
self.avatar = attributes[:'avatar']
|
281
|
+
end
|
282
|
+
|
248
283
|
if attributes.key?(:'hire_date')
|
249
284
|
self.hire_date = attributes[:'hire_date']
|
250
285
|
end
|
@@ -265,6 +300,10 @@ module StackOneHRIS
|
|
265
300
|
self.employment_type = attributes[:'employment_type']
|
266
301
|
end
|
267
302
|
|
303
|
+
if attributes.key?(:'employment_contract_type')
|
304
|
+
self.employment_contract_type = attributes[:'employment_contract_type']
|
305
|
+
end
|
306
|
+
|
268
307
|
if attributes.key?(:'employment_status')
|
269
308
|
self.employment_status = attributes[:'employment_status']
|
270
309
|
end
|
@@ -273,10 +312,6 @@ module StackOneHRIS
|
|
273
312
|
self.termination_date = attributes[:'termination_date']
|
274
313
|
end
|
275
314
|
|
276
|
-
if attributes.key?(:'company_name')
|
277
|
-
self.company_name = attributes[:'company_name']
|
278
|
-
end
|
279
|
-
|
280
315
|
if attributes.key?(:'home_location')
|
281
316
|
self.home_location = attributes[:'home_location']
|
282
317
|
end
|
@@ -285,8 +320,8 @@ module StackOneHRIS
|
|
285
320
|
self.work_location = attributes[:'work_location']
|
286
321
|
end
|
287
322
|
|
288
|
-
if attributes.key?(:'
|
289
|
-
self.
|
323
|
+
if attributes.key?(:'company_name')
|
324
|
+
self.company_name = attributes[:'company_name']
|
290
325
|
end
|
291
326
|
|
292
327
|
if attributes.key?(:'employments')
|
@@ -294,68 +329,24 @@ module StackOneHRIS
|
|
294
329
|
self.employments = value
|
295
330
|
end
|
296
331
|
end
|
332
|
+
|
333
|
+
if attributes.key?(:'custom_fields')
|
334
|
+
if (value = attributes[:'custom_fields']).is_a?(Array)
|
335
|
+
self.custom_fields = value
|
336
|
+
end
|
337
|
+
end
|
297
338
|
end
|
298
339
|
|
299
340
|
# Show invalid properties with the reasons. Usually used together with valid?
|
300
341
|
# @return Array for valid properties with the reasons
|
301
342
|
def list_invalid_properties
|
302
343
|
invalid_properties = Array.new
|
303
|
-
if @id.nil?
|
304
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
305
|
-
end
|
306
|
-
|
307
|
-
if @first_name.nil?
|
308
|
-
invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
|
309
|
-
end
|
310
|
-
|
311
|
-
if @last_name.nil?
|
312
|
-
invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
|
313
|
-
end
|
314
|
-
|
315
|
-
if @name.nil?
|
316
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
317
|
-
end
|
318
|
-
|
319
|
-
if @display_name.nil?
|
320
|
-
invalid_properties.push('invalid value for "display_name", display_name cannot be nil.')
|
321
|
-
end
|
322
|
-
|
323
|
-
if @gender.nil?
|
324
|
-
invalid_properties.push('invalid value for "gender", gender cannot be nil.')
|
325
|
-
end
|
326
|
-
|
327
|
-
if @personal_phone_number.nil?
|
328
|
-
invalid_properties.push('invalid value for "personal_phone_number", personal_phone_number cannot be nil.')
|
329
|
-
end
|
330
|
-
|
331
|
-
if @work_email.nil?
|
332
|
-
invalid_properties.push('invalid value for "work_email", work_email cannot be nil.')
|
333
|
-
end
|
334
|
-
|
335
|
-
if @work_phone_number.nil?
|
336
|
-
invalid_properties.push('invalid value for "work_phone_number", work_phone_number cannot be nil.')
|
337
|
-
end
|
338
|
-
|
339
|
-
if @department.nil?
|
340
|
-
invalid_properties.push('invalid value for "department", department cannot be nil.')
|
341
|
-
end
|
342
|
-
|
343
344
|
invalid_properties
|
344
345
|
end
|
345
346
|
|
346
347
|
# Check to see if the all the properties in the model are valid
|
347
348
|
# @return true if the model is valid
|
348
349
|
def valid?
|
349
|
-
return false if @id.nil?
|
350
|
-
return false if @first_name.nil?
|
351
|
-
return false if @last_name.nil?
|
352
|
-
return false if @name.nil?
|
353
|
-
return false if @display_name.nil?
|
354
|
-
return false if @gender.nil?
|
355
|
-
return false if @personal_phone_number.nil?
|
356
|
-
return false if @work_email.nil?
|
357
|
-
return false if @work_phone_number.nil?
|
358
|
-
return false if @department.nil?
|
359
350
|
true
|
360
351
|
end
|
361
352
|
|
@@ -369,12 +360,7 @@ module StackOneHRIS
|
|
369
360
|
last_name == o.last_name &&
|
370
361
|
name == o.name &&
|
371
362
|
display_name == o.display_name &&
|
372
|
-
|
373
|
-
ethnicity == o.ethnicity &&
|
374
|
-
date_of_birth == o.date_of_birth &&
|
375
|
-
birthday == o.birthday &&
|
376
|
-
marital_status == o.marital_status &&
|
377
|
-
avatar == o.avatar &&
|
363
|
+
avatar_url == o.avatar_url &&
|
378
364
|
personal_email == o.personal_email &&
|
379
365
|
personal_phone_number == o.personal_phone_number &&
|
380
366
|
work_email == o.work_email &&
|
@@ -382,18 +368,25 @@ module StackOneHRIS
|
|
382
368
|
job_title == o.job_title &&
|
383
369
|
department == o.department &&
|
384
370
|
manager_id == o.manager_id &&
|
371
|
+
gender == o.gender &&
|
372
|
+
ethnicity == o.ethnicity &&
|
373
|
+
date_of_birth == o.date_of_birth &&
|
374
|
+
birthday == o.birthday &&
|
375
|
+
marital_status == o.marital_status &&
|
376
|
+
avatar == o.avatar &&
|
385
377
|
hire_date == o.hire_date &&
|
386
378
|
start_date == o.start_date &&
|
387
379
|
tenure == o.tenure &&
|
388
380
|
work_anniversary == o.work_anniversary &&
|
389
381
|
employment_type == o.employment_type &&
|
382
|
+
employment_contract_type == o.employment_contract_type &&
|
390
383
|
employment_status == o.employment_status &&
|
391
384
|
termination_date == o.termination_date &&
|
392
|
-
company_name == o.company_name &&
|
393
385
|
home_location == o.home_location &&
|
394
386
|
work_location == o.work_location &&
|
395
|
-
|
396
|
-
employments == o.employments
|
387
|
+
company_name == o.company_name &&
|
388
|
+
employments == o.employments &&
|
389
|
+
custom_fields == o.custom_fields
|
397
390
|
end
|
398
391
|
|
399
392
|
# @see the `==` method
|
@@ -405,7 +398,7 @@ module StackOneHRIS
|
|
405
398
|
# Calculates hash code according to all attributes.
|
406
399
|
# @return [Integer] Hash code
|
407
400
|
def hash
|
408
|
-
[id, first_name, last_name, name, display_name,
|
401
|
+
[id, first_name, last_name, name, display_name, avatar_url, personal_email, personal_phone_number, work_email, work_phone_number, job_title, department, manager_id, gender, ethnicity, date_of_birth, birthday, marital_status, avatar, hire_date, start_date, tenure, work_anniversary, employment_type, employment_contract_type, employment_status, termination_date, home_location, work_location, company_name, employments, custom_fields].hash
|
409
402
|
end
|
410
403
|
|
411
404
|
# Builds the object from hash
|