merge_hris_client 1.0.4 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -12
- data/docs/AccountDetails.md +11 -7
- data/docs/AccountDetailsAndActions.md +2 -0
- data/docs/AccountDetailsApi.md +10 -7
- data/docs/AccountIntegration.md +4 -4
- data/docs/AccountTokenApi.md +2 -2
- data/docs/AvailableActionsApi.md +2 -2
- data/docs/BankInfo.md +1 -1
- data/docs/BankInfoApi.md +8 -12
- data/docs/Benefit.md +2 -2
- data/docs/BenefitsApi.md +4 -4
- data/docs/CompaniesApi.md +4 -4
- data/docs/Company.md +2 -2
- data/docs/DataPassthroughRequest.md +3 -1
- data/docs/DebugModeLog.md +22 -0
- data/docs/DebugModelLogSummary.md +22 -0
- data/docs/Deduction.md +2 -2
- data/docs/DeductionsApi.md +4 -4
- data/docs/DeleteAccountApi.md +3 -2
- data/docs/Earning.md +3 -3
- data/docs/EarningTypeEnum.md +15 -0
- data/docs/Employee.md +17 -15
- data/docs/EmployeeEndpointRequest.md +18 -0
- data/docs/EmployeePayrollRun.md +2 -2
- data/docs/EmployeePayrollRunsApi.md +4 -4
- data/docs/EmployeeRequest.md +70 -0
- data/docs/EmployeeResponse.md +24 -0
- data/docs/EmployeesApi.md +232 -4
- data/docs/Employment.md +6 -4
- data/docs/EmploymentsApi.md +5 -4
- data/docs/EncodingEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +5 -3
- data/docs/ForceResyncApi.md +2 -2
- data/docs/GenerateKeyApi.md +2 -2
- data/docs/Group.md +28 -0
- data/docs/GroupTypeEnum.md +15 -0
- data/docs/GroupsApi.md +177 -0
- data/docs/IgnoreCommonModel.md +20 -0
- data/docs/IssuesApi.md +13 -4
- data/docs/LinkTokenApi.md +3 -3
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +2 -2
- data/docs/Location.md +3 -1
- data/docs/LocationsApi.md +4 -4
- data/docs/MetaResponse.md +24 -0
- data/docs/MultipartFormFieldRequest.md +26 -0
- data/docs/PaginatedGroupList.md +22 -0
- data/docs/PassthroughApi.md +2 -2
- data/docs/PayGroupsApi.md +4 -4
- data/docs/PayrollRunsApi.md +4 -4
- data/docs/RegenerateKeyApi.md +2 -2
- data/docs/SyncStatusApi.md +0 -1
- data/docs/Tax.md +2 -2
- data/docs/Team.md +1 -1
- data/docs/TeamsApi.md +5 -4
- data/docs/TimeOff.md +4 -4
- data/docs/TimeOffApi.md +80 -6
- data/docs/TimeOffBalance.md +2 -2
- data/docs/TimeOffRequest.md +4 -4
- data/docs/TimeOffResponse.md +3 -1
- 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 +4 -9
- data/lib/merge_hris_client/api/employees_api.rb +216 -2
- data/lib/merge_hris_client/api/employments_api.rb +2 -2
- data/lib/merge_hris_client/api/groups_api.rb +182 -0
- data/lib/merge_hris_client/api/issues_api.rb +12 -0
- data/lib/merge_hris_client/api/linked_accounts_api.rb +1 -1
- data/lib/merge_hris_client/api/sync_status_api.rb +0 -62
- data/lib/merge_hris_client/api/time_off_api.rb +65 -0
- data/lib/merge_hris_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_hris_client/configuration.rb +6 -4
- data/lib/merge_hris_client/models/account_details.rb +23 -5
- data/lib/merge_hris_client/models/account_details_and_actions.rb +16 -2
- data/lib/merge_hris_client/models/account_details_and_actions_integration.rb +1 -1
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +1 -0
- data/lib/merge_hris_client/models/account_integration.rb +5 -27
- data/lib/merge_hris_client/models/account_token.rb +1 -1
- data/lib/merge_hris_client/models/account_type_enum.rb +1 -0
- data/lib/merge_hris_client/models/available_actions.rb +1 -1
- data/lib/merge_hris_client/models/bank_info.rb +0 -1
- data/lib/merge_hris_client/models/benefit.rb +1 -2
- data/lib/merge_hris_client/models/categories_enum.rb +1 -0
- data/lib/merge_hris_client/models/category_enum.rb +1 -0
- data/lib/merge_hris_client/models/company.rb +1 -1
- data/lib/merge_hris_client/models/country_enum.rb +1 -0
- data/lib/merge_hris_client/models/data_passthrough_request.rb +17 -3
- data/lib/merge_hris_client/models/debug_mode_log.rb +251 -0
- data/lib/merge_hris_client/models/debug_model_log_summary.rb +251 -0
- data/lib/merge_hris_client/models/deduction.rb +0 -1
- data/lib/merge_hris_client/models/earning.rb +4 -7
- data/lib/merge_hris_client/models/earning_type_enum.rb +38 -0
- data/lib/merge_hris_client/models/employee.rb +14 -9
- data/lib/merge_hris_client/models/employee_endpoint_request.rb +223 -0
- data/lib/merge_hris_client/models/employee_payroll_run.rb +1 -3
- data/lib/merge_hris_client/models/employee_request.rb +564 -0
- data/lib/merge_hris_client/models/employee_response.rb +266 -0
- data/lib/merge_hris_client/models/employment.rb +12 -3
- data/lib/merge_hris_client/models/employment_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/employment_type_enum.rb +1 -1
- data/lib/merge_hris_client/models/encoding_enum.rb +36 -0
- data/lib/merge_hris_client/models/end_user_details_request.rb +74 -27
- data/lib/merge_hris_client/models/error_validation_problem.rb +1 -1
- data/lib/merge_hris_client/models/ethnicity_enum.rb +1 -1
- data/lib/merge_hris_client/models/flsa_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/gender_enum.rb +1 -1
- data/lib/merge_hris_client/models/generate_remote_key_request.rb +1 -1
- data/lib/merge_hris_client/models/group.rb +275 -0
- data/lib/merge_hris_client/models/group_type_enum.rb +38 -0
- data/lib/merge_hris_client/models/ignore_common_model.rb +247 -0
- data/lib/merge_hris_client/models/ignore_common_model_request.rb +256 -0
- data/lib/merge_hris_client/models/issue.rb +1 -1
- data/lib/merge_hris_client/models/issue_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/link_token.rb +1 -1
- data/lib/merge_hris_client/models/linked_account_status.rb +237 -0
- data/lib/merge_hris_client/models/location.rb +13 -2
- data/lib/merge_hris_client/models/location_type_enum.rb +36 -0
- data/lib/merge_hris_client/models/marital_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/meta_response.rb +262 -0
- data/lib/merge_hris_client/models/method_enum.rb +1 -1
- data/lib/merge_hris_client/models/model_operation.rb +1 -1
- data/lib/merge_hris_client/models/multipart_form_field_request.rb +341 -0
- data/lib/merge_hris_client/models/paginated_account_details_and_actions_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_bank_info_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_benefit_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_company_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_deduction_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_employee_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_employee_payroll_run_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_employment_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_group_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_issue_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_location_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_pay_group_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_payroll_run_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_sync_status_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_team_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_time_off_balance_list.rb +1 -1
- data/lib/merge_hris_client/models/paginated_time_off_list.rb +1 -1
- data/lib/merge_hris_client/models/pay_currency_enum.rb +1 -1
- data/lib/merge_hris_client/models/pay_frequency_enum.rb +1 -2
- data/lib/merge_hris_client/models/pay_period_enum.rb +1 -1
- data/lib/merge_hris_client/models/payroll_run.rb +1 -1
- data/lib/merge_hris_client/models/policy_type_enum.rb +1 -0
- data/lib/merge_hris_client/models/reason_enum.rb +37 -0
- data/lib/merge_hris_client/models/remote_data.rb +1 -1
- data/lib/merge_hris_client/models/remote_data_request.rb +1 -1
- data/lib/merge_hris_client/models/remote_key.rb +1 -1
- data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +1 -1
- data/lib/merge_hris_client/models/remote_response.rb +1 -1
- data/lib/merge_hris_client/models/request_format_enum.rb +2 -0
- data/lib/merge_hris_client/models/request_type_enum.rb +1 -0
- data/lib/merge_hris_client/models/run_state_enum.rb +1 -1
- data/lib/merge_hris_client/models/run_type_enum.rb +1 -11
- data/lib/merge_hris_client/models/sync_status.rb +1 -1
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +1 -2
- data/lib/merge_hris_client/models/tax.rb +3 -6
- data/lib/merge_hris_client/models/team.rb +0 -1
- data/lib/merge_hris_client/models/time_off.rb +0 -2
- data/lib/merge_hris_client/models/time_off_balance.rb +1 -2
- data/lib/merge_hris_client/models/time_off_endpoint_request.rb +1 -1
- data/lib/merge_hris_client/models/time_off_request.rb +1 -3
- data/lib/merge_hris_client/models/time_off_response.rb +16 -5
- data/lib/merge_hris_client/models/time_off_status_enum.rb +1 -1
- data/lib/merge_hris_client/models/units_enum.rb +1 -1
- data/lib/merge_hris_client/models/validation_problem_source.rb +1 -1
- data/lib/merge_hris_client/models/warning_validation_problem.rb +1 -1
- data/lib/merge_hris_client/models/webhook_receiver.rb +246 -0
- data/lib/merge_hris_client/models/webhook_receiver_request.rb +280 -0
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +21 -2
- data/pull_request_template.md +3 -1
- data/spec/api/account_details_api_spec.rb +1 -0
- data/spec/api/bank_info_api_spec.rb +2 -4
- data/spec/api/employees_api_spec.rb +38 -0
- data/spec/api/groups_api_spec.rb +68 -0
- data/spec/api/issues_api_spec.rb +4 -0
- data/spec/api/time_off_api_spec.rb +12 -0
- data/spec/models/account_details_and_actions_spec.rb +6 -0
- data/spec/models/account_details_spec.rb +12 -0
- data/spec/models/data_passthrough_request_spec.rb +6 -0
- data/spec/models/debug_mode_log_spec.rb +46 -0
- data/spec/models/debug_model_log_summary_spec.rb +46 -0
- data/spec/models/earning_type_enum_spec.rb +28 -0
- data/spec/models/employee_endpoint_request_spec.rb +34 -0
- data/spec/models/employee_request_spec.rb +190 -0
- data/spec/models/employee_response_spec.rb +52 -0
- data/spec/models/employee_spec.rb +6 -0
- data/spec/models/employment_spec.rb +6 -0
- data/spec/models/encoding_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +6 -0
- data/spec/models/group_spec.rb +64 -0
- data/spec/models/group_type_enum_spec.rb +28 -0
- data/spec/models/ignore_common_model_spec.rb +40 -0
- data/spec/models/location_spec.rb +6 -0
- data/spec/models/multipart_form_field_request_spec.rb +58 -0
- data/spec/models/paginated_group_list_spec.rb +46 -0
- data/spec/models/time_off_response_spec.rb +6 -0
- metadata +153 -89
- data/test_ruby.rb +0 -30
data/lib/merge_hris_client.rb
CHANGED
@@ -27,32 +27,46 @@ require 'merge_hris_client/models/account_type_enum'
|
|
27
27
|
require 'merge_hris_client/models/available_actions'
|
28
28
|
require 'merge_hris_client/models/bank_info'
|
29
29
|
require 'merge_hris_client/models/benefit'
|
30
|
-
require 'merge_hris_client/models/benefit_plan_type_enum'
|
31
30
|
require 'merge_hris_client/models/categories_enum'
|
32
31
|
require 'merge_hris_client/models/category_enum'
|
33
32
|
require 'merge_hris_client/models/company'
|
34
33
|
require 'merge_hris_client/models/country_enum'
|
35
34
|
require 'merge_hris_client/models/data_passthrough_request'
|
35
|
+
require 'merge_hris_client/models/debug_mode_log'
|
36
|
+
require 'merge_hris_client/models/debug_model_log_summary'
|
36
37
|
require 'merge_hris_client/models/deduction'
|
37
38
|
require 'merge_hris_client/models/earning'
|
39
|
+
require 'merge_hris_client/models/earning_type_enum'
|
38
40
|
require 'merge_hris_client/models/employee'
|
41
|
+
require 'merge_hris_client/models/employee_endpoint_request'
|
39
42
|
require 'merge_hris_client/models/employee_payroll_run'
|
43
|
+
require 'merge_hris_client/models/employee_request'
|
44
|
+
require 'merge_hris_client/models/employee_response'
|
40
45
|
require 'merge_hris_client/models/employment'
|
41
46
|
require 'merge_hris_client/models/employment_status_enum'
|
42
47
|
require 'merge_hris_client/models/employment_type_enum'
|
48
|
+
require 'merge_hris_client/models/encoding_enum'
|
43
49
|
require 'merge_hris_client/models/end_user_details_request'
|
44
50
|
require 'merge_hris_client/models/error_validation_problem'
|
45
51
|
require 'merge_hris_client/models/ethnicity_enum'
|
46
52
|
require 'merge_hris_client/models/flsa_status_enum'
|
47
53
|
require 'merge_hris_client/models/gender_enum'
|
48
54
|
require 'merge_hris_client/models/generate_remote_key_request'
|
55
|
+
require 'merge_hris_client/models/group'
|
56
|
+
require 'merge_hris_client/models/group_type_enum'
|
57
|
+
require 'merge_hris_client/models/ignore_common_model'
|
58
|
+
require 'merge_hris_client/models/ignore_common_model_request'
|
49
59
|
require 'merge_hris_client/models/issue'
|
50
60
|
require 'merge_hris_client/models/issue_status_enum'
|
51
61
|
require 'merge_hris_client/models/link_token'
|
62
|
+
require 'merge_hris_client/models/linked_account_status'
|
52
63
|
require 'merge_hris_client/models/location'
|
64
|
+
require 'merge_hris_client/models/location_type_enum'
|
53
65
|
require 'merge_hris_client/models/marital_status_enum'
|
66
|
+
require 'merge_hris_client/models/meta_response'
|
54
67
|
require 'merge_hris_client/models/method_enum'
|
55
68
|
require 'merge_hris_client/models/model_operation'
|
69
|
+
require 'merge_hris_client/models/multipart_form_field_request'
|
56
70
|
require 'merge_hris_client/models/paginated_account_details_and_actions_list'
|
57
71
|
require 'merge_hris_client/models/paginated_bank_info_list'
|
58
72
|
require 'merge_hris_client/models/paginated_benefit_list'
|
@@ -61,6 +75,7 @@ require 'merge_hris_client/models/paginated_deduction_list'
|
|
61
75
|
require 'merge_hris_client/models/paginated_employee_list'
|
62
76
|
require 'merge_hris_client/models/paginated_employee_payroll_run_list'
|
63
77
|
require 'merge_hris_client/models/paginated_employment_list'
|
78
|
+
require 'merge_hris_client/models/paginated_group_list'
|
64
79
|
require 'merge_hris_client/models/paginated_issue_list'
|
65
80
|
require 'merge_hris_client/models/paginated_location_list'
|
66
81
|
require 'merge_hris_client/models/paginated_pay_group_list'
|
@@ -75,6 +90,7 @@ require 'merge_hris_client/models/pay_group'
|
|
75
90
|
require 'merge_hris_client/models/pay_period_enum'
|
76
91
|
require 'merge_hris_client/models/payroll_run'
|
77
92
|
require 'merge_hris_client/models/policy_type_enum'
|
93
|
+
require 'merge_hris_client/models/reason_enum'
|
78
94
|
require 'merge_hris_client/models/remote_data'
|
79
95
|
require 'merge_hris_client/models/remote_data_request'
|
80
96
|
require 'merge_hris_client/models/remote_key'
|
@@ -94,10 +110,11 @@ require 'merge_hris_client/models/time_off_endpoint_request'
|
|
94
110
|
require 'merge_hris_client/models/time_off_request'
|
95
111
|
require 'merge_hris_client/models/time_off_response'
|
96
112
|
require 'merge_hris_client/models/time_off_status_enum'
|
97
|
-
require 'merge_hris_client/models/type_enum'
|
98
113
|
require 'merge_hris_client/models/units_enum'
|
99
114
|
require 'merge_hris_client/models/validation_problem_source'
|
100
115
|
require 'merge_hris_client/models/warning_validation_problem'
|
116
|
+
require 'merge_hris_client/models/webhook_receiver'
|
117
|
+
require 'merge_hris_client/models/webhook_receiver_request'
|
101
118
|
|
102
119
|
# APIs
|
103
120
|
require 'merge_hris_client/api/account_details_api'
|
@@ -113,6 +130,7 @@ require 'merge_hris_client/api/employees_api'
|
|
113
130
|
require 'merge_hris_client/api/employments_api'
|
114
131
|
require 'merge_hris_client/api/force_resync_api'
|
115
132
|
require 'merge_hris_client/api/generate_key_api'
|
133
|
+
require 'merge_hris_client/api/groups_api'
|
116
134
|
require 'merge_hris_client/api/issues_api'
|
117
135
|
require 'merge_hris_client/api/link_token_api'
|
118
136
|
require 'merge_hris_client/api/linked_accounts_api'
|
@@ -125,6 +143,7 @@ require 'merge_hris_client/api/sync_status_api'
|
|
125
143
|
require 'merge_hris_client/api/teams_api'
|
126
144
|
require 'merge_hris_client/api/time_off_api'
|
127
145
|
require 'merge_hris_client/api/time_off_balances_api'
|
146
|
+
require 'merge_hris_client/api/webhook_receivers_api'
|
128
147
|
|
129
148
|
module MergeHRISClient
|
130
149
|
class << self
|
data/pull_request_template.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
## Description of the change
|
2
2
|
|
3
3
|
> Description here
|
4
|
+
|
4
5
|
## Type of change
|
5
6
|
- [ ] Bug fix (non-breaking change that fixes an issue)
|
6
7
|
- [ ] New feature (non-breaking change that adds functionality)
|
@@ -8,7 +9,8 @@
|
|
8
9
|
|
9
10
|
## Related issues
|
10
11
|
|
11
|
-
> All PRs at Merge must be backed by an Asana ticket.
|
12
|
+
> All PRs at Merge must be backed by an Asana ticket.
|
13
|
+
|
12
14
|
## Checklists
|
13
15
|
|
14
16
|
### Development
|
@@ -34,6 +34,7 @@ describe 'AccountDetailsApi' do
|
|
34
34
|
|
35
35
|
# unit tests for account_details_retrieve
|
36
36
|
# Get details for a linked account.
|
37
|
+
# @param x_account_token Token identifying the end user.
|
37
38
|
# @param [Hash] opts the optional parameters
|
38
39
|
# @return [AccountDetails]
|
39
40
|
describe 'account_details_retrieve test' do
|
@@ -36,12 +36,11 @@ describe 'BankInfoApi' do
|
|
36
36
|
# Returns a list of `BankInfo` objects.
|
37
37
|
# @param x_account_token Token identifying the end user.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [String] :account_type
|
40
|
-
# @option opts [String] :bank_name
|
39
|
+
# @option opts [String] :account_type If provided, will only return BankInfo's with this account type. Options: ('SAVINGS', 'CHECKING')
|
40
|
+
# @option opts [String] :bank_name If provided, will only return BankInfo's with this bank name.
|
41
41
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
42
42
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
43
43
|
# @option opts [String] :cursor The pagination cursor value.
|
44
|
-
# @option opts [String] :employee If provided, will only return bank accounts for this employee.
|
45
44
|
# @option opts [String] :employee_id If provided, will only return bank accounts for this employee.
|
46
45
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
47
46
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
@@ -50,7 +49,6 @@ describe 'BankInfoApi' do
|
|
50
49
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
51
50
|
# @option opts [String] :order_by Overrides the default ordering for this endpoint.
|
52
51
|
# @option opts [Integer] :page_size Number of results to return per page.
|
53
|
-
# @option opts [Time] :remote_created_at
|
54
52
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
55
53
|
# @return [PaginatedBankInfoList]
|
56
54
|
describe 'bank_info_list test' do
|
@@ -32,6 +32,33 @@ describe 'EmployeesApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for employees_create
|
36
|
+
# Creates an `Employee` object with the given values.
|
37
|
+
# @param x_account_token Token identifying the end user.
|
38
|
+
# @param employee_endpoint_request
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
|
41
|
+
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
42
|
+
# @return [EmployeeResponse]
|
43
|
+
describe 'employees_create test' do
|
44
|
+
it 'should work' do
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# unit tests for employees_ignore_create
|
50
|
+
# 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.
|
51
|
+
# @param x_account_token Token identifying the end user.
|
52
|
+
# @param model_id
|
53
|
+
# @param ignore_common_model_request
|
54
|
+
# @param [Hash] opts the optional parameters
|
55
|
+
# @return [IgnoreCommonModel]
|
56
|
+
describe 'employees_ignore_create test' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
35
62
|
# unit tests for employees_list
|
36
63
|
# Returns a list of `Employee` objects.
|
37
64
|
# @param x_account_token Token identifying the end user.
|
@@ -61,6 +88,17 @@ describe 'EmployeesApi' do
|
|
61
88
|
end
|
62
89
|
end
|
63
90
|
|
91
|
+
# unit tests for employees_meta_post_retrieve
|
92
|
+
# Returns metadata for `Employee` POSTs.
|
93
|
+
# @param x_account_token Token identifying the end user.
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [MetaResponse]
|
96
|
+
describe 'employees_meta_post_retrieve test' do
|
97
|
+
it 'should work' do
|
98
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
64
102
|
# unit tests for employees_retrieve
|
65
103
|
# Returns an `Employee` object with the given `id`.
|
66
104
|
# @param x_account_token Token identifying the end user.
|
@@ -0,0 +1,68 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for MergeHRISClient::GroupsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'GroupsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = MergeHRISClient::GroupsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of GroupsApi' do
|
30
|
+
it 'should create an instance of GroupsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(MergeHRISClient::GroupsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for groups_list
|
36
|
+
# Returns a list of `Group` objects.
|
37
|
+
# @param x_account_token Token identifying the end user.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
40
|
+
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
|
+
# @option opts [String] :cursor The pagination cursor value.
|
42
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
43
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
44
|
+
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
45
|
+
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
46
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
47
|
+
# @option opts [String] :remote_id The API provider's ID for the given object.
|
48
|
+
# @return [PaginatedGroupList]
|
49
|
+
describe 'groups_list test' do
|
50
|
+
it 'should work' do
|
51
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# unit tests for groups_retrieve
|
56
|
+
# Returns a `Group` object with the given `id`.
|
57
|
+
# @param x_account_token Token identifying the end user.
|
58
|
+
# @param id
|
59
|
+
# @param [Hash] opts the optional parameters
|
60
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
61
|
+
# @return [Group]
|
62
|
+
describe 'groups_retrieve test' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
data/spec/api/issues_api_spec.rb
CHANGED
@@ -39,8 +39,12 @@ describe 'IssuesApi' do
|
|
39
39
|
# @option opts [String] :cursor The pagination cursor value.
|
40
40
|
# @option opts [String] :end_date If included, will only include issues whose most recent action occurred before this time
|
41
41
|
# @option opts [String] :end_user_organization_name
|
42
|
+
# @option opts [Time] :first_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
|
43
|
+
# @option opts [Time] :first_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
42
44
|
# @option opts [String] :include_muted If True, will include muted issues
|
43
45
|
# @option opts [String] :integration_name
|
46
|
+
# @option opts [Time] :last_incident_time_after If provided, will only return issues whose first incident time was after this datetime.
|
47
|
+
# @option opts [Time] :last_incident_time_before If provided, will only return issues whose first incident time was before this datetime.
|
44
48
|
# @option opts [Integer] :page_size Number of results to return per page.
|
45
49
|
# @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
|
46
50
|
# @option opts [String] :status
|
@@ -37,6 +37,7 @@ describe 'TimeOffApi' do
|
|
37
37
|
# @param x_account_token Token identifying the end user.
|
38
38
|
# @param time_off_endpoint_request
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
|
40
41
|
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
41
42
|
# @return [TimeOffResponse]
|
42
43
|
describe 'time_off_create test' do
|
@@ -70,6 +71,17 @@ describe 'TimeOffApi' do
|
|
70
71
|
end
|
71
72
|
end
|
72
73
|
|
74
|
+
# unit tests for time_off_meta_post_retrieve
|
75
|
+
# Returns metadata for `TimeOff` POSTs.
|
76
|
+
# @param x_account_token Token identifying the end user.
|
77
|
+
# @param [Hash] opts the optional parameters
|
78
|
+
# @return [MetaResponse]
|
79
|
+
describe 'time_off_meta_post_retrieve test' do
|
80
|
+
it 'should work' do
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
73
85
|
# unit tests for time_off_retrieve
|
74
86
|
# Returns a `TimeOff` object with the given `id`.
|
75
87
|
# @param x_account_token Token identifying the end user.
|
@@ -67,6 +67,12 @@ describe MergeHRISClient::AccountDetailsAndActions do
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
+
describe 'test attribute "webhook_listener_url"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
70
76
|
describe 'test attribute "integration"' do
|
71
77
|
it 'should work' do
|
72
78
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -37,6 +37,12 @@ describe MergeHRISClient::AccountDetails do
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
describe 'test attribute "integration_slug"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
40
46
|
describe 'test attribute "category"' do
|
41
47
|
it 'should work' do
|
42
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -67,4 +73,10 @@ describe MergeHRISClient::AccountDetails do
|
|
67
73
|
end
|
68
74
|
end
|
69
75
|
|
76
|
+
describe 'test attribute "webhook_listener_url"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
70
82
|
end
|
@@ -49,6 +49,12 @@ describe MergeHRISClient::DataPassthroughRequest do
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
+
describe 'test attribute "multipart_form_data"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
52
58
|
describe 'test attribute "headers"' do
|
53
59
|
it 'should work' do
|
54
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -0,0 +1,46 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MergeHRISClient::DebugModeLog
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MergeHRISClient::DebugModeLog do
|
21
|
+
let(:instance) { MergeHRISClient::DebugModeLog.new }
|
22
|
+
|
23
|
+
describe 'test an instance of DebugModeLog' do
|
24
|
+
it 'should create an instance of DebugModeLog' do
|
25
|
+
expect(instance).to be_instance_of(MergeHRISClient::DebugModeLog)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "log_id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "dashboard_view"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "log_summary"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MergeHRISClient::DebugModelLogSummary
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MergeHRISClient::DebugModelLogSummary do
|
21
|
+
let(:instance) { MergeHRISClient::DebugModelLogSummary.new }
|
22
|
+
|
23
|
+
describe 'test an instance of DebugModelLogSummary' do
|
24
|
+
it 'should create an instance of DebugModelLogSummary' do
|
25
|
+
expect(instance).to be_instance_of(MergeHRISClient::DebugModelLogSummary)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "url"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "method"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "status_code"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MergeHRISClient::EarningTypeEnum
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MergeHRISClient::EarningTypeEnum do
|
21
|
+
let(:instance) { MergeHRISClient::EarningTypeEnum.new }
|
22
|
+
|
23
|
+
describe 'test an instance of EarningTypeEnum' do
|
24
|
+
it 'should create an instance of EarningTypeEnum' do
|
25
|
+
expect(instance).to be_instance_of(MergeHRISClient::EarningTypeEnum)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MergeHRISClient::EmployeeEndpointRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MergeHRISClient::EmployeeEndpointRequest do
|
21
|
+
let(:instance) { MergeHRISClient::EmployeeEndpointRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of EmployeeEndpointRequest' do
|
24
|
+
it 'should create an instance of EmployeeEndpointRequest' do
|
25
|
+
expect(instance).to be_instance_of(MergeHRISClient::EmployeeEndpointRequest)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "model"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|