stackone_hris_client 1.1.0 → 1.2.1

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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +40 -24
  4. data/docs/Account.md +2 -2
  5. data/docs/AccountsApi.md +82 -11
  6. data/docs/CompaniesApi.md +175 -0
  7. data/docs/CompaniesPaginated.md +22 -0
  8. data/docs/Company.md +22 -0
  9. data/docs/CompanyResult.md +20 -0
  10. data/docs/ConnectSession.md +2 -2
  11. data/docs/ConnectSessionAuthenticate.md +2 -2
  12. data/docs/ConnectSessionCreate.md +2 -2
  13. data/docs/ConnectSessionToken.md +2 -2
  14. data/docs/ConnectSessionsApi.md +15 -13
  15. data/docs/Employee.md +44 -12
  16. data/docs/EmployeeResult.md +2 -2
  17. data/docs/EmployeesApi.md +13 -11
  18. data/docs/EmployeesPaginated.md +2 -2
  19. data/docs/Employment.md +34 -0
  20. data/docs/EmploymentResult.md +20 -0
  21. data/docs/EmploymentsApi.md +175 -0
  22. data/docs/EmploymentsPaginated.md +22 -0
  23. data/docs/Location.md +38 -0
  24. data/docs/LocationResult.md +20 -0
  25. data/docs/LocationsApi.md +175 -0
  26. data/docs/LocationsPaginated.md +22 -0
  27. data/gem-config.yml +4 -4
  28. data/lib/stackone_hris_client/api/accounts_api.rb +65 -4
  29. data/lib/stackone_hris_client/api/companies_api.rb +188 -0
  30. data/lib/stackone_hris_client/api/connect_sessions_api.rb +4 -4
  31. data/lib/stackone_hris_client/api/employees_api.rb +4 -4
  32. data/lib/stackone_hris_client/api/employments_api.rb +188 -0
  33. data/lib/stackone_hris_client/api/locations_api.rb +188 -0
  34. data/lib/stackone_hris_client/api_client.rb +5 -5
  35. data/lib/stackone_hris_client/api_error.rb +4 -4
  36. data/lib/stackone_hris_client/configuration.rb +4 -4
  37. data/lib/stackone_hris_client/models/account.rb +7 -7
  38. data/lib/stackone_hris_client/models/companies_paginated.rb +247 -0
  39. data/lib/stackone_hris_client/models/company.rb +235 -0
  40. data/lib/stackone_hris_client/models/company_result.rb +231 -0
  41. data/lib/stackone_hris_client/models/connect_session.rb +7 -7
  42. data/lib/stackone_hris_client/models/connect_session_authenticate.rb +7 -7
  43. data/lib/stackone_hris_client/models/connect_session_create.rb +7 -7
  44. data/lib/stackone_hris_client/models/connect_session_token.rb +7 -7
  45. data/lib/stackone_hris_client/models/employee.rb +181 -60
  46. data/lib/stackone_hris_client/models/employee_result.rb +7 -7
  47. data/lib/stackone_hris_client/models/employees_paginated.rb +7 -7
  48. data/lib/stackone_hris_client/models/employment.rb +294 -0
  49. data/lib/stackone_hris_client/models/employment_result.rb +231 -0
  50. data/lib/stackone_hris_client/models/employments_paginated.rb +247 -0
  51. data/lib/stackone_hris_client/models/location.rb +312 -0
  52. data/lib/stackone_hris_client/models/location_result.rb +231 -0
  53. data/lib/stackone_hris_client/models/locations_paginated.rb +247 -0
  54. data/lib/stackone_hris_client/version.rb +5 -5
  55. data/lib/stackone_hris_client.rb +17 -5
  56. data/spec/api/accounts_api_spec.rb +3 -3
  57. data/spec/api/companies_api_spec.rb +70 -0
  58. data/spec/api/connect_sessions_api_spec.rb +3 -3
  59. data/spec/api/employees_api_spec.rb +3 -3
  60. data/spec/api/employments_api_spec.rb +70 -0
  61. data/spec/api/locations_api_spec.rb +70 -0
  62. data/spec/api_client_spec.rb +32 -32
  63. data/spec/configuration_spec.rb +6 -6
  64. data/spec/models/account_spec.rb +4 -4
  65. data/spec/models/companies_paginated_spec.rb +46 -0
  66. data/spec/models/company_result_spec.rb +40 -0
  67. data/spec/models/company_spec.rb +46 -0
  68. data/spec/models/connect_session_authenticate_spec.rb +4 -4
  69. data/spec/models/connect_session_create_spec.rb +4 -4
  70. data/spec/models/connect_session_spec.rb +4 -4
  71. data/spec/models/connect_session_token_spec.rb +4 -4
  72. data/spec/models/employee_result_spec.rb +4 -4
  73. data/spec/models/employee_spec.rb +4 -4
  74. data/spec/models/employees_paginated_spec.rb +4 -4
  75. data/spec/models/employment_result_spec.rb +40 -0
  76. data/spec/models/employment_spec.rb +82 -0
  77. data/spec/models/employments_paginated_spec.rb +46 -0
  78. data/spec/models/location_result_spec.rb +40 -0
  79. data/spec/models/location_spec.rb +94 -0
  80. data/spec/models/locations_paginated_spec.rb +46 -0
  81. data/spec/spec_helper.rb +3 -3
  82. data/stackone_hris_client.gemspec +5 -5
  83. metadata +51 -3
@@ -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
@@ -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 StackOneHrisClient::ApiClient do
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
- StackOneHrisClient.configure { |c| c.host = 'http://example.com' }
21
- expect(StackOneHrisClient::Configuration.default.host).to eq('example.com')
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
- StackOneHrisClient.configure { |c| c.host = 'https://wookiee.com' }
26
- expect(StackOneHrisClient::ApiClient.default.config.host).to eq('wookiee.com')
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
- StackOneHrisClient.configure { |c| c.host = 'hobo.com/v4' }
31
- expect(StackOneHrisClient::Configuration.default.host).to eq('hobo.com')
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
- StackOneHrisClient.configure { |c| c.base_path = 'v4/dog' }
38
- expect(StackOneHrisClient::Configuration.default.base_path).to eq('/v4/dog')
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
- StackOneHrisClient.configure { |c| c.base_path = '/v4/dog' }
43
- expect(StackOneHrisClient::Configuration.default.base_path).to eq('/v4/dog')
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
- StackOneHrisClient.configure { |c| c.base_path = nil }
48
- expect(StackOneHrisClient::Configuration.default.base_path).to eq('')
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) { StackOneHrisClient::Configuration.new }
56
- let(:api_client) { StackOneHrisClient::ApiClient.new(config) }
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(StackOneHrisClient::Configuration.default.params_encoding).to eq(nil)
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) { StackOneHrisClient::Configuration.new }
75
- let(:api_client) { StackOneHrisClient::ApiClient.new(config) }
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(StackOneHrisClient::Configuration.default.timeout).to eq(0)
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 = StackOneHrisClient::ApiClient.new
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 = StackOneHrisClient::ApiClient.new
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 = StackOneHrisClient::ApiClient.new
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 = StackOneHrisClient::ApiClient.new
127
- # _model = StackOneHrisClient::ModelName.new
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) { StackOneHrisClient::ApiClient.new }
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) { StackOneHrisClient::ApiClient.new }
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) { StackOneHrisClient::ApiClient.new }
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) { StackOneHrisClient::ApiClient.new }
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) { StackOneHrisClient::ApiClient.new }
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')
@@ -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 StackOneHrisClient::Configuration do
16
- let(:config) { StackOneHrisClient::Configuration.default }
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
- # StackOneHrisClient.configure do |c|
22
+ # StackOneHRIS.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
25
25
  # end
@@ -14,15 +14,15 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for StackOneHrisClient::Account
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 StackOneHrisClient::Account do
21
- let(:instance) { StackOneHrisClient::Account.new }
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(StackOneHrisClient::Account)
25
+ expect(instance).to be_instance_of(StackOneHRIS::Account)
26
26
  end
27
27
  end
28
28
  describe 'test attribute "id"' do
@@ -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
@@ -14,15 +14,15 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for StackOneHrisClient::ConnectSessionAuthenticate
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 StackOneHrisClient::ConnectSessionAuthenticate do
21
- let(:instance) { StackOneHrisClient::ConnectSessionAuthenticate.new }
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(StackOneHrisClient::ConnectSessionAuthenticate)
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 StackOneHrisClient::ConnectSessionCreate
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 StackOneHrisClient::ConnectSessionCreate do
21
- let(:instance) { StackOneHrisClient::ConnectSessionCreate.new }
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(StackOneHrisClient::ConnectSessionCreate)
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 StackOneHrisClient::ConnectSession
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 StackOneHrisClient::ConnectSession do
21
- let(:instance) { StackOneHrisClient::ConnectSession.new }
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(StackOneHrisClient::ConnectSession)
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 StackOneHrisClient::ConnectSessionToken
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 StackOneHrisClient::ConnectSessionToken do
21
- let(:instance) { StackOneHrisClient::ConnectSessionToken.new }
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(StackOneHrisClient::ConnectSessionToken)
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 StackOneHrisClient::EmployeeResult
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 StackOneHrisClient::EmployeeResult do
21
- let(:instance) { StackOneHrisClient::EmployeeResult.new }
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(StackOneHrisClient::EmployeeResult)
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 StackOneHrisClient::Employee
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 StackOneHrisClient::Employee do
21
- let(:instance) { StackOneHrisClient::Employee.new }
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(StackOneHrisClient::Employee)
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 StackOneHrisClient::EmployeesPaginated
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 StackOneHrisClient::EmployeesPaginated do
21
- let(:instance) { StackOneHrisClient::EmployeesPaginated.new }
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(StackOneHrisClient::EmployeesPaginated)
25
+ expect(instance).to be_instance_of(StackOneHRIS::EmployeesPaginated)
26
26
  end
27
27
  end
28
28
  describe 'test attribute "next_page"' do