merge_hris_client 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +179 -0
- data/Rakefile +10 -0
- data/config.json +1 -0
- data/docs/AccountIntegration.md +28 -0
- data/docs/AccountToken.md +18 -0
- data/docs/AccountTokenApi.md +79 -0
- data/docs/AvailableActions.md +22 -0
- data/docs/AvailableActionsApi.md +79 -0
- data/docs/Benefit.md +32 -0
- data/docs/BenefitPlanTypeEnum.md +15 -0
- data/docs/BenefitsApi.md +181 -0
- data/docs/CompaniesApi.md +175 -0
- data/docs/Company.md +28 -0
- data/docs/CountryEnum.md +15 -0
- data/docs/DataPassthrough.md +24 -0
- data/docs/DataPassthroughRequest.md +26 -0
- data/docs/Deduction.md +28 -0
- data/docs/Earning.md +26 -0
- data/docs/Employee.md +66 -0
- data/docs/EmployeePayrollRun.md +42 -0
- data/docs/EmployeePayrollRunsApi.md +183 -0
- data/docs/EmployeesApi.md +187 -0
- data/docs/Employment.md +38 -0
- data/docs/EmploymentStatusEnum.md +15 -0
- data/docs/EmploymentTypeEnum.md +15 -0
- data/docs/EmploymentsApi.md +177 -0
- data/docs/EndUserDetails.md +24 -0
- data/docs/EndUserDetailsRequest.md +26 -0
- data/docs/EthnicityEnum.md +15 -0
- data/docs/FlsaStatusEnum.md +15 -0
- data/docs/GenderEnum.md +15 -0
- data/docs/GenerateKeyApi.md +79 -0
- data/docs/GenerateRemoteKeyRequest.md +18 -0
- data/docs/LinkToken.md +20 -0
- data/docs/LinkTokenApi.md +79 -0
- data/docs/Location.md +36 -0
- data/docs/LocationsApi.md +175 -0
- data/docs/MaritalStatusEnum.md +15 -0
- data/docs/MethodEnum.md +15 -0
- data/docs/ModelOperation.md +22 -0
- data/docs/NullEnum.md +15 -0
- data/docs/PaginatedBenefitList.md +22 -0
- data/docs/PaginatedCompanyList.md +22 -0
- data/docs/PaginatedEmployeeList.md +22 -0
- data/docs/PaginatedEmployeePayrollRunList.md +22 -0
- data/docs/PaginatedEmploymentList.md +22 -0
- data/docs/PaginatedLocationList.md +22 -0
- data/docs/PaginatedPayrollRunList.md +22 -0
- data/docs/PaginatedTeamList.md +22 -0
- data/docs/PaginatedTimeOffList.md +22 -0
- data/docs/PassthroughApi.md +81 -0
- data/docs/PayCurrencyEnum.md +15 -0
- data/docs/PayFrequencyEnum.md +15 -0
- data/docs/PayPeriodEnum.md +15 -0
- data/docs/PayrollRun.md +32 -0
- data/docs/PayrollRunsApi.md +175 -0
- data/docs/RegenerateKeyApi.md +79 -0
- data/docs/RemoteData.md +20 -0
- data/docs/RemoteKey.md +20 -0
- data/docs/RemoteKeyForRegeneration.md +18 -0
- data/docs/RemoteKeyForRegenerationRequest.md +18 -0
- data/docs/RemoteResponse.md +26 -0
- data/docs/RequestTypeEnum.md +15 -0
- data/docs/RunStateEnum.md +15 -0
- data/docs/RunTypeEnum.md +15 -0
- data/docs/StateEnum.md +15 -0
- data/docs/SyncStatus.md +28 -0
- data/docs/SyncStatusApi.md +79 -0
- data/docs/Tax.md +28 -0
- data/docs/Team.md +24 -0
- data/docs/TeamsApi.md +175 -0
- data/docs/TimeOff.md +36 -0
- data/docs/TimeOffApi.md +183 -0
- data/docs/TimeOffStatusEnum.md +15 -0
- data/docs/TypeEnum.md +15 -0
- data/docs/UnitsEnum.md +15 -0
- data/git_push.sh +58 -0
- data/lib/merge_hris_client.rb +110 -0
- data/lib/merge_hris_client/api/account_token_api.rb +83 -0
- data/lib/merge_hris_client/api/available_actions_api.rb +84 -0
- data/lib/merge_hris_client/api/benefits_api.rb +196 -0
- data/lib/merge_hris_client/api/companies_api.rb +179 -0
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +199 -0
- data/lib/merge_hris_client/api/employees_api.rb +205 -0
- data/lib/merge_hris_client/api/employments_api.rb +182 -0
- data/lib/merge_hris_client/api/generate_key_api.rb +85 -0
- data/lib/merge_hris_client/api/link_token_api.rb +85 -0
- data/lib/merge_hris_client/api/locations_api.rb +179 -0
- data/lib/merge_hris_client/api/passthrough_api.rb +92 -0
- data/lib/merge_hris_client/api/payroll_runs_api.rb +179 -0
- data/lib/merge_hris_client/api/regenerate_key_api.rb +85 -0
- data/lib/merge_hris_client/api/sync_status_api.rb +84 -0
- data/lib/merge_hris_client/api/teams_api.rb +179 -0
- data/lib/merge_hris_client/api/time_off_api.rb +199 -0
- data/lib/merge_hris_client/api_client.rb +390 -0
- data/lib/merge_hris_client/api_error.rb +57 -0
- data/lib/merge_hris_client/configuration.rb +279 -0
- data/lib/merge_hris_client/models/account_integration.rb +325 -0
- data/lib/merge_hris_client/models/account_token.rb +223 -0
- data/lib/merge_hris_client/models/available_actions.rb +249 -0
- data/lib/merge_hris_client/models/benefit.rb +297 -0
- data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +56 -0
- data/lib/merge_hris_client/models/company.rb +277 -0
- data/lib/merge_hris_client/models/country_enum.rb +282 -0
- data/lib/merge_hris_client/models/data_passthrough.rb +262 -0
- data/lib/merge_hris_client/models/data_passthrough_request.rb +271 -0
- data/lib/merge_hris_client/models/deduction.rb +275 -0
- data/lib/merge_hris_client/models/earning.rb +264 -0
- data/lib/merge_hris_client/models/employee.rb +544 -0
- data/lib/merge_hris_client/models/employee_payroll_run.rb +352 -0
- data/lib/merge_hris_client/models/employment.rb +330 -0
- data/lib/merge_hris_client/models/employment_status_enum.rb +37 -0
- data/lib/merge_hris_client/models/employment_type_enum.rb +39 -0
- data/lib/merge_hris_client/models/end_user_details.rb +289 -0
- data/lib/merge_hris_client/models/end_user_details_request.rb +298 -0
- data/lib/merge_hris_client/models/ethnicity_enum.rb +42 -0
- data/lib/merge_hris_client/models/flsa_status_enum.rb +38 -0
- data/lib/merge_hris_client/models/gender_enum.rb +39 -0
- data/lib/merge_hris_client/models/generate_remote_key_request.rb +224 -0
- data/lib/merge_hris_client/models/link_token.rb +237 -0
- data/lib/merge_hris_client/models/location.rb +319 -0
- data/lib/merge_hris_client/models/marital_status_enum.rb +39 -0
- data/lib/merge_hris_client/models/method_enum.rb +41 -0
- data/lib/merge_hris_client/models/model_operation.rb +256 -0
- data/lib/merge_hris_client/models/paginated_benefit_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_company_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_employee_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_employee_payroll_run_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_employment_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_location_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_payroll_run_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_team_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_time_off_list.rb +240 -0
- data/lib/merge_hris_client/models/pay_currency_enum.rb +340 -0
- data/lib/merge_hris_client/models/pay_frequency_enum.rb +43 -0
- data/lib/merge_hris_client/models/pay_period_enum.rb +42 -0
- data/lib/merge_hris_client/models/payroll_run.rb +297 -0
- data/lib/merge_hris_client/models/remote_data.rb +234 -0
- data/lib/merge_hris_client/models/remote_key.rb +238 -0
- data/lib/merge_hris_client/models/remote_key_for_regeneration.rb +224 -0
- data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +224 -0
- data/lib/merge_hris_client/models/remote_response.rb +279 -0
- data/lib/merge_hris_client/models/request_type_enum.rb +38 -0
- data/lib/merge_hris_client/models/run_state_enum.rb +39 -0
- data/lib/merge_hris_client/models/run_type_enum.rb +49 -0
- data/lib/merge_hris_client/models/state_enum.rb +93 -0
- data/lib/merge_hris_client/models/sync_status.rb +294 -0
- data/lib/merge_hris_client/models/tax.rb +275 -0
- data/lib/merge_hris_client/models/team.rb +253 -0
- data/lib/merge_hris_client/models/time_off.rb +319 -0
- data/lib/merge_hris_client/models/time_off_status_enum.rb +39 -0
- data/lib/merge_hris_client/models/type_enum.rb +38 -0
- data/lib/merge_hris_client/models/units_enum.rb +36 -0
- data/lib/merge_hris_client/version.rb +15 -0
- data/merge_hris_client-1.0.0.gem +0 -0
- data/merge_hris_client.gemspec +38 -0
- data/pull_request_template.md +20 -0
- data/spec/api/account_token_api_spec.rb +46 -0
- data/spec/api/available_actions_api_spec.rb +46 -0
- data/spec/api/benefits_api_spec.rb +68 -0
- data/spec/api/companies_api_spec.rb +65 -0
- data/spec/api/employee_payroll_runs_api_spec.rb +69 -0
- data/spec/api/employees_api_spec.rb +71 -0
- data/spec/api/employments_api_spec.rb +66 -0
- data/spec/api/link_token_api_spec.rb +46 -0
- data/spec/api/locations_api_spec.rb +65 -0
- data/spec/api/passthrough_api_spec.rb +48 -0
- data/spec/api/payroll_runs_api_spec.rb +65 -0
- data/spec/api/regenerate_key_api_spec.rb +46 -0
- data/spec/api/teams_api_spec.rb +65 -0
- data/spec/api/time_off_api_spec.rb +69 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_integration_spec.rb +58 -0
- data/spec/models/account_token_spec.rb +34 -0
- data/spec/models/available_actions_spec.rb +34 -0
- data/spec/models/benefit_plan_type_enum_spec.rb +28 -0
- data/spec/models/benefit_spec.rb +70 -0
- data/spec/models/company_spec.rb +58 -0
- data/spec/models/country_enum_spec.rb +28 -0
- data/spec/models/data_passthrough_request_spec.rb +58 -0
- data/spec/models/data_passthrough_spec.rb +52 -0
- data/spec/models/deduction_spec.rb +58 -0
- data/spec/models/earning_spec.rb +52 -0
- data/spec/models/employee_payroll_run_spec.rb +100 -0
- data/spec/models/employee_spec.rb +166 -0
- data/spec/models/employment_spec.rb +88 -0
- data/spec/models/employment_status_enum_spec.rb +28 -0
- data/spec/models/employment_type_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +56 -0
- data/spec/models/end_user_details_spec.rb +56 -0
- data/spec/models/ethnicity_enum_spec.rb +28 -0
- data/spec/models/flsa_status_enum_spec.rb +28 -0
- data/spec/models/gender_enum_spec.rb +28 -0
- data/spec/models/link_token_spec.rb +40 -0
- data/spec/models/location_spec.rb +82 -0
- data/spec/models/marital_status_enum_spec.rb +28 -0
- data/spec/models/method_enum_spec.rb +28 -0
- data/spec/models/model_operation_spec.rb +40 -0
- data/spec/models/paginated_benefit_list_spec.rb +46 -0
- data/spec/models/paginated_company_list_spec.rb +46 -0
- data/spec/models/paginated_employee_list_spec.rb +46 -0
- data/spec/models/paginated_employee_payroll_run_list_spec.rb +46 -0
- data/spec/models/paginated_employment_list_spec.rb +46 -0
- data/spec/models/paginated_location_list_spec.rb +46 -0
- data/spec/models/paginated_payroll_run_list_spec.rb +46 -0
- data/spec/models/paginated_team_list_spec.rb +46 -0
- data/spec/models/paginated_time_off_list_spec.rb +46 -0
- data/spec/models/pay_currency_enum_spec.rb +28 -0
- data/spec/models/pay_frequency_enum_spec.rb +28 -0
- data/spec/models/pay_period_enum_spec.rb +28 -0
- data/spec/models/payroll_run_spec.rb +70 -0
- data/spec/models/remote_data_spec.rb +40 -0
- data/spec/models/remote_key_for_regeneration_request_spec.rb +34 -0
- data/spec/models/remote_key_for_regeneration_spec.rb +34 -0
- data/spec/models/remote_key_spec.rb +40 -0
- data/spec/models/remote_response_spec.rb +58 -0
- data/spec/models/request_type_enum_spec.rb +28 -0
- data/spec/models/run_state_enum_spec.rb +28 -0
- data/spec/models/run_type_enum_spec.rb +28 -0
- data/spec/models/state_enum_spec.rb +28 -0
- data/spec/models/tax_spec.rb +58 -0
- data/spec/models/team_spec.rb +46 -0
- data/spec/models/time_off_spec.rb +82 -0
- data/spec/models/time_off_status_enum_spec.rb +28 -0
- data/spec/models/type_enum_spec.rb +28 -0
- data/spec/models/units_enum_spec.rb +28 -0
- data/spec/spec_helper.rb +111 -0
- data/test_ruby.rb +30 -0
- metadata +385 -0
data/docs/Benefit.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# MergeHRISClient::Benefit
|
|
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
|
+
| **employee** | **String** | The employee on the plan. | [optional] |
|
|
10
|
+
| **provider_name** | **String** | The name of the benefit provider. | [optional] |
|
|
11
|
+
| **benefit_plan_type** | [**BenefitPlanTypeEnum**](BenefitPlanTypeEnum.md) | The type of benefit plan | [optional] |
|
|
12
|
+
| **employee_contribution** | **Float** | The employee's contribution. | [optional] |
|
|
13
|
+
| **company_contribution** | **Float** | The company's contribution. | [optional] |
|
|
14
|
+
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'merge_hris_client'
|
|
20
|
+
|
|
21
|
+
instance = MergeHRISClient::Benefit.new(
|
|
22
|
+
id: 3fe5ae7a-f1ba-4529-b7af-84e86dc6d232,
|
|
23
|
+
remote_id: 19202938,
|
|
24
|
+
employee: d2f972d0-2526-434b-9409-4c3b468e08f0,
|
|
25
|
+
provider_name: Blue Shield of California,
|
|
26
|
+
benefit_plan_type: MEDICAL,
|
|
27
|
+
employee_contribution: 23.65,
|
|
28
|
+
company_contribution: 150.0,
|
|
29
|
+
remote_data: [{"path":"/benefits","data":["Varies by platform"]}]
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# MergeHRISClient::BenefitPlanTypeEnum
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
|
|
8
|
+
## Example
|
|
9
|
+
|
|
10
|
+
```ruby
|
|
11
|
+
require 'merge_hris_client'
|
|
12
|
+
|
|
13
|
+
instance = MergeHRISClient::BenefitPlanTypeEnum.new()
|
|
14
|
+
```
|
|
15
|
+
|
data/docs/BenefitsApi.md
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# MergeHRISClient::BenefitsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/hris/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**benefits_list**](BenefitsApi.md#benefits_list) | **GET** /benefits | |
|
|
8
|
+
| [**benefits_retrieve**](BenefitsApi.md#benefits_retrieve) | **GET** /benefits/{id} | |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## benefits_list
|
|
12
|
+
|
|
13
|
+
> <PaginatedBenefitList> benefits_list(x_account_token, opts)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
Returns a list of `Benefit` 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::BenefitsApi.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_id: 'employee_id_example', # String | If provided, will only return time off for this employee.
|
|
39
|
+
expand: 'employee', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
|
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.benefits_list(x_account_token, opts)
|
|
50
|
+
p result
|
|
51
|
+
rescue MergeHRISClient::ApiError => e
|
|
52
|
+
puts "Error when calling BenefitsApi->benefits_list: #{e}"
|
|
53
|
+
end
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
#### Using the benefits_list_with_http_info variant
|
|
57
|
+
|
|
58
|
+
This returns an Array which contains the response data, status code and headers.
|
|
59
|
+
|
|
60
|
+
> <Array(<PaginatedBenefitList>, Integer, Hash)> benefits_list_with_http_info(x_account_token, opts)
|
|
61
|
+
|
|
62
|
+
```ruby
|
|
63
|
+
begin
|
|
64
|
+
|
|
65
|
+
data, status_code, headers = api_instance.benefits_list_with_http_info(x_account_token, opts)
|
|
66
|
+
p status_code # => 2xx
|
|
67
|
+
p headers # => { ... }
|
|
68
|
+
p data # => <PaginatedBenefitList>
|
|
69
|
+
rescue MergeHRISClient::ApiError => e
|
|
70
|
+
puts "Error when calling BenefitsApi->benefits_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_id** | **String** | If provided, will only return time off for this employee. | [optional] |
|
|
83
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [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
|
+
[**PaginatedBenefitList**](PaginatedBenefitList.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
|
+
## benefits_retrieve
|
|
105
|
+
|
|
106
|
+
> <Benefit> benefits_retrieve(x_account_token, id, opts)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
Returns a `Benefit` 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::BenefitsApi.new
|
|
126
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
|
127
|
+
id = TODO # String |
|
|
128
|
+
opts = {
|
|
129
|
+
expand: 'employee', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
|
130
|
+
include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
begin
|
|
134
|
+
|
|
135
|
+
result = api_instance.benefits_retrieve(x_account_token, id, opts)
|
|
136
|
+
p result
|
|
137
|
+
rescue MergeHRISClient::ApiError => e
|
|
138
|
+
puts "Error when calling BenefitsApi->benefits_retrieve: #{e}"
|
|
139
|
+
end
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
#### Using the benefits_retrieve_with_http_info variant
|
|
143
|
+
|
|
144
|
+
This returns an Array which contains the response data, status code and headers.
|
|
145
|
+
|
|
146
|
+
> <Array(<Benefit>, Integer, Hash)> benefits_retrieve_with_http_info(x_account_token, id, opts)
|
|
147
|
+
|
|
148
|
+
```ruby
|
|
149
|
+
begin
|
|
150
|
+
|
|
151
|
+
data, status_code, headers = api_instance.benefits_retrieve_with_http_info(x_account_token, id, opts)
|
|
152
|
+
p status_code # => 2xx
|
|
153
|
+
p headers # => { ... }
|
|
154
|
+
p data # => <Benefit>
|
|
155
|
+
rescue MergeHRISClient::ApiError => e
|
|
156
|
+
puts "Error when calling BenefitsApi->benefits_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
|
+
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
|
167
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
|
168
|
+
|
|
169
|
+
### Return type
|
|
170
|
+
|
|
171
|
+
[**Benefit**](Benefit.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
|
+
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# MergeHRISClient::CompaniesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/hris/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**companies_list**](CompaniesApi.md#companies_list) | **GET** /companies | |
|
|
8
|
+
| [**companies_retrieve**](CompaniesApi.md#companies_retrieve) | **GET** /companies/{id} | |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## companies_list
|
|
12
|
+
|
|
13
|
+
> <PaginatedCompanyList> companies_list(x_account_token, opts)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
Returns a list of `Company` 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::CompaniesApi.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_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
39
|
+
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
|
40
|
+
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
|
41
|
+
page_size: 56, # Integer | Number of results to return per page.
|
|
42
|
+
remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
begin
|
|
46
|
+
|
|
47
|
+
result = api_instance.companies_list(x_account_token, opts)
|
|
48
|
+
p result
|
|
49
|
+
rescue MergeHRISClient::ApiError => e
|
|
50
|
+
puts "Error when calling CompaniesApi->companies_list: #{e}"
|
|
51
|
+
end
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
#### Using the companies_list_with_http_info variant
|
|
55
|
+
|
|
56
|
+
This returns an Array which contains the response data, status code and headers.
|
|
57
|
+
|
|
58
|
+
> <Array(<PaginatedCompanyList>, Integer, Hash)> companies_list_with_http_info(x_account_token, opts)
|
|
59
|
+
|
|
60
|
+
```ruby
|
|
61
|
+
begin
|
|
62
|
+
|
|
63
|
+
data, status_code, headers = api_instance.companies_list_with_http_info(x_account_token, opts)
|
|
64
|
+
p status_code # => 2xx
|
|
65
|
+
p headers # => { ... }
|
|
66
|
+
p data # => <PaginatedCompanyList>
|
|
67
|
+
rescue MergeHRISClient::ApiError => e
|
|
68
|
+
puts "Error when calling CompaniesApi->companies_list_with_http_info: #{e}"
|
|
69
|
+
end
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Parameters
|
|
73
|
+
|
|
74
|
+
| Name | Type | Description | Notes |
|
|
75
|
+
| ---- | ---- | ----------- | ----- |
|
|
76
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
|
77
|
+
| **created_after** | **Time** | If provided, will only return objects created after this datetime. | [optional] |
|
|
78
|
+
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
|
79
|
+
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
|
80
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
|
81
|
+
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
|
82
|
+
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
|
83
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
|
84
|
+
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
|
85
|
+
|
|
86
|
+
### Return type
|
|
87
|
+
|
|
88
|
+
[**PaginatedCompanyList**](PaginatedCompanyList.md)
|
|
89
|
+
|
|
90
|
+
### Authorization
|
|
91
|
+
|
|
92
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
93
|
+
|
|
94
|
+
### HTTP request headers
|
|
95
|
+
|
|
96
|
+
- **Content-Type**: Not defined
|
|
97
|
+
- **Accept**: application/json
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
## companies_retrieve
|
|
101
|
+
|
|
102
|
+
> <Company> companies_retrieve(x_account_token, id, opts)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
Returns a `Company` object with the given `id`.
|
|
107
|
+
|
|
108
|
+
### Examples
|
|
109
|
+
|
|
110
|
+
```ruby
|
|
111
|
+
require 'time'
|
|
112
|
+
require 'merge_hris_client'
|
|
113
|
+
# setup authorization
|
|
114
|
+
MergeHRISClient.configure do |config|
|
|
115
|
+
# Configure API key authorization: tokenAuth
|
|
116
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
117
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
118
|
+
# config.api_key_prefix['Authorization'] = 'Bearer'
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
api_instance = MergeHRISClient::CompaniesApi.new
|
|
122
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
|
123
|
+
id = TODO # String |
|
|
124
|
+
opts = {
|
|
125
|
+
include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
begin
|
|
129
|
+
|
|
130
|
+
result = api_instance.companies_retrieve(x_account_token, id, opts)
|
|
131
|
+
p result
|
|
132
|
+
rescue MergeHRISClient::ApiError => e
|
|
133
|
+
puts "Error when calling CompaniesApi->companies_retrieve: #{e}"
|
|
134
|
+
end
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
#### Using the companies_retrieve_with_http_info variant
|
|
138
|
+
|
|
139
|
+
This returns an Array which contains the response data, status code and headers.
|
|
140
|
+
|
|
141
|
+
> <Array(<Company>, Integer, Hash)> companies_retrieve_with_http_info(x_account_token, id, opts)
|
|
142
|
+
|
|
143
|
+
```ruby
|
|
144
|
+
begin
|
|
145
|
+
|
|
146
|
+
data, status_code, headers = api_instance.companies_retrieve_with_http_info(x_account_token, id, opts)
|
|
147
|
+
p status_code # => 2xx
|
|
148
|
+
p headers # => { ... }
|
|
149
|
+
p data # => <Company>
|
|
150
|
+
rescue MergeHRISClient::ApiError => e
|
|
151
|
+
puts "Error when calling CompaniesApi->companies_retrieve_with_http_info: #{e}"
|
|
152
|
+
end
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Parameters
|
|
156
|
+
|
|
157
|
+
| Name | Type | Description | Notes |
|
|
158
|
+
| ---- | ---- | ----------- | ----- |
|
|
159
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
|
160
|
+
| **id** | [**String**](.md) | | |
|
|
161
|
+
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
|
162
|
+
|
|
163
|
+
### Return type
|
|
164
|
+
|
|
165
|
+
[**Company**](Company.md)
|
|
166
|
+
|
|
167
|
+
### Authorization
|
|
168
|
+
|
|
169
|
+
[tokenAuth](../README.md#tokenAuth)
|
|
170
|
+
|
|
171
|
+
### HTTP request headers
|
|
172
|
+
|
|
173
|
+
- **Content-Type**: Not defined
|
|
174
|
+
- **Accept**: application/json
|
|
175
|
+
|
data/docs/Company.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# MergeHRISClient::Company
|
|
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
|
+
| **legal_name** | **String** | The company's legal name. | [optional] |
|
|
10
|
+
| **display_name** | **String** | The company's display name. | [optional] |
|
|
11
|
+
| **eins** | **Array<String>** | The company's Employer Identification Numbers. | [optional] |
|
|
12
|
+
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'merge_hris_client'
|
|
18
|
+
|
|
19
|
+
instance = MergeHRISClient::Company.new(
|
|
20
|
+
id: 1b998423-db0a-4037-a4cf-f79c60cb67b3,
|
|
21
|
+
remote_id: 19202938,
|
|
22
|
+
legal_name: We Love Integrations Inc.,
|
|
23
|
+
display_name: We Love Integrations,
|
|
24
|
+
eins: ["12-3456789","12-3451111","11-0011000"],
|
|
25
|
+
remote_data: [{"path":"/companies","data":["Varies by platform"]}]
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
data/docs/CountryEnum.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# MergeHRISClient::CountryEnum
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
|
|
8
|
+
## Example
|
|
9
|
+
|
|
10
|
+
```ruby
|
|
11
|
+
require 'merge_hris_client'
|
|
12
|
+
|
|
13
|
+
instance = MergeHRISClient::CountryEnum.new()
|
|
14
|
+
```
|
|
15
|
+
|