merge_hris_client 1.0.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +59 -19
- data/docs/AccountDetails.md +30 -0
- data/docs/AccountDetailsAndActions.md +32 -0
- data/docs/AccountDetailsAndActionsIntegration.md +32 -0
- data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
- data/docs/AccountDetailsApi.md +76 -0
- data/docs/AccountIntegration.md +4 -4
- data/docs/AccountTokenApi.md +2 -2
- data/docs/AccountTypeEnum.md +15 -0
- data/docs/AvailableActionsApi.md +2 -2
- data/docs/BankInfo.md +34 -0
- data/docs/BankInfoApi.md +189 -0
- data/docs/Benefit.md +2 -2
- data/docs/BenefitsApi.md +6 -82
- data/docs/CategoriesEnum.md +15 -0
- data/docs/{StateEnum.md → CategoryEnum.md} +2 -2
- data/docs/CompaniesApi.md +6 -4
- data/docs/DataPassthroughRequest.md +7 -3
- data/docs/DebugModeLog.md +22 -0
- data/docs/DebugModelLogSummary.md +22 -0
- data/docs/Deduction.md +2 -2
- data/docs/DeductionsApi.md +179 -0
- data/docs/DeleteAccountApi.md +3 -2
- data/docs/Earning.md +3 -3
- data/docs/EarningTypeEnum.md +15 -0
- data/docs/Employee.md +20 -14
- data/docs/EmployeeEndpointRequest.md +18 -0
- data/docs/EmployeePayrollRun.md +5 -5
- data/docs/EmployeePayrollRunsApi.md +17 -7
- data/docs/EmployeeRequest.md +21 -13
- data/docs/EmployeeResponse.md +24 -0
- data/docs/EmployeesApi.md +101 -17
- data/docs/Employment.md +3 -1
- data/docs/EmploymentsApi.md +12 -82
- data/docs/EncodingEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +4 -2
- data/docs/ErrorValidationProblem.md +24 -0
- data/docs/ForceResyncApi.md +79 -0
- 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/IgnoreCommonModelRequest.md +20 -0
- data/docs/IssuesApi.md +16 -14
- data/docs/LinkTokenApi.md +3 -3
- data/docs/LinkedAccountsApi.md +103 -0
- data/docs/Location.md +4 -0
- data/docs/LocationTypeEnum.md +15 -0
- data/docs/LocationsApi.md +6 -4
- data/docs/MultipartFormFieldRequest.md +26 -0
- data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
- data/docs/PaginatedBankInfoList.md +22 -0
- data/docs/PaginatedDeductionList.md +22 -0
- data/docs/PaginatedGroupList.md +22 -0
- data/docs/PaginatedIssueList.md +2 -2
- data/docs/PaginatedPayGroupList.md +22 -0
- data/docs/PaginatedSyncStatusList.md +2 -2
- data/docs/PassthroughApi.md +2 -2
- data/docs/PayGroup.md +24 -0
- data/docs/PayGroupsApi.md +177 -0
- data/docs/PayrollRun.md +3 -3
- data/docs/PayrollRunsApi.md +17 -5
- data/docs/PolicyTypeEnum.md +15 -0
- data/docs/{NullEnum.md → ReasonEnum.md} +2 -2
- data/docs/RegenerateKeyApi.md +2 -2
- data/docs/RequestFormatEnum.md +15 -0
- data/docs/SyncStatusApi.md +3 -75
- data/docs/Tax.md +2 -2
- data/docs/Team.md +1 -1
- data/docs/TeamsApi.md +12 -6
- data/docs/TimeOff.md +5 -5
- data/docs/TimeOffApi.md +92 -6
- data/docs/TimeOffBalance.md +5 -3
- data/docs/{TimeOffBalanceApi.md → TimeOffBalancesApi.md} +26 -22
- data/docs/TimeOffEndpointRequest.md +18 -0
- data/docs/TimeOffRequest.md +36 -0
- data/docs/TimeOffResponse.md +24 -0
- data/docs/ValidationProblemSource.md +18 -0
- data/docs/WarningValidationProblem.md +24 -0
- data/lib/merge_hris_client/api/account_details_api.rb +77 -0
- data/lib/merge_hris_client/api/bank_info_api.rb +217 -0
- data/lib/merge_hris_client/api/benefits_api.rb +3 -69
- data/lib/merge_hris_client/api/companies_api.rb +3 -0
- data/lib/merge_hris_client/api/deductions_api.rb +185 -0
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +17 -2
- data/lib/merge_hris_client/api/employees_api.rb +103 -15
- data/lib/merge_hris_client/api/employments_api.rb +24 -69
- data/lib/merge_hris_client/api/force_resync_api.rb +84 -0
- data/lib/merge_hris_client/api/groups_api.rb +182 -0
- data/lib/merge_hris_client/api/issues_api.rb +10 -10
- data/lib/merge_hris_client/api/linked_accounts_api.rb +117 -0
- data/lib/merge_hris_client/api/locations_api.rb +3 -0
- data/lib/merge_hris_client/api/pay_groups_api.rb +182 -0
- data/lib/merge_hris_client/api/payroll_runs_api.rb +22 -0
- data/lib/merge_hris_client/api/sync_status_api.rb +4 -66
- data/lib/merge_hris_client/api/teams_api.rb +17 -0
- data/lib/merge_hris_client/api/time_off_api.rb +95 -2
- data/lib/merge_hris_client/api/time_off_balances_api.rb +206 -0
- data/lib/merge_hris_client/configuration.rb +6 -4
- data/lib/merge_hris_client/models/account_details.rb +273 -0
- data/lib/merge_hris_client/models/account_details_and_actions.rb +302 -0
- data/lib/merge_hris_client/models/account_details_and_actions_integration.rb +310 -0
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +37 -0
- data/lib/merge_hris_client/models/account_integration.rb +6 -28
- data/lib/merge_hris_client/models/account_token.rb +1 -1
- data/lib/merge_hris_client/models/account_type_enum.rb +36 -0
- data/lib/merge_hris_client/models/available_actions.rb +1 -1
- data/lib/merge_hris_client/models/bank_info.rb +322 -0
- data/lib/merge_hris_client/models/benefit.rb +2 -3
- data/lib/merge_hris_client/models/categories_enum.rb +37 -0
- data/lib/merge_hris_client/models/category_enum.rb +37 -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 +79 -9
- 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 +1 -2
- data/lib/merge_hris_client/models/earning.rb +4 -8
- data/lib/merge_hris_client/models/earning_type_enum.rb +38 -0
- data/lib/merge_hris_client/models/employee.rb +43 -14
- 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 +55 -14
- data/lib/merge_hris_client/models/employee_response.rb +266 -0
- data/lib/merge_hris_client/models/employment.rb +12 -2
- 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 +113 -28
- data/lib/merge_hris_client/models/error_validation_problem.rb +260 -0
- 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 +20 -1
- data/lib/merge_hris_client/models/{benefit_request.rb → group.rb} +48 -49
- 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/location.rb +24 -2
- data/lib/merge_hris_client/models/location_type_enum.rb +36 -0
- data/lib/merge_hris_client/models/marital_status_enum.rb +2 -2
- 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 +240 -0
- data/lib/merge_hris_client/models/paginated_bank_info_list.rb +240 -0
- 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 +240 -0
- 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 +240 -0
- 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_group.rb +253 -0
- 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 +40 -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 +20 -1
- data/lib/merge_hris_client/models/remote_key.rb +1 -1
- data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +20 -1
- data/lib/merge_hris_client/models/remote_response.rb +1 -1
- data/lib/merge_hris_client/models/request_format_enum.rb +37 -0
- data/lib/merge_hris_client/models/request_type_enum.rb +3 -1
- 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 +3 -2
- data/lib/merge_hris_client/models/tax.rb +3 -7
- data/lib/merge_hris_client/models/team.rb +1 -2
- data/lib/merge_hris_client/models/time_off.rb +1 -3
- data/lib/merge_hris_client/models/time_off_balance.rb +15 -5
- data/lib/merge_hris_client/models/time_off_endpoint_request.rb +223 -0
- data/lib/merge_hris_client/models/{employment_request.rb → time_off_request.rb} +79 -70
- data/lib/merge_hris_client/models/time_off_response.rb +266 -0
- 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 +223 -0
- data/lib/merge_hris_client/models/warning_validation_problem.rb +260 -0
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +43 -5
- data/pull_request_template.md +3 -1
- data/spec/api/account_details_api_spec.rb +45 -0
- data/spec/api/account_token_api_spec.rb +1 -1
- data/spec/api/available_actions_api_spec.rb +1 -1
- data/spec/api/bank_info_api_spec.rb +74 -0
- data/spec/api/benefits_api_spec.rb +4 -1
- data/spec/api/companies_api_spec.rb +4 -1
- data/spec/api/deductions_api_spec.rb +69 -0
- data/spec/api/employee_payroll_runs_api_spec.rb +9 -2
- data/spec/api/employees_api_spec.rb +35 -1
- data/spec/api/employments_api_spec.rb +7 -1
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/groups_api_spec.rb +68 -0
- data/spec/api/issues_api_spec.rb +5 -5
- data/spec/api/link_token_api_spec.rb +2 -2
- data/spec/api/linked_accounts_api_spec.rb +57 -0
- data/spec/api/locations_api_spec.rb +4 -1
- data/spec/api/passthrough_api_spec.rb +2 -3
- data/spec/api/pay_groups_api_spec.rb +68 -0
- data/spec/api/payroll_runs_api_spec.rb +9 -1
- data/spec/api/regenerate_key_api_spec.rb +2 -2
- data/spec/api/sync_status_api_spec.rb +2 -13
- data/spec/api/teams_api_spec.rb +7 -1
- data/spec/api/time_off_api_spec.rb +21 -2
- data/spec/api/{time_off_balance_api_spec.rb → time_off_balances_api_spec.rb} +13 -11
- data/spec/models/account_details_and_actions_integration_spec.rb +76 -0
- data/spec/models/account_details_and_actions_spec.rb +76 -0
- data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
- data/spec/models/account_details_spec.rb +70 -0
- data/spec/models/account_integration_spec.rb +7 -1
- data/spec/models/account_token_spec.rb +7 -1
- data/spec/models/account_type_enum_spec.rb +28 -0
- data/spec/models/available_actions_spec.rb +13 -1
- data/spec/models/{employment_request_spec.rb → bank_info_spec.rb} +15 -15
- data/spec/models/benefit_plan_type_enum_spec.rb +1 -1
- data/spec/models/benefit_spec.rb +7 -1
- data/spec/models/categories_enum_spec.rb +28 -0
- data/spec/models/category_enum_spec.rb +28 -0
- data/spec/models/company_spec.rb +7 -1
- data/spec/models/country_enum_spec.rb +1 -1
- data/spec/models/data_passthrough_request_spec.rb +13 -1
- data/spec/models/debug_mode_log_spec.rb +46 -0
- data/spec/models/debug_model_log_summary_spec.rb +46 -0
- data/spec/models/deduction_spec.rb +7 -1
- data/spec/models/earning_spec.rb +7 -1
- data/spec/models/earning_type_enum_spec.rb +28 -0
- data/spec/models/{remote_key_for_regeneration_spec.rb → employee_endpoint_request_spec.rb} +8 -8
- data/spec/models/employee_payroll_run_spec.rb +7 -1
- data/spec/models/employee_request_spec.rb +30 -0
- data/spec/models/{end_user_details_spec.rb → employee_response_spec.rb} +11 -15
- data/spec/models/employee_spec.rb +37 -1
- data/spec/models/employment_spec.rb +13 -1
- data/spec/models/employment_status_enum_spec.rb +1 -1
- data/spec/models/employment_type_enum_spec.rb +1 -1
- data/spec/models/encoding_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +13 -5
- data/spec/models/error_validation_problem_spec.rb +52 -0
- data/spec/models/ethnicity_enum_spec.rb +1 -1
- data/spec/models/flsa_status_enum_spec.rb +1 -1
- data/spec/models/gender_enum_spec.rb +1 -1
- data/spec/models/{benefit_request_spec.rb → group_spec.rb} +12 -12
- data/spec/models/group_type_enum_spec.rb +28 -0
- data/spec/models/ignore_common_model_request_spec.rb +40 -0
- data/spec/models/ignore_common_model_spec.rb +40 -0
- data/spec/models/link_token_spec.rb +1 -1
- data/spec/models/location_spec.rb +19 -1
- data/spec/models/location_type_enum_spec.rb +28 -0
- data/spec/models/marital_status_enum_spec.rb +1 -1
- data/spec/models/method_enum_spec.rb +1 -1
- data/spec/models/model_operation_spec.rb +13 -1
- data/spec/models/multipart_form_field_request_spec.rb +58 -0
- data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
- data/spec/models/paginated_bank_info_list_spec.rb +46 -0
- data/spec/models/paginated_benefit_list_spec.rb +1 -1
- data/spec/models/paginated_company_list_spec.rb +1 -1
- data/spec/models/paginated_deduction_list_spec.rb +46 -0
- data/spec/models/paginated_employee_list_spec.rb +1 -1
- data/spec/models/paginated_employee_payroll_run_list_spec.rb +1 -1
- data/spec/models/paginated_employment_list_spec.rb +1 -1
- data/spec/models/paginated_group_list_spec.rb +46 -0
- data/spec/models/paginated_location_list_spec.rb +1 -1
- data/spec/models/paginated_pay_group_list_spec.rb +46 -0
- data/spec/models/paginated_payroll_run_list_spec.rb +1 -1
- data/spec/models/paginated_team_list_spec.rb +1 -1
- data/spec/models/paginated_time_off_list_spec.rb +1 -1
- data/spec/models/pay_currency_enum_spec.rb +1 -1
- data/spec/models/pay_frequency_enum_spec.rb +1 -1
- data/spec/models/{data_passthrough_spec.rb → pay_group_spec.rb} +11 -11
- data/spec/models/pay_period_enum_spec.rb +1 -1
- data/spec/models/payroll_run_spec.rb +7 -1
- data/spec/models/policy_type_enum_spec.rb +28 -0
- data/spec/models/{state_enum_spec.rb → reason_enum_spec.rb} +7 -7
- data/spec/models/remote_data_spec.rb +1 -1
- data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
- data/spec/models/remote_key_spec.rb +1 -1
- data/spec/models/remote_response_spec.rb +1 -1
- data/spec/models/request_format_enum_spec.rb +28 -0
- data/spec/models/request_type_enum_spec.rb +1 -1
- data/spec/models/run_state_enum_spec.rb +1 -1
- data/spec/models/run_type_enum_spec.rb +1 -1
- data/spec/models/tax_spec.rb +7 -1
- data/spec/models/team_spec.rb +13 -1
- data/spec/models/time_off_balance_spec.rb +6 -0
- data/spec/models/time_off_endpoint_request_spec.rb +34 -0
- data/spec/models/time_off_request_spec.rb +88 -0
- data/spec/models/time_off_response_spec.rb +52 -0
- data/spec/models/time_off_spec.rb +19 -1
- data/spec/models/time_off_status_enum_spec.rb +1 -1
- data/spec/models/type_enum_spec.rb +1 -1
- data/spec/models/units_enum_spec.rb +1 -1
- data/spec/models/validation_problem_source_spec.rb +34 -0
- data/spec/models/warning_validation_problem_spec.rb +52 -0
- data/test_ruby.rb +11 -14
- metadata +175 -29
- data/docs/BenefitRequest.md +0 -28
- data/docs/DataPassthrough.md +0 -24
- data/docs/EmploymentRequest.md +0 -34
- data/docs/EndUserDetails.md +0 -24
- data/docs/RemoteKeyForRegeneration.md +0 -18
- data/merge_hris_client-1.0.0.gem +0 -0
- data/merge_hris_client-1.0.1.gem +0 -0
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,13 +39,19 @@ describe 'EmployeePayrollRunsApi' do
|
|
39
39
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
40
40
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
|
-
# @option opts [String] :employee_id If provided, will only return
|
42
|
+
# @option opts [String] :employee_id If provided, will only return employee payroll runs for this employee.
|
43
|
+
# @option opts [Time] :ended_after If provided, will only return employee payroll runs ended after this datetime.
|
44
|
+
# @option opts [Time] :ended_before If provided, will only return employee payroll runs ended before this datetime.
|
43
45
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
46
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
47
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
44
48
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
45
49
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
46
50
|
# @option opts [Integer] :page_size Number of results to return per page.
|
47
51
|
# @option opts [String] :payroll_run_id If provided, will only return employee payroll runs for this employee.
|
48
52
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
53
|
+
# @option opts [Time] :started_after If provided, will only return employee payroll runs started after this datetime.
|
54
|
+
# @option opts [Time] :started_before If provided, will only return employee payroll runs started before this datetime.
|
49
55
|
# @return [PaginatedEmployeePayrollRunList]
|
50
56
|
describe 'employee_payroll_runs_list test' do
|
51
57
|
it 'should work' do
|
@@ -59,6 +65,7 @@ describe 'EmployeePayrollRunsApi' do
|
|
59
65
|
# @param id
|
60
66
|
# @param [Hash] opts the optional parameters
|
61
67
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
68
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
62
69
|
# @return [EmployeePayrollRun]
|
63
70
|
describe 'employee_payroll_runs_retrieve test' do
|
64
71
|
it 'should work' do
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,6 +32,32 @@ 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 model_id
|
52
|
+
# @param ignore_common_model_request
|
53
|
+
# @param [Hash] opts the optional parameters
|
54
|
+
# @return [IgnoreCommonModel]
|
55
|
+
describe 'employees_ignore_create test' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
35
61
|
# unit tests for employees_list
|
36
62
|
# Returns a list of `Employee` objects.
|
37
63
|
# @param x_account_token Token identifying the end user.
|
@@ -41,12 +67,18 @@ describe 'EmployeesApi' do
|
|
41
67
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
42
68
|
# @option opts [String] :cursor The pagination cursor value.
|
43
69
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
70
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
71
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
72
|
+
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
44
73
|
# @option opts [String] :manager_id If provided, will only return employees for this manager.
|
45
74
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
46
75
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
47
76
|
# @option opts [Integer] :page_size Number of results to return per page.
|
77
|
+
# @option opts [String] :pay_group_id If provided, will only return employees for this pay group
|
78
|
+
# @option opts [String] :personal_email If provided, will only return Employees with this personal email
|
48
79
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
49
80
|
# @option opts [String] :team_id If provided, will only return employees for this team.
|
81
|
+
# @option opts [String] :work_email If provided, will only return Employees with this work email
|
50
82
|
# @option opts [String] :work_location_id If provided, will only return employees for this location.
|
51
83
|
# @return [PaginatedEmployeeList]
|
52
84
|
describe 'employees_list test' do
|
@@ -61,6 +93,8 @@ describe 'EmployeesApi' do
|
|
61
93
|
# @param id
|
62
94
|
# @param [Hash] opts the optional parameters
|
63
95
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
96
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
97
|
+
# @option opts [Boolean] :include_sensitive_fields Whether to include sensitive fields (such as social security numbers) in the response.
|
64
98
|
# @return [Employee]
|
65
99
|
describe 'employees_retrieve test' do
|
66
100
|
it 'should work' do
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -40,8 +40,12 @@ describe 'EmploymentsApi' do
|
|
40
40
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
42
|
# @option opts [String] :employee_id If provided, will only return employments for this employee.
|
43
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
44
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
45
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
43
46
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
44
47
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
48
|
+
# @option opts [String] :order_by Overrides the default ordering for this endpoint.
|
45
49
|
# @option opts [Integer] :page_size Number of results to return per page.
|
46
50
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
47
51
|
# @return [PaginatedEmploymentList]
|
@@ -56,6 +60,8 @@ describe 'EmploymentsApi' do
|
|
56
60
|
# @param x_account_token Token identifying the end user.
|
57
61
|
# @param id
|
58
62
|
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
64
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
59
65
|
# @return [Employment]
|
60
66
|
describe 'employments_retrieve test' do
|
61
67
|
it 'should work' do
|
@@ -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
|
+
|
16
|
+
# Unit tests for MergeHRISClient::ForceResyncApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ForceResyncApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = MergeHRISClient::ForceResyncApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ForceResyncApi' do
|
30
|
+
it 'should create an instance of ForceResyncApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(MergeHRISClient::ForceResyncApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for sync_status_resync_create
|
36
|
+
# Force re-sync of all models. This is only available for organizations on Merge's Grow and Expand plans.
|
37
|
+
# @param x_account_token Token identifying the end user.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [SyncStatus]
|
40
|
+
describe 'sync_status_resync_create test' 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,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
@@ -35,15 +35,15 @@ describe 'IssuesApi' do
|
|
35
35
|
# unit tests for issues_list
|
36
36
|
# Gets issues.
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @option opts [String] :account_token
|
39
|
-
# @option opts [
|
38
|
+
# @option opts [String] :account_token
|
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
|
-
# @option opts [String] :end_user_organization_name
|
41
|
+
# @option opts [String] :end_user_organization_name
|
42
42
|
# @option opts [String] :include_muted If True, will include muted issues
|
43
|
-
# @option opts [String] :integration_name
|
43
|
+
# @option opts [String] :integration_name
|
44
44
|
# @option opts [Integer] :page_size Number of results to return per page.
|
45
45
|
# @option opts [String] :start_date If included, will only include issues whose most recent action occurred after this time
|
46
|
-
# @option opts [String] :status
|
46
|
+
# @option opts [String] :status
|
47
47
|
# @return [PaginatedIssueList]
|
48
48
|
describe 'issues_list test' do
|
49
49
|
it 'should work' do
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,7 +34,7 @@ describe 'LinkTokenApi' do
|
|
34
34
|
|
35
35
|
# unit tests for link_token_create
|
36
36
|
# Creates a link token to be used when linking a new end user.
|
37
|
-
# @param
|
37
|
+
# @param end_user_details_request
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [LinkToken]
|
40
40
|
describe 'link_token_create test' do
|
@@ -0,0 +1,57 @@
|
|
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::LinkedAccountsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'LinkedAccountsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = MergeHRISClient::LinkedAccountsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of LinkedAccountsApi' do
|
30
|
+
it 'should create an instance of LinkedAccountsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(MergeHRISClient::LinkedAccountsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for linked_accounts_list
|
36
|
+
# List linked accounts for your organization.
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [String] :category
|
39
|
+
# @option opts [String] :cursor The pagination cursor value.
|
40
|
+
# @option opts [String] :end_user_email_address
|
41
|
+
# @option opts [String] :end_user_organization_name
|
42
|
+
# @option opts [String] :end_user_origin_id
|
43
|
+
# @option opts [String] :end_user_origin_ids Comma-separated list of EndUser origin IDs, making it possible to specify multiple EndUsers at once
|
44
|
+
# @option opts [String] :id
|
45
|
+
# @option opts [String] :ids Comma-separated list of LinkedAccount IDs, making it possible to specify multiple LinkedAccounts at once
|
46
|
+
# @option opts [String] :integration_name
|
47
|
+
# @option opts [String] :is_test_account If included, will only include test linked accounts. If not included, will only include non-test linked accounts
|
48
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
49
|
+
# @option opts [String] :status Filter by status. Options: `COMPLETE`, `INCOMPLETE`, `RELINK_NEEDED`
|
50
|
+
# @return [PaginatedAccountDetailsAndActionsList]
|
51
|
+
describe 'linked_accounts_list test' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,6 +39,8 @@ describe 'LocationsApi' do
|
|
39
39
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
40
40
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
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.
|
42
44
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
43
45
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
44
46
|
# @option opts [Integer] :page_size Number of results to return per page.
|
@@ -55,6 +57,7 @@ describe 'LocationsApi' do
|
|
55
57
|
# @param x_account_token Token identifying the end user.
|
56
58
|
# @param id
|
57
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.
|
58
61
|
# @return [Location]
|
59
62
|
describe 'locations_retrieve test' do
|
60
63
|
it 'should work' do
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -35,9 +35,8 @@ describe 'PassthroughApi' do
|
|
35
35
|
# unit tests for passthrough_create
|
36
36
|
# Pull data from an endpoint not currently supported by Merge.
|
37
37
|
# @param x_account_token Token identifying the end user.
|
38
|
-
# @param
|
38
|
+
# @param data_passthrough_request
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
41
40
|
# @return [RemoteResponse]
|
42
41
|
describe 'passthrough_create test' do
|
43
42
|
it 'should work' do
|
@@ -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::PayGroupsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'PayGroupsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = MergeHRISClient::PayGroupsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of PayGroupsApi' do
|
30
|
+
it 'should create an instance of PayGroupsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(MergeHRISClient::PayGroupsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for pay_groups_list
|
36
|
+
# Returns a list of `PayGroup` 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 [PaginatedPayGroupList]
|
49
|
+
describe 'pay_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 pay_groups_retrieve
|
56
|
+
# Returns a `PayGroup` 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 [PayGroup]
|
62
|
+
describe 'pay_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
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,10 +39,17 @@ describe 'PayrollRunsApi' do
|
|
39
39
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
40
40
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
|
+
# @option opts [Time] :ended_after If provided, will only return payroll runs ended after this datetime.
|
43
|
+
# @option opts [Time] :ended_before If provided, will only return payroll runs ended before this datetime.
|
44
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
45
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
42
46
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
43
47
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
44
48
|
# @option opts [Integer] :page_size Number of results to return per page.
|
45
49
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
50
|
+
# @option opts [String] :run_type If provided, will only return PayrollRun's with this status. Options: ('REGULAR', 'OFF_CYCLE', 'CORRECTION', 'TERMINATION', 'SIGN_ON_BONUS')
|
51
|
+
# @option opts [Time] :started_after If provided, will only return payroll runs started after this datetime.
|
52
|
+
# @option opts [Time] :started_before If provided, will only return payroll runs started before this datetime.
|
46
53
|
# @return [PaginatedPayrollRunList]
|
47
54
|
describe 'payroll_runs_list test' do
|
48
55
|
it 'should work' do
|
@@ -55,6 +62,7 @@ describe 'PayrollRunsApi' do
|
|
55
62
|
# @param x_account_token Token identifying the end user.
|
56
63
|
# @param id
|
57
64
|
# @param [Hash] opts the optional parameters
|
65
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
58
66
|
# @return [PayrollRun]
|
59
67
|
describe 'payroll_runs_retrieve test' do
|
60
68
|
it 'should work' do
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -34,7 +34,7 @@ describe 'RegenerateKeyApi' do
|
|
34
34
|
|
35
35
|
# unit tests for regenerate_key_create
|
36
36
|
# Exchange remote keys.
|
37
|
-
# @param
|
37
|
+
# @param remote_key_for_regeneration_request
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [RemoteKey]
|
40
40
|
describe 'regenerate_key_create test' do
|
@@ -33,10 +33,10 @@ describe 'SyncStatusApi' do
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# unit tests for sync_status_list
|
36
|
-
# Get syncing status.
|
36
|
+
# Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`, `SYNCING`
|
37
37
|
# @param x_account_token Token identifying the end user.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [
|
39
|
+
# @option opts [String] :cursor The pagination cursor value.
|
40
40
|
# @option opts [Integer] :page_size Number of results to return per page.
|
41
41
|
# @return [PaginatedSyncStatusList]
|
42
42
|
describe 'sync_status_list test' do
|
@@ -45,15 +45,4 @@ describe 'SyncStatusApi' do
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
-
# unit tests for sync_status_resync_create
|
49
|
-
# Force resync of all models.
|
50
|
-
# @param x_account_token Token identifying the end user.
|
51
|
-
# @param [Hash] opts the optional parameters
|
52
|
-
# @return [SyncStatus]
|
53
|
-
describe 'sync_status_resync_create test' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
48
|
end
|
data/spec/api/teams_api_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,9 +39,13 @@ describe 'TeamsApi' do
|
|
39
39
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
40
40
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
41
|
# @option opts [String] :cursor The pagination cursor value.
|
42
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
43
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
44
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
42
45
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
43
46
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
44
47
|
# @option opts [Integer] :page_size Number of results to return per page.
|
48
|
+
# @option opts [String] :parent_team_id If provided, will only return teams with this parent team.
|
45
49
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
46
50
|
# @return [PaginatedTeamList]
|
47
51
|
describe 'teams_list test' do
|
@@ -55,6 +59,8 @@ describe 'TeamsApi' do
|
|
55
59
|
# @param x_account_token Token identifying the end user.
|
56
60
|
# @param id
|
57
61
|
# @param [Hash] opts the optional parameters
|
62
|
+
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
63
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
58
64
|
# @return [Team]
|
59
65
|
describe 'teams_retrieve test' do
|
60
66
|
it 'should work' do
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
7
7
|
Contact: hello@merge.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,6 +32,20 @@ describe 'TimeOffApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for time_off_create
|
36
|
+
# Creates a `TimeOff` object with the given values.
|
37
|
+
# @param x_account_token Token identifying the end user.
|
38
|
+
# @param time_off_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 [TimeOffResponse]
|
43
|
+
describe 'time_off_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
|
+
|
35
49
|
# unit tests for time_off_list
|
36
50
|
# Returns a list of `TimeOff` objects.
|
37
51
|
# @param x_account_token Token identifying the end user.
|
@@ -42,10 +56,14 @@ describe 'TimeOffApi' do
|
|
42
56
|
# @option opts [String] :cursor The pagination cursor value.
|
43
57
|
# @option opts [String] :employee_id If provided, will only return time off for this employee.
|
44
58
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
59
|
+
# @option opts [Boolean] :include_deleted_data Whether to include data that was deleted in the third-party service.
|
60
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
45
61
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
46
62
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
47
63
|
# @option opts [Integer] :page_size Number of results to return per page.
|
48
64
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
65
|
+
# @option opts [String] :request_type If provided, will only return TimeOff with this request type. Options: ('VACATION', 'SICK', 'PERSONAL', 'JURY_DUTY', 'VOLUNTEER', 'BEREAVEMENT')
|
66
|
+
# @option opts [String] :status If provided, will only return TimeOff with this status. Options: ('REQUESTED', 'APPROVED', 'DECLINED', 'CANCELLED', 'DELETED')
|
49
67
|
# @return [PaginatedTimeOffList]
|
50
68
|
describe 'time_off_list test' do
|
51
69
|
it 'should work' do
|
@@ -54,11 +72,12 @@ describe 'TimeOffApi' do
|
|
54
72
|
end
|
55
73
|
|
56
74
|
# unit tests for time_off_retrieve
|
57
|
-
# Returns
|
75
|
+
# Returns a `TimeOff` object with the given `id`.
|
58
76
|
# @param x_account_token Token identifying the end user.
|
59
77
|
# @param id
|
60
78
|
# @param [Hash] opts the optional parameters
|
61
79
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
80
|
+
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
62
81
|
# @return [TimeOff]
|
63
82
|
describe 'time_off_retrieve test' do
|
64
83
|
it 'should work' do
|