merge_hris_client 2.0.1 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/BankInfo.md +3 -1
- data/docs/BankInfoApi.md +7 -3
- data/docs/Benefit.md +3 -1
- data/docs/BenefitsApi.md +2 -2
- data/docs/CompaniesApi.md +2 -2
- data/docs/Company.md +3 -1
- data/docs/DataPassthroughRequest.md +3 -1
- data/docs/Deduction.md +3 -1
- data/docs/DeductionsApi.md +2 -2
- data/docs/Earning.md +4 -2
- data/docs/Employee.md +3 -1
- data/docs/EmployeePayrollRun.md +3 -1
- data/docs/EmployeePayrollRunsApi.md +2 -2
- data/docs/EmployeesApi.md +15 -3
- data/docs/Employment.md +4 -2
- data/docs/EmploymentsApi.md +7 -3
- data/docs/EndUserDetailsRequest.md +1 -1
- data/docs/ForceResyncApi.md +4 -4
- data/docs/Group.md +3 -1
- data/docs/GroupsApi.md +7 -3
- data/docs/LinkedAccountsApi.md +14 -14
- data/docs/Location.md +4 -2
- data/docs/LocationsApi.md +7 -3
- data/docs/PayGroup.md +3 -1
- data/docs/PayGroupsApi.md +2 -2
- data/docs/PayrollRun.md +3 -1
- data/docs/PayrollRunsApi.md +7 -3
- data/docs/RemoteResponse.md +2 -0
- data/docs/Tax.md +4 -2
- data/docs/Team.md +3 -1
- data/docs/TeamsApi.md +2 -2
- data/docs/TimeOff.md +3 -1
- data/docs/TimeOffApi.md +7 -3
- data/docs/TimeOffBalance.md +3 -1
- data/docs/TimeOffBalancesApi.md +7 -3
- data/lib/merge_hris_client/api/bank_info_api.rb +16 -3
- data/lib/merge_hris_client/api/benefits_api.rb +2 -2
- data/lib/merge_hris_client/api/companies_api.rb +2 -2
- data/lib/merge_hris_client/api/deductions_api.rb +2 -2
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +2 -2
- data/lib/merge_hris_client/api/employees_api.rb +32 -2
- data/lib/merge_hris_client/api/employments_api.rb +16 -2
- data/lib/merge_hris_client/api/force_resync_api.rb +3 -3
- data/lib/merge_hris_client/api/groups_api.rb +16 -2
- data/lib/merge_hris_client/api/linked_accounts_api.rb +14 -14
- data/lib/merge_hris_client/api/locations_api.rb +16 -2
- data/lib/merge_hris_client/api/pay_groups_api.rb +2 -2
- data/lib/merge_hris_client/api/payroll_runs_api.rb +16 -2
- data/lib/merge_hris_client/api/teams_api.rb +2 -2
- data/lib/merge_hris_client/api/time_off_api.rb +16 -2
- data/lib/merge_hris_client/api/time_off_balances_api.rb +16 -2
- data/lib/merge_hris_client/api/webhook_receivers_api.rb +154 -0
- 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 +15 -5
- data/lib/merge_hris_client/models/country_enum.rb +0 -1
- data/lib/merge_hris_client/models/data_passthrough_request.rb +14 -5
- data/lib/merge_hris_client/models/deduction.rb +15 -5
- data/lib/merge_hris_client/models/earning.rb +18 -6
- data/lib/merge_hris_client/models/earning_type_enum.rb +0 -1
- data/lib/merge_hris_client/models/employee.rb +14 -5
- data/lib/merge_hris_client/models/employee_payroll_run.rb +15 -5
- data/lib/merge_hris_client/models/employment.rb +15 -5
- 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 +1 -1
- 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 +15 -5
- 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/location.rb +15 -5
- 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/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 +15 -5
- 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/remote_response.rb +13 -2
- 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 -6
- 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 +15 -5
- 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/version.rb +1 -1
- data/spec/api/bank_info_api_spec.rb +3 -1
- data/spec/api/benefits_api_spec.rb +1 -1
- data/spec/api/companies_api_spec.rb +1 -1
- data/spec/api/deductions_api_spec.rb +1 -1
- data/spec/api/employee_payroll_runs_api_spec.rb +1 -1
- data/spec/api/employees_api_spec.rb +7 -1
- data/spec/api/employments_api_spec.rb +3 -1
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/groups_api_spec.rb +3 -1
- data/spec/api/linked_accounts_api_spec.rb +7 -7
- data/spec/api/locations_api_spec.rb +3 -1
- data/spec/api/pay_groups_api_spec.rb +1 -1
- data/spec/api/payroll_runs_api_spec.rb +3 -1
- data/spec/api/teams_api_spec.rb +1 -1
- data/spec/api/time_off_api_spec.rb +3 -1
- data/spec/api/time_off_balances_api_spec.rb +3 -1
- data/spec/api/webhook_receivers_api_spec.rb +58 -0
- data/spec/models/bank_info_spec.rb +1 -1
- data/spec/models/benefit_spec.rb +1 -1
- data/spec/models/company_spec.rb +1 -1
- data/spec/models/data_passthrough_request_spec.rb +6 -0
- data/spec/models/deduction_spec.rb +1 -1
- data/spec/models/earning_spec.rb +1 -1
- data/spec/models/employee_payroll_run_spec.rb +1 -1
- data/spec/models/employee_spec.rb +2 -2
- data/spec/models/employment_spec.rb +1 -1
- data/spec/models/group_spec.rb +1 -1
- data/spec/models/linked_account_status_spec.rb +40 -0
- data/spec/models/location_spec.rb +1 -1
- data/spec/models/meta_response_spec.rb +52 -0
- data/spec/models/pay_group_spec.rb +1 -1
- data/spec/models/payroll_run_spec.rb +1 -1
- data/spec/models/remote_response_spec.rb +6 -0
- data/spec/models/tax_spec.rb +1 -1
- data/spec/models/team_spec.rb +1 -1
- data/spec/models/time_off_balance_spec.rb +1 -1
- data/spec/models/time_off_spec.rb +1 -1
- data/spec/models/webhook_receiver_request_spec.rb +46 -0
- data/spec/models/webhook_receiver_spec.rb +46 -0
- metadata +105 -107
- 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/data_passthrough.rb +0 -262
- data/lib/merge_hris_client/models/end_user_details.rb +0 -289
- data/lib/merge_hris_client/models/remote_key_for_regeneration.rb +0 -224
- 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
@@ -104,11 +104,12 @@ module MergeHRISClient
|
|
104
104
|
# @option opts [String] :cursor The pagination cursor value.
|
105
105
|
# @option opts [String] :employee_id If provided, will only return time off for this employee.
|
106
106
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
107
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
107
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
108
108
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
109
109
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
110
110
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
111
111
|
# @option opts [Integer] :page_size Number of results to return per page.
|
112
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
112
113
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
113
114
|
# @option opts [String] :request_type If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
|
114
115
|
# @option opts [String] :status If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED')
|
@@ -127,11 +128,12 @@ module MergeHRISClient
|
|
127
128
|
# @option opts [String] :cursor The pagination cursor value.
|
128
129
|
# @option opts [String] :employee_id If provided, will only return time off for this employee.
|
129
130
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
130
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
131
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
131
132
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
132
133
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
133
134
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
134
135
|
# @option opts [Integer] :page_size Number of results to return per page.
|
136
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
135
137
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
136
138
|
# @option opts [String] :request_type If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
|
137
139
|
# @option opts [String] :status If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED')
|
@@ -148,6 +150,10 @@ module MergeHRISClient
|
|
148
150
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
149
151
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
150
152
|
end
|
153
|
+
allowable_values = ["request_type", "request_type,status", "request_type,status,units", "request_type,units", "status", "status,units", "units"]
|
154
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
155
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
156
|
+
end
|
151
157
|
allowable_values = ["BEREAVEMENT", "JURY_DUTY", "PERSONAL", "SICK", "VACATION", "VOLUNTEER"]
|
152
158
|
if @api_client.config.client_side_validation && opts[:'request_type'] && !allowable_values.include?(opts[:'request_type'])
|
153
159
|
fail ArgumentError, "invalid value for \"request_type\", must be one of #{allowable_values}"
|
@@ -172,6 +178,7 @@ module MergeHRISClient
|
|
172
178
|
query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
|
173
179
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
174
180
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
181
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
175
182
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
176
183
|
query_params[:'request_type'] = opts[:'request_type'] if !opts[:'request_type'].nil?
|
177
184
|
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
@@ -279,6 +286,7 @@ module MergeHRISClient
|
|
279
286
|
# @param [Hash] opts the optional parameters
|
280
287
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
281
288
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
289
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
282
290
|
# @return [TimeOff]
|
283
291
|
def time_off_retrieve(x_account_token, id, opts = {})
|
284
292
|
data, _status_code, _headers = time_off_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -291,6 +299,7 @@ module MergeHRISClient
|
|
291
299
|
# @param [Hash] opts the optional parameters
|
292
300
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
293
301
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
302
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
294
303
|
# @return [Array<(TimeOff, Integer, Hash)>] TimeOff data, response status code and response headers
|
295
304
|
def time_off_retrieve_with_http_info(x_account_token, id, opts = {})
|
296
305
|
if @api_client.config.debugging
|
@@ -308,6 +317,10 @@ module MergeHRISClient
|
|
308
317
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
309
318
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
310
319
|
end
|
320
|
+
allowable_values = ["request_type", "request_type,status", "request_type,status,units", "request_type,units", "status", "status,units", "units"]
|
321
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
322
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
323
|
+
end
|
311
324
|
# resource path
|
312
325
|
local_var_path = '/time-off/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
313
326
|
|
@@ -315,6 +328,7 @@ module MergeHRISClient
|
|
315
328
|
query_params = opts[:query_params] || {}
|
316
329
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
317
330
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
331
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
318
332
|
|
319
333
|
# header parameters
|
320
334
|
header_params = opts[:header_params] || {}
|
@@ -27,12 +27,13 @@ module MergeHRISClient
|
|
27
27
|
# @option opts [String] :cursor The pagination cursor value.
|
28
28
|
# @option opts [String] :employee_id If provided, will only return time off balances for this employee.
|
29
29
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
30
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
30
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
31
31
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
32
32
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
33
33
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
34
34
|
# @option opts [Integer] :page_size Number of results to return per page.
|
35
35
|
# @option opts [String] :policy_type If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
|
36
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
36
37
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
37
38
|
# @return [PaginatedTimeOffBalanceList]
|
38
39
|
def time_off_balances_list(x_account_token, opts = {})
|
@@ -48,12 +49,13 @@ module MergeHRISClient
|
|
48
49
|
# @option opts [String] :cursor The pagination cursor value.
|
49
50
|
# @option opts [String] :employee_id If provided, will only return time off balances for this employee.
|
50
51
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
51
|
-
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted
|
52
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
52
53
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
53
54
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
54
55
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
55
56
|
# @option opts [Integer] :page_size Number of results to return per page.
|
56
57
|
# @option opts [String] :policy_type If provided, will only return TimeOffBalance with this policy type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
|
58
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
57
59
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
58
60
|
# @return [Array<(PaginatedTimeOffBalanceList, Integer, Hash)>] PaginatedTimeOffBalanceList data, response status code and response headers
|
59
61
|
def time_off_balances_list_with_http_info(x_account_token, opts = {})
|
@@ -72,6 +74,10 @@ module MergeHRISClient
|
|
72
74
|
if @api_client.config.client_side_validation && opts[:'policy_type'] && !allowable_values.include?(opts[:'policy_type'])
|
73
75
|
fail ArgumentError, "invalid value for \"policy_type\", must be one of #{allowable_values}"
|
74
76
|
end
|
77
|
+
allowable_values = ["policy_type"]
|
78
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
79
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
80
|
+
end
|
75
81
|
# resource path
|
76
82
|
local_var_path = '/time-off-balances'
|
77
83
|
|
@@ -88,6 +94,7 @@ module MergeHRISClient
|
|
88
94
|
query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
|
89
95
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
90
96
|
query_params[:'policy_type'] = opts[:'policy_type'] if !opts[:'policy_type'].nil?
|
97
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
91
98
|
query_params[:'remote_id'] = opts[:'remote_id'] if !opts[:'remote_id'].nil?
|
92
99
|
|
93
100
|
# header parameters
|
@@ -131,6 +138,7 @@ module MergeHRISClient
|
|
131
138
|
# @param [Hash] opts the optional parameters
|
132
139
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
133
140
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
141
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
134
142
|
# @return [TimeOffBalance]
|
135
143
|
def time_off_balances_retrieve(x_account_token, id, opts = {})
|
136
144
|
data, _status_code, _headers = time_off_balances_retrieve_with_http_info(x_account_token, id, opts)
|
@@ -143,6 +151,7 @@ module MergeHRISClient
|
|
143
151
|
# @param [Hash] opts the optional parameters
|
144
152
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
145
153
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
154
|
+
# @option opts [String] :remote_fields Which fields should be returned in non-normalized form.
|
146
155
|
# @return [Array<(TimeOffBalance, Integer, Hash)>] TimeOffBalance data, response status code and response headers
|
147
156
|
def time_off_balances_retrieve_with_http_info(x_account_token, id, opts = {})
|
148
157
|
if @api_client.config.debugging
|
@@ -160,6 +169,10 @@ module MergeHRISClient
|
|
160
169
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
161
170
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
162
171
|
end
|
172
|
+
allowable_values = ["policy_type"]
|
173
|
+
if @api_client.config.client_side_validation && opts[:'remote_fields'] && !allowable_values.include?(opts[:'remote_fields'])
|
174
|
+
fail ArgumentError, "invalid value for \"remote_fields\", must be one of #{allowable_values}"
|
175
|
+
end
|
163
176
|
# resource path
|
164
177
|
local_var_path = '/time-off-balances/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
165
178
|
|
@@ -167,6 +180,7 @@ module MergeHRISClient
|
|
167
180
|
query_params = opts[:query_params] || {}
|
168
181
|
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
169
182
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
183
|
+
query_params[:'remote_fields'] = opts[:'remote_fields'] if !opts[:'remote_fields'].nil?
|
170
184
|
|
171
185
|
# header parameters
|
172
186
|
header_params = opts[:header_params] || {}
|
@@ -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
|
@@ -40,6 +40,9 @@ module MergeHRISClient
|
|
40
40
|
|
41
41
|
attr_accessor :remote_data
|
42
42
|
|
43
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
44
|
+
attr_accessor :remote_was_deleted
|
45
|
+
|
43
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
47
|
def self.attribute_map
|
45
48
|
{
|
@@ -51,7 +54,8 @@ module MergeHRISClient
|
|
51
54
|
:'bank_name' => :'bank_name',
|
52
55
|
:'account_type' => :'account_type',
|
53
56
|
:'remote_created_at' => :'remote_created_at',
|
54
|
-
:'remote_data' => :'remote_data'
|
57
|
+
:'remote_data' => :'remote_data',
|
58
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
55
59
|
}
|
56
60
|
end
|
57
61
|
|
@@ -71,7 +75,8 @@ module MergeHRISClient
|
|
71
75
|
:'bank_name' => :'String',
|
72
76
|
:'account_type' => :'AccountTypeEnum',
|
73
77
|
:'remote_created_at' => :'Time',
|
74
|
-
:'remote_data' => :'Array<RemoteData>'
|
78
|
+
:'remote_data' => :'Array<RemoteData>',
|
79
|
+
:'remote_was_deleted' => :'Boolean'
|
75
80
|
}
|
76
81
|
end
|
77
82
|
|
@@ -85,7 +90,7 @@ module MergeHRISClient
|
|
85
90
|
:'bank_name',
|
86
91
|
:'account_type',
|
87
92
|
:'remote_created_at',
|
88
|
-
:'remote_data'
|
93
|
+
:'remote_data',
|
89
94
|
])
|
90
95
|
end
|
91
96
|
|
@@ -141,6 +146,10 @@ module MergeHRISClient
|
|
141
146
|
self.remote_data = value
|
142
147
|
end
|
143
148
|
end
|
149
|
+
|
150
|
+
if attributes.key?(:'remote_was_deleted')
|
151
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
152
|
+
end
|
144
153
|
end
|
145
154
|
|
146
155
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -184,7 +193,8 @@ module MergeHRISClient
|
|
184
193
|
bank_name == o.bank_name &&
|
185
194
|
account_type == o.account_type &&
|
186
195
|
remote_created_at == o.remote_created_at &&
|
187
|
-
remote_data == o.remote_data
|
196
|
+
remote_data == o.remote_data &&
|
197
|
+
remote_was_deleted == o.remote_was_deleted
|
188
198
|
end
|
189
199
|
|
190
200
|
# @see the `==` method
|
@@ -196,7 +206,7 @@ module MergeHRISClient
|
|
196
206
|
# Calculates hash code according to all attributes.
|
197
207
|
# @return [Integer] Hash code
|
198
208
|
def hash
|
199
|
-
[id, remote_id, employee, account_number, routing_number, bank_name, account_type, remote_created_at, remote_data].hash
|
209
|
+
[id, remote_id, employee, account_number, routing_number, bank_name, account_type, remote_created_at, remote_data, remote_was_deleted].hash
|
200
210
|
end
|
201
211
|
|
202
212
|
# Builds the object from hash
|
@@ -37,6 +37,9 @@ module MergeHRISClient
|
|
37
37
|
|
38
38
|
attr_accessor :remote_data
|
39
39
|
|
40
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
41
|
+
attr_accessor :remote_was_deleted
|
42
|
+
|
40
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
44
|
def self.attribute_map
|
42
45
|
{
|
@@ -47,7 +50,8 @@ module MergeHRISClient
|
|
47
50
|
:'benefit_plan_type' => :'benefit_plan_type',
|
48
51
|
:'employee_contribution' => :'employee_contribution',
|
49
52
|
:'company_contribution' => :'company_contribution',
|
50
|
-
:'remote_data' => :'remote_data'
|
53
|
+
:'remote_data' => :'remote_data',
|
54
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
51
55
|
}
|
52
56
|
end
|
53
57
|
|
@@ -66,7 +70,8 @@ module MergeHRISClient
|
|
66
70
|
:'benefit_plan_type' => :'String',
|
67
71
|
:'employee_contribution' => :'Float',
|
68
72
|
:'company_contribution' => :'Float',
|
69
|
-
:'remote_data' => :'Array<RemoteData>'
|
73
|
+
:'remote_data' => :'Array<RemoteData>',
|
74
|
+
:'remote_was_deleted' => :'Boolean'
|
70
75
|
}
|
71
76
|
end
|
72
77
|
|
@@ -79,7 +84,7 @@ module MergeHRISClient
|
|
79
84
|
:'benefit_plan_type',
|
80
85
|
:'employee_contribution',
|
81
86
|
:'company_contribution',
|
82
|
-
:'remote_data'
|
87
|
+
:'remote_data',
|
83
88
|
])
|
84
89
|
end
|
85
90
|
|
@@ -131,6 +136,10 @@ module MergeHRISClient
|
|
131
136
|
self.remote_data = value
|
132
137
|
end
|
133
138
|
end
|
139
|
+
|
140
|
+
if attributes.key?(:'remote_was_deleted')
|
141
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
142
|
+
end
|
134
143
|
end
|
135
144
|
|
136
145
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -158,7 +167,8 @@ module MergeHRISClient
|
|
158
167
|
benefit_plan_type == o.benefit_plan_type &&
|
159
168
|
employee_contribution == o.employee_contribution &&
|
160
169
|
company_contribution == o.company_contribution &&
|
161
|
-
remote_data == o.remote_data
|
170
|
+
remote_data == o.remote_data &&
|
171
|
+
remote_was_deleted == o.remote_was_deleted
|
162
172
|
end
|
163
173
|
|
164
174
|
# @see the `==` method
|
@@ -170,7 +180,7 @@ module MergeHRISClient
|
|
170
180
|
# Calculates hash code according to all attributes.
|
171
181
|
# @return [Integer] Hash code
|
172
182
|
def hash
|
173
|
-
[id, remote_id, employee, provider_name, benefit_plan_type, employee_contribution, company_contribution, remote_data].hash
|
183
|
+
[id, remote_id, employee, provider_name, benefit_plan_type, employee_contribution, company_contribution, remote_data, remote_was_deleted].hash
|
174
184
|
end
|
175
185
|
|
176
186
|
# Builds the object from hash
|
@@ -18,6 +18,8 @@ module MergeHRISClient
|
|
18
18
|
HRIS = "hris".freeze
|
19
19
|
ATS = "ats".freeze
|
20
20
|
ACCOUNTING = "accounting".freeze
|
21
|
+
TICKETING = "ticketing".freeze
|
22
|
+
CRM = "crm".freeze
|
21
23
|
|
22
24
|
# Builds the enum from string
|
23
25
|
# @param [String] The enum value in the form of the string
|
@@ -33,5 +35,4 @@ module MergeHRISClient
|
|
33
35
|
value
|
34
36
|
end
|
35
37
|
end
|
36
|
-
|
37
38
|
end
|
@@ -18,6 +18,8 @@ module MergeHRISClient
|
|
18
18
|
HRIS = "hris".freeze
|
19
19
|
ATS = "ats".freeze
|
20
20
|
ACCOUNTING = "accounting".freeze
|
21
|
+
TICKETING = "ticketing".freeze
|
22
|
+
CRM = "crm".freeze
|
21
23
|
|
22
24
|
# Builds the enum from string
|
23
25
|
# @param [String] The enum value in the form of the string
|
@@ -33,5 +35,4 @@ module MergeHRISClient
|
|
33
35
|
value
|
34
36
|
end
|
35
37
|
end
|
36
|
-
|
37
38
|
end
|
@@ -32,6 +32,9 @@ module MergeHRISClient
|
|
32
32
|
|
33
33
|
attr_accessor :remote_data
|
34
34
|
|
35
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
36
|
+
attr_accessor :remote_was_deleted
|
37
|
+
|
35
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
39
|
def self.attribute_map
|
37
40
|
{
|
@@ -40,7 +43,8 @@ module MergeHRISClient
|
|
40
43
|
:'legal_name' => :'legal_name',
|
41
44
|
:'display_name' => :'display_name',
|
42
45
|
:'eins' => :'eins',
|
43
|
-
:'remote_data' => :'remote_data'
|
46
|
+
:'remote_data' => :'remote_data',
|
47
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
44
48
|
}
|
45
49
|
end
|
46
50
|
|
@@ -57,7 +61,8 @@ module MergeHRISClient
|
|
57
61
|
:'legal_name' => :'String',
|
58
62
|
:'display_name' => :'String',
|
59
63
|
:'eins' => :'Array<String>',
|
60
|
-
:'remote_data' => :'Array<RemoteData>'
|
64
|
+
:'remote_data' => :'Array<RemoteData>',
|
65
|
+
:'remote_was_deleted' => :'Boolean'
|
61
66
|
}
|
62
67
|
end
|
63
68
|
|
@@ -68,7 +73,7 @@ module MergeHRISClient
|
|
68
73
|
:'legal_name',
|
69
74
|
:'display_name',
|
70
75
|
:'eins',
|
71
|
-
:'remote_data'
|
76
|
+
:'remote_data',
|
72
77
|
])
|
73
78
|
end
|
74
79
|
|
@@ -114,6 +119,10 @@ module MergeHRISClient
|
|
114
119
|
self.remote_data = value
|
115
120
|
end
|
116
121
|
end
|
122
|
+
|
123
|
+
if attributes.key?(:'remote_was_deleted')
|
124
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
125
|
+
end
|
117
126
|
end
|
118
127
|
|
119
128
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -139,7 +148,8 @@ module MergeHRISClient
|
|
139
148
|
legal_name == o.legal_name &&
|
140
149
|
display_name == o.display_name &&
|
141
150
|
eins == o.eins &&
|
142
|
-
remote_data == o.remote_data
|
151
|
+
remote_data == o.remote_data &&
|
152
|
+
remote_was_deleted == o.remote_was_deleted
|
143
153
|
end
|
144
154
|
|
145
155
|
# @see the `==` method
|
@@ -151,7 +161,7 @@ module MergeHRISClient
|
|
151
161
|
# Calculates hash code according to all attributes.
|
152
162
|
# @return [Integer] Hash code
|
153
163
|
def hash
|
154
|
-
[id, remote_id, legal_name, display_name, eins, remote_data].hash
|
164
|
+
[id, remote_id, legal_name, display_name, eins, remote_data, remote_was_deleted].hash
|
155
165
|
end
|
156
166
|
|
157
167
|
# Builds the object from hash
|
@@ -32,6 +32,8 @@ module MergeHRISClient
|
|
32
32
|
|
33
33
|
attr_accessor :request_format
|
34
34
|
|
35
|
+
attr_accessor :normalize_response
|
36
|
+
|
35
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
38
|
def self.attribute_map
|
37
39
|
{
|
@@ -41,7 +43,8 @@ module MergeHRISClient
|
|
41
43
|
:'data' => :'data',
|
42
44
|
:'multipart_form_data' => :'multipart_form_data',
|
43
45
|
:'headers' => :'headers',
|
44
|
-
:'request_format' => :'request_format'
|
46
|
+
:'request_format' => :'request_format',
|
47
|
+
:'normalize_response' => :'normalize_response'
|
45
48
|
}
|
46
49
|
end
|
47
50
|
|
@@ -59,7 +62,8 @@ module MergeHRISClient
|
|
59
62
|
:'data' => :'String',
|
60
63
|
:'multipart_form_data' => :'Array<MultipartFormFieldRequest>',
|
61
64
|
:'headers' => :'Hash<String, AnyType>',
|
62
|
-
:'request_format' => :'RequestFormatEnum'
|
65
|
+
:'request_format' => :'RequestFormatEnum',
|
66
|
+
:'normalize_response' => :'Boolean'
|
63
67
|
}
|
64
68
|
end
|
65
69
|
|
@@ -70,7 +74,7 @@ module MergeHRISClient
|
|
70
74
|
:'data',
|
71
75
|
:'multipart_form_data',
|
72
76
|
:'headers',
|
73
|
-
:'request_format'
|
77
|
+
:'request_format',
|
74
78
|
])
|
75
79
|
end
|
76
80
|
|
@@ -120,6 +124,10 @@ module MergeHRISClient
|
|
120
124
|
if attributes.key?(:'request_format')
|
121
125
|
self.request_format = attributes[:'request_format']
|
122
126
|
end
|
127
|
+
|
128
|
+
if attributes.key?(:'normalize_response')
|
129
|
+
self.normalize_response = attributes[:'normalize_response']
|
130
|
+
end
|
123
131
|
end
|
124
132
|
|
125
133
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -205,7 +213,8 @@ module MergeHRISClient
|
|
205
213
|
data == o.data &&
|
206
214
|
multipart_form_data == o.multipart_form_data &&
|
207
215
|
headers == o.headers &&
|
208
|
-
request_format == o.request_format
|
216
|
+
request_format == o.request_format &&
|
217
|
+
normalize_response == o.normalize_response
|
209
218
|
end
|
210
219
|
|
211
220
|
# @see the `==` method
|
@@ -217,7 +226,7 @@ module MergeHRISClient
|
|
217
226
|
# Calculates hash code according to all attributes.
|
218
227
|
# @return [Integer] Hash code
|
219
228
|
def hash
|
220
|
-
[method, path, base_url_override, data, multipart_form_data, headers, request_format].hash
|
229
|
+
[method, path, base_url_override, data, multipart_form_data, headers, request_format, normalize_response].hash
|
221
230
|
end
|
222
231
|
|
223
232
|
# Builds the object from hash
|