merge_hris_client 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -2
- data/docs/AccountToken.md +3 -1
- data/docs/AvailableActions.md +1 -1
- data/docs/BenefitRequest.md +28 -0
- data/docs/BenefitsApi.md +78 -0
- data/docs/DeleteAccountApi.md +77 -0
- data/docs/Employee.md +8 -6
- data/docs/EmployeeRequest.md +62 -0
- data/docs/EmployeesApi.md +83 -1
- data/docs/EmploymentRequest.md +34 -0
- data/docs/EmploymentsApi.md +78 -0
- data/docs/EndUserDetailsRequest.md +1 -1
- data/docs/Issue.md +30 -0
- data/docs/IssueStatusEnum.md +15 -0
- data/docs/IssuesApi.md +167 -0
- data/docs/Location.md +1 -1
- data/docs/ModelOperation.md +3 -1
- data/docs/PaginatedIssueList.md +22 -0
- data/docs/PaginatedSyncStatusList.md +22 -0
- data/docs/PaginatedTimeOffBalanceList.md +22 -0
- data/docs/RemoteDataRequest.md +20 -0
- data/docs/SyncStatus.md +1 -1
- data/docs/SyncStatusApi.md +89 -11
- data/docs/SyncStatusStatusEnum.md +15 -0
- data/docs/Team.md +2 -0
- data/docs/TeamsApi.md +2 -0
- data/docs/TimeOff.md +4 -0
- data/docs/TimeOffBalance.md +28 -0
- data/docs/TimeOffBalanceApi.md +181 -0
- data/lib/merge_hris_client.rb +15 -4
- data/lib/merge_hris_client/api/account_token_api.rb +1 -1
- data/lib/merge_hris_client/api/available_actions_api.rb +1 -1
- data/lib/merge_hris_client/api/benefits_api.rb +70 -1
- data/lib/merge_hris_client/api/companies_api.rb +1 -1
- data/lib/merge_hris_client/api/delete_account_api.rb +82 -0
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +1 -1
- data/lib/merge_hris_client/api/employees_api.rb +76 -1
- data/lib/merge_hris_client/api/employments_api.rb +70 -1
- data/lib/merge_hris_client/api/generate_key_api.rb +1 -1
- data/lib/merge_hris_client/api/issues_api.rb +169 -0
- data/lib/merge_hris_client/api/link_token_api.rb +1 -1
- data/lib/merge_hris_client/api/locations_api.rb +1 -1
- data/lib/merge_hris_client/api/passthrough_api.rb +1 -1
- data/lib/merge_hris_client/api/payroll_runs_api.rb +1 -1
- data/lib/merge_hris_client/api/regenerate_key_api.rb +1 -1
- data/lib/merge_hris_client/api/sync_status_api.rb +79 -11
- data/lib/merge_hris_client/api/teams_api.rb +4 -1
- data/lib/merge_hris_client/api/time_off_api.rb +1 -1
- data/lib/merge_hris_client/api/time_off_balance_api.rb +196 -0
- data/lib/merge_hris_client/api_client.rb +2 -2
- data/lib/merge_hris_client/api_error.rb +1 -1
- data/lib/merge_hris_client/configuration.rb +1 -1
- data/lib/merge_hris_client/models/account_integration.rb +1 -1
- data/lib/merge_hris_client/models/account_token.rb +19 -5
- data/lib/merge_hris_client/models/available_actions.rb +1 -1
- data/lib/merge_hris_client/models/benefit.rb +1 -1
- data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +1 -1
- data/lib/merge_hris_client/models/benefit_request.rb +276 -0
- data/lib/merge_hris_client/models/company.rb +1 -1
- data/lib/merge_hris_client/models/country_enum.rb +1 -1
- data/lib/merge_hris_client/models/data_passthrough_request.rb +2 -1
- data/lib/merge_hris_client/models/deduction.rb +1 -1
- data/lib/merge_hris_client/models/earning.rb +1 -1
- data/lib/merge_hris_client/models/employee.rb +32 -20
- data/lib/merge_hris_client/models/employee_payroll_run.rb +1 -1
- data/lib/merge_hris_client/models/employee_request.rb +523 -0
- data/lib/merge_hris_client/models/employment.rb +1 -1
- data/lib/merge_hris_client/models/employment_request.rb +309 -0
- data/lib/merge_hris_client/models/employment_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/employment_type_enum.rb +1 -1
- data/lib/merge_hris_client/models/end_user_details_request.rb +2 -6
- data/lib/merge_hris_client/models/ethnicity_enum.rb +1 -1
- data/lib/merge_hris_client/models/flsa_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/gender_enum.rb +1 -1
- data/lib/merge_hris_client/models/generate_remote_key_request.rb +1 -1
- data/lib/merge_hris_client/models/issue.rb +281 -0
- data/lib/merge_hris_client/models/issue_status_enum.rb +36 -0
- data/lib/merge_hris_client/models/link_token.rb +1 -1
- data/lib/merge_hris_client/models/location.rb +4 -4
- data/lib/merge_hris_client/models/method_enum.rb +1 -1
- data/lib/merge_hris_client/models/model_operation.rb +21 -5
- data/lib/merge_hris_client/models/paginated_benefit_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_company_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_employee_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_employee_payroll_run_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_employment_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_issue_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_location_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_payroll_run_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_sync_status_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_team_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_time_off_balance_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_time_off_list.rb +1 -1
- data/lib/merge_hris_client/models/pay_currency_enum.rb +1 -1
- data/lib/merge_hris_client/models/pay_frequency_enum.rb +1 -1
- data/lib/merge_hris_client/models/pay_period_enum.rb +1 -1
- data/lib/merge_hris_client/models/payroll_run.rb +1 -1
- data/lib/merge_hris_client/models/remote_data.rb +1 -1
- data/lib/merge_hris_client/models/remote_data_request.rb +234 -0
- data/lib/merge_hris_client/models/remote_key.rb +1 -1
- data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +1 -1
- data/lib/merge_hris_client/models/remote_response.rb +1 -1
- data/lib/merge_hris_client/models/request_type_enum.rb +1 -1
- data/lib/merge_hris_client/models/run_state_enum.rb +1 -1
- data/lib/merge_hris_client/models/run_type_enum.rb +1 -1
- data/lib/merge_hris_client/models/sync_status.rb +2 -2
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +37 -0
- data/lib/merge_hris_client/models/tax.rb +1 -1
- data/lib/merge_hris_client/models/team.rb +13 -2
- data/lib/merge_hris_client/models/time_off.rb +24 -2
- data/lib/merge_hris_client/models/time_off_balance.rb +275 -0
- data/lib/merge_hris_client/models/time_off_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/type_enum.rb +1 -1
- data/lib/merge_hris_client/models/units_enum.rb +1 -1
- data/lib/merge_hris_client/version.rb +2 -2
- data/merge_hris_client-1.0.1.gem +0 -0
- data/merge_hris_client.gemspec +1 -1
- data/spec/api/delete_account_api_spec.rb +46 -0
- data/spec/api/generate_key_api_spec.rb +46 -0
- data/spec/api/issues_api_spec.rb +65 -0
- data/spec/api/sync_status_api_spec.rb +59 -0
- data/spec/api/time_off_balance_api_spec.rb +70 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/benefit_request_spec.rb +64 -0
- data/spec/models/employee_request_spec.rb +160 -0
- data/spec/models/employment_request_spec.rb +82 -0
- data/spec/models/generate_remote_key_request_spec.rb +34 -0
- data/spec/models/issue_spec.rb +70 -0
- data/spec/models/issue_status_enum_spec.rb +28 -0
- data/spec/models/paginated_issue_list_spec.rb +46 -0
- data/spec/models/paginated_sync_status_list_spec.rb +46 -0
- data/spec/models/paginated_time_off_balance_list_spec.rb +46 -0
- data/spec/models/remote_data_request_spec.rb +40 -0
- data/spec/models/sync_status_spec.rb +64 -0
- data/spec/models/sync_status_status_enum_spec.rb +28 -0
- data/spec/models/time_off_balance_spec.rb +64 -0
- data/spec/spec_helper.rb +1 -1
- data/test_ruby.rb +14 -11
- metadata +67 -2
data/docs/Location.md
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
| **street_1** | **String** | Line 1 of the location's street address. | [optional] |
|
11
11
|
| **street_2** | **String** | Line 2 of the location's street address. | [optional] |
|
12
12
|
| **city** | **String** | The location's city. | [optional] |
|
13
|
-
| **state** |
|
13
|
+
| **state** | **String** | The location's state. Represents a region if outside of the US. | [optional] |
|
14
14
|
| **zip_code** | **String** | The location's zip code. | [optional] |
|
15
15
|
| **country** | [**CountryEnum**](CountryEnum.md) | The location's country. | [optional] |
|
16
16
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
data/docs/ModelOperation.md
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
| **model_name** | **String** | | |
|
8
8
|
| **available_operations** | **Array<String>** | | |
|
9
9
|
| **required_post_parameters** | **Array<String>** | | |
|
10
|
+
| **supported_fields** | **Array<String>** | | |
|
10
11
|
|
11
12
|
## Example
|
12
13
|
|
@@ -16,7 +17,8 @@ require 'merge_hris_client'
|
|
16
17
|
instance = MergeHRISClient::ModelOperation.new(
|
17
18
|
model_name: Candidate,
|
18
19
|
available_operations: ["FETCH","CREATE"],
|
19
|
-
required_post_parameters: ["remote_user_id"]
|
20
|
+
required_post_parameters: ["remote_user_id"],
|
21
|
+
supported_fields: ["first_name","last_name","company","title"]
|
20
22
|
)
|
21
23
|
```
|
22
24
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# MergeHRISClient::PaginatedIssueList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **_next** | **String** | | [optional] |
|
8
|
+
| **previous** | **String** | | [optional] |
|
9
|
+
| **results** | [**Array<Issue>**](Issue.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'merge_hris_client'
|
15
|
+
|
16
|
+
instance = MergeHRISClient::PaginatedIssueList.new(
|
17
|
+
_next: null,
|
18
|
+
previous: null,
|
19
|
+
results: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# MergeHRISClient::PaginatedSyncStatusList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **_next** | **String** | | [optional] |
|
8
|
+
| **previous** | **String** | | [optional] |
|
9
|
+
| **results** | [**Array<SyncStatus>**](SyncStatus.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'merge_hris_client'
|
15
|
+
|
16
|
+
instance = MergeHRISClient::PaginatedSyncStatusList.new(
|
17
|
+
_next: null,
|
18
|
+
previous: null,
|
19
|
+
results: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# MergeHRISClient::PaginatedTimeOffBalanceList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **_next** | **String** | | [optional] |
|
8
|
+
| **previous** | **String** | | [optional] |
|
9
|
+
| **results** | [**Array<TimeOffBalance>**](TimeOffBalance.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'merge_hris_client'
|
15
|
+
|
16
|
+
instance = MergeHRISClient::PaginatedTimeOffBalanceList.new(
|
17
|
+
_next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw,
|
18
|
+
previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ,
|
19
|
+
results: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# MergeHRISClient::RemoteDataRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **path** | **String** | | |
|
8
|
+
| **data** | [**Hash<String, AnyType>**](AnyType.md) | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'merge_hris_client'
|
14
|
+
|
15
|
+
instance = MergeHRISClient::RemoteDataRequest.new(
|
16
|
+
path: null,
|
17
|
+
data: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/SyncStatus.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
| **model_id** | **String** | | |
|
9
9
|
| **last_sync_start** | **Time** | | |
|
10
10
|
| **next_sync_start** | **Time** | | |
|
11
|
-
| **status** | **
|
11
|
+
| **status** | [**SyncStatusStatusEnum**](SyncStatusStatusEnum.md) | | |
|
12
12
|
| **is_initial_sync** | **Boolean** | | |
|
13
13
|
|
14
14
|
## Example
|
data/docs/SyncStatusApi.md
CHANGED
@@ -4,12 +4,13 @@ All URIs are relative to *https://api.merge.dev/api/hris/v1*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**
|
7
|
+
| [**sync_status_list**](SyncStatusApi.md#sync_status_list) | **GET** /sync-status | |
|
8
|
+
| [**sync_status_resync_create**](SyncStatusApi.md#sync_status_resync_create) | **POST** /sync-status/resync | |
|
8
9
|
|
9
10
|
|
10
|
-
##
|
11
|
+
## sync_status_list
|
11
12
|
|
12
|
-
> <
|
13
|
+
> <PaginatedSyncStatusList> sync_status_list(x_account_token, opts)
|
13
14
|
|
14
15
|
|
15
16
|
|
@@ -23,38 +24,115 @@ require 'merge_hris_client'
|
|
23
24
|
# setup authorization
|
24
25
|
MergeHRISClient.configure do |config|
|
25
26
|
# Configure API key authorization: tokenAuth
|
26
|
-
config.api_key['
|
27
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
27
28
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
28
|
-
# config.api_key_prefix['
|
29
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
29
30
|
end
|
30
31
|
|
31
32
|
api_instance = MergeHRISClient::SyncStatusApi.new
|
32
33
|
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
34
|
+
opts = {
|
35
|
+
cursor: 56, # Integer | The pagination cursor value.
|
36
|
+
page_size: 56 # Integer | Number of results to return per page.
|
37
|
+
}
|
33
38
|
|
34
39
|
begin
|
35
40
|
|
36
|
-
result = api_instance.
|
41
|
+
result = api_instance.sync_status_list(x_account_token, opts)
|
37
42
|
p result
|
38
43
|
rescue MergeHRISClient::ApiError => e
|
39
|
-
puts "Error when calling SyncStatusApi->
|
44
|
+
puts "Error when calling SyncStatusApi->sync_status_list: #{e}"
|
40
45
|
end
|
41
46
|
```
|
42
47
|
|
43
|
-
#### Using the
|
48
|
+
#### Using the sync_status_list_with_http_info variant
|
44
49
|
|
45
50
|
This returns an Array which contains the response data, status code and headers.
|
46
51
|
|
47
|
-
> <Array(<
|
52
|
+
> <Array(<PaginatedSyncStatusList>, Integer, Hash)> sync_status_list_with_http_info(x_account_token, opts)
|
48
53
|
|
49
54
|
```ruby
|
50
55
|
begin
|
51
56
|
|
52
|
-
data, status_code, headers = api_instance.
|
57
|
+
data, status_code, headers = api_instance.sync_status_list_with_http_info(x_account_token, opts)
|
58
|
+
p status_code # => 2xx
|
59
|
+
p headers # => { ... }
|
60
|
+
p data # => <PaginatedSyncStatusList>
|
61
|
+
rescue MergeHRISClient::ApiError => e
|
62
|
+
puts "Error when calling SyncStatusApi->sync_status_list_with_http_info: #{e}"
|
63
|
+
end
|
64
|
+
```
|
65
|
+
|
66
|
+
### Parameters
|
67
|
+
|
68
|
+
| Name | Type | Description | Notes |
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
70
|
+
| **x_account_token** | **String** | Token identifying the end user. | |
|
71
|
+
| **cursor** | **Integer** | The pagination cursor value. | [optional] |
|
72
|
+
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
73
|
+
|
74
|
+
### Return type
|
75
|
+
|
76
|
+
[**PaginatedSyncStatusList**](PaginatedSyncStatusList.md)
|
77
|
+
|
78
|
+
### Authorization
|
79
|
+
|
80
|
+
[tokenAuth](../README.md#tokenAuth)
|
81
|
+
|
82
|
+
### HTTP request headers
|
83
|
+
|
84
|
+
- **Content-Type**: Not defined
|
85
|
+
- **Accept**: application/json
|
86
|
+
|
87
|
+
|
88
|
+
## sync_status_resync_create
|
89
|
+
|
90
|
+
> <SyncStatus> sync_status_resync_create(x_account_token)
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
Force resync of all models.
|
95
|
+
|
96
|
+
### Examples
|
97
|
+
|
98
|
+
```ruby
|
99
|
+
require 'time'
|
100
|
+
require 'merge_hris_client'
|
101
|
+
# setup authorization
|
102
|
+
MergeHRISClient.configure do |config|
|
103
|
+
# Configure API key authorization: tokenAuth
|
104
|
+
config.api_key['tokenAuth'] = 'YOUR API KEY'
|
105
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
106
|
+
# config.api_key_prefix['tokenAuth'] = 'Bearer'
|
107
|
+
end
|
108
|
+
|
109
|
+
api_instance = MergeHRISClient::SyncStatusApi.new
|
110
|
+
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
|
111
|
+
|
112
|
+
begin
|
113
|
+
|
114
|
+
result = api_instance.sync_status_resync_create(x_account_token)
|
115
|
+
p result
|
116
|
+
rescue MergeHRISClient::ApiError => e
|
117
|
+
puts "Error when calling SyncStatusApi->sync_status_resync_create: #{e}"
|
118
|
+
end
|
119
|
+
```
|
120
|
+
|
121
|
+
#### Using the sync_status_resync_create_with_http_info variant
|
122
|
+
|
123
|
+
This returns an Array which contains the response data, status code and headers.
|
124
|
+
|
125
|
+
> <Array(<SyncStatus>, Integer, Hash)> sync_status_resync_create_with_http_info(x_account_token)
|
126
|
+
|
127
|
+
```ruby
|
128
|
+
begin
|
129
|
+
|
130
|
+
data, status_code, headers = api_instance.sync_status_resync_create_with_http_info(x_account_token)
|
53
131
|
p status_code # => 2xx
|
54
132
|
p headers # => { ... }
|
55
133
|
p data # => <SyncStatus>
|
56
134
|
rescue MergeHRISClient::ApiError => e
|
57
|
-
puts "Error when calling SyncStatusApi->
|
135
|
+
puts "Error when calling SyncStatusApi->sync_status_resync_create_with_http_info: #{e}"
|
58
136
|
end
|
59
137
|
```
|
60
138
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# MergeHRISClient::SyncStatusStatusEnum
|
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::SyncStatusStatusEnum.new()
|
14
|
+
```
|
15
|
+
|
data/docs/Team.md
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
| **id** | **String** | | [optional][readonly] |
|
8
8
|
| **remote_id** | **String** | The third-party API ID of the matching object. | [optional] |
|
9
9
|
| **name** | **String** | The team's name. | [optional] |
|
10
|
+
| **parent_team** | **String** | The team's parent team. | [optional] |
|
10
11
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
11
12
|
|
12
13
|
## Example
|
@@ -18,6 +19,7 @@ instance = MergeHRISClient::Team.new(
|
|
18
19
|
id: 13a72919-9fae-4f54-81ca-ddfd8712a1ba,
|
19
20
|
remote_id: 19202938,
|
20
21
|
name: Engineering,
|
22
|
+
parent_team: 1b998423-db0a-4037-a4cf-f79c60cb67b3,
|
21
23
|
remote_data: [{"path":"/teams","data":["Varies by platform"]}]
|
22
24
|
)
|
23
25
|
```
|
data/docs/TeamsApi.md
CHANGED
@@ -39,6 +39,7 @@ opts = {
|
|
39
39
|
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
40
40
|
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
41
41
|
page_size: 56, # Integer | Number of results to return per page.
|
42
|
+
parent_team_id: TODO, # String | If provided, will only return teams with this parent team.
|
42
43
|
remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
|
43
44
|
}
|
44
45
|
|
@@ -81,6 +82,7 @@ end
|
|
81
82
|
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
82
83
|
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
83
84
|
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
85
|
+
| **parent_team_id** | [**String**](.md) | If provided, will only return teams with this parent team. | [optional] |
|
84
86
|
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
85
87
|
|
86
88
|
### Return type
|
data/docs/TimeOff.md
CHANGED
@@ -13,6 +13,8 @@
|
|
13
13
|
| **units** | [**UnitsEnum**](UnitsEnum.md) | The unit of time requested. | [optional] |
|
14
14
|
| **amount** | **Float** | The number of time off units requested. | [optional] |
|
15
15
|
| **request_type** | [**RequestTypeEnum**](RequestTypeEnum.md) | The type of time off request. | [optional] |
|
16
|
+
| **start_time** | **Time** | The day and time of the start of the time requested off. | [optional] |
|
17
|
+
| **end_time** | **Time** | The day and time of the end of the time requested off. | [optional] |
|
16
18
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
17
19
|
|
18
20
|
## Example
|
@@ -30,6 +32,8 @@ instance = MergeHRISClient::TimeOff.new(
|
|
30
32
|
units: DAYS,
|
31
33
|
amount: 13,
|
32
34
|
request_type: VACATION,
|
35
|
+
start_time: null,
|
36
|
+
end_time: null,
|
33
37
|
remote_data: [{"path":"/leave","data":["Varies by platform"]}]
|
34
38
|
)
|
35
39
|
```
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# MergeHRISClient::TimeOffBalance
|
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 the balance belongs to. | [optional] |
|
10
|
+
| **balance** | **Float** | The current PTO balance. | [optional] |
|
11
|
+
| **used** | **Float** | The amount of PTO used. | [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::TimeOffBalance.new(
|
20
|
+
id: 91b2b905-e866-40c8-8be2-efe53827a0aa,
|
21
|
+
remote_id: 19202938,
|
22
|
+
employee: d2f972d0-2526-434b-9409-4c3b468e08f0,
|
23
|
+
balance: 60.0,
|
24
|
+
used: 45.0,
|
25
|
+
remote_data: [{"path":"/leave","data":["Varies by platform"]}]
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,181 @@
|
|
1
|
+
# MergeHRISClient::TimeOffBalanceApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.merge.dev/api/hris/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**time_off_balance_list**](TimeOffBalanceApi.md#time_off_balance_list) | **GET** /time-off-balance | |
|
8
|
+
| [**time_off_balance_retrieve**](TimeOffBalanceApi.md#time_off_balance_retrieve) | **GET** /time-off-balance/{id} | |
|
9
|
+
|
10
|
+
|
11
|
+
## time_off_balance_list
|
12
|
+
|
13
|
+
> <PaginatedTimeOffBalanceList> time_off_balance_list(x_account_token, opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Returns a list of `TimeOffBalance` 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::TimeOffBalanceApi.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 balances 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.time_off_balance_list(x_account_token, opts)
|
50
|
+
p result
|
51
|
+
rescue MergeHRISClient::ApiError => e
|
52
|
+
puts "Error when calling TimeOffBalanceApi->time_off_balance_list: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
#### Using the time_off_balance_list_with_http_info variant
|
57
|
+
|
58
|
+
This returns an Array which contains the response data, status code and headers.
|
59
|
+
|
60
|
+
> <Array(<PaginatedTimeOffBalanceList>, Integer, Hash)> time_off_balance_list_with_http_info(x_account_token, opts)
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
begin
|
64
|
+
|
65
|
+
data, status_code, headers = api_instance.time_off_balance_list_with_http_info(x_account_token, opts)
|
66
|
+
p status_code # => 2xx
|
67
|
+
p headers # => { ... }
|
68
|
+
p data # => <PaginatedTimeOffBalanceList>
|
69
|
+
rescue MergeHRISClient::ApiError => e
|
70
|
+
puts "Error when calling TimeOffBalanceApi->time_off_balance_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 balances 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
|
+
[**PaginatedTimeOffBalanceList**](PaginatedTimeOffBalanceList.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
|
+
## time_off_balance_retrieve
|
105
|
+
|
106
|
+
> <TimeOffBalance> time_off_balance_retrieve(x_account_token, id, opts)
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
Returns an `TimeOffBalance` 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::TimeOffBalanceApi.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.time_off_balance_retrieve(x_account_token, id, opts)
|
136
|
+
p result
|
137
|
+
rescue MergeHRISClient::ApiError => e
|
138
|
+
puts "Error when calling TimeOffBalanceApi->time_off_balance_retrieve: #{e}"
|
139
|
+
end
|
140
|
+
```
|
141
|
+
|
142
|
+
#### Using the time_off_balance_retrieve_with_http_info variant
|
143
|
+
|
144
|
+
This returns an Array which contains the response data, status code and headers.
|
145
|
+
|
146
|
+
> <Array(<TimeOffBalance>, Integer, Hash)> time_off_balance_retrieve_with_http_info(x_account_token, id, opts)
|
147
|
+
|
148
|
+
```ruby
|
149
|
+
begin
|
150
|
+
|
151
|
+
data, status_code, headers = api_instance.time_off_balance_retrieve_with_http_info(x_account_token, id, opts)
|
152
|
+
p status_code # => 2xx
|
153
|
+
p headers # => { ... }
|
154
|
+
p data # => <TimeOffBalance>
|
155
|
+
rescue MergeHRISClient::ApiError => e
|
156
|
+
puts "Error when calling TimeOffBalanceApi->time_off_balance_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
|
+
[**TimeOffBalance**](TimeOffBalance.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
|
+
|