merge_hris_client 2.0.3 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/AccountDetails.md +3 -1
- data/docs/AccountDetailsAndActions.md +2 -0
- 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 -3
- data/docs/Employee.md +4 -0
- data/docs/EmployeePayrollRun.md +1 -1
- data/docs/EmployeePayrollRunsApi.md +2 -2
- data/docs/EmployeeRequest.md +4 -0
- data/docs/EmployeesApi.md +7 -3
- data/docs/Employment.md +1 -1
- data/docs/EmploymentsApi.md +7 -3
- data/docs/EndUserDetailsRequest.md +9 -7
- data/docs/Group.md +1 -1
- data/docs/GroupsApi.md +7 -3
- data/docs/LinkToken.md +3 -1
- data/docs/LinkedAccountsApi.md +2 -0
- 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 +5 -1
- data/docs/ResponseTypeEnum.md +15 -0
- data/docs/SyncStatus.md +2 -2
- data/docs/SyncStatusApi.md +1 -1
- data/docs/Tax.md +1 -3
- 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/linked_accounts_api.rb +3 -0
- 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/sync_status_api.rb +2 -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/account_details.rb +15 -4
- data/lib/merge_hris_client/models/account_details_and_actions.rb +12 -1
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/account_type_enum.rb +17 -7
- 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/categories_enum.rb +17 -7
- data/lib/merge_hris_client/models/category_enum.rb +17 -7
- data/lib/merge_hris_client/models/company.rb +1 -1
- data/lib/merge_hris_client/models/country_enum.rb +17 -7
- data/lib/merge_hris_client/models/data_passthrough_request.rb +15 -6
- data/lib/merge_hris_client/models/deduction.rb +1 -1
- data/lib/merge_hris_client/models/earning.rb +2 -14
- data/lib/merge_hris_client/models/earning_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/employee.rb +24 -2
- data/lib/merge_hris_client/models/employee_payroll_run.rb +1 -1
- data/lib/merge_hris_client/models/employee_request.rb +24 -2
- data/lib/merge_hris_client/models/employment.rb +1 -1
- data/lib/merge_hris_client/models/employment_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/employment_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/encoding_enum.rb +18 -7
- data/lib/merge_hris_client/models/end_user_details_request.rb +28 -11
- data/lib/merge_hris_client/models/ethnicity_enum.rb +17 -7
- data/lib/merge_hris_client/models/flsa_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/gender_enum.rb +17 -7
- data/lib/merge_hris_client/models/group.rb +1 -1
- data/lib/merge_hris_client/models/group_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/issue.rb +1 -1
- data/lib/merge_hris_client/models/issue_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/link_token.rb +13 -4
- data/lib/merge_hris_client/models/location.rb +1 -1
- data/lib/merge_hris_client/models/location_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/marital_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/meta_response.rb +1 -1
- data/lib/merge_hris_client/models/method_enum.rb +17 -7
- data/lib/merge_hris_client/models/pay_currency_enum.rb +17 -7
- data/lib/merge_hris_client/models/pay_frequency_enum.rb +17 -7
- data/lib/merge_hris_client/models/pay_group.rb +1 -1
- data/lib/merge_hris_client/models/pay_period_enum.rb +17 -7
- data/lib/merge_hris_client/models/payroll_run.rb +1 -1
- data/lib/merge_hris_client/models/policy_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/reason_enum.rb +17 -7
- data/lib/merge_hris_client/models/remote_response.rb +23 -9
- data/lib/merge_hris_client/models/request_format_enum.rb +17 -7
- data/lib/merge_hris_client/models/request_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/response_type_enum.rb +45 -0
- data/lib/merge_hris_client/models/run_state_enum.rb +17 -7
- data/lib/merge_hris_client/models/run_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/sync_status.rb +0 -10
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +18 -7
- data/lib/merge_hris_client/models/tax.rb +2 -14
- 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/models/time_off_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/units_enum.rb +17 -7
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.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/linked_accounts_api_spec.rb +1 -0
- 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/sync_status_api_spec.rb +1 -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/account_details_and_actions_spec.rb +6 -0
- data/spec/models/account_details_spec.rb +6 -0
- data/spec/models/data_passthrough_request_spec.rb +6 -0
- data/spec/models/earning_spec.rb +0 -6
- data/spec/models/employee_request_spec.rb +12 -0
- data/spec/models/employee_spec.rb +12 -0
- data/spec/models/end_user_details_request_spec.rb +6 -0
- data/spec/models/link_token_spec.rb +6 -0
- data/spec/models/remote_response_spec.rb +12 -0
- data/spec/models/response_type_enum_spec.rb +28 -0
- data/spec/models/tax_spec.rb +0 -6
- metadata +105 -101
@@ -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] || {}
|
@@ -29,6 +29,7 @@ module MergeHRISClient
|
|
29
29
|
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
|
30
30
|
# @option opts [String] :id
|
31
31
|
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
|
32
|
+
# @option opts [Boolean] :include_duplicates If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account.
|
32
33
|
# @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
|
33
34
|
# @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
|
34
35
|
# @option opts [Integer] :page_size Number of results to return per page.
|
@@ -49,6 +50,7 @@ module MergeHRISClient
|
|
49
50
|
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
|
50
51
|
# @option opts [String] :id
|
51
52
|
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
|
53
|
+
# @option opts [Boolean] :include_duplicates If `true`, will include complete production duplicates of the account specified by the `id` query parameter in the response. `id` must be for a complete production linked account.
|
52
54
|
# @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
|
53
55
|
# @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts.
|
54
56
|
# @option opts [Integer] :page_size Number of results to return per page.
|
@@ -75,6 +77,7 @@ module MergeHRISClient
|
|
75
77
|
query_params[:'end_user_origin_ids'] = opts[:'end_user_origin_ids'] if !opts[:'end_user_origin_ids'].nil?
|
76
78
|
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
77
79
|
query_params[:'ids'] = opts[:'ids'] if !opts[:'ids'].nil?
|
80
|
+
query_params[:'include_duplicates'] = opts[:'include_duplicates'] if !opts[:'include_duplicates'].nil?
|
78
81
|
query_params[:'integration_name'] = opts[:'integration_name'] if !opts[:'integration_name'].nil?
|
79
82
|
query_params[:'is_test_account'] = opts[:'is_test_account'] if !opts[:'is_test_account'].nil?
|
80
83
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
@@ -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 [PaginatedLocationList]
|
35
36
|
def locations_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<(PaginatedLocationList, Integer, Hash)>] PaginatedLocationList data, response status code and response headers
|
53
55
|
def locations_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 LocationsApi.locations_list"
|
60
62
|
end
|
63
|
+
allowable_values = ["location_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 = '/locations'
|
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 [Location]
|
117
125
|
def locations_retrieve(x_account_token, id, opts = {})
|
118
126
|
data, _status_code, _headers = locations_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<(Location, Integer, Hash)>] Location data, response status code and response headers
|
128
137
|
def locations_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 LocationsApi.locations_retrieve"
|
139
148
|
end
|
149
|
+
allowable_values = ["location_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 = '/locations/{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] || {}
|
@@ -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.
|
@@ -27,11 +27,12 @@ module MergeHRISClient
|
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
28
|
# @option opts [Time] :ended_after If provided, will only return payroll runs ended after this datetime.
|
29
29
|
# @option opts [Time] :ended_before If provided, will only return payroll runs ended before this datetime.
|
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 [Integer] :page_size Number of results to return per page.
|
35
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
35
36
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
36
37
|
# @option opts [String] :run_type If provided, will only return PayrollRun's with this status. Options: ('REGULAR', 'OFF_CYCLE', 'CORRECTION', 'TERMINATION', 'SIGN_ON_BONUS')
|
37
38
|
# @option opts [Time] :started_after If provided, will only return payroll runs started after this datetime.
|
@@ -50,11 +51,12 @@ module MergeHRISClient
|
|
50
51
|
# @option opts [String] :cursor The pagination cursor value.
|
51
52
|
# @option opts [Time] :ended_after If provided, will only return payroll runs ended after this datetime.
|
52
53
|
# @option opts [Time] :ended_before If provided, will only return payroll runs ended before this datetime.
|
53
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
54
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
54
55
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
55
56
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
56
57
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
57
58
|
# @option opts [Integer] :page_size Number of results to return per page.
|
59
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
58
60
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
59
61
|
# @option opts [String] :run_type If provided, will only return PayrollRun's with this status. Options: ('REGULAR', 'OFF_CYCLE', 'CORRECTION', 'TERMINATION', 'SIGN_ON_BONUS')
|
60
62
|
# @option opts [Time] :started_after If provided, will only return payroll runs started after this datetime.
|
@@ -68,6 +70,10 @@ module MergeHRISClient
|
|
68
70
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
69
71
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling PayrollRunsApi.payroll_runs_list"
|
70
72
|
end
|
73
|
+
allowable_values = ["run_state", "run_state,run_type", "run_type"]
|
74
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
75
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
76
|
+
end
|
71
77
|
allowable_values = ["CORRECTION", "OFF_CYCLE", "REGULAR", "SIGN_ON_BONUS", "TERMINATION"]
|
72
78
|
if @api_client.config.client_side_validation && opts[:'run_type'] && !allowable_values.include?(opts[:'run_type'])
|
73
79
|
fail ArgumentError, "invalid value for \"run_type\", must be one of #{allowable_values}"
|
@@ -87,6 +93,7 @@ module MergeHRISClient
|
|
87
93
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
88
94
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
89
95
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
96
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
90
97
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
91
98
|
query_params[:'run_type'] = opts[:'run_type'] if !opts[:'run_type'].nil?
|
92
99
|
query_params[:'started_after'] = opts[:'started_after'] if !opts[:'started_after'].nil?
|
@@ -132,6 +139,7 @@ module MergeHRISClient
|
|
132
139
|
# @param id [String]
|
133
140
|
# @param [Hash] opts the optional parameters
|
134
141
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
142
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
135
143
|
# @return [PayrollRun]
|
136
144
|
def payroll_runs_retrieve(x_account_token, id, opts = {})
|
137
145
|
data, _status_code, _headers = payroll_runs_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -143,6 +151,7 @@ module MergeHRISClient
|
|
143
151
|
# @param id [String]
|
144
152
|
# @param [Hash] opts the optional parameters
|
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<(PayrollRun, Integer, Hash)>] PayrollRun data, response status code and response headers
|
147
156
|
def payroll_runs_retrieve_with_http_info(x_account_token, id, opts = {})
|
148
157
|
if @api_client.config.debugging
|
@@ -156,12 +165,17 @@ module MergeHRISClient
|
|
156
165
|
if @api_client.config.client_side_validation && id.nil?
|
157
166
|
fail ArgumentError, "Missing the required parameter 'id' when calling PayrollRunsApi.payroll_runs_retrieve"
|
158
167
|
end
|
168
|
+
allowable_values = ["run_state", "run_state,run_type", "run_type"]
|
169
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
170
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
171
|
+
end
|
159
172
|
# resource path
|
160
173
|
local_var_path = '/payroll-runs/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
161
174
|
|
162
175
|
# query parameters
|
163
176
|
query_params = opts[:query_params] || {}
|
164
177
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
178
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
165
179
|
|
166
180
|
# header parameters
|
167
181
|
header_params = opts[:header_params] || {}
|
@@ -19,7 +19,7 @@ module MergeHRISClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `SYNCING`
|
22
|
+
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`
|
23
23
|
# @param x_account_token [String] Token identifying the end user.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [String] :cursor The pagination cursor value.
|
@@ -30,7 +30,7 @@ module MergeHRISClient
|
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
|
-
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `SYNCING`
|
33
|
+
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `PAUSED`, `SYNCING`
|
34
34
|
# @param x_account_token [String] Token identifying the end user.
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @option opts [String] :cursor The pagination cursor value.
|
@@ -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] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
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.
|
@@ -46,7 +46,7 @@ module MergeHRISClient
|
|
46
46
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
47
47
|
# @option opts [String] :cursor The pagination cursor value.
|
48
48
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
49
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
49
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
50
50
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
51
51
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
52
52
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -104,11 +104,12 @@ module MergeHRISClient
|
|
104
104
|
# @option opts [String] :cursor The pagination cursor value.
|
105
105
|
# @option opts [String] :employee_id If provided, will only return time off for this employee.
|
106
106
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
107
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
107
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
108
108
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
109
109
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
110
110
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
111
111
|
# @option opts [Integer] :page_size Number of results to return per page.
|
112
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
112
113
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
113
114
|
# @option opts [String] :request_type If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
|
114
115
|
# @option opts [String] :status If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED')
|
@@ -127,11 +128,12 @@ module MergeHRISClient
|
|
127
128
|
# @option opts [String] :cursor The pagination cursor value.
|
128
129
|
# @option opts [String] :employee_id If provided, will only return time off for this employee.
|
129
130
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
130
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
131
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
131
132
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
132
133
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
133
134
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
134
135
|
# @option opts [Integer] :page_size Number of results to return per page.
|
136
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
135
137
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
136
138
|
# @option opts [String] :request_type If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
|
137
139
|
# @option opts [String] :status If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED')
|
@@ -148,6 +150,10 @@ module MergeHRISClient
|
|
148
150
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
149
151
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
150
152
|
end
|
153
|
+
allowable_values = ["request_type", "request_type,status", "request_type,status,units", "request_type,units", "status", "status,units", "units"]
|
154
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
155
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
156
|
+
end
|
151
157
|
allowable_values = ["BEREAVEMENT", "JURY_DUTY", "PERSONAL", "SICK", "VACATION", "VOLUNTEER"]
|
152
158
|
if @api_client.config.client_side_validation && opts[:'request_type'] && !allowable_values.include?(opts[:'request_type'])
|
153
159
|
fail ArgumentError, "invalid value for \"request_type\", must be one of #{allowable_values}"
|
@@ -172,6 +178,7 @@ module MergeHRISClient
|
|
172
178
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
173
179
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
174
180
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
181
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
175
182
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
176
183
|
query_params[:'request_type'] = opts[:'request_type'] if !opts[:'request_type'].nil?
|
177
184
|
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
@@ -279,6 +286,7 @@ module MergeHRISClient
|
|
279
286
|
# @param [Hash] opts the optional parameters
|
280
287
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
281
288
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
289
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
282
290
|
# @return [TimeOff]
|
283
291
|
def time_off_retrieve(x_account_token, id, opts = {})
|
284
292
|
data, _status_code, _headers = time_off_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -291,6 +299,7 @@ module MergeHRISClient
|
|
291
299
|
# @param [Hash] opts the optional parameters
|
292
300
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
293
301
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
302
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
294
303
|
# @return [Array<(TimeOff, Integer, Hash)>] TimeOff data, response status code and response headers
|
295
304
|
def time_off_retrieve_with_http_info(x_account_token, id, opts = {})
|
296
305
|
if @api_client.config.debugging
|
@@ -308,6 +317,10 @@ module MergeHRISClient
|
|
308
317
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
309
318
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
310
319
|
end
|
320
|
+
allowable_values = ["request_type", "request_type,status", "request_type,status,units", "request_type,units", "status", "status,units", "units"]
|
321
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
322
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
323
|
+
end
|
311
324
|
# resource path
|
312
325
|
local_var_path = '/time-off/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
313
326
|
|
@@ -315,6 +328,7 @@ module MergeHRISClient
|
|
315
328
|
query_params = opts[:query_params] || {}
|
316
329
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
317
330
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
331
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
318
332
|
|
319
333
|
# header parameters
|
320
334
|
header_params = opts[:header_params] || {}
|