stackone_hris_client 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +40 -24
  3. data/docs/Account.md +2 -2
  4. data/docs/AccountsApi.md +82 -11
  5. data/docs/CompaniesApi.md +175 -0
  6. data/docs/CompaniesPaginated.md +22 -0
  7. data/docs/Company.md +22 -0
  8. data/docs/CompanyResult.md +20 -0
  9. data/docs/ConnectSession.md +2 -2
  10. data/docs/ConnectSessionAuthenticate.md +2 -2
  11. data/docs/ConnectSessionCreate.md +2 -2
  12. data/docs/ConnectSessionToken.md +2 -2
  13. data/docs/ConnectSessionsApi.md +15 -13
  14. data/docs/Employee.md +36 -12
  15. data/docs/EmployeeResult.md +2 -2
  16. data/docs/EmployeesApi.md +13 -11
  17. data/docs/EmployeesPaginated.md +2 -2
  18. data/docs/Employment.md +34 -0
  19. data/docs/EmploymentResult.md +20 -0
  20. data/docs/EmploymentsApi.md +175 -0
  21. data/docs/EmploymentsPaginated.md +22 -0
  22. data/docs/Location.md +38 -0
  23. data/docs/LocationResult.md +20 -0
  24. data/docs/LocationsApi.md +175 -0
  25. data/docs/LocationsPaginated.md +22 -0
  26. data/gem-config.yml +4 -4
  27. data/lib/stackone_hris_client/api/accounts_api.rb +65 -4
  28. data/lib/stackone_hris_client/api/companies_api.rb +188 -0
  29. data/lib/stackone_hris_client/api/connect_sessions_api.rb +5 -5
  30. data/lib/stackone_hris_client/api/employees_api.rb +4 -4
  31. data/lib/stackone_hris_client/api/employments_api.rb +188 -0
  32. data/lib/stackone_hris_client/api/locations_api.rb +188 -0
  33. data/lib/stackone_hris_client/api_client.rb +5 -5
  34. data/lib/stackone_hris_client/api_error.rb +4 -4
  35. data/lib/stackone_hris_client/configuration.rb +4 -4
  36. data/lib/stackone_hris_client/models/account.rb +9 -7
  37. data/lib/stackone_hris_client/models/companies_paginated.rb +249 -0
  38. data/lib/stackone_hris_client/models/company.rb +237 -0
  39. data/lib/stackone_hris_client/models/company_result.rb +233 -0
  40. data/lib/stackone_hris_client/models/connect_session.rb +9 -7
  41. data/lib/stackone_hris_client/models/connect_session_authenticate.rb +9 -7
  42. data/lib/stackone_hris_client/models/connect_session_create.rb +9 -7
  43. data/lib/stackone_hris_client/models/connect_session_token.rb +9 -7
  44. data/lib/stackone_hris_client/models/employee.rb +145 -60
  45. data/lib/stackone_hris_client/models/employee_result.rb +9 -7
  46. data/lib/stackone_hris_client/models/employees_paginated.rb +9 -7
  47. data/lib/stackone_hris_client/models/employment.rb +296 -0
  48. data/lib/stackone_hris_client/models/employment_result.rb +233 -0
  49. data/lib/stackone_hris_client/models/employments_paginated.rb +249 -0
  50. data/lib/stackone_hris_client/models/location.rb +314 -0
  51. data/lib/stackone_hris_client/models/location_result.rb +233 -0
  52. data/lib/stackone_hris_client/models/locations_paginated.rb +249 -0
  53. data/lib/stackone_hris_client/version.rb +5 -5
  54. data/lib/stackone_hris_client.rb +16 -4
  55. data/spec/api/companies_api_spec.rb +70 -0
  56. data/spec/api/employments_api_spec.rb +70 -0
  57. data/spec/api/locations_api_spec.rb +70 -0
  58. data/spec/api_client_spec.rb +32 -32
  59. data/spec/configuration_spec.rb +6 -6
  60. data/spec/models/companies_paginated_spec.rb +46 -0
  61. data/spec/models/company_result_spec.rb +40 -0
  62. data/spec/models/company_spec.rb +46 -0
  63. data/spec/models/employment_result_spec.rb +40 -0
  64. data/spec/models/employment_spec.rb +82 -0
  65. data/spec/models/employments_paginated_spec.rb +46 -0
  66. data/spec/models/location_result_spec.rb +40 -0
  67. data/spec/models/location_spec.rb +94 -0
  68. data/spec/models/locations_paginated_spec.rb +46 -0
  69. data/spec/spec_helper.rb +3 -3
  70. data/stackone_hris_client.gemspec +5 -5
  71. 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::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
@@ -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,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::EmploymentResult
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe StackOneHRIS::EmploymentResult do
21
+ let(:instance) { StackOneHRIS::EmploymentResult.new }
22
+
23
+ describe 'test an instance of EmploymentResult' do
24
+ it 'should create an instance of EmploymentResult' do
25
+ expect(instance).to be_instance_of(StackOneHRIS::EmploymentResult)
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,82 @@
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::Employment
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe StackOneHRIS::Employment do
21
+ let(:instance) { StackOneHRIS::Employment.new }
22
+
23
+ describe 'test an instance of Employment' do
24
+ it 'should create an instance of Employment' do
25
+ expect(instance).to be_instance_of(StackOneHRIS::Employment)
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 "employee_id"' 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 "job_title"' 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 "pay_rate"' 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 "pay_period"' 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 "pay_frequency"' 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 "pay_currency"' 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 "effective_date"' 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
+ describe 'test attribute "employment_type"' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ end
80
+ end
81
+
82
+ 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::EmploymentsPaginated
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe StackOneHRIS::EmploymentsPaginated do
21
+ let(:instance) { StackOneHRIS::EmploymentsPaginated.new }
22
+
23
+ describe 'test an instance of EmploymentsPaginated' do
24
+ it 'should create an instance of EmploymentsPaginated' do
25
+ expect(instance).to be_instance_of(StackOneHRIS::EmploymentsPaginated)
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::LocationResult
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe StackOneHRIS::LocationResult do
21
+ let(:instance) { StackOneHRIS::LocationResult.new }
22
+
23
+ describe 'test an instance of LocationResult' do
24
+ it 'should create an instance of LocationResult' do
25
+ expect(instance).to be_instance_of(StackOneHRIS::LocationResult)
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