merge_hris_client 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +33 -9
- data/docs/AccountDetails.md +30 -0
- data/docs/AccountDetailsAndActions.md +32 -0
- data/docs/AccountDetailsAndActionsIntegration.md +32 -0
- data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
- data/docs/AccountDetailsApi.md +76 -0
- data/docs/AccountTypeEnum.md +15 -0
- data/docs/BankInfo.md +34 -0
- data/docs/BankInfoApi.md +193 -0
- data/docs/BenefitsApi.md +2 -78
- data/docs/{StateEnum.md → CategoriesEnum.md} +2 -2
- data/docs/{NullEnum.md → CategoryEnum.md} +2 -2
- data/docs/CompaniesApi.md +3 -1
- data/docs/DataPassthroughRequest.md +5 -3
- data/docs/DeductionsApi.md +179 -0
- data/docs/Employee.md +12 -8
- data/docs/EmployeePayrollRun.md +3 -3
- data/docs/EmployeePayrollRunsApi.md +13 -3
- data/docs/EmployeesApi.md +12 -82
- data/docs/Employment.md +3 -1
- data/docs/EmploymentsApi.md +7 -78
- data/docs/EndUserDetailsRequest.md +1 -1
- data/docs/ErrorValidationProblem.md +24 -0
- data/docs/ForceResyncApi.md +79 -0
- data/docs/IssuesApi.md +11 -10
- data/docs/LinkedAccountsApi.md +103 -0
- data/docs/Location.md +2 -0
- data/docs/LocationsApi.md +2 -0
- data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
- data/docs/PaginatedBankInfoList.md +22 -0
- data/docs/PaginatedDeductionList.md +22 -0
- data/docs/PaginatedIssueList.md +2 -2
- data/docs/PaginatedPayGroupList.md +22 -0
- data/docs/PaginatedSyncStatusList.md +2 -2
- data/docs/PayGroup.md +24 -0
- data/docs/PayGroupsApi.md +177 -0
- data/docs/PayrollRun.md +3 -3
- data/docs/PayrollRunsApi.md +13 -1
- data/docs/PolicyTypeEnum.md +15 -0
- data/docs/RequestFormatEnum.md +15 -0
- data/docs/SyncStatusApi.md +3 -74
- data/docs/TeamsApi.md +7 -2
- data/docs/TimeOff.md +3 -3
- data/docs/TimeOffApi.md +88 -4
- data/docs/TimeOffBalance.md +4 -2
- data/docs/{TimeOffBalanceApi.md → TimeOffBalancesApi.md} +26 -22
- data/docs/TimeOffEndpointRequest.md +18 -0
- data/docs/TimeOffRequest.md +36 -0
- data/docs/TimeOffResponse.md +22 -0
- data/docs/ValidationProblemSource.md +18 -0
- data/docs/WarningValidationProblem.md +24 -0
- data/lib/merge_hris_client/api/account_details_api.rb +77 -0
- data/lib/merge_hris_client/api/bank_info_api.rb +222 -0
- data/lib/merge_hris_client/api/benefits_api.rb +3 -69
- data/lib/merge_hris_client/api/companies_api.rb +3 -0
- data/lib/merge_hris_client/api/deductions_api.rb +185 -0
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +17 -2
- data/lib/merge_hris_client/api/employees_api.rb +18 -75
- data/lib/merge_hris_client/api/employments_api.rb +24 -69
- data/lib/merge_hris_client/api/force_resync_api.rb +84 -0
- data/lib/merge_hris_client/api/issues_api.rb +10 -10
- data/lib/merge_hris_client/api/linked_accounts_api.rb +117 -0
- data/lib/merge_hris_client/api/locations_api.rb +3 -0
- data/lib/merge_hris_client/api/pay_groups_api.rb +182 -0
- data/lib/merge_hris_client/api/payroll_runs_api.rb +22 -0
- data/lib/merge_hris_client/api/sync_status_api.rb +4 -4
- data/lib/merge_hris_client/api/teams_api.rb +17 -0
- data/lib/merge_hris_client/api/time_off_api.rb +92 -2
- data/lib/merge_hris_client/api/time_off_balances_api.rb +206 -0
- data/lib/merge_hris_client/models/account_details.rb +273 -0
- data/lib/merge_hris_client/models/account_details_and_actions.rb +302 -0
- data/lib/merge_hris_client/models/account_details_and_actions_integration.rb +310 -0
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +36 -0
- data/lib/merge_hris_client/models/account_integration.rb +1 -1
- data/lib/merge_hris_client/models/account_type_enum.rb +35 -0
- data/lib/merge_hris_client/models/bank_info.rb +323 -0
- data/lib/merge_hris_client/models/categories_enum.rb +36 -0
- data/lib/merge_hris_client/models/category_enum.rb +36 -0
- data/lib/merge_hris_client/models/data_passthrough_request.rb +66 -9
- data/lib/merge_hris_client/models/employee.rb +32 -8
- data/lib/merge_hris_client/models/employment.rb +12 -1
- data/lib/merge_hris_client/models/end_user_details_request.rb +73 -1
- data/lib/merge_hris_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_hris_client/models/generate_remote_key_request.rb +19 -0
- data/lib/merge_hris_client/models/location.rb +12 -1
- data/lib/merge_hris_client/models/marital_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/paginated_account_details_and_actions_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_bank_info_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_deduction_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_pay_group_list.rb +240 -0
- data/lib/merge_hris_client/models/{benefit_request.rb → pay_group.rb} +31 -54
- data/lib/merge_hris_client/models/policy_type_enum.rb +39 -0
- data/lib/merge_hris_client/models/remote_data_request.rb +19 -0
- data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +19 -0
- data/lib/merge_hris_client/models/request_format_enum.rb +35 -0
- data/lib/merge_hris_client/models/request_type_enum.rb +2 -1
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +2 -0
- data/lib/merge_hris_client/models/time_off_balance.rb +14 -3
- data/lib/merge_hris_client/models/time_off_endpoint_request.rb +223 -0
- data/lib/merge_hris_client/models/{employment_request.rb → time_off_request.rb} +80 -69
- data/lib/merge_hris_client/models/time_off_response.rb +255 -0
- data/lib/merge_hris_client/models/validation_problem_source.rb +223 -0
- data/lib/merge_hris_client/models/warning_validation_problem.rb +260 -0
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +28 -4
- data/spec/api/account_details_api_spec.rb +45 -0
- data/spec/api/account_token_api_spec.rb +1 -1
- data/spec/api/available_actions_api_spec.rb +1 -1
- data/spec/api/bank_info_api_spec.rb +76 -0
- data/spec/api/benefits_api_spec.rb +4 -1
- data/spec/api/companies_api_spec.rb +4 -1
- data/spec/api/deductions_api_spec.rb +69 -0
- data/spec/api/employee_payroll_runs_api_spec.rb +9 -2
- data/spec/api/employees_api_spec.rb +9 -1
- data/spec/api/employments_api_spec.rb +7 -1
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/issues_api_spec.rb +5 -5
- data/spec/api/link_token_api_spec.rb +2 -2
- data/spec/api/linked_accounts_api_spec.rb +57 -0
- data/spec/api/locations_api_spec.rb +4 -1
- data/spec/api/passthrough_api_spec.rb +2 -3
- data/spec/api/pay_groups_api_spec.rb +68 -0
- data/spec/api/payroll_runs_api_spec.rb +9 -1
- data/spec/api/regenerate_key_api_spec.rb +2 -2
- data/spec/api/sync_status_api_spec.rb +2 -13
- data/spec/api/teams_api_spec.rb +7 -1
- data/spec/api/time_off_api_spec.rb +20 -2
- data/spec/api/{time_off_balance_api_spec.rb → time_off_balances_api_spec.rb} +13 -11
- data/spec/models/account_details_and_actions_integration_spec.rb +76 -0
- data/spec/models/account_details_and_actions_spec.rb +76 -0
- data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
- data/spec/models/{benefit_request_spec.rb → account_details_spec.rb} +18 -12
- data/spec/models/account_integration_spec.rb +7 -1
- data/spec/models/account_token_spec.rb +7 -1
- data/spec/models/account_type_enum_spec.rb +28 -0
- data/spec/models/available_actions_spec.rb +13 -1
- data/spec/models/{employment_request_spec.rb → bank_info_spec.rb} +15 -15
- data/spec/models/benefit_plan_type_enum_spec.rb +1 -1
- data/spec/models/benefit_spec.rb +7 -1
- data/spec/models/categories_enum_spec.rb +28 -0
- data/spec/models/{state_enum_spec.rb → category_enum_spec.rb} +7 -7
- data/spec/models/company_spec.rb +7 -1
- data/spec/models/country_enum_spec.rb +1 -1
- data/spec/models/data_passthrough_request_spec.rb +7 -1
- data/spec/models/deduction_spec.rb +7 -1
- data/spec/models/earning_spec.rb +7 -1
- data/spec/models/employee_payroll_run_spec.rb +7 -1
- data/spec/models/employee_spec.rb +31 -1
- data/spec/models/employment_spec.rb +13 -1
- data/spec/models/employment_status_enum_spec.rb +1 -1
- data/spec/models/employment_type_enum_spec.rb +1 -1
- data/spec/models/end_user_details_request_spec.rb +7 -5
- data/spec/models/{end_user_details_spec.rb → error_validation_problem_spec.rb} +11 -15
- data/spec/models/ethnicity_enum_spec.rb +1 -1
- data/spec/models/flsa_status_enum_spec.rb +1 -1
- data/spec/models/gender_enum_spec.rb +1 -1
- data/spec/models/link_token_spec.rb +1 -1
- data/spec/models/location_spec.rb +13 -1
- data/spec/models/marital_status_enum_spec.rb +1 -1
- data/spec/models/method_enum_spec.rb +1 -1
- data/spec/models/model_operation_spec.rb +13 -1
- data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
- data/spec/models/paginated_bank_info_list_spec.rb +46 -0
- data/spec/models/paginated_benefit_list_spec.rb +1 -1
- data/spec/models/paginated_company_list_spec.rb +1 -1
- data/spec/models/paginated_deduction_list_spec.rb +46 -0
- data/spec/models/paginated_employee_list_spec.rb +1 -1
- data/spec/models/paginated_employee_payroll_run_list_spec.rb +1 -1
- data/spec/models/paginated_employment_list_spec.rb +1 -1
- data/spec/models/paginated_location_list_spec.rb +1 -1
- data/spec/models/paginated_pay_group_list_spec.rb +46 -0
- data/spec/models/paginated_payroll_run_list_spec.rb +1 -1
- data/spec/models/paginated_team_list_spec.rb +1 -1
- data/spec/models/paginated_time_off_list_spec.rb +1 -1
- data/spec/models/pay_currency_enum_spec.rb +1 -1
- data/spec/models/pay_frequency_enum_spec.rb +1 -1
- data/spec/models/{data_passthrough_spec.rb → pay_group_spec.rb} +11 -11
- data/spec/models/pay_period_enum_spec.rb +1 -1
- data/spec/models/payroll_run_spec.rb +7 -1
- data/spec/models/policy_type_enum_spec.rb +28 -0
- data/spec/models/remote_data_spec.rb +1 -1
- data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
- data/spec/models/remote_key_spec.rb +1 -1
- data/spec/models/remote_response_spec.rb +1 -1
- data/spec/models/request_format_enum_spec.rb +28 -0
- data/spec/models/request_type_enum_spec.rb +1 -1
- data/spec/models/run_state_enum_spec.rb +1 -1
- data/spec/models/run_type_enum_spec.rb +1 -1
- data/spec/models/tax_spec.rb +7 -1
- data/spec/models/team_spec.rb +13 -1
- data/spec/models/time_off_balance_spec.rb +6 -0
- data/spec/models/{remote_key_for_regeneration_spec.rb → time_off_endpoint_request_spec.rb} +8 -8
- data/spec/models/time_off_request_spec.rb +88 -0
- data/spec/models/time_off_response_spec.rb +46 -0
- data/spec/models/time_off_spec.rb +19 -1
- data/spec/models/time_off_status_enum_spec.rb +1 -1
- data/spec/models/type_enum_spec.rb +1 -1
- data/spec/models/units_enum_spec.rb +1 -1
- data/spec/models/validation_problem_source_spec.rb +34 -0
- data/spec/models/warning_validation_problem_spec.rb +52 -0
- data/test_ruby.rb +11 -14
- metadata +115 -33
- data/docs/BenefitRequest.md +0 -28
- data/docs/DataPassthrough.md +0 -24
- data/docs/EmployeeRequest.md +0 -62
- data/docs/EmploymentRequest.md +0 -34
- data/docs/EndUserDetails.md +0 -24
- data/docs/RemoteKeyForRegeneration.md +0 -18
- data/lib/merge_hris_client/models/employee_request.rb +0 -523
- data/merge_hris_client-1.0.0.gem +0 -0
- data/merge_hris_client-1.0.1.gem +0 -0
- data/spec/models/employee_request_spec.rb +0 -160
@@ -19,75 +19,6 @@ module MergeHRISClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Creates a `Benefit` object with the given values.
|
23
|
-
# @param x_account_token [String] Token identifying the end user.
|
24
|
-
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
26
|
-
# @option opts [BenefitRequest] :benefit_request
|
27
|
-
# @return [Benefit]
|
28
|
-
def benefits_create(x_account_token, opts = {})
|
29
|
-
data, _status_code, _headers = benefits_create_with_http_info(x_account_token, opts)
|
30
|
-
data
|
31
|
-
end
|
32
|
-
|
33
|
-
# Creates a `Benefit` object with the given values.
|
34
|
-
# @param x_account_token [String] Token identifying the end user.
|
35
|
-
# @param [Hash] opts the optional parameters
|
36
|
-
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
37
|
-
# @option opts [BenefitRequest] :benefit_request
|
38
|
-
# @return [Array<(Benefit, Integer, Hash)>] Benefit data, response status code and response headers
|
39
|
-
def benefits_create_with_http_info(x_account_token, opts = {})
|
40
|
-
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug 'Calling API: BenefitsApi.benefits_create ...'
|
42
|
-
end
|
43
|
-
# verify the required parameter 'x_account_token' is set
|
44
|
-
if @api_client.config.client_side_validation && x_account_token.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling BenefitsApi.benefits_create"
|
46
|
-
end
|
47
|
-
# resource path
|
48
|
-
local_var_path = '/benefits'
|
49
|
-
|
50
|
-
# query parameters
|
51
|
-
query_params = opts[:query_params] || {}
|
52
|
-
query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
|
53
|
-
|
54
|
-
# header parameters
|
55
|
-
header_params = opts[:header_params] || {}
|
56
|
-
# HTTP header 'Accept' (if needed)
|
57
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
58
|
-
# HTTP header 'Content-Type'
|
59
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
60
|
-
header_params[:'X-Account-Token'] = x_account_token
|
61
|
-
|
62
|
-
# form parameters
|
63
|
-
form_params = opts[:form_params] || {}
|
64
|
-
|
65
|
-
# http body (model)
|
66
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'benefit_request'])
|
67
|
-
|
68
|
-
# return_type
|
69
|
-
return_type = opts[:debug_return_type] || 'Benefit'
|
70
|
-
|
71
|
-
# auth_names
|
72
|
-
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
73
|
-
|
74
|
-
new_options = opts.merge(
|
75
|
-
:operation => :"BenefitsApi.benefits_create",
|
76
|
-
:header_params => header_params,
|
77
|
-
:query_params => query_params,
|
78
|
-
:form_params => form_params,
|
79
|
-
:body => post_body,
|
80
|
-
:auth_names => auth_names,
|
81
|
-
:return_type => return_type
|
82
|
-
)
|
83
|
-
|
84
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
85
|
-
if @api_client.config.debugging
|
86
|
-
@api_client.config.logger.debug "API called: BenefitsApi#benefits_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
-
end
|
88
|
-
return data, status_code, headers
|
89
|
-
end
|
90
|
-
|
91
22
|
# Returns a list of `Benefit` objects.
|
92
23
|
# @param x_account_token [String] Token identifying the end user.
|
93
24
|
# @param [Hash] opts the optional parameters
|
@@ -96,6 +27,7 @@ module MergeHRISClient
|
|
96
27
|
# @option opts [String] :cursor The pagination cursor value.
|
97
28
|
# @option opts [String] :employee_id If provided, will only return time off for this employee.
|
98
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 in the third-party service.
|
99
31
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
100
32
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
101
33
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -115,6 +47,7 @@ module MergeHRISClient
|
|
115
47
|
# @option opts [String] :cursor The pagination cursor value.
|
116
48
|
# @option opts [String] :employee_id If provided, will only return time off for this employee.
|
117
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 in the third-party service.
|
118
51
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
119
52
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
120
53
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -143,6 +76,7 @@ module MergeHRISClient
|
|
143
76
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
144
77
|
query_params[:'employee_id'] = opts[:'employee_id'] if !opts[:'employee_id'].nil?
|
145
78
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
79
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
146
80
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
147
81
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
148
82
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
@@ -25,6 +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 in the third-party service.
|
28
29
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
29
30
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
30
31
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -42,6 +43,7 @@ module MergeHRISClient
|
|
42
43
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
43
44
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
44
45
|
# @option opts [String] :cursor The pagination cursor value.
|
46
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
45
47
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
46
48
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
47
49
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -64,6 +66,7 @@ module MergeHRISClient
|
|
64
66
|
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
65
67
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
66
68
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
69
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
67
70
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
68
71
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
69
72
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
@@ -0,0 +1,185 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge HRIS API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple HR Information System platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module MergeHRISClient
|
16
|
+
class DeductionsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Returns a list of `Deduction` objects.
|
23
|
+
# @param x_account_token [String] Token identifying the end user.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
26
|
+
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
27
|
+
# @option opts [String] :cursor The pagination cursor value.
|
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 in the third-party service.
|
30
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
31
|
+
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
32
|
+
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
33
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
34
|
+
# @option opts [String] :remote_id The API provider's ID for the given object.
|
35
|
+
# @return [PaginatedDeductionList]
|
36
|
+
def deductions_list(x_account_token, opts = {})
|
37
|
+
data, _status_code, _headers = deductions_list_with_http_info(x_account_token, opts)
|
38
|
+
data
|
39
|
+
end
|
40
|
+
|
41
|
+
# Returns a list of `Deduction` objects.
|
42
|
+
# @param x_account_token [String] Token identifying the end user.
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
45
|
+
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
46
|
+
# @option opts [String] :cursor The pagination cursor value.
|
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 in the third-party service.
|
49
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
50
|
+
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
51
|
+
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
52
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
53
|
+
# @option opts [String] :remote_id The API provider's ID for the given object.
|
54
|
+
# @return [Array<(PaginatedDeductionList, Integer, Hash)>] PaginatedDeductionList data, response status code and response headers
|
55
|
+
def deductions_list_with_http_info(x_account_token, opts = {})
|
56
|
+
if @api_client.config.debugging
|
57
|
+
@api_client.config.logger.debug 'Calling API: DeductionsApi.deductions_list ...'
|
58
|
+
end
|
59
|
+
# verify the required parameter 'x_account_token' is set
|
60
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
61
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling DeductionsApi.deductions_list"
|
62
|
+
end
|
63
|
+
# resource path
|
64
|
+
local_var_path = '/deductions'
|
65
|
+
|
66
|
+
# query parameters
|
67
|
+
query_params = opts[:query_params] || {}
|
68
|
+
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
69
|
+
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
70
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
71
|
+
query_params[:'employee_payroll_run_id'] = opts[:'employee_payroll_run_id'] if !opts[:'employee_payroll_run_id'].nil?
|
72
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
73
|
+
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
74
|
+
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
75
|
+
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
76
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
77
|
+
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
78
|
+
|
79
|
+
# header parameters
|
80
|
+
header_params = opts[:header_params] || {}
|
81
|
+
# HTTP header 'Accept' (if needed)
|
82
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
83
|
+
header_params[:'X-Account-Token'] = x_account_token
|
84
|
+
|
85
|
+
# form parameters
|
86
|
+
form_params = opts[:form_params] || {}
|
87
|
+
|
88
|
+
# http body (model)
|
89
|
+
post_body = opts[:debug_body]
|
90
|
+
|
91
|
+
# return_type
|
92
|
+
return_type = opts[:debug_return_type] || 'PaginatedDeductionList'
|
93
|
+
|
94
|
+
# auth_names
|
95
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
96
|
+
|
97
|
+
new_options = opts.merge(
|
98
|
+
:operation => :"DeductionsApi.deductions_list",
|
99
|
+
:header_params => header_params,
|
100
|
+
:query_params => query_params,
|
101
|
+
:form_params => form_params,
|
102
|
+
:body => post_body,
|
103
|
+
:auth_names => auth_names,
|
104
|
+
:return_type => return_type
|
105
|
+
)
|
106
|
+
|
107
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug "API called: DeductionsApi#deductions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
110
|
+
end
|
111
|
+
return data, status_code, headers
|
112
|
+
end
|
113
|
+
|
114
|
+
# Returns a `Deduction` object with the given `id`.
|
115
|
+
# @param x_account_token [String] Token identifying the end user.
|
116
|
+
# @param id [String]
|
117
|
+
# @param [Hash] opts the optional parameters
|
118
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
119
|
+
# @return [Deduction]
|
120
|
+
def deductions_retrieve(x_account_token, id, opts = {})
|
121
|
+
data, _status_code, _headers = deductions_retrieve_with_http_info(x_account_token, id, opts)
|
122
|
+
data
|
123
|
+
end
|
124
|
+
|
125
|
+
# Returns a `Deduction` object with the given `id`.
|
126
|
+
# @param x_account_token [String] Token identifying the end user.
|
127
|
+
# @param id [String]
|
128
|
+
# @param [Hash] opts the optional parameters
|
129
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
130
|
+
# @return [Array<(Deduction, Integer, Hash)>] Deduction data, response status code and response headers
|
131
|
+
def deductions_retrieve_with_http_info(x_account_token, id, opts = {})
|
132
|
+
if @api_client.config.debugging
|
133
|
+
@api_client.config.logger.debug 'Calling API: DeductionsApi.deductions_retrieve ...'
|
134
|
+
end
|
135
|
+
# verify the required parameter 'x_account_token' is set
|
136
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
137
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling DeductionsApi.deductions_retrieve"
|
138
|
+
end
|
139
|
+
# verify the required parameter 'id' is set
|
140
|
+
if @api_client.config.client_side_validation && id.nil?
|
141
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DeductionsApi.deductions_retrieve"
|
142
|
+
end
|
143
|
+
# resource path
|
144
|
+
local_var_path = '/deductions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
145
|
+
|
146
|
+
# query parameters
|
147
|
+
query_params = opts[:query_params] || {}
|
148
|
+
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
149
|
+
|
150
|
+
# header parameters
|
151
|
+
header_params = opts[:header_params] || {}
|
152
|
+
# HTTP header 'Accept' (if needed)
|
153
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
154
|
+
header_params[:'X-Account-Token'] = x_account_token
|
155
|
+
|
156
|
+
# form parameters
|
157
|
+
form_params = opts[:form_params] || {}
|
158
|
+
|
159
|
+
# http body (model)
|
160
|
+
post_body = opts[:debug_body]
|
161
|
+
|
162
|
+
# return_type
|
163
|
+
return_type = opts[:debug_return_type] || 'Deduction'
|
164
|
+
|
165
|
+
# auth_names
|
166
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
167
|
+
|
168
|
+
new_options = opts.merge(
|
169
|
+
:operation => :"DeductionsApi.deductions_retrieve",
|
170
|
+
:header_params => header_params,
|
171
|
+
:query_params => query_params,
|
172
|
+
:form_params => form_params,
|
173
|
+
:body => post_body,
|
174
|
+
:auth_names => auth_names,
|
175
|
+
:return_type => return_type
|
176
|
+
)
|
177
|
+
|
178
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
179
|
+
if @api_client.config.debugging
|
180
|
+
@api_client.config.logger.debug "API called: DeductionsApi#deductions_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
181
|
+
end
|
182
|
+
return data, status_code, headers
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
@@ -25,14 +25,19 @@ 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 [String] :employee_id If provided, will only return
|
28
|
+
# @option opts [String] :employee_id If provided, will only return employee payroll runs for this employee.
|
29
|
+
# @option opts [Time] :ended_after If provided, will only return employee payroll runs ended after this datetime.
|
30
|
+
# @option opts [Time] :ended_before If provided, will only return employee payroll runs ended before this datetime.
|
29
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 in the third-party service.
|
30
33
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
31
34
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
32
35
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
33
36
|
# @option opts [Integer] :page_size Number of results to return per page.
|
34
37
|
# @option opts [String] :payroll_run_id If provided, will only return employee payroll runs for this employee.
|
35
38
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
39
|
+
# @option opts [Time] :started_after If provided, will only return employee payroll runs started after this datetime.
|
40
|
+
# @option opts [Time] :started_before If provided, will only return employee payroll runs started before this datetime.
|
36
41
|
# @return [PaginatedEmployeePayrollRunList]
|
37
42
|
def employee_payroll_runs_list(x_account_token, opts = {})
|
38
43
|
data, _status_code, _headers = employee_payroll_runs_list_with_http_info(x_account_token, opts)
|
@@ -45,14 +50,19 @@ module MergeHRISClient
|
|
45
50
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
46
51
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
47
52
|
# @option opts [String] :cursor The pagination cursor value.
|
48
|
-
# @option opts [String] :employee_id If provided, will only return
|
53
|
+
# @option opts [String] :employee_id If provided, will only return employee payroll runs for this employee.
|
54
|
+
# @option opts [Time] :ended_after If provided, will only return employee payroll runs ended after this datetime.
|
55
|
+
# @option opts [Time] :ended_before If provided, will only return employee payroll runs ended before this datetime.
|
49
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 in the third-party service.
|
50
58
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
51
59
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
52
60
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
53
61
|
# @option opts [Integer] :page_size Number of results to return per page.
|
54
62
|
# @option opts [String] :payroll_run_id If provided, will only return employee payroll runs for this employee.
|
55
63
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
64
|
+
# @option opts [Time] :started_after If provided, will only return employee payroll runs started after this datetime.
|
65
|
+
# @option opts [Time] :started_before If provided, will only return employee payroll runs started before this datetime.
|
56
66
|
# @return [Array<(PaginatedEmployeePayrollRunList, Integer, Hash)>] PaginatedEmployeePayrollRunList data, response status code and response headers
|
57
67
|
def employee_payroll_runs_list_with_http_info(x_account_token, opts = {})
|
58
68
|
if @api_client.config.debugging
|
@@ -75,13 +85,18 @@ module MergeHRISClient
|
|
75
85
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
76
86
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
77
87
|
query_params[:'employee_id'] = opts[:'employee_id'] if !opts[:'employee_id'].nil?
|
88
|
+
query_params[:'ended_after'] = opts[:'ended_after'] if !opts[:'ended_after'].nil?
|
89
|
+
query_params[:'ended_before'] = opts[:'ended_before'] if !opts[:'ended_before'].nil?
|
78
90
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
91
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
79
92
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
80
93
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
81
94
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
82
95
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
83
96
|
query_params[:'payroll_run_id'] = opts[:'payroll_run_id'] if !opts[:'payroll_run_id'].nil?
|
84
97
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
98
|
+
query_params[:'started_after'] = opts[:'started_after'] if !opts[:'started_after'].nil?
|
99
|
+
query_params[:'started_before'] = opts[:'started_before'] if !opts[:'started_before'].nil?
|
85
100
|
|
86
101
|
# header parameters
|
87
102
|
header_params = opts[:header_params] || {}
|
@@ -19,75 +19,6 @@ module MergeHRISClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Creates an `Employee` object with the given values.
|
23
|
-
# @param x_account_token [String] Token identifying the end user.
|
24
|
-
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
26
|
-
# @option opts [EmployeeRequest] :employee_request
|
27
|
-
# @return [Employee]
|
28
|
-
def employees_create(x_account_token, opts = {})
|
29
|
-
data, _status_code, _headers = employees_create_with_http_info(x_account_token, opts)
|
30
|
-
data
|
31
|
-
end
|
32
|
-
|
33
|
-
# Creates an `Employee` object with the given values.
|
34
|
-
# @param x_account_token [String] Token identifying the end user.
|
35
|
-
# @param [Hash] opts the optional parameters
|
36
|
-
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
37
|
-
# @option opts [EmployeeRequest] :employee_request
|
38
|
-
# @return [Array<(Employee, Integer, Hash)>] Employee data, response status code and response headers
|
39
|
-
def employees_create_with_http_info(x_account_token, opts = {})
|
40
|
-
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug 'Calling API: EmployeesApi.employees_create ...'
|
42
|
-
end
|
43
|
-
# verify the required parameter 'x_account_token' is set
|
44
|
-
if @api_client.config.client_side_validation && x_account_token.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling EmployeesApi.employees_create"
|
46
|
-
end
|
47
|
-
# resource path
|
48
|
-
local_var_path = '/employees'
|
49
|
-
|
50
|
-
# query parameters
|
51
|
-
query_params = opts[:query_params] || {}
|
52
|
-
query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
|
53
|
-
|
54
|
-
# header parameters
|
55
|
-
header_params = opts[:header_params] || {}
|
56
|
-
# HTTP header 'Accept' (if needed)
|
57
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
58
|
-
# HTTP header 'Content-Type'
|
59
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
60
|
-
header_params[:'X-Account-Token'] = x_account_token
|
61
|
-
|
62
|
-
# form parameters
|
63
|
-
form_params = opts[:form_params] || {}
|
64
|
-
|
65
|
-
# http body (model)
|
66
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'employee_request'])
|
67
|
-
|
68
|
-
# return_type
|
69
|
-
return_type = opts[:debug_return_type] || 'Employee'
|
70
|
-
|
71
|
-
# auth_names
|
72
|
-
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
73
|
-
|
74
|
-
new_options = opts.merge(
|
75
|
-
:operation => :"EmployeesApi.employees_create",
|
76
|
-
:header_params => header_params,
|
77
|
-
:query_params => query_params,
|
78
|
-
:form_params => form_params,
|
79
|
-
:body => post_body,
|
80
|
-
:auth_names => auth_names,
|
81
|
-
:return_type => return_type
|
82
|
-
)
|
83
|
-
|
84
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
85
|
-
if @api_client.config.debugging
|
86
|
-
@api_client.config.logger.debug "API called: EmployeesApi#employees_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
-
end
|
88
|
-
return data, status_code, headers
|
89
|
-
end
|
90
|
-
|
91
22
|
# Returns a list of `Employee` objects.
|
92
23
|
# @param x_account_token [String] Token identifying the end user.
|
93
24
|
# @param [Hash] opts the optional parameters
|
@@ -96,14 +27,18 @@ module MergeHRISClient
|
|
96
27
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
97
28
|
# @option opts [String] :cursor The pagination cursor value.
|
98
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 in the third-party service.
|
99
31
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
100
|
-
# @option opts [Boolean] :include_sensitive_fields Whether to include
|
32
|
+
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
101
33
|
# @option opts [String] :manager_id If provided, will only return employees for this manager.
|
102
34
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
103
35
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
104
36
|
# @option opts [Integer] :page_size Number of results to return per page.
|
37
|
+
# @option opts [String] :pay_group_id If provided, will only return employees for this pay group
|
38
|
+
# @option opts [String] :personal_email If provided, will only return Employees with this personal email
|
105
39
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
106
40
|
# @option opts [String] :team_id If provided, will only return employees for this team.
|
41
|
+
# @option opts [String] :work_email If provided, will only return Employees with this work email
|
107
42
|
# @option opts [String] :work_location_id If provided, will only return employees for this location.
|
108
43
|
# @return [PaginatedEmployeeList]
|
109
44
|
def employees_list(x_account_token, opts = {})
|
@@ -119,14 +54,18 @@ module MergeHRISClient
|
|
119
54
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
120
55
|
# @option opts [String] :cursor The pagination cursor value.
|
121
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 in the third-party service.
|
122
58
|
# @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 [Boolean] :include_sensitive_fields Whether to include
|
59
|
+
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
124
60
|
# @option opts [String] :manager_id If provided, will only return employees for this manager.
|
125
61
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
126
62
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
127
63
|
# @option opts [Integer] :page_size Number of results to return per page.
|
64
|
+
# @option opts [String] :pay_group_id If provided, will only return employees for this pay group
|
65
|
+
# @option opts [String] :personal_email If provided, will only return Employees with this personal email
|
128
66
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
129
67
|
# @option opts [String] :team_id If provided, will only return employees for this team.
|
68
|
+
# @option opts [String] :work_email If provided, will only return Employees with this work email
|
130
69
|
# @option opts [String] :work_location_id If provided, will only return employees for this location.
|
131
70
|
# @return [Array<(PaginatedEmployeeList, Integer, Hash)>] PaginatedEmployeeList data, response status code and response headers
|
132
71
|
def employees_list_with_http_info(x_account_token, opts = {})
|
@@ -137,7 +76,7 @@ module MergeHRISClient
|
|
137
76
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
138
77
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling EmployeesApi.employees_list"
|
139
78
|
end
|
140
|
-
allowable_values = ["company", "employments", "employments,company", "employments,home_location", "employments,home_location,company", "employments,home_location,manager", "employments,home_location,manager,company", "employments,home_location,manager,team", "employments,home_location,manager,team,company", "employments,home_location,team", "employments,home_location,team,company", "employments,home_location,work_location", "employments,home_location,work_location,company", "employments,home_location,work_location,manager", "employments,home_location,work_location,manager,company", "employments,home_location,work_location,manager,team", "employments,home_location,work_location,manager,team,company", "employments,home_location,work_location,team", "employments,home_location,work_location,team,company", "employments,manager", "employments,manager,company", "employments,manager,team", "employments,manager,team,company", "employments,team", "employments,team,company", "employments,work_location", "employments,work_location,company", "employments,work_location,manager", "employments,work_location,manager,company", "employments,work_location,manager,team", "employments,work_location,manager,team,company", "employments,work_location,team", "employments,work_location,team,company", "home_location", "home_location,company", "home_location,manager", "home_location,manager,company", "home_location,manager,team", "home_location,manager,team,company", "home_location,team", "home_location,team,company", "home_location,work_location", "home_location,work_location,company", "home_location,work_location,manager", "home_location,work_location,manager,company", "home_location,work_location,manager,team", "home_location,work_location,manager,team,company", "home_location,work_location,team", "home_location,work_location,team,company", "manager", "manager,company", "manager,team", "manager,team,company", "team", "team,company", "work_location", "work_location,company", "work_location,manager", "work_location,manager,company", "work_location,manager,team", "work_location,manager,team,company", "work_location,team", "work_location,team,company"]
|
79
|
+
allowable_values = ["company", "company,pay_group", "employments", "employments,company", "employments,company,pay_group", "employments,home_location", "employments,home_location,company", "employments,home_location,company,pay_group", "employments,home_location,manager", "employments,home_location,manager,company", "employments,home_location,manager,company,pay_group", "employments,home_location,manager,pay_group", "employments,home_location,manager,team", "employments,home_location,manager,team,company", "employments,home_location,manager,team,company,pay_group", "employments,home_location,manager,team,pay_group", "employments,home_location,pay_group", "employments,home_location,team", "employments,home_location,team,company", "employments,home_location,team,company,pay_group", "employments,home_location,team,pay_group", "employments,home_location,work_location", "employments,home_location,work_location,company", "employments,home_location,work_location,company,pay_group", "employments,home_location,work_location,manager", "employments,home_location,work_location,manager,company", "employments,home_location,work_location,manager,company,pay_group", "employments,home_location,work_location,manager,pay_group", "employments,home_location,work_location,manager,team", "employments,home_location,work_location,manager,team,company", "employments,home_location,work_location,manager,team,company,pay_group", "employments,home_location,work_location,manager,team,pay_group", "employments,home_location,work_location,pay_group", "employments,home_location,work_location,team", "employments,home_location,work_location,team,company", "employments,home_location,work_location,team,company,pay_group", "employments,home_location,work_location,team,pay_group", "employments,manager", "employments,manager,company", "employments,manager,company,pay_group", "employments,manager,pay_group", "employments,manager,team", "employments,manager,team,company", "employments,manager,team,company,pay_group", "employments,manager,team,pay_group", "employments,pay_group", "employments,team", "employments,team,company", "employments,team,company,pay_group", "employments,team,pay_group", "employments,work_location", "employments,work_location,company", "employments,work_location,company,pay_group", "employments,work_location,manager", "employments,work_location,manager,company", "employments,work_location,manager,company,pay_group", "employments,work_location,manager,pay_group", "employments,work_location,manager,team", "employments,work_location,manager,team,company", "employments,work_location,manager,team,company,pay_group", "employments,work_location,manager,team,pay_group", "employments,work_location,pay_group", "employments,work_location,team", "employments,work_location,team,company", "employments,work_location,team,company,pay_group", "employments,work_location,team,pay_group", "home_location", "home_location,company", "home_location,company,pay_group", "home_location,manager", "home_location,manager,company", "home_location,manager,company,pay_group", "home_location,manager,pay_group", "home_location,manager,team", "home_location,manager,team,company", "home_location,manager,team,company,pay_group", "home_location,manager,team,pay_group", "home_location,pay_group", "home_location,team", "home_location,team,company", "home_location,team,company,pay_group", "home_location,team,pay_group", "home_location,work_location", "home_location,work_location,company", "home_location,work_location,company,pay_group", "home_location,work_location,manager", "home_location,work_location,manager,company", "home_location,work_location,manager,company,pay_group", "home_location,work_location,manager,pay_group", "home_location,work_location,manager,team", "home_location,work_location,manager,team,company", "home_location,work_location,manager,team,company,pay_group", "home_location,work_location,manager,team,pay_group", "home_location,work_location,pay_group", "home_location,work_location,team", "home_location,work_location,team,company", "home_location,work_location,team,company,pay_group", "home_location,work_location,team,pay_group", "manager", "manager,company", "manager,company,pay_group", "manager,pay_group", "manager,team", "manager,team,company", "manager,team,company,pay_group", "manager,team,pay_group", "pay_group", "team", "team,company", "team,company,pay_group", "team,pay_group", "work_location", "work_location,company", "work_location,company,pay_group", "work_location,manager", "work_location,manager,company", "work_location,manager,company,pay_group", "work_location,manager,pay_group", "work_location,manager,team", "work_location,manager,team,company", "work_location,manager,team,company,pay_group", "work_location,manager,team,pay_group", "work_location,pay_group", "work_location,team", "work_location,team,company", "work_location,team,company,pay_group", "work_location,team,pay_group"]
|
141
80
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
142
81
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
143
82
|
end
|
@@ -151,14 +90,18 @@ module MergeHRISClient
|
|
151
90
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
152
91
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
153
92
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
93
|
+
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
154
94
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
155
95
|
query_params[:'include_sensitive_fields'] = opts[:'include_sensitive_fields'] if !opts[:'include_sensitive_fields'].nil?
|
156
96
|
query_params[:'manager_id'] = opts[:'manager_id'] if !opts[:'manager_id'].nil?
|
157
97
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
158
98
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
159
99
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
100
|
+
query_params[:'pay_group_id'] = opts[:'pay_group_id'] if !opts[:'pay_group_id'].nil?
|
101
|
+
query_params[:'personal_email'] = opts[:'personal_email'] if !opts[:'personal_email'].nil?
|
160
102
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
161
103
|
query_params[:'team_id'] = opts[:'team_id'] if !opts[:'team_id'].nil?
|
104
|
+
query_params[:'work_email'] = opts[:'work_email'] if !opts[:'work_email'].nil?
|
162
105
|
query_params[:'work_location_id'] = opts[:'work_location_id'] if !opts[:'work_location_id'].nil?
|
163
106
|
|
164
107
|
# header parameters
|
@@ -202,7 +145,7 @@ module MergeHRISClient
|
|
202
145
|
# @param [Hash] opts the optional parameters
|
203
146
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
204
147
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
205
|
-
# @option opts [Boolean] :include_sensitive_fields Whether to include
|
148
|
+
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
206
149
|
# @return [Employee]
|
207
150
|
def employees_retrieve(x_account_token, id, opts = {})
|
208
151
|
data, _status_code, _headers = employees_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -215,7 +158,7 @@ module MergeHRISClient
|
|
215
158
|
# @param [Hash] opts the optional parameters
|
216
159
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
217
160
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
218
|
-
# @option opts [Boolean] :include_sensitive_fields Whether to include
|
161
|
+
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
219
162
|
# @return [Array<(Employee, Integer, Hash)>] Employee data, response status code and response headers
|
220
163
|
def employees_retrieve_with_http_info(x_account_token, id, opts = {})
|
221
164
|
if @api_client.config.debugging
|
@@ -229,7 +172,7 @@ module MergeHRISClient
|
|
229
172
|
if @api_client.config.client_side_validation && id.nil?
|
230
173
|
fail ArgumentError, "Missing the required parameter 'id' when calling EmployeesApi.employees_retrieve"
|
231
174
|
end
|
232
|
-
allowable_values = ["company", "employments", "employments,company", "employments,home_location", "employments,home_location,company", "employments,home_location,manager", "employments,home_location,manager,company", "employments,home_location,manager,team", "employments,home_location,manager,team,company", "employments,home_location,team", "employments,home_location,team,company", "employments,home_location,work_location", "employments,home_location,work_location,company", "employments,home_location,work_location,manager", "employments,home_location,work_location,manager,company", "employments,home_location,work_location,manager,team", "employments,home_location,work_location,manager,team,company", "employments,home_location,work_location,team", "employments,home_location,work_location,team,company", "employments,manager", "employments,manager,company", "employments,manager,team", "employments,manager,team,company", "employments,team", "employments,team,company", "employments,work_location", "employments,work_location,company", "employments,work_location,manager", "employments,work_location,manager,company", "employments,work_location,manager,team", "employments,work_location,manager,team,company", "employments,work_location,team", "employments,work_location,team,company", "home_location", "home_location,company", "home_location,manager", "home_location,manager,company", "home_location,manager,team", "home_location,manager,team,company", "home_location,team", "home_location,team,company", "home_location,work_location", "home_location,work_location,company", "home_location,work_location,manager", "home_location,work_location,manager,company", "home_location,work_location,manager,team", "home_location,work_location,manager,team,company", "home_location,work_location,team", "home_location,work_location,team,company", "manager", "manager,company", "manager,team", "manager,team,company", "team", "team,company", "work_location", "work_location,company", "work_location,manager", "work_location,manager,company", "work_location,manager,team", "work_location,manager,team,company", "work_location,team", "work_location,team,company"]
|
175
|
+
allowable_values = ["company", "company,pay_group", "employments", "employments,company", "employments,company,pay_group", "employments,home_location", "employments,home_location,company", "employments,home_location,company,pay_group", "employments,home_location,manager", "employments,home_location,manager,company", "employments,home_location,manager,company,pay_group", "employments,home_location,manager,pay_group", "employments,home_location,manager,team", "employments,home_location,manager,team,company", "employments,home_location,manager,team,company,pay_group", "employments,home_location,manager,team,pay_group", "employments,home_location,pay_group", "employments,home_location,team", "employments,home_location,team,company", "employments,home_location,team,company,pay_group", "employments,home_location,team,pay_group", "employments,home_location,work_location", "employments,home_location,work_location,company", "employments,home_location,work_location,company,pay_group", "employments,home_location,work_location,manager", "employments,home_location,work_location,manager,company", "employments,home_location,work_location,manager,company,pay_group", "employments,home_location,work_location,manager,pay_group", "employments,home_location,work_location,manager,team", "employments,home_location,work_location,manager,team,company", "employments,home_location,work_location,manager,team,company,pay_group", "employments,home_location,work_location,manager,team,pay_group", "employments,home_location,work_location,pay_group", "employments,home_location,work_location,team", "employments,home_location,work_location,team,company", "employments,home_location,work_location,team,company,pay_group", "employments,home_location,work_location,team,pay_group", "employments,manager", "employments,manager,company", "employments,manager,company,pay_group", "employments,manager,pay_group", "employments,manager,team", "employments,manager,team,company", "employments,manager,team,company,pay_group", "employments,manager,team,pay_group", "employments,pay_group", "employments,team", "employments,team,company", "employments,team,company,pay_group", "employments,team,pay_group", "employments,work_location", "employments,work_location,company", "employments,work_location,company,pay_group", "employments,work_location,manager", "employments,work_location,manager,company", "employments,work_location,manager,company,pay_group", "employments,work_location,manager,pay_group", "employments,work_location,manager,team", "employments,work_location,manager,team,company", "employments,work_location,manager,team,company,pay_group", "employments,work_location,manager,team,pay_group", "employments,work_location,pay_group", "employments,work_location,team", "employments,work_location,team,company", "employments,work_location,team,company,pay_group", "employments,work_location,team,pay_group", "home_location", "home_location,company", "home_location,company,pay_group", "home_location,manager", "home_location,manager,company", "home_location,manager,company,pay_group", "home_location,manager,pay_group", "home_location,manager,team", "home_location,manager,team,company", "home_location,manager,team,company,pay_group", "home_location,manager,team,pay_group", "home_location,pay_group", "home_location,team", "home_location,team,company", "home_location,team,company,pay_group", "home_location,team,pay_group", "home_location,work_location", "home_location,work_location,company", "home_location,work_location,company,pay_group", "home_location,work_location,manager", "home_location,work_location,manager,company", "home_location,work_location,manager,company,pay_group", "home_location,work_location,manager,pay_group", "home_location,work_location,manager,team", "home_location,work_location,manager,team,company", "home_location,work_location,manager,team,company,pay_group", "home_location,work_location,manager,team,pay_group", "home_location,work_location,pay_group", "home_location,work_location,team", "home_location,work_location,team,company", "home_location,work_location,team,company,pay_group", "home_location,work_location,team,pay_group", "manager", "manager,company", "manager,company,pay_group", "manager,pay_group", "manager,team", "manager,team,company", "manager,team,company,pay_group", "manager,team,pay_group", "pay_group", "team", "team,company", "team,company,pay_group", "team,pay_group", "work_location", "work_location,company", "work_location,company,pay_group", "work_location,manager", "work_location,manager,company", "work_location,manager,company,pay_group", "work_location,manager,pay_group", "work_location,manager,team", "work_location,manager,team,company", "work_location,manager,team,company,pay_group", "work_location,manager,team,pay_group", "work_location,pay_group", "work_location,team", "work_location,team,company", "work_location,team,company,pay_group", "work_location,team,pay_group"]
|
233
176
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
234
177
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
235
178
|
end
|