stackone_hris_client 1.0.0 → 1.2.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 +1 -1
- data/README.md +42 -15
- data/docs/Account.md +32 -0
- data/docs/AccountsApi.md +218 -0
- 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 +34 -0
- data/docs/ConnectSessionAuthenticate.md +18 -0
- data/docs/ConnectSessionCreate.md +28 -0
- data/docs/ConnectSessionToken.md +36 -0
- data/docs/ConnectSessionsApi.md +145 -0
- data/docs/Employee.md +36 -12
- data/docs/EmployeeResult.md +2 -2
- data/docs/EmployeesApi.md +19 -13
- 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 +205 -0
- data/lib/stackone_hris_client/api/companies_api.rb +188 -0
- data/lib/stackone_hris_client/api/connect_sessions_api.rb +154 -0
- data/lib/stackone_hris_client/api/employees_api.rb +10 -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 +13 -12
- data/lib/stackone_hris_client/models/account.rb +322 -0
- 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 +350 -0
- data/lib/stackone_hris_client/models/connect_session_authenticate.rb +225 -0
- data/lib/stackone_hris_client/models/connect_session_create.rb +304 -0
- data/lib/stackone_hris_client/models/connect_session_token.rb +364 -0
- 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 +23 -4
- data/spec/api/accounts_api_spec.rb +58 -0
- data/spec/api/companies_api_spec.rb +70 -0
- data/spec/api/connect_sessions_api_spec.rb +57 -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/account_spec.rb +76 -0
- 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/connect_session_authenticate_spec.rb +34 -0
- data/spec/models/connect_session_create_spec.rb +68 -0
- data/spec/models/connect_session_spec.rb +86 -0
- data/spec/models/connect_session_token_spec.rb +92 -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 +79 -3
@@ -0,0 +1,57 @@
|
|
1
|
+
=begin
|
2
|
+
#StackOne Unified API
|
3
|
+
|
4
|
+
#The documentation for the StackOne Unified API
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for StackOneHrisClient::ConnectSessionsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ConnectSessionsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = StackOneHrisClient::ConnectSessionsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ConnectSessionsApi' do
|
30
|
+
it 'should create an instance of ConnectSessionsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(StackOneHrisClient::ConnectSessionsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for connect_sessions_authenticate
|
36
|
+
#
|
37
|
+
# @param connect_session_authenticate The parameters to authenticate
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [ConnectSession]
|
40
|
+
describe 'connect_sessions_authenticate test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for connect_sessions_create
|
47
|
+
#
|
48
|
+
# @param connect_session_create
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @return [ConnectSessionToken]
|
51
|
+
describe 'connect_sessions_create test' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
=begin
|
2
|
+
#StackOne Unified API - HRIS
|
3
|
+
|
4
|
+
#The documentation for the StackOne Unified API - HRIS
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for StackOneHRIS::EmploymentsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'EmploymentsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = StackOneHRIS::EmploymentsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of EmploymentsApi' do
|
30
|
+
it 'should create an instance of EmploymentsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(StackOneHRIS::EmploymentsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for employments_get
|
36
|
+
#
|
37
|
+
# @param id
|
38
|
+
# @param x_account_id The account identifier
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :page The page number of the results to fetch
|
41
|
+
# @option opts [String] :page_size The number of results per page
|
42
|
+
# @option opts [Boolean] :raw Indicates that the raw request result is returned
|
43
|
+
# @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
|
44
|
+
# @option opts [Array<String>] :expand The list of fields that will be expanded in the response
|
45
|
+
# @option opts [String] :sync_token The sync token to select the only updated results
|
46
|
+
# @return [EmploymentResult]
|
47
|
+
describe 'employments_get test' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# unit tests for employments_list
|
54
|
+
#
|
55
|
+
# @param x_account_id The account identifier
|
56
|
+
# @param [Hash] opts the optional parameters
|
57
|
+
# @option opts [String] :page The page number of the results to fetch
|
58
|
+
# @option opts [String] :page_size The number of results per page
|
59
|
+
# @option opts [Boolean] :raw Indicates that the raw request result is returned
|
60
|
+
# @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
|
61
|
+
# @option opts [Array<String>] :expand The list of fields that will be expanded in the response
|
62
|
+
# @option opts [String] :sync_token The sync token to select the only updated results
|
63
|
+
# @return [EmploymentsPaginated]
|
64
|
+
describe 'employments_list test' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
=begin
|
2
|
+
#StackOne Unified API - HRIS
|
3
|
+
|
4
|
+
#The documentation for the StackOne Unified API - HRIS
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for StackOneHRIS::LocationsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LocationsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = StackOneHRIS::LocationsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of LocationsApi' do
|
30
|
+
it 'should create an instance of LocationsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(StackOneHRIS::LocationsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for hris_locations_get
|
36
|
+
#
|
37
|
+
# @param id
|
38
|
+
# @param x_account_id The account identifier
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :page The page number of the results to fetch
|
41
|
+
# @option opts [String] :page_size The number of results per page
|
42
|
+
# @option opts [Boolean] :raw Indicates that the raw request result is returned
|
43
|
+
# @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
|
44
|
+
# @option opts [Array<String>] :expand The list of fields that will be expanded in the response
|
45
|
+
# @option opts [String] :sync_token The sync token to select the only updated results
|
46
|
+
# @return [LocationResult]
|
47
|
+
describe 'hris_locations_get test' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# unit tests for hris_locations_list
|
54
|
+
#
|
55
|
+
# @param x_account_id The account identifier
|
56
|
+
# @param [Hash] opts the optional parameters
|
57
|
+
# @option opts [String] :page The page number of the results to fetch
|
58
|
+
# @option opts [String] :page_size The number of results per page
|
59
|
+
# @option opts [Boolean] :raw Indicates that the raw request result is returned
|
60
|
+
# @option opts [Array<String>] :fields The list of fields to return in the response (if empty, all fields are returned)
|
61
|
+
# @option opts [Array<String>] :expand The list of fields that will be expanded in the response
|
62
|
+
# @option opts [String] :sync_token The sync token to select the only updated results
|
63
|
+
# @return [LocationsPaginated]
|
64
|
+
describe 'hris_locations_list test' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
data/spec/api_client_spec.rb
CHANGED
@@ -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
|
@@ -12,51 +12,51 @@ OpenAPI Generator version: 6.4.0
|
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
|
15
|
-
describe
|
15
|
+
describe StackOneHRIS::ApiClient do
|
16
16
|
context 'initialization' do
|
17
17
|
context 'URL stuff' do
|
18
18
|
context 'host' do
|
19
19
|
it 'removes http from host' do
|
20
|
-
|
21
|
-
expect(
|
20
|
+
StackOneHRIS.configure { |c| c.host = 'http://example.com' }
|
21
|
+
expect(StackOneHRIS::Configuration.default.host).to eq('example.com')
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'removes https from host' do
|
25
|
-
|
26
|
-
expect(
|
25
|
+
StackOneHRIS.configure { |c| c.host = 'https://wookiee.com' }
|
26
|
+
expect(StackOneHRIS::ApiClient.default.config.host).to eq('wookiee.com')
|
27
27
|
end
|
28
28
|
|
29
29
|
it 'removes trailing path from host' do
|
30
|
-
|
31
|
-
expect(
|
30
|
+
StackOneHRIS.configure { |c| c.host = 'hobo.com/v4' }
|
31
|
+
expect(StackOneHRIS::Configuration.default.host).to eq('hobo.com')
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
35
|
context 'base_path' do
|
36
36
|
it "prepends a slash to base_path" do
|
37
|
-
|
38
|
-
expect(
|
37
|
+
StackOneHRIS.configure { |c| c.base_path = 'v4/dog' }
|
38
|
+
expect(StackOneHRIS::Configuration.default.base_path).to eq('/v4/dog')
|
39
39
|
end
|
40
40
|
|
41
41
|
it "doesn't prepend a slash if one is already there" do
|
42
|
-
|
43
|
-
expect(
|
42
|
+
StackOneHRIS.configure { |c| c.base_path = '/v4/dog' }
|
43
|
+
expect(StackOneHRIS::Configuration.default.base_path).to eq('/v4/dog')
|
44
44
|
end
|
45
45
|
|
46
46
|
it "ends up as a blank string if nil" do
|
47
|
-
|
48
|
-
expect(
|
47
|
+
StackOneHRIS.configure { |c| c.base_path = nil }
|
48
|
+
expect(StackOneHRIS::Configuration.default.base_path).to eq('')
|
49
49
|
end
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
54
|
describe 'params_encoding in #build_request' do
|
55
|
-
let(:config) {
|
56
|
-
let(:api_client) {
|
55
|
+
let(:config) { StackOneHRIS::Configuration.new }
|
56
|
+
let(:api_client) { StackOneHRIS::ApiClient.new(config) }
|
57
57
|
|
58
58
|
it 'defaults to nil' do
|
59
|
-
expect(
|
59
|
+
expect(StackOneHRIS::Configuration.default.params_encoding).to eq(nil)
|
60
60
|
expect(config.params_encoding).to eq(nil)
|
61
61
|
|
62
62
|
request = api_client.build_request(:get, '/test')
|
@@ -71,11 +71,11 @@ describe StackOneHrisClient::ApiClient do
|
|
71
71
|
end
|
72
72
|
|
73
73
|
describe 'timeout in #build_request' do
|
74
|
-
let(:config) {
|
75
|
-
let(:api_client) {
|
74
|
+
let(:config) { StackOneHRIS::Configuration.new }
|
75
|
+
let(:api_client) { StackOneHRIS::ApiClient.new(config) }
|
76
76
|
|
77
77
|
it 'defaults to 0' do
|
78
|
-
expect(
|
78
|
+
expect(StackOneHRIS::Configuration.default.timeout).to eq(0)
|
79
79
|
expect(config.timeout).to eq(0)
|
80
80
|
|
81
81
|
request = api_client.build_request(:get, '/test')
|
@@ -93,7 +93,7 @@ describe StackOneHrisClient::ApiClient do
|
|
93
93
|
|
94
94
|
describe '#deserialize' do
|
95
95
|
it "handles Array<Integer>" do
|
96
|
-
api_client =
|
96
|
+
api_client = StackOneHRIS::ApiClient.new
|
97
97
|
headers = { 'Content-Type' => 'application/json' }
|
98
98
|
response = double('response', headers: headers, body: '[12, 34]')
|
99
99
|
data = api_client.deserialize(response, 'Array<Integer>')
|
@@ -102,7 +102,7 @@ describe StackOneHrisClient::ApiClient do
|
|
102
102
|
end
|
103
103
|
|
104
104
|
it 'handles Array<Array<Integer>>' do
|
105
|
-
api_client =
|
105
|
+
api_client = StackOneHRIS::ApiClient.new
|
106
106
|
headers = { 'Content-Type' => 'application/json' }
|
107
107
|
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
108
108
|
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
@@ -111,7 +111,7 @@ describe StackOneHrisClient::ApiClient do
|
|
111
111
|
end
|
112
112
|
|
113
113
|
it 'handles Hash<String, String>' do
|
114
|
-
api_client =
|
114
|
+
api_client = StackOneHRIS::ApiClient.new
|
115
115
|
headers = { 'Content-Type' => 'application/json' }
|
116
116
|
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
117
117
|
data = api_client.deserialize(response, 'Hash<String, String>')
|
@@ -123,8 +123,8 @@ describe StackOneHrisClient::ApiClient do
|
|
123
123
|
describe "#object_to_hash" do
|
124
124
|
it 'ignores nils and includes empty arrays' do
|
125
125
|
# uncomment below to test object_to_hash for model
|
126
|
-
# api_client =
|
127
|
-
# _model =
|
126
|
+
# api_client = StackOneHRIS::ApiClient.new
|
127
|
+
# _model = StackOneHRIS::ModelName.new
|
128
128
|
# update the model attribute below
|
129
129
|
# _model.id = 1
|
130
130
|
# update the expected value (hash) below
|
@@ -135,7 +135,7 @@ describe StackOneHrisClient::ApiClient do
|
|
135
135
|
|
136
136
|
describe '#build_collection_param' do
|
137
137
|
let(:param) { ['aa', 'bb', 'cc'] }
|
138
|
-
let(:api_client) {
|
138
|
+
let(:api_client) { StackOneHRIS::ApiClient.new }
|
139
139
|
|
140
140
|
it 'works for csv' do
|
141
141
|
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
@@ -163,7 +163,7 @@ describe StackOneHrisClient::ApiClient do
|
|
163
163
|
end
|
164
164
|
|
165
165
|
describe '#json_mime?' do
|
166
|
-
let(:api_client) {
|
166
|
+
let(:api_client) { StackOneHRIS::ApiClient.new }
|
167
167
|
|
168
168
|
it 'works' do
|
169
169
|
expect(api_client.json_mime?(nil)).to eq false
|
@@ -180,7 +180,7 @@ describe StackOneHrisClient::ApiClient do
|
|
180
180
|
end
|
181
181
|
|
182
182
|
describe '#select_header_accept' do
|
183
|
-
let(:api_client) {
|
183
|
+
let(:api_client) { StackOneHRIS::ApiClient.new }
|
184
184
|
|
185
185
|
it 'works' do
|
186
186
|
expect(api_client.select_header_accept(nil)).to be_nil
|
@@ -196,7 +196,7 @@ describe StackOneHrisClient::ApiClient do
|
|
196
196
|
end
|
197
197
|
|
198
198
|
describe '#select_header_content_type' do
|
199
|
-
let(:api_client) {
|
199
|
+
let(:api_client) { StackOneHRIS::ApiClient.new }
|
200
200
|
|
201
201
|
it 'works' do
|
202
202
|
expect(api_client.select_header_content_type(nil)).to be_nil
|
@@ -211,7 +211,7 @@ describe StackOneHrisClient::ApiClient do
|
|
211
211
|
end
|
212
212
|
|
213
213
|
describe '#sanitize_filename' do
|
214
|
-
let(:api_client) {
|
214
|
+
let(:api_client) { StackOneHRIS::ApiClient.new }
|
215
215
|
|
216
216
|
it 'works' do
|
217
217
|
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
data/spec/configuration_spec.rb
CHANGED
@@ -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
|
@@ -12,14 +12,14 @@ OpenAPI Generator version: 6.4.0
|
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
|
15
|
-
describe
|
16
|
-
let(:config) {
|
15
|
+
describe StackOneHRIS::Configuration do
|
16
|
+
let(:config) { StackOneHRIS::Configuration.default }
|
17
17
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
21
|
# uri = URI.parse("http://localhost")
|
22
|
-
#
|
22
|
+
# StackOneHRIS.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
25
25
|
# end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
=begin
|
2
|
+
#StackOne Unified API
|
3
|
+
|
4
|
+
#The documentation for the StackOne Unified API
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for StackOneHrisClient::Account
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe StackOneHrisClient::Account do
|
21
|
+
let(:instance) { StackOneHrisClient::Account.new }
|
22
|
+
|
23
|
+
describe 'test an instance of Account' do
|
24
|
+
it 'should create an instance of Account' do
|
25
|
+
expect(instance).to be_instance_of(StackOneHrisClient::Account)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "provider"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "origin_owner_id"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "origin_owner_name"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "origin_username"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "credentials"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "created_at"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "updated_at"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
=begin
|
2
|
+
#StackOne Unified API - HRIS
|
3
|
+
|
4
|
+
#The documentation for the StackOne Unified API - HRIS
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for StackOneHRIS::CompaniesPaginated
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe StackOneHRIS::CompaniesPaginated do
|
21
|
+
let(:instance) { StackOneHRIS::CompaniesPaginated.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CompaniesPaginated' do
|
24
|
+
it 'should create an instance of CompaniesPaginated' do
|
25
|
+
expect(instance).to be_instance_of(StackOneHRIS::CompaniesPaginated)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "next_page"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "data"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "raw"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=begin
|
2
|
+
#StackOne Unified API - HRIS
|
3
|
+
|
4
|
+
#The documentation for the StackOne Unified API - HRIS
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for StackOneHRIS::CompanyResult
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe StackOneHRIS::CompanyResult do
|
21
|
+
let(:instance) { StackOneHRIS::CompanyResult.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CompanyResult' do
|
24
|
+
it 'should create an instance of CompanyResult' do
|
25
|
+
expect(instance).to be_instance_of(StackOneHRIS::CompanyResult)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "raw"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
=begin
|
2
|
+
#StackOne Unified API - HRIS
|
3
|
+
|
4
|
+
#The documentation for the StackOne Unified API - HRIS
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for StackOneHRIS::Company
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe StackOneHRIS::Company do
|
21
|
+
let(:instance) { StackOneHRIS::Company.new }
|
22
|
+
|
23
|
+
describe 'test an instance of Company' do
|
24
|
+
it 'should create an instance of Company' do
|
25
|
+
expect(instance).to be_instance_of(StackOneHRIS::Company)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "name"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "display_name"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
=begin
|
2
|
+
#StackOne Unified API
|
3
|
+
|
4
|
+
#The documentation for the StackOne Unified API
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for StackOneHrisClient::ConnectSessionAuthenticate
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe StackOneHrisClient::ConnectSessionAuthenticate do
|
21
|
+
let(:instance) { StackOneHrisClient::ConnectSessionAuthenticate.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ConnectSessionAuthenticate' do
|
24
|
+
it 'should create an instance of ConnectSessionAuthenticate' do
|
25
|
+
expect(instance).to be_instance_of(StackOneHrisClient::ConnectSessionAuthenticate)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "token"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|