stackone_hris_client 1.6.0 → 1.7.0

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