merge_hris_client 1.0.4 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -12
  3. data/docs/AccountDetails.md +11 -7
  4. data/docs/AccountDetailsAndActions.md +2 -0
  5. data/docs/AccountDetailsApi.md +10 -7
  6. data/docs/AccountIntegration.md +4 -4
  7. data/docs/AccountTokenApi.md +2 -2
  8. data/docs/AvailableActionsApi.md +2 -2
  9. data/docs/BankInfo.md +1 -1
  10. data/docs/BankInfoApi.md +8 -12
  11. data/docs/Benefit.md +2 -2
  12. data/docs/BenefitsApi.md +4 -4
  13. data/docs/CompaniesApi.md +4 -4
  14. data/docs/Company.md +2 -2
  15. data/docs/DataPassthroughRequest.md +3 -1
  16. data/docs/DebugModeLog.md +22 -0
  17. data/docs/DebugModelLogSummary.md +22 -0
  18. data/docs/Deduction.md +2 -2
  19. data/docs/DeductionsApi.md +4 -4
  20. data/docs/DeleteAccountApi.md +3 -2
  21. data/docs/Earning.md +3 -3
  22. data/docs/EarningTypeEnum.md +15 -0
  23. data/docs/Employee.md +17 -15
  24. data/docs/EmployeeEndpointRequest.md +18 -0
  25. data/docs/EmployeePayrollRun.md +2 -2
  26. data/docs/EmployeePayrollRunsApi.md +4 -4
  27. data/docs/EmployeeRequest.md +70 -0
  28. data/docs/EmployeeResponse.md +24 -0
  29. data/docs/EmployeesApi.md +232 -4
  30. data/docs/Employment.md +6 -4
  31. data/docs/EmploymentsApi.md +5 -4
  32. data/docs/EncodingEnum.md +15 -0
  33. data/docs/EndUserDetailsRequest.md +5 -3
  34. data/docs/ForceResyncApi.md +2 -2
  35. data/docs/GenerateKeyApi.md +2 -2
  36. data/docs/Group.md +28 -0
  37. data/docs/GroupTypeEnum.md +15 -0
  38. data/docs/GroupsApi.md +177 -0
  39. data/docs/IgnoreCommonModel.md +20 -0
  40. data/docs/IssuesApi.md +13 -4
  41. data/docs/LinkTokenApi.md +3 -3
  42. data/docs/LinkedAccountStatus.md +20 -0
  43. data/docs/LinkedAccountsApi.md +2 -2
  44. data/docs/Location.md +3 -1
  45. data/docs/LocationsApi.md +4 -4
  46. data/docs/MetaResponse.md +24 -0
  47. data/docs/MultipartFormFieldRequest.md +26 -0
  48. data/docs/PaginatedGroupList.md +22 -0
  49. data/docs/PassthroughApi.md +2 -2
  50. data/docs/PayGroupsApi.md +4 -4
  51. data/docs/PayrollRunsApi.md +4 -4
  52. data/docs/RegenerateKeyApi.md +2 -2
  53. data/docs/SyncStatusApi.md +0 -1
  54. data/docs/Tax.md +2 -2
  55. data/docs/Team.md +1 -1
  56. data/docs/TeamsApi.md +5 -4
  57. data/docs/TimeOff.md +4 -4
  58. data/docs/TimeOffApi.md +80 -6
  59. data/docs/TimeOffBalance.md +2 -2
  60. data/docs/TimeOffRequest.md +4 -4
  61. data/docs/TimeOffResponse.md +3 -1
  62. data/docs/WebhookReceiver.md +22 -0
  63. data/docs/WebhookReceiverRequest.md +22 -0
  64. data/docs/WebhookReceiversApi.md +153 -0
  65. data/lib/merge_hris_client/api/account_details_api.rb +10 -3
  66. data/lib/merge_hris_client/api/bank_info_api.rb +4 -9
  67. data/lib/merge_hris_client/api/employees_api.rb +216 -2
  68. data/lib/merge_hris_client/api/employments_api.rb +2 -2
  69. data/lib/merge_hris_client/api/groups_api.rb +182 -0
  70. data/lib/merge_hris_client/api/issues_api.rb +12 -0
  71. data/lib/merge_hris_client/api/linked_accounts_api.rb +1 -1
  72. data/lib/merge_hris_client/api/sync_status_api.rb +0 -62
  73. data/lib/merge_hris_client/api/time_off_api.rb +65 -0
  74. data/lib/merge_hris_client/api/webhook_receivers_api.rb +154 -0
  75. data/lib/merge_hris_client/configuration.rb +6 -4
  76. data/lib/merge_hris_client/models/account_details.rb +23 -5
  77. data/lib/merge_hris_client/models/account_details_and_actions.rb +16 -2
  78. data/lib/merge_hris_client/models/account_details_and_actions_integration.rb +1 -1
  79. data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +1 -0
  80. data/lib/merge_hris_client/models/account_integration.rb +5 -27
  81. data/lib/merge_hris_client/models/account_token.rb +1 -1
  82. data/lib/merge_hris_client/models/account_type_enum.rb +1 -0
  83. data/lib/merge_hris_client/models/available_actions.rb +1 -1
  84. data/lib/merge_hris_client/models/bank_info.rb +0 -1
  85. data/lib/merge_hris_client/models/benefit.rb +1 -2
  86. data/lib/merge_hris_client/models/categories_enum.rb +1 -0
  87. data/lib/merge_hris_client/models/category_enum.rb +1 -0
  88. data/lib/merge_hris_client/models/company.rb +1 -1
  89. data/lib/merge_hris_client/models/country_enum.rb +1 -0
  90. data/lib/merge_hris_client/models/data_passthrough_request.rb +17 -3
  91. data/lib/merge_hris_client/models/debug_mode_log.rb +251 -0
  92. data/lib/merge_hris_client/models/debug_model_log_summary.rb +251 -0
  93. data/lib/merge_hris_client/models/deduction.rb +0 -1
  94. data/lib/merge_hris_client/models/earning.rb +4 -7
  95. data/lib/merge_hris_client/models/earning_type_enum.rb +38 -0
  96. data/lib/merge_hris_client/models/employee.rb +14 -9
  97. data/lib/merge_hris_client/models/employee_endpoint_request.rb +223 -0
  98. data/lib/merge_hris_client/models/employee_payroll_run.rb +1 -3
  99. data/lib/merge_hris_client/models/employee_request.rb +564 -0
  100. data/lib/merge_hris_client/models/employee_response.rb +266 -0
  101. data/lib/merge_hris_client/models/employment.rb +12 -3
  102. data/lib/merge_hris_client/models/employment_status_enum.rb +1 -1
  103. data/lib/merge_hris_client/models/employment_type_enum.rb +1 -1
  104. data/lib/merge_hris_client/models/encoding_enum.rb +36 -0
  105. data/lib/merge_hris_client/models/end_user_details_request.rb +74 -27
  106. data/lib/merge_hris_client/models/error_validation_problem.rb +1 -1
  107. data/lib/merge_hris_client/models/ethnicity_enum.rb +1 -1
  108. data/lib/merge_hris_client/models/flsa_status_enum.rb +1 -1
  109. data/lib/merge_hris_client/models/gender_enum.rb +1 -1
  110. data/lib/merge_hris_client/models/generate_remote_key_request.rb +1 -1
  111. data/lib/merge_hris_client/models/group.rb +275 -0
  112. data/lib/merge_hris_client/models/group_type_enum.rb +38 -0
  113. data/lib/merge_hris_client/models/ignore_common_model.rb +247 -0
  114. data/lib/merge_hris_client/models/ignore_common_model_request.rb +256 -0
  115. data/lib/merge_hris_client/models/issue.rb +1 -1
  116. data/lib/merge_hris_client/models/issue_status_enum.rb +1 -1
  117. data/lib/merge_hris_client/models/link_token.rb +1 -1
  118. data/lib/merge_hris_client/models/linked_account_status.rb +237 -0
  119. data/lib/merge_hris_client/models/location.rb +13 -2
  120. data/lib/merge_hris_client/models/location_type_enum.rb +36 -0
  121. data/lib/merge_hris_client/models/marital_status_enum.rb +1 -1
  122. data/lib/merge_hris_client/models/meta_response.rb +262 -0
  123. data/lib/merge_hris_client/models/method_enum.rb +1 -1
  124. data/lib/merge_hris_client/models/model_operation.rb +1 -1
  125. data/lib/merge_hris_client/models/multipart_form_field_request.rb +341 -0
  126. data/lib/merge_hris_client/models/paginated_account_details_and_actions_list.rb +1 -1
  127. data/lib/merge_hris_client/models/paginated_bank_info_list.rb +1 -1
  128. data/lib/merge_hris_client/models/paginated_benefit_list.rb +1 -1
  129. data/lib/merge_hris_client/models/paginated_company_list.rb +1 -1
  130. data/lib/merge_hris_client/models/paginated_deduction_list.rb +1 -1
  131. data/lib/merge_hris_client/models/paginated_employee_list.rb +1 -1
  132. data/lib/merge_hris_client/models/paginated_employee_payroll_run_list.rb +1 -1
  133. data/lib/merge_hris_client/models/paginated_employment_list.rb +1 -1
  134. data/lib/merge_hris_client/models/paginated_group_list.rb +240 -0
  135. data/lib/merge_hris_client/models/paginated_issue_list.rb +1 -1
  136. data/lib/merge_hris_client/models/paginated_location_list.rb +1 -1
  137. data/lib/merge_hris_client/models/paginated_pay_group_list.rb +1 -1
  138. data/lib/merge_hris_client/models/paginated_payroll_run_list.rb +1 -1
  139. data/lib/merge_hris_client/models/paginated_sync_status_list.rb +1 -1
  140. data/lib/merge_hris_client/models/paginated_team_list.rb +1 -1
  141. data/lib/merge_hris_client/models/paginated_time_off_balance_list.rb +1 -1
  142. data/lib/merge_hris_client/models/paginated_time_off_list.rb +1 -1
  143. data/lib/merge_hris_client/models/pay_currency_enum.rb +1 -1
  144. data/lib/merge_hris_client/models/pay_frequency_enum.rb +1 -2
  145. data/lib/merge_hris_client/models/pay_period_enum.rb +1 -1
  146. data/lib/merge_hris_client/models/payroll_run.rb +1 -1
  147. data/lib/merge_hris_client/models/policy_type_enum.rb +1 -0
  148. data/lib/merge_hris_client/models/reason_enum.rb +37 -0
  149. data/lib/merge_hris_client/models/remote_data.rb +1 -1
  150. data/lib/merge_hris_client/models/remote_data_request.rb +1 -1
  151. data/lib/merge_hris_client/models/remote_key.rb +1 -1
  152. data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +1 -1
  153. data/lib/merge_hris_client/models/remote_response.rb +1 -1
  154. data/lib/merge_hris_client/models/request_format_enum.rb +2 -0
  155. data/lib/merge_hris_client/models/request_type_enum.rb +1 -0
  156. data/lib/merge_hris_client/models/run_state_enum.rb +1 -1
  157. data/lib/merge_hris_client/models/run_type_enum.rb +1 -11
  158. data/lib/merge_hris_client/models/sync_status.rb +1 -1
  159. data/lib/merge_hris_client/models/sync_status_status_enum.rb +1 -2
  160. data/lib/merge_hris_client/models/tax.rb +3 -6
  161. data/lib/merge_hris_client/models/team.rb +0 -1
  162. data/lib/merge_hris_client/models/time_off.rb +0 -2
  163. data/lib/merge_hris_client/models/time_off_balance.rb +1 -2
  164. data/lib/merge_hris_client/models/time_off_endpoint_request.rb +1 -1
  165. data/lib/merge_hris_client/models/time_off_request.rb +1 -3
  166. data/lib/merge_hris_client/models/time_off_response.rb +16 -5
  167. data/lib/merge_hris_client/models/time_off_status_enum.rb +1 -1
  168. data/lib/merge_hris_client/models/units_enum.rb +1 -1
  169. data/lib/merge_hris_client/models/validation_problem_source.rb +1 -1
  170. data/lib/merge_hris_client/models/warning_validation_problem.rb +1 -1
  171. data/lib/merge_hris_client/models/webhook_receiver.rb +246 -0
  172. data/lib/merge_hris_client/models/webhook_receiver_request.rb +280 -0
  173. data/lib/merge_hris_client/version.rb +1 -1
  174. data/lib/merge_hris_client.rb +21 -2
  175. data/pull_request_template.md +3 -1
  176. data/spec/api/account_details_api_spec.rb +1 -0
  177. data/spec/api/bank_info_api_spec.rb +2 -4
  178. data/spec/api/employees_api_spec.rb +38 -0
  179. data/spec/api/groups_api_spec.rb +68 -0
  180. data/spec/api/issues_api_spec.rb +4 -0
  181. data/spec/api/time_off_api_spec.rb +12 -0
  182. data/spec/models/account_details_and_actions_spec.rb +6 -0
  183. data/spec/models/account_details_spec.rb +12 -0
  184. data/spec/models/data_passthrough_request_spec.rb +6 -0
  185. data/spec/models/debug_mode_log_spec.rb +46 -0
  186. data/spec/models/debug_model_log_summary_spec.rb +46 -0
  187. data/spec/models/earning_type_enum_spec.rb +28 -0
  188. data/spec/models/employee_endpoint_request_spec.rb +34 -0
  189. data/spec/models/employee_request_spec.rb +190 -0
  190. data/spec/models/employee_response_spec.rb +52 -0
  191. data/spec/models/employee_spec.rb +6 -0
  192. data/spec/models/employment_spec.rb +6 -0
  193. data/spec/models/encoding_enum_spec.rb +28 -0
  194. data/spec/models/end_user_details_request_spec.rb +6 -0
  195. data/spec/models/group_spec.rb +64 -0
  196. data/spec/models/group_type_enum_spec.rb +28 -0
  197. data/spec/models/ignore_common_model_spec.rb +40 -0
  198. data/spec/models/location_spec.rb +6 -0
  199. data/spec/models/multipart_form_field_request_spec.rb +58 -0
  200. data/spec/models/paginated_group_list_spec.rb +46 -0
  201. data/spec/models/time_off_response_spec.rb +6 -0
  202. metadata +153 -89
  203. data/test_ruby.rb +0 -30
@@ -23,6 +23,7 @@ module MergeHRISClient
23
23
  # @param x_account_token [String] Token identifying the end user.
24
24
  # @param time_off_endpoint_request [TimeOffEndpointRequest]
25
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
26
27
  # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
27
28
  # @return [TimeOffResponse]
28
29
  def time_off_create(x_account_token, time_off_endpoint_request, opts = {})
@@ -34,6 +35,7 @@ module MergeHRISClient
34
35
  # @param x_account_token [String] Token identifying the end user.
35
36
  # @param time_off_endpoint_request [TimeOffEndpointRequest]
36
37
  # @param [Hash] opts the optional parameters
38
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
37
39
  # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
38
40
  # @return [Array<(TimeOffResponse, Integer, Hash)>] TimeOffResponse data, response status code and response headers
39
41
  def time_off_create_with_http_info(x_account_token, time_off_endpoint_request, opts = {})
@@ -53,6 +55,7 @@ module MergeHRISClient
53
55
 
54
56
  # query parameters
55
57
  query_params = opts[:query_params] || {}
58
+ query_params[:'is_debug_mode'] = opts[:'is_debug_mode'] if !opts[:'is_debug_mode'].nil?
56
59
  query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
57
60
 
58
61
  # header parameters
@@ -208,6 +211,68 @@ module MergeHRISClient
208
211
  return data, status_code, headers
209
212
  end
210
213
 
214
+ # Returns metadata for `TimeOff` POSTs.
215
+ # @param x_account_token [String] Token identifying the end user.
216
+ # @param [Hash] opts the optional parameters
217
+ # @return [MetaResponse]
218
+ def time_off_meta_post_retrieve(x_account_token, opts = {})
219
+ data, _status_code, _headers = time_off_meta_post_retrieve_with_http_info(x_account_token, opts)
220
+ data
221
+ end
222
+
223
+ # Returns metadata for &#x60;TimeOff&#x60; POSTs.
224
+ # @param x_account_token [String] Token identifying the end user.
225
+ # @param [Hash] opts the optional parameters
226
+ # @return [Array<(MetaResponse, Integer, Hash)>] MetaResponse data, response status code and response headers
227
+ def time_off_meta_post_retrieve_with_http_info(x_account_token, opts = {})
228
+ if @api_client.config.debugging
229
+ @api_client.config.logger.debug 'Calling API: TimeOffApi.time_off_meta_post_retrieve ...'
230
+ end
231
+ # verify the required parameter 'x_account_token' is set
232
+ if @api_client.config.client_side_validation && x_account_token.nil?
233
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling TimeOffApi.time_off_meta_post_retrieve"
234
+ end
235
+ # resource path
236
+ local_var_path = '/time-off/meta/post'
237
+
238
+ # query parameters
239
+ query_params = opts[:query_params] || {}
240
+
241
+ # header parameters
242
+ header_params = opts[:header_params] || {}
243
+ # HTTP header 'Accept' (if needed)
244
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
245
+ header_params[:'X-Account-Token'] = x_account_token
246
+
247
+ # form parameters
248
+ form_params = opts[:form_params] || {}
249
+
250
+ # http body (model)
251
+ post_body = opts[:debug_body]
252
+
253
+ # return_type
254
+ return_type = opts[:debug_return_type] || 'MetaResponse'
255
+
256
+ # auth_names
257
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
258
+
259
+ new_options = opts.merge(
260
+ :operation => :"TimeOffApi.time_off_meta_post_retrieve",
261
+ :header_params => header_params,
262
+ :query_params => query_params,
263
+ :form_params => form_params,
264
+ :body => post_body,
265
+ :auth_names => auth_names,
266
+ :return_type => return_type
267
+ )
268
+
269
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
270
+ if @api_client.config.debugging
271
+ @api_client.config.logger.debug "API called: TimeOffApi#time_off_meta_post_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
272
+ end
273
+ return data, status_code, headers
274
+ end
275
+
211
276
  # Returns a `TimeOff` object with the given `id`.
212
277
  # @param x_account_token [String] Token identifying the end user.
213
278
  # @param id [String]
@@ -0,0 +1,154 @@
1
+ =begin
2
+ #Merge HRIS API
3
+
4
+ #The unified API for building rich integrations with multiple HR Information System platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module MergeHRISClient
16
+ class WebhookReceiversApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Creates a `WebhookReceiver` object with the given values.
23
+ # @param x_account_token [String] Token identifying the end user.
24
+ # @param webhook_receiver_request [WebhookReceiverRequest]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [WebhookReceiver]
27
+ def webhook_receivers_create(x_account_token, webhook_receiver_request, opts = {})
28
+ data, _status_code, _headers = webhook_receivers_create_with_http_info(x_account_token, webhook_receiver_request, opts)
29
+ data
30
+ end
31
+
32
+ # Creates a &#x60;WebhookReceiver&#x60; object with the given values.
33
+ # @param x_account_token [String] Token identifying the end user.
34
+ # @param webhook_receiver_request [WebhookReceiverRequest]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(WebhookReceiver, Integer, Hash)>] WebhookReceiver data, response status code and response headers
37
+ def webhook_receivers_create_with_http_info(x_account_token, webhook_receiver_request, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: WebhookReceiversApi.webhook_receivers_create ...'
40
+ end
41
+ # verify the required parameter 'x_account_token' is set
42
+ if @api_client.config.client_side_validation && x_account_token.nil?
43
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling WebhookReceiversApi.webhook_receivers_create"
44
+ end
45
+ # verify the required parameter 'webhook_receiver_request' is set
46
+ if @api_client.config.client_side_validation && webhook_receiver_request.nil?
47
+ fail ArgumentError, "Missing the required parameter 'webhook_receiver_request' when calling WebhookReceiversApi.webhook_receivers_create"
48
+ end
49
+ # resource path
50
+ local_var_path = '/webhook-receivers'
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
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
61
+ header_params[:'X-Account-Token'] = x_account_token
62
+
63
+ # form parameters
64
+ form_params = opts[:form_params] || {}
65
+
66
+ # http body (model)
67
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(webhook_receiver_request)
68
+
69
+ # return_type
70
+ return_type = opts[:debug_return_type] || 'WebhookReceiver'
71
+
72
+ # auth_names
73
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
74
+
75
+ new_options = opts.merge(
76
+ :operation => :"WebhookReceiversApi.webhook_receivers_create",
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type
83
+ )
84
+
85
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: WebhookReceiversApi#webhook_receivers_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+
92
+ # Returns a list of `WebhookReceiver` objects.
93
+ # @param x_account_token [String] Token identifying the end user.
94
+ # @param [Hash] opts the optional parameters
95
+ # @return [Array<WebhookReceiver>]
96
+ def webhook_receivers_list(x_account_token, opts = {})
97
+ data, _status_code, _headers = webhook_receivers_list_with_http_info(x_account_token, opts)
98
+ data
99
+ end
100
+
101
+ # Returns a list of &#x60;WebhookReceiver&#x60; objects.
102
+ # @param x_account_token [String] Token identifying the end user.
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(Array<WebhookReceiver>, Integer, Hash)>] Array<WebhookReceiver> data, response status code and response headers
105
+ def webhook_receivers_list_with_http_info(x_account_token, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: WebhookReceiversApi.webhook_receivers_list ...'
108
+ end
109
+ # verify the required parameter 'x_account_token' is set
110
+ if @api_client.config.client_side_validation && x_account_token.nil?
111
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling WebhookReceiversApi.webhook_receivers_list"
112
+ end
113
+ # resource path
114
+ local_var_path = '/webhook-receivers'
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+
119
+ # header parameters
120
+ header_params = opts[:header_params] || {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
123
+ header_params[:'X-Account-Token'] = x_account_token
124
+
125
+ # form parameters
126
+ form_params = opts[:form_params] || {}
127
+
128
+ # http body (model)
129
+ post_body = opts[:debug_body]
130
+
131
+ # return_type
132
+ return_type = opts[:debug_return_type] || 'Array<WebhookReceiver>'
133
+
134
+ # auth_names
135
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
136
+
137
+ new_options = opts.merge(
138
+ :operation => :"WebhookReceiversApi.webhook_receivers_list",
139
+ :header_params => header_params,
140
+ :query_params => query_params,
141
+ :form_params => form_params,
142
+ :body => post_body,
143
+ :auth_names => auth_names,
144
+ :return_type => return_type
145
+ )
146
+
147
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
148
+ if @api_client.config.debugging
149
+ @api_client.config.logger.debug "API called: WebhookReceiversApi#webhook_receivers_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
+ end
151
+ return data, status_code, headers
152
+ end
153
+ end
154
+ end
@@ -197,11 +197,13 @@ module MergeHRISClient
197
197
 
198
198
  # Gets API key (with prefix if set).
199
199
  # @param [String] param_name the parameter name of API key auth
200
- def api_key_with_prefix(param_name)
200
+ def api_key_with_prefix(param_name, param_alias = nil)
201
+ key = @api_key[param_name]
202
+ key = @api_key.fetch(param_alias, key) unless param_alias.nil?
201
203
  if @api_key_prefix[param_name]
202
- "#{@api_key_prefix[param_name]} #{@api_key[param_name]}"
204
+ "#{@api_key_prefix[param_name]} #{key}"
203
205
  else
204
- @api_key[param_name]
206
+ key
205
207
  end
206
208
  end
207
209
 
@@ -218,7 +220,7 @@ module MergeHRISClient
218
220
  type: 'api_key',
219
221
  in: 'header',
220
222
  key: 'Authorization',
221
- value: api_key_with_prefix('Authorization')
223
+ value: api_key_with_prefix('tokenAuth')
222
224
  },
223
225
  }
224
226
  end
@@ -19,6 +19,8 @@ module MergeHRISClient
19
19
 
20
20
  attr_accessor :integration
21
21
 
22
+ attr_accessor :integration_slug
23
+
22
24
  attr_accessor :category
23
25
 
24
26
  attr_accessor :end_user_origin_id
@@ -29,16 +31,20 @@ module MergeHRISClient
29
31
 
30
32
  attr_accessor :status
31
33
 
34
+ attr_accessor :webhook_listener_url
35
+
32
36
  # Attribute mapping from ruby-style variable name to JSON key.
33
37
  def self.attribute_map
34
38
  {
35
39
  :'id' => :'id',
36
40
  :'integration' => :'integration',
41
+ :'integration_slug' => :'integration_slug',
37
42
  :'category' => :'category',
38
43
  :'end_user_origin_id' => :'end_user_origin_id',
39
44
  :'end_user_organization_name' => :'end_user_organization_name',
40
45
  :'end_user_email_address' => :'end_user_email_address',
41
- :'status' => :'status'
46
+ :'status' => :'status',
47
+ :'webhook_listener_url' => :'webhook_listener_url'
42
48
  }
43
49
  end
44
50
 
@@ -52,11 +58,13 @@ module MergeHRISClient
52
58
  {
53
59
  :'id' => :'String',
54
60
  :'integration' => :'String',
61
+ :'integration_slug' => :'String',
55
62
  :'category' => :'CategoryEnum',
56
63
  :'end_user_origin_id' => :'String',
57
64
  :'end_user_organization_name' => :'String',
58
65
  :'end_user_email_address' => :'String',
59
- :'status' => :'String'
66
+ :'status' => :'String',
67
+ :'webhook_listener_url' => :'String'
60
68
  }
61
69
  end
62
70
 
@@ -90,6 +98,10 @@ module MergeHRISClient
90
98
  self.integration = attributes[:'integration']
91
99
  end
92
100
 
101
+ if attributes.key?(:'integration_slug')
102
+ self.integration_slug = attributes[:'integration_slug']
103
+ end
104
+
93
105
  if attributes.key?(:'category')
94
106
  self.category = attributes[:'category']
95
107
  end
@@ -109,6 +121,10 @@ module MergeHRISClient
109
121
  if attributes.key?(:'status')
110
122
  self.status = attributes[:'status']
111
123
  end
124
+
125
+ if attributes.key?(:'webhook_listener_url')
126
+ self.webhook_listener_url = attributes[:'webhook_listener_url']
127
+ end
112
128
  end
113
129
 
114
130
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -131,11 +147,13 @@ module MergeHRISClient
131
147
  self.class == o.class &&
132
148
  id == o.id &&
133
149
  integration == o.integration &&
150
+ integration_slug == o.integration_slug &&
134
151
  category == o.category &&
135
152
  end_user_origin_id == o.end_user_origin_id &&
136
153
  end_user_organization_name == o.end_user_organization_name &&
137
154
  end_user_email_address == o.end_user_email_address &&
138
- status == o.status
155
+ status == o.status &&
156
+ webhook_listener_url == o.webhook_listener_url
139
157
  end
140
158
 
141
159
  # @see the `==` method
@@ -147,7 +165,7 @@ module MergeHRISClient
147
165
  # Calculates hash code according to all attributes.
148
166
  # @return [Integer] Hash code
149
167
  def hash
150
- [id, integration, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status].hash
168
+ [id, integration, integration_slug, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status, webhook_listener_url].hash
151
169
  end
152
170
 
153
171
  # Builds the object from hash
@@ -190,7 +208,7 @@ module MergeHRISClient
190
208
  when :Date
191
209
  Date.parse(value)
192
210
  when :String
193
- value.to_s
211
+ value
194
212
  when :Integer
195
213
  value.to_i
196
214
  when :Float
@@ -30,6 +30,8 @@ module MergeHRISClient
30
30
 
31
31
  attr_accessor :end_user_email_address
32
32
 
33
+ attr_accessor :webhook_listener_url
34
+
33
35
  attr_accessor :integration
34
36
 
35
37
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -42,6 +44,7 @@ module MergeHRISClient
42
44
  :'end_user_origin_id' => :'end_user_origin_id',
43
45
  :'end_user_organization_name' => :'end_user_organization_name',
44
46
  :'end_user_email_address' => :'end_user_email_address',
47
+ :'webhook_listener_url' => :'webhook_listener_url',
45
48
  :'integration' => :'integration'
46
49
  }
47
50
  end
@@ -61,6 +64,7 @@ module MergeHRISClient
61
64
  :'end_user_origin_id' => :'String',
62
65
  :'end_user_organization_name' => :'String',
63
66
  :'end_user_email_address' => :'String',
67
+ :'webhook_listener_url' => :'String',
64
68
  :'integration' => :'AccountDetailsAndActionsIntegration'
65
69
  }
66
70
  end
@@ -114,6 +118,10 @@ module MergeHRISClient
114
118
  self.end_user_email_address = attributes[:'end_user_email_address']
115
119
  end
116
120
 
121
+ if attributes.key?(:'webhook_listener_url')
122
+ self.webhook_listener_url = attributes[:'webhook_listener_url']
123
+ end
124
+
117
125
  if attributes.key?(:'integration')
118
126
  self.integration = attributes[:'integration']
119
127
  end
@@ -139,6 +147,10 @@ module MergeHRISClient
139
147
  invalid_properties.push('invalid value for "end_user_email_address", end_user_email_address cannot be nil.')
140
148
  end
141
149
 
150
+ if @webhook_listener_url.nil?
151
+ invalid_properties.push('invalid value for "webhook_listener_url", webhook_listener_url cannot be nil.')
152
+ end
153
+
142
154
  invalid_properties
143
155
  end
144
156
 
@@ -149,6 +161,7 @@ module MergeHRISClient
149
161
  return false if @status.nil?
150
162
  return false if @end_user_organization_name.nil?
151
163
  return false if @end_user_email_address.nil?
164
+ return false if @webhook_listener_url.nil?
152
165
  true
153
166
  end
154
167
 
@@ -164,6 +177,7 @@ module MergeHRISClient
164
177
  end_user_origin_id == o.end_user_origin_id &&
165
178
  end_user_organization_name == o.end_user_organization_name &&
166
179
  end_user_email_address == o.end_user_email_address &&
180
+ webhook_listener_url == o.webhook_listener_url &&
167
181
  integration == o.integration
168
182
  end
169
183
 
@@ -176,7 +190,7 @@ module MergeHRISClient
176
190
  # Calculates hash code according to all attributes.
177
191
  # @return [Integer] Hash code
178
192
  def hash
179
- [id, category, status, status_detail, end_user_origin_id, end_user_organization_name, end_user_email_address, integration].hash
193
+ [id, category, status, status_detail, end_user_origin_id, end_user_organization_name, end_user_email_address, webhook_listener_url, integration].hash
180
194
  end
181
195
 
182
196
  # Builds the object from hash
@@ -219,7 +233,7 @@ module MergeHRISClient
219
233
  when :Date
220
234
  Date.parse(value)
221
235
  when :String
222
- value.to_s
236
+ value
223
237
  when :Integer
224
238
  value.to_i
225
239
  when :Float
@@ -227,7 +227,7 @@ module MergeHRISClient
227
227
  when :Date
228
228
  Date.parse(value)
229
229
  when :String
230
- value.to_s
230
+ value
231
231
  when :Integer
232
232
  value.to_i
233
233
  when :Float
@@ -33,4 +33,5 @@ module MergeHRISClient
33
33
  value
34
34
  end
35
35
  end
36
+
36
37
  end
@@ -18,42 +18,20 @@ module MergeHRISClient
18
18
  # Company name.
19
19
  attr_accessor :name
20
20
 
21
- # Category or categories this integration belongs to.
21
+ # Category or categories this integration belongs to. Multiple categories should be comma separated.<br/><br>Example: For [ats, hris], enter <i>ats,hris</i>
22
22
  attr_accessor :categories
23
23
 
24
- # Company logo in rectangular shape.
24
+ # Company logo in rectangular shape. <b>Upload an image with a clear background.</b>
25
25
  attr_accessor :image
26
26
 
27
- # Company logo in square shape.
27
+ # Company logo in square shape. <b>Upload an image with a white background.</b>
28
28
  attr_accessor :square_image
29
29
 
30
- # The color of this integration used for buttons and text throughout the app and landing pages.
30
+ # The color of this integration used for buttons and text throughout the app and landing pages. <b>Choose a darker, saturated color.</b>
31
31
  attr_accessor :color
32
32
 
33
33
  attr_accessor :slug
34
34
 
35
- class EnumAttributeValidator
36
- attr_reader :datatype
37
- attr_reader :allowable_values
38
-
39
- def initialize(datatype, allowable_values)
40
- @allowable_values = allowable_values.map do |value|
41
- case datatype.to_s
42
- when /Integer/i
43
- value.to_i
44
- when /Float/i
45
- value.to_f
46
- else
47
- value
48
- end
49
- end
50
- end
51
-
52
- def valid?(value)
53
- !value || allowable_values.include?(value)
54
- end
55
- end
56
-
57
35
  # Attribute mapping from ruby-style variable name to JSON key.
58
36
  def self.attribute_map
59
37
  {
@@ -242,7 +220,7 @@ module MergeHRISClient
242
220
  when :Date
243
221
  Date.parse(value)
244
222
  when :String
245
- value.to_s
223
+ value
246
224
  when :Integer
247
225
  value.to_i
248
226
  when :Float
@@ -154,7 +154,7 @@ module MergeHRISClient
154
154
  when :Date
155
155
  Date.parse(value)
156
156
  when :String
157
- value.to_s
157
+ value
158
158
  when :Integer
159
159
  value.to_i
160
160
  when :Float
@@ -32,4 +32,5 @@ module MergeHRISClient
32
32
  value
33
33
  end
34
34
  end
35
+
35
36
  end
@@ -166,7 +166,7 @@ module MergeHRISClient
166
166
  when :Date
167
167
  Date.parse(value)
168
168
  when :String
169
- value.to_s
169
+ value
170
170
  when :Integer
171
171
  value.to_i
172
172
  when :Float
@@ -21,7 +21,6 @@ module MergeHRISClient
21
21
  # The third-party API ID of the matching object.
22
22
  attr_accessor :remote_id
23
23
 
24
- # The employee with this bank account.
25
24
  attr_accessor :employee
26
25
 
27
26
  # The account number.
@@ -21,7 +21,6 @@ module MergeHRISClient
21
21
  # The third-party API ID of the matching object.
22
22
  attr_accessor :remote_id
23
23
 
24
- # The employee on the plan.
25
24
  attr_accessor :employee
26
25
 
27
26
  # The name of the benefit provider.
@@ -64,7 +63,7 @@ module MergeHRISClient
64
63
  :'remote_id' => :'String',
65
64
  :'employee' => :'String',
66
65
  :'provider_name' => :'String',
67
- :'benefit_plan_type' => :'BenefitPlanTypeEnum',
66
+ :'benefit_plan_type' => :'String',
68
67
  :'employee_contribution' => :'Float',
69
68
  :'company_contribution' => :'Float',
70
69
  :'remote_data' => :'Array<RemoteData>'
@@ -33,4 +33,5 @@ module MergeHRISClient
33
33
  value
34
34
  end
35
35
  end
36
+
36
37
  end
@@ -33,4 +33,5 @@ module MergeHRISClient
33
33
  value
34
34
  end
35
35
  end
36
+
36
37
  end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeHRISClient
17
- # # The Company Object ### Description The `Company` object is used to represent a Company. ### Usage Example Fetch from the `LIST Companies` endpoint and filter by `ID` to show all companies.
17
+ # # The Company Object ### Description The `Company` object is used to represent a Company within the HRIS / Payroll system. ### Usage Example Fetch from the `LIST Companies` endpoint and filter by `ID` to show all companies.
18
18
  class Company
19
19
  attr_accessor :id
20
20
 
@@ -279,4 +279,5 @@ module MergeHRISClient
279
279
  value
280
280
  end
281
281
  end
282
+
282
283
  end