merge_hris_client 3.0.0 → 3.2.1
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/AccountIntegration.md +6 -2
- data/docs/AsyncPassthroughApi.md +155 -0
- data/docs/AsyncPassthroughReciept.md +18 -0
- data/docs/BankInfo.md +9 -5
- data/docs/BankInfoApi.md +17 -13
- data/docs/Benefit.md +15 -5
- data/docs/BenefitPlanTypeEnum.md +15 -0
- data/docs/BenefitsApi.md +6 -6
- data/docs/CommonModelScopeData.md +20 -0
- data/docs/CommonModelScopes.md +20 -0
- data/docs/CommonModelScopesApi.md +157 -0
- data/docs/CommonModelScopesBodyRequest.md +22 -0
- data/docs/CommonModelScopesDisabledModels.md +26 -0
- data/docs/CommonModelScopesDisabledModelsEnabledActionsEnum.md +15 -0
- data/docs/CommonModelScopesPostInnerDeserializerRequest.md +22 -0
- data/docs/CommonModelScopesUpdateSerializer.md +18 -0
- data/docs/CompaniesApi.md +4 -4
- data/docs/Company.md +7 -3
- data/docs/ConditionSchema.md +30 -0
- data/docs/ConditionTypeEnum.md +15 -0
- data/docs/DataPassthroughRequest.md +1 -1
- data/docs/Deduction.md +11 -5
- data/docs/DeleteAccountApi.md +9 -9
- data/docs/Dependent.md +50 -0
- data/docs/DependentsApi.md +181 -0
- data/docs/Earning.md +10 -2
- data/docs/Employee.md +19 -15
- data/docs/EmployeePayrollRun.md +11 -7
- data/docs/EmployeePayrollRunsApi.md +4 -4
- data/docs/EmployeeRequest.md +16 -18
- data/docs/EmployeesApi.md +31 -18
- data/docs/EmployerBenefit.md +36 -0
- data/docs/EmployerBenefitsApi.md +177 -0
- data/docs/Employment.md +14 -10
- data/docs/EmploymentsApi.md +15 -11
- data/docs/EnabledActionsEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +6 -4
- data/docs/ForceResyncApi.md +1 -1
- data/docs/Group.md +8 -4
- data/docs/GroupsApi.md +15 -9
- data/docs/Issue.md +10 -8
- data/docs/IssuesApi.md +6 -6
- data/docs/LinkToken.md +1 -1
- data/docs/LinkedAccountCondition.md +28 -0
- data/docs/LinkedAccountConditionRequest.md +22 -0
- data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
- data/docs/LinkedAccountsApi.md +2 -2
- data/docs/Location.md +10 -6
- data/docs/LocationsApi.md +13 -9
- data/docs/MetaResponse.md +2 -0
- data/docs/MultipartFormFieldRequest.md +1 -1
- data/docs/OperatorSchema.md +20 -0
- data/docs/PaginatedConditionSchemaList.md +22 -0
- data/docs/PaginatedDependentList.md +22 -0
- data/docs/PaginatedEmployerBenefitList.md +22 -0
- data/docs/PayGroup.md +7 -3
- data/docs/PayGroupsApi.md +4 -4
- data/docs/PayrollRun.md +9 -5
- data/docs/PayrollRunsApi.md +14 -10
- data/docs/RelationshipEnum.md +15 -0
- data/docs/RemoteData.md +1 -1
- data/docs/SelectiveSyncApi.md +233 -0
- data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
- data/docs/SyncStatus.md +5 -3
- data/docs/SyncStatusApi.md +1 -1
- data/docs/Tax.md +9 -1
- data/docs/Team.md +8 -4
- data/docs/TeamsApi.md +4 -4
- data/docs/TimeOff.md +13 -9
- data/docs/TimeOffApi.md +16 -12
- data/docs/TimeOffBalance.md +10 -6
- data/docs/TimeOffBalancesApi.md +15 -11
- data/docs/TimeOffRequest.md +11 -9
- data/lib/merge_hris_client/api/async_passthrough_api.rb +160 -0
- data/lib/merge_hris_client/api/bank_info_api.rb +26 -12
- data/lib/merge_hris_client/api/benefits_api.rb +6 -6
- data/lib/merge_hris_client/api/common_model_scopes_api.rb +146 -0
- data/lib/merge_hris_client/api/companies_api.rb +4 -4
- data/lib/merge_hris_client/api/delete_account_api.rb +7 -7
- data/lib/merge_hris_client/api/dependents_api.rb +188 -0
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +4 -4
- data/lib/merge_hris_client/api/employees_api.rb +44 -17
- data/lib/merge_hris_client/api/employer_benefits_api.rb +182 -0
- data/lib/merge_hris_client/api/employments_api.rb +24 -10
- data/lib/merge_hris_client/api/force_resync_api.rb +2 -2
- data/lib/merge_hris_client/api/groups_api.rb +25 -8
- data/lib/merge_hris_client/api/issues_api.rb +6 -6
- data/lib/merge_hris_client/api/linked_accounts_api.rb +3 -3
- data/lib/merge_hris_client/api/locations_api.rb +22 -8
- data/lib/merge_hris_client/api/pay_groups_api.rb +4 -4
- data/lib/merge_hris_client/api/payroll_runs_api.rb +24 -10
- data/lib/merge_hris_client/api/selective_sync_api.rb +225 -0
- data/lib/merge_hris_client/api/sync_status_api.rb +2 -2
- data/lib/merge_hris_client/api/teams_api.rb +4 -4
- data/lib/merge_hris_client/api/time_off_api.rb +26 -12
- data/lib/merge_hris_client/api/time_off_balances_api.rb +24 -10
- data/lib/merge_hris_client/models/account_integration.rb +30 -8
- data/lib/merge_hris_client/models/async_passthrough_reciept.rb +223 -0
- data/lib/merge_hris_client/models/bank_info.rb +39 -16
- data/lib/merge_hris_client/models/benefit.rb +70 -14
- data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +48 -0
- data/lib/merge_hris_client/models/categories_enum.rb +3 -1
- data/lib/merge_hris_client/models/category_enum.rb +3 -1
- data/lib/merge_hris_client/models/common_model_scope_data.rb +234 -0
- data/lib/merge_hris_client/models/common_model_scopes.rb +234 -0
- data/lib/merge_hris_client/models/common_model_scopes_body_request.rb +274 -0
- data/lib/merge_hris_client/models/common_model_scopes_disabled_models.rb +283 -0
- data/lib/merge_hris_client/models/common_model_scopes_disabled_models_enabled_actions_enum.rb +45 -0
- data/lib/merge_hris_client/models/common_model_scopes_post_inner_deserializer_request.rb +274 -0
- data/lib/merge_hris_client/models/common_model_scopes_update_serializer.rb +226 -0
- data/lib/merge_hris_client/models/company.rb +37 -15
- data/lib/merge_hris_client/models/condition_schema.rb +298 -0
- data/lib/merge_hris_client/models/condition_type_enum.rb +50 -0
- data/lib/merge_hris_client/models/data_passthrough_request.rb +1 -0
- data/lib/merge_hris_client/models/deduction.rb +50 -17
- data/lib/merge_hris_client/models/dependent.rb +470 -0
- data/lib/merge_hris_client/models/earning.rb +51 -6
- data/lib/merge_hris_client/models/employee.rb +51 -23
- data/lib/merge_hris_client/models/employee_payroll_run.rb +41 -17
- data/lib/merge_hris_client/models/employee_request.rb +34 -39
- data/lib/merge_hris_client/models/employer_benefit.rb +363 -0
- data/lib/merge_hris_client/models/employment.rb +44 -20
- data/lib/merge_hris_client/models/enabled_actions_enum.rb +45 -0
- data/lib/merge_hris_client/models/end_user_details_request.rb +21 -8
- data/lib/merge_hris_client/models/group.rb +38 -16
- data/lib/merge_hris_client/models/group_type_enum.rb +2 -1
- data/lib/merge_hris_client/models/issue.rb +16 -4
- data/lib/merge_hris_client/models/link_token.rb +0 -5
- data/lib/merge_hris_client/models/linked_account_condition.rb +282 -0
- data/lib/merge_hris_client/models/linked_account_condition_request.rb +269 -0
- data/lib/merge_hris_client/models/linked_account_selective_sync_configuration.rb +221 -0
- data/lib/merge_hris_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
- data/lib/merge_hris_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
- data/lib/merge_hris_client/models/location.rb +39 -17
- data/lib/merge_hris_client/models/meta_response.rb +12 -1
- data/lib/merge_hris_client/models/multipart_form_field_request.rb +1 -1
- data/lib/merge_hris_client/models/operator_schema.rb +229 -0
- data/lib/merge_hris_client/models/paginated_condition_schema_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_dependent_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_employer_benefit_list.rb +240 -0
- data/lib/merge_hris_client/models/pay_frequency_enum.rb +2 -1
- data/lib/merge_hris_client/models/pay_group.rb +37 -15
- data/lib/merge_hris_client/models/pay_period_enum.rb +2 -1
- data/lib/merge_hris_client/models/payroll_run.rb +39 -17
- data/lib/merge_hris_client/models/relationship_enum.rb +46 -0
- data/lib/merge_hris_client/models/remote_data.rb +3 -4
- data/lib/merge_hris_client/models/selective_sync_configurations_usage_enum.rb +45 -0
- data/lib/merge_hris_client/models/sync_status.rb +13 -4
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +2 -1
- data/lib/merge_hris_client/models/tax.rb +50 -5
- data/lib/merge_hris_client/models/team.rb +38 -15
- data/lib/merge_hris_client/models/time_off.rb +43 -19
- data/lib/merge_hris_client/models/time_off_balance.rb +40 -17
- data/lib/merge_hris_client/models/time_off_request.rb +36 -21
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +31 -0
- data/spec/api/async_passthrough_api_spec.rb +59 -0
- data/spec/api/bank_info_api_spec.rb +8 -6
- data/spec/api/benefits_api_spec.rb +3 -3
- data/spec/api/common_model_scopes_api_spec.rb +58 -0
- data/spec/api/companies_api_spec.rb +2 -2
- data/spec/api/delete_account_api_spec.rb +2 -2
- data/spec/api/dependents_api_spec.rb +70 -0
- data/spec/api/employee_payroll_runs_api_spec.rb +2 -2
- data/spec/api/employees_api_spec.rb +13 -6
- data/spec/api/employer_benefits_api_spec.rb +68 -0
- data/spec/api/employments_api_spec.rb +7 -5
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/groups_api_spec.rb +7 -4
- data/spec/api/issues_api_spec.rb +3 -3
- data/spec/api/linked_accounts_api_spec.rb +1 -1
- data/spec/api/locations_api_spec.rb +6 -4
- data/spec/api/pay_groups_api_spec.rb +2 -2
- data/spec/api/payroll_runs_api_spec.rb +7 -5
- data/spec/api/selective_sync_api_spec.rb +72 -0
- data/spec/api/sync_status_api_spec.rb +1 -1
- data/spec/api/teams_api_spec.rb +2 -2
- data/spec/api/time_off_api_spec.rb +8 -6
- data/spec/api/time_off_balances_api_spec.rb +7 -5
- data/spec/models/account_integration_spec.rb +12 -0
- data/spec/models/async_passthrough_reciept_spec.rb +34 -0
- data/spec/models/bank_info_spec.rb +14 -2
- data/spec/models/benefit_plan_type_enum_spec.rb +28 -0
- data/spec/models/benefit_spec.rb +31 -1
- data/spec/models/common_model_scope_data_spec.rb +40 -0
- data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
- data/spec/models/common_model_scopes_disabled_models_enabled_actions_enum_spec.rb +28 -0
- data/spec/models/common_model_scopes_disabled_models_spec.rb +58 -0
- data/spec/models/common_model_scopes_post_inner_deserializer_request_spec.rb +46 -0
- data/spec/models/common_model_scopes_spec.rb +40 -0
- data/spec/models/common_model_scopes_update_serializer_spec.rb +34 -0
- data/spec/models/company_spec.rb +14 -2
- data/spec/models/condition_schema_spec.rb +70 -0
- data/spec/models/condition_type_enum_spec.rb +28 -0
- data/spec/models/deduction_spec.rb +20 -2
- data/spec/models/dependent_spec.rb +130 -0
- data/spec/models/earning_spec.rb +24 -0
- data/spec/models/employee_payroll_run_spec.rb +14 -2
- data/spec/models/employee_request_spec.rb +5 -11
- data/spec/models/employee_spec.rb +15 -3
- data/spec/models/employer_benefit_spec.rb +88 -0
- data/spec/models/employment_spec.rb +14 -2
- data/spec/models/enabled_actions_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +6 -0
- data/spec/models/group_spec.rb +14 -2
- data/spec/models/issue_spec.rb +6 -0
- data/spec/models/linked_account_condition_request_spec.rb +46 -0
- data/spec/models/linked_account_condition_spec.rb +64 -0
- data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
- data/spec/models/location_spec.rb +14 -2
- data/spec/models/meta_response_spec.rb +6 -0
- data/spec/models/operator_schema_spec.rb +40 -0
- data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
- data/spec/models/paginated_dependent_list_spec.rb +46 -0
- data/spec/models/paginated_employer_benefit_list_spec.rb +46 -0
- data/spec/models/pay_group_spec.rb +14 -2
- data/spec/models/payroll_run_spec.rb +14 -2
- data/spec/models/relationship_enum_spec.rb +28 -0
- data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
- data/spec/models/sync_status_spec.rb +6 -0
- data/spec/models/tax_spec.rb +24 -0
- data/spec/models/team_spec.rb +14 -2
- data/spec/models/time_off_balance_spec.rb +14 -2
- data/spec/models/time_off_request_spec.rb +12 -6
- data/spec/models/time_off_spec.rb +14 -2
- metadata +225 -105
@@ -0,0 +1,181 @@
|
|
1
|
+
# MergeHRISClient::DependentsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/hris/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**dependents_list**](DependentsApi.md#dependents_list) | **GET** /dependents | |
|
8
|
+
| [**dependents_retrieve**](DependentsApi.md#dependents_retrieve) | **GET** /dependents/{id} | |
|
9
|
+
|
10
|
+
|
11
|
+
## dependents_list
|
12
|
+
|
13
|
+
> <PaginatedDependentList> dependents_list(x_account_token, opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Returns a list of `Dependent` 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['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::DependentsApi.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
|
+
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
39
|
+
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
40
|
+
include_sensitive_fields: true, # Boolean | Whether to include sensitive fields (such as social security numbers) in the response.
|
41
|
+
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, only objects synced by Merge after this date time will be returned.
|
42
|
+
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, only objects synced by Merge before this date time will be returned.
|
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.dependents_list(x_account_token, opts)
|
50
|
+
p result
|
51
|
+
rescue MergeHRISClient::ApiError => e
|
52
|
+
puts "Error when calling DependentsApi->dependents_list: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
#### Using the dependents_list_with_http_info variant
|
57
|
+
|
58
|
+
This returns an Array which contains the response data, status code and headers.
|
59
|
+
|
60
|
+
> <Array(<PaginatedDependentList>, Integer, Hash)> dependents_list_with_http_info(x_account_token, opts)
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
begin
|
64
|
+
|
65
|
+
data, status_code, headers = api_instance.dependents_list_with_http_info(x_account_token, opts)
|
66
|
+
p status_code # => 2xx
|
67
|
+
p headers # => { ... }
|
68
|
+
p data # => <PaginatedDependentList>
|
69
|
+
rescue MergeHRISClient::ApiError => e
|
70
|
+
puts "Error when calling DependentsApi->dependents_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
|
+
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
83
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
84
|
+
| **include_sensitive_fields** | **Boolean** | Whether to include sensitive fields (such as social security numbers) in the response. | [optional] |
|
85
|
+
| **modified_after** | **Time** | If provided, only objects synced by Merge after this date time will be returned. | [optional] |
|
86
|
+
| **modified_before** | **Time** | If provided, only objects synced by Merge before this date time will be returned. | [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
|
+
[**PaginatedDependentList**](PaginatedDependentList.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
|
+
## dependents_retrieve
|
105
|
+
|
106
|
+
> <Dependent> dependents_retrieve(x_account_token, id, opts)
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
Returns a `Dependent` 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['tokenAuth'] = '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['tokenAuth'] = 'Bearer'
|
123
|
+
end
|
124
|
+
|
125
|
+
api_instance = MergeHRISClient::DependentsApi.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
|
+
include_sensitive_fields: true # Boolean | Whether to include sensitive fields (such as social security numbers) in the response.
|
131
|
+
}
|
132
|
+
|
133
|
+
begin
|
134
|
+
|
135
|
+
result = api_instance.dependents_retrieve(x_account_token, id, opts)
|
136
|
+
p result
|
137
|
+
rescue MergeHRISClient::ApiError => e
|
138
|
+
puts "Error when calling DependentsApi->dependents_retrieve: #{e}"
|
139
|
+
end
|
140
|
+
```
|
141
|
+
|
142
|
+
#### Using the dependents_retrieve_with_http_info variant
|
143
|
+
|
144
|
+
This returns an Array which contains the response data, status code and headers.
|
145
|
+
|
146
|
+
> <Array(<Dependent>, Integer, Hash)> dependents_retrieve_with_http_info(x_account_token, id, opts)
|
147
|
+
|
148
|
+
```ruby
|
149
|
+
begin
|
150
|
+
|
151
|
+
data, status_code, headers = api_instance.dependents_retrieve_with_http_info(x_account_token, id, opts)
|
152
|
+
p status_code # => 2xx
|
153
|
+
p headers # => { ... }
|
154
|
+
p data # => <Dependent>
|
155
|
+
rescue MergeHRISClient::ApiError => e
|
156
|
+
puts "Error when calling DependentsApi->dependents_retrieve_with_http_info: #{e}"
|
157
|
+
end
|
158
|
+
```
|
159
|
+
|
160
|
+
### Parameters
|
161
|
+
|
162
|
+
| Name | Type | Description | Notes |
|
163
|
+
| ---- | ---- | ----------- | ----- |
|
164
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
165
|
+
| **id** | [**String**](.md) | | |
|
166
|
+
| **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 sensitive fields (such as social security numbers) in the response. | [optional] |
|
168
|
+
|
169
|
+
### Return type
|
170
|
+
|
171
|
+
[**Dependent**](Dependent.md)
|
172
|
+
|
173
|
+
### Authorization
|
174
|
+
|
175
|
+
[tokenAuth](../README.md#tokenAuth)
|
176
|
+
|
177
|
+
### HTTP request headers
|
178
|
+
|
179
|
+
- **Content-Type**: Not defined
|
180
|
+
- **Accept**: application/json
|
181
|
+
|
data/docs/Earning.md
CHANGED
@@ -5,10 +5,14 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **id** | **String** | | [optional][readonly] |
|
8
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
8
9
|
| **employee_payroll_run** | **String** | | [optional] |
|
9
10
|
| **amount** | **Float** | The amount earned. | [optional] |
|
10
|
-
| **type** | [**EarningTypeEnum**](EarningTypeEnum.md) | The type of earning. | [optional] |
|
11
|
+
| **type** | [**EarningTypeEnum**](EarningTypeEnum.md) | The type of earning. * `SALARY` - SALARY * `REIMBURSEMENT` - REIMBURSEMENT * `OVERTIME` - OVERTIME * `BONUS` - BONUS | [optional] |
|
11
12
|
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional] |
|
13
|
+
| **modified_at** | **Time** | This is the datetime that this object was last updated by Merge | [optional][readonly] |
|
14
|
+
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
15
|
+
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
12
16
|
|
13
17
|
## Example
|
14
18
|
|
@@ -17,10 +21,14 @@ require 'merge_hris_client'
|
|
17
21
|
|
18
22
|
instance = MergeHRISClient::Earning.new(
|
19
23
|
id: babbced6-3a81-4775-8da2-490dc6385259,
|
24
|
+
remote_id: 52802,
|
20
25
|
employee_payroll_run: 35347df1-95e7-46e2-93cc-66f1191edca5,
|
21
26
|
amount: 1002.34,
|
22
27
|
type: SALARY,
|
23
|
-
remote_was_deleted: null
|
28
|
+
remote_was_deleted: null,
|
29
|
+
modified_at: 2021-10-16T00:00Z,
|
30
|
+
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
|
31
|
+
remote_data: null
|
24
32
|
)
|
25
33
|
```
|
26
34
|
|
data/docs/Employee.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_number** | **String** | The employee's number that appears in the
|
10
|
-
| **company** | **String** |
|
9
|
+
| **employee_number** | **String** | The employee's number that appears in the third-party integration's UI. | [optional] |
|
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
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] |
|
@@ -17,25 +17,27 @@
|
|
17
17
|
| **personal_email** | **String** | The employee's personal email. | [optional] |
|
18
18
|
| **mobile_phone_number** | **String** | The employee's mobile phone number. | [optional] |
|
19
19
|
| **employments** | **Array<String>** | Array of `Employment` IDs for this Employee. | [optional] |
|
20
|
-
| **home_location** | **String** |
|
21
|
-
| **work_location** | **String** |
|
22
|
-
| **manager** | **String** |
|
23
|
-
| **team** | **String** |
|
24
|
-
| **pay_group** | **String** |
|
20
|
+
| **home_location** | **String** | The employee's home address. | [optional] |
|
21
|
+
| **work_location** | **String** | The employee's work address. | [optional] |
|
22
|
+
| **manager** | **String** | The employee ID of the employee's manager. | [optional] |
|
23
|
+
| **team** | **String** | The employee's team. | [optional] |
|
24
|
+
| **pay_group** | **String** | The employee's pay group | [optional] |
|
25
25
|
| **ssn** | **String** | The employee's social security number. | [optional] |
|
26
|
-
| **gender** | [**GenderEnum**](GenderEnum.md) | The employee's gender. | [optional] |
|
27
|
-
| **ethnicity** | [**EthnicityEnum**](EthnicityEnum.md) | The employee's ethnicity. | [optional] |
|
28
|
-
| **marital_status** | [**MaritalStatusEnum**](MaritalStatusEnum.md) | The employee's marital status. | [optional] |
|
26
|
+
| **gender** | [**GenderEnum**](GenderEnum.md) | The employee's gender. * `MALE` - MALE * `FEMALE` - FEMALE * `NON-BINARY` - NON-BINARY * `OTHER` - OTHER * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE | [optional] |
|
27
|
+
| **ethnicity** | [**EthnicityEnum**](EthnicityEnum.md) | The employee's ethnicity. * `AMERICAN_INDIAN_OR_ALASKA_NATIVE` - AMERICAN_INDIAN_OR_ALASKA_NATIVE * `ASIAN_OR_INDIAN_SUBCONTINENT` - ASIAN_OR_INDIAN_SUBCONTINENT * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES * `WHITE` - WHITE * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE | [optional] |
|
28
|
+
| **marital_status** | [**MaritalStatusEnum**](MaritalStatusEnum.md) | The employee's filing status as related to marital status. * `SINGLE` - SINGLE * `MARRIED_FILING_JOINTLY` - MARRIED_FILING_JOINTLY * `MARRIED_FILING_SEPARATELY` - MARRIED_FILING_SEPARATELY * `HEAD_OF_HOUSEHOLD` - HEAD_OF_HOUSEHOLD * `QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD` - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD | [optional] |
|
29
29
|
| **date_of_birth** | **Time** | The employee's date of birth. | [optional] |
|
30
30
|
| **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] |
|
31
|
-
| **start_date** | **Time** | The date that the employee started working. If an employee
|
31
|
+
| **start_date** | **Time** | The date that the employee started working. If an employee was rehired, the most recent start date will be returned. | [optional] |
|
32
32
|
| **remote_created_at** | **Time** | When the third party's employee was created. | [optional] |
|
33
|
-
| **employment_status** | [**EmploymentStatusEnum**](EmploymentStatusEnum.md) | The employment status of the employee. | [optional] |
|
33
|
+
| **employment_status** | [**EmploymentStatusEnum**](EmploymentStatusEnum.md) | The employment status of the employee. * `ACTIVE` - ACTIVE * `PENDING` - PENDING * `INACTIVE` - INACTIVE | [optional] |
|
34
34
|
| **termination_date** | **Time** | The employee's termination date. | [optional] |
|
35
35
|
| **avatar** | **String** | The URL of the employee's avatar image. | [optional] |
|
36
|
-
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
37
36
|
| **custom_fields** | [**Hash<String, AnyType>**](AnyType.md) | Custom fields configured for a given model. | [optional] |
|
38
37
|
| **remote_was_deleted** | **Boolean** | | [optional][readonly] |
|
38
|
+
| **modified_at** | **Time** | This is the datetime that this object was last updated by Merge | [optional][readonly] |
|
39
|
+
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
40
|
+
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
39
41
|
|
40
42
|
## Example
|
41
43
|
|
@@ -72,9 +74,11 @@ instance = MergeHRISClient::Employee.new(
|
|
72
74
|
employment_status: INACTIVE,
|
73
75
|
termination_date: 2021-10-12T00:00Z,
|
74
76
|
avatar: http://alturl.com/h2h8m,
|
75
|
-
remote_data: [{"path":"/people","data":["Varies by platform"]}],
|
76
77
|
custom_fields: null,
|
77
|
-
remote_was_deleted: null
|
78
|
+
remote_was_deleted: null,
|
79
|
+
modified_at: 2021-10-16T00:00Z,
|
80
|
+
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
|
81
|
+
remote_data: [{"path":"/people","data":["Varies by platform"]}]
|
78
82
|
)
|
79
83
|
```
|
80
84
|
|
data/docs/EmployeePayrollRun.md
CHANGED
@@ -6,18 +6,20 @@
|
|
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
|
-
| **payroll_run** | **String** |
|
11
|
-
| **gross_pay** | **Float** | The
|
12
|
-
| **net_pay** | **Float** | The
|
9
|
+
| **employee** | **String** | The employee whose payroll is being run. | [optional] |
|
10
|
+
| **payroll_run** | **String** | The payroll being run. | [optional] |
|
11
|
+
| **gross_pay** | **Float** | The total earnings throughout a given period for an employee before any deductions are made. | [optional] |
|
12
|
+
| **net_pay** | **Float** | The take-home pay throughout a given period for an employee after deductions are made. | [optional] |
|
13
13
|
| **start_date** | **Time** | The day and time the payroll run started. | [optional] |
|
14
14
|
| **end_date** | **Time** | The day and time the payroll run ended. | [optional] |
|
15
15
|
| **check_date** | **Time** | The day and time the payroll run was checked. | [optional] |
|
16
16
|
| **earnings** | [**Array<Earning>**](Earning.md) | | [optional][readonly] |
|
17
17
|
| **deductions** | [**Array<Deduction>**](Deduction.md) | | [optional][readonly] |
|
18
18
|
| **taxes** | [**Array<Tax>**](Tax.md) | | [optional][readonly] |
|
19
|
-
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
20
19
|
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
20
|
+
| **modified_at** | **Time** | This is the datetime that this object was last updated by Merge | [optional][readonly] |
|
21
|
+
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
22
|
+
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
21
23
|
|
22
24
|
## Example
|
23
25
|
|
@@ -37,8 +39,10 @@ instance = MergeHRISClient::EmployeePayrollRun.new(
|
|
37
39
|
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"}],
|
38
40
|
deductions: [{"employee_payroll_run":"35347df1-95e7-46e2-93cc-66f1191edca5","name":"Social Security","employee_deduction":34.54,"company_deduction":78.78}],
|
39
41
|
taxes: [{"employee_payroll_run":"35347df1-95e7-46e2-93cc-66f1191edca5","name":"California State Income Tax","amount":100.25,"employer_tax":"False"}],
|
40
|
-
|
41
|
-
|
42
|
+
remote_was_deleted: null,
|
43
|
+
modified_at: 2021-10-16T00:00Z,
|
44
|
+
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
|
45
|
+
remote_data: [{"path":"/employee-payroll","data":["Varies by platform"]}]
|
42
46
|
)
|
43
47
|
```
|
44
48
|
|
@@ -41,8 +41,8 @@ opts = {
|
|
41
41
|
expand: 'employee', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
42
42
|
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
43
43
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
44
|
-
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided,
|
45
|
-
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided,
|
44
|
+
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, only objects synced by Merge after this date time will be returned.
|
45
|
+
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, only objects synced by Merge before this date time will be returned.
|
46
46
|
page_size: 56, # Integer | Number of results to return per page.
|
47
47
|
payroll_run_id: 'payroll_run_id_example', # String | If provided, will only return employee payroll runs for this employee.
|
48
48
|
remote_id: 'remote_id_example', # String | The API provider's ID for the given object.
|
@@ -91,8 +91,8 @@ end
|
|
91
91
|
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
92
92
|
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
93
93
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
94
|
-
| **modified_after** | **Time** | If provided,
|
95
|
-
| **modified_before** | **Time** | If provided,
|
94
|
+
| **modified_after** | **Time** | If provided, only objects synced by Merge after this date time will be returned. | [optional] |
|
95
|
+
| **modified_before** | **Time** | If provided, only objects synced by Merge before this date time will be returned. | [optional] |
|
96
96
|
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
97
97
|
| **payroll_run_id** | **String** | If provided, will only return employee payroll runs for this employee. | [optional] |
|
98
98
|
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
data/docs/EmployeeRequest.md
CHANGED
@@ -4,9 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
8
|
-
| **
|
9
|
-
| **company** | **String** | | [optional] |
|
7
|
+
| **employee_number** | **String** | The employee's number that appears in the third-party integration's UI. | [optional] |
|
8
|
+
| **company** | **String** | The ID of the employee's company. | [optional] |
|
10
9
|
| **first_name** | **String** | The employee's first name. | [optional] |
|
11
10
|
| **last_name** | **String** | The employee's last name. | [optional] |
|
12
11
|
| **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] |
|
@@ -16,23 +15,23 @@
|
|
16
15
|
| **personal_email** | **String** | The employee's personal email. | [optional] |
|
17
16
|
| **mobile_phone_number** | **String** | The employee's mobile phone number. | [optional] |
|
18
17
|
| **employments** | **Array<String>** | Array of `Employment` IDs for this Employee. | [optional] |
|
19
|
-
| **home_location** | **String** |
|
20
|
-
| **work_location** | **String** |
|
21
|
-
| **manager** | **String** |
|
22
|
-
| **team** | **String** |
|
23
|
-
| **pay_group** | **String** |
|
18
|
+
| **home_location** | **String** | The employee's home address. | [optional] |
|
19
|
+
| **work_location** | **String** | The employee's work address. | [optional] |
|
20
|
+
| **manager** | **String** | The employee ID of the employee's manager. | [optional] |
|
21
|
+
| **team** | **String** | The employee's team. | [optional] |
|
22
|
+
| **pay_group** | **String** | The employee's pay group | [optional] |
|
24
23
|
| **ssn** | **String** | The employee's social security number. | [optional] |
|
25
|
-
| **gender** | [**GenderEnum**](GenderEnum.md) | The employee's gender. | [optional] |
|
26
|
-
| **ethnicity** | [**EthnicityEnum**](EthnicityEnum.md) | The employee's ethnicity. | [optional] |
|
27
|
-
| **marital_status** | [**MaritalStatusEnum**](MaritalStatusEnum.md) | The employee's marital status. | [optional] |
|
24
|
+
| **gender** | [**GenderEnum**](GenderEnum.md) | The employee's gender. * `MALE` - MALE * `FEMALE` - FEMALE * `NON-BINARY` - NON-BINARY * `OTHER` - OTHER * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE | [optional] |
|
25
|
+
| **ethnicity** | [**EthnicityEnum**](EthnicityEnum.md) | The employee's ethnicity. * `AMERICAN_INDIAN_OR_ALASKA_NATIVE` - AMERICAN_INDIAN_OR_ALASKA_NATIVE * `ASIAN_OR_INDIAN_SUBCONTINENT` - ASIAN_OR_INDIAN_SUBCONTINENT * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES * `WHITE` - WHITE * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE | [optional] |
|
26
|
+
| **marital_status** | [**MaritalStatusEnum**](MaritalStatusEnum.md) | The employee's filing status as related to marital status. * `SINGLE` - SINGLE * `MARRIED_FILING_JOINTLY` - MARRIED_FILING_JOINTLY * `MARRIED_FILING_SEPARATELY` - MARRIED_FILING_SEPARATELY * `HEAD_OF_HOUSEHOLD` - HEAD_OF_HOUSEHOLD * `QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD` - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD | [optional] |
|
28
27
|
| **date_of_birth** | **Time** | The employee's date of birth. | [optional] |
|
29
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] |
|
30
|
-
| **start_date** | **Time** | The date that the employee started working. If an employee
|
31
|
-
| **
|
32
|
-
| **employment_status** | [**EmploymentStatusEnum**](EmploymentStatusEnum.md) | The employment status of the employee. | [optional] |
|
29
|
+
| **start_date** | **Time** | The date that the employee started working. If an employee was rehired, the most recent start date will be returned. | [optional] |
|
30
|
+
| **employment_status** | [**EmploymentStatusEnum**](EmploymentStatusEnum.md) | The employment status of the employee. * `ACTIVE` - ACTIVE * `PENDING` - PENDING * `INACTIVE` - INACTIVE | [optional] |
|
33
31
|
| **termination_date** | **Time** | The employee's termination date. | [optional] |
|
34
32
|
| **avatar** | **String** | The URL of the employee's avatar image. | [optional] |
|
35
|
-
| **
|
33
|
+
| **integration_params** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
|
34
|
+
| **linked_account_params** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
|
36
35
|
|
37
36
|
## Example
|
38
37
|
|
@@ -40,7 +39,6 @@
|
|
40
39
|
require 'merge_hris_client'
|
41
40
|
|
42
41
|
instance = MergeHRISClient::EmployeeRequest.new(
|
43
|
-
remote_id: 19202938,
|
44
42
|
employee_number: 2,
|
45
43
|
company: 8d9fd929-436c-4fd4-a48b-0c61f68d6178,
|
46
44
|
first_name: Greg,
|
@@ -64,11 +62,11 @@ instance = MergeHRISClient::EmployeeRequest.new(
|
|
64
62
|
date_of_birth: 1990-11-10T00:00Z,
|
65
63
|
hire_date: 2020-10-10T00:00Z,
|
66
64
|
start_date: 2020-10-11T00:00Z,
|
67
|
-
remote_created_at: 2020-10-11T00:00Z,
|
68
65
|
employment_status: INACTIVE,
|
69
66
|
termination_date: 2021-10-12T00:00Z,
|
70
67
|
avatar: http://alturl.com/h2h8m,
|
71
|
-
|
68
|
+
integration_params: {"unique_integration_field":"unique_integration_field_value"},
|
69
|
+
linked_account_params: {"unique_linked_account_field":"unique_linked_account_field_value"}
|
72
70
|
)
|
73
71
|
```
|
74
72
|
|
data/docs/EmployeesApi.md
CHANGED
@@ -92,7 +92,7 @@ end
|
|
92
92
|
|
93
93
|
## employees_ignore_create
|
94
94
|
|
95
|
-
>
|
95
|
+
> employees_ignore_create(x_account_token, model_id, ignore_common_model_request)
|
96
96
|
|
97
97
|
|
98
98
|
|
@@ -118,8 +118,7 @@ ignore_common_model_request = MergeHRISClient::IgnoreCommonModelRequest.new({rea
|
|
118
118
|
|
119
119
|
begin
|
120
120
|
|
121
|
-
|
122
|
-
p result
|
121
|
+
api_instance.employees_ignore_create(x_account_token, model_id, ignore_common_model_request)
|
123
122
|
rescue MergeHRISClient::ApiError => e
|
124
123
|
puts "Error when calling EmployeesApi->employees_ignore_create: #{e}"
|
125
124
|
end
|
@@ -127,9 +126,9 @@ end
|
|
127
126
|
|
128
127
|
#### Using the employees_ignore_create_with_http_info variant
|
129
128
|
|
130
|
-
This returns an Array which contains the response data, status code and headers.
|
129
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
131
130
|
|
132
|
-
> <Array(
|
131
|
+
> <Array(nil, Integer, Hash)> employees_ignore_create_with_http_info(x_account_token, model_id, ignore_common_model_request)
|
133
132
|
|
134
133
|
```ruby
|
135
134
|
begin
|
@@ -137,7 +136,7 @@ begin
|
|
137
136
|
data, status_code, headers = api_instance.employees_ignore_create_with_http_info(x_account_token, model_id, ignore_common_model_request)
|
138
137
|
p status_code # => 2xx
|
139
138
|
p headers # => { ... }
|
140
|
-
p data # =>
|
139
|
+
p data # => nil
|
141
140
|
rescue MergeHRISClient::ApiError => e
|
142
141
|
puts "Error when calling EmployeesApi->employees_ignore_create_with_http_info: #{e}"
|
143
142
|
end
|
@@ -153,7 +152,7 @@ end
|
|
153
152
|
|
154
153
|
### Return type
|
155
154
|
|
156
|
-
|
155
|
+
nil (empty response body)
|
157
156
|
|
158
157
|
### Authorization
|
159
158
|
|
@@ -162,7 +161,7 @@ end
|
|
162
161
|
### HTTP request headers
|
163
162
|
|
164
163
|
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
165
|
-
- **Accept**:
|
164
|
+
- **Accept**: Not defined
|
166
165
|
|
167
166
|
|
168
167
|
## employees_list
|
@@ -194,22 +193,28 @@ opts = {
|
|
194
193
|
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
195
194
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
196
195
|
display_full_name: 'display_full_name_example', # String | If provided, will only return employees with this display name.
|
197
|
-
employment_status: 'ACTIVE', # String | If provided, will only return employees with this employment status.
|
196
|
+
employment_status: 'ACTIVE', # String | If provided, will only return employees with this employment status. * `ACTIVE` - ACTIVE * `PENDING` - PENDING * `INACTIVE` - INACTIVE
|
198
197
|
expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
199
198
|
first_name: 'first_name_example', # String | If provided, will only return employees with this first name.
|
199
|
+
groups: 'groups_example', # String | If provided, will only return employees matching the group ids; multiple groups can be separated by commas.
|
200
200
|
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
201
201
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
202
202
|
include_sensitive_fields: true, # Boolean | Whether to include sensitive fields (such as social security numbers) in the response.
|
203
203
|
last_name: 'last_name_example', # String | If provided, will only return employees with this last name.
|
204
204
|
manager_id: 'manager_id_example', # String | If provided, will only return employees for this manager.
|
205
|
-
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided,
|
206
|
-
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided,
|
205
|
+
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, only objects synced by Merge after this date time will be returned.
|
206
|
+
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, only objects synced by Merge before this date time will be returned.
|
207
207
|
page_size: 56, # Integer | Number of results to return per page.
|
208
208
|
pay_group_id: 'pay_group_id_example', # String | If provided, will only return employees for this pay group
|
209
209
|
personal_email: TODO, # String | If provided, will only return Employees with this personal email
|
210
|
-
remote_fields: 'employment_status', # String |
|
210
|
+
remote_fields: 'employment_status', # String | Deprecated. Use show_enum_origins.
|
211
211
|
remote_id: 'remote_id_example', # String | The API provider's ID for the given object.
|
212
|
+
show_enum_origins: 'employment_status', # String | Which fields should be returned in non-normalized form.
|
213
|
+
started_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return employees that started after this datetime.
|
214
|
+
started_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return employees that started before this datetime.
|
212
215
|
team_id: 'team_id_example', # String | If provided, will only return employees for this team.
|
216
|
+
terminated_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return employees that were terminated after this datetime.
|
217
|
+
terminated_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return employees that were terminated before this datetime.
|
213
218
|
work_email: TODO, # String | If provided, will only return Employees with this work email
|
214
219
|
work_location_id: 'work_location_id_example' # String | If provided, will only return employees for this location.
|
215
220
|
}
|
@@ -251,22 +256,28 @@ end
|
|
251
256
|
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
252
257
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
253
258
|
| **display_full_name** | **String** | If provided, will only return employees with this display name. | [optional] |
|
254
|
-
| **employment_status** | **String** | If provided, will only return employees with this employment status. | [optional] |
|
259
|
+
| **employment_status** | **String** | If provided, will only return employees with this employment status. * `ACTIVE` - ACTIVE * `PENDING` - PENDING * `INACTIVE` - INACTIVE | [optional] |
|
255
260
|
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
256
261
|
| **first_name** | **String** | If provided, will only return employees with this first name. | [optional] |
|
262
|
+
| **groups** | **String** | If provided, will only return employees matching the group ids; multiple groups can be separated by commas. | [optional] |
|
257
263
|
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
258
264
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
259
265
|
| **include_sensitive_fields** | **Boolean** | Whether to include sensitive fields (such as social security numbers) in the response. | [optional] |
|
260
266
|
| **last_name** | **String** | If provided, will only return employees with this last name. | [optional] |
|
261
267
|
| **manager_id** | **String** | If provided, will only return employees for this manager. | [optional] |
|
262
|
-
| **modified_after** | **Time** | If provided,
|
263
|
-
| **modified_before** | **Time** | If provided,
|
268
|
+
| **modified_after** | **Time** | If provided, only objects synced by Merge after this date time will be returned. | [optional] |
|
269
|
+
| **modified_before** | **Time** | If provided, only objects synced by Merge before this date time will be returned. | [optional] |
|
264
270
|
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
265
271
|
| **pay_group_id** | **String** | If provided, will only return employees for this pay group | [optional] |
|
266
272
|
| **personal_email** | [**String**](.md) | If provided, will only return Employees with this personal email | [optional] |
|
267
|
-
| **remote_fields** | **String** |
|
273
|
+
| **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
|
268
274
|
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
275
|
+
| **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
|
276
|
+
| **started_after** | **Time** | If provided, will only return employees that started after this datetime. | [optional] |
|
277
|
+
| **started_before** | **Time** | If provided, will only return employees that started before this datetime. | [optional] |
|
269
278
|
| **team_id** | **String** | If provided, will only return employees for this team. | [optional] |
|
279
|
+
| **terminated_after** | **Time** | If provided, will only return employees that were terminated after this datetime. | [optional] |
|
280
|
+
| **terminated_before** | **Time** | If provided, will only return employees that were terminated before this datetime. | [optional] |
|
270
281
|
| **work_email** | [**String**](.md) | If provided, will only return Employees with this work email | [optional] |
|
271
282
|
| **work_location_id** | **String** | If provided, will only return employees for this location. | [optional] |
|
272
283
|
|
@@ -383,7 +394,8 @@ opts = {
|
|
383
394
|
expand: 'company', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
384
395
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
385
396
|
include_sensitive_fields: true, # Boolean | Whether to include sensitive fields (such as social security numbers) in the response.
|
386
|
-
remote_fields: 'employment_status' # String |
|
397
|
+
remote_fields: 'employment_status', # String | Deprecated. Use show_enum_origins.
|
398
|
+
show_enum_origins: 'employment_status' # String | Which fields should be returned in non-normalized form.
|
387
399
|
}
|
388
400
|
|
389
401
|
begin
|
@@ -422,7 +434,8 @@ end
|
|
422
434
|
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
423
435
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
424
436
|
| **include_sensitive_fields** | **Boolean** | Whether to include sensitive fields (such as social security numbers) in the response. | [optional] |
|
425
|
-
| **remote_fields** | **String** |
|
437
|
+
| **remote_fields** | **String** | Deprecated. Use show_enum_origins. | [optional] |
|
438
|
+
| **show_enum_origins** | **String** | Which fields should be returned in non-normalized form. | [optional] |
|
426
439
|
|
427
440
|
### Return type
|
428
441
|
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# MergeHRISClient::EmployerBenefit
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | [optional][readonly] |
|
8
|
+
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
9
|
+
| **benefit_plan_type** | [**BenefitPlanTypeEnum**](BenefitPlanTypeEnum.md) | The type of benefit plan. * `MEDICAL` - MEDICAL * `HEALTH_SAVINGS` - HEALTH_SAVINGS * `INSURANCE` - INSURANCE * `RETIREMENT` - RETIREMENT * `OTHER` - OTHER | [optional] |
|
10
|
+
| **name** | **String** | The employer benefit's name - typically the carrier or network name. | [optional] |
|
11
|
+
| **description** | **String** | The employer benefit's description. | [optional] |
|
12
|
+
| **deduction_code** | **String** | The employer benefit's deduction code. | [optional] |
|
13
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
14
|
+
| **modified_at** | **Time** | This is the datetime that this object was last updated by Merge | [optional][readonly] |
|
15
|
+
| **field_mappings** | [**Hash<String, AnyType>**](AnyType.md) | | [optional][readonly] |
|
16
|
+
| **remote_data** | **Array<Hash<String, AnyType>>** | | [optional] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'merge_hris_client'
|
22
|
+
|
23
|
+
instance = MergeHRISClient::EmployerBenefit.new(
|
24
|
+
id: null,
|
25
|
+
remote_id: 19202939,
|
26
|
+
benefit_plan_type: MEDICAL,
|
27
|
+
name: Kaiser Permanente Medical Plan,
|
28
|
+
description: HDHP Silver Plan,
|
29
|
+
deduction_code: COL,
|
30
|
+
remote_was_deleted: null,
|
31
|
+
modified_at: 2021-10-16T00:00Z,
|
32
|
+
field_mappings: {"organization_defined_targets":{"custom_key":"custom_value"},"linked_account_defined_targets":{"custom_key":"custom_value"}},
|
33
|
+
remote_data: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|