merge_hris_client 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -5
  3. data/docs/AccountDetails.md +5 -1
  4. data/docs/AccountDetailsAndActions.md +2 -0
  5. data/docs/AccountDetailsApi.md +8 -5
  6. data/docs/Company.md +2 -2
  7. data/docs/DataPassthroughRequest.md +1 -1
  8. data/docs/Employee.md +8 -8
  9. data/docs/EmployeeRequest.md +8 -8
  10. data/docs/EmployeesApi.md +78 -4
  11. data/docs/Employment.md +5 -3
  12. data/docs/EndUserDetailsRequest.md +3 -3
  13. data/docs/IssuesApi.md +8 -0
  14. data/docs/LinkTokenApi.md +1 -1
  15. data/docs/LinkedAccountStatus.md +20 -0
  16. data/docs/Location.md +1 -1
  17. data/docs/MetaResponse.md +24 -0
  18. data/docs/TimeOff.md +2 -2
  19. data/docs/TimeOffApi.md +72 -0
  20. data/docs/TimeOffBalance.md +1 -1
  21. data/docs/TimeOffRequest.md +2 -2
  22. data/docs/WebhookReceiver.md +22 -0
  23. data/docs/WebhookReceiverRequest.md +22 -0
  24. data/docs/WebhookReceiversApi.md +153 -0
  25. data/lib/merge_hris_client/api/account_details_api.rb +10 -3
  26. data/lib/merge_hris_client/api/employees_api.rb +72 -3
  27. data/lib/merge_hris_client/api/employments_api.rb +2 -2
  28. data/lib/merge_hris_client/api/issues_api.rb +12 -0
  29. data/lib/merge_hris_client/api/linked_accounts_api.rb +1 -1
  30. data/lib/merge_hris_client/api/time_off_api.rb +62 -0
  31. data/lib/merge_hris_client/models/account_details.rb +22 -4
  32. data/lib/merge_hris_client/models/account_details_and_actions.rb +15 -1
  33. data/lib/merge_hris_client/models/company.rb +1 -1
  34. data/lib/merge_hris_client/models/data_passthrough_request.rb +1 -0
  35. data/lib/merge_hris_client/models/earning.rb +1 -0
  36. data/lib/merge_hris_client/models/employee.rb +1 -1
  37. data/lib/merge_hris_client/models/employee_request.rb +1 -1
  38. data/lib/merge_hris_client/models/employment.rb +12 -2
  39. data/lib/merge_hris_client/models/end_user_details_request.rb +34 -0
  40. data/lib/merge_hris_client/models/group.rb +1 -1
  41. data/lib/merge_hris_client/models/linked_account_status.rb +237 -0
  42. data/lib/merge_hris_client/models/location.rb +1 -1
  43. data/lib/merge_hris_client/models/meta_response.rb +262 -0
  44. data/lib/merge_hris_client/models/payroll_run.rb +1 -1
  45. data/lib/merge_hris_client/models/tax.rb +1 -0
  46. data/lib/merge_hris_client/models/time_off_balance.rb +1 -1
  47. data/lib/merge_hris_client/models/webhook_receiver.rb +246 -0
  48. data/lib/merge_hris_client/models/webhook_receiver_request.rb +280 -0
  49. data/lib/merge_hris_client/version.rb +1 -1
  50. data/lib/merge_hris_client.rb +5 -0
  51. data/spec/api/account_details_api_spec.rb +1 -0
  52. data/spec/api/employees_api_spec.rb +12 -0
  53. data/spec/api/issues_api_spec.rb +4 -0
  54. data/spec/api/time_off_api_spec.rb +11 -0
  55. data/spec/models/account_details_and_actions_spec.rb +6 -0
  56. data/spec/models/account_details_spec.rb +12 -0
  57. data/spec/models/employment_spec.rb +6 -0
  58. metadata +108 -100
  59. data/test_ruby.rb +0 -30
@@ -7,7 +7,7 @@
7
7
  | **id** | **String** | | [optional][readonly] |
8
8
  | **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
9
9
  | **employee** | **String** | | [optional] |
10
- | **balance** | **Float** | The current PTO balance in terms of hours. | [optional] |
10
+ | **balance** | **Float** | The current remaining PTO balance in terms of hours. This does not represent the starting PTO balance. If the API provider only provides PTO balance in terms of days, we estimate 8 hours per day. | [optional] |
11
11
  | **used** | **Float** | The amount of PTO used in terms of hours. | [optional] |
12
12
  | **policy_type** | [**PolicyTypeEnum**](PolicyTypeEnum.md) | The policy type of this time off balance. | [optional] |
13
13
  | **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
@@ -25,9 +25,9 @@ instance = MergeHRISClient::TimeOffRequest.new(
25
25
  employee: d2f972d0-2526-434b-9409-4c3b468e08f0,
26
26
  approver: 9efbc633-3387-4306-aa55-e2c635e6bb4f,
27
27
  status: APPROVED,
28
- employee_note: Trip to Iowa. Miss those cornfields!,
28
+ employee_note: Moving into the new apartment Kendall Roy gave me!,
29
29
  units: DAYS,
30
- amount: 7,
30
+ amount: 3,
31
31
  request_type: VACATION,
32
32
  start_time: 2020-11-10T00:00Z,
33
33
  end_time: 2020-11-17T00:00Z
@@ -0,0 +1,22 @@
1
+ # MergeHRISClient::WebhookReceiver
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **event** | **String** | | |
8
+ | **is_active** | **Boolean** | | |
9
+ | **key** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'merge_hris_client'
15
+
16
+ instance = MergeHRISClient::WebhookReceiver.new(
17
+ event: null,
18
+ is_active: null,
19
+ key: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # MergeHRISClient::WebhookReceiverRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **event** | **String** | | |
8
+ | **is_active** | **Boolean** | | |
9
+ | **key** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'merge_hris_client'
15
+
16
+ instance = MergeHRISClient::WebhookReceiverRequest.new(
17
+ event: null,
18
+ is_active: null,
19
+ key: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,153 @@
1
+ # MergeHRISClient::WebhookReceiversApi
2
+
3
+ All URIs are relative to *https://api.merge.dev/api/hris/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**webhook_receivers_create**](WebhookReceiversApi.md#webhook_receivers_create) | **POST** /webhook-receivers | |
8
+ | [**webhook_receivers_list**](WebhookReceiversApi.md#webhook_receivers_list) | **GET** /webhook-receivers | |
9
+
10
+
11
+ ## webhook_receivers_create
12
+
13
+ > <WebhookReceiver> webhook_receivers_create(x_account_token, webhook_receiver_request)
14
+
15
+
16
+
17
+ Creates a `WebhookReceiver` object with the given values.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'merge_hris_client'
24
+ # setup authorization
25
+ MergeHRISClient.configure do |config|
26
+ # Configure API key authorization: tokenAuth
27
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
28
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
30
+ end
31
+
32
+ api_instance = MergeHRISClient::WebhookReceiversApi.new
33
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
34
+ webhook_receiver_request = MergeHRISClient::WebhookReceiverRequest.new({event: 'event_example', is_active: false}) # WebhookReceiverRequest |
35
+
36
+ begin
37
+
38
+ result = api_instance.webhook_receivers_create(x_account_token, webhook_receiver_request)
39
+ p result
40
+ rescue MergeHRISClient::ApiError => e
41
+ puts "Error when calling WebhookReceiversApi->webhook_receivers_create: #{e}"
42
+ end
43
+ ```
44
+
45
+ #### Using the webhook_receivers_create_with_http_info variant
46
+
47
+ This returns an Array which contains the response data, status code and headers.
48
+
49
+ > <Array(<WebhookReceiver>, Integer, Hash)> webhook_receivers_create_with_http_info(x_account_token, webhook_receiver_request)
50
+
51
+ ```ruby
52
+ begin
53
+
54
+ data, status_code, headers = api_instance.webhook_receivers_create_with_http_info(x_account_token, webhook_receiver_request)
55
+ p status_code # => 2xx
56
+ p headers # => { ... }
57
+ p data # => <WebhookReceiver>
58
+ rescue MergeHRISClient::ApiError => e
59
+ puts "Error when calling WebhookReceiversApi->webhook_receivers_create_with_http_info: #{e}"
60
+ end
61
+ ```
62
+
63
+ ### Parameters
64
+
65
+ | Name | Type | Description | Notes |
66
+ | ---- | ---- | ----------- | ----- |
67
+ | **x_account_token** | **String** | Token identifying the end user. | |
68
+ | **webhook_receiver_request** | [**WebhookReceiverRequest**](WebhookReceiverRequest.md) | | |
69
+
70
+ ### Return type
71
+
72
+ [**WebhookReceiver**](WebhookReceiver.md)
73
+
74
+ ### Authorization
75
+
76
+ [tokenAuth](../README.md#tokenAuth)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
81
+ - **Accept**: application/json
82
+
83
+
84
+ ## webhook_receivers_list
85
+
86
+ > <Array<WebhookReceiver>> webhook_receivers_list(x_account_token)
87
+
88
+
89
+
90
+ Returns a list of `WebhookReceiver` objects.
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'merge_hris_client'
97
+ # setup authorization
98
+ MergeHRISClient.configure do |config|
99
+ # Configure API key authorization: tokenAuth
100
+ config.api_key['tokenAuth'] = 'YOUR API KEY'
101
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
102
+ # config.api_key_prefix['tokenAuth'] = 'Bearer'
103
+ end
104
+
105
+ api_instance = MergeHRISClient::WebhookReceiversApi.new
106
+ x_account_token = 'x_account_token_example' # String | Token identifying the end user.
107
+
108
+ begin
109
+
110
+ result = api_instance.webhook_receivers_list(x_account_token)
111
+ p result
112
+ rescue MergeHRISClient::ApiError => e
113
+ puts "Error when calling WebhookReceiversApi->webhook_receivers_list: #{e}"
114
+ end
115
+ ```
116
+
117
+ #### Using the webhook_receivers_list_with_http_info variant
118
+
119
+ This returns an Array which contains the response data, status code and headers.
120
+
121
+ > <Array(<Array<WebhookReceiver>>, Integer, Hash)> webhook_receivers_list_with_http_info(x_account_token)
122
+
123
+ ```ruby
124
+ begin
125
+
126
+ data, status_code, headers = api_instance.webhook_receivers_list_with_http_info(x_account_token)
127
+ p status_code # => 2xx
128
+ p headers # => { ... }
129
+ p data # => <Array<WebhookReceiver>>
130
+ rescue MergeHRISClient::ApiError => e
131
+ puts "Error when calling WebhookReceiversApi->webhook_receivers_list_with_http_info: #{e}"
132
+ end
133
+ ```
134
+
135
+ ### Parameters
136
+
137
+ | Name | Type | Description | Notes |
138
+ | ---- | ---- | ----------- | ----- |
139
+ | **x_account_token** | **String** | Token identifying the end user. | |
140
+
141
+ ### Return type
142
+
143
+ [**Array&lt;WebhookReceiver&gt;**](WebhookReceiver.md)
144
+
145
+ ### Authorization
146
+
147
+ [tokenAuth](../README.md#tokenAuth)
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: Not defined
152
+ - **Accept**: application/json
153
+
@@ -20,20 +20,26 @@ module MergeHRISClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Get details for a linked account.
23
+ # @param x_account_token [String] Token identifying the end user.
23
24
  # @param [Hash] opts the optional parameters
24
25
  # @return [AccountDetails]
25
- def account_details_retrieve(opts = {})
26
- data, _status_code, _headers = account_details_retrieve_with_http_info(opts)
26
+ def account_details_retrieve(x_account_token, opts = {})
27
+ data, _status_code, _headers = account_details_retrieve_with_http_info(x_account_token, opts)
27
28
  data
28
29
  end
29
30
 
30
31
  # Get details for a linked account.
32
+ # @param x_account_token [String] Token identifying the end user.
31
33
  # @param [Hash] opts the optional parameters
32
34
  # @return [Array<(AccountDetails, Integer, Hash)>] AccountDetails data, response status code and response headers
33
- def account_details_retrieve_with_http_info(opts = {})
35
+ def account_details_retrieve_with_http_info(x_account_token, opts = {})
34
36
  if @api_client.config.debugging
35
37
  @api_client.config.logger.debug 'Calling API: AccountDetailsApi.account_details_retrieve ...'
36
38
  end
39
+ # verify the required parameter 'x_account_token' is set
40
+ if @api_client.config.client_side_validation && x_account_token.nil?
41
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling AccountDetailsApi.account_details_retrieve"
42
+ end
37
43
  # resource path
38
44
  local_var_path = '/account-details'
39
45
 
@@ -44,6 +50,7 @@ module MergeHRISClient
44
50
  header_params = opts[:header_params] || {}
45
51
  # HTTP header 'Accept' (if needed)
46
52
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+ header_params[:'X-Account-Token'] = x_account_token
47
54
 
48
55
  # form parameters
49
56
  form_params = opts[:form_params] || {}
@@ -96,24 +96,30 @@ module MergeHRISClient
96
96
  end
97
97
 
98
98
  # Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The \"reason\" and \"message\" fields in the request body will be stored for audit purposes.
99
+ # @param x_account_token [String] Token identifying the end user.
99
100
  # @param model_id [String]
100
101
  # @param ignore_common_model_request [IgnoreCommonModelRequest]
101
102
  # @param [Hash] opts the optional parameters
102
103
  # @return [IgnoreCommonModel]
103
- def employees_ignore_create(model_id, ignore_common_model_request, opts = {})
104
- data, _status_code, _headers = employees_ignore_create_with_http_info(model_id, ignore_common_model_request, opts)
104
+ def employees_ignore_create(x_account_token, model_id, ignore_common_model_request, opts = {})
105
+ data, _status_code, _headers = employees_ignore_create_with_http_info(x_account_token, model_id, ignore_common_model_request, opts)
105
106
  data
106
107
  end
107
108
 
108
109
  # Ignores a specific row based on the &#x60;model_id&#x60; in the url. These records will have their properties set to null, and will not be updated in future syncs. The \&quot;reason\&quot; and \&quot;message\&quot; fields in the request body will be stored for audit purposes.
110
+ # @param x_account_token [String] Token identifying the end user.
109
111
  # @param model_id [String]
110
112
  # @param ignore_common_model_request [IgnoreCommonModelRequest]
111
113
  # @param [Hash] opts the optional parameters
112
114
  # @return [Array<(IgnoreCommonModel, Integer, Hash)>] IgnoreCommonModel data, response status code and response headers
113
- def employees_ignore_create_with_http_info(model_id, ignore_common_model_request, opts = {})
115
+ def employees_ignore_create_with_http_info(x_account_token, model_id, ignore_common_model_request, opts = {})
114
116
  if @api_client.config.debugging
115
117
  @api_client.config.logger.debug 'Calling API: EmployeesApi.employees_ignore_create ...'
116
118
  end
119
+ # verify the required parameter 'x_account_token' is set
120
+ if @api_client.config.client_side_validation && x_account_token.nil?
121
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling EmployeesApi.employees_ignore_create"
122
+ end
117
123
  # verify the required parameter 'model_id' is set
118
124
  if @api_client.config.client_side_validation && model_id.nil?
119
125
  fail ArgumentError, "Missing the required parameter 'model_id' when calling EmployeesApi.employees_ignore_create"
@@ -134,6 +140,7 @@ module MergeHRISClient
134
140
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
135
141
  # HTTP header 'Content-Type'
136
142
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
143
+ header_params[:'X-Account-Token'] = x_account_token
137
144
 
138
145
  # form parameters
139
146
  form_params = opts[:form_params] || {}
@@ -284,6 +291,68 @@ module MergeHRISClient
284
291
  return data, status_code, headers
285
292
  end
286
293
 
294
+ # Returns metadata for `Employee` POSTs.
295
+ # @param x_account_token [String] Token identifying the end user.
296
+ # @param [Hash] opts the optional parameters
297
+ # @return [MetaResponse]
298
+ def employees_meta_post_retrieve(x_account_token, opts = {})
299
+ data, _status_code, _headers = employees_meta_post_retrieve_with_http_info(x_account_token, opts)
300
+ data
301
+ end
302
+
303
+ # Returns metadata for &#x60;Employee&#x60; POSTs.
304
+ # @param x_account_token [String] Token identifying the end user.
305
+ # @param [Hash] opts the optional parameters
306
+ # @return [Array<(MetaResponse, Integer, Hash)>] MetaResponse data, response status code and response headers
307
+ def employees_meta_post_retrieve_with_http_info(x_account_token, opts = {})
308
+ if @api_client.config.debugging
309
+ @api_client.config.logger.debug 'Calling API: EmployeesApi.employees_meta_post_retrieve ...'
310
+ end
311
+ # verify the required parameter 'x_account_token' is set
312
+ if @api_client.config.client_side_validation && x_account_token.nil?
313
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling EmployeesApi.employees_meta_post_retrieve"
314
+ end
315
+ # resource path
316
+ local_var_path = '/employees/meta/post'
317
+
318
+ # query parameters
319
+ query_params = opts[:query_params] || {}
320
+
321
+ # header parameters
322
+ header_params = opts[:header_params] || {}
323
+ # HTTP header 'Accept' (if needed)
324
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
325
+ header_params[:'X-Account-Token'] = x_account_token
326
+
327
+ # form parameters
328
+ form_params = opts[:form_params] || {}
329
+
330
+ # http body (model)
331
+ post_body = opts[:debug_body]
332
+
333
+ # return_type
334
+ return_type = opts[:debug_return_type] || 'MetaResponse'
335
+
336
+ # auth_names
337
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
338
+
339
+ new_options = opts.merge(
340
+ :operation => :"EmployeesApi.employees_meta_post_retrieve",
341
+ :header_params => header_params,
342
+ :query_params => query_params,
343
+ :form_params => form_params,
344
+ :body => post_body,
345
+ :auth_names => auth_names,
346
+ :return_type => return_type
347
+ )
348
+
349
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
350
+ if @api_client.config.debugging
351
+ @api_client.config.logger.debug "API called: EmployeesApi#employees_meta_post_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
352
+ end
353
+ return data, status_code, headers
354
+ end
355
+
287
356
  # Returns an `Employee` object with the given `id`.
288
357
  # @param x_account_token [String] Token identifying the end user.
289
358
  # @param id [String]
@@ -64,7 +64,7 @@ module MergeHRISClient
64
64
  if @api_client.config.client_side_validation && x_account_token.nil?
65
65
  fail ArgumentError, "Missing the required parameter 'x_account_token' when calling EmploymentsApi.employments_list"
66
66
  end
67
- allowable_values = ["employee"]
67
+ allowable_values = ["employee", "employee,pay_group", "pay_group"]
68
68
  if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
69
69
  fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
70
70
  end
@@ -156,7 +156,7 @@ module MergeHRISClient
156
156
  if @api_client.config.client_side_validation && id.nil?
157
157
  fail ArgumentError, "Missing the required parameter 'id' when calling EmploymentsApi.employments_retrieve"
158
158
  end
159
- allowable_values = ["employee"]
159
+ allowable_values = ["employee", "employee,pay_group", "pay_group"]
160
160
  if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
161
161
  fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
162
162
  end
@@ -25,8 +25,12 @@ module MergeHRISClient
25
25
  # @option opts [String] :cursor The pagination cursor value.
26
26
  # @option opts [String] :end_date If included, will only include issues whose most recent action occurred before this time
27
27
  # @option opts [String] :end_user_organization_name
28
+ # @option opts [Time] :first_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
29
+ # @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
28
30
  # @option opts [String] :include_muted If True, will include muted issues
29
31
  # @option opts [String] :integration_name
32
+ # @option opts [Time] :last_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
33
+ # @option opts [Time] :last_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
30
34
  # @option opts [Integer] :page_size Number of results to return per page.
31
35
  # @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
32
36
  # @option opts [String] :status
@@ -42,8 +46,12 @@ module MergeHRISClient
42
46
  # @option opts [String] :cursor The pagination cursor value.
43
47
  # @option opts [String] :end_date If included, will only include issues whose most recent action occurred before this time
44
48
  # @option opts [String] :end_user_organization_name
49
+ # @option opts [Time] :first_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
50
+ # @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
45
51
  # @option opts [String] :include_muted If True, will include muted issues
46
52
  # @option opts [String] :integration_name
53
+ # @option opts [Time] :last_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
54
+ # @option opts [Time] :last_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
47
55
  # @option opts [Integer] :page_size Number of results to return per page.
48
56
  # @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
49
57
  # @option opts [String] :status
@@ -65,8 +73,12 @@ module MergeHRISClient
65
73
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
66
74
  query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
67
75
  query_params[:'end_user_organization_name'] = opts[:'end_user_organization_name'] if !opts[:'end_user_organization_name'].nil?
76
+ query_params[:'first_incident_time_after'] = opts[:'first_incident_time_after'] if !opts[:'first_incident_time_after'].nil?
77
+ query_params[:'first_incident_time_before'] = opts[:'first_incident_time_before'] if !opts[:'first_incident_time_before'].nil?
68
78
  query_params[:'include_muted'] = opts[:'include_muted'] if !opts[:'include_muted'].nil?
69
79
  query_params[:'integration_name'] = opts[:'integration_name'] if !opts[:'integration_name'].nil?
80
+ query_params[:'last_incident_time_after'] = opts[:'last_incident_time_after'] if !opts[:'last_incident_time_after'].nil?
81
+ query_params[:'last_incident_time_before'] = opts[:'last_incident_time_before'] if !opts[:'last_incident_time_before'].nil?
70
82
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
71
83
  query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
72
84
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
@@ -58,7 +58,7 @@ module MergeHRISClient
58
58
  if @api_client.config.debugging
59
59
  @api_client.config.logger.debug 'Calling API: LinkedAccountsApi.linked_accounts_list ...'
60
60
  end
61
- allowable_values = ["accounting", "ats", "hris"]
61
+ allowable_values = ["accounting", "ats", "crm", "hris", "ticketing"]
62
62
  if @api_client.config.client_side_validation && opts[:'category'] && !allowable_values.include?(opts[:'category'])
63
63
  fail ArgumentError, "invalid value for \"category\", must be one of #{allowable_values}"
64
64
  end
@@ -211,6 +211,68 @@ module MergeHRISClient
211
211
  return data, status_code, headers
212
212
  end
213
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
+
214
276
  # Returns a `TimeOff` object with the given `id`.
215
277
  # @param x_account_token [String] Token identifying the end user.
216
278
  # @param id [String]
@@ -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
@@ -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