stackone_hris_client 1.1.0 → 1.2.0
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.
- checksums.yaml +4 -4
- data/README.md +40 -24
- data/docs/Account.md +2 -2
- data/docs/AccountsApi.md +82 -11
- data/docs/CompaniesApi.md +175 -0
- data/docs/CompaniesPaginated.md +22 -0
- data/docs/Company.md +22 -0
- data/docs/CompanyResult.md +20 -0
- data/docs/ConnectSession.md +2 -2
- data/docs/ConnectSessionAuthenticate.md +2 -2
- data/docs/ConnectSessionCreate.md +2 -2
- data/docs/ConnectSessionToken.md +2 -2
- data/docs/ConnectSessionsApi.md +15 -13
- data/docs/Employee.md +36 -12
- data/docs/EmployeeResult.md +2 -2
- data/docs/EmployeesApi.md +13 -11
- data/docs/EmployeesPaginated.md +2 -2
- data/docs/Employment.md +34 -0
- data/docs/EmploymentResult.md +20 -0
- data/docs/EmploymentsApi.md +175 -0
- data/docs/EmploymentsPaginated.md +22 -0
- data/docs/Location.md +38 -0
- data/docs/LocationResult.md +20 -0
- data/docs/LocationsApi.md +175 -0
- data/docs/LocationsPaginated.md +22 -0
- data/gem-config.yml +4 -4
- data/lib/stackone_hris_client/api/accounts_api.rb +65 -4
- data/lib/stackone_hris_client/api/companies_api.rb +188 -0
- data/lib/stackone_hris_client/api/connect_sessions_api.rb +5 -5
- data/lib/stackone_hris_client/api/employees_api.rb +4 -4
- data/lib/stackone_hris_client/api/employments_api.rb +188 -0
- data/lib/stackone_hris_client/api/locations_api.rb +188 -0
- data/lib/stackone_hris_client/api_client.rb +5 -5
- data/lib/stackone_hris_client/api_error.rb +4 -4
- data/lib/stackone_hris_client/configuration.rb +4 -4
- data/lib/stackone_hris_client/models/account.rb +9 -7
- data/lib/stackone_hris_client/models/companies_paginated.rb +249 -0
- data/lib/stackone_hris_client/models/company.rb +237 -0
- data/lib/stackone_hris_client/models/company_result.rb +233 -0
- data/lib/stackone_hris_client/models/connect_session.rb +9 -7
- data/lib/stackone_hris_client/models/connect_session_authenticate.rb +9 -7
- data/lib/stackone_hris_client/models/connect_session_create.rb +9 -7
- data/lib/stackone_hris_client/models/connect_session_token.rb +9 -7
- data/lib/stackone_hris_client/models/employee.rb +145 -60
- data/lib/stackone_hris_client/models/employee_result.rb +9 -7
- data/lib/stackone_hris_client/models/employees_paginated.rb +9 -7
- data/lib/stackone_hris_client/models/employment.rb +296 -0
- data/lib/stackone_hris_client/models/employment_result.rb +233 -0
- data/lib/stackone_hris_client/models/employments_paginated.rb +249 -0
- data/lib/stackone_hris_client/models/location.rb +314 -0
- data/lib/stackone_hris_client/models/location_result.rb +233 -0
- data/lib/stackone_hris_client/models/locations_paginated.rb +249 -0
- data/lib/stackone_hris_client/version.rb +5 -5
- data/lib/stackone_hris_client.rb +16 -4
- data/spec/api/companies_api_spec.rb +70 -0
- data/spec/api/employments_api_spec.rb +70 -0
- data/spec/api/locations_api_spec.rb +70 -0
- data/spec/api_client_spec.rb +32 -32
- data/spec/configuration_spec.rb +6 -6
- data/spec/models/companies_paginated_spec.rb +46 -0
- data/spec/models/company_result_spec.rb +40 -0
- data/spec/models/company_spec.rb +46 -0
- data/spec/models/employment_result_spec.rb +40 -0
- data/spec/models/employment_spec.rb +82 -0
- data/spec/models/employments_paginated_spec.rb +46 -0
- data/spec/models/location_result_spec.rb +40 -0
- data/spec/models/location_spec.rb +94 -0
- data/spec/models/locations_paginated_spec.rb +46 -0
- data/spec/spec_helper.rb +3 -3
- data/stackone_hris_client.gemspec +5 -5
- metadata +51 -3
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
#StackOne Unified API
|
2
|
+
#StackOne Unified API - HRIS
|
3
3
|
|
4
|
-
#The documentation for the StackOne Unified API
|
4
|
+
#The documentation for the StackOne Unified API - HRIS
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.4.0
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 6.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module StackOneHRIS
|
17
17
|
class Employee
|
18
18
|
attr_accessor :id
|
19
19
|
|
@@ -25,28 +25,52 @@ module StackOneHrisClient
|
|
25
25
|
|
26
26
|
attr_accessor :display_name
|
27
27
|
|
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
|
+
|
28
38
|
attr_accessor :avatar_url
|
29
39
|
|
30
40
|
attr_accessor :personal_email
|
31
41
|
|
32
42
|
attr_accessor :personal_phone_number
|
33
43
|
|
34
|
-
attr_accessor :gender
|
35
|
-
|
36
44
|
attr_accessor :work_email
|
37
45
|
|
38
46
|
attr_accessor :work_phone_number
|
39
47
|
|
40
|
-
attr_accessor :
|
48
|
+
attr_accessor :job_title
|
41
49
|
|
42
50
|
attr_accessor :department
|
43
51
|
|
44
52
|
attr_accessor :manager_id
|
45
53
|
|
46
|
-
attr_accessor :
|
54
|
+
attr_accessor :hire_date
|
47
55
|
|
48
56
|
attr_accessor :start_date
|
49
57
|
|
58
|
+
attr_accessor :tenure
|
59
|
+
|
60
|
+
attr_accessor :work_anniversary
|
61
|
+
|
62
|
+
attr_accessor :employment_type
|
63
|
+
|
64
|
+
attr_accessor :employment_status
|
65
|
+
|
66
|
+
attr_accessor :termination_date
|
67
|
+
|
68
|
+
attr_accessor :company_name
|
69
|
+
|
70
|
+
attr_accessor :home_country_location
|
71
|
+
|
72
|
+
attr_accessor :work_country_location
|
73
|
+
|
50
74
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
75
|
def self.attribute_map
|
52
76
|
{
|
@@ -55,17 +79,29 @@ module StackOneHrisClient
|
|
55
79
|
:'last_name' => :'last_name',
|
56
80
|
:'name' => :'name',
|
57
81
|
:'display_name' => :'display_name',
|
82
|
+
:'gender' => :'gender',
|
83
|
+
:'ethnicity' => :'ethnicity',
|
84
|
+
:'date_of_birth' => :'date_of_birth',
|
85
|
+
:'birthday' => :'birthday',
|
86
|
+
:'marital_status' => :'marital_status',
|
58
87
|
:'avatar_url' => :'avatar_url',
|
59
88
|
:'personal_email' => :'personal_email',
|
60
89
|
:'personal_phone_number' => :'personal_phone_number',
|
61
|
-
:'gender' => :'gender',
|
62
90
|
:'work_email' => :'work_email',
|
63
91
|
:'work_phone_number' => :'work_phone_number',
|
64
|
-
:'
|
92
|
+
:'job_title' => :'job_title',
|
65
93
|
:'department' => :'department',
|
66
94
|
:'manager_id' => :'manager_id',
|
67
|
-
:'
|
68
|
-
:'start_date' => :'start_date'
|
95
|
+
:'hire_date' => :'hire_date',
|
96
|
+
:'start_date' => :'start_date',
|
97
|
+
:'tenure' => :'tenure',
|
98
|
+
:'work_anniversary' => :'work_anniversary',
|
99
|
+
:'employment_type' => :'employment_type',
|
100
|
+
:'employment_status' => :'employment_status',
|
101
|
+
:'termination_date' => :'termination_date',
|
102
|
+
:'company_name' => :'company_name',
|
103
|
+
:'home_country_location' => :'home_country_location',
|
104
|
+
:'work_country_location' => :'work_country_location'
|
69
105
|
}
|
70
106
|
end
|
71
107
|
|
@@ -82,17 +118,29 @@ module StackOneHrisClient
|
|
82
118
|
:'last_name' => :'String',
|
83
119
|
:'name' => :'String',
|
84
120
|
:'display_name' => :'String',
|
121
|
+
:'gender' => :'String',
|
122
|
+
:'ethnicity' => :'String',
|
123
|
+
:'date_of_birth' => :'Time',
|
124
|
+
:'birthday' => :'Time',
|
125
|
+
:'marital_status' => :'String',
|
85
126
|
:'avatar_url' => :'String',
|
86
127
|
:'personal_email' => :'String',
|
87
128
|
:'personal_phone_number' => :'String',
|
88
|
-
:'gender' => :'String',
|
89
129
|
:'work_email' => :'String',
|
90
130
|
:'work_phone_number' => :'String',
|
91
|
-
:'
|
131
|
+
:'job_title' => :'String',
|
92
132
|
:'department' => :'String',
|
93
133
|
:'manager_id' => :'String',
|
94
|
-
:'
|
95
|
-
:'start_date' => :'Time'
|
134
|
+
:'hire_date' => :'Time',
|
135
|
+
:'start_date' => :'Time',
|
136
|
+
:'tenure' => :'Float',
|
137
|
+
:'work_anniversary' => :'Time',
|
138
|
+
:'employment_type' => :'String',
|
139
|
+
:'employment_status' => :'String',
|
140
|
+
:'termination_date' => :'Time',
|
141
|
+
:'company_name' => :'String',
|
142
|
+
:'home_country_location' => :'String',
|
143
|
+
:'work_country_location' => :'String'
|
96
144
|
}
|
97
145
|
end
|
98
146
|
|
@@ -106,13 +154,13 @@ module StackOneHrisClient
|
|
106
154
|
# @param [Hash] attributes Model attributes in the form of hash
|
107
155
|
def initialize(attributes = {})
|
108
156
|
if (!attributes.is_a?(Hash))
|
109
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
157
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `StackOneHRIS::Employee` initialize method"
|
110
158
|
end
|
111
159
|
|
112
160
|
# check to see if the attribute exists and convert string to symbol for hash key
|
113
161
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
114
162
|
if (!self.class.attribute_map.key?(k.to_sym))
|
115
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
163
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `StackOneHRIS::Employee`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
116
164
|
end
|
117
165
|
h[k.to_sym] = v
|
118
166
|
}
|
@@ -137,6 +185,26 @@ module StackOneHrisClient
|
|
137
185
|
self.display_name = attributes[:'display_name']
|
138
186
|
end
|
139
187
|
|
188
|
+
if attributes.key?(:'gender')
|
189
|
+
self.gender = attributes[:'gender']
|
190
|
+
end
|
191
|
+
|
192
|
+
if attributes.key?(:'ethnicity')
|
193
|
+
self.ethnicity = attributes[:'ethnicity']
|
194
|
+
end
|
195
|
+
|
196
|
+
if attributes.key?(:'date_of_birth')
|
197
|
+
self.date_of_birth = attributes[:'date_of_birth']
|
198
|
+
end
|
199
|
+
|
200
|
+
if attributes.key?(:'birthday')
|
201
|
+
self.birthday = attributes[:'birthday']
|
202
|
+
end
|
203
|
+
|
204
|
+
if attributes.key?(:'marital_status')
|
205
|
+
self.marital_status = attributes[:'marital_status']
|
206
|
+
end
|
207
|
+
|
140
208
|
if attributes.key?(:'avatar_url')
|
141
209
|
self.avatar_url = attributes[:'avatar_url']
|
142
210
|
end
|
@@ -149,10 +217,6 @@ module StackOneHrisClient
|
|
149
217
|
self.personal_phone_number = attributes[:'personal_phone_number']
|
150
218
|
end
|
151
219
|
|
152
|
-
if attributes.key?(:'gender')
|
153
|
-
self.gender = attributes[:'gender']
|
154
|
-
end
|
155
|
-
|
156
220
|
if attributes.key?(:'work_email')
|
157
221
|
self.work_email = attributes[:'work_email']
|
158
222
|
end
|
@@ -161,8 +225,8 @@ module StackOneHrisClient
|
|
161
225
|
self.work_phone_number = attributes[:'work_phone_number']
|
162
226
|
end
|
163
227
|
|
164
|
-
if attributes.key?(:'
|
165
|
-
self.
|
228
|
+
if attributes.key?(:'job_title')
|
229
|
+
self.job_title = attributes[:'job_title']
|
166
230
|
end
|
167
231
|
|
168
232
|
if attributes.key?(:'department')
|
@@ -173,13 +237,45 @@ module StackOneHrisClient
|
|
173
237
|
self.manager_id = attributes[:'manager_id']
|
174
238
|
end
|
175
239
|
|
176
|
-
if attributes.key?(:'
|
177
|
-
self.
|
240
|
+
if attributes.key?(:'hire_date')
|
241
|
+
self.hire_date = attributes[:'hire_date']
|
178
242
|
end
|
179
243
|
|
180
244
|
if attributes.key?(:'start_date')
|
181
245
|
self.start_date = attributes[:'start_date']
|
182
246
|
end
|
247
|
+
|
248
|
+
if attributes.key?(:'tenure')
|
249
|
+
self.tenure = attributes[:'tenure']
|
250
|
+
end
|
251
|
+
|
252
|
+
if attributes.key?(:'work_anniversary')
|
253
|
+
self.work_anniversary = attributes[:'work_anniversary']
|
254
|
+
end
|
255
|
+
|
256
|
+
if attributes.key?(:'employment_type')
|
257
|
+
self.employment_type = attributes[:'employment_type']
|
258
|
+
end
|
259
|
+
|
260
|
+
if attributes.key?(:'employment_status')
|
261
|
+
self.employment_status = attributes[:'employment_status']
|
262
|
+
end
|
263
|
+
|
264
|
+
if attributes.key?(:'termination_date')
|
265
|
+
self.termination_date = attributes[:'termination_date']
|
266
|
+
end
|
267
|
+
|
268
|
+
if attributes.key?(:'company_name')
|
269
|
+
self.company_name = attributes[:'company_name']
|
270
|
+
end
|
271
|
+
|
272
|
+
if attributes.key?(:'home_country_location')
|
273
|
+
self.home_country_location = attributes[:'home_country_location']
|
274
|
+
end
|
275
|
+
|
276
|
+
if attributes.key?(:'work_country_location')
|
277
|
+
self.work_country_location = attributes[:'work_country_location']
|
278
|
+
end
|
183
279
|
end
|
184
280
|
|
185
281
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -206,18 +302,14 @@ module StackOneHrisClient
|
|
206
302
|
invalid_properties.push('invalid value for "display_name", display_name cannot be nil.')
|
207
303
|
end
|
208
304
|
|
209
|
-
if @
|
210
|
-
invalid_properties.push('invalid value for "
|
305
|
+
if @gender.nil?
|
306
|
+
invalid_properties.push('invalid value for "gender", gender cannot be nil.')
|
211
307
|
end
|
212
308
|
|
213
309
|
if @personal_phone_number.nil?
|
214
310
|
invalid_properties.push('invalid value for "personal_phone_number", personal_phone_number cannot be nil.')
|
215
311
|
end
|
216
312
|
|
217
|
-
if @gender.nil?
|
218
|
-
invalid_properties.push('invalid value for "gender", gender cannot be nil.')
|
219
|
-
end
|
220
|
-
|
221
313
|
if @work_email.nil?
|
222
314
|
invalid_properties.push('invalid value for "work_email", work_email cannot be nil.')
|
223
315
|
end
|
@@ -226,26 +318,10 @@ module StackOneHrisClient
|
|
226
318
|
invalid_properties.push('invalid value for "work_phone_number", work_phone_number cannot be nil.')
|
227
319
|
end
|
228
320
|
|
229
|
-
if @title.nil?
|
230
|
-
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
231
|
-
end
|
232
|
-
|
233
321
|
if @department.nil?
|
234
322
|
invalid_properties.push('invalid value for "department", department cannot be nil.')
|
235
323
|
end
|
236
324
|
|
237
|
-
if @manager_id.nil?
|
238
|
-
invalid_properties.push('invalid value for "manager_id", manager_id cannot be nil.')
|
239
|
-
end
|
240
|
-
|
241
|
-
if @birth_date.nil?
|
242
|
-
invalid_properties.push('invalid value for "birth_date", birth_date cannot be nil.')
|
243
|
-
end
|
244
|
-
|
245
|
-
if @start_date.nil?
|
246
|
-
invalid_properties.push('invalid value for "start_date", start_date cannot be nil.')
|
247
|
-
end
|
248
|
-
|
249
325
|
invalid_properties
|
250
326
|
end
|
251
327
|
|
@@ -257,16 +333,11 @@ module StackOneHrisClient
|
|
257
333
|
return false if @last_name.nil?
|
258
334
|
return false if @name.nil?
|
259
335
|
return false if @display_name.nil?
|
260
|
-
return false if @personal_email.nil?
|
261
|
-
return false if @personal_phone_number.nil?
|
262
336
|
return false if @gender.nil?
|
337
|
+
return false if @personal_phone_number.nil?
|
263
338
|
return false if @work_email.nil?
|
264
339
|
return false if @work_phone_number.nil?
|
265
|
-
return false if @title.nil?
|
266
340
|
return false if @department.nil?
|
267
|
-
return false if @manager_id.nil?
|
268
|
-
return false if @birth_date.nil?
|
269
|
-
return false if @start_date.nil?
|
270
341
|
true
|
271
342
|
end
|
272
343
|
|
@@ -280,17 +351,29 @@ module StackOneHrisClient
|
|
280
351
|
last_name == o.last_name &&
|
281
352
|
name == o.name &&
|
282
353
|
display_name == o.display_name &&
|
354
|
+
gender == o.gender &&
|
355
|
+
ethnicity == o.ethnicity &&
|
356
|
+
date_of_birth == o.date_of_birth &&
|
357
|
+
birthday == o.birthday &&
|
358
|
+
marital_status == o.marital_status &&
|
283
359
|
avatar_url == o.avatar_url &&
|
284
360
|
personal_email == o.personal_email &&
|
285
361
|
personal_phone_number == o.personal_phone_number &&
|
286
|
-
gender == o.gender &&
|
287
362
|
work_email == o.work_email &&
|
288
363
|
work_phone_number == o.work_phone_number &&
|
289
|
-
|
364
|
+
job_title == o.job_title &&
|
290
365
|
department == o.department &&
|
291
366
|
manager_id == o.manager_id &&
|
292
|
-
|
293
|
-
start_date == o.start_date
|
367
|
+
hire_date == o.hire_date &&
|
368
|
+
start_date == o.start_date &&
|
369
|
+
tenure == o.tenure &&
|
370
|
+
work_anniversary == o.work_anniversary &&
|
371
|
+
employment_type == o.employment_type &&
|
372
|
+
employment_status == o.employment_status &&
|
373
|
+
termination_date == o.termination_date &&
|
374
|
+
company_name == o.company_name &&
|
375
|
+
home_country_location == o.home_country_location &&
|
376
|
+
work_country_location == o.work_country_location
|
294
377
|
end
|
295
378
|
|
296
379
|
# @see the `==` method
|
@@ -302,7 +385,7 @@ module StackOneHrisClient
|
|
302
385
|
# Calculates hash code according to all attributes.
|
303
386
|
# @return [Integer] Hash code
|
304
387
|
def hash
|
305
|
-
[id, first_name, last_name, name, display_name, avatar_url, personal_email, personal_phone_number,
|
388
|
+
[id, first_name, last_name, name, display_name, gender, ethnicity, date_of_birth, birthday, marital_status, 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_country_location, work_country_location].hash
|
306
389
|
end
|
307
390
|
|
308
391
|
# Builds the object from hash
|
@@ -373,7 +456,7 @@ module StackOneHrisClient
|
|
373
456
|
end
|
374
457
|
else # model
|
375
458
|
# models (e.g. Pet) or oneOf
|
376
|
-
klass =
|
459
|
+
klass = StackOneHRIS.const_get(type)
|
377
460
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
378
461
|
end
|
379
462
|
end
|
@@ -423,5 +506,7 @@ module StackOneHrisClient
|
|
423
506
|
value
|
424
507
|
end
|
425
508
|
end
|
509
|
+
|
426
510
|
end
|
511
|
+
|
427
512
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
#StackOne Unified API
|
2
|
+
#StackOne Unified API - HRIS
|
3
3
|
|
4
|
-
#The documentation for the StackOne Unified API
|
4
|
+
#The documentation for the StackOne Unified API - HRIS
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.4.0
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 6.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module StackOneHRIS
|
17
17
|
class EmployeeResult
|
18
18
|
attr_accessor :data
|
19
19
|
|
@@ -50,13 +50,13 @@ module StackOneHrisClient
|
|
50
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
51
51
|
def initialize(attributes = {})
|
52
52
|
if (!attributes.is_a?(Hash))
|
53
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `StackOneHRIS::EmployeeResult` initialize method"
|
54
54
|
end
|
55
55
|
|
56
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
57
57
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
58
|
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `StackOneHRIS::EmployeeResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
60
|
end
|
61
61
|
h[k.to_sym] = v
|
62
62
|
}
|
@@ -177,7 +177,7 @@ module StackOneHrisClient
|
|
177
177
|
end
|
178
178
|
else # model
|
179
179
|
# models (e.g. Pet) or oneOf
|
180
|
-
klass =
|
180
|
+
klass = StackOneHRIS.const_get(type)
|
181
181
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
182
182
|
end
|
183
183
|
end
|
@@ -227,5 +227,7 @@ module StackOneHrisClient
|
|
227
227
|
value
|
228
228
|
end
|
229
229
|
end
|
230
|
+
|
230
231
|
end
|
232
|
+
|
231
233
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
|
-
#StackOne Unified API
|
2
|
+
#StackOne Unified API - HRIS
|
3
3
|
|
4
|
-
#The documentation for the StackOne Unified API
|
4
|
+
#The documentation for the StackOne Unified API - HRIS
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.0
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 6.4.0
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 6.4.0
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module StackOneHRIS
|
17
17
|
class EmployeesPaginated
|
18
18
|
attr_accessor :next_page
|
19
19
|
|
@@ -54,13 +54,13 @@ module StackOneHrisClient
|
|
54
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
55
55
|
def initialize(attributes = {})
|
56
56
|
if (!attributes.is_a?(Hash))
|
57
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `StackOneHRIS::EmployeesPaginated` initialize method"
|
58
58
|
end
|
59
59
|
|
60
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
61
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
62
|
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `StackOneHRIS::EmployeesPaginated`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
64
|
end
|
65
65
|
h[k.to_sym] = v
|
66
66
|
}
|
@@ -193,7 +193,7 @@ module StackOneHrisClient
|
|
193
193
|
end
|
194
194
|
else # model
|
195
195
|
# models (e.g. Pet) or oneOf
|
196
|
-
klass =
|
196
|
+
klass = StackOneHRIS.const_get(type)
|
197
197
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
198
198
|
end
|
199
199
|
end
|
@@ -243,5 +243,7 @@ module StackOneHrisClient
|
|
243
243
|
value
|
244
244
|
end
|
245
245
|
end
|
246
|
+
|
246
247
|
end
|
248
|
+
|
247
249
|
end
|