merge_hris_client 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -9
- data/docs/AccountDetails.md +30 -0
- data/docs/AccountDetailsAndActions.md +32 -0
- data/docs/AccountDetailsAndActionsIntegration.md +32 -0
- data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
- data/docs/AccountDetailsApi.md +76 -0
- data/docs/AccountTypeEnum.md +15 -0
- data/docs/BankInfo.md +34 -0
- data/docs/BankInfoApi.md +193 -0
- data/docs/BenefitsApi.md +2 -78
- data/docs/{StateEnum.md → CategoriesEnum.md} +2 -2
- data/docs/{NullEnum.md → CategoryEnum.md} +2 -2
- data/docs/CompaniesApi.md +3 -1
- data/docs/DataPassthroughRequest.md +5 -3
- data/docs/DeductionsApi.md +179 -0
- data/docs/Employee.md +12 -8
- data/docs/EmployeePayrollRun.md +3 -3
- data/docs/EmployeePayrollRunsApi.md +13 -3
- data/docs/EmployeesApi.md +12 -82
- data/docs/Employment.md +3 -1
- data/docs/EmploymentsApi.md +7 -78
- data/docs/EndUserDetailsRequest.md +1 -1
- data/docs/ErrorValidationProblem.md +24 -0
- data/docs/ForceResyncApi.md +79 -0
- data/docs/IssuesApi.md +11 -10
- data/docs/LinkedAccountsApi.md +103 -0
- data/docs/Location.md +2 -0
- data/docs/LocationsApi.md +2 -0
- data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
- data/docs/PaginatedBankInfoList.md +22 -0
- data/docs/PaginatedDeductionList.md +22 -0
- data/docs/PaginatedIssueList.md +2 -2
- data/docs/PaginatedPayGroupList.md +22 -0
- data/docs/PaginatedSyncStatusList.md +2 -2
- data/docs/PayGroup.md +24 -0
- data/docs/PayGroupsApi.md +177 -0
- data/docs/PayrollRun.md +3 -3
- data/docs/PayrollRunsApi.md +13 -1
- data/docs/PolicyTypeEnum.md +15 -0
- data/docs/RequestFormatEnum.md +15 -0
- data/docs/SyncStatusApi.md +3 -74
- data/docs/TeamsApi.md +7 -2
- data/docs/TimeOff.md +3 -3
- data/docs/TimeOffApi.md +88 -4
- data/docs/TimeOffBalance.md +4 -2
- data/docs/{TimeOffBalanceApi.md → TimeOffBalancesApi.md} +26 -22
- data/docs/TimeOffEndpointRequest.md +18 -0
- data/docs/TimeOffRequest.md +36 -0
- data/docs/TimeOffResponse.md +22 -0
- data/docs/ValidationProblemSource.md +18 -0
- data/docs/WarningValidationProblem.md +24 -0
- data/lib/merge_hris_client/api/account_details_api.rb +77 -0
- data/lib/merge_hris_client/api/bank_info_api.rb +222 -0
- data/lib/merge_hris_client/api/benefits_api.rb +3 -69
- data/lib/merge_hris_client/api/companies_api.rb +3 -0
- data/lib/merge_hris_client/api/deductions_api.rb +185 -0
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +17 -2
- data/lib/merge_hris_client/api/employees_api.rb +18 -75
- data/lib/merge_hris_client/api/employments_api.rb +24 -69
- data/lib/merge_hris_client/api/force_resync_api.rb +84 -0
- data/lib/merge_hris_client/api/issues_api.rb +10 -10
- data/lib/merge_hris_client/api/linked_accounts_api.rb +117 -0
- data/lib/merge_hris_client/api/locations_api.rb +3 -0
- data/lib/merge_hris_client/api/pay_groups_api.rb +182 -0
- data/lib/merge_hris_client/api/payroll_runs_api.rb +22 -0
- data/lib/merge_hris_client/api/sync_status_api.rb +4 -4
- data/lib/merge_hris_client/api/teams_api.rb +17 -0
- data/lib/merge_hris_client/api/time_off_api.rb +92 -2
- data/lib/merge_hris_client/api/time_off_balances_api.rb +206 -0
- data/lib/merge_hris_client/models/account_details.rb +273 -0
- data/lib/merge_hris_client/models/account_details_and_actions.rb +302 -0
- data/lib/merge_hris_client/models/account_details_and_actions_integration.rb +310 -0
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +36 -0
- data/lib/merge_hris_client/models/account_integration.rb +1 -1
- data/lib/merge_hris_client/models/account_type_enum.rb +35 -0
- data/lib/merge_hris_client/models/bank_info.rb +323 -0
- data/lib/merge_hris_client/models/categories_enum.rb +36 -0
- data/lib/merge_hris_client/models/category_enum.rb +36 -0
- data/lib/merge_hris_client/models/data_passthrough_request.rb +66 -9
- data/lib/merge_hris_client/models/employee.rb +32 -8
- data/lib/merge_hris_client/models/employment.rb +12 -1
- data/lib/merge_hris_client/models/end_user_details_request.rb +73 -1
- data/lib/merge_hris_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_hris_client/models/generate_remote_key_request.rb +19 -0
- data/lib/merge_hris_client/models/location.rb +12 -1
- data/lib/merge_hris_client/models/marital_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/paginated_account_details_and_actions_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_bank_info_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_deduction_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_pay_group_list.rb +240 -0
- data/lib/merge_hris_client/models/{benefit_request.rb → pay_group.rb} +31 -54
- data/lib/merge_hris_client/models/policy_type_enum.rb +39 -0
- data/lib/merge_hris_client/models/remote_data_request.rb +19 -0
- data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +19 -0
- data/lib/merge_hris_client/models/request_format_enum.rb +35 -0
- data/lib/merge_hris_client/models/request_type_enum.rb +2 -1
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +2 -0
- data/lib/merge_hris_client/models/time_off_balance.rb +14 -3
- data/lib/merge_hris_client/models/time_off_endpoint_request.rb +223 -0
- data/lib/merge_hris_client/models/{employment_request.rb → time_off_request.rb} +80 -69
- data/lib/merge_hris_client/models/time_off_response.rb +255 -0
- data/lib/merge_hris_client/models/validation_problem_source.rb +223 -0
- data/lib/merge_hris_client/models/warning_validation_problem.rb +260 -0
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +28 -4
- data/spec/api/account_details_api_spec.rb +45 -0
- data/spec/api/account_token_api_spec.rb +1 -1
- data/spec/api/available_actions_api_spec.rb +1 -1
- data/spec/api/bank_info_api_spec.rb +76 -0
- data/spec/api/benefits_api_spec.rb +4 -1
- data/spec/api/companies_api_spec.rb +4 -1
- data/spec/api/deductions_api_spec.rb +69 -0
- data/spec/api/employee_payroll_runs_api_spec.rb +9 -2
- data/spec/api/employees_api_spec.rb +9 -1
- data/spec/api/employments_api_spec.rb +7 -1
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/issues_api_spec.rb +5 -5
- data/spec/api/link_token_api_spec.rb +2 -2
- data/spec/api/linked_accounts_api_spec.rb +57 -0
- data/spec/api/locations_api_spec.rb +4 -1
- data/spec/api/passthrough_api_spec.rb +2 -3
- data/spec/api/pay_groups_api_spec.rb +68 -0
- data/spec/api/payroll_runs_api_spec.rb +9 -1
- data/spec/api/regenerate_key_api_spec.rb +2 -2
- data/spec/api/sync_status_api_spec.rb +2 -13
- data/spec/api/teams_api_spec.rb +7 -1
- data/spec/api/time_off_api_spec.rb +20 -2
- data/spec/api/{time_off_balance_api_spec.rb → time_off_balances_api_spec.rb} +13 -11
- data/spec/models/account_details_and_actions_integration_spec.rb +76 -0
- data/spec/models/account_details_and_actions_spec.rb +76 -0
- data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
- data/spec/models/{benefit_request_spec.rb → account_details_spec.rb} +18 -12
- data/spec/models/account_integration_spec.rb +7 -1
- data/spec/models/account_token_spec.rb +7 -1
- data/spec/models/account_type_enum_spec.rb +28 -0
- data/spec/models/available_actions_spec.rb +13 -1
- data/spec/models/{employment_request_spec.rb → bank_info_spec.rb} +15 -15
- data/spec/models/benefit_plan_type_enum_spec.rb +1 -1
- data/spec/models/benefit_spec.rb +7 -1
- data/spec/models/categories_enum_spec.rb +28 -0
- data/spec/models/{state_enum_spec.rb → category_enum_spec.rb} +7 -7
- data/spec/models/company_spec.rb +7 -1
- data/spec/models/country_enum_spec.rb +1 -1
- data/spec/models/data_passthrough_request_spec.rb +7 -1
- data/spec/models/deduction_spec.rb +7 -1
- data/spec/models/earning_spec.rb +7 -1
- data/spec/models/employee_payroll_run_spec.rb +7 -1
- data/spec/models/employee_spec.rb +31 -1
- data/spec/models/employment_spec.rb +13 -1
- data/spec/models/employment_status_enum_spec.rb +1 -1
- data/spec/models/employment_type_enum_spec.rb +1 -1
- data/spec/models/end_user_details_request_spec.rb +7 -5
- data/spec/models/{end_user_details_spec.rb → error_validation_problem_spec.rb} +11 -15
- data/spec/models/ethnicity_enum_spec.rb +1 -1
- data/spec/models/flsa_status_enum_spec.rb +1 -1
- data/spec/models/gender_enum_spec.rb +1 -1
- data/spec/models/link_token_spec.rb +1 -1
- data/spec/models/location_spec.rb +13 -1
- data/spec/models/marital_status_enum_spec.rb +1 -1
- data/spec/models/method_enum_spec.rb +1 -1
- data/spec/models/model_operation_spec.rb +13 -1
- data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
- data/spec/models/paginated_bank_info_list_spec.rb +46 -0
- data/spec/models/paginated_benefit_list_spec.rb +1 -1
- data/spec/models/paginated_company_list_spec.rb +1 -1
- data/spec/models/paginated_deduction_list_spec.rb +46 -0
- data/spec/models/paginated_employee_list_spec.rb +1 -1
- data/spec/models/paginated_employee_payroll_run_list_spec.rb +1 -1
- data/spec/models/paginated_employment_list_spec.rb +1 -1
- data/spec/models/paginated_location_list_spec.rb +1 -1
- data/spec/models/paginated_pay_group_list_spec.rb +46 -0
- data/spec/models/paginated_payroll_run_list_spec.rb +1 -1
- data/spec/models/paginated_team_list_spec.rb +1 -1
- data/spec/models/paginated_time_off_list_spec.rb +1 -1
- data/spec/models/pay_currency_enum_spec.rb +1 -1
- data/spec/models/pay_frequency_enum_spec.rb +1 -1
- data/spec/models/{data_passthrough_spec.rb → pay_group_spec.rb} +11 -11
- data/spec/models/pay_period_enum_spec.rb +1 -1
- data/spec/models/payroll_run_spec.rb +7 -1
- data/spec/models/policy_type_enum_spec.rb +28 -0
- data/spec/models/remote_data_spec.rb +1 -1
- data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
- data/spec/models/remote_key_spec.rb +1 -1
- data/spec/models/remote_response_spec.rb +1 -1
- data/spec/models/request_format_enum_spec.rb +28 -0
- data/spec/models/request_type_enum_spec.rb +1 -1
- data/spec/models/run_state_enum_spec.rb +1 -1
- data/spec/models/run_type_enum_spec.rb +1 -1
- data/spec/models/tax_spec.rb +7 -1
- data/spec/models/team_spec.rb +13 -1
- data/spec/models/time_off_balance_spec.rb +6 -0
- data/spec/models/{remote_key_for_regeneration_spec.rb → time_off_endpoint_request_spec.rb} +8 -8
- data/spec/models/time_off_request_spec.rb +88 -0
- data/spec/models/time_off_response_spec.rb +46 -0
- data/spec/models/time_off_spec.rb +19 -1
- data/spec/models/time_off_status_enum_spec.rb +1 -1
- data/spec/models/type_enum_spec.rb +1 -1
- data/spec/models/units_enum_spec.rb +1 -1
- data/spec/models/validation_problem_source_spec.rb +34 -0
- data/spec/models/warning_validation_problem_spec.rb +52 -0
- data/test_ruby.rb +11 -14
- metadata +115 -33
- data/docs/BenefitRequest.md +0 -28
- data/docs/DataPassthrough.md +0 -24
- data/docs/EmployeeRequest.md +0 -62
- data/docs/EmploymentRequest.md +0 -34
- data/docs/EndUserDetails.md +0 -24
- data/docs/RemoteKeyForRegeneration.md +0 -18
- data/lib/merge_hris_client/models/employee_request.rb +0 -523
- data/merge_hris_client-1.0.0.gem +0 -0
- data/merge_hris_client-1.0.1.gem +0 -0
- data/spec/models/employee_request_spec.rb +0 -160
data/docs/BenefitsApi.md
CHANGED
@@ -4,88 +4,10 @@ All URIs are relative to *https://api.merge.dev/api/hris/v1*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**benefits_create**](BenefitsApi.md#benefits_create) | **POST** /benefits | |
|
8
7
|
| [**benefits_list**](BenefitsApi.md#benefits_list) | **GET** /benefits | |
|
9
8
|
| [**benefits_retrieve**](BenefitsApi.md#benefits_retrieve) | **GET** /benefits/{id} | |
|
10
9
|
|
11
10
|
|
12
|
-
## benefits_create
|
13
|
-
|
14
|
-
> <Benefit> benefits_create(x_account_token, opts)
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
Creates a `Benefit` object with the given values.
|
19
|
-
|
20
|
-
### Examples
|
21
|
-
|
22
|
-
```ruby
|
23
|
-
require 'time'
|
24
|
-
require 'merge_hris_client'
|
25
|
-
# setup authorization
|
26
|
-
MergeHRISClient.configure do |config|
|
27
|
-
# Configure API key authorization: tokenAuth
|
28
|
-
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
29
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
30
|
-
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
31
|
-
end
|
32
|
-
|
33
|
-
api_instance = MergeHRISClient::BenefitsApi.new
|
34
|
-
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
35
|
-
opts = {
|
36
|
-
run_async: true, # Boolean | Whether or not third-party updates should be run asynchronously.
|
37
|
-
benefit_request: MergeHRISClient::BenefitRequest.new # BenefitRequest |
|
38
|
-
}
|
39
|
-
|
40
|
-
begin
|
41
|
-
|
42
|
-
result = api_instance.benefits_create(x_account_token, opts)
|
43
|
-
p result
|
44
|
-
rescue MergeHRISClient::ApiError => e
|
45
|
-
puts "Error when calling BenefitsApi->benefits_create: #{e}"
|
46
|
-
end
|
47
|
-
```
|
48
|
-
|
49
|
-
#### Using the benefits_create_with_http_info variant
|
50
|
-
|
51
|
-
This returns an Array which contains the response data, status code and headers.
|
52
|
-
|
53
|
-
> <Array(<Benefit>, Integer, Hash)> benefits_create_with_http_info(x_account_token, opts)
|
54
|
-
|
55
|
-
```ruby
|
56
|
-
begin
|
57
|
-
|
58
|
-
data, status_code, headers = api_instance.benefits_create_with_http_info(x_account_token, opts)
|
59
|
-
p status_code # => 2xx
|
60
|
-
p headers # => { ... }
|
61
|
-
p data # => <Benefit>
|
62
|
-
rescue MergeHRISClient::ApiError => e
|
63
|
-
puts "Error when calling BenefitsApi->benefits_create_with_http_info: #{e}"
|
64
|
-
end
|
65
|
-
```
|
66
|
-
|
67
|
-
### Parameters
|
68
|
-
|
69
|
-
| Name | Type | Description | Notes |
|
70
|
-
| ---- | ---- | ----------- | ----- |
|
71
|
-
| **x_account_token** | **String** | Token identifying the end user. | |
|
72
|
-
| **run_async** | **Boolean** | Whether or not third-party updates should be run asynchronously. | [optional] |
|
73
|
-
| **benefit_request** | [**BenefitRequest**](BenefitRequest.md) | | [optional] |
|
74
|
-
|
75
|
-
### Return type
|
76
|
-
|
77
|
-
[**Benefit**](Benefit.md)
|
78
|
-
|
79
|
-
### Authorization
|
80
|
-
|
81
|
-
[tokenAuth](../README.md#tokenAuth)
|
82
|
-
|
83
|
-
### HTTP request headers
|
84
|
-
|
85
|
-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
86
|
-
- **Accept**: application/json
|
87
|
-
|
88
|
-
|
89
11
|
## benefits_list
|
90
12
|
|
91
13
|
> <PaginatedBenefitList> benefits_list(x_account_token, opts)
|
@@ -115,6 +37,7 @@ opts = {
|
|
115
37
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
116
38
|
employee_id: 'employee_id_example', # String | If provided, will only return time off for this employee.
|
117
39
|
expand: 'employee', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
40
|
+
include_deleted_data: true, # Boolean | Whether to include data that was deleted in the third-party service.
|
118
41
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
119
42
|
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
120
43
|
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
@@ -159,6 +82,7 @@ end
|
|
159
82
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
160
83
|
| **employee_id** | **String** | If provided, will only return time off for this employee. | [optional] |
|
161
84
|
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
85
|
+
| **include_deleted_data** | **Boolean** | Whether to include data that was deleted in the third-party service. | [optional] |
|
162
86
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
163
87
|
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
164
88
|
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# MergeHRISClient::
|
1
|
+
# MergeHRISClient::CategoriesEnum
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -10,6 +10,6 @@
|
|
10
10
|
```ruby
|
11
11
|
require 'merge_hris_client'
|
12
12
|
|
13
|
-
instance = MergeHRISClient::
|
13
|
+
instance = MergeHRISClient::CategoriesEnum.new()
|
14
14
|
```
|
15
15
|
|
data/docs/CompaniesApi.md
CHANGED
@@ -26,7 +26,7 @@ MergeHRISClient.configure do |config|
|
|
26
26
|
# Configure API key authorization: tokenAuth
|
27
27
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
28
28
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
29
|
-
|
29
|
+
config.api_key_prefix['Authorization'] = 'Bearer'
|
30
30
|
end
|
31
31
|
|
32
32
|
api_instance = MergeHRISClient::CompaniesApi.new
|
@@ -35,6 +35,7 @@ opts = {
|
|
35
35
|
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
36
36
|
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
37
37
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
38
|
+
include_deleted_data: true, # Boolean | Whether to include data that was deleted in the third-party service.
|
38
39
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
39
40
|
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
40
41
|
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
@@ -77,6 +78,7 @@ end
|
|
77
78
|
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
78
79
|
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
79
80
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
81
|
+
| **include_deleted_data** | **Boolean** | Whether to include data that was deleted in the third-party service. | [optional] |
|
80
82
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
81
83
|
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
82
84
|
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
@@ -7,8 +7,9 @@
|
|
7
7
|
| **method** | [**MethodEnum**](MethodEnum.md) | | |
|
8
8
|
| **path** | **String** | | |
|
9
9
|
| **base_url_override** | **String** | | [optional] |
|
10
|
-
| **data** |
|
10
|
+
| **data** | **String** | | [optional] |
|
11
11
|
| **headers** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
|
12
|
+
| **request_format** | [**RequestFormatEnum**](RequestFormatEnum.md) | | [optional] |
|
12
13
|
|
13
14
|
## Example
|
14
15
|
|
@@ -19,8 +20,9 @@ instance = MergeHRISClient::DataPassthroughRequest.new(
|
|
19
20
|
method: POST,
|
20
21
|
path: /scooters,
|
21
22
|
base_url_override: null,
|
22
|
-
data: {"
|
23
|
-
headers: {"EXTRA-HEADER":"value"}
|
23
|
+
data: {"company": "Lime", "model": "Gen 2.5"},
|
24
|
+
headers: {"EXTRA-HEADER":"value"},
|
25
|
+
request_format: JSON
|
24
26
|
)
|
25
27
|
```
|
26
28
|
|
@@ -0,0 +1,179 @@
|
|
1
|
+
# MergeHRISClient::DeductionsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/hris/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**deductions_list**](DeductionsApi.md#deductions_list) | **GET** /deductions | |
|
8
|
+
| [**deductions_retrieve**](DeductionsApi.md#deductions_retrieve) | **GET** /deductions/{id} | |
|
9
|
+
|
10
|
+
|
11
|
+
## deductions_list
|
12
|
+
|
13
|
+
> <PaginatedDeductionList> deductions_list(x_account_token, opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Returns a list of `Deduction` objects.
|
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['Authorization'] = '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['Authorization'] = 'Bearer'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = MergeHRISClient::DeductionsApi.new
|
33
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
34
|
+
opts = {
|
35
|
+
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
36
|
+
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
37
|
+
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
38
|
+
employee_payroll_run_id: 'employee_payroll_run_id_example', # String | If provided, will only return deductions for this employee payroll run.
|
39
|
+
include_deleted_data: true, # Boolean | Whether to include data that was deleted in the third-party service.
|
40
|
+
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
41
|
+
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
42
|
+
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
43
|
+
page_size: 56, # Integer | Number of results to return per page.
|
44
|
+
remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
|
45
|
+
}
|
46
|
+
|
47
|
+
begin
|
48
|
+
|
49
|
+
result = api_instance.deductions_list(x_account_token, opts)
|
50
|
+
p result
|
51
|
+
rescue MergeHRISClient::ApiError => e
|
52
|
+
puts "Error when calling DeductionsApi->deductions_list: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
#### Using the deductions_list_with_http_info variant
|
57
|
+
|
58
|
+
This returns an Array which contains the response data, status code and headers.
|
59
|
+
|
60
|
+
> <Array(<PaginatedDeductionList>, Integer, Hash)> deductions_list_with_http_info(x_account_token, opts)
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
begin
|
64
|
+
|
65
|
+
data, status_code, headers = api_instance.deductions_list_with_http_info(x_account_token, opts)
|
66
|
+
p status_code # => 2xx
|
67
|
+
p headers # => { ... }
|
68
|
+
p data # => <PaginatedDeductionList>
|
69
|
+
rescue MergeHRISClient::ApiError => e
|
70
|
+
puts "Error when calling DeductionsApi->deductions_list_with_http_info: #{e}"
|
71
|
+
end
|
72
|
+
```
|
73
|
+
|
74
|
+
### Parameters
|
75
|
+
|
76
|
+
| Name | Type | Description | Notes |
|
77
|
+
| ---- | ---- | ----------- | ----- |
|
78
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
79
|
+
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
80
|
+
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
81
|
+
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
82
|
+
| **employee_payroll_run_id** | **String** | If provided, will only return deductions for this employee payroll run. | [optional] |
|
83
|
+
| **include_deleted_data** | **Boolean** | Whether to include data that was deleted in the third-party service. | [optional] |
|
84
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
85
|
+
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
86
|
+
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
87
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
88
|
+
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
89
|
+
|
90
|
+
### Return type
|
91
|
+
|
92
|
+
[**PaginatedDeductionList**](PaginatedDeductionList.md)
|
93
|
+
|
94
|
+
### Authorization
|
95
|
+
|
96
|
+
[tokenAuth](../README.md#tokenAuth)
|
97
|
+
|
98
|
+
### HTTP request headers
|
99
|
+
|
100
|
+
- **Content-Type**: Not defined
|
101
|
+
- **Accept**: application/json
|
102
|
+
|
103
|
+
|
104
|
+
## deductions_retrieve
|
105
|
+
|
106
|
+
> <Deduction> deductions_retrieve(x_account_token, id, opts)
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
Returns a `Deduction` object with the given `id`.
|
111
|
+
|
112
|
+
### Examples
|
113
|
+
|
114
|
+
```ruby
|
115
|
+
require 'time'
|
116
|
+
require 'merge_hris_client'
|
117
|
+
# setup authorization
|
118
|
+
MergeHRISClient.configure do |config|
|
119
|
+
# Configure API key authorization: tokenAuth
|
120
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
121
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
122
|
+
config.api_key_prefix['Authorization'] = 'Bearer'
|
123
|
+
end
|
124
|
+
|
125
|
+
api_instance = MergeHRISClient::DeductionsApi.new
|
126
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
127
|
+
id = TODO # String |
|
128
|
+
opts = {
|
129
|
+
include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
130
|
+
}
|
131
|
+
|
132
|
+
begin
|
133
|
+
|
134
|
+
result = api_instance.deductions_retrieve(x_account_token, id, opts)
|
135
|
+
p result
|
136
|
+
rescue MergeHRISClient::ApiError => e
|
137
|
+
puts "Error when calling DeductionsApi->deductions_retrieve: #{e}"
|
138
|
+
end
|
139
|
+
```
|
140
|
+
|
141
|
+
#### Using the deductions_retrieve_with_http_info variant
|
142
|
+
|
143
|
+
This returns an Array which contains the response data, status code and headers.
|
144
|
+
|
145
|
+
> <Array(<Deduction>, Integer, Hash)> deductions_retrieve_with_http_info(x_account_token, id, opts)
|
146
|
+
|
147
|
+
```ruby
|
148
|
+
begin
|
149
|
+
|
150
|
+
data, status_code, headers = api_instance.deductions_retrieve_with_http_info(x_account_token, id, opts)
|
151
|
+
p status_code # => 2xx
|
152
|
+
p headers # => { ... }
|
153
|
+
p data # => <Deduction>
|
154
|
+
rescue MergeHRISClient::ApiError => e
|
155
|
+
puts "Error when calling DeductionsApi->deductions_retrieve_with_http_info: #{e}"
|
156
|
+
end
|
157
|
+
```
|
158
|
+
|
159
|
+
### Parameters
|
160
|
+
|
161
|
+
| Name | Type | Description | Notes |
|
162
|
+
| ---- | ---- | ----------- | ----- |
|
163
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
164
|
+
| **id** | [**String**](.md) | | |
|
165
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
166
|
+
|
167
|
+
### Return type
|
168
|
+
|
169
|
+
[**Deduction**](Deduction.md)
|
170
|
+
|
171
|
+
### Authorization
|
172
|
+
|
173
|
+
[tokenAuth](../README.md#tokenAuth)
|
174
|
+
|
175
|
+
### HTTP request headers
|
176
|
+
|
177
|
+
- **Content-Type**: Not defined
|
178
|
+
- **Accept**: application/json
|
179
|
+
|
data/docs/Employee.md
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
| **company** | **String** | The ID of the employee's company. | [optional] |
|
11
11
|
| **first_name** | **String** | The employee's first name. | [optional] |
|
12
12
|
| **last_name** | **String** | The employee's last name. | [optional] |
|
13
|
-
| **display_full_name** | **String** | The employee's full name, to use for display purposes. | [optional] |
|
13
|
+
| **display_full_name** | **String** | The employee's full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name. | [optional] |
|
14
14
|
| **work_email** | **String** | The employee's work email. | [optional] |
|
15
15
|
| **personal_email** | **String** | The employee's personal email. | [optional] |
|
16
16
|
| **mobile_phone_number** | **String** | The employee's mobile phone number. | [optional] |
|
@@ -19,17 +19,19 @@
|
|
19
19
|
| **work_location** | **String** | The employee's work address. | [optional] |
|
20
20
|
| **manager** | **String** | The employee ID of the employee's manager. | [optional] |
|
21
21
|
| **team** | **String** | The employee's team. | [optional] |
|
22
|
+
| **pay_group** | **String** | The employee's pay group | [optional] |
|
22
23
|
| **ssn** | **String** | The employee's social security number. | [optional] |
|
23
24
|
| **gender** | [**GenderEnum**](GenderEnum.md) | The employee's gender. | [optional] |
|
24
25
|
| **ethnicity** | [**EthnicityEnum**](EthnicityEnum.md) | The employee's ethnicity. | [optional] |
|
25
26
|
| **marital_status** | [**MaritalStatusEnum**](MaritalStatusEnum.md) | The employee's marital status. | [optional] |
|
26
27
|
| **date_of_birth** | **Time** | The employee's date of birth. | [optional] |
|
27
|
-
| **hire_date** | **Time** | The employee
|
28
|
-
| **start_date** | **Time** | The employee
|
28
|
+
| **hire_date** | **Time** | The date that the employee was hired, usually the day that an offer letter is signed. If an employee has multiple hire dates from previous employments, this represents the most recent hire date. Note: If you're looking for the employee's start date, refer to the start_date field. | [optional] |
|
29
|
+
| **start_date** | **Time** | The date that the employee started working. If an employee has multiple start dates from previous employments, this represents the most recent start date. | [optional] |
|
29
30
|
| **employment_status** | [**EmploymentStatusEnum**](EmploymentStatusEnum.md) | The employment status of the employee. | [optional] |
|
30
31
|
| **termination_date** | **Time** | The employee's termination date. | [optional] |
|
31
32
|
| **avatar** | **String** | The URL of the employee's avatar image. | [optional] |
|
32
33
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
34
|
+
| **custom_fields** | [**Hash<String, AnyType>**](AnyType.md) | Custom fields configured for a given model. | [optional] |
|
33
35
|
|
34
36
|
## Example
|
35
37
|
|
@@ -52,17 +54,19 @@ instance = MergeHRISClient::Employee.new(
|
|
52
54
|
work_location: 9efbc633-3387-4306-aa55-e2c635e6bb4f,
|
53
55
|
manager: 0048ea5b-911e-4dff-9364-92070dea62ff,
|
54
56
|
team: 249c9faa-3045-4a31-953b-8f22d3613301,
|
57
|
+
pay_group: ad1264e2-39be-4787-b749-f1aade9e3405,
|
55
58
|
ssn: 1234567890,
|
56
59
|
gender: FEMALE,
|
57
60
|
ethnicity: AMERICAN_INDIAN_OR_ALASKA_NATIVE,
|
58
61
|
marital_status: SINGLE,
|
59
|
-
date_of_birth:
|
60
|
-
hire_date:
|
61
|
-
start_date:
|
62
|
+
date_of_birth: 1990-11-10T00:00Z,
|
63
|
+
hire_date: 2020-10-10T00:00Z,
|
64
|
+
start_date: 2020-10-11T00:00Z,
|
62
65
|
employment_status: INACTIVE,
|
63
|
-
termination_date:
|
66
|
+
termination_date: 2021-10-12T00:00Z,
|
64
67
|
avatar: http://alturl.com/h2h8m,
|
65
|
-
remote_data: [{"path":"/people","data":["Varies by platform"]}]
|
68
|
+
remote_data: [{"path":"/people","data":["Varies by platform"]}],
|
69
|
+
custom_fields: null
|
66
70
|
)
|
67
71
|
```
|
68
72
|
|
data/docs/EmployeePayrollRun.md
CHANGED
@@ -30,9 +30,9 @@ instance = MergeHRISClient::EmployeePayrollRun.new(
|
|
30
30
|
payroll_run: 35347df1-95e7-46e2-93cc-66f1191edca5,
|
31
31
|
gross_pay: 1342.67,
|
32
32
|
net_pay: 865.78,
|
33
|
-
start_date:
|
34
|
-
end_date:
|
35
|
-
check_date:
|
33
|
+
start_date: 2020-11-08T00:00Z,
|
34
|
+
end_date: 2020-11-09T00:00Z,
|
35
|
+
check_date: 2020-11-10T00:00Z,
|
36
36
|
earnings: [{"employee_payroll_run":"35347df1-95e7-46e2-93cc-66f1191edca5","amount":1002.34,"type":"SALARY"},{"employee_payroll_run":"35347df1-95e7-46e2-93cc-66f1191edca5","amount":8342.34,"type":"OVERTIME"}],
|
37
37
|
deductions: [{"employee_payroll_run":"35347df1-95e7-46e2-93cc-66f1191edca5","name":"Social Security","employee_deduction":34.54,"company_deduction":78.78}],
|
38
38
|
taxes: [{"employee_payroll_run":"35347df1-95e7-46e2-93cc-66f1191edca5","name":"California State Income Tax","amount":100.25,"employer_tax":"False"}],
|
@@ -35,14 +35,19 @@ opts = {
|
|
35
35
|
created_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created after this datetime.
|
36
36
|
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
37
37
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
38
|
-
employee_id: 'employee_id_example', # String | If provided, will only return
|
38
|
+
employee_id: 'employee_id_example', # String | If provided, will only return employee payroll runs for this employee.
|
39
|
+
ended_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return employee payroll runs ended after this datetime.
|
40
|
+
ended_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return employee payroll runs ended before this datetime.
|
39
41
|
expand: 'employee', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
42
|
+
include_deleted_data: true, # Boolean | Whether to include data that was deleted in the third-party service.
|
40
43
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
41
44
|
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
42
45
|
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
43
46
|
page_size: 56, # Integer | Number of results to return per page.
|
44
47
|
payroll_run_id: 'payroll_run_id_example', # String | If provided, will only return employee payroll runs for this employee.
|
45
|
-
remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
|
48
|
+
remote_id: 'remote_id_example', # String | The API provider's ID for the given object.
|
49
|
+
started_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return employee payroll runs started after this datetime.
|
50
|
+
started_before: Time.parse('2013-10-20T19:20:30+01:00') # Time | If provided, will only return employee payroll runs started before this datetime.
|
46
51
|
}
|
47
52
|
|
48
53
|
begin
|
@@ -80,14 +85,19 @@ end
|
|
80
85
|
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
81
86
|
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
82
87
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
83
|
-
| **employee_id** | **String** | If provided, will only return
|
88
|
+
| **employee_id** | **String** | If provided, will only return employee payroll runs for this employee. | [optional] |
|
89
|
+
| **ended_after** | **Time** | If provided, will only return employee payroll runs ended after this datetime. | [optional] |
|
90
|
+
| **ended_before** | **Time** | If provided, will only return employee payroll runs ended before this datetime. | [optional] |
|
84
91
|
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
92
|
+
| **include_deleted_data** | **Boolean** | Whether to include data that was deleted in the third-party service. | [optional] |
|
85
93
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
86
94
|
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
87
95
|
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
88
96
|
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
89
97
|
| **payroll_run_id** | **String** | If provided, will only return employee payroll runs for this employee. | [optional] |
|
90
98
|
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
99
|
+
| **started_after** | **Time** | If provided, will only return employee payroll runs started after this datetime. | [optional] |
|
100
|
+
| **started_before** | **Time** | If provided, will only return employee payroll runs started before this datetime. | [optional] |
|
91
101
|
|
92
102
|
### Return type
|
93
103
|
|
data/docs/EmployeesApi.md
CHANGED
@@ -4,88 +4,10 @@ All URIs are relative to *https://api.merge.dev/api/hris/v1*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**employees_create**](EmployeesApi.md#employees_create) | **POST** /employees | |
|
8
7
|
| [**employees_list**](EmployeesApi.md#employees_list) | **GET** /employees | |
|
9
8
|
| [**employees_retrieve**](EmployeesApi.md#employees_retrieve) | **GET** /employees/{id} | |
|
10
9
|
|
11
10
|
|
12
|
-
## employees_create
|
13
|
-
|
14
|
-
> <Employee> employees_create(x_account_token, opts)
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
Creates an `Employee` object with the given values.
|
19
|
-
|
20
|
-
### Examples
|
21
|
-
|
22
|
-
```ruby
|
23
|
-
require 'time'
|
24
|
-
require 'merge_hris_client'
|
25
|
-
# setup authorization
|
26
|
-
MergeHRISClient.configure do |config|
|
27
|
-
# Configure API key authorization: tokenAuth
|
28
|
-
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
29
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
30
|
-
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
31
|
-
end
|
32
|
-
|
33
|
-
api_instance = MergeHRISClient::EmployeesApi.new
|
34
|
-
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
35
|
-
opts = {
|
36
|
-
run_async: true, # Boolean | Whether or not third-party updates should be run asynchronously.
|
37
|
-
employee_request: MergeHRISClient::EmployeeRequest.new # EmployeeRequest |
|
38
|
-
}
|
39
|
-
|
40
|
-
begin
|
41
|
-
|
42
|
-
result = api_instance.employees_create(x_account_token, opts)
|
43
|
-
p result
|
44
|
-
rescue MergeHRISClient::ApiError => e
|
45
|
-
puts "Error when calling EmployeesApi->employees_create: #{e}"
|
46
|
-
end
|
47
|
-
```
|
48
|
-
|
49
|
-
#### Using the employees_create_with_http_info variant
|
50
|
-
|
51
|
-
This returns an Array which contains the response data, status code and headers.
|
52
|
-
|
53
|
-
> <Array(<Employee>, Integer, Hash)> employees_create_with_http_info(x_account_token, opts)
|
54
|
-
|
55
|
-
```ruby
|
56
|
-
begin
|
57
|
-
|
58
|
-
data, status_code, headers = api_instance.employees_create_with_http_info(x_account_token, opts)
|
59
|
-
p status_code # => 2xx
|
60
|
-
p headers # => { ... }
|
61
|
-
p data # => <Employee>
|
62
|
-
rescue MergeHRISClient::ApiError => e
|
63
|
-
puts "Error when calling EmployeesApi->employees_create_with_http_info: #{e}"
|
64
|
-
end
|
65
|
-
```
|
66
|
-
|
67
|
-
### Parameters
|
68
|
-
|
69
|
-
| Name | Type | Description | Notes |
|
70
|
-
| ---- | ---- | ----------- | ----- |
|
71
|
-
| **x_account_token** | **String** | Token identifying the end user. | |
|
72
|
-
| **run_async** | **Boolean** | Whether or not third-party updates should be run asynchronously. | [optional] |
|
73
|
-
| **employee_request** | [**EmployeeRequest**](EmployeeRequest.md) | | [optional] |
|
74
|
-
|
75
|
-
### Return type
|
76
|
-
|
77
|
-
[**Employee**](Employee.md)
|
78
|
-
|
79
|
-
### Authorization
|
80
|
-
|
81
|
-
[tokenAuth](../README.md#tokenAuth)
|
82
|
-
|
83
|
-
### HTTP request headers
|
84
|
-
|
85
|
-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
86
|
-
- **Accept**: application/json
|
87
|
-
|
88
|
-
|
89
11
|
## employees_list
|
90
12
|
|
91
13
|
> <PaginatedEmployeeList> employees_list(x_account_token, opts)
|
@@ -115,14 +37,18 @@ opts = {
|
|
115
37
|
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
116
38
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
117
39
|
expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
40
|
+
include_deleted_data: true, # Boolean | Whether to include data that was deleted in the third-party service.
|
118
41
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
119
|
-
include_sensitive_fields: true, # Boolean | Whether to include
|
42
|
+
include_sensitive_fields: true, # Boolean | Whether to include sensitive fields (such as social security numbers) in the response.
|
120
43
|
manager_id: 'manager_id_example', # String | If provided, will only return employees for this manager.
|
121
44
|
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
122
45
|
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
123
46
|
page_size: 56, # Integer | Number of results to return per page.
|
47
|
+
pay_group_id: 'pay_group_id_example', # String | If provided, will only return employees for this pay group
|
48
|
+
personal_email: TODO, # String | If provided, will only return Employees with this personal email
|
124
49
|
remote_id: 'remote_id_example', # String | The API provider's ID for the given object.
|
125
50
|
team_id: 'team_id_example', # String | If provided, will only return employees for this team.
|
51
|
+
work_email: TODO, # String | If provided, will only return Employees with this work email
|
126
52
|
work_location_id: 'work_location_id_example' # String | If provided, will only return employees for this location.
|
127
53
|
}
|
128
54
|
|
@@ -163,14 +89,18 @@ end
|
|
163
89
|
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
164
90
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
165
91
|
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
92
|
+
| **include_deleted_data** | **Boolean** | Whether to include data that was deleted in the third-party service. | [optional] |
|
166
93
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
167
|
-
| **include_sensitive_fields** | **Boolean** | Whether to include
|
94
|
+
| **include_sensitive_fields** | **Boolean** | Whether to include sensitive fields (such as social security numbers) in the response. | [optional] |
|
168
95
|
| **manager_id** | **String** | If provided, will only return employees for this manager. | [optional] |
|
169
96
|
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
170
97
|
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
171
98
|
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
99
|
+
| **pay_group_id** | **String** | If provided, will only return employees for this pay group | [optional] |
|
100
|
+
| **personal_email** | [**String**](.md) | If provided, will only return Employees with this personal email | [optional] |
|
172
101
|
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
173
102
|
| **team_id** | **String** | If provided, will only return employees for this team. | [optional] |
|
103
|
+
| **work_email** | [**String**](.md) | If provided, will only return Employees with this work email | [optional] |
|
174
104
|
| **work_location_id** | **String** | If provided, will only return employees for this location. | [optional] |
|
175
105
|
|
176
106
|
### Return type
|
@@ -214,7 +144,7 @@ id = TODO # String |
|
|
214
144
|
opts = {
|
215
145
|
expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
216
146
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
217
|
-
include_sensitive_fields: true # Boolean | Whether to include
|
147
|
+
include_sensitive_fields: true # Boolean | Whether to include sensitive fields (such as social security numbers) in the response.
|
218
148
|
}
|
219
149
|
|
220
150
|
begin
|
@@ -252,7 +182,7 @@ end
|
|
252
182
|
| **id** | [**String**](.md) | | |
|
253
183
|
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
254
184
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
255
|
-
| **include_sensitive_fields** | **Boolean** | Whether to include
|
185
|
+
| **include_sensitive_fields** | **Boolean** | Whether to include sensitive fields (such as social security numbers) in the response. | [optional] |
|
256
186
|
|
257
187
|
### Return type
|
258
188
|
|
data/docs/Employment.md
CHANGED
@@ -6,6 +6,7 @@
|
|
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** | The employee holding this position. | [optional] |
|
9
10
|
| **job_title** | **String** | The position's title. | [optional] |
|
10
11
|
| **pay_rate** | **Float** | The position's pay rate in dollars. | [optional] |
|
11
12
|
| **pay_period** | [**PayPeriodEnum**](PayPeriodEnum.md) | The time period this pay rate encompasses. | [optional] |
|
@@ -24,13 +25,14 @@ require 'merge_hris_client'
|
|
24
25
|
instance = MergeHRISClient::Employment.new(
|
25
26
|
id: 65d8ffd0-211b-4ba4-b85a-fbe2ce220982,
|
26
27
|
remote_id: 19202938,
|
28
|
+
employee: 0958cbc6-6040-430a-848e-aafacbadf4ae,
|
27
29
|
job_title: Software Engineer,
|
28
30
|
pay_rate: 80000.00,
|
29
31
|
pay_period: YEAR,
|
30
32
|
pay_frequency: BIWEEKLY,
|
31
33
|
pay_currency: USD,
|
32
34
|
flsa_status: EXEMPT,
|
33
|
-
effective_date:
|
35
|
+
effective_date: 2020-10-06T18:42:34Z,
|
34
36
|
employment_type: FULL TIME,
|
35
37
|
remote_data: [{"path":"/jobs","data":["Varies by platform"]}]
|
36
38
|
)
|