stackone_hris_client 1.5.2 → 1.7.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 (163) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +49 -30
  4. data/docs/Account.md +3 -1
  5. data/docs/AccountMeta.md +22 -0
  6. data/docs/AccountsApi.md +82 -14
  7. data/docs/CompaniesApi.md +25 -25
  8. data/docs/ConnectSession.md +1 -1
  9. data/docs/ConnectSessionCreate.md +1 -1
  10. data/docs/ConnectSessionToken.md +1 -1
  11. data/docs/ConnectSessionsApi.md +9 -9
  12. data/docs/CreateEmployeeResult.md +22 -0
  13. data/docs/Employee.md +56 -52
  14. data/docs/EmployeeApiModel.md +80 -0
  15. data/docs/EmployeeApiModelAvatar.md +20 -0
  16. data/docs/EmployeeApiModelEmploymentStatus.md +20 -0
  17. data/docs/EmployeeApiModelEmploymentType.md +20 -0
  18. data/docs/EmployeeApiModelEthnicity.md +20 -0
  19. data/docs/EmployeeApiModelGender.md +20 -0
  20. data/docs/EmployeeApiModelHomeLocation.md +38 -0
  21. data/docs/EmployeeApiModelMaritalStatus.md +20 -0
  22. data/docs/EmployeeApiModelWorkLocation.md +38 -0
  23. data/docs/EmployeeCustomFieldTypeEnum.md +20 -0
  24. data/docs/EmployeeCustomFields.md +30 -0
  25. data/docs/EmployeeCustomFieldsType.md +20 -0
  26. data/docs/EmployeeResult.md +1 -1
  27. data/docs/EmployeesApi.md +242 -28
  28. data/docs/EmployeesPaginated.md +1 -1
  29. data/docs/Employment.md +17 -15
  30. data/docs/EmploymentEmploymentContractType.md +20 -0
  31. data/docs/EmploymentEmploymentType.md +20 -0
  32. data/docs/EmploymentPayFrequency.md +20 -0
  33. data/docs/EmploymentPayPeriod.md +20 -0
  34. data/docs/EmploymentScheduleTypeEnum.md +20 -0
  35. data/docs/EmploymentsApi.md +27 -27
  36. data/docs/HrisCreateEmployeeRequestDto.md +80 -0
  37. data/docs/Location.md +20 -20
  38. data/docs/LocationCountry.md +20 -0
  39. data/docs/LocationLocationType.md +20 -0
  40. data/docs/LocationsApi.md +9 -9
  41. data/gem-config.yml +2 -2
  42. data/generate_gem.sh +0 -0
  43. data/lib/stackone_hris_client/api/accounts_api.rb +68 -7
  44. data/lib/stackone_hris_client/api/companies_api.rb +20 -20
  45. data/lib/stackone_hris_client/api/connect_sessions_api.rb +5 -5
  46. data/lib/stackone_hris_client/api/employees_api.rb +251 -20
  47. data/lib/stackone_hris_client/api/employments_api.rb +20 -20
  48. data/lib/stackone_hris_client/api/locations_api.rb +5 -5
  49. data/lib/stackone_hris_client/api_client.rb +1 -1
  50. data/lib/stackone_hris_client/api_error.rb +1 -1
  51. data/lib/stackone_hris_client/configuration.rb +2 -2
  52. data/lib/stackone_hris_client/models/account.rb +16 -7
  53. data/lib/stackone_hris_client/models/account_meta.rb +284 -0
  54. data/lib/stackone_hris_client/models/companies_paginated.rb +1 -1
  55. data/lib/stackone_hris_client/models/company.rb +1 -1
  56. data/lib/stackone_hris_client/models/company_result.rb +1 -1
  57. data/lib/stackone_hris_client/models/connect_session.rb +1 -1
  58. data/lib/stackone_hris_client/models/connect_session_authenticate.rb +1 -1
  59. data/lib/stackone_hris_client/models/connect_session_create.rb +1 -1
  60. data/lib/stackone_hris_client/models/connect_session_token.rb +1 -1
  61. data/lib/stackone_hris_client/models/country_code_enum.rb +1 -7
  62. data/lib/stackone_hris_client/models/create_employee_result.rb +250 -0
  63. data/lib/stackone_hris_client/models/employee.rb +117 -124
  64. data/lib/stackone_hris_client/models/employee_api_model.rb +523 -0
  65. data/lib/stackone_hris_client/models/employee_api_model_avatar.rb +234 -0
  66. data/lib/stackone_hris_client/models/employee_api_model_employment_status.rb +272 -0
  67. data/lib/stackone_hris_client/models/employee_api_model_employment_type.rb +272 -0
  68. data/lib/stackone_hris_client/models/employee_api_model_ethnicity.rb +272 -0
  69. data/lib/stackone_hris_client/models/employee_api_model_gender.rb +272 -0
  70. data/lib/stackone_hris_client/models/employee_api_model_home_location.rb +324 -0
  71. data/lib/stackone_hris_client/models/employee_api_model_marital_status.rb +272 -0
  72. data/lib/stackone_hris_client/models/employee_api_model_work_location.rb +324 -0
  73. data/lib/stackone_hris_client/models/employee_custom_field_type_enum.rb +264 -0
  74. data/lib/stackone_hris_client/models/employee_custom_fields.rb +279 -0
  75. data/lib/stackone_hris_client/models/employee_custom_fields_type.rb +272 -0
  76. data/lib/stackone_hris_client/models/employee_result.rb +1 -1
  77. data/lib/stackone_hris_client/models/employees_paginated.rb +1 -1
  78. data/lib/stackone_hris_client/models/employment.rb +22 -7
  79. data/lib/stackone_hris_client/models/employment_employment_contract_type.rb +272 -0
  80. data/lib/stackone_hris_client/models/employment_employment_type.rb +272 -0
  81. data/lib/stackone_hris_client/models/employment_pay_frequency.rb +272 -0
  82. data/lib/stackone_hris_client/models/employment_pay_period.rb +272 -0
  83. data/lib/stackone_hris_client/models/employment_result.rb +1 -1
  84. data/lib/stackone_hris_client/models/employment_schedule_type_enum.rb +264 -0
  85. data/lib/stackone_hris_client/models/employment_status_enum.rb +1 -7
  86. data/lib/stackone_hris_client/models/employment_type_enum.rb +1 -7
  87. data/lib/stackone_hris_client/models/employments_paginated.rb +1 -1
  88. data/lib/stackone_hris_client/models/ethnicity_enum.rb +1 -7
  89. data/lib/stackone_hris_client/models/gender_enum.rb +1 -7
  90. data/lib/stackone_hris_client/models/hris_create_employee_request_dto.rb +523 -0
  91. data/lib/stackone_hris_client/models/image.rb +1 -1
  92. data/lib/stackone_hris_client/models/location.rb +12 -8
  93. data/lib/stackone_hris_client/models/location_country.rb +272 -0
  94. data/lib/stackone_hris_client/models/location_location_type.rb +272 -0
  95. data/lib/stackone_hris_client/models/location_result.rb +1 -1
  96. data/lib/stackone_hris_client/models/location_type_enum.rb +1 -7
  97. data/lib/stackone_hris_client/models/locations_paginated.rb +1 -1
  98. data/lib/stackone_hris_client/models/marital_status_enum.rb +1 -7
  99. data/lib/stackone_hris_client/models/pay_frequency_enum.rb +1 -7
  100. data/lib/stackone_hris_client/models/pay_period_enum.rb +1 -7
  101. data/lib/stackone_hris_client/version.rb +2 -2
  102. data/lib/stackone_hris_client.rb +23 -1
  103. data/spec/api/accounts_api_spec.rb +30 -8
  104. data/spec/api/companies_api_spec.rb +13 -13
  105. data/spec/api/connect_sessions_api_spec.rb +8 -8
  106. data/spec/api/employees_api_spec.rb +60 -18
  107. data/spec/api/employments_api_spec.rb +13 -13
  108. data/spec/api/locations_api_spec.rb +9 -9
  109. data/spec/api_client_spec.rb +1 -1
  110. data/spec/configuration_spec.rb +1 -1
  111. data/spec/models/account_meta_spec.rb +50 -0
  112. data/spec/models/account_spec.rb +18 -12
  113. data/spec/models/companies_paginated_spec.rb +4 -4
  114. data/spec/models/company_result_spec.rb +3 -3
  115. data/spec/models/company_spec.rb +4 -4
  116. data/spec/models/connect_session_authenticate_spec.rb +5 -5
  117. data/spec/models/connect_session_create_spec.rb +17 -11
  118. data/spec/models/connect_session_spec.rb +14 -14
  119. data/spec/models/connect_session_token_spec.rb +15 -15
  120. data/spec/models/country_code_enum_spec.rb +4 -4
  121. data/spec/models/create_employee_result_spec.rb +46 -0
  122. data/spec/models/employee.rb +220 -0
  123. data/spec/models/employee_api_model_avatar_spec.rb +40 -0
  124. data/spec/models/employee_api_model_employment_status_spec.rb +44 -0
  125. data/spec/models/employee_api_model_employment_type_spec.rb +44 -0
  126. data/spec/models/employee_api_model_ethnicity_spec.rb +44 -0
  127. data/spec/models/employee_api_model_gender_spec.rb +44 -0
  128. data/spec/models/employee_api_model_home_location_spec.rb +94 -0
  129. data/spec/models/employee_api_model_marital_status_spec.rb +44 -0
  130. data/spec/models/employee_api_model_spec.rb +220 -0
  131. data/spec/models/employee_api_model_work_location_spec.rb +94 -0
  132. data/spec/models/employee_custom_field_type_enum_spec.rb +44 -0
  133. data/spec/models/employee_custom_fields_spec.rb +70 -0
  134. data/spec/models/employee_custom_fields_type_spec.rb +44 -0
  135. data/spec/models/employee_result_spec.rb +6 -6
  136. data/spec/models/employees_paginated_spec.rb +7 -7
  137. data/spec/models/employment_employment_contract_type_spec.rb +44 -0
  138. data/spec/models/employment_employment_type_spec.rb +44 -0
  139. data/spec/models/employment_pay_frequency_spec.rb +44 -0
  140. data/spec/models/employment_pay_period_spec.rb +44 -0
  141. data/spec/models/employment_result_spec.rb +3 -3
  142. data/spec/models/employment_schedule_type_enum_spec.rb +44 -0
  143. data/spec/models/employment_spec.rb +16 -10
  144. data/spec/models/employment_status_enum_spec.rb +4 -4
  145. data/spec/models/employment_type_enum_spec.rb +4 -4
  146. data/spec/models/employments_paginated_spec.rb +4 -4
  147. data/spec/models/ethnicity_enum_spec.rb +4 -4
  148. data/spec/models/gender_enum_spec.rb +4 -4
  149. data/spec/models/hris_create_employee_request_dto_spec.rb +220 -0
  150. data/spec/models/image_spec.rb +3 -3
  151. data/spec/models/location_country_spec.rb +44 -0
  152. data/spec/models/location_location_type_spec.rb +44 -0
  153. data/spec/models/location_result_spec.rb +3 -3
  154. data/spec/models/location_spec.rb +12 -12
  155. data/spec/models/location_type_enum_spec.rb +3 -3
  156. data/spec/models/locations_paginated_spec.rb +4 -4
  157. data/spec/models/marital_status_enum_spec.rb +4 -4
  158. data/spec/models/pay_frequency_enum_spec.rb +4 -4
  159. data/spec/models/pay_period_enum_spec.rb +3 -3
  160. data/spec/spec_helper.rb +1 -1
  161. data/stackone_hris_client.gemspec +1 -1
  162. metadata +92 -4
  163. data/spec/models/employee_spec.rb +0 -124
@@ -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,238 @@ module StackOneHRIS
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- #
22
+ # Creates an employee
23
+ # @param x_account_id [String] The account identifier
24
+ # @param hris_create_employee_request_dto [HrisCreateEmployeeRequestDto]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [CreateEmployeeResult]
27
+ def employee_create(x_account_id, hris_create_employee_request_dto, opts = {})
28
+ data, _status_code, _headers = employee_create_with_http_info(x_account_id, hris_create_employee_request_dto, opts)
29
+ data
30
+ end
31
+
32
+ # Creates an employee
33
+ # @param x_account_id [String] The account identifier
34
+ # @param hris_create_employee_request_dto [HrisCreateEmployeeRequestDto]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(CreateEmployeeResult, Integer, Hash)>] CreateEmployeeResult data, response status code and response headers
37
+ def employee_create_with_http_info(x_account_id, hris_create_employee_request_dto, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: EmployeesApi.employee_create ...'
40
+ end
41
+ # verify the required parameter 'x_account_id' is set
42
+ if @api_client.config.client_side_validation && x_account_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'x_account_id' when calling EmployeesApi.employee_create"
44
+ end
45
+ # verify the required parameter 'hris_create_employee_request_dto' is set
46
+ if @api_client.config.client_side_validation && hris_create_employee_request_dto.nil?
47
+ fail ArgumentError, "Missing the required parameter 'hris_create_employee_request_dto' when calling EmployeesApi.employee_create"
48
+ end
49
+ # resource path
50
+ local_var_path = '/unified/hris/employees'
51
+
52
+ # query parameters
53
+ query_params = opts[:query_params] || {}
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
+ # HTTP header 'Content-Type'
60
+ content_type = @api_client.select_header_content_type(['application/json'])
61
+ if !content_type.nil?
62
+ header_params['Content-Type'] = content_type
63
+ end
64
+ header_params[:'x-account-id'] = x_account_id
65
+
66
+ # form parameters
67
+ form_params = opts[:form_params] || {}
68
+
69
+ # http body (model)
70
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(hris_create_employee_request_dto)
71
+
72
+ # return_type
73
+ return_type = opts[:debug_return_type] || 'CreateEmployeeResult'
74
+
75
+ # auth_names
76
+ auth_names = opts[:debug_auth_names] || ['basic']
77
+
78
+ new_options = opts.merge(
79
+ :operation => :"EmployeesApi.employee_create",
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names,
85
+ :return_type => return_type
86
+ )
87
+
88
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug "API called: EmployeesApi#employee_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
+ end
92
+ return data, status_code, headers
93
+ end
94
+
95
+ # Replaces an employee
96
+ # @param id [String]
97
+ # @param x_account_id [String] The account identifier
98
+ # @param hris_create_employee_request_dto [HrisCreateEmployeeRequestDto]
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [CreateEmployeeResult]
101
+ def employee_replace(id, x_account_id, hris_create_employee_request_dto, opts = {})
102
+ data, _status_code, _headers = employee_replace_with_http_info(id, x_account_id, hris_create_employee_request_dto, opts)
103
+ data
104
+ end
105
+
106
+ # Replaces an employee
107
+ # @param id [String]
108
+ # @param x_account_id [String] The account identifier
109
+ # @param hris_create_employee_request_dto [HrisCreateEmployeeRequestDto]
110
+ # @param [Hash] opts the optional parameters
111
+ # @return [Array<(CreateEmployeeResult, Integer, Hash)>] CreateEmployeeResult data, response status code and response headers
112
+ def employee_replace_with_http_info(id, x_account_id, hris_create_employee_request_dto, opts = {})
113
+ if @api_client.config.debugging
114
+ @api_client.config.logger.debug 'Calling API: EmployeesApi.employee_replace ...'
115
+ end
116
+ # verify the required parameter 'id' is set
117
+ if @api_client.config.client_side_validation && id.nil?
118
+ fail ArgumentError, "Missing the required parameter 'id' when calling EmployeesApi.employee_replace"
119
+ end
120
+ # verify the required parameter 'x_account_id' is set
121
+ if @api_client.config.client_side_validation && x_account_id.nil?
122
+ fail ArgumentError, "Missing the required parameter 'x_account_id' when calling EmployeesApi.employee_replace"
123
+ end
124
+ # verify the required parameter 'hris_create_employee_request_dto' is set
125
+ if @api_client.config.client_side_validation && hris_create_employee_request_dto.nil?
126
+ fail ArgumentError, "Missing the required parameter 'hris_create_employee_request_dto' when calling EmployeesApi.employee_replace"
127
+ end
128
+ # resource path
129
+ local_var_path = '/unified/hris/employees/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
130
+
131
+ # query parameters
132
+ query_params = opts[:query_params] || {}
133
+
134
+ # header parameters
135
+ header_params = opts[:header_params] || {}
136
+ # HTTP header 'Accept' (if needed)
137
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
138
+ # HTTP header 'Content-Type'
139
+ content_type = @api_client.select_header_content_type(['application/json'])
140
+ if !content_type.nil?
141
+ header_params['Content-Type'] = content_type
142
+ end
143
+ header_params[:'x-account-id'] = x_account_id
144
+
145
+ # form parameters
146
+ form_params = opts[:form_params] || {}
147
+
148
+ # http body (model)
149
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(hris_create_employee_request_dto)
150
+
151
+ # return_type
152
+ return_type = opts[:debug_return_type] || 'CreateEmployeeResult'
153
+
154
+ # auth_names
155
+ auth_names = opts[:debug_auth_names] || ['basic']
156
+
157
+ new_options = opts.merge(
158
+ :operation => :"EmployeesApi.employee_replace",
159
+ :header_params => header_params,
160
+ :query_params => query_params,
161
+ :form_params => form_params,
162
+ :body => post_body,
163
+ :auth_names => auth_names,
164
+ :return_type => return_type
165
+ )
166
+
167
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
168
+ if @api_client.config.debugging
169
+ @api_client.config.logger.debug "API called: EmployeesApi#employee_replace\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
170
+ end
171
+ return data, status_code, headers
172
+ end
173
+
174
+ # Updates an employee
175
+ # @param id [String]
176
+ # @param x_account_id [String] The account identifier
177
+ # @param hris_create_employee_request_dto [HrisCreateEmployeeRequestDto]
178
+ # @param [Hash] opts the optional parameters
179
+ # @return [CreateEmployeeResult]
180
+ def employee_update(id, x_account_id, hris_create_employee_request_dto, opts = {})
181
+ data, _status_code, _headers = employee_update_with_http_info(id, x_account_id, hris_create_employee_request_dto, opts)
182
+ data
183
+ end
184
+
185
+ # Updates an employee
186
+ # @param id [String]
187
+ # @param x_account_id [String] The account identifier
188
+ # @param hris_create_employee_request_dto [HrisCreateEmployeeRequestDto]
189
+ # @param [Hash] opts the optional parameters
190
+ # @return [Array<(CreateEmployeeResult, Integer, Hash)>] CreateEmployeeResult data, response status code and response headers
191
+ def employee_update_with_http_info(id, x_account_id, hris_create_employee_request_dto, opts = {})
192
+ if @api_client.config.debugging
193
+ @api_client.config.logger.debug 'Calling API: EmployeesApi.employee_update ...'
194
+ end
195
+ # verify the required parameter 'id' is set
196
+ if @api_client.config.client_side_validation && id.nil?
197
+ fail ArgumentError, "Missing the required parameter 'id' when calling EmployeesApi.employee_update"
198
+ end
199
+ # verify the required parameter 'x_account_id' is set
200
+ if @api_client.config.client_side_validation && x_account_id.nil?
201
+ fail ArgumentError, "Missing the required parameter 'x_account_id' when calling EmployeesApi.employee_update"
202
+ end
203
+ # verify the required parameter 'hris_create_employee_request_dto' is set
204
+ if @api_client.config.client_side_validation && hris_create_employee_request_dto.nil?
205
+ fail ArgumentError, "Missing the required parameter 'hris_create_employee_request_dto' when calling EmployeesApi.employee_update"
206
+ end
207
+ # resource path
208
+ local_var_path = '/unified/hris/employees/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
209
+
210
+ # query parameters
211
+ query_params = opts[:query_params] || {}
212
+
213
+ # header parameters
214
+ header_params = opts[:header_params] || {}
215
+ # HTTP header 'Accept' (if needed)
216
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
217
+ # HTTP header 'Content-Type'
218
+ content_type = @api_client.select_header_content_type(['application/json'])
219
+ if !content_type.nil?
220
+ header_params['Content-Type'] = content_type
221
+ end
222
+ header_params[:'x-account-id'] = x_account_id
223
+
224
+ # form parameters
225
+ form_params = opts[:form_params] || {}
226
+
227
+ # http body (model)
228
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(hris_create_employee_request_dto)
229
+
230
+ # return_type
231
+ return_type = opts[:debug_return_type] || 'CreateEmployeeResult'
232
+
233
+ # auth_names
234
+ auth_names = opts[:debug_auth_names] || ['basic']
235
+
236
+ new_options = opts.merge(
237
+ :operation => :"EmployeesApi.employee_update",
238
+ :header_params => header_params,
239
+ :query_params => query_params,
240
+ :form_params => form_params,
241
+ :body => post_body,
242
+ :auth_names => auth_names,
243
+ :return_type => return_type
244
+ )
245
+
246
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
247
+ if @api_client.config.debugging
248
+ @api_client.config.logger.debug "API called: EmployeesApi#employee_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
249
+ end
250
+ return data, status_code, headers
251
+ end
252
+
253
+ # Get Employee
23
254
  # @param id [String]
24
255
  # @param x_account_id [String] The account identifier
25
256
  # @param [Hash] opts the optional parameters
@@ -31,12 +262,12 @@ module StackOneHRIS
31
262
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
32
263
  # @option opts [String] :expand The comma separated list of fields that will be expanded in the response (default to '')
33
264
  # @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)
265
+ def hris_employees_get(id, x_account_id, opts = {})
266
+ data, _status_code, _headers = hris_employees_get_with_http_info(id, x_account_id, opts)
36
267
  data
37
268
  end
38
269
 
39
- #
270
+ # Get Employee
40
271
  # @param id [String]
41
272
  # @param x_account_id [String] The account identifier
42
273
  # @param [Hash] opts the optional parameters
@@ -48,17 +279,17 @@ module StackOneHRIS
48
279
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
49
280
  # @option opts [String] :expand The comma separated list of fields that will be expanded in the response (default to '')
50
281
  # @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 = {})
282
+ def hris_employees_get_with_http_info(id, x_account_id, opts = {})
52
283
  if @api_client.config.debugging
53
- @api_client.config.logger.debug 'Calling API: EmployeesApi.employees_get ...'
284
+ @api_client.config.logger.debug 'Calling API: EmployeesApi.hris_employees_get ...'
54
285
  end
55
286
  # verify the required parameter 'id' is set
56
287
  if @api_client.config.client_side_validation && id.nil?
57
- fail ArgumentError, "Missing the required parameter 'id' when calling EmployeesApi.employees_get"
288
+ fail ArgumentError, "Missing the required parameter 'id' when calling EmployeesApi.hris_employees_get"
58
289
  end
59
290
  # verify the required parameter 'x_account_id' is set
60
291
  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"
292
+ fail ArgumentError, "Missing the required parameter 'x_account_id' when calling EmployeesApi.hris_employees_get"
62
293
  end
63
294
  # resource path
64
295
  local_var_path = '/unified/hris/employees/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
@@ -92,7 +323,7 @@ module StackOneHRIS
92
323
  auth_names = opts[:debug_auth_names] || ['basic']
93
324
 
94
325
  new_options = opts.merge(
95
- :operation => :"EmployeesApi.employees_get",
326
+ :operation => :"EmployeesApi.hris_employees_get",
96
327
  :header_params => header_params,
97
328
  :query_params => query_params,
98
329
  :form_params => form_params,
@@ -103,12 +334,12 @@ module StackOneHRIS
103
334
 
104
335
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
105
336
  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}"
337
+ @api_client.config.logger.debug "API called: EmployeesApi#hris_employees_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
107
338
  end
108
339
  return data, status_code, headers
109
340
  end
110
341
 
111
- #
342
+ # List Employees
112
343
  # @param x_account_id [String] The account identifier
113
344
  # @param [Hash] opts the optional parameters
114
345
  # @option opts [String] :page The page number of the results to fetch
@@ -119,12 +350,12 @@ module StackOneHRIS
119
350
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
120
351
  # @option opts [String] :expand The comma separated list of fields that will be expanded in the response (default to '')
121
352
  # @return [EmployeesPaginated]
122
- def employees_list(x_account_id, opts = {})
123
- data, _status_code, _headers = employees_list_with_http_info(x_account_id, opts)
353
+ def hris_employees_list(x_account_id, opts = {})
354
+ data, _status_code, _headers = hris_employees_list_with_http_info(x_account_id, opts)
124
355
  data
125
356
  end
126
357
 
127
- #
358
+ # List Employees
128
359
  # @param x_account_id [String] The account identifier
129
360
  # @param [Hash] opts the optional parameters
130
361
  # @option opts [String] :page The page number of the results to fetch
@@ -135,13 +366,13 @@ module StackOneHRIS
135
366
  # @option opts [String] :updated_after Use a string with a date to only select results updated after that given date
136
367
  # @option opts [String] :expand The comma separated list of fields that will be expanded in the response (default to '')
137
368
  # @return [Array<(EmployeesPaginated, Integer, Hash)>] EmployeesPaginated data, response status code and response headers
138
- def employees_list_with_http_info(x_account_id, opts = {})
369
+ def hris_employees_list_with_http_info(x_account_id, opts = {})
139
370
  if @api_client.config.debugging
140
- @api_client.config.logger.debug 'Calling API: EmployeesApi.employees_list ...'
371
+ @api_client.config.logger.debug 'Calling API: EmployeesApi.hris_employees_list ...'
141
372
  end
142
373
  # verify the required parameter 'x_account_id' is set
143
374
  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"
375
+ fail ArgumentError, "Missing the required parameter 'x_account_id' when calling EmployeesApi.hris_employees_list"
145
376
  end
146
377
  # resource path
147
378
  local_var_path = '/unified/hris/employees'
@@ -175,7 +406,7 @@ module StackOneHRIS
175
406
  auth_names = opts[:debug_auth_names] || ['basic']
176
407
 
177
408
  new_options = opts.merge(
178
- :operation => :"EmployeesApi.employees_list",
409
+ :operation => :"EmployeesApi.hris_employees_list",
179
410
  :header_params => header_params,
180
411
  :query_params => query_params,
181
412
  :form_params => form_params,
@@ -186,7 +417,7 @@ module StackOneHRIS
186
417
 
187
418
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
188
419
  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}"
420
+ @api_client.config.logger.debug "API called: EmployeesApi#hris_employees_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
190
421
  end
191
422
  return data, status_code, headers
192
423
  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
+ # Get Employment
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 [EmploymentResult]
33
- def employments_get(id, x_account_id, opts = {})
34
- data, _status_code, _headers = employments_get_with_http_info(id, x_account_id, opts)
33
+ def hris_employments_get(id, x_account_id, opts = {})
34
+ data, _status_code, _headers = hris_employments_get_with_http_info(id, x_account_id, opts)
35
35
  data
36
36
  end
37
37
 
38
- #
38
+ # Get Employment
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<(EmploymentResult, Integer, Hash)>] EmploymentResult data, response status code and response headers
49
- def employments_get_with_http_info(id, x_account_id, opts = {})
49
+ def hris_employments_get_with_http_info(id, x_account_id, opts = {})
50
50
  if @api_client.config.debugging
51
- @api_client.config.logger.debug 'Calling API: EmploymentsApi.employments_get ...'
51
+ @api_client.config.logger.debug 'Calling API: EmploymentsApi.hris_employments_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 EmploymentsApi.employments_get"
55
+ fail ArgumentError, "Missing the required parameter 'id' when calling EmploymentsApi.hris_employments_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 EmploymentsApi.employments_get"
59
+ fail ArgumentError, "Missing the required parameter 'x_account_id' when calling EmploymentsApi.hris_employments_get"
60
60
  end
61
61
  # resource path
62
62
  local_var_path = '/unified/hris/employments/{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 => :"EmploymentsApi.employments_get",
92
+ :operation => :"EmploymentsApi.hris_employments_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: EmploymentsApi#employments_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
103
+ @api_client.config.logger.debug "API called: EmploymentsApi#hris_employments_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 Employments
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 [EmploymentsPaginated]
118
- def employments_list(x_account_id, opts = {})
119
- data, _status_code, _headers = employments_list_with_http_info(x_account_id, opts)
118
+ def hris_employments_list(x_account_id, opts = {})
119
+ data, _status_code, _headers = hris_employments_list_with_http_info(x_account_id, opts)
120
120
  data
121
121
  end
122
122
 
123
- #
123
+ # List Employments
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<(EmploymentsPaginated, Integer, Hash)>] EmploymentsPaginated data, response status code and response headers
133
- def employments_list_with_http_info(x_account_id, opts = {})
133
+ def hris_employments_list_with_http_info(x_account_id, opts = {})
134
134
  if @api_client.config.debugging
135
- @api_client.config.logger.debug 'Calling API: EmploymentsApi.employments_list ...'
135
+ @api_client.config.logger.debug 'Calling API: EmploymentsApi.hris_employments_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 EmploymentsApi.employments_list"
139
+ fail ArgumentError, "Missing the required parameter 'x_account_id' when calling EmploymentsApi.hris_employments_list"
140
140
  end
141
141
  # resource path
142
142
  local_var_path = '/unified/hris/employments'
@@ -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 => :"EmploymentsApi.employments_list",
172
+ :operation => :"EmploymentsApi.hris_employments_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: EmploymentsApi#employments_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
183
+ @api_client.config.logger.debug "API called: EmploymentsApi#hris_employments_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
+ # Get location
23
23
  # @param id [String]
24
24
  # @param x_account_id [String] The account identifier
25
25
  # @param [Hash] opts the optional parameters
@@ -35,7 +35,7 @@ module StackOneHRIS
35
35
  data
36
36
  end
37
37
 
38
- #
38
+ # Get location
39
39
  # @param id [String]
40
40
  # @param x_account_id [String] The account identifier
41
41
  # @param [Hash] opts the optional parameters
@@ -105,7 +105,7 @@ module StackOneHRIS
105
105
  return data, status_code, headers
106
106
  end
107
107
 
108
- #
108
+ # List locations
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
@@ -120,7 +120,7 @@ module StackOneHRIS
120
120
  data
121
121
  end
122
122
 
123
- #
123
+ # List locations
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
@@ -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
 
@@ -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
 
@@ -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
 
@@ -232,7 +232,7 @@ module StackOneHRIS
232
232
 
233
233
  return '' if region_slug.nil? || region_slug.empty? || region_slug == 'dev'
234
234
 
235
- "api.#{region_slug}."
235
+ "api."
236
236
  end
237
237
 
238
238
  # Returns base URL for specified operation based on server settings
@@ -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,6 +19,8 @@ module StackOneHRIS
19
19
 
20
20
  attr_accessor :provider
21
21
 
22
+ attr_accessor :active
23
+
22
24
  attr_accessor :origin_owner_id
23
25
 
24
26
  attr_accessor :origin_owner_name
@@ -36,6 +38,7 @@ module StackOneHRIS
36
38
  {
37
39
  :'id' => :'id',
38
40
  :'provider' => :'provider',
41
+ :'active' => :'active',
39
42
  :'origin_owner_id' => :'origin_owner_id',
40
43
  :'origin_owner_name' => :'origin_owner_name',
41
44
  :'origin_username' => :'origin_username',
@@ -55,6 +58,7 @@ module StackOneHRIS
55
58
  {
56
59
  :'id' => :'String',
57
60
  :'provider' => :'String',
61
+ :'active' => :'Boolean',
58
62
  :'origin_owner_id' => :'String',
59
63
  :'origin_owner_name' => :'String',
60
64
  :'origin_username' => :'String',
@@ -93,6 +97,10 @@ module StackOneHRIS
93
97
  self.provider = attributes[:'provider']
94
98
  end
95
99
 
100
+ if attributes.key?(:'active')
101
+ self.active = attributes[:'active']
102
+ end
103
+
96
104
  if attributes.key?(:'origin_owner_id')
97
105
  self.origin_owner_id = attributes[:'origin_owner_id']
98
106
  end
@@ -130,6 +138,10 @@ module StackOneHRIS
130
138
  invalid_properties.push('invalid value for "provider", provider cannot be nil.')
131
139
  end
132
140
 
141
+ if @active.nil?
142
+ invalid_properties.push('invalid value for "active", active cannot be nil.')
143
+ end
144
+
133
145
  if @origin_owner_id.nil?
134
146
  invalid_properties.push('invalid value for "origin_owner_id", origin_owner_id cannot be nil.')
135
147
  end
@@ -142,10 +154,6 @@ module StackOneHRIS
142
154
  invalid_properties.push('invalid value for "origin_username", origin_username cannot be nil.')
143
155
  end
144
156
 
145
- if @credentials.nil?
146
- invalid_properties.push('invalid value for "credentials", credentials cannot be nil.')
147
- end
148
-
149
157
  if @created_at.nil?
150
158
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
151
159
  end
@@ -162,10 +170,10 @@ module StackOneHRIS
162
170
  def valid?
163
171
  return false if @id.nil?
164
172
  return false if @provider.nil?
173
+ return false if @active.nil?
165
174
  return false if @origin_owner_id.nil?
166
175
  return false if @origin_owner_name.nil?
167
176
  return false if @origin_username.nil?
168
- return false if @credentials.nil?
169
177
  return false if @created_at.nil?
170
178
  return false if @updated_at.nil?
171
179
  true
@@ -178,6 +186,7 @@ module StackOneHRIS
178
186
  self.class == o.class &&
179
187
  id == o.id &&
180
188
  provider == o.provider &&
189
+ active == o.active &&
181
190
  origin_owner_id == o.origin_owner_id &&
182
191
  origin_owner_name == o.origin_owner_name &&
183
192
  origin_username == o.origin_username &&
@@ -195,7 +204,7 @@ module StackOneHRIS
195
204
  # Calculates hash code according to all attributes.
196
205
  # @return [Integer] Hash code
197
206
  def hash
198
- [id, provider, origin_owner_id, origin_owner_name, origin_username, credentials, created_at, updated_at].hash
207
+ [id, provider, active, origin_owner_id, origin_owner_name, origin_username, credentials, created_at, updated_at].hash
199
208
  end
200
209
 
201
210
  # Builds the object from hash