merge_hris_client 2.0.0 → 2.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 +14 -5
- data/docs/AccountDetails.md +5 -1
- data/docs/AccountDetailsAndActions.md +2 -0
- data/docs/AccountDetailsApi.md +8 -5
- data/docs/BankInfo.md +3 -1
- data/docs/Benefit.md +3 -1
- data/docs/Company.md +5 -3
- data/docs/DataPassthroughRequest.md +1 -1
- data/docs/Deduction.md +3 -1
- data/docs/Earning.md +4 -2
- data/docs/Employee.md +11 -9
- data/docs/EmployeePayrollRun.md +3 -1
- data/docs/EmployeeRequest.md +8 -8
- data/docs/EmployeesApi.md +86 -4
- data/docs/Employment.md +8 -4
- data/docs/EndUserDetailsRequest.md +3 -3
- data/docs/ForceResyncApi.md +4 -4
- data/docs/Group.md +3 -1
- data/docs/IssuesApi.md +8 -0
- data/docs/LinkTokenApi.md +1 -1
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +14 -14
- data/docs/Location.md +5 -3
- data/docs/MetaResponse.md +24 -0
- data/docs/PayGroup.md +3 -1
- data/docs/PayrollRun.md +3 -1
- data/docs/Tax.md +4 -2
- data/docs/Team.md +3 -1
- data/docs/TimeOff.md +5 -3
- data/docs/TimeOffApi.md +72 -0
- data/docs/TimeOffBalance.md +4 -2
- data/docs/TimeOffRequest.md +2 -2
- data/docs/WebhookReceiver.md +22 -0
- data/docs/WebhookReceiverRequest.md +22 -0
- data/docs/WebhookReceiversApi.md +153 -0
- data/lib/merge_hris_client/api/account_details_api.rb +10 -3
- data/lib/merge_hris_client/api/bank_info_api.rb +0 -1
- data/lib/merge_hris_client/api/employees_api.rb +88 -3
- data/lib/merge_hris_client/api/employments_api.rb +2 -2
- data/lib/merge_hris_client/api/force_resync_api.rb +3 -3
- data/lib/merge_hris_client/api/issues_api.rb +12 -0
- data/lib/merge_hris_client/api/linked_accounts_api.rb +15 -15
- data/lib/merge_hris_client/api/time_off_api.rb +62 -0
- data/lib/merge_hris_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_hris_client/models/account_details.rb +22 -4
- data/lib/merge_hris_client/models/account_details_and_actions.rb +15 -1
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/account_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/bank_info.rb +15 -5
- data/lib/merge_hris_client/models/benefit.rb +15 -5
- data/lib/merge_hris_client/models/categories_enum.rb +2 -1
- data/lib/merge_hris_client/models/category_enum.rb +2 -1
- data/lib/merge_hris_client/models/company.rb +16 -6
- data/lib/merge_hris_client/models/country_enum.rb +0 -1
- data/lib/merge_hris_client/models/data_passthrough_request.rb +1 -0
- data/lib/merge_hris_client/models/deduction.rb +15 -5
- data/lib/merge_hris_client/models/earning.rb +18 -5
- data/lib/merge_hris_client/models/earning_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/employee.rb +15 -6
- data/lib/merge_hris_client/models/employee_payroll_run.rb +15 -5
- data/lib/merge_hris_client/models/employee_request.rb +1 -1
- data/lib/merge_hris_client/models/employment.rb +26 -6
- data/lib/merge_hris_client/models/employment_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/employment_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/encoding_enum.rb +0 -1
- data/lib/merge_hris_client/models/end_user_details_request.rb +34 -0
- data/lib/merge_hris_client/models/ethnicity_enum.rb +0 -1
- data/lib/merge_hris_client/models/flsa_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/gender_enum.rb +0 -1
- data/lib/merge_hris_client/models/group.rb +16 -6
- data/lib/merge_hris_client/models/group_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/issue_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/{data_passthrough.rb → linked_account_status.rb} +24 -49
- data/lib/merge_hris_client/models/location.rb +16 -6
- data/lib/merge_hris_client/models/location_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/marital_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/meta_response.rb +262 -0
- data/lib/merge_hris_client/models/method_enum.rb +0 -1
- data/lib/merge_hris_client/models/pay_currency_enum.rb +0 -1
- data/lib/merge_hris_client/models/pay_frequency_enum.rb +0 -1
- data/lib/merge_hris_client/models/pay_group.rb +15 -5
- data/lib/merge_hris_client/models/pay_period_enum.rb +0 -1
- data/lib/merge_hris_client/models/payroll_run.rb +16 -6
- data/lib/merge_hris_client/models/policy_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/reason_enum.rb +0 -1
- data/lib/merge_hris_client/models/request_format_enum.rb +0 -1
- data/lib/merge_hris_client/models/request_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/run_state_enum.rb +0 -1
- data/lib/merge_hris_client/models/run_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/tax.rb +18 -5
- data/lib/merge_hris_client/models/team.rb +15 -5
- data/lib/merge_hris_client/models/time_off.rb +14 -5
- data/lib/merge_hris_client/models/time_off_balance.rb +16 -6
- data/lib/merge_hris_client/models/time_off_status_enum.rb +0 -1
- data/lib/merge_hris_client/models/units_enum.rb +0 -1
- data/lib/merge_hris_client/models/{remote_key_for_regeneration.rb → webhook_receiver.rb} +38 -16
- data/lib/merge_hris_client/models/{end_user_details.rb → webhook_receiver_request.rb} +60 -69
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +5 -0
- data/spec/api/account_details_api_spec.rb +1 -0
- data/spec/api/employees_api_spec.rb +16 -0
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/issues_api_spec.rb +4 -0
- data/spec/api/linked_accounts_api_spec.rb +7 -7
- data/spec/api/time_off_api_spec.rb +11 -0
- data/spec/api/webhook_receivers_api_spec.rb +58 -0
- data/spec/models/account_details_and_actions_spec.rb +6 -0
- data/spec/models/account_details_spec.rb +12 -0
- data/spec/models/bank_info_spec.rb +6 -0
- data/spec/models/benefit_spec.rb +6 -0
- data/spec/models/company_spec.rb +6 -0
- data/spec/models/deduction_spec.rb +6 -0
- data/spec/models/earning_spec.rb +6 -0
- data/spec/models/employee_payroll_run_spec.rb +6 -0
- data/spec/models/employee_spec.rb +6 -0
- data/spec/models/employment_spec.rb +12 -0
- data/spec/models/group_spec.rb +6 -0
- data/spec/models/linked_account_status_spec.rb +40 -0
- data/spec/models/location_spec.rb +6 -0
- data/spec/models/meta_response_spec.rb +52 -0
- data/spec/models/pay_group_spec.rb +6 -0
- data/spec/models/payroll_run_spec.rb +6 -0
- data/spec/models/tax_spec.rb +6 -0
- data/spec/models/team_spec.rb +6 -0
- data/spec/models/time_off_balance_spec.rb +6 -0
- data/spec/models/time_off_spec.rb +6 -0
- data/spec/models/webhook_receiver_request_spec.rb +46 -0
- data/spec/models/webhook_receiver_spec.rb +46 -0
- metadata +118 -112
- data/docs/BenefitPlanTypeEnum.md +0 -15
- data/docs/TypeEnum.md +0 -15
- data/lib/merge_hris_client/api/time_off_balance_api.rb +0 -196
- data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +0 -56
- data/lib/merge_hris_client/models/state_enum.rb +0 -93
- data/lib/merge_hris_client/models/type_enum.rb +0 -38
- data/spec/models/benefit_plan_type_enum_spec.rb +0 -28
- data/spec/models/type_enum_spec.rb +0 -28
- data/test_ruby.rb +0 -30
@@ -20,20 +20,26 @@ module MergeHRISClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Get details for a linked account.
|
23
|
+
# @param x_account_token [String] Token identifying the end user.
|
23
24
|
# @param [Hash] opts the optional parameters
|
24
25
|
# @return [AccountDetails]
|
25
|
-
def account_details_retrieve(opts = {})
|
26
|
-
data, _status_code, _headers = account_details_retrieve_with_http_info(opts)
|
26
|
+
def account_details_retrieve(x_account_token, opts = {})
|
27
|
+
data, _status_code, _headers = account_details_retrieve_with_http_info(x_account_token, opts)
|
27
28
|
data
|
28
29
|
end
|
29
30
|
|
30
31
|
# Get details for a linked account.
|
32
|
+
# @param x_account_token [String] Token identifying the end user.
|
31
33
|
# @param [Hash] opts the optional parameters
|
32
34
|
# @return [Array<(AccountDetails, Integer, Hash)>] AccountDetails data, response status code and response headers
|
33
|
-
def account_details_retrieve_with_http_info(opts = {})
|
35
|
+
def account_details_retrieve_with_http_info(x_account_token, opts = {})
|
34
36
|
if @api_client.config.debugging
|
35
37
|
@api_client.config.logger.debug 'Calling API: AccountDetailsApi.account_details_retrieve ...'
|
36
38
|
end
|
39
|
+
# verify the required parameter 'x_account_token' is set
|
40
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling AccountDetailsApi.account_details_retrieve"
|
42
|
+
end
|
37
43
|
# resource path
|
38
44
|
local_var_path = '/account-details'
|
39
45
|
|
@@ -44,6 +50,7 @@ module MergeHRISClient
|
|
44
50
|
header_params = opts[:header_params] || {}
|
45
51
|
# HTTP header 'Accept' (if needed)
|
46
52
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
header_params[:'X-Account-Token'] = x_account_token
|
47
54
|
|
48
55
|
# form parameters
|
49
56
|
form_params = opts[:form_params] || {}
|
@@ -90,7 +90,6 @@ module MergeHRISClient
|
|
90
90
|
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
91
91
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
92
92
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
93
|
-
query_params[:'employee'] = opts[:'employee'] if !opts[:'employee'].nil?
|
94
93
|
query_params[:'employee_id'] = opts[:'employee_id'] if !opts[:'employee_id'].nil?
|
95
94
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
96
95
|
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
@@ -96,24 +96,30 @@ module MergeHRISClient
|
|
96
96
|
end
|
97
97
|
|
98
98
|
# Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The \"reason\" and \"message\" fields in the request body will be stored for audit purposes.
|
99
|
+
# @param x_account_token [String] Token identifying the end user.
|
99
100
|
# @param model_id [String]
|
100
101
|
# @param ignore_common_model_request [IgnoreCommonModelRequest]
|
101
102
|
# @param [Hash] opts the optional parameters
|
102
103
|
# @return [IgnoreCommonModel]
|
103
|
-
def employees_ignore_create(model_id, ignore_common_model_request, opts = {})
|
104
|
-
data, _status_code, _headers = employees_ignore_create_with_http_info(model_id, ignore_common_model_request, opts)
|
104
|
+
def employees_ignore_create(x_account_token, model_id, ignore_common_model_request, opts = {})
|
105
|
+
data, _status_code, _headers = employees_ignore_create_with_http_info(x_account_token, model_id, ignore_common_model_request, opts)
|
105
106
|
data
|
106
107
|
end
|
107
108
|
|
108
109
|
# Ignores a specific row based on the `model_id` in the url. These records will have their properties set to null, and will not be updated in future syncs. The \"reason\" and \"message\" fields in the request body will be stored for audit purposes.
|
110
|
+
# @param x_account_token [String] Token identifying the end user.
|
109
111
|
# @param model_id [String]
|
110
112
|
# @param ignore_common_model_request [IgnoreCommonModelRequest]
|
111
113
|
# @param [Hash] opts the optional parameters
|
112
114
|
# @return [Array<(IgnoreCommonModel, Integer, Hash)>] IgnoreCommonModel data, response status code and response headers
|
113
|
-
def employees_ignore_create_with_http_info(model_id, ignore_common_model_request, opts = {})
|
115
|
+
def employees_ignore_create_with_http_info(x_account_token, model_id, ignore_common_model_request, opts = {})
|
114
116
|
if @api_client.config.debugging
|
115
117
|
@api_client.config.logger.debug 'Calling API: EmployeesApi.employees_ignore_create ...'
|
116
118
|
end
|
119
|
+
# verify the required parameter 'x_account_token' is set
|
120
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling EmployeesApi.employees_ignore_create"
|
122
|
+
end
|
117
123
|
# verify the required parameter 'model_id' is set
|
118
124
|
if @api_client.config.client_side_validation && model_id.nil?
|
119
125
|
fail ArgumentError, "Missing the required parameter 'model_id' when calling EmployeesApi.employees_ignore_create"
|
@@ -134,6 +140,7 @@ module MergeHRISClient
|
|
134
140
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
135
141
|
# HTTP header 'Content-Type'
|
136
142
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
143
|
+
header_params[:'X-Account-Token'] = x_account_token
|
137
144
|
|
138
145
|
# form parameters
|
139
146
|
form_params = opts[:form_params] || {}
|
@@ -171,10 +178,14 @@ module MergeHRISClient
|
|
171
178
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
172
179
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
173
180
|
# @option opts [String] :cursor The pagination cursor value.
|
181
|
+
# @option opts [String] :display_full_name If provided, will only return employees with this display name.
|
182
|
+
# @option opts [String] :employment_status If provided, will only return employees with this employment status.
|
174
183
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
184
|
+
# @option opts [String] :first_name If provided, will only return employees with this first name.
|
175
185
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
176
186
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
177
187
|
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
188
|
+
# @option opts [String] :last_name If provided, will only return employees with this last name.
|
178
189
|
# @option opts [String] :manager_id If provided, will only return employees for this manager.
|
179
190
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
180
191
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -198,10 +209,14 @@ module MergeHRISClient
|
|
198
209
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
199
210
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
200
211
|
# @option opts [String] :cursor The pagination cursor value.
|
212
|
+
# @option opts [String] :display_full_name If provided, will only return employees with this display name.
|
213
|
+
# @option opts [String] :employment_status If provided, will only return employees with this employment status.
|
201
214
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
215
|
+
# @option opts [String] :first_name If provided, will only return employees with this first name.
|
202
216
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
203
217
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
204
218
|
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
219
|
+
# @option opts [String] :last_name If provided, will only return employees with this last name.
|
205
220
|
# @option opts [String] :manager_id If provided, will only return employees for this manager.
|
206
221
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
207
222
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
@@ -221,6 +236,10 @@ module MergeHRISClient
|
|
221
236
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
222
237
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling EmployeesApi.employees_list"
|
223
238
|
end
|
239
|
+
allowable_values = ["ACTIVE", "INACTIVE", "PENDING"]
|
240
|
+
if @api_client.config.client_side_validation && opts[:'employment_status'] && !allowable_values.include?(opts[:'employment_status'])
|
241
|
+
fail ArgumentError, "invalid value for \"employment_status\", must be one of #{allowable_values}"
|
242
|
+
end
|
224
243
|
allowable_values = ["company", "company,pay_group", "employments", "employments,company", "employments,company,pay_group", "employments,groups", "employments,groups,company", "employments,groups,company,pay_group", "employments,groups,home_location", "employments,groups,home_location,company", "employments,groups,home_location,company,pay_group", "employments,groups,home_location,manager", "employments,groups,home_location,manager,company", "employments,groups,home_location,manager,company,pay_group", "employments,groups,home_location,manager,pay_group", "employments,groups,home_location,manager,team", "employments,groups,home_location,manager,team,company", "employments,groups,home_location,manager,team,company,pay_group", "employments,groups,home_location,manager,team,pay_group", "employments,groups,home_location,pay_group", "employments,groups,home_location,team", "employments,groups,home_location,team,company", "employments,groups,home_location,team,company,pay_group", "employments,groups,home_location,team,pay_group", "employments,groups,home_location,work_location", "employments,groups,home_location,work_location,company", "employments,groups,home_location,work_location,company,pay_group", "employments,groups,home_location,work_location,manager", "employments,groups,home_location,work_location,manager,company", "employments,groups,home_location,work_location,manager,company,pay_group", "employments,groups,home_location,work_location,manager,pay_group", "employments,groups,home_location,work_location,manager,team", "employments,groups,home_location,work_location,manager,team,company", "employments,groups,home_location,work_location,manager,team,company,pay_group", "employments,groups,home_location,work_location,manager,team,pay_group", "employments,groups,home_location,work_location,pay_group", "employments,groups,home_location,work_location,team", "employments,groups,home_location,work_location,team,company", "employments,groups,home_location,work_location,team,company,pay_group", "employments,groups,home_location,work_location,team,pay_group", "employments,groups,manager", "employments,groups,manager,company", "employments,groups,manager,company,pay_group", "employments,groups,manager,pay_group", "employments,groups,manager,team", "employments,groups,manager,team,company", "employments,groups,manager,team,company,pay_group", "employments,groups,manager,team,pay_group", "employments,groups,pay_group", "employments,groups,team", "employments,groups,team,company", "employments,groups,team,company,pay_group", "employments,groups,team,pay_group", "employments,groups,work_location", "employments,groups,work_location,company", "employments,groups,work_location,company,pay_group", "employments,groups,work_location,manager", "employments,groups,work_location,manager,company", "employments,groups,work_location,manager,company,pay_group", "employments,groups,work_location,manager,pay_group", "employments,groups,work_location,manager,team", "employments,groups,work_location,manager,team,company", "employments,groups,work_location,manager,team,company,pay_group", "employments,groups,work_location,manager,team,pay_group", "employments,groups,work_location,pay_group", "employments,groups,work_location,team", "employments,groups,work_location,team,company", "employments,groups,work_location,team,company,pay_group", "employments,groups,work_location,team,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", "groups", "groups,company", "groups,company,pay_group", "groups,home_location", "groups,home_location,company", "groups,home_location,company,pay_group", "groups,home_location,manager", "groups,home_location,manager,company", "groups,home_location,manager,company,pay_group", "groups,home_location,manager,pay_group", "groups,home_location,manager,team", "groups,home_location,manager,team,company", "groups,home_location,manager,team,company,pay_group", "groups,home_location,manager,team,pay_group", "groups,home_location,pay_group", "groups,home_location,team", "groups,home_location,team,company", "groups,home_location,team,company,pay_group", "groups,home_location,team,pay_group", "groups,home_location,work_location", "groups,home_location,work_location,company", "groups,home_location,work_location,company,pay_group", "groups,home_location,work_location,manager", "groups,home_location,work_location,manager,company", "groups,home_location,work_location,manager,company,pay_group", "groups,home_location,work_location,manager,pay_group", "groups,home_location,work_location,manager,team", "groups,home_location,work_location,manager,team,company", "groups,home_location,work_location,manager,team,company,pay_group", "groups,home_location,work_location,manager,team,pay_group", "groups,home_location,work_location,pay_group", "groups,home_location,work_location,team", "groups,home_location,work_location,team,company", "groups,home_location,work_location,team,company,pay_group", "groups,home_location,work_location,team,pay_group", "groups,manager", "groups,manager,company", "groups,manager,company,pay_group", "groups,manager,pay_group", "groups,manager,team", "groups,manager,team,company", "groups,manager,team,company,pay_group", "groups,manager,team,pay_group", "groups,pay_group", "groups,team", "groups,team,company", "groups,team,company,pay_group", "groups,team,pay_group", "groups,work_location", "groups,work_location,company", "groups,work_location,company,pay_group", "groups,work_location,manager", "groups,work_location,manager,company", "groups,work_location,manager,company,pay_group", "groups,work_location,manager,pay_group", "groups,work_location,manager,team", "groups,work_location,manager,team,company", "groups,work_location,manager,team,company,pay_group", "groups,work_location,manager,team,pay_group", "groups,work_location,pay_group", "groups,work_location,team", "groups,work_location,team,company", "groups,work_location,team,company,pay_group", "groups,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"]
|
225
244
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
226
245
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
@@ -234,10 +253,14 @@ module MergeHRISClient
|
|
234
253
|
query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
|
235
254
|
query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
|
236
255
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
256
|
+
query_params[:'display_full_name'] = opts[:'display_full_name'] if !opts[:'display_full_name'].nil?
|
257
|
+
query_params[:'employment_status'] = opts[:'employment_status'] if !opts[:'employment_status'].nil?
|
237
258
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
259
|
+
query_params[:'first_name'] = opts[:'first_name'] if !opts[:'first_name'].nil?
|
238
260
|
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
239
261
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
240
262
|
query_params[:'include_sensitive_fields'] = opts[:'include_sensitive_fields'] if !opts[:'include_sensitive_fields'].nil?
|
263
|
+
query_params[:'last_name'] = opts[:'last_name'] if !opts[:'last_name'].nil?
|
241
264
|
query_params[:'manager_id'] = opts[:'manager_id'] if !opts[:'manager_id'].nil?
|
242
265
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
243
266
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
@@ -284,6 +307,68 @@ module MergeHRISClient
|
|
284
307
|
return data, status_code, headers
|
285
308
|
end
|
286
309
|
|
310
|
+
# Returns metadata for `Employee` POSTs.
|
311
|
+
# @param x_account_token [String] Token identifying the end user.
|
312
|
+
# @param [Hash] opts the optional parameters
|
313
|
+
# @return [MetaResponse]
|
314
|
+
def employees_meta_post_retrieve(x_account_token, opts = {})
|
315
|
+
data, _status_code, _headers = employees_meta_post_retrieve_with_http_info(x_account_token, opts)
|
316
|
+
data
|
317
|
+
end
|
318
|
+
|
319
|
+
# Returns metadata for `Employee` POSTs.
|
320
|
+
# @param x_account_token [String] Token identifying the end user.
|
321
|
+
# @param [Hash] opts the optional parameters
|
322
|
+
# @return [Array<(MetaResponse, Integer, Hash)>] MetaResponse data, response status code and response headers
|
323
|
+
def employees_meta_post_retrieve_with_http_info(x_account_token, opts = {})
|
324
|
+
if @api_client.config.debugging
|
325
|
+
@api_client.config.logger.debug 'Calling API: EmployeesApi.employees_meta_post_retrieve ...'
|
326
|
+
end
|
327
|
+
# verify the required parameter 'x_account_token' is set
|
328
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
329
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling EmployeesApi.employees_meta_post_retrieve"
|
330
|
+
end
|
331
|
+
# resource path
|
332
|
+
local_var_path = '/employees/meta/post'
|
333
|
+
|
334
|
+
# query parameters
|
335
|
+
query_params = opts[:query_params] || {}
|
336
|
+
|
337
|
+
# header parameters
|
338
|
+
header_params = opts[:header_params] || {}
|
339
|
+
# HTTP header 'Accept' (if needed)
|
340
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
341
|
+
header_params[:'X-Account-Token'] = x_account_token
|
342
|
+
|
343
|
+
# form parameters
|
344
|
+
form_params = opts[:form_params] || {}
|
345
|
+
|
346
|
+
# http body (model)
|
347
|
+
post_body = opts[:debug_body]
|
348
|
+
|
349
|
+
# return_type
|
350
|
+
return_type = opts[:debug_return_type] || 'MetaResponse'
|
351
|
+
|
352
|
+
# auth_names
|
353
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
354
|
+
|
355
|
+
new_options = opts.merge(
|
356
|
+
:operation => :"EmployeesApi.employees_meta_post_retrieve",
|
357
|
+
:header_params => header_params,
|
358
|
+
:query_params => query_params,
|
359
|
+
:form_params => form_params,
|
360
|
+
:body => post_body,
|
361
|
+
:auth_names => auth_names,
|
362
|
+
:return_type => return_type
|
363
|
+
)
|
364
|
+
|
365
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
366
|
+
if @api_client.config.debugging
|
367
|
+
@api_client.config.logger.debug "API called: EmployeesApi#employees_meta_post_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
368
|
+
end
|
369
|
+
return data, status_code, headers
|
370
|
+
end
|
371
|
+
|
287
372
|
# Returns an `Employee` object with the given `id`.
|
288
373
|
# @param x_account_token [String] Token identifying the end user.
|
289
374
|
# @param id [String]
|
@@ -64,7 +64,7 @@ module MergeHRISClient
|
|
64
64
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
65
65
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling EmploymentsApi.employments_list"
|
66
66
|
end
|
67
|
-
allowable_values = ["employee"]
|
67
|
+
allowable_values = ["employee", "employee,pay_group", "pay_group"]
|
68
68
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
69
69
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
70
70
|
end
|
@@ -156,7 +156,7 @@ module MergeHRISClient
|
|
156
156
|
if @api_client.config.client_side_validation && id.nil?
|
157
157
|
fail ArgumentError, "Missing the required parameter 'id' when calling EmploymentsApi.employments_retrieve"
|
158
158
|
end
|
159
|
-
allowable_values = ["employee"]
|
159
|
+
allowable_values = ["employee", "employee,pay_group", "pay_group"]
|
160
160
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
161
161
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
162
162
|
end
|
@@ -22,7 +22,7 @@ module MergeHRISClient
|
|
22
22
|
# Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
|
23
23
|
# @param x_account_token [String] Token identifying the end user.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @return [SyncStatus]
|
25
|
+
# @return [Array<SyncStatus>]
|
26
26
|
def sync_status_resync_create(x_account_token, opts = {})
|
27
27
|
data, _status_code, _headers = sync_status_resync_create_with_http_info(x_account_token, opts)
|
28
28
|
data
|
@@ -31,7 +31,7 @@ module MergeHRISClient
|
|
31
31
|
# Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
|
32
32
|
# @param x_account_token [String] Token identifying the end user.
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
|
-
# @return [Array<(SyncStatus
|
34
|
+
# @return [Array<(Array<SyncStatus>, Integer, Hash)>] Array<SyncStatus> data, response status code and response headers
|
35
35
|
def sync_status_resync_create_with_http_info(x_account_token, opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
37
|
@api_client.config.logger.debug 'Calling API: ForceResyncApi.sync_status_resync_create ...'
|
@@ -59,7 +59,7 @@ module MergeHRISClient
|
|
59
59
|
post_body = opts[:debug_body]
|
60
60
|
|
61
61
|
# return_type
|
62
|
-
return_type = opts[:debug_return_type] || 'SyncStatus'
|
62
|
+
return_type = opts[:debug_return_type] || 'Array<SyncStatus>'
|
63
63
|
|
64
64
|
# auth_names
|
65
65
|
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
@@ -25,8 +25,12 @@ module MergeHRISClient
|
|
25
25
|
# @option opts [String] :cursor The pagination cursor value.
|
26
26
|
# @option opts [String] :end_date If included, will only include issues whose most recent action occurred before this time
|
27
27
|
# @option opts [String] :end_user_organization_name
|
28
|
+
# @option opts [Time] :first_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
|
29
|
+
# @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
28
30
|
# @option opts [String] :include_muted If True, will include muted issues
|
29
31
|
# @option opts [String] :integration_name
|
32
|
+
# @option opts [Time] :last_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
|
33
|
+
# @option opts [Time] :last_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
30
34
|
# @option opts [Integer] :page_size Number of results to return per page.
|
31
35
|
# @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
|
32
36
|
# @option opts [String] :status
|
@@ -42,8 +46,12 @@ module MergeHRISClient
|
|
42
46
|
# @option opts [String] :cursor The pagination cursor value.
|
43
47
|
# @option opts [String] :end_date If included, will only include issues whose most recent action occurred before this time
|
44
48
|
# @option opts [String] :end_user_organization_name
|
49
|
+
# @option opts [Time] :first_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
|
50
|
+
# @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
45
51
|
# @option opts [String] :include_muted If True, will include muted issues
|
46
52
|
# @option opts [String] :integration_name
|
53
|
+
# @option opts [Time] :last_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
|
54
|
+
# @option opts [Time] :last_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
47
55
|
# @option opts [Integer] :page_size Number of results to return per page.
|
48
56
|
# @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
|
49
57
|
# @option opts [String] :status
|
@@ -65,8 +73,12 @@ module MergeHRISClient
|
|
65
73
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
66
74
|
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
67
75
|
query_params[:'end_user_organization_name'] = opts[:'end_user_organization_name'] if !opts[:'end_user_organization_name'].nil?
|
76
|
+
query_params[:'first_incident_time_after'] = opts[:'first_incident_time_after'] if !opts[:'first_incident_time_after'].nil?
|
77
|
+
query_params[:'first_incident_time_before'] = opts[:'first_incident_time_before'] if !opts[:'first_incident_time_before'].nil?
|
68
78
|
query_params[:'include_muted'] = opts[:'include_muted'] if !opts[:'include_muted'].nil?
|
69
79
|
query_params[:'integration_name'] = opts[:'integration_name'] if !opts[:'integration_name'].nil?
|
80
|
+
query_params[:'last_incident_time_after'] = opts[:'last_incident_time_after'] if !opts[:'last_incident_time_after'].nil?
|
81
|
+
query_params[:'last_incident_time_before'] = opts[:'last_incident_time_before'] if !opts[:'last_incident_time_before'].nil?
|
70
82
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
71
83
|
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
72
84
|
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
@@ -23,14 +23,14 @@ module MergeHRISClient
|
|
23
23
|
# @param [Hash] opts the optional parameters
|
24
24
|
# @option opts [String] :category
|
25
25
|
# @option opts [String] :cursor The pagination cursor value.
|
26
|
-
# @option opts [String] :end_user_email_address
|
27
|
-
# @option opts [String] :end_user_organization_name
|
28
|
-
# @option opts [String] :end_user_origin_id
|
29
|
-
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once
|
26
|
+
# @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
|
27
|
+
# @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
|
28
|
+
# @option opts [String] :end_user_origin_id If provided, will only return linked accounts associated with the given origin ID.
|
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
|
-
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once
|
32
|
-
# @option opts [String] :integration_name
|
33
|
-
# @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts
|
31
|
+
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
|
32
|
+
# @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
|
33
|
+
# @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
34
|
# @option opts [Integer] :page_size Number of results to return per page.
|
35
35
|
# @option opts [String] :status Filter by status. Options: `COMPLETE`, `INCOMPLETE`, `RELINK_NEEDED`
|
36
36
|
# @return [PaginatedAccountDetailsAndActionsList]
|
@@ -43,14 +43,14 @@ module MergeHRISClient
|
|
43
43
|
# @param [Hash] opts the optional parameters
|
44
44
|
# @option opts [String] :category
|
45
45
|
# @option opts [String] :cursor The pagination cursor value.
|
46
|
-
# @option opts [String] :end_user_email_address
|
47
|
-
# @option opts [String] :end_user_organization_name
|
48
|
-
# @option opts [String] :end_user_origin_id
|
49
|
-
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once
|
46
|
+
# @option opts [String] :end_user_email_address If provided, will only return linked accounts associated with the given email address.
|
47
|
+
# @option opts [String] :end_user_organization_name If provided, will only return linked accounts associated with the given organization name.
|
48
|
+
# @option opts [String] :end_user_origin_id If provided, will only return linked accounts associated with the given origin ID.
|
49
|
+
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once.
|
50
50
|
# @option opts [String] :id
|
51
|
-
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once
|
52
|
-
# @option opts [String] :integration_name
|
53
|
-
# @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts
|
51
|
+
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once.
|
52
|
+
# @option opts [String] :integration_name If provided, will only return linked accounts associated with the given integration name.
|
53
|
+
# @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
54
|
# @option opts [Integer] :page_size Number of results to return per page.
|
55
55
|
# @option opts [String] :status Filter by status. Options: `COMPLETE`, `INCOMPLETE`, `RELINK_NEEDED`
|
56
56
|
# @return [Array<(PaginatedAccountDetailsAndActionsList, Integer, Hash)>] PaginatedAccountDetailsAndActionsList data, response status code and response headers
|
@@ -58,7 +58,7 @@ module MergeHRISClient
|
|
58
58
|
if @api_client.config.debugging
|
59
59
|
@api_client.config.logger.debug 'Calling API: LinkedAccountsApi.linked_accounts_list ...'
|
60
60
|
end
|
61
|
-
allowable_values = ["accounting", "ats", "hris"]
|
61
|
+
allowable_values = ["accounting", "ats", "crm", "hris", "ticketing"]
|
62
62
|
if @api_client.config.client_side_validation && opts[:'category'] && !allowable_values.include?(opts[:'category'])
|
63
63
|
fail ArgumentError, "invalid value for \"category\", must be one of #{allowable_values}"
|
64
64
|
end
|
@@ -211,6 +211,68 @@ module MergeHRISClient
|
|
211
211
|
return data, status_code, headers
|
212
212
|
end
|
213
213
|
|
214
|
+
# Returns metadata for `TimeOff` POSTs.
|
215
|
+
# @param x_account_token [String] Token identifying the end user.
|
216
|
+
# @param [Hash] opts the optional parameters
|
217
|
+
# @return [MetaResponse]
|
218
|
+
def time_off_meta_post_retrieve(x_account_token, opts = {})
|
219
|
+
data, _status_code, _headers = time_off_meta_post_retrieve_with_http_info(x_account_token, opts)
|
220
|
+
data
|
221
|
+
end
|
222
|
+
|
223
|
+
# Returns metadata for `TimeOff` POSTs.
|
224
|
+
# @param x_account_token [String] Token identifying the end user.
|
225
|
+
# @param [Hash] opts the optional parameters
|
226
|
+
# @return [Array<(MetaResponse, Integer, Hash)>] MetaResponse data, response status code and response headers
|
227
|
+
def time_off_meta_post_retrieve_with_http_info(x_account_token, opts = {})
|
228
|
+
if @api_client.config.debugging
|
229
|
+
@api_client.config.logger.debug 'Calling API: TimeOffApi.time_off_meta_post_retrieve ...'
|
230
|
+
end
|
231
|
+
# verify the required parameter 'x_account_token' is set
|
232
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
233
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling TimeOffApi.time_off_meta_post_retrieve"
|
234
|
+
end
|
235
|
+
# resource path
|
236
|
+
local_var_path = '/time-off/meta/post'
|
237
|
+
|
238
|
+
# query parameters
|
239
|
+
query_params = opts[:query_params] || {}
|
240
|
+
|
241
|
+
# header parameters
|
242
|
+
header_params = opts[:header_params] || {}
|
243
|
+
# HTTP header 'Accept' (if needed)
|
244
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
245
|
+
header_params[:'X-Account-Token'] = x_account_token
|
246
|
+
|
247
|
+
# form parameters
|
248
|
+
form_params = opts[:form_params] || {}
|
249
|
+
|
250
|
+
# http body (model)
|
251
|
+
post_body = opts[:debug_body]
|
252
|
+
|
253
|
+
# return_type
|
254
|
+
return_type = opts[:debug_return_type] || 'MetaResponse'
|
255
|
+
|
256
|
+
# auth_names
|
257
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
258
|
+
|
259
|
+
new_options = opts.merge(
|
260
|
+
:operation => :"TimeOffApi.time_off_meta_post_retrieve",
|
261
|
+
:header_params => header_params,
|
262
|
+
:query_params => query_params,
|
263
|
+
:form_params => form_params,
|
264
|
+
:body => post_body,
|
265
|
+
:auth_names => auth_names,
|
266
|
+
:return_type => return_type
|
267
|
+
)
|
268
|
+
|
269
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
270
|
+
if @api_client.config.debugging
|
271
|
+
@api_client.config.logger.debug "API called: TimeOffApi#time_off_meta_post_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
272
|
+
end
|
273
|
+
return data, status_code, headers
|
274
|
+
end
|
275
|
+
|
214
276
|
# Returns a `TimeOff` object with the given `id`.
|
215
277
|
# @param x_account_token [String] Token identifying the end user.
|
216
278
|
# @param id [String]
|
@@ -0,0 +1,154 @@
|
|
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 WebhookReceiversApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Creates a `WebhookReceiver` object with the given values.
|
23
|
+
# @param x_account_token [String] Token identifying the end user.
|
24
|
+
# @param webhook_receiver_request [WebhookReceiverRequest]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [WebhookReceiver]
|
27
|
+
def webhook_receivers_create(x_account_token, webhook_receiver_request, opts = {})
|
28
|
+
data, _status_code, _headers = webhook_receivers_create_with_http_info(x_account_token, webhook_receiver_request, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Creates a `WebhookReceiver` object with the given values.
|
33
|
+
# @param x_account_token [String] Token identifying the end user.
|
34
|
+
# @param webhook_receiver_request [WebhookReceiverRequest]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(WebhookReceiver, Integer, Hash)>] WebhookReceiver data, response status code and response headers
|
37
|
+
def webhook_receivers_create_with_http_info(x_account_token, webhook_receiver_request, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: WebhookReceiversApi.webhook_receivers_create ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'x_account_token' is set
|
42
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling WebhookReceiversApi.webhook_receivers_create"
|
44
|
+
end
|
45
|
+
# verify the required parameter 'webhook_receiver_request' is set
|
46
|
+
if @api_client.config.client_side_validation && webhook_receiver_request.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'webhook_receiver_request' when calling WebhookReceiversApi.webhook_receivers_create"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '/webhook-receivers'
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = opts[:query_params] || {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = opts[:header_params] || {}
|
57
|
+
# HTTP header 'Accept' (if needed)
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
|
+
# HTTP header 'Content-Type'
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
61
|
+
header_params[:'X-Account-Token'] = x_account_token
|
62
|
+
|
63
|
+
# form parameters
|
64
|
+
form_params = opts[:form_params] || {}
|
65
|
+
|
66
|
+
# http body (model)
|
67
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(webhook_receiver_request)
|
68
|
+
|
69
|
+
# return_type
|
70
|
+
return_type = opts[:debug_return_type] || 'WebhookReceiver'
|
71
|
+
|
72
|
+
# auth_names
|
73
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
74
|
+
|
75
|
+
new_options = opts.merge(
|
76
|
+
:operation => :"WebhookReceiversApi.webhook_receivers_create",
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: WebhookReceiversApi#webhook_receivers_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
92
|
+
# Returns a list of `WebhookReceiver` objects.
|
93
|
+
# @param x_account_token [String] Token identifying the end user.
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [Array<WebhookReceiver>]
|
96
|
+
def webhook_receivers_list(x_account_token, opts = {})
|
97
|
+
data, _status_code, _headers = webhook_receivers_list_with_http_info(x_account_token, opts)
|
98
|
+
data
|
99
|
+
end
|
100
|
+
|
101
|
+
# Returns a list of `WebhookReceiver` objects.
|
102
|
+
# @param x_account_token [String] Token identifying the end user.
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @return [Array<(Array<WebhookReceiver>, Integer, Hash)>] Array<WebhookReceiver> data, response status code and response headers
|
105
|
+
def webhook_receivers_list_with_http_info(x_account_token, opts = {})
|
106
|
+
if @api_client.config.debugging
|
107
|
+
@api_client.config.logger.debug 'Calling API: WebhookReceiversApi.webhook_receivers_list ...'
|
108
|
+
end
|
109
|
+
# verify the required parameter 'x_account_token' is set
|
110
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling WebhookReceiversApi.webhook_receivers_list"
|
112
|
+
end
|
113
|
+
# resource path
|
114
|
+
local_var_path = '/webhook-receivers'
|
115
|
+
|
116
|
+
# query parameters
|
117
|
+
query_params = opts[:query_params] || {}
|
118
|
+
|
119
|
+
# header parameters
|
120
|
+
header_params = opts[:header_params] || {}
|
121
|
+
# HTTP header 'Accept' (if needed)
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
123
|
+
header_params[:'X-Account-Token'] = x_account_token
|
124
|
+
|
125
|
+
# form parameters
|
126
|
+
form_params = opts[:form_params] || {}
|
127
|
+
|
128
|
+
# http body (model)
|
129
|
+
post_body = opts[:debug_body]
|
130
|
+
|
131
|
+
# return_type
|
132
|
+
return_type = opts[:debug_return_type] || 'Array<WebhookReceiver>'
|
133
|
+
|
134
|
+
# auth_names
|
135
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
136
|
+
|
137
|
+
new_options = opts.merge(
|
138
|
+
:operation => :"WebhookReceiversApi.webhook_receivers_list",
|
139
|
+
:header_params => header_params,
|
140
|
+
:query_params => query_params,
|
141
|
+
:form_params => form_params,
|
142
|
+
:body => post_body,
|
143
|
+
:auth_names => auth_names,
|
144
|
+
:return_type => return_type
|
145
|
+
)
|
146
|
+
|
147
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
148
|
+
if @api_client.config.debugging
|
149
|
+
@api_client.config.logger.debug "API called: WebhookReceiversApi#webhook_receivers_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
150
|
+
end
|
151
|
+
return data, status_code, headers
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|