merge_hris_client 2.0.3 → 2.0.4
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 +4 -4
- data/README.md +4 -4
- data/docs/BankInfo.md +1 -1
- data/docs/BankInfoApi.md +7 -3
- data/docs/Benefit.md +1 -1
- data/docs/BenefitsApi.md +2 -2
- data/docs/CompaniesApi.md +2 -2
- data/docs/Company.md +1 -1
- data/docs/DataPassthroughRequest.md +3 -1
- data/docs/Deduction.md +1 -1
- data/docs/DeductionsApi.md +2 -2
- data/docs/Earning.md +1 -1
- data/docs/EmployeePayrollRun.md +1 -1
- data/docs/EmployeePayrollRunsApi.md +2 -2
- data/docs/EmployeesApi.md +7 -3
- data/docs/Employment.md +1 -1
- data/docs/EmploymentsApi.md +7 -3
- data/docs/Group.md +1 -1
- data/docs/GroupsApi.md +7 -3
- data/docs/Location.md +1 -1
- data/docs/LocationsApi.md +7 -3
- data/docs/PayGroup.md +1 -1
- data/docs/PayGroupsApi.md +2 -2
- data/docs/PayrollRun.md +1 -1
- data/docs/PayrollRunsApi.md +7 -3
- data/docs/RemoteResponse.md +2 -0
- data/docs/Tax.md +1 -1
- data/docs/Team.md +1 -1
- data/docs/TeamsApi.md +2 -2
- data/docs/TimeOffApi.md +7 -3
- data/docs/TimeOffBalance.md +1 -1
- data/docs/TimeOffBalancesApi.md +7 -3
- data/lib/merge_hris_client/api/bank_info_api.rb +16 -2
- data/lib/merge_hris_client/api/benefits_api.rb +2 -2
- data/lib/merge_hris_client/api/companies_api.rb +2 -2
- data/lib/merge_hris_client/api/deductions_api.rb +2 -2
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +2 -2
- data/lib/merge_hris_client/api/employees_api.rb +16 -2
- data/lib/merge_hris_client/api/employments_api.rb +16 -2
- data/lib/merge_hris_client/api/groups_api.rb +16 -2
- data/lib/merge_hris_client/api/locations_api.rb +16 -2
- data/lib/merge_hris_client/api/pay_groups_api.rb +2 -2
- data/lib/merge_hris_client/api/payroll_runs_api.rb +16 -2
- data/lib/merge_hris_client/api/teams_api.rb +2 -2
- data/lib/merge_hris_client/api/time_off_api.rb +16 -2
- data/lib/merge_hris_client/api/time_off_balances_api.rb +16 -2
- data/lib/merge_hris_client/models/bank_info.rb +1 -1
- data/lib/merge_hris_client/models/benefit.rb +1 -1
- data/lib/merge_hris_client/models/company.rb +1 -1
- data/lib/merge_hris_client/models/data_passthrough_request.rb +14 -5
- 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_payroll_run.rb +1 -1
- data/lib/merge_hris_client/models/employment.rb +1 -1
- data/lib/merge_hris_client/models/encoding_enum.rb +1 -0
- data/lib/merge_hris_client/models/group.rb +1 -1
- data/lib/merge_hris_client/models/location.rb +1 -1
- data/lib/merge_hris_client/models/pay_group.rb +1 -1
- data/lib/merge_hris_client/models/payroll_run.rb +1 -1
- data/lib/merge_hris_client/models/remote_response.rb +13 -2
- data/lib/merge_hris_client/models/tax.rb +1 -1
- data/lib/merge_hris_client/models/team.rb +1 -1
- data/lib/merge_hris_client/models/time_off_balance.rb +1 -1
- data/lib/merge_hris_client/version.rb +1 -1
- data/spec/api/bank_info_api_spec.rb +3 -1
- data/spec/api/benefits_api_spec.rb +1 -1
- data/spec/api/companies_api_spec.rb +1 -1
- data/spec/api/deductions_api_spec.rb +1 -1
- data/spec/api/employee_payroll_runs_api_spec.rb +1 -1
- data/spec/api/employees_api_spec.rb +3 -1
- data/spec/api/employments_api_spec.rb +3 -1
- data/spec/api/groups_api_spec.rb +3 -1
- data/spec/api/locations_api_spec.rb +3 -1
- data/spec/api/pay_groups_api_spec.rb +1 -1
- data/spec/api/payroll_runs_api_spec.rb +3 -1
- data/spec/api/teams_api_spec.rb +1 -1
- data/spec/api/time_off_api_spec.rb +3 -1
- data/spec/api/time_off_balances_api_spec.rb +3 -1
- data/spec/models/bank_info_spec.rb +0 -6
- data/spec/models/benefit_spec.rb +0 -6
- data/spec/models/company_spec.rb +0 -6
- data/spec/models/data_passthrough_request_spec.rb +6 -0
- data/spec/models/deduction_spec.rb +0 -6
- data/spec/models/earning_spec.rb +0 -6
- data/spec/models/employee_payroll_run_spec.rb +0 -6
- data/spec/models/employee_spec.rb +0 -6
- data/spec/models/employment_spec.rb +0 -6
- data/spec/models/group_spec.rb +0 -6
- data/spec/models/location_spec.rb +0 -6
- data/spec/models/pay_group_spec.rb +0 -6
- data/spec/models/payroll_run_spec.rb +0 -6
- data/spec/models/remote_response_spec.rb +6 -0
- data/spec/models/tax_spec.rb +0 -6
- data/spec/models/team_spec.rb +0 -6
- data/spec/models/time_off_balance_spec.rb +0 -6
- data/spec/models/time_off_spec.rb +0 -6
- metadata +102 -102
data/docs/TeamsApi.md
CHANGED
@@ -36,7 +36,7 @@ opts = {
|
|
36
36
|
created_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects created before this datetime.
|
37
37
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
38
38
|
expand: 'parent_team', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
39
|
-
include_deleted_data: true, # Boolean | Whether to include data that was deleted
|
39
|
+
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
40
40
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
41
41
|
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
42
42
|
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
@@ -81,7 +81,7 @@ end
|
|
81
81
|
| **created_before** | **Time** | If provided, will only return objects created before this datetime. | [optional] |
|
82
82
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
83
83
|
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
84
|
-
| **include_deleted_data** | **Boolean** | Whether to include data that was deleted
|
84
|
+
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
85
85
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
86
86
|
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
87
87
|
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
data/docs/TimeOffApi.md
CHANGED
@@ -119,11 +119,12 @@ opts = {
|
|
119
119
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
120
120
|
employee_id: 'employee_id_example', # String | If provided, will only return time off for this employee.
|
121
121
|
expand: 'approver', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
122
|
-
include_deleted_data: true, # Boolean | Whether to include data that was deleted
|
122
|
+
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
123
123
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
124
124
|
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
125
125
|
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
126
126
|
page_size: 56, # Integer | Number of results to return per page.
|
127
|
+
remote_fields: 'request_type', # String | Which fields should be returned in non-normalized form.
|
127
128
|
remote_id: 'remote_id_example', # String | The API provider's ID for the given object.
|
128
129
|
request_type: 'BEREAVEMENT', # String | If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
|
129
130
|
status: 'APPROVED' # String | If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED')
|
@@ -167,11 +168,12 @@ end
|
|
167
168
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
168
169
|
| **employee_id** | **String** | If provided, will only return time off for this employee. | [optional] |
|
169
170
|
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
170
|
-
| **include_deleted_data** | **Boolean** | Whether to include data that was deleted
|
171
|
+
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
171
172
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
172
173
|
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
173
174
|
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
174
175
|
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
176
|
+
| **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
|
175
177
|
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
176
178
|
| **request_type** | **String** | If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') | [optional] |
|
177
179
|
| **status** | **String** | If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED') | [optional] |
|
@@ -287,7 +289,8 @@ x_account_token = 'x_account_token_example' # String | Token identifying the end
|
|
287
289
|
id = TODO # String |
|
288
290
|
opts = {
|
289
291
|
expand: 'approver', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
290
|
-
include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
292
|
+
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
293
|
+
remote_fields: 'request_type' # String | Which fields should be returned in non-normalized form.
|
291
294
|
}
|
292
295
|
|
293
296
|
begin
|
@@ -325,6 +328,7 @@ end
|
|
325
328
|
| **id** | [**String**](.md) | | |
|
326
329
|
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
327
330
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
331
|
+
| **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
|
328
332
|
|
329
333
|
### Return type
|
330
334
|
|
data/docs/TimeOffBalance.md
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
| **used** | **Float** | The amount of PTO used in terms of hours. | [optional] |
|
12
12
|
| **policy_type** | [**PolicyTypeEnum**](PolicyTypeEnum.md) | The policy type of this time off balance. | [optional] |
|
13
13
|
| **remote_data** | [**Array<RemoteData>**](RemoteData.md) | | [optional][readonly] |
|
14
|
-
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted
|
14
|
+
| **remote_was_deleted** | **Boolean** | Indicates whether or not this object has been deleted by third party webhooks. | [optional][readonly] |
|
15
15
|
|
16
16
|
## Example
|
17
17
|
|
data/docs/TimeOffBalancesApi.md
CHANGED
@@ -37,12 +37,13 @@ opts = {
|
|
37
37
|
cursor: 'cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw', # String | The pagination cursor value.
|
38
38
|
employee_id: 'employee_id_example', # String | If provided, will only return time off balances for this employee.
|
39
39
|
expand: 'employee', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
40
|
-
include_deleted_data: true, # Boolean | Whether to include data that was deleted
|
40
|
+
include_deleted_data: true, # Boolean | Whether to include data that was marked as deleted by third party webhooks.
|
41
41
|
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
42
42
|
modified_after: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified after this datetime.
|
43
43
|
modified_before: Time.parse('2013-10-20T19:20:30+01:00'), # Time | If provided, will only return objects modified before this datetime.
|
44
44
|
page_size: 56, # Integer | Number of results to return per page.
|
45
45
|
policy_type: 'BEREAVEMENT', # String | If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
|
46
|
+
remote_fields: 'policy_type', # String | Which fields should be returned in non-normalized form.
|
46
47
|
remote_id: 'remote_id_example' # String | The API provider's ID for the given object.
|
47
48
|
}
|
48
49
|
|
@@ -83,12 +84,13 @@ end
|
|
83
84
|
| **cursor** | **String** | The pagination cursor value. | [optional] |
|
84
85
|
| **employee_id** | **String** | If provided, will only return time off balances for this employee. | [optional] |
|
85
86
|
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
86
|
-
| **include_deleted_data** | **Boolean** | Whether to include data that was deleted
|
87
|
+
| **include_deleted_data** | **Boolean** | Whether to include data that was marked as deleted by third party webhooks. | [optional] |
|
87
88
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
88
89
|
| **modified_after** | **Time** | If provided, will only return objects modified after this datetime. | [optional] |
|
89
90
|
| **modified_before** | **Time** | If provided, will only return objects modified before this datetime. | [optional] |
|
90
91
|
| **page_size** | **Integer** | Number of results to return per page. | [optional] |
|
91
92
|
| **policy_type** | **String** | If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT') | [optional] |
|
93
|
+
| **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
|
92
94
|
| **remote_id** | **String** | The API provider's ID for the given object. | [optional] |
|
93
95
|
|
94
96
|
### Return type
|
@@ -131,7 +133,8 @@ x_account_token = 'x_account_token_example' # String | Token identifying the end
|
|
131
133
|
id = TODO # String |
|
132
134
|
opts = {
|
133
135
|
expand: 'employee', # String | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
134
|
-
include_remote_data: true # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
136
|
+
include_remote_data: true, # Boolean | Whether to include the original data Merge fetched from the third-party to produce these models.
|
137
|
+
remote_fields: 'policy_type' # String | Which fields should be returned in non-normalized form.
|
135
138
|
}
|
136
139
|
|
137
140
|
begin
|
@@ -169,6 +172,7 @@ end
|
|
169
172
|
| **id** | [**String**](.md) | | |
|
170
173
|
| **expand** | **String** | Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces. | [optional] |
|
171
174
|
| **include_remote_data** | **Boolean** | Whether to include the original data Merge fetched from the third-party to produce these models. | [optional] |
|
175
|
+
| **remote_fields** | **String** | Which fields should be returned in non-normalized form. | [optional] |
|
172
176
|
|
173
177
|
### Return type
|
174
178
|
|
@@ -29,12 +29,13 @@ module MergeHRISClient
|
|
29
29
|
# @option opts [String] :cursor The pagination cursor value.
|
30
30
|
# @option opts [String] :employee_id If provided, will only return bank accounts for this employee.
|
31
31
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
32
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
32
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
33
33
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
34
34
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
35
35
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
36
36
|
# @option opts [String] :order_by Overrides the default ordering for this endpoint.
|
37
37
|
# @option opts [Integer] :page_size Number of results to return per page.
|
38
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
38
39
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
39
40
|
# @return [PaginatedBankInfoList]
|
40
41
|
def bank_info_list(x_account_token, opts = {})
|
@@ -52,12 +53,13 @@ module MergeHRISClient
|
|
52
53
|
# @option opts [String] :cursor The pagination cursor value.
|
53
54
|
# @option opts [String] :employee_id If provided, will only return bank accounts for this employee.
|
54
55
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
55
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
56
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
56
57
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
57
58
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
58
59
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
59
60
|
# @option opts [String] :order_by Overrides the default ordering for this endpoint.
|
60
61
|
# @option opts [Integer] :page_size Number of results to return per page.
|
62
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
61
63
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
62
64
|
# @return [Array<(PaginatedBankInfoList, Integer, Hash)>] PaginatedBankInfoList data, response status code and response headers
|
63
65
|
def bank_info_list_with_http_info(x_account_token, opts = {})
|
@@ -80,6 +82,10 @@ module MergeHRISClient
|
|
80
82
|
if @api_client.config.client_side_validation && opts[:'order_by'] && !allowable_values.include?(opts[:'order_by'])
|
81
83
|
fail ArgumentError, "invalid value for \"order_by\", must be one of #{allowable_values}"
|
82
84
|
end
|
85
|
+
allowable_values = ["account_type"]
|
86
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
87
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
88
|
+
end
|
83
89
|
# resource path
|
84
90
|
local_var_path = '/bank-info'
|
85
91
|
|
@@ -98,6 +104,7 @@ module MergeHRISClient
|
|
98
104
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
99
105
|
query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
|
100
106
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
107
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
101
108
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
102
109
|
|
103
110
|
# header parameters
|
@@ -141,6 +148,7 @@ module MergeHRISClient
|
|
141
148
|
# @param [Hash] opts the optional parameters
|
142
149
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
143
150
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
151
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
144
152
|
# @return [BankInfo]
|
145
153
|
def bank_info_retrieve(x_account_token, id, opts = {})
|
146
154
|
data, _status_code, _headers = bank_info_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -153,6 +161,7 @@ module MergeHRISClient
|
|
153
161
|
# @param [Hash] opts the optional parameters
|
154
162
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
155
163
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
164
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
156
165
|
# @return [Array<(BankInfo, Integer, Hash)>] BankInfo data, response status code and response headers
|
157
166
|
def bank_info_retrieve_with_http_info(x_account_token, id, opts = {})
|
158
167
|
if @api_client.config.debugging
|
@@ -170,6 +179,10 @@ module MergeHRISClient
|
|
170
179
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
171
180
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
172
181
|
end
|
182
|
+
allowable_values = ["account_type"]
|
183
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
184
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
185
|
+
end
|
173
186
|
# resource path
|
174
187
|
local_var_path = '/bank-info/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
175
188
|
|
@@ -177,6 +190,7 @@ module MergeHRISClient
|
|
177
190
|
query_params = opts[:query_params] || {}
|
178
191
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
179
192
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
193
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
180
194
|
|
181
195
|
# header parameters
|
182
196
|
header_params = opts[:header_params] || {}
|
@@ -27,7 +27,7 @@ module MergeHRISClient
|
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
28
|
# @option opts [String] :employee_id If provided, will only return time off for this employee.
|
29
29
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
30
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
30
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
31
31
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
32
32
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
33
33
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -47,7 +47,7 @@ module MergeHRISClient
|
|
47
47
|
# @option opts [String] :cursor The pagination cursor value.
|
48
48
|
# @option opts [String] :employee_id If provided, will only return time off for this employee.
|
49
49
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
50
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
50
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
51
51
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
52
52
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
53
53
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -25,7 +25,7 @@ module MergeHRISClient
|
|
25
25
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
26
26
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
28
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
29
29
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
30
30
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
31
31
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -43,7 +43,7 @@ module MergeHRISClient
|
|
43
43
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
44
44
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
45
45
|
# @option opts [String] :cursor The pagination cursor value.
|
46
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
46
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
47
47
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
48
48
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
49
49
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -26,7 +26,7 @@ module MergeHRISClient
|
|
26
26
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
28
|
# @option opts [String] :employee_payroll_run_id If provided, will only return deductions for this employee payroll run.
|
29
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
29
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
30
30
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
31
31
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
32
32
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -45,7 +45,7 @@ module MergeHRISClient
|
|
45
45
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
46
46
|
# @option opts [String] :cursor The pagination cursor value.
|
47
47
|
# @option opts [String] :employee_payroll_run_id If provided, will only return deductions for this employee payroll run.
|
48
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
48
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
49
49
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
50
50
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
51
51
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -29,7 +29,7 @@ module MergeHRISClient
|
|
29
29
|
# @option opts [Time] :ended_after If provided, will only return employee payroll runs ended after this datetime.
|
30
30
|
# @option opts [Time] :ended_before If provided, will only return employee payroll runs ended before this datetime.
|
31
31
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
32
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
32
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
33
33
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
34
34
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
35
35
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -54,7 +54,7 @@ module MergeHRISClient
|
|
54
54
|
# @option opts [Time] :ended_after If provided, will only return employee payroll runs ended after this datetime.
|
55
55
|
# @option opts [Time] :ended_before If provided, will only return employee payroll runs ended before this datetime.
|
56
56
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
57
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
57
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
58
58
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
59
59
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
60
60
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -182,7 +182,7 @@ module MergeHRISClient
|
|
182
182
|
# @option opts [String] :employment_status If provided, will only return employees with this employment status.
|
183
183
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
184
184
|
# @option opts [String] :first_name If provided, will only return employees with this first name.
|
185
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
185
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
186
186
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
187
187
|
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
188
188
|
# @option opts [String] :last_name If provided, will only return employees with this last name.
|
@@ -192,6 +192,7 @@ module MergeHRISClient
|
|
192
192
|
# @option opts [Integer] :page_size Number of results to return per page.
|
193
193
|
# @option opts [String] :pay_group_id If provided, will only return employees for this pay group
|
194
194
|
# @option opts [String] :personal_email If provided, will only return Employees with this personal email
|
195
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
195
196
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
196
197
|
# @option opts [String] :team_id If provided, will only return employees for this team.
|
197
198
|
# @option opts [String] :work_email If provided, will only return Employees with this work email
|
@@ -213,7 +214,7 @@ module MergeHRISClient
|
|
213
214
|
# @option opts [String] :employment_status If provided, will only return employees with this employment status.
|
214
215
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
215
216
|
# @option opts [String] :first_name If provided, will only return employees with this first name.
|
216
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
217
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
217
218
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
218
219
|
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
219
220
|
# @option opts [String] :last_name If provided, will only return employees with this last name.
|
@@ -223,6 +224,7 @@ module MergeHRISClient
|
|
223
224
|
# @option opts [Integer] :page_size Number of results to return per page.
|
224
225
|
# @option opts [String] :pay_group_id If provided, will only return employees for this pay group
|
225
226
|
# @option opts [String] :personal_email If provided, will only return Employees with this personal email
|
227
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
226
228
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
227
229
|
# @option opts [String] :team_id If provided, will only return employees for this team.
|
228
230
|
# @option opts [String] :work_email If provided, will only return Employees with this work email
|
@@ -244,6 +246,10 @@ module MergeHRISClient
|
|
244
246
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
245
247
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
246
248
|
end
|
249
|
+
allowable_values = ["employment_status", "employment_status,ethnicity", "employment_status,ethnicity,gender", "employment_status,ethnicity,gender,marital_status", "employment_status,ethnicity,marital_status", "employment_status,gender", "employment_status,gender,marital_status", "employment_status,marital_status", "ethnicity", "ethnicity,gender", "ethnicity,gender,marital_status", "ethnicity,marital_status", "gender", "gender,marital_status", "marital_status"]
|
250
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
251
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
252
|
+
end
|
247
253
|
# resource path
|
248
254
|
local_var_path = '/employees'
|
249
255
|
|
@@ -267,6 +273,7 @@ module MergeHRISClient
|
|
267
273
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
268
274
|
query_params[:'pay_group_id'] = opts[:'pay_group_id'] if !opts[:'pay_group_id'].nil?
|
269
275
|
query_params[:'personal_email'] = opts[:'personal_email'] if !opts[:'personal_email'].nil?
|
276
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
270
277
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
271
278
|
query_params[:'team_id'] = opts[:'team_id'] if !opts[:'team_id'].nil?
|
272
279
|
query_params[:'work_email'] = opts[:'work_email'] if !opts[:'work_email'].nil?
|
@@ -376,6 +383,7 @@ module MergeHRISClient
|
|
376
383
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
377
384
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
378
385
|
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
386
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
379
387
|
# @return [Employee]
|
380
388
|
def employees_retrieve(x_account_token, id, opts = {})
|
381
389
|
data, _status_code, _headers = employees_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -389,6 +397,7 @@ module MergeHRISClient
|
|
389
397
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
390
398
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
391
399
|
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
400
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
392
401
|
# @return [Array<(Employee, Integer, Hash)>] Employee data, response status code and response headers
|
393
402
|
def employees_retrieve_with_http_info(x_account_token, id, opts = {})
|
394
403
|
if @api_client.config.debugging
|
@@ -406,6 +415,10 @@ module MergeHRISClient
|
|
406
415
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
407
416
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
408
417
|
end
|
418
|
+
allowable_values = ["employment_status", "employment_status,ethnicity", "employment_status,ethnicity,gender", "employment_status,ethnicity,gender,marital_status", "employment_status,ethnicity,marital_status", "employment_status,gender", "employment_status,gender,marital_status", "employment_status,marital_status", "ethnicity", "ethnicity,gender", "ethnicity,gender,marital_status", "ethnicity,marital_status", "gender", "gender,marital_status", "marital_status"]
|
419
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
420
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
421
|
+
end
|
409
422
|
# resource path
|
410
423
|
local_var_path = '/employees/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
411
424
|
|
@@ -414,6 +427,7 @@ module MergeHRISClient
|
|
414
427
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
415
428
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
416
429
|
query_params[:'include_sensitive_fields'] = opts[:'include_sensitive_fields'] if !opts[:'include_sensitive_fields'].nil?
|
430
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
417
431
|
|
418
432
|
# header parameters
|
419
433
|
header_params = opts[:header_params] || {}
|
@@ -27,12 +27,13 @@ module MergeHRISClient
|
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
28
|
# @option opts [String] :employee_id If provided, will only return employments for this employee.
|
29
29
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
30
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
30
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
31
31
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
32
32
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
33
33
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
34
34
|
# @option opts [String] :order_by Overrides the default ordering for this endpoint.
|
35
35
|
# @option opts [Integer] :page_size Number of results to return per page.
|
36
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
36
37
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
37
38
|
# @return [PaginatedEmploymentList]
|
38
39
|
def employments_list(x_account_token, opts = {})
|
@@ -48,12 +49,13 @@ module MergeHRISClient
|
|
48
49
|
# @option opts [String] :cursor The pagination cursor value.
|
49
50
|
# @option opts [String] :employee_id If provided, will only return employments for this employee.
|
50
51
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
51
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
52
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
52
53
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
53
54
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
54
55
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
55
56
|
# @option opts [String] :order_by Overrides the default ordering for this endpoint.
|
56
57
|
# @option opts [Integer] :page_size Number of results to return per page.
|
58
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
57
59
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
58
60
|
# @return [Array<(PaginatedEmploymentList, Integer, Hash)>] PaginatedEmploymentList data, response status code and response headers
|
59
61
|
def employments_list_with_http_info(x_account_token, opts = {})
|
@@ -72,6 +74,10 @@ module MergeHRISClient
|
|
72
74
|
if @api_client.config.client_side_validation && opts[:'order_by'] && !allowable_values.include?(opts[:'order_by'])
|
73
75
|
fail ArgumentError, "invalid value for \"order_by\", must be one of #{allowable_values}"
|
74
76
|
end
|
77
|
+
allowable_values = ["employment_type", "employment_type,flsa_status", "employment_type,flsa_status,pay_frequency", "employment_type,flsa_status,pay_frequency,pay_period", "employment_type,flsa_status,pay_period", "employment_type,pay_frequency", "employment_type,pay_frequency,pay_period", "employment_type,pay_period", "flsa_status", "flsa_status,pay_frequency", "flsa_status,pay_frequency,pay_period", "flsa_status,pay_period", "pay_frequency", "pay_frequency,pay_period", "pay_period"]
|
78
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
79
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
80
|
+
end
|
75
81
|
# resource path
|
76
82
|
local_var_path = '/employments'
|
77
83
|
|
@@ -88,6 +94,7 @@ module MergeHRISClient
|
|
88
94
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
89
95
|
query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
|
90
96
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
97
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
91
98
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
92
99
|
|
93
100
|
# header parameters
|
@@ -131,6 +138,7 @@ module MergeHRISClient
|
|
131
138
|
# @param [Hash] opts the optional parameters
|
132
139
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
133
140
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
141
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
134
142
|
# @return [Employment]
|
135
143
|
def employments_retrieve(x_account_token, id, opts = {})
|
136
144
|
data, _status_code, _headers = employments_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -143,6 +151,7 @@ module MergeHRISClient
|
|
143
151
|
# @param [Hash] opts the optional parameters
|
144
152
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
145
153
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
154
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
146
155
|
# @return [Array<(Employment, Integer, Hash)>] Employment data, response status code and response headers
|
147
156
|
def employments_retrieve_with_http_info(x_account_token, id, opts = {})
|
148
157
|
if @api_client.config.debugging
|
@@ -160,6 +169,10 @@ module MergeHRISClient
|
|
160
169
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
161
170
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
162
171
|
end
|
172
|
+
allowable_values = ["employment_type", "employment_type,flsa_status", "employment_type,flsa_status,pay_frequency", "employment_type,flsa_status,pay_frequency,pay_period", "employment_type,flsa_status,pay_period", "employment_type,pay_frequency", "employment_type,pay_frequency,pay_period", "employment_type,pay_period", "flsa_status", "flsa_status,pay_frequency", "flsa_status,pay_frequency,pay_period", "flsa_status,pay_period", "pay_frequency", "pay_frequency,pay_period", "pay_period"]
|
173
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
174
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
175
|
+
end
|
163
176
|
# resource path
|
164
177
|
local_var_path = '/employments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
165
178
|
|
@@ -167,6 +180,7 @@ module MergeHRISClient
|
|
167
180
|
query_params = opts[:query_params] || {}
|
168
181
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
169
182
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
183
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
170
184
|
|
171
185
|
# header parameters
|
172
186
|
header_params = opts[:header_params] || {}
|
@@ -25,11 +25,12 @@ module MergeHRISClient
|
|
25
25
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
26
26
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
28
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
29
29
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
30
30
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
31
31
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
32
32
|
# @option opts [Integer] :page_size Number of results to return per page.
|
33
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
33
34
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
34
35
|
# @return [PaginatedGroupList]
|
35
36
|
def groups_list(x_account_token, opts = {})
|
@@ -43,11 +44,12 @@ module MergeHRISClient
|
|
43
44
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
44
45
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
45
46
|
# @option opts [String] :cursor The pagination cursor value.
|
46
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
47
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
47
48
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
48
49
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
49
50
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
50
51
|
# @option opts [Integer] :page_size Number of results to return per page.
|
52
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
51
53
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
52
54
|
# @return [Array<(PaginatedGroupList, Integer, Hash)>] PaginatedGroupList data, response status code and response headers
|
53
55
|
def groups_list_with_http_info(x_account_token, opts = {})
|
@@ -58,6 +60,10 @@ module MergeHRISClient
|
|
58
60
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
59
61
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling GroupsApi.groups_list"
|
60
62
|
end
|
63
|
+
allowable_values = ["type"]
|
64
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
65
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
66
|
+
end
|
61
67
|
# resource path
|
62
68
|
local_var_path = '/groups'
|
63
69
|
|
@@ -71,6 +77,7 @@ module MergeHRISClient
|
|
71
77
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
72
78
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
73
79
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
80
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
74
81
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
75
82
|
|
76
83
|
# header parameters
|
@@ -113,6 +120,7 @@ module MergeHRISClient
|
|
113
120
|
# @param id [String]
|
114
121
|
# @param [Hash] opts the optional parameters
|
115
122
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
123
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
116
124
|
# @return [Group]
|
117
125
|
def groups_retrieve(x_account_token, id, opts = {})
|
118
126
|
data, _status_code, _headers = groups_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -124,6 +132,7 @@ module MergeHRISClient
|
|
124
132
|
# @param id [String]
|
125
133
|
# @param [Hash] opts the optional parameters
|
126
134
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
135
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
127
136
|
# @return [Array<(Group, Integer, Hash)>] Group data, response status code and response headers
|
128
137
|
def groups_retrieve_with_http_info(x_account_token, id, opts = {})
|
129
138
|
if @api_client.config.debugging
|
@@ -137,12 +146,17 @@ module MergeHRISClient
|
|
137
146
|
if @api_client.config.client_side_validation && id.nil?
|
138
147
|
fail ArgumentError, "Missing the required parameter 'id' when calling GroupsApi.groups_retrieve"
|
139
148
|
end
|
149
|
+
allowable_values = ["type"]
|
150
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
151
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
152
|
+
end
|
140
153
|
# resource path
|
141
154
|
local_var_path = '/groups/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
142
155
|
|
143
156
|
# query parameters
|
144
157
|
query_params = opts[:query_params] || {}
|
145
158
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
159
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
146
160
|
|
147
161
|
# header parameters
|
148
162
|
header_params = opts[:header_params] || {}
|