stackone_hris_client 1.2.0 → 1.2.2
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/Gemfile.lock +2 -2
- data/README.md +4 -4
- data/docs/Employee.md +9 -1
- data/gem-config.yml +1 -1
- data/lib/stackone_hris_client/api/accounts_api.rb +1 -1
- data/lib/stackone_hris_client/api/companies_api.rb +1 -1
- data/lib/stackone_hris_client/api/connect_sessions_api.rb +2 -2
- data/lib/stackone_hris_client/api/employees_api.rb +1 -1
- data/lib/stackone_hris_client/api/employments_api.rb +1 -1
- data/lib/stackone_hris_client/api/locations_api.rb +1 -1
- 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 +6 -1
- data/lib/stackone_hris_client/models/account.rb +1 -3
- data/lib/stackone_hris_client/models/companies_paginated.rb +1 -3
- data/lib/stackone_hris_client/models/company.rb +1 -3
- data/lib/stackone_hris_client/models/company_result.rb +1 -3
- data/lib/stackone_hris_client/models/connect_session.rb +1 -3
- data/lib/stackone_hris_client/models/connect_session_authenticate.rb +1 -3
- data/lib/stackone_hris_client/models/connect_session_create.rb +1 -3
- data/lib/stackone_hris_client/models/connect_session_token.rb +1 -3
- data/lib/stackone_hris_client/models/employee.rb +125 -7
- data/lib/stackone_hris_client/models/employee_result.rb +1 -3
- data/lib/stackone_hris_client/models/employees_paginated.rb +1 -3
- data/lib/stackone_hris_client/models/employment.rb +59 -3
- data/lib/stackone_hris_client/models/employment_result.rb +1 -3
- data/lib/stackone_hris_client/models/employments_paginated.rb +1 -3
- data/lib/stackone_hris_client/models/location.rb +35 -3
- data/lib/stackone_hris_client/models/location_result.rb +1 -3
- data/lib/stackone_hris_client/models/locations_paginated.rb +1 -3
- data/lib/stackone_hris_client/version.rb +2 -2
- data/lib/stackone_hris_client.rb +2 -2
- data/spec/api/accounts_api_spec.rb +3 -3
- data/spec/api/connect_sessions_api_spec.rb +3 -3
- data/spec/api/employees_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_spec.rb +4 -4
- data/spec/models/connect_session_authenticate_spec.rb +4 -4
- data/spec/models/connect_session_create_spec.rb +4 -4
- data/spec/models/connect_session_spec.rb +4 -4
- data/spec/models/connect_session_token_spec.rb +4 -4
- data/spec/models/employee_result_spec.rb +4 -4
- data/spec/models/employee_spec.rb +4 -4
- data/spec/models/employees_paginated_spec.rb +4 -4
- data/spec/spec_helper.rb +1 -1
- data/stackone_hris_client.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b241dfbdc84f9582c191a12537b373ba49a14bdb881696ba1c7a64e1f74fb44c
|
|
4
|
+
data.tar.gz: 4ad67d1f9c45f73bfe9bf01719756dfcf2a4a4c6e6415989598e07039b3c52db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d06a74f8d0f275a95872fc8aad9202f98ad2a0bf26419f6bf1ece43e3df44b9f14e1ed5de9861170d363b25003fae1701e16e7d0427f2a47f1fb35eeecdb7a67
|
|
7
|
+
data.tar.gz: ca8692bc6cd8bd58e0e0891d6c126f19e538b5d596bacca4d14e2a20f2a438ecf8be52b6dbbb4d737f075b93aa5873fdadfc66a903424b305f3ade27e889f5d8
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
stackone_hris_client (1.
|
|
4
|
+
stackone_hris_client (1.2.2)
|
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -52,7 +52,7 @@ GEM
|
|
|
52
52
|
rubocop-ast (>= 1.26.0, < 2.0)
|
|
53
53
|
ruby-progressbar (~> 1.7)
|
|
54
54
|
unicode-display_width (>= 2.4.0, < 3.0)
|
|
55
|
-
rubocop-ast (1.
|
|
55
|
+
rubocop-ast (1.28.0)
|
|
56
56
|
parser (>= 3.2.1.0)
|
|
57
57
|
ruby-progressbar (1.13.0)
|
|
58
58
|
typhoeus (1.4.0)
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ The documentation for the StackOne Unified API - HRIS
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: 1.0.0
|
|
10
|
-
- Package version: 1.2.
|
|
10
|
+
- Package version: 1.2.2
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
@@ -23,16 +23,16 @@ gem build stackone_hris_client.gemspec
|
|
|
23
23
|
Then either install the gem locally:
|
|
24
24
|
|
|
25
25
|
```shell
|
|
26
|
-
gem install ./stackone_hris_client-1.2.
|
|
26
|
+
gem install ./stackone_hris_client-1.2.2.gem
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
(for development, run `gem install --dev ./stackone_hris_client-1.2.
|
|
29
|
+
(for development, run `gem install --dev ./stackone_hris_client-1.2.2.gem` to install the development dependencies)
|
|
30
30
|
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
32
32
|
|
|
33
33
|
Finally add this to the Gemfile:
|
|
34
34
|
|
|
35
|
-
gem 'stackone_hris_client', '~> 1.2.
|
|
35
|
+
gem 'stackone_hris_client', '~> 1.2.2'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
data/docs/Employee.md
CHANGED
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
| **company_name** | **String** | | [optional] |
|
|
33
33
|
| **home_country_location** | **String** | | [optional] |
|
|
34
34
|
| **work_country_location** | **String** | | [optional] |
|
|
35
|
+
| **home_location** | **String** | | [optional] |
|
|
36
|
+
| **work_location** | **String** | | [optional] |
|
|
37
|
+
| **company** | **String** | | [optional] |
|
|
38
|
+
| **employments** | **Array<String>** | | [optional] |
|
|
35
39
|
|
|
36
40
|
## Example
|
|
37
41
|
|
|
@@ -66,7 +70,11 @@ instance = StackOneHRIS::Employee.new(
|
|
|
66
70
|
termination_date: null,
|
|
67
71
|
company_name: null,
|
|
68
72
|
home_country_location: null,
|
|
69
|
-
work_country_location: null
|
|
73
|
+
work_country_location: null,
|
|
74
|
+
home_location: null,
|
|
75
|
+
work_location: null,
|
|
76
|
+
company: null,
|
|
77
|
+
employments: null
|
|
70
78
|
)
|
|
71
79
|
```
|
|
72
80
|
|
data/gem-config.yml
CHANGED
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -53,7 +53,7 @@ module StackOneHRIS
|
|
|
53
53
|
# HTTP header 'Content-Type'
|
|
54
54
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
55
55
|
if !content_type.nil?
|
|
56
|
-
|
|
56
|
+
header_params['Content-Type'] = content_type
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
# form parameters
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -72,6 +72,11 @@ module StackOneHRIS
|
|
|
72
72
|
# @return [Proc]
|
|
73
73
|
attr_accessor :access_token_getter
|
|
74
74
|
|
|
75
|
+
# Set this to return data as binary instead of downloading a temp file. When enabled (set to true)
|
|
76
|
+
# HTTP responses with return type `File` will be returned as a stream of binary data.
|
|
77
|
+
# Default to false.
|
|
78
|
+
attr_accessor :return_binary_data
|
|
79
|
+
|
|
75
80
|
# Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
|
|
76
81
|
# details will be logged with `logger.debug` (see the `logger` attribute).
|
|
77
82
|
# Default to false.
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -316,7 +316,5 @@ module StackOneHRIS
|
|
|
316
316
|
value
|
|
317
317
|
end
|
|
318
318
|
end
|
|
319
|
-
|
|
320
319
|
end
|
|
321
|
-
|
|
322
320
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -243,7 +243,5 @@ module StackOneHRIS
|
|
|
243
243
|
value
|
|
244
244
|
end
|
|
245
245
|
end
|
|
246
|
-
|
|
247
246
|
end
|
|
248
|
-
|
|
249
247
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -231,7 +231,5 @@ module StackOneHRIS
|
|
|
231
231
|
value
|
|
232
232
|
end
|
|
233
233
|
end
|
|
234
|
-
|
|
235
234
|
end
|
|
236
|
-
|
|
237
235
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -227,7 +227,5 @@ module StackOneHRIS
|
|
|
227
227
|
value
|
|
228
228
|
end
|
|
229
229
|
end
|
|
230
|
-
|
|
231
230
|
end
|
|
232
|
-
|
|
233
231
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -344,7 +344,5 @@ module StackOneHRIS
|
|
|
344
344
|
value
|
|
345
345
|
end
|
|
346
346
|
end
|
|
347
|
-
|
|
348
347
|
end
|
|
349
|
-
|
|
350
348
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -219,7 +219,5 @@ module StackOneHRIS
|
|
|
219
219
|
value
|
|
220
220
|
end
|
|
221
221
|
end
|
|
222
|
-
|
|
223
222
|
end
|
|
224
|
-
|
|
225
223
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -298,7 +298,5 @@ module StackOneHRIS
|
|
|
298
298
|
value
|
|
299
299
|
end
|
|
300
300
|
end
|
|
301
|
-
|
|
302
301
|
end
|
|
303
|
-
|
|
304
302
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -358,7 +358,5 @@ module StackOneHRIS
|
|
|
358
358
|
value
|
|
359
359
|
end
|
|
360
360
|
end
|
|
361
|
-
|
|
362
361
|
end
|
|
363
|
-
|
|
364
362
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -71,6 +71,36 @@ module StackOneHRIS
|
|
|
71
71
|
|
|
72
72
|
attr_accessor :work_country_location
|
|
73
73
|
|
|
74
|
+
attr_accessor :home_location
|
|
75
|
+
|
|
76
|
+
attr_accessor :work_location
|
|
77
|
+
|
|
78
|
+
attr_accessor :company
|
|
79
|
+
|
|
80
|
+
attr_accessor :employments
|
|
81
|
+
|
|
82
|
+
class EnumAttributeValidator
|
|
83
|
+
attr_reader :datatype
|
|
84
|
+
attr_reader :allowable_values
|
|
85
|
+
|
|
86
|
+
def initialize(datatype, allowable_values)
|
|
87
|
+
@allowable_values = allowable_values.map do |value|
|
|
88
|
+
case datatype.to_s
|
|
89
|
+
when /Integer/i
|
|
90
|
+
value.to_i
|
|
91
|
+
when /Float/i
|
|
92
|
+
value.to_f
|
|
93
|
+
else
|
|
94
|
+
value
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
def valid?(value)
|
|
100
|
+
!value || allowable_values.include?(value)
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
74
104
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
75
105
|
def self.attribute_map
|
|
76
106
|
{
|
|
@@ -101,7 +131,11 @@ module StackOneHRIS
|
|
|
101
131
|
:'termination_date' => :'termination_date',
|
|
102
132
|
:'company_name' => :'company_name',
|
|
103
133
|
:'home_country_location' => :'home_country_location',
|
|
104
|
-
:'work_country_location' => :'work_country_location'
|
|
134
|
+
:'work_country_location' => :'work_country_location',
|
|
135
|
+
:'home_location' => :'home_location',
|
|
136
|
+
:'work_location' => :'work_location',
|
|
137
|
+
:'company' => :'company',
|
|
138
|
+
:'employments' => :'employments'
|
|
105
139
|
}
|
|
106
140
|
end
|
|
107
141
|
|
|
@@ -140,7 +174,11 @@ module StackOneHRIS
|
|
|
140
174
|
:'termination_date' => :'Time',
|
|
141
175
|
:'company_name' => :'String',
|
|
142
176
|
:'home_country_location' => :'String',
|
|
143
|
-
:'work_country_location' => :'String'
|
|
177
|
+
:'work_country_location' => :'String',
|
|
178
|
+
:'home_location' => :'String',
|
|
179
|
+
:'work_location' => :'String',
|
|
180
|
+
:'company' => :'String',
|
|
181
|
+
:'employments' => :'Array<String>'
|
|
144
182
|
}
|
|
145
183
|
end
|
|
146
184
|
|
|
@@ -276,6 +314,24 @@ module StackOneHRIS
|
|
|
276
314
|
if attributes.key?(:'work_country_location')
|
|
277
315
|
self.work_country_location = attributes[:'work_country_location']
|
|
278
316
|
end
|
|
317
|
+
|
|
318
|
+
if attributes.key?(:'home_location')
|
|
319
|
+
self.home_location = attributes[:'home_location']
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
if attributes.key?(:'work_location')
|
|
323
|
+
self.work_location = attributes[:'work_location']
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
if attributes.key?(:'company')
|
|
327
|
+
self.company = attributes[:'company']
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
if attributes.key?(:'employments')
|
|
331
|
+
if (value = attributes[:'employments']).is_a?(Array)
|
|
332
|
+
self.employments = value
|
|
333
|
+
end
|
|
334
|
+
end
|
|
279
335
|
end
|
|
280
336
|
|
|
281
337
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -334,13 +390,73 @@ module StackOneHRIS
|
|
|
334
390
|
return false if @name.nil?
|
|
335
391
|
return false if @display_name.nil?
|
|
336
392
|
return false if @gender.nil?
|
|
393
|
+
gender_validator = EnumAttributeValidator.new('String', ["male", "female", "non_binary", "other", "not_disclosed", "unmapped_value"])
|
|
394
|
+
return false unless gender_validator.valid?(@gender)
|
|
395
|
+
ethnicity_validator = EnumAttributeValidator.new('String', ["white", "black_or_african_american", "asian", "hispanic_or_latino", "american_indian_or_alaska_native", "native_hawaiian_or_pacific_islander", "two_or_more_races", "not_disclosed", "unmapped_value"])
|
|
396
|
+
return false unless ethnicity_validator.valid?(@ethnicity)
|
|
397
|
+
marital_status_validator = EnumAttributeValidator.new('String', ["single", "married", "divorced", "widowed", "domestic_partnership", "separated", "other", "unmapped_value"])
|
|
398
|
+
return false unless marital_status_validator.valid?(@marital_status)
|
|
337
399
|
return false if @personal_phone_number.nil?
|
|
338
400
|
return false if @work_email.nil?
|
|
339
401
|
return false if @work_phone_number.nil?
|
|
340
402
|
return false if @department.nil?
|
|
403
|
+
employment_type_validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "intern", "freelance", "terminated", "unmapped_value"])
|
|
404
|
+
return false unless employment_type_validator.valid?(@employment_type)
|
|
405
|
+
employment_status_validator = EnumAttributeValidator.new('String', ["active", "pending", "terminated", "unmapped_value"])
|
|
406
|
+
return false unless employment_status_validator.valid?(@employment_status)
|
|
341
407
|
true
|
|
342
408
|
end
|
|
343
409
|
|
|
410
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
411
|
+
# @param [Object] gender Object to be assigned
|
|
412
|
+
def gender=(gender)
|
|
413
|
+
validator = EnumAttributeValidator.new('String', ["male", "female", "non_binary", "other", "not_disclosed", "unmapped_value"])
|
|
414
|
+
unless validator.valid?(gender)
|
|
415
|
+
fail ArgumentError, "invalid value for \"gender\", must be one of #{validator.allowable_values}."
|
|
416
|
+
end
|
|
417
|
+
@gender = gender
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
421
|
+
# @param [Object] ethnicity Object to be assigned
|
|
422
|
+
def ethnicity=(ethnicity)
|
|
423
|
+
validator = EnumAttributeValidator.new('String', ["white", "black_or_african_american", "asian", "hispanic_or_latino", "american_indian_or_alaska_native", "native_hawaiian_or_pacific_islander", "two_or_more_races", "not_disclosed", "unmapped_value"])
|
|
424
|
+
unless validator.valid?(ethnicity)
|
|
425
|
+
fail ArgumentError, "invalid value for \"ethnicity\", must be one of #{validator.allowable_values}."
|
|
426
|
+
end
|
|
427
|
+
@ethnicity = ethnicity
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
431
|
+
# @param [Object] marital_status Object to be assigned
|
|
432
|
+
def marital_status=(marital_status)
|
|
433
|
+
validator = EnumAttributeValidator.new('String', ["single", "married", "divorced", "widowed", "domestic_partnership", "separated", "other", "unmapped_value"])
|
|
434
|
+
unless validator.valid?(marital_status)
|
|
435
|
+
fail ArgumentError, "invalid value for \"marital_status\", must be one of #{validator.allowable_values}."
|
|
436
|
+
end
|
|
437
|
+
@marital_status = marital_status
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
441
|
+
# @param [Object] employment_type Object to be assigned
|
|
442
|
+
def employment_type=(employment_type)
|
|
443
|
+
validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "intern", "freelance", "terminated", "unmapped_value"])
|
|
444
|
+
unless validator.valid?(employment_type)
|
|
445
|
+
fail ArgumentError, "invalid value for \"employment_type\", must be one of #{validator.allowable_values}."
|
|
446
|
+
end
|
|
447
|
+
@employment_type = employment_type
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
451
|
+
# @param [Object] employment_status Object to be assigned
|
|
452
|
+
def employment_status=(employment_status)
|
|
453
|
+
validator = EnumAttributeValidator.new('String', ["active", "pending", "terminated", "unmapped_value"])
|
|
454
|
+
unless validator.valid?(employment_status)
|
|
455
|
+
fail ArgumentError, "invalid value for \"employment_status\", must be one of #{validator.allowable_values}."
|
|
456
|
+
end
|
|
457
|
+
@employment_status = employment_status
|
|
458
|
+
end
|
|
459
|
+
|
|
344
460
|
# Checks equality by comparing each attribute.
|
|
345
461
|
# @param [Object] Object to be compared
|
|
346
462
|
def ==(o)
|
|
@@ -373,7 +489,11 @@ module StackOneHRIS
|
|
|
373
489
|
termination_date == o.termination_date &&
|
|
374
490
|
company_name == o.company_name &&
|
|
375
491
|
home_country_location == o.home_country_location &&
|
|
376
|
-
work_country_location == o.work_country_location
|
|
492
|
+
work_country_location == o.work_country_location &&
|
|
493
|
+
home_location == o.home_location &&
|
|
494
|
+
work_location == o.work_location &&
|
|
495
|
+
company == o.company &&
|
|
496
|
+
employments == o.employments
|
|
377
497
|
end
|
|
378
498
|
|
|
379
499
|
# @see the `==` method
|
|
@@ -385,7 +505,7 @@ module StackOneHRIS
|
|
|
385
505
|
# Calculates hash code according to all attributes.
|
|
386
506
|
# @return [Integer] Hash code
|
|
387
507
|
def hash
|
|
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
|
|
508
|
+
[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, home_location, work_location, company, employments].hash
|
|
389
509
|
end
|
|
390
510
|
|
|
391
511
|
# Builds the object from hash
|
|
@@ -506,7 +626,5 @@ module StackOneHRIS
|
|
|
506
626
|
value
|
|
507
627
|
end
|
|
508
628
|
end
|
|
509
|
-
|
|
510
629
|
end
|
|
511
|
-
|
|
512
630
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -227,7 +227,5 @@ module StackOneHRIS
|
|
|
227
227
|
value
|
|
228
228
|
end
|
|
229
229
|
end
|
|
230
|
-
|
|
231
230
|
end
|
|
232
|
-
|
|
233
231
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -243,7 +243,5 @@ module StackOneHRIS
|
|
|
243
243
|
value
|
|
244
244
|
end
|
|
245
245
|
end
|
|
246
|
-
|
|
247
246
|
end
|
|
248
|
-
|
|
249
247
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -33,6 +33,28 @@ module StackOneHRIS
|
|
|
33
33
|
|
|
34
34
|
attr_accessor :employment_type
|
|
35
35
|
|
|
36
|
+
class EnumAttributeValidator
|
|
37
|
+
attr_reader :datatype
|
|
38
|
+
attr_reader :allowable_values
|
|
39
|
+
|
|
40
|
+
def initialize(datatype, allowable_values)
|
|
41
|
+
@allowable_values = allowable_values.map do |value|
|
|
42
|
+
case datatype.to_s
|
|
43
|
+
when /Integer/i
|
|
44
|
+
value.to_i
|
|
45
|
+
when /Float/i
|
|
46
|
+
value.to_f
|
|
47
|
+
else
|
|
48
|
+
value
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def valid?(value)
|
|
54
|
+
!value || allowable_values.include?(value)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
36
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
59
|
def self.attribute_map
|
|
38
60
|
{
|
|
@@ -141,9 +163,45 @@ module StackOneHRIS
|
|
|
141
163
|
# @return true if the model is valid
|
|
142
164
|
def valid?
|
|
143
165
|
return false if @employee_id.nil?
|
|
166
|
+
pay_period_validator = EnumAttributeValidator.new('String', ["hour", "day", "week", "every_two_weeks", "month", "quarter", "every_six_months", "year", "unmapped_value"])
|
|
167
|
+
return false unless pay_period_validator.valid?(@pay_period)
|
|
168
|
+
pay_frequency_validator = EnumAttributeValidator.new('String', ["hourly", "weekly", "bi_weekly", "monthly", "quarterly", "semi_annually", "yearly", "thirteen_monthly", "pro_rata", "unmapped_value"])
|
|
169
|
+
return false unless pay_frequency_validator.valid?(@pay_frequency)
|
|
170
|
+
employment_type_validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "intern", "freelance", "terminated", "unmapped_value"])
|
|
171
|
+
return false unless employment_type_validator.valid?(@employment_type)
|
|
144
172
|
true
|
|
145
173
|
end
|
|
146
174
|
|
|
175
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
176
|
+
# @param [Object] pay_period Object to be assigned
|
|
177
|
+
def pay_period=(pay_period)
|
|
178
|
+
validator = EnumAttributeValidator.new('String', ["hour", "day", "week", "every_two_weeks", "month", "quarter", "every_six_months", "year", "unmapped_value"])
|
|
179
|
+
unless validator.valid?(pay_period)
|
|
180
|
+
fail ArgumentError, "invalid value for \"pay_period\", must be one of #{validator.allowable_values}."
|
|
181
|
+
end
|
|
182
|
+
@pay_period = pay_period
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
186
|
+
# @param [Object] pay_frequency Object to be assigned
|
|
187
|
+
def pay_frequency=(pay_frequency)
|
|
188
|
+
validator = EnumAttributeValidator.new('String', ["hourly", "weekly", "bi_weekly", "monthly", "quarterly", "semi_annually", "yearly", "thirteen_monthly", "pro_rata", "unmapped_value"])
|
|
189
|
+
unless validator.valid?(pay_frequency)
|
|
190
|
+
fail ArgumentError, "invalid value for \"pay_frequency\", must be one of #{validator.allowable_values}."
|
|
191
|
+
end
|
|
192
|
+
@pay_frequency = pay_frequency
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
196
|
+
# @param [Object] employment_type Object to be assigned
|
|
197
|
+
def employment_type=(employment_type)
|
|
198
|
+
validator = EnumAttributeValidator.new('String', ["full_time", "part_time", "contractor", "intern", "freelance", "terminated", "unmapped_value"])
|
|
199
|
+
unless validator.valid?(employment_type)
|
|
200
|
+
fail ArgumentError, "invalid value for \"employment_type\", must be one of #{validator.allowable_values}."
|
|
201
|
+
end
|
|
202
|
+
@employment_type = employment_type
|
|
203
|
+
end
|
|
204
|
+
|
|
147
205
|
# Checks equality by comparing each attribute.
|
|
148
206
|
# @param [Object] Object to be compared
|
|
149
207
|
def ==(o)
|
|
@@ -290,7 +348,5 @@ module StackOneHRIS
|
|
|
290
348
|
value
|
|
291
349
|
end
|
|
292
350
|
end
|
|
293
|
-
|
|
294
351
|
end
|
|
295
|
-
|
|
296
352
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -227,7 +227,5 @@ module StackOneHRIS
|
|
|
227
227
|
value
|
|
228
228
|
end
|
|
229
229
|
end
|
|
230
|
-
|
|
231
230
|
end
|
|
232
|
-
|
|
233
231
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -243,7 +243,5 @@ module StackOneHRIS
|
|
|
243
243
|
value
|
|
244
244
|
end
|
|
245
245
|
end
|
|
246
|
-
|
|
247
246
|
end
|
|
248
|
-
|
|
249
247
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -37,6 +37,28 @@ module StackOneHRIS
|
|
|
37
37
|
|
|
38
38
|
attr_accessor :location_type
|
|
39
39
|
|
|
40
|
+
class EnumAttributeValidator
|
|
41
|
+
attr_reader :datatype
|
|
42
|
+
attr_reader :allowable_values
|
|
43
|
+
|
|
44
|
+
def initialize(datatype, allowable_values)
|
|
45
|
+
@allowable_values = allowable_values.map do |value|
|
|
46
|
+
case datatype.to_s
|
|
47
|
+
when /Integer/i
|
|
48
|
+
value.to_i
|
|
49
|
+
when /Float/i
|
|
50
|
+
value.to_f
|
|
51
|
+
else
|
|
52
|
+
value
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def valid?(value)
|
|
58
|
+
!value || allowable_values.include?(value)
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
40
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
63
|
def self.attribute_map
|
|
42
64
|
{
|
|
@@ -157,9 +179,21 @@ module StackOneHRIS
|
|
|
157
179
|
# @return true if the model is valid
|
|
158
180
|
def valid?
|
|
159
181
|
return false if @employee_id.nil?
|
|
182
|
+
location_type_validator = EnumAttributeValidator.new('String', ["home", "work", "unmapped_value"])
|
|
183
|
+
return false unless location_type_validator.valid?(@location_type)
|
|
160
184
|
true
|
|
161
185
|
end
|
|
162
186
|
|
|
187
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
188
|
+
# @param [Object] location_type Object to be assigned
|
|
189
|
+
def location_type=(location_type)
|
|
190
|
+
validator = EnumAttributeValidator.new('String', ["home", "work", "unmapped_value"])
|
|
191
|
+
unless validator.valid?(location_type)
|
|
192
|
+
fail ArgumentError, "invalid value for \"location_type\", must be one of #{validator.allowable_values}."
|
|
193
|
+
end
|
|
194
|
+
@location_type = location_type
|
|
195
|
+
end
|
|
196
|
+
|
|
163
197
|
# Checks equality by comparing each attribute.
|
|
164
198
|
# @param [Object] Object to be compared
|
|
165
199
|
def ==(o)
|
|
@@ -308,7 +342,5 @@ module StackOneHRIS
|
|
|
308
342
|
value
|
|
309
343
|
end
|
|
310
344
|
end
|
|
311
|
-
|
|
312
345
|
end
|
|
313
|
-
|
|
314
346
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -227,7 +227,5 @@ module StackOneHRIS
|
|
|
227
227
|
value
|
|
228
228
|
end
|
|
229
229
|
end
|
|
230
|
-
|
|
231
230
|
end
|
|
232
|
-
|
|
233
231
|
end
|
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -243,7 +243,5 @@ module StackOneHRIS
|
|
|
243
243
|
value
|
|
244
244
|
end
|
|
245
245
|
end
|
|
246
|
-
|
|
247
246
|
end
|
|
248
|
-
|
|
249
247
|
end
|
data/lib/stackone_hris_client.rb
CHANGED
|
@@ -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.5.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -46,7 +46,7 @@ require 'stackone_hris_client/api/locations_api'
|
|
|
46
46
|
module StackOneHRIS
|
|
47
47
|
class << self
|
|
48
48
|
# Customize default settings for the SDK using block.
|
|
49
|
-
#
|
|
49
|
+
# StackOneHRIS.configure do |config|
|
|
50
50
|
# config.api_key_token = "xxx"
|
|
51
51
|
# end
|
|
52
52
|
# If no block given, return the default Configuration object.
|
|
@@ -13,13 +13,13 @@ OpenAPI Generator version: 6.4.0
|
|
|
13
13
|
require 'spec_helper'
|
|
14
14
|
require 'json'
|
|
15
15
|
|
|
16
|
-
# Unit tests for
|
|
16
|
+
# Unit tests for StackOneHRIS::AccountsApi
|
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
18
|
# Please update as you see appropriate
|
|
19
19
|
describe 'AccountsApi' do
|
|
20
20
|
before do
|
|
21
21
|
# run before each test
|
|
22
|
-
@api_instance =
|
|
22
|
+
@api_instance = StackOneHRIS::AccountsApi.new
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
after do
|
|
@@ -28,7 +28,7 @@ describe 'AccountsApi' do
|
|
|
28
28
|
|
|
29
29
|
describe 'test an instance of AccountsApi' do
|
|
30
30
|
it 'should create an instance of AccountsApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(
|
|
31
|
+
expect(@api_instance).to be_instance_of(StackOneHRIS::AccountsApi)
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -13,13 +13,13 @@ OpenAPI Generator version: 6.4.0
|
|
|
13
13
|
require 'spec_helper'
|
|
14
14
|
require 'json'
|
|
15
15
|
|
|
16
|
-
# Unit tests for
|
|
16
|
+
# Unit tests for StackOneHRIS::ConnectSessionsApi
|
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
18
|
# Please update as you see appropriate
|
|
19
19
|
describe 'ConnectSessionsApi' do
|
|
20
20
|
before do
|
|
21
21
|
# run before each test
|
|
22
|
-
@api_instance =
|
|
22
|
+
@api_instance = StackOneHRIS::ConnectSessionsApi.new
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
after do
|
|
@@ -28,7 +28,7 @@ describe 'ConnectSessionsApi' do
|
|
|
28
28
|
|
|
29
29
|
describe 'test an instance of ConnectSessionsApi' do
|
|
30
30
|
it 'should create an instance of ConnectSessionsApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(
|
|
31
|
+
expect(@api_instance).to be_instance_of(StackOneHRIS::ConnectSessionsApi)
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -13,13 +13,13 @@ OpenAPI Generator version: 6.4.0
|
|
|
13
13
|
require 'spec_helper'
|
|
14
14
|
require 'json'
|
|
15
15
|
|
|
16
|
-
# Unit tests for
|
|
16
|
+
# Unit tests for StackOneHRIS::EmployeesApi
|
|
17
17
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
18
|
# Please update as you see appropriate
|
|
19
19
|
describe 'EmployeesApi' do
|
|
20
20
|
before do
|
|
21
21
|
# run before each test
|
|
22
|
-
@api_instance =
|
|
22
|
+
@api_instance = StackOneHRIS::EmployeesApi.new
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
after do
|
|
@@ -28,7 +28,7 @@ describe 'EmployeesApi' do
|
|
|
28
28
|
|
|
29
29
|
describe 'test an instance of EmployeesApi' do
|
|
30
30
|
it 'should create an instance of EmployeesApi' do
|
|
31
|
-
expect(@api_instance).to be_instance_of(
|
|
31
|
+
expect(@api_instance).to be_instance_of(StackOneHRIS::EmployeesApi)
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
data/spec/api_client_spec.rb
CHANGED
data/spec/configuration_spec.rb
CHANGED
data/spec/models/account_spec.rb
CHANGED
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for
|
|
17
|
+
# Unit tests for StackOneHRIS::Account
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe
|
|
21
|
-
let(:instance) {
|
|
20
|
+
describe StackOneHRIS::Account do
|
|
21
|
+
let(:instance) { StackOneHRIS::Account.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of Account' do
|
|
24
24
|
it 'should create an instance of Account' do
|
|
25
|
-
expect(instance).to be_instance_of(
|
|
25
|
+
expect(instance).to be_instance_of(StackOneHRIS::Account)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
describe 'test attribute "id"' do
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for
|
|
17
|
+
# Unit tests for StackOneHRIS::ConnectSessionAuthenticate
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe
|
|
21
|
-
let(:instance) {
|
|
20
|
+
describe StackOneHRIS::ConnectSessionAuthenticate do
|
|
21
|
+
let(:instance) { StackOneHRIS::ConnectSessionAuthenticate.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of ConnectSessionAuthenticate' do
|
|
24
24
|
it 'should create an instance of ConnectSessionAuthenticate' do
|
|
25
|
-
expect(instance).to be_instance_of(
|
|
25
|
+
expect(instance).to be_instance_of(StackOneHRIS::ConnectSessionAuthenticate)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
describe 'test attribute "token"' do
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for
|
|
17
|
+
# Unit tests for StackOneHRIS::ConnectSessionCreate
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe
|
|
21
|
-
let(:instance) {
|
|
20
|
+
describe StackOneHRIS::ConnectSessionCreate do
|
|
21
|
+
let(:instance) { StackOneHRIS::ConnectSessionCreate.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of ConnectSessionCreate' do
|
|
24
24
|
it 'should create an instance of ConnectSessionCreate' do
|
|
25
|
-
expect(instance).to be_instance_of(
|
|
25
|
+
expect(instance).to be_instance_of(StackOneHRIS::ConnectSessionCreate)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
describe 'test attribute "categories"' do
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for
|
|
17
|
+
# Unit tests for StackOneHRIS::ConnectSession
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe
|
|
21
|
-
let(:instance) {
|
|
20
|
+
describe StackOneHRIS::ConnectSession do
|
|
21
|
+
let(:instance) { StackOneHRIS::ConnectSession.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of ConnectSession' do
|
|
24
24
|
it 'should create an instance of ConnectSession' do
|
|
25
|
-
expect(instance).to be_instance_of(
|
|
25
|
+
expect(instance).to be_instance_of(StackOneHRIS::ConnectSession)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
describe 'test attribute "id"' do
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for
|
|
17
|
+
# Unit tests for StackOneHRIS::ConnectSessionToken
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe
|
|
21
|
-
let(:instance) {
|
|
20
|
+
describe StackOneHRIS::ConnectSessionToken do
|
|
21
|
+
let(:instance) { StackOneHRIS::ConnectSessionToken.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of ConnectSessionToken' do
|
|
24
24
|
it 'should create an instance of ConnectSessionToken' do
|
|
25
|
-
expect(instance).to be_instance_of(
|
|
25
|
+
expect(instance).to be_instance_of(StackOneHRIS::ConnectSessionToken)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
describe 'test attribute "id"' do
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for
|
|
17
|
+
# Unit tests for StackOneHRIS::EmployeeResult
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe
|
|
21
|
-
let(:instance) {
|
|
20
|
+
describe StackOneHRIS::EmployeeResult do
|
|
21
|
+
let(:instance) { StackOneHRIS::EmployeeResult.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of EmployeeResult' do
|
|
24
24
|
it 'should create an instance of EmployeeResult' do
|
|
25
|
-
expect(instance).to be_instance_of(
|
|
25
|
+
expect(instance).to be_instance_of(StackOneHRIS::EmployeeResult)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
describe 'test attribute "data"' do
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for
|
|
17
|
+
# Unit tests for StackOneHRIS::Employee
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe
|
|
21
|
-
let(:instance) {
|
|
20
|
+
describe StackOneHRIS::Employee do
|
|
21
|
+
let(:instance) { StackOneHRIS::Employee.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of Employee' do
|
|
24
24
|
it 'should create an instance of Employee' do
|
|
25
|
-
expect(instance).to be_instance_of(
|
|
25
|
+
expect(instance).to be_instance_of(StackOneHRIS::Employee)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
describe 'test attribute "id"' do
|
|
@@ -14,15 +14,15 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for
|
|
17
|
+
# Unit tests for StackOneHRIS::EmployeesPaginated
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe
|
|
21
|
-
let(:instance) {
|
|
20
|
+
describe StackOneHRIS::EmployeesPaginated do
|
|
21
|
+
let(:instance) { StackOneHRIS::EmployeesPaginated.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of EmployeesPaginated' do
|
|
24
24
|
it 'should create an instance of EmployeesPaginated' do
|
|
25
|
-
expect(instance).to be_instance_of(
|
|
25
|
+
expect(instance).to be_instance_of(StackOneHRIS::EmployeesPaginated)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
describe 'test attribute "next_page"' do
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stackone_hris_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- StackOne
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|