stackone_hris_client 1.5.2 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +22 -29
  4. data/docs/Account.md +2 -0
  5. data/docs/AccountsApi.md +12 -12
  6. data/docs/CompaniesApi.md +24 -24
  7. data/docs/ConnectSession.md +1 -1
  8. data/docs/ConnectSessionCreate.md +1 -1
  9. data/docs/ConnectSessionToken.md +1 -1
  10. data/docs/ConnectSessionsApi.md +8 -8
  11. data/docs/Employee.md +2 -0
  12. data/docs/EmployeesApi.md +26 -26
  13. data/docs/EmploymentsApi.md +24 -24
  14. data/docs/LocationsApi.md +8 -8
  15. data/gem-config.yml +2 -2
  16. data/lib/stackone_hris_client/api/accounts_api.rb +7 -7
  17. data/lib/stackone_hris_client/api/companies_api.rb +20 -20
  18. data/lib/stackone_hris_client/api/connect_sessions_api.rb +5 -5
  19. data/lib/stackone_hris_client/api/employees_api.rb +20 -20
  20. data/lib/stackone_hris_client/api/employments_api.rb +20 -20
  21. data/lib/stackone_hris_client/api/locations_api.rb +5 -5
  22. data/lib/stackone_hris_client/api_client.rb +1 -1
  23. data/lib/stackone_hris_client/api_error.rb +1 -1
  24. data/lib/stackone_hris_client/configuration.rb +2 -2
  25. data/lib/stackone_hris_client/models/account.rb +16 -2
  26. data/lib/stackone_hris_client/models/companies_paginated.rb +1 -1
  27. data/lib/stackone_hris_client/models/company.rb +1 -1
  28. data/lib/stackone_hris_client/models/company_result.rb +1 -1
  29. data/lib/stackone_hris_client/models/connect_session.rb +1 -1
  30. data/lib/stackone_hris_client/models/connect_session_authenticate.rb +1 -1
  31. data/lib/stackone_hris_client/models/connect_session_create.rb +1 -1
  32. data/lib/stackone_hris_client/models/connect_session_token.rb +1 -1
  33. data/lib/stackone_hris_client/models/country_code_enum.rb +1 -1
  34. data/lib/stackone_hris_client/models/employee.rb +11 -2
  35. data/lib/stackone_hris_client/models/employee_result.rb +1 -1
  36. data/lib/stackone_hris_client/models/employees_paginated.rb +1 -1
  37. data/lib/stackone_hris_client/models/employment.rb +1 -1
  38. data/lib/stackone_hris_client/models/employment_result.rb +1 -1
  39. data/lib/stackone_hris_client/models/employment_status_enum.rb +3 -3
  40. data/lib/stackone_hris_client/models/employment_type_enum.rb +3 -3
  41. data/lib/stackone_hris_client/models/employments_paginated.rb +1 -1
  42. data/lib/stackone_hris_client/models/ethnicity_enum.rb +3 -3
  43. data/lib/stackone_hris_client/models/gender_enum.rb +3 -3
  44. data/lib/stackone_hris_client/models/image.rb +1 -1
  45. data/lib/stackone_hris_client/models/location.rb +1 -1
  46. data/lib/stackone_hris_client/models/location_result.rb +1 -1
  47. data/lib/stackone_hris_client/models/location_type_enum.rb +1 -1
  48. data/lib/stackone_hris_client/models/locations_paginated.rb +1 -1
  49. data/lib/stackone_hris_client/models/marital_status_enum.rb +3 -3
  50. data/lib/stackone_hris_client/models/pay_frequency_enum.rb +3 -3
  51. data/lib/stackone_hris_client/models/pay_period_enum.rb +1 -1
  52. data/lib/stackone_hris_client/version.rb +2 -2
  53. data/lib/stackone_hris_client.rb +1 -1
  54. data/spec/api_client_spec.rb +1 -1
  55. data/spec/configuration_spec.rb +1 -1
  56. data/spec/spec_helper.rb +1 -1
  57. data/stackone_hris_client.gemspec +1 -1
  58. metadata +2 -2
@@ -4,15 +4,15 @@ All URIs are relative to *https://api.stackone.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**employments_get**](EmploymentsApi.md#employments_get) | **GET** /unified/hris/employments/{id} | |
8
- | [**employments_list**](EmploymentsApi.md#employments_list) | **GET** /unified/hris/employments | |
7
+ | [**hris_employments_get**](EmploymentsApi.md#hris_employments_get) | **GET** /unified/hris/employments/{id} | Get Employment |
8
+ | [**hris_employments_list**](EmploymentsApi.md#hris_employments_list) | **GET** /unified/hris/employments | List Employments |
9
9
 
10
10
 
11
- ## employments_get
12
-
13
- > <EmploymentResult> employments_get(id, x_account_id, opts)
11
+ ## hris_employments_get
14
12
 
13
+ > <EmploymentResult> hris_employments_get(id, x_account_id, opts)
15
14
 
15
+ Get Employment
16
16
 
17
17
  ### Examples
18
18
 
@@ -38,29 +38,29 @@ opts = {
38
38
  }
39
39
 
40
40
  begin
41
- #
42
- result = api_instance.employments_get(id, x_account_id, opts)
41
+ # Get Employment
42
+ result = api_instance.hris_employments_get(id, x_account_id, opts)
43
43
  p result
44
44
  rescue StackOneHRIS::ApiError => e
45
- puts "Error when calling EmploymentsApi->employments_get: #{e}"
45
+ puts "Error when calling EmploymentsApi->hris_employments_get: #{e}"
46
46
  end
47
47
  ```
48
48
 
49
- #### Using the employments_get_with_http_info variant
49
+ #### Using the hris_employments_get_with_http_info variant
50
50
 
51
51
  This returns an Array which contains the response data, status code and headers.
52
52
 
53
- > <Array(<EmploymentResult>, Integer, Hash)> employments_get_with_http_info(id, x_account_id, opts)
53
+ > <Array(<EmploymentResult>, Integer, Hash)> hris_employments_get_with_http_info(id, x_account_id, opts)
54
54
 
55
55
  ```ruby
56
56
  begin
57
- #
58
- data, status_code, headers = api_instance.employments_get_with_http_info(id, x_account_id, opts)
57
+ # Get Employment
58
+ data, status_code, headers = api_instance.hris_employments_get_with_http_info(id, x_account_id, opts)
59
59
  p status_code # => 2xx
60
60
  p headers # => { ... }
61
61
  p data # => <EmploymentResult>
62
62
  rescue StackOneHRIS::ApiError => e
63
- puts "Error when calling EmploymentsApi->employments_get_with_http_info: #{e}"
63
+ puts "Error when calling EmploymentsApi->hris_employments_get_with_http_info: #{e}"
64
64
  end
65
65
  ```
66
66
 
@@ -91,11 +91,11 @@ end
91
91
  - **Accept**: application/json
92
92
 
93
93
 
94
- ## employments_list
95
-
96
- > <EmploymentsPaginated> employments_list(x_account_id, opts)
94
+ ## hris_employments_list
97
95
 
96
+ > <EmploymentsPaginated> hris_employments_list(x_account_id, opts)
98
97
 
98
+ List Employments
99
99
 
100
100
  ### Examples
101
101
 
@@ -120,29 +120,29 @@ opts = {
120
120
  }
121
121
 
122
122
  begin
123
- #
124
- result = api_instance.employments_list(x_account_id, opts)
123
+ # List Employments
124
+ result = api_instance.hris_employments_list(x_account_id, opts)
125
125
  p result
126
126
  rescue StackOneHRIS::ApiError => e
127
- puts "Error when calling EmploymentsApi->employments_list: #{e}"
127
+ puts "Error when calling EmploymentsApi->hris_employments_list: #{e}"
128
128
  end
129
129
  ```
130
130
 
131
- #### Using the employments_list_with_http_info variant
131
+ #### Using the hris_employments_list_with_http_info variant
132
132
 
133
133
  This returns an Array which contains the response data, status code and headers.
134
134
 
135
- > <Array(<EmploymentsPaginated>, Integer, Hash)> employments_list_with_http_info(x_account_id, opts)
135
+ > <Array(<EmploymentsPaginated>, Integer, Hash)> hris_employments_list_with_http_info(x_account_id, opts)
136
136
 
137
137
  ```ruby
138
138
  begin
139
- #
140
- data, status_code, headers = api_instance.employments_list_with_http_info(x_account_id, opts)
139
+ # List Employments
140
+ data, status_code, headers = api_instance.hris_employments_list_with_http_info(x_account_id, opts)
141
141
  p status_code # => 2xx
142
142
  p headers # => { ... }
143
143
  p data # => <EmploymentsPaginated>
144
144
  rescue StackOneHRIS::ApiError => e
145
- puts "Error when calling EmploymentsApi->employments_list_with_http_info: #{e}"
145
+ puts "Error when calling EmploymentsApi->hris_employments_list_with_http_info: #{e}"
146
146
  end
147
147
  ```
148
148
 
data/docs/LocationsApi.md CHANGED
@@ -4,15 +4,15 @@ All URIs are relative to *https://api.stackone.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**hris_locations_get**](LocationsApi.md#hris_locations_get) | **GET** /unified/hris/locations/{id} | |
8
- | [**hris_locations_list**](LocationsApi.md#hris_locations_list) | **GET** /unified/hris/locations | |
7
+ | [**hris_locations_get**](LocationsApi.md#hris_locations_get) | **GET** /unified/hris/locations/{id} | Get location |
8
+ | [**hris_locations_list**](LocationsApi.md#hris_locations_list) | **GET** /unified/hris/locations | List locations |
9
9
 
10
10
 
11
11
  ## hris_locations_get
12
12
 
13
13
  > <LocationResult> hris_locations_get(id, x_account_id, opts)
14
14
 
15
-
15
+ Get location
16
16
 
17
17
  ### Examples
18
18
 
@@ -38,7 +38,7 @@ opts = {
38
38
  }
39
39
 
40
40
  begin
41
- #
41
+ # Get location
42
42
  result = api_instance.hris_locations_get(id, x_account_id, opts)
43
43
  p result
44
44
  rescue StackOneHRIS::ApiError => e
@@ -54,7 +54,7 @@ This returns an Array which contains the response data, status code and headers.
54
54
 
55
55
  ```ruby
56
56
  begin
57
- #
57
+ # Get location
58
58
  data, status_code, headers = api_instance.hris_locations_get_with_http_info(id, x_account_id, opts)
59
59
  p status_code # => 2xx
60
60
  p headers # => { ... }
@@ -95,7 +95,7 @@ end
95
95
 
96
96
  > <LocationsPaginated> hris_locations_list(x_account_id, opts)
97
97
 
98
-
98
+ List locations
99
99
 
100
100
  ### Examples
101
101
 
@@ -120,7 +120,7 @@ opts = {
120
120
  }
121
121
 
122
122
  begin
123
- #
123
+ # List locations
124
124
  result = api_instance.hris_locations_list(x_account_id, opts)
125
125
  p result
126
126
  rescue StackOneHRIS::ApiError => e
@@ -136,7 +136,7 @@ This returns an Array which contains the response data, status code and headers.
136
136
 
137
137
  ```ruby
138
138
  begin
139
- #
139
+ # List locations
140
140
  data, status_code, headers = api_instance.hris_locations_list_with_http_info(x_account_id, opts)
141
141
  p status_code # => 2xx
142
142
  p headers # => { ... }
data/gem-config.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  generatorName: ruby
2
- inputSpec: https://api.eu1.stackone.com/documentation-hris-yaml
2
+ inputSpec: https://api.stackone.com/documentation-hris-yaml
3
3
  additionalProperties:
4
4
  moduleName: "StackOneHRIS"
5
5
  gemAuthor: "StackOne"
@@ -10,5 +10,5 @@ additionalProperties:
10
10
  gemName: "stackone_hris_client"
11
11
  gemRequiredRubyVersion: ">= 2.7"
12
12
  gemSummary: "StackOne HRIS client gem"
13
- gemVersion: "1.5.2"
13
+ gemVersion: "1.6.0"
14
14
  library: "typhoeus"
@@ -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.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -19,7 +19,7 @@ module StackOneHRIS
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- #
22
+ # Delete Account
23
23
  # @param id [String]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [Account]
@@ -28,7 +28,7 @@ module StackOneHRIS
28
28
  data
29
29
  end
30
30
 
31
- #
31
+ # Delete Account
32
32
  # @param id [String]
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
@@ -80,7 +80,7 @@ module StackOneHRIS
80
80
  return data, status_code, headers
81
81
  end
82
82
 
83
- #
83
+ # Get Account
84
84
  # @param id [String]
85
85
  # @param [Hash] opts the optional parameters
86
86
  # @return [Account]
@@ -89,7 +89,7 @@ module StackOneHRIS
89
89
  data
90
90
  end
91
91
 
92
- #
92
+ # Get Account
93
93
  # @param id [String]
94
94
  # @param [Hash] opts the optional parameters
95
95
  # @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
@@ -141,7 +141,7 @@ module StackOneHRIS
141
141
  return data, status_code, headers
142
142
  end
143
143
 
144
- #
144
+ # List Accounts
145
145
  # @param [Hash] opts the optional parameters
146
146
  # @option opts [String] :provider The provider of the results to fetch
147
147
  # @option opts [String] :origin_owner_id The origin owner identifier of the results to fetch
@@ -151,7 +151,7 @@ module StackOneHRIS
151
151
  data
152
152
  end
153
153
 
154
- #
154
+ # List Accounts
155
155
  # @param [Hash] opts the optional parameters
156
156
  # @option opts [String] :provider The provider of the results to fetch
157
157
  # @option opts [String] :origin_owner_id The origin owner identifier of the results to fetch
@@ -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.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -19,7 +19,7 @@ module StackOneHRIS
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- #
22
+ # Get Company
23
23
  # @param id [String]
24
24
  # @param x_account_id [String] The account identifier
25
25
  # @param [Hash] opts the optional parameters
@@ -30,12 +30,12 @@ module StackOneHRIS
30
30
  # @option opts [String] :sync_token The sync token to select the only updated results
31
31
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
32
32
  # @return [CompanyResult]
33
- def companies_get(id, x_account_id, opts = {})
34
- data, _status_code, _headers = companies_get_with_http_info(id, x_account_id, opts)
33
+ def hris_companies_get(id, x_account_id, opts = {})
34
+ data, _status_code, _headers = hris_companies_get_with_http_info(id, x_account_id, opts)
35
35
  data
36
36
  end
37
37
 
38
- #
38
+ # Get Company
39
39
  # @param id [String]
40
40
  # @param x_account_id [String] The account identifier
41
41
  # @param [Hash] opts the optional parameters
@@ -46,17 +46,17 @@ module StackOneHRIS
46
46
  # @option opts [String] :sync_token The sync token to select the only updated results
47
47
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
48
48
  # @return [Array<(CompanyResult, Integer, Hash)>] CompanyResult data, response status code and response headers
49
- def companies_get_with_http_info(id, x_account_id, opts = {})
49
+ def hris_companies_get_with_http_info(id, x_account_id, opts = {})
50
50
  if @api_client.config.debugging
51
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_get ...'
51
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.hris_companies_get ...'
52
52
  end
53
53
  # verify the required parameter 'id' is set
54
54
  if @api_client.config.client_side_validation && id.nil?
55
- fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.companies_get"
55
+ fail ArgumentError, "Missing the required parameter 'id' when calling CompaniesApi.hris_companies_get"
56
56
  end
57
57
  # verify the required parameter 'x_account_id' is set
58
58
  if @api_client.config.client_side_validation && x_account_id.nil?
59
- fail ArgumentError, "Missing the required parameter 'x_account_id' when calling CompaniesApi.companies_get"
59
+ fail ArgumentError, "Missing the required parameter 'x_account_id' when calling CompaniesApi.hris_companies_get"
60
60
  end
61
61
  # resource path
62
62
  local_var_path = '/unified/hris/companies/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -89,7 +89,7 @@ module StackOneHRIS
89
89
  auth_names = opts[:debug_auth_names] || ['basic']
90
90
 
91
91
  new_options = opts.merge(
92
- :operation => :"CompaniesApi.companies_get",
92
+ :operation => :"CompaniesApi.hris_companies_get",
93
93
  :header_params => header_params,
94
94
  :query_params => query_params,
95
95
  :form_params => form_params,
@@ -100,12 +100,12 @@ module StackOneHRIS
100
100
 
101
101
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
102
102
  if @api_client.config.debugging
103
- @api_client.config.logger.debug "API called: CompaniesApi#companies_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
103
+ @api_client.config.logger.debug "API called: CompaniesApi#hris_companies_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
104
104
  end
105
105
  return data, status_code, headers
106
106
  end
107
107
 
108
- #
108
+ # List Companies
109
109
  # @param x_account_id [String] The account identifier
110
110
  # @param [Hash] opts the optional parameters
111
111
  # @option opts [String] :page The page number of the results to fetch
@@ -115,12 +115,12 @@ module StackOneHRIS
115
115
  # @option opts [String] :sync_token The sync token to select the only updated results
116
116
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
117
117
  # @return [CompaniesPaginated]
118
- def companies_list(x_account_id, opts = {})
119
- data, _status_code, _headers = companies_list_with_http_info(x_account_id, opts)
118
+ def hris_companies_list(x_account_id, opts = {})
119
+ data, _status_code, _headers = hris_companies_list_with_http_info(x_account_id, opts)
120
120
  data
121
121
  end
122
122
 
123
- #
123
+ # List Companies
124
124
  # @param x_account_id [String] The account identifier
125
125
  # @param [Hash] opts the optional parameters
126
126
  # @option opts [String] :page The page number of the results to fetch
@@ -130,13 +130,13 @@ module StackOneHRIS
130
130
  # @option opts [String] :sync_token The sync token to select the only updated results
131
131
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
132
132
  # @return [Array<(CompaniesPaginated, Integer, Hash)>] CompaniesPaginated data, response status code and response headers
133
- def companies_list_with_http_info(x_account_id, opts = {})
133
+ def hris_companies_list_with_http_info(x_account_id, opts = {})
134
134
  if @api_client.config.debugging
135
- @api_client.config.logger.debug 'Calling API: CompaniesApi.companies_list ...'
135
+ @api_client.config.logger.debug 'Calling API: CompaniesApi.hris_companies_list ...'
136
136
  end
137
137
  # verify the required parameter 'x_account_id' is set
138
138
  if @api_client.config.client_side_validation && x_account_id.nil?
139
- fail ArgumentError, "Missing the required parameter 'x_account_id' when calling CompaniesApi.companies_list"
139
+ fail ArgumentError, "Missing the required parameter 'x_account_id' when calling CompaniesApi.hris_companies_list"
140
140
  end
141
141
  # resource path
142
142
  local_var_path = '/unified/hris/companies'
@@ -169,7 +169,7 @@ module StackOneHRIS
169
169
  auth_names = opts[:debug_auth_names] || ['basic']
170
170
 
171
171
  new_options = opts.merge(
172
- :operation => :"CompaniesApi.companies_list",
172
+ :operation => :"CompaniesApi.hris_companies_list",
173
173
  :header_params => header_params,
174
174
  :query_params => query_params,
175
175
  :form_params => form_params,
@@ -180,7 +180,7 @@ module StackOneHRIS
180
180
 
181
181
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
182
182
  if @api_client.config.debugging
183
- @api_client.config.logger.debug "API called: CompaniesApi#companies_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
183
+ @api_client.config.logger.debug "API called: CompaniesApi#hris_companies_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
184
184
  end
185
185
  return data, status_code, headers
186
186
  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.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -19,7 +19,7 @@ module StackOneHRIS
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- #
22
+ # Authenticate Session
23
23
  # @param connect_session_authenticate [ConnectSessionAuthenticate] The parameters to authenticate
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [ConnectSession]
@@ -28,7 +28,7 @@ module StackOneHRIS
28
28
  data
29
29
  end
30
30
 
31
- #
31
+ # Authenticate Session
32
32
  # @param connect_session_authenticate [ConnectSessionAuthenticate] The parameters to authenticate
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(ConnectSession, Integer, Hash)>] ConnectSession data, response status code and response headers
@@ -85,7 +85,7 @@ module StackOneHRIS
85
85
  return data, status_code, headers
86
86
  end
87
87
 
88
- #
88
+ # Create Session
89
89
  # @param connect_session_create [ConnectSessionCreate]
90
90
  # @param [Hash] opts the optional parameters
91
91
  # @return [ConnectSessionToken]
@@ -94,7 +94,7 @@ module StackOneHRIS
94
94
  data
95
95
  end
96
96
 
97
- #
97
+ # Create Session
98
98
  # @param connect_session_create [ConnectSessionCreate]
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @return [Array<(ConnectSessionToken, Integer, Hash)>] ConnectSessionToken data, response status code and response headers
@@ -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.5.0
9
+ OpenAPI Generator version: 6.6.0
10
10
 
11
11
  =end
12
12
 
@@ -19,7 +19,7 @@ module StackOneHRIS
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- #
22
+ # Get Employee
23
23
  # @param id [String]
24
24
  # @param x_account_id [String] The account identifier
25
25
  # @param [Hash] opts the optional parameters
@@ -31,12 +31,12 @@ module StackOneHRIS
31
31
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
32
32
  # @option opts [String] :expand The comma separated list of fields that will be expanded in the response (default to '')
33
33
  # @return [EmployeeResult]
34
- def employees_get(id, x_account_id, opts = {})
35
- data, _status_code, _headers = employees_get_with_http_info(id, x_account_id, opts)
34
+ def hris_employees_get(id, x_account_id, opts = {})
35
+ data, _status_code, _headers = hris_employees_get_with_http_info(id, x_account_id, opts)
36
36
  data
37
37
  end
38
38
 
39
- #
39
+ # Get Employee
40
40
  # @param id [String]
41
41
  # @param x_account_id [String] The account identifier
42
42
  # @param [Hash] opts the optional parameters
@@ -48,17 +48,17 @@ module StackOneHRIS
48
48
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
49
49
  # @option opts [String] :expand The comma separated list of fields that will be expanded in the response (default to '')
50
50
  # @return [Array<(EmployeeResult, Integer, Hash)>] EmployeeResult data, response status code and response headers
51
- def employees_get_with_http_info(id, x_account_id, opts = {})
51
+ def hris_employees_get_with_http_info(id, x_account_id, opts = {})
52
52
  if @api_client.config.debugging
53
- @api_client.config.logger.debug 'Calling API: EmployeesApi.employees_get ...'
53
+ @api_client.config.logger.debug 'Calling API: EmployeesApi.hris_employees_get ...'
54
54
  end
55
55
  # verify the required parameter 'id' is set
56
56
  if @api_client.config.client_side_validation && id.nil?
57
- fail ArgumentError, "Missing the required parameter 'id' when calling EmployeesApi.employees_get"
57
+ fail ArgumentError, "Missing the required parameter 'id' when calling EmployeesApi.hris_employees_get"
58
58
  end
59
59
  # verify the required parameter 'x_account_id' is set
60
60
  if @api_client.config.client_side_validation && x_account_id.nil?
61
- fail ArgumentError, "Missing the required parameter 'x_account_id' when calling EmployeesApi.employees_get"
61
+ fail ArgumentError, "Missing the required parameter 'x_account_id' when calling EmployeesApi.hris_employees_get"
62
62
  end
63
63
  # resource path
64
64
  local_var_path = '/unified/hris/employees/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -92,7 +92,7 @@ module StackOneHRIS
92
92
  auth_names = opts[:debug_auth_names] || ['basic']
93
93
 
94
94
  new_options = opts.merge(
95
- :operation => :"EmployeesApi.employees_get",
95
+ :operation => :"EmployeesApi.hris_employees_get",
96
96
  :header_params => header_params,
97
97
  :query_params => query_params,
98
98
  :form_params => form_params,
@@ -103,12 +103,12 @@ module StackOneHRIS
103
103
 
104
104
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
105
105
  if @api_client.config.debugging
106
- @api_client.config.logger.debug "API called: EmployeesApi#employees_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
106
+ @api_client.config.logger.debug "API called: EmployeesApi#hris_employees_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
107
107
  end
108
108
  return data, status_code, headers
109
109
  end
110
110
 
111
- #
111
+ # List Employees
112
112
  # @param x_account_id [String] The account identifier
113
113
  # @param [Hash] opts the optional parameters
114
114
  # @option opts [String] :page The page number of the results to fetch
@@ -119,12 +119,12 @@ module StackOneHRIS
119
119
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
120
120
  # @option opts [String] :expand The comma separated list of fields that will be expanded in the response (default to '')
121
121
  # @return [EmployeesPaginated]
122
- def employees_list(x_account_id, opts = {})
123
- data, _status_code, _headers = employees_list_with_http_info(x_account_id, opts)
122
+ def hris_employees_list(x_account_id, opts = {})
123
+ data, _status_code, _headers = hris_employees_list_with_http_info(x_account_id, opts)
124
124
  data
125
125
  end
126
126
 
127
- #
127
+ # List Employees
128
128
  # @param x_account_id [String] The account identifier
129
129
  # @param [Hash] opts the optional parameters
130
130
  # @option opts [String] :page The page number of the results to fetch
@@ -135,13 +135,13 @@ module StackOneHRIS
135
135
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
136
136
  # @option opts [String] :expand The comma separated list of fields that will be expanded in the response (default to '')
137
137
  # @return [Array<(EmployeesPaginated, Integer, Hash)>] EmployeesPaginated data, response status code and response headers
138
- def employees_list_with_http_info(x_account_id, opts = {})
138
+ def hris_employees_list_with_http_info(x_account_id, opts = {})
139
139
  if @api_client.config.debugging
140
- @api_client.config.logger.debug 'Calling API: EmployeesApi.employees_list ...'
140
+ @api_client.config.logger.debug 'Calling API: EmployeesApi.hris_employees_list ...'
141
141
  end
142
142
  # verify the required parameter 'x_account_id' is set
143
143
  if @api_client.config.client_side_validation && x_account_id.nil?
144
- fail ArgumentError, "Missing the required parameter 'x_account_id' when calling EmployeesApi.employees_list"
144
+ fail ArgumentError, "Missing the required parameter 'x_account_id' when calling EmployeesApi.hris_employees_list"
145
145
  end
146
146
  # resource path
147
147
  local_var_path = '/unified/hris/employees'
@@ -175,7 +175,7 @@ module StackOneHRIS
175
175
  auth_names = opts[:debug_auth_names] || ['basic']
176
176
 
177
177
  new_options = opts.merge(
178
- :operation => :"EmployeesApi.employees_list",
178
+ :operation => :"EmployeesApi.hris_employees_list",
179
179
  :header_params => header_params,
180
180
  :query_params => query_params,
181
181
  :form_params => form_params,
@@ -186,7 +186,7 @@ module StackOneHRIS
186
186
 
187
187
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
188
188
  if @api_client.config.debugging
189
- @api_client.config.logger.debug "API called: EmployeesApi#employees_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
+ @api_client.config.logger.debug "API called: EmployeesApi#hris_employees_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
190
190
  end
191
191
  return data, status_code, headers
192
192
  end