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.
- checksums.yaml +4 -4
- data/README.md +37 -12
- data/docs/AccountDetails.md +11 -7
- data/docs/AccountDetailsAndActions.md +2 -0
- data/docs/AccountDetailsApi.md +10 -7
- data/docs/AccountIntegration.md +4 -4
- data/docs/AccountTokenApi.md +2 -2
- data/docs/AvailableActionsApi.md +2 -2
- data/docs/BankInfo.md +1 -1
- data/docs/BankInfoApi.md +8 -12
- data/docs/Benefit.md +2 -2
- data/docs/BenefitsApi.md +4 -4
- data/docs/CompaniesApi.md +4 -4
- data/docs/Company.md +2 -2
- data/docs/DataPassthroughRequest.md +3 -1
- data/docs/DebugModeLog.md +22 -0
- data/docs/DebugModelLogSummary.md +22 -0
- data/docs/Deduction.md +2 -2
- data/docs/DeductionsApi.md +4 -4
- data/docs/DeleteAccountApi.md +3 -2
- data/docs/Earning.md +3 -3
- data/docs/EarningTypeEnum.md +15 -0
- data/docs/Employee.md +17 -15
- data/docs/EmployeeEndpointRequest.md +18 -0
- data/docs/EmployeePayrollRun.md +2 -2
- data/docs/EmployeePayrollRunsApi.md +4 -4
- data/docs/EmployeeRequest.md +70 -0
- data/docs/EmployeeResponse.md +24 -0
- data/docs/EmployeesApi.md +232 -4
- data/docs/Employment.md +6 -4
- data/docs/EmploymentsApi.md +5 -4
- data/docs/EncodingEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +5 -3
- data/docs/ForceResyncApi.md +2 -2
- data/docs/GenerateKeyApi.md +2 -2
- data/docs/Group.md +28 -0
- data/docs/GroupTypeEnum.md +15 -0
- data/docs/GroupsApi.md +177 -0
- data/docs/IgnoreCommonModel.md +20 -0
- data/docs/IssuesApi.md +13 -4
- data/docs/LinkTokenApi.md +3 -3
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +2 -2
- data/docs/Location.md +3 -1
- data/docs/LocationsApi.md +4 -4
- data/docs/MetaResponse.md +24 -0
- data/docs/MultipartFormFieldRequest.md +26 -0
- data/docs/PaginatedGroupList.md +22 -0
- data/docs/PassthroughApi.md +2 -2
- data/docs/PayGroupsApi.md +4 -4
- data/docs/PayrollRunsApi.md +4 -4
- data/docs/RegenerateKeyApi.md +2 -2
- data/docs/SyncStatusApi.md +0 -1
- data/docs/Tax.md +2 -2
- data/docs/Team.md +1 -1
- data/docs/TeamsApi.md +5 -4
- data/docs/TimeOff.md +4 -4
- data/docs/TimeOffApi.md +80 -6
- data/docs/TimeOffBalance.md +2 -2
- data/docs/TimeOffRequest.md +4 -4
- data/docs/TimeOffResponse.md +3 -1
- data/docs/WebhookReceiver.md +22 -0
- data/docs/WebhookReceiverRequest.md +22 -0
- data/docs/WebhookReceiversApi.md +153 -0
- data/lib/merge_hris_client/api/account_details_api.rb +10 -3
- data/lib/merge_hris_client/api/bank_info_api.rb +4 -9
- data/lib/merge_hris_client/api/employees_api.rb +216 -2
- data/lib/merge_hris_client/api/employments_api.rb +2 -2
- data/lib/merge_hris_client/api/groups_api.rb +182 -0
- data/lib/merge_hris_client/api/issues_api.rb +12 -0
- data/lib/merge_hris_client/api/linked_accounts_api.rb +1 -1
- data/lib/merge_hris_client/api/sync_status_api.rb +0 -62
- data/lib/merge_hris_client/api/time_off_api.rb +65 -0
- data/lib/merge_hris_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_hris_client/configuration.rb +6 -4
- data/lib/merge_hris_client/models/account_details.rb +23 -5
- data/lib/merge_hris_client/models/account_details_and_actions.rb +16 -2
- data/lib/merge_hris_client/models/account_details_and_actions_integration.rb +1 -1
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +1 -0
- data/lib/merge_hris_client/models/account_integration.rb +5 -27
- data/lib/merge_hris_client/models/account_token.rb +1 -1
- data/lib/merge_hris_client/models/account_type_enum.rb +1 -0
- data/lib/merge_hris_client/models/available_actions.rb +1 -1
- data/lib/merge_hris_client/models/bank_info.rb +0 -1
- data/lib/merge_hris_client/models/benefit.rb +1 -2
- data/lib/merge_hris_client/models/categories_enum.rb +1 -0
- data/lib/merge_hris_client/models/category_enum.rb +1 -0
- data/lib/merge_hris_client/models/company.rb +1 -1
- data/lib/merge_hris_client/models/country_enum.rb +1 -0
- data/lib/merge_hris_client/models/data_passthrough_request.rb +17 -3
- data/lib/merge_hris_client/models/debug_mode_log.rb +251 -0
- data/lib/merge_hris_client/models/debug_model_log_summary.rb +251 -0
- data/lib/merge_hris_client/models/deduction.rb +0 -1
- data/lib/merge_hris_client/models/earning.rb +4 -7
- data/lib/merge_hris_client/models/earning_type_enum.rb +38 -0
- data/lib/merge_hris_client/models/employee.rb +14 -9
- data/lib/merge_hris_client/models/employee_endpoint_request.rb +223 -0
- data/lib/merge_hris_client/models/employee_payroll_run.rb +1 -3
- data/lib/merge_hris_client/models/employee_request.rb +564 -0
- data/lib/merge_hris_client/models/employee_response.rb +266 -0
- data/lib/merge_hris_client/models/employment.rb +12 -3
- data/lib/merge_hris_client/models/employment_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/employment_type_enum.rb +1 -1
- data/lib/merge_hris_client/models/encoding_enum.rb +36 -0
- data/lib/merge_hris_client/models/end_user_details_request.rb +74 -27
- data/lib/merge_hris_client/models/error_validation_problem.rb +1 -1
- data/lib/merge_hris_client/models/ethnicity_enum.rb +1 -1
- data/lib/merge_hris_client/models/flsa_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/gender_enum.rb +1 -1
- data/lib/merge_hris_client/models/generate_remote_key_request.rb +1 -1
- data/lib/merge_hris_client/models/group.rb +275 -0
- data/lib/merge_hris_client/models/group_type_enum.rb +38 -0
- data/lib/merge_hris_client/models/ignore_common_model.rb +247 -0
- data/lib/merge_hris_client/models/ignore_common_model_request.rb +256 -0
- data/lib/merge_hris_client/models/issue.rb +1 -1
- data/lib/merge_hris_client/models/issue_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/link_token.rb +1 -1
- data/lib/merge_hris_client/models/linked_account_status.rb +237 -0
- data/lib/merge_hris_client/models/location.rb +13 -2
- data/lib/merge_hris_client/models/location_type_enum.rb +36 -0
- data/lib/merge_hris_client/models/marital_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/meta_response.rb +262 -0
- data/lib/merge_hris_client/models/method_enum.rb +1 -1
- data/lib/merge_hris_client/models/model_operation.rb +1 -1
- data/lib/merge_hris_client/models/multipart_form_field_request.rb +341 -0
- data/lib/merge_hris_client/models/paginated_account_details_and_actions_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_bank_info_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_benefit_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_company_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_deduction_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_employee_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_employee_payroll_run_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_employment_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_group_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_issue_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_location_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_pay_group_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_payroll_run_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_sync_status_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_team_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_time_off_balance_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_time_off_list.rb +1 -1
- data/lib/merge_hris_client/models/pay_currency_enum.rb +1 -1
- data/lib/merge_hris_client/models/pay_frequency_enum.rb +1 -2
- data/lib/merge_hris_client/models/pay_period_enum.rb +1 -1
- data/lib/merge_hris_client/models/payroll_run.rb +1 -1
- data/lib/merge_hris_client/models/policy_type_enum.rb +1 -0
- data/lib/merge_hris_client/models/reason_enum.rb +37 -0
- data/lib/merge_hris_client/models/remote_data.rb +1 -1
- data/lib/merge_hris_client/models/remote_data_request.rb +1 -1
- data/lib/merge_hris_client/models/remote_key.rb +1 -1
- data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +1 -1
- data/lib/merge_hris_client/models/remote_response.rb +1 -1
- data/lib/merge_hris_client/models/request_format_enum.rb +2 -0
- data/lib/merge_hris_client/models/request_type_enum.rb +1 -0
- data/lib/merge_hris_client/models/run_state_enum.rb +1 -1
- data/lib/merge_hris_client/models/run_type_enum.rb +1 -11
- data/lib/merge_hris_client/models/sync_status.rb +1 -1
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +1 -2
- data/lib/merge_hris_client/models/tax.rb +3 -6
- data/lib/merge_hris_client/models/team.rb +0 -1
- data/lib/merge_hris_client/models/time_off.rb +0 -2
- data/lib/merge_hris_client/models/time_off_balance.rb +1 -2
- data/lib/merge_hris_client/models/time_off_endpoint_request.rb +1 -1
- data/lib/merge_hris_client/models/time_off_request.rb +1 -3
- data/lib/merge_hris_client/models/time_off_response.rb +16 -5
- data/lib/merge_hris_client/models/time_off_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/units_enum.rb +1 -1
- data/lib/merge_hris_client/models/validation_problem_source.rb +1 -1
- data/lib/merge_hris_client/models/warning_validation_problem.rb +1 -1
- data/lib/merge_hris_client/models/webhook_receiver.rb +246 -0
- data/lib/merge_hris_client/models/webhook_receiver_request.rb +280 -0
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +21 -2
- data/pull_request_template.md +3 -1
- data/spec/api/account_details_api_spec.rb +1 -0
- data/spec/api/bank_info_api_spec.rb +2 -4
- data/spec/api/employees_api_spec.rb +38 -0
- data/spec/api/groups_api_spec.rb +68 -0
- data/spec/api/issues_api_spec.rb +4 -0
- data/spec/api/time_off_api_spec.rb +12 -0
- data/spec/models/account_details_and_actions_spec.rb +6 -0
- data/spec/models/account_details_spec.rb +12 -0
- data/spec/models/data_passthrough_request_spec.rb +6 -0
- data/spec/models/debug_mode_log_spec.rb +46 -0
- data/spec/models/debug_model_log_summary_spec.rb +46 -0
- data/spec/models/earning_type_enum_spec.rb +28 -0
- data/spec/models/employee_endpoint_request_spec.rb +34 -0
- data/spec/models/employee_request_spec.rb +190 -0
- data/spec/models/employee_response_spec.rb +52 -0
- data/spec/models/employee_spec.rb +6 -0
- data/spec/models/employment_spec.rb +6 -0
- data/spec/models/encoding_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +6 -0
- data/spec/models/group_spec.rb +64 -0
- data/spec/models/group_type_enum_spec.rb +28 -0
- data/spec/models/ignore_common_model_spec.rb +40 -0
- data/spec/models/location_spec.rb +6 -0
- data/spec/models/multipart_form_field_request_spec.rb +58 -0
- data/spec/models/paginated_group_list_spec.rb +46 -0
- data/spec/models/time_off_response_spec.rb +6 -0
- metadata +153 -89
- data/test_ruby.rb +0 -30
data/docs/TimeOffApi.md
CHANGED
@@ -6,6 +6,7 @@ All URIs are relative to *https://api.merge.dev/api/hris/v1*
|
|
6
6
|
| ------ | ------------ | ----------- |
|
7
7
|
| [**time_off_create**](TimeOffApi.md#time_off_create) | **POST** /time-off | |
|
8
8
|
| [**time_off_list**](TimeOffApi.md#time_off_list) | **GET** /time-off | |
|
9
|
+
| [**time_off_meta_post_retrieve**](TimeOffApi.md#time_off_meta_post_retrieve) | **GET** /time-off/meta/post | |
|
9
10
|
| [**time_off_retrieve**](TimeOffApi.md#time_off_retrieve) | **GET** /time-off/{id} | |
|
10
11
|
|
11
12
|
|
@@ -25,15 +26,16 @@ require 'merge_hris_client'
|
|
25
26
|
# setup authorization
|
26
27
|
MergeHRISClient.configure do |config|
|
27
28
|
# Configure API key authorization: tokenAuth
|
28
|
-
config.api_key['
|
29
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
29
30
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
30
|
-
config.api_key_prefix['
|
31
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
31
32
|
end
|
32
33
|
|
33
34
|
api_instance = MergeHRISClient::TimeOffApi.new
|
34
35
|
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
35
36
|
time_off_endpoint_request = MergeHRISClient::TimeOffEndpointRequest.new({model: MergeHRISClient::TimeOffRequest.new}) # TimeOffEndpointRequest |
|
36
37
|
opts = {
|
38
|
+
is_debug_mode: true, # Boolean | Whether to include debug fields (such as log file links) in the response.
|
37
39
|
run_async: true # Boolean | Whether or not third-party updates should be run asynchronously.
|
38
40
|
}
|
39
41
|
|
@@ -70,6 +72,7 @@ end
|
|
70
72
|
| ---- | ---- | ----------- | ----- |
|
71
73
|
| **x_account_token** | **String** | Token identifying the end user. | |
|
72
74
|
| **time_off_endpoint_request** | [**TimeOffEndpointRequest**](TimeOffEndpointRequest.md) | | |
|
75
|
+
| **is_debug_mode** | **Boolean** | Whether to include debug fields (such as log file links) in the response. | [optional] |
|
73
76
|
| **run_async** | **Boolean** | Whether or not third-party updates should be run asynchronously. | [optional] |
|
74
77
|
|
75
78
|
### Return type
|
@@ -102,9 +105,9 @@ require 'merge_hris_client'
|
|
102
105
|
# setup authorization
|
103
106
|
MergeHRISClient.configure do |config|
|
104
107
|
# Configure API key authorization: tokenAuth
|
105
|
-
config.api_key['
|
108
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
106
109
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
107
|
-
config.api_key_prefix['
|
110
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
108
111
|
end
|
109
112
|
|
110
113
|
api_instance = MergeHRISClient::TimeOffApi.new
|
@@ -187,6 +190,77 @@ end
|
|
187
190
|
- **Accept**: application/json
|
188
191
|
|
189
192
|
|
193
|
+
## time_off_meta_post_retrieve
|
194
|
+
|
195
|
+
> <MetaResponse> time_off_meta_post_retrieve(x_account_token)
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
Returns metadata for `TimeOff` POSTs.
|
200
|
+
|
201
|
+
### Examples
|
202
|
+
|
203
|
+
```ruby
|
204
|
+
require 'time'
|
205
|
+
require 'merge_hris_client'
|
206
|
+
# setup authorization
|
207
|
+
MergeHRISClient.configure do |config|
|
208
|
+
# Configure API key authorization: tokenAuth
|
209
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
210
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
211
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
212
|
+
end
|
213
|
+
|
214
|
+
api_instance = MergeHRISClient::TimeOffApi.new
|
215
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
216
|
+
|
217
|
+
begin
|
218
|
+
|
219
|
+
result = api_instance.time_off_meta_post_retrieve(x_account_token)
|
220
|
+
p result
|
221
|
+
rescue MergeHRISClient::ApiError => e
|
222
|
+
puts "Error when calling TimeOffApi->time_off_meta_post_retrieve: #{e}"
|
223
|
+
end
|
224
|
+
```
|
225
|
+
|
226
|
+
#### Using the time_off_meta_post_retrieve_with_http_info variant
|
227
|
+
|
228
|
+
This returns an Array which contains the response data, status code and headers.
|
229
|
+
|
230
|
+
> <Array(<MetaResponse>, Integer, Hash)> time_off_meta_post_retrieve_with_http_info(x_account_token)
|
231
|
+
|
232
|
+
```ruby
|
233
|
+
begin
|
234
|
+
|
235
|
+
data, status_code, headers = api_instance.time_off_meta_post_retrieve_with_http_info(x_account_token)
|
236
|
+
p status_code # => 2xx
|
237
|
+
p headers # => { ... }
|
238
|
+
p data # => <MetaResponse>
|
239
|
+
rescue MergeHRISClient::ApiError => e
|
240
|
+
puts "Error when calling TimeOffApi->time_off_meta_post_retrieve_with_http_info: #{e}"
|
241
|
+
end
|
242
|
+
```
|
243
|
+
|
244
|
+
### Parameters
|
245
|
+
|
246
|
+
| Name | Type | Description | Notes |
|
247
|
+
| ---- | ---- | ----------- | ----- |
|
248
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
249
|
+
|
250
|
+
### Return type
|
251
|
+
|
252
|
+
[**MetaResponse**](MetaResponse.md)
|
253
|
+
|
254
|
+
### Authorization
|
255
|
+
|
256
|
+
[tokenAuth](../README.md#tokenAuth)
|
257
|
+
|
258
|
+
### HTTP request headers
|
259
|
+
|
260
|
+
- **Content-Type**: Not defined
|
261
|
+
- **Accept**: application/json
|
262
|
+
|
263
|
+
|
190
264
|
## time_off_retrieve
|
191
265
|
|
192
266
|
> <TimeOff> time_off_retrieve(x_account_token, id, opts)
|
@@ -203,9 +277,9 @@ require 'merge_hris_client'
|
|
203
277
|
# setup authorization
|
204
278
|
MergeHRISClient.configure do |config|
|
205
279
|
# Configure API key authorization: tokenAuth
|
206
|
-
config.api_key['
|
280
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
207
281
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
208
|
-
config.api_key_prefix['
|
282
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
209
283
|
end
|
210
284
|
|
211
285
|
api_instance = MergeHRISClient::TimeOffApi.new
|
data/docs/TimeOffBalance.md
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **id** | **String** | | [optional][readonly] |
|
8
8
|
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
9
|
-
| **employee** | **String** |
|
10
|
-
| **balance** | **Float** | The current PTO balance in terms of hours. | [optional] |
|
9
|
+
| **employee** | **String** | | [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] |
|
data/docs/TimeOffRequest.md
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
8
|
-
| **employee** | **String** |
|
9
|
-
| **approver** | **String** |
|
8
|
+
| **employee** | **String** | | [optional] |
|
9
|
+
| **approver** | **String** | | [optional] |
|
10
10
|
| **status** | [**TimeOffStatusEnum**](TimeOffStatusEnum.md) | The status of this time off request. | [optional] |
|
11
11
|
| **employee_note** | **String** | The employee note for this time off request. | [optional] |
|
12
12
|
| **units** | [**UnitsEnum**](UnitsEnum.md) | The unit of time requested. | [optional] |
|
@@ -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:
|
28
|
+
employee_note: Moving into the new apartment Kendall Roy gave me!,
|
29
29
|
units: DAYS,
|
30
|
-
amount:
|
30
|
+
amount: 3,
|
31
31
|
request_type: VACATION,
|
32
32
|
start_time: 2020-11-10T00:00Z,
|
33
33
|
end_time: 2020-11-17T00:00Z
|
data/docs/TimeOffResponse.md
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
| **model** | [**TimeOff**](TimeOff.md) | | |
|
8
8
|
| **warnings** | [**Array<WarningValidationProblem>**](WarningValidationProblem.md) | | |
|
9
9
|
| **errors** | [**Array<ErrorValidationProblem>**](ErrorValidationProblem.md) | | |
|
10
|
+
| **logs** | [**Array<DebugModeLog>**](DebugModeLog.md) | | [optional] |
|
10
11
|
|
11
12
|
## Example
|
12
13
|
|
@@ -16,7 +17,8 @@ require 'merge_hris_client'
|
|
16
17
|
instance = MergeHRISClient::TimeOffResponse.new(
|
17
18
|
model: null,
|
18
19
|
warnings: null,
|
19
|
-
errors: null
|
20
|
+
errors: null,
|
21
|
+
logs: null
|
20
22
|
)
|
21
23
|
```
|
22
24
|
|
@@ -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<WebhookReceiver>**](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] || {}
|
@@ -22,12 +22,11 @@ module MergeHRISClient
|
|
22
22
|
# Returns a list of `BankInfo` objects.
|
23
23
|
# @param x_account_token [String] Token identifying the end user.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [String] :account_type
|
26
|
-
# @option opts [String] :bank_name
|
25
|
+
# @option opts [String] :account_type If provided, will only return BankInfo's with this account type. Options: ('SAVINGS', 'CHECKING')
|
26
|
+
# @option opts [String] :bank_name If provided, will only return BankInfo's with this bank name.
|
27
27
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
28
28
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
29
29
|
# @option opts [String] :cursor The pagination cursor value.
|
30
|
-
# @option opts [String] :employee If provided, will only return bank accounts for this employee.
|
31
30
|
# @option opts [String] :employee_id If provided, will only return bank accounts for this employee.
|
32
31
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
33
32
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
@@ -36,7 +35,6 @@ module MergeHRISClient
|
|
36
35
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
37
36
|
# @option opts [String] :order_by Overrides the default ordering for this endpoint.
|
38
37
|
# @option opts [Integer] :page_size Number of results to return per page.
|
39
|
-
# @option opts [Time] :remote_created_at
|
40
38
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
41
39
|
# @return [PaginatedBankInfoList]
|
42
40
|
def bank_info_list(x_account_token, opts = {})
|
@@ -47,12 +45,11 @@ module MergeHRISClient
|
|
47
45
|
# Returns a list of `BankInfo` objects.
|
48
46
|
# @param x_account_token [String] Token identifying the end user.
|
49
47
|
# @param [Hash] opts the optional parameters
|
50
|
-
# @option opts [String] :account_type
|
51
|
-
# @option opts [String] :bank_name
|
48
|
+
# @option opts [String] :account_type If provided, will only return BankInfo's with this account type. Options: ('SAVINGS', 'CHECKING')
|
49
|
+
# @option opts [String] :bank_name If provided, will only return BankInfo's with this bank name.
|
52
50
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
53
51
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
54
52
|
# @option opts [String] :cursor The pagination cursor value.
|
55
|
-
# @option opts [String] :employee If provided, will only return bank accounts for this employee.
|
56
53
|
# @option opts [String] :employee_id If provided, will only return bank accounts for this employee.
|
57
54
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
58
55
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
@@ -61,7 +58,6 @@ module MergeHRISClient
|
|
61
58
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
62
59
|
# @option opts [String] :order_by Overrides the default ordering for this endpoint.
|
63
60
|
# @option opts [Integer] :page_size Number of results to return per page.
|
64
|
-
# @option opts [Time] :remote_created_at
|
65
61
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
66
62
|
# @return [Array<(PaginatedBankInfoList, Integer, Hash)>] PaginatedBankInfoList data, response status code and response headers
|
67
63
|
def bank_info_list_with_http_info(x_account_token, opts = {})
|
@@ -103,7 +99,6 @@ module MergeHRISClient
|
|
103
99
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
104
100
|
query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
|
105
101
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
106
|
-
query_params[:'remote_created_at'] = opts[:'remote_created_at'] if !opts[:'remote_created_at'].nil?
|
107
102
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
108
103
|
|
109
104
|
# header parameters
|