merge_hris_client 2.0.4 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +67 -10
- data/docs/AccountDetails.md +5 -1
- data/docs/AccountDetailsAndActions.md +9 -3
- data/docs/AccountIntegration.md +10 -2
- data/docs/AdvancedMetadata.md +28 -0
- data/docs/AsyncPassthroughApi.md +155 -0
- data/docs/AsyncPassthroughReciept.md +18 -0
- data/docs/AuditLogEvent.md +32 -0
- data/docs/AuditTrailApi.md +91 -0
- data/docs/BankInfo.md +11 -5
- data/docs/BankInfoApi.md +17 -13
- data/docs/Benefit.md +17 -5
- data/docs/BenefitPlanTypeEnum.md +15 -0
- data/docs/BenefitsApi.md +6 -6
- data/docs/CommonModelScopeAPI.md +18 -0
- data/docs/CommonModelScopeData.md +20 -0
- data/docs/CommonModelScopes.md +20 -0
- data/docs/CommonModelScopesApi.md +157 -0
- data/docs/CommonModelScopesBodyRequest.md +22 -0
- data/docs/CommonModelScopesDisabledModels.md +26 -0
- data/docs/CommonModelScopesDisabledModelsEnabledActionsEnum.md +15 -0
- data/docs/CommonModelScopesPostInnerDeserializerRequest.md +22 -0
- data/docs/CommonModelScopesUpdateSerializer.md +18 -0
- data/docs/CompaniesApi.md +4 -4
- data/docs/Company.md +9 -3
- data/docs/ConditionSchema.md +30 -0
- data/docs/ConditionTypeEnum.md +15 -0
- data/docs/CreateFieldMappingRequest.md +28 -0
- data/docs/DataPassthroughRequest.md +5 -5
- data/docs/DebugModelLogSummary.md +1 -1
- data/docs/Deduction.md +13 -5
- data/docs/DeleteAccountApi.md +9 -9
- data/docs/Dependent.md +52 -0
- data/docs/DependentsApi.md +181 -0
- data/docs/Earning.md +13 -5
- data/docs/Employee.md +27 -15
- data/docs/EmployeePayrollRun.md +13 -7
- data/docs/EmployeePayrollRunsApi.md +4 -4
- data/docs/EmployeeRequest.md +20 -16
- data/docs/EmployeesApi.md +37 -18
- data/docs/EmployerBenefit.md +38 -0
- data/docs/EmployerBenefitsApi.md +177 -0
- data/docs/Employment.md +16 -10
- data/docs/EmploymentsApi.md +15 -11
- data/docs/EnabledActionsEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +22 -12
- data/docs/EventTypeEnum.md +15 -0
- data/docs/ExternalTargetFieldAPI.md +22 -0
- data/docs/ExternalTargetFieldAPIResponse.md +48 -0
- data/docs/FieldMappingApi.md +455 -0
- data/docs/FieldMappingApiInstance.md +24 -0
- data/docs/FieldMappingApiInstanceRemoteField.md +22 -0
- data/docs/FieldMappingApiInstanceRemoteFieldRemoteEndpointInfo.md +22 -0
- data/docs/FieldMappingApiInstanceResponse.md +48 -0
- data/docs/FieldMappingApiInstanceTargetField.md +22 -0
- data/docs/FieldMappingInstanceResponse.md +24 -0
- data/docs/FieldPermissionDeserializer.md +20 -0
- data/docs/FieldPermissionDeserializerRequest.md +20 -0
- data/docs/ForceResyncApi.md +1 -1
- data/docs/GenerateRemoteKeyRequest.md +1 -1
- data/docs/Group.md +12 -4
- data/docs/GroupsApi.md +19 -9
- data/docs/IndividualCommonModelScopeDeserializer.md +22 -0
- data/docs/IndividualCommonModelScopeDeserializerRequest.md +22 -0
- data/docs/Issue.md +10 -8
- data/docs/IssuesApi.md +11 -9
- data/docs/LinkToken.md +4 -2
- data/docs/LinkTokenApi.md +1 -1
- data/docs/LinkedAccountCommonModelScopeDeserializerRequest.md +18 -0
- data/docs/LinkedAccountCondition.md +28 -0
- data/docs/LinkedAccountConditionRequest.md +22 -0
- data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
- data/docs/LinkedAccountsApi.md +4 -2
- data/docs/Location.md +12 -6
- data/docs/LocationsApi.md +15 -9
- data/docs/MetaResponse.md +3 -1
- data/docs/ModelPermissionDeserializer.md +18 -0
- data/docs/ModelPermissionDeserializerRequest.md +18 -0
- data/docs/MultipartFormFieldRequest.md +1 -1
- data/docs/OperatorSchema.md +20 -0
- data/docs/PaginatedAuditLogEventList.md +22 -0
- data/docs/PaginatedConditionSchemaList.md +22 -0
- data/docs/PaginatedDependentList.md +22 -0
- data/docs/PaginatedEmployerBenefitList.md +22 -0
- data/docs/PaginatedTimesheetEntryList.md +22 -0
- data/docs/PatchedEditFieldMappingRequest.md +22 -0
- data/docs/PayGroup.md +9 -3
- data/docs/PayGroupsApi.md +4 -4
- data/docs/PayrollRun.md +11 -5
- data/docs/PayrollRunsApi.md +14 -10
- data/docs/RelationshipEnum.md +15 -0
- data/docs/RemoteData.md +1 -1
- data/docs/RemoteEndpointInfo.md +22 -0
- data/docs/RemoteFieldAPI.md +28 -0
- data/docs/RemoteFieldAPIResponse.md +48 -0
- data/docs/RemoteKeyForRegenerationRequest.md +1 -1
- data/docs/RemoteResponse.md +3 -1
- data/docs/ResponseTypeEnum.md +15 -0
- data/docs/RoleEnum.md +15 -0
- data/docs/ScopesApi.md +222 -0
- data/docs/SelectiveSyncApi.md +233 -0
- data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
- data/docs/SyncStatus.md +7 -5
- data/docs/SyncStatusApi.md +1 -1
- data/docs/Tax.md +12 -4
- data/docs/Team.md +10 -4
- data/docs/TeamsApi.md +4 -4
- data/docs/TimeOff.md +15 -9
- data/docs/TimeOffApi.md +24 -12
- data/docs/TimeOffBalance.md +12 -6
- data/docs/TimeOffBalancesApi.md +15 -11
- data/docs/TimeOffRequest.md +11 -9
- data/docs/TimesheetEntriesApi.md +341 -0
- data/docs/TimesheetEntry.md +38 -0
- data/docs/TimesheetEntryEndpointRequest.md +18 -0
- data/docs/TimesheetEntryRequest.md +28 -0
- data/docs/TimesheetEntryResponse.md +24 -0
- data/lib/merge_hris_client/api/async_passthrough_api.rb +160 -0
- data/lib/merge_hris_client/api/audit_trail_api.rb +95 -0
- data/lib/merge_hris_client/api/bank_info_api.rb +26 -12
- data/lib/merge_hris_client/api/benefits_api.rb +6 -6
- data/lib/merge_hris_client/api/common_model_scopes_api.rb +146 -0
- data/lib/merge_hris_client/api/companies_api.rb +4 -4
- data/lib/merge_hris_client/api/delete_account_api.rb +7 -7
- data/lib/merge_hris_client/api/dependents_api.rb +188 -0
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +4 -4
- data/lib/merge_hris_client/api/employees_api.rb +53 -17
- data/lib/merge_hris_client/api/employer_benefits_api.rb +182 -0
- data/lib/merge_hris_client/api/employments_api.rb +24 -10
- data/lib/merge_hris_client/api/field_mapping_api.rb +424 -0
- data/lib/merge_hris_client/api/force_resync_api.rb +2 -2
- data/lib/merge_hris_client/api/groups_api.rb +31 -8
- data/lib/merge_hris_client/api/issues_api.rb +13 -10
- data/lib/merge_hris_client/api/linked_accounts_api.rb +6 -3
- data/lib/merge_hris_client/api/locations_api.rb +29 -8
- data/lib/merge_hris_client/api/pay_groups_api.rb +4 -4
- data/lib/merge_hris_client/api/payroll_runs_api.rb +24 -10
- data/lib/merge_hris_client/api/scopes_api.rb +209 -0
- data/lib/merge_hris_client/api/selective_sync_api.rb +225 -0
- data/lib/merge_hris_client/api/sync_status_api.rb +2 -2
- data/lib/merge_hris_client/api/teams_api.rb +4 -4
- data/lib/merge_hris_client/api/time_off_api.rb +38 -12
- data/lib/merge_hris_client/api/time_off_balances_api.rb +24 -10
- data/lib/merge_hris_client/api/timesheet_entries_api.rb +342 -0
- data/lib/merge_hris_client/configuration.rb +4 -0
- data/lib/merge_hris_client/models/account_details.rb +24 -4
- data/lib/merge_hris_client/models/account_details_and_actions.rb +39 -4
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/account_integration.rb +52 -8
- data/lib/merge_hris_client/models/account_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/advanced_metadata.rb +270 -0
- data/lib/merge_hris_client/models/async_passthrough_reciept.rb +223 -0
- data/lib/merge_hris_client/models/audit_log_event.rb +356 -0
- data/lib/merge_hris_client/models/bank_info.rb +48 -17
- data/lib/merge_hris_client/models/benefit.rb +79 -15
- data/lib/merge_hris_client/models/benefit_plan_type_enum.rb +48 -0
- data/lib/merge_hris_client/models/categories_enum.rb +19 -7
- data/lib/merge_hris_client/models/category_enum.rb +19 -7
- data/lib/merge_hris_client/models/common_model_scope_api.rb +226 -0
- data/lib/merge_hris_client/models/common_model_scope_data.rb +234 -0
- data/lib/merge_hris_client/models/common_model_scopes.rb +234 -0
- data/lib/merge_hris_client/models/common_model_scopes_body_request.rb +274 -0
- data/lib/merge_hris_client/models/common_model_scopes_disabled_models.rb +283 -0
- data/lib/merge_hris_client/models/common_model_scopes_disabled_models_enabled_actions_enum.rb +45 -0
- data/lib/merge_hris_client/models/common_model_scopes_post_inner_deserializer_request.rb +274 -0
- data/lib/merge_hris_client/models/common_model_scopes_update_serializer.rb +226 -0
- data/lib/merge_hris_client/models/company.rb +46 -16
- data/lib/merge_hris_client/models/condition_schema.rb +298 -0
- data/lib/merge_hris_client/models/condition_type_enum.rb +50 -0
- data/lib/merge_hris_client/models/country_enum.rb +17 -7
- data/lib/merge_hris_client/models/create_field_mapping_request.rb +396 -0
- data/lib/merge_hris_client/models/data_passthrough_request.rb +5 -1
- data/lib/merge_hris_client/models/deduction.rb +59 -18
- data/lib/merge_hris_client/models/dependent.rb +478 -0
- data/lib/merge_hris_client/models/earning.rb +58 -17
- data/lib/merge_hris_client/models/earning_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/employee.rb +93 -24
- data/lib/merge_hris_client/models/employee_payroll_run.rb +50 -18
- data/lib/merge_hris_client/models/employee_request.rb +56 -28
- data/lib/merge_hris_client/models/employer_benefit.rb +371 -0
- data/lib/merge_hris_client/models/employment.rb +53 -21
- data/lib/merge_hris_client/models/employment_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/employment_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/enabled_actions_enum.rb +45 -0
- data/lib/merge_hris_client/models/encoding_enum.rb +17 -7
- data/lib/merge_hris_client/models/end_user_details_request.rb +102 -11
- data/lib/merge_hris_client/models/ethnicity_enum.rb +17 -7
- data/lib/merge_hris_client/models/event_type_enum.rb +81 -0
- data/lib/merge_hris_client/models/external_target_field_api.rb +239 -0
- data/lib/merge_hris_client/models/external_target_field_api_response.rb +385 -0
- data/lib/merge_hris_client/models/field_mapping_api_instance.rb +247 -0
- data/lib/merge_hris_client/models/field_mapping_api_instance_remote_field.rb +253 -0
- data/lib/merge_hris_client/models/field_mapping_api_instance_remote_field_remote_endpoint_info.rb +241 -0
- data/lib/merge_hris_client/models/field_mapping_api_instance_response.rb +385 -0
- data/lib/merge_hris_client/models/field_mapping_api_instance_target_field.rb +251 -0
- data/lib/merge_hris_client/models/field_mapping_instance_response.rb +266 -0
- data/lib/merge_hris_client/models/field_permission_deserializer.rb +231 -0
- data/lib/merge_hris_client/models/field_permission_deserializer_request.rb +231 -0
- data/lib/merge_hris_client/models/flsa_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/gender_enum.rb +17 -7
- data/lib/merge_hris_client/models/generate_remote_key_request.rb +1 -0
- data/lib/merge_hris_client/models/group.rb +58 -17
- data/lib/merge_hris_client/models/group_type_enum.rb +18 -7
- data/lib/merge_hris_client/models/individual_common_model_scope_deserializer.rb +243 -0
- data/lib/merge_hris_client/models/individual_common_model_scope_deserializer_request.rb +262 -0
- data/lib/merge_hris_client/models/issue.rb +17 -5
- data/lib/merge_hris_client/models/issue_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/link_token.rb +13 -9
- data/lib/merge_hris_client/models/linked_account_common_model_scope_deserializer_request.rb +226 -0
- data/lib/merge_hris_client/models/linked_account_condition.rb +282 -0
- data/lib/merge_hris_client/models/linked_account_condition_request.rb +269 -0
- data/lib/merge_hris_client/models/linked_account_selective_sync_configuration.rb +221 -0
- data/lib/merge_hris_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
- data/lib/merge_hris_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
- data/lib/merge_hris_client/models/location.rb +48 -18
- data/lib/merge_hris_client/models/location_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/marital_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/meta_response.rb +13 -2
- data/lib/merge_hris_client/models/method_enum.rb +17 -7
- data/lib/merge_hris_client/models/model_permission_deserializer.rb +218 -0
- data/lib/merge_hris_client/models/model_permission_deserializer_request.rb +218 -0
- data/lib/merge_hris_client/models/multipart_form_field_request.rb +1 -1
- data/lib/merge_hris_client/models/operator_schema.rb +229 -0
- data/lib/merge_hris_client/models/paginated_audit_log_event_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_condition_schema_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_dependent_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_employer_benefit_list.rb +240 -0
- data/lib/merge_hris_client/models/paginated_timesheet_entry_list.rb +240 -0
- data/lib/merge_hris_client/models/patched_edit_field_mapping_request.rb +271 -0
- data/lib/merge_hris_client/models/pay_currency_enum.rb +17 -7
- data/lib/merge_hris_client/models/pay_frequency_enum.rb +18 -7
- data/lib/merge_hris_client/models/pay_group.rb +46 -16
- data/lib/merge_hris_client/models/pay_period_enum.rb +18 -7
- data/lib/merge_hris_client/models/payroll_run.rb +48 -18
- data/lib/merge_hris_client/models/policy_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/reason_enum.rb +17 -7
- data/lib/merge_hris_client/models/relationship_enum.rb +46 -0
- data/lib/merge_hris_client/models/remote_data.rb +3 -4
- data/lib/merge_hris_client/models/remote_endpoint_info.rb +253 -0
- data/lib/merge_hris_client/models/remote_field_api.rb +285 -0
- data/lib/merge_hris_client/models/remote_field_api_response.rb +385 -0
- data/lib/merge_hris_client/models/remote_key_for_regeneration_request.rb +1 -0
- data/lib/merge_hris_client/models/remote_response.rb +14 -11
- data/lib/merge_hris_client/models/request_format_enum.rb +17 -7
- data/lib/merge_hris_client/models/request_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/response_type_enum.rb +45 -0
- data/lib/merge_hris_client/models/role_enum.rb +49 -0
- data/lib/merge_hris_client/models/run_state_enum.rb +17 -7
- data/lib/merge_hris_client/models/run_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/selective_sync_configurations_usage_enum.rb +45 -0
- data/lib/merge_hris_client/models/sync_status.rb +13 -14
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +19 -7
- data/lib/merge_hris_client/models/tax.rb +57 -16
- data/lib/merge_hris_client/models/team.rb +47 -16
- data/lib/merge_hris_client/models/time_off.rb +51 -19
- data/lib/merge_hris_client/models/time_off_balance.rb +49 -18
- data/lib/merge_hris_client/models/time_off_request.rb +36 -21
- data/lib/merge_hris_client/models/time_off_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/timesheet_entry.rb +326 -0
- data/lib/merge_hris_client/models/timesheet_entry_endpoint_request.rb +223 -0
- data/lib/merge_hris_client/models/timesheet_entry_request.rb +278 -0
- data/lib/merge_hris_client/models/timesheet_entry_response.rb +266 -0
- data/lib/merge_hris_client/models/units_enum.rb +17 -7
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +49 -4
- data/spec/api/async_passthrough_api_spec.rb +59 -0
- data/spec/api/audit_trail_api_spec.rb +51 -0
- data/spec/api/bank_info_api_spec.rb +8 -6
- data/spec/api/benefits_api_spec.rb +3 -3
- data/spec/api/common_model_scopes_api_spec.rb +58 -0
- data/spec/api/companies_api_spec.rb +2 -2
- data/spec/api/delete_account_api_spec.rb +2 -2
- data/spec/api/dependents_api_spec.rb +70 -0
- data/spec/api/employee_payroll_runs_api_spec.rb +2 -2
- data/spec/api/employees_api_spec.rb +16 -6
- data/spec/api/employer_benefits_api_spec.rb +68 -0
- data/spec/api/employments_api_spec.rb +7 -5
- data/spec/api/field_mapping_api_spec.rb +107 -0
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/groups_api_spec.rb +9 -4
- data/spec/api/issues_api_spec.rb +6 -5
- data/spec/api/linked_accounts_api_spec.rb +2 -1
- data/spec/api/locations_api_spec.rb +7 -4
- data/spec/api/pay_groups_api_spec.rb +2 -2
- data/spec/api/payroll_runs_api_spec.rb +7 -5
- data/spec/api/scopes_api_spec.rb +68 -0
- data/spec/api/selective_sync_api_spec.rb +72 -0
- data/spec/api/sync_status_api_spec.rb +1 -1
- data/spec/api/teams_api_spec.rb +2 -2
- data/spec/api/time_off_api_spec.rb +12 -6
- data/spec/api/time_off_balances_api_spec.rb +7 -5
- data/spec/api/timesheet_entries_api_spec.rb +99 -0
- data/spec/models/account_details_and_actions_spec.rb +18 -0
- data/spec/models/account_details_spec.rb +12 -0
- data/spec/models/account_integration_spec.rb +24 -0
- data/spec/models/advanced_metadata_spec.rb +64 -0
- data/spec/models/async_passthrough_reciept_spec.rb +34 -0
- data/spec/models/audit_log_event_spec.rb +76 -0
- data/spec/models/bank_info_spec.rb +24 -0
- data/spec/models/benefit_plan_type_enum_spec.rb +28 -0
- data/spec/models/benefit_spec.rb +42 -0
- data/spec/models/common_model_scope_api_spec.rb +34 -0
- data/spec/models/common_model_scope_data_spec.rb +40 -0
- data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
- data/spec/models/common_model_scopes_disabled_models_enabled_actions_enum_spec.rb +28 -0
- data/spec/models/common_model_scopes_disabled_models_spec.rb +58 -0
- data/spec/models/common_model_scopes_post_inner_deserializer_request_spec.rb +46 -0
- data/spec/models/common_model_scopes_spec.rb +40 -0
- data/spec/models/common_model_scopes_update_serializer_spec.rb +34 -0
- data/spec/models/company_spec.rb +24 -0
- data/spec/models/condition_schema_spec.rb +70 -0
- data/spec/models/condition_type_enum_spec.rb +28 -0
- data/spec/models/create_field_mapping_request_spec.rb +64 -0
- data/spec/models/deduction_spec.rb +30 -0
- data/spec/models/dependent_spec.rb +136 -0
- data/spec/models/earning_spec.rb +30 -0
- data/spec/models/employee_payroll_run_spec.rb +24 -0
- data/spec/models/employee_request_spec.rb +18 -6
- data/spec/models/employee_spec.rb +42 -0
- data/spec/models/employer_benefit_spec.rb +94 -0
- data/spec/models/employment_spec.rb +24 -0
- data/spec/models/enabled_actions_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +30 -0
- data/spec/models/event_type_enum_spec.rb +28 -0
- data/spec/models/external_target_field_api_response_spec.rb +124 -0
- data/spec/models/external_target_field_api_spec.rb +46 -0
- data/spec/models/field_mapping_api_instance_remote_field_remote_endpoint_info_spec.rb +46 -0
- data/spec/models/field_mapping_api_instance_remote_field_spec.rb +46 -0
- data/spec/models/field_mapping_api_instance_response_spec.rb +124 -0
- data/spec/models/field_mapping_api_instance_spec.rb +52 -0
- data/spec/models/field_mapping_api_instance_target_field_spec.rb +46 -0
- data/spec/models/field_mapping_instance_response_spec.rb +52 -0
- data/spec/models/field_permission_deserializer_request_spec.rb +40 -0
- data/spec/models/field_permission_deserializer_spec.rb +40 -0
- data/spec/models/group_spec.rb +30 -0
- data/spec/models/individual_common_model_scope_deserializer_request_spec.rb +46 -0
- data/spec/models/individual_common_model_scope_deserializer_spec.rb +46 -0
- data/spec/models/issue_spec.rb +6 -0
- data/spec/models/link_token_spec.rb +6 -0
- data/spec/models/linked_account_common_model_scope_deserializer_request_spec.rb +34 -0
- data/spec/models/linked_account_condition_request_spec.rb +46 -0
- data/spec/models/linked_account_condition_spec.rb +64 -0
- data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
- data/spec/models/location_spec.rb +24 -0
- data/spec/models/meta_response_spec.rb +6 -0
- data/spec/models/model_permission_deserializer_request_spec.rb +34 -0
- data/spec/models/model_permission_deserializer_spec.rb +34 -0
- data/spec/models/operator_schema_spec.rb +40 -0
- data/spec/models/paginated_audit_log_event_list_spec.rb +46 -0
- data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
- data/spec/models/paginated_dependent_list_spec.rb +46 -0
- data/spec/models/paginated_employer_benefit_list_spec.rb +46 -0
- data/spec/models/paginated_timesheet_entry_list_spec.rb +46 -0
- data/spec/models/patched_edit_field_mapping_request_spec.rb +46 -0
- data/spec/models/pay_group_spec.rb +24 -0
- data/spec/models/payroll_run_spec.rb +24 -0
- data/spec/models/relationship_enum_spec.rb +28 -0
- data/spec/models/remote_endpoint_info_spec.rb +46 -0
- data/spec/models/remote_field_api_response_spec.rb +124 -0
- data/spec/models/remote_field_api_spec.rb +64 -0
- data/spec/models/remote_response_spec.rb +6 -0
- data/spec/models/response_type_enum_spec.rb +28 -0
- data/spec/models/role_enum_spec.rb +28 -0
- data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
- data/spec/models/sync_status_spec.rb +6 -0
- data/spec/models/tax_spec.rb +30 -0
- data/spec/models/team_spec.rb +24 -0
- data/spec/models/time_off_balance_spec.rb +24 -0
- data/spec/models/time_off_request_spec.rb +12 -6
- data/spec/models/time_off_spec.rb +24 -0
- data/spec/models/timesheet_entry_endpoint_request_spec.rb +34 -0
- data/spec/models/timesheet_entry_request_spec.rb +64 -0
- data/spec/models/timesheet_entry_response_spec.rb +52 -0
- data/spec/models/timesheet_entry_spec.rb +94 -0
- metadata +368 -104
|
@@ -14,13 +14,20 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module MergeHRISClient
|
|
17
|
-
# # The Employment Object ### Description The `Employment` object is used to represent
|
|
17
|
+
# # The Employment Object ### Description The `Employment` object is used to represent a job position at a company. Please note: When there is a change in pay or title, integrations with historical data will create new Employment objects while integrations without historical data will update existing ones. ### Usage Example Fetch from the `LIST Employments` endpoint and filter by `ID` to show all employees.
|
|
18
18
|
class Employment
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
21
21
|
# The third-party API ID of the matching object.
|
|
22
22
|
attr_accessor :remote_id
|
|
23
23
|
|
|
24
|
+
# The datetime that this object was created by Merge.
|
|
25
|
+
attr_accessor :created_at
|
|
26
|
+
|
|
27
|
+
# The datetime that this object was modified by Merge.
|
|
28
|
+
attr_accessor :modified_at
|
|
29
|
+
|
|
30
|
+
# The employee holding this position.
|
|
24
31
|
attr_accessor :employee
|
|
25
32
|
|
|
26
33
|
# The position's title.
|
|
@@ -29,36 +36,41 @@ module MergeHRISClient
|
|
|
29
36
|
# The position's pay rate in dollars.
|
|
30
37
|
attr_accessor :pay_rate
|
|
31
38
|
|
|
32
|
-
# The time period this pay rate encompasses.
|
|
39
|
+
# The time period this pay rate encompasses. * `HOUR` - HOUR * `DAY` - DAY * `WEEK` - WEEK * `EVERY_TWO_WEEKS` - EVERY_TWO_WEEKS * `SEMIMONTHLY` - SEMIMONTHLY * `MONTH` - MONTH * `QUARTER` - QUARTER * `EVERY_SIX_MONTHS` - EVERY_SIX_MONTHS * `YEAR` - YEAR
|
|
33
40
|
attr_accessor :pay_period
|
|
34
41
|
|
|
35
|
-
# The position's pay frequency.
|
|
42
|
+
# The position's pay frequency. * `WEEKLY` - WEEKLY * `BIWEEKLY` - BIWEEKLY * `MONTHLY` - MONTHLY * `QUARTERLY` - QUARTERLY * `SEMIANNUALLY` - SEMIANNUALLY * `ANNUALLY` - ANNUALLY * `THIRTEEN-MONTHLY` - THIRTEEN-MONTHLY * `PRO_RATA` - PRO_RATA * `SEMIMONTHLY` - SEMIMONTHLY
|
|
36
43
|
attr_accessor :pay_frequency
|
|
37
44
|
|
|
38
|
-
# The position's currency code.
|
|
45
|
+
# The position's currency code. * `XUA` - ADB Unit of Account * `AFN` - Afghan Afghani * `AFA` - Afghan Afghani (1927–2002) * `ALL` - Albanian Lek * `ALK` - Albanian Lek (1946–1965) * `DZD` - Algerian Dinar * `ADP` - Andorran Peseta * `AOA` - Angolan Kwanza * `AOK` - Angolan Kwanza (1977–1991) * `AON` - Angolan New Kwanza (1990–2000) * `AOR` - Angolan Readjusted Kwanza (1995–1999) * `ARA` - Argentine Austral * `ARS` - Argentine Peso * `ARM` - Argentine Peso (1881–1970) * `ARP` - Argentine Peso (1983–1985) * `ARL` - Argentine Peso Ley (1970–1983) * `AMD` - Armenian Dram * `AWG` - Aruban Florin * `AUD` - Australian Dollar * `ATS` - Austrian Schilling * `AZN` - Azerbaijani Manat * `AZM` - Azerbaijani Manat (1993–2006) * `BSD` - Bahamian Dollar * `BHD` - Bahraini Dinar * `BDT` - Bangladeshi Taka * `BBD` - Barbadian Dollar * `BYN` - Belarusian Ruble * `BYB` - Belarusian Ruble (1994–1999) * `BYR` - Belarusian Ruble (2000–2016) * `BEF` - Belgian Franc * `BEC` - Belgian Franc (convertible) * `BEL` - Belgian Franc (financial) * `BZD` - Belize Dollar * `BMD` - Bermudan Dollar * `BTN` - Bhutanese Ngultrum * `BOB` - Bolivian Boliviano * `BOL` - Bolivian Boliviano (1863–1963) * `BOV` - Bolivian Mvdol * `BOP` - Bolivian Peso * `BAM` - Bosnia-Herzegovina Convertible Mark * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) * `BWP` - Botswanan Pula * `BRC` - Brazilian Cruzado (1986–1989) * `BRZ` - Brazilian Cruzeiro (1942–1967) * `BRE` - Brazilian Cruzeiro (1990–1993) * `BRR` - Brazilian Cruzeiro (1993–1994) * `BRN` - Brazilian New Cruzado (1989–1990) * `BRB` - Brazilian New Cruzeiro (1967–1986) * `BRL` - Brazilian Real * `GBP` - British Pound * `BND` - Brunei Dollar * `BGL` - Bulgarian Hard Lev * `BGN` - Bulgarian Lev * `BGO` - Bulgarian Lev (1879–1952) * `BGM` - Bulgarian Socialist Lev * `BUK` - Burmese Kyat * `BIF` - Burundian Franc * `XPF` - CFP Franc * `KHR` - Cambodian Riel * `CAD` - Canadian Dollar * `CVE` - Cape Verdean Escudo * `KYD` - Cayman Islands Dollar * `XAF` - Central African CFA Franc * `CLE` - Chilean Escudo * `CLP` - Chilean Peso * `CLF` - Chilean Unit of Account (UF) * `CNX` - Chinese People’s Bank Dollar * `CNY` - Chinese Yuan * `CNH` - Chinese Yuan (offshore) * `COP` - Colombian Peso * `COU` - Colombian Real Value Unit * `KMF` - Comorian Franc * `CDF` - Congolese Franc * `CRC` - Costa Rican Colón * `HRD` - Croatian Dinar * `HRK` - Croatian Kuna * `CUC` - Cuban Convertible Peso * `CUP` - Cuban Peso * `CYP` - Cypriot Pound * `CZK` - Czech Koruna * `CSK` - Czechoslovak Hard Koruna * `DKK` - Danish Krone * `DJF` - Djiboutian Franc * `DOP` - Dominican Peso * `NLG` - Dutch Guilder * `XCD` - East Caribbean Dollar * `DDM` - East German Mark * `ECS` - Ecuadorian Sucre * `ECV` - Ecuadorian Unit of Constant Value * `EGP` - Egyptian Pound * `GQE` - Equatorial Guinean Ekwele * `ERN` - Eritrean Nakfa * `EEK` - Estonian Kroon * `ETB` - Ethiopian Birr * `EUR` - Euro * `XBA` - European Composite Unit * `XEU` - European Currency Unit * `XBB` - European Monetary Unit * `XBC` - European Unit of Account (XBC) * `XBD` - European Unit of Account (XBD) * `FKP` - Falkland Islands Pound * `FJD` - Fijian Dollar * `FIM` - Finnish Markka * `FRF` - French Franc * `XFO` - French Gold Franc * `XFU` - French UIC-Franc * `GMD` - Gambian Dalasi * `GEK` - Georgian Kupon Larit * `GEL` - Georgian Lari * `DEM` - German Mark * `GHS` - Ghanaian Cedi * `GHC` - Ghanaian Cedi (1979–2007) * `GIP` - Gibraltar Pound * `XAU` - Gold * `GRD` - Greek Drachma * `GTQ` - Guatemalan Quetzal * `GWP` - Guinea-Bissau Peso * `GNF` - Guinean Franc * `GNS` - Guinean Syli * `GYD` - Guyanaese Dollar * `HTG` - Haitian Gourde * `HNL` - Honduran Lempira * `HKD` - Hong Kong Dollar * `HUF` - Hungarian Forint * `IMP` - IMP * `ISK` - Icelandic Króna * `ISJ` - Icelandic Króna (1918–1981) * `INR` - Indian Rupee * `IDR` - Indonesian Rupiah * `IRR` - Iranian Rial * `IQD` - Iraqi Dinar * `IEP` - Irish Pound * `ILS` - Israeli New Shekel * `ILP` - Israeli Pound * `ILR` - Israeli Shekel (1980–1985) * `ITL` - Italian Lira * `JMD` - Jamaican Dollar * `JPY` - Japanese Yen * `JOD` - Jordanian Dinar * `KZT` - Kazakhstani Tenge * `KES` - Kenyan Shilling * `KWD` - Kuwaiti Dinar * `KGS` - Kyrgystani Som * `LAK` - Laotian Kip * `LVL` - Latvian Lats * `LVR` - Latvian Ruble * `LBP` - Lebanese Pound * `LSL` - Lesotho Loti * `LRD` - Liberian Dollar * `LYD` - Libyan Dinar * `LTL` - Lithuanian Litas * `LTT` - Lithuanian Talonas * `LUL` - Luxembourg Financial Franc * `LUC` - Luxembourgian Convertible Franc * `LUF` - Luxembourgian Franc * `MOP` - Macanese Pataca * `MKD` - Macedonian Denar * `MKN` - Macedonian Denar (1992–1993) * `MGA` - Malagasy Ariary * `MGF` - Malagasy Franc * `MWK` - Malawian Kwacha * `MYR` - Malaysian Ringgit * `MVR` - Maldivian Rufiyaa * `MVP` - Maldivian Rupee (1947–1981) * `MLF` - Malian Franc * `MTL` - Maltese Lira * `MTP` - Maltese Pound * `MRU` - Mauritanian Ouguiya * `MRO` - Mauritanian Ouguiya (1973–2017) * `MUR` - Mauritian Rupee * `MXV` - Mexican Investment Unit * `MXN` - Mexican Peso * `MXP` - Mexican Silver Peso (1861–1992) * `MDC` - Moldovan Cupon * `MDL` - Moldovan Leu * `MCF` - Monegasque Franc * `MNT` - Mongolian Tugrik * `MAD` - Moroccan Dirham * `MAF` - Moroccan Franc * `MZE` - Mozambican Escudo * `MZN` - Mozambican Metical * `MZM` - Mozambican Metical (1980–2006) * `MMK` - Myanmar Kyat * `NAD` - Namibian Dollar * `NPR` - Nepalese Rupee * `ANG` - Netherlands Antillean Guilder * `TWD` - New Taiwan Dollar * `NZD` - New Zealand Dollar * `NIO` - Nicaraguan Córdoba * `NIC` - Nicaraguan Córdoba (1988–1991) * `NGN` - Nigerian Naira * `KPW` - North Korean Won * `NOK` - Norwegian Krone * `OMR` - Omani Rial * `PKR` - Pakistani Rupee * `XPD` - Palladium * `PAB` - Panamanian Balboa * `PGK` - Papua New Guinean Kina * `PYG` - Paraguayan Guarani * `PEI` - Peruvian Inti * `PEN` - Peruvian Sol * `PES` - Peruvian Sol (1863–1965) * `PHP` - Philippine Peso * `XPT` - Platinum * `PLN` - Polish Zloty * `PLZ` - Polish Zloty (1950–1995) * `PTE` - Portuguese Escudo * `GWE` - Portuguese Guinea Escudo * `QAR` - Qatari Rial * `XRE` - RINET Funds * `RHD` - Rhodesian Dollar * `RON` - Romanian Leu * `ROL` - Romanian Leu (1952–2006) * `RUB` - Russian Ruble * `RUR` - Russian Ruble (1991–1998) * `RWF` - Rwandan Franc * `SVC` - Salvadoran Colón * `WST` - Samoan Tala * `SAR` - Saudi Riyal * `RSD` - Serbian Dinar * `CSD` - Serbian Dinar (2002–2006) * `SCR` - Seychellois Rupee * `SLL` - Sierra Leonean Leone * `XAG` - Silver * `SGD` - Singapore Dollar * `SKK` - Slovak Koruna * `SIT` - Slovenian Tolar * `SBD` - Solomon Islands Dollar * `SOS` - Somali Shilling * `ZAR` - South African Rand * `ZAL` - South African Rand (financial) * `KRH` - South Korean Hwan (1953–1962) * `KRW` - South Korean Won * `KRO` - South Korean Won (1945–1953) * `SSP` - South Sudanese Pound * `SUR` - Soviet Rouble * `ESP` - Spanish Peseta * `ESA` - Spanish Peseta (A account) * `ESB` - Spanish Peseta (convertible account) * `XDR` - Special Drawing Rights * `LKR` - Sri Lankan Rupee * `SHP` - St. Helena Pound * `XSU` - Sucre * `SDD` - Sudanese Dinar (1992–2007) * `SDG` - Sudanese Pound * `SDP` - Sudanese Pound (1957–1998) * `SRD` - Surinamese Dollar * `SRG` - Surinamese Guilder * `SZL` - Swazi Lilangeni * `SEK` - Swedish Krona * `CHF` - Swiss Franc * `SYP` - Syrian Pound * `STN` - São Tomé & Príncipe Dobra * `STD` - São Tomé & Príncipe Dobra (1977–2017) * `TVD` - TVD * `TJR` - Tajikistani Ruble * `TJS` - Tajikistani Somoni * `TZS` - Tanzanian Shilling * `XTS` - Testing Currency Code * `THB` - Thai Baht * `XXX` - The codes assigned for transactions where no currency is involved * `TPE` - Timorese Escudo * `TOP` - Tongan Paʻanga * `TTD` - Trinidad & Tobago Dollar * `TND` - Tunisian Dinar * `TRY` - Turkish Lira * `TRL` - Turkish Lira (1922–2005) * `TMT` - Turkmenistani Manat * `TMM` - Turkmenistani Manat (1993–2009) * `USD` - US Dollar * `USN` - US Dollar (Next day) * `USS` - US Dollar (Same day) * `UGX` - Ugandan Shilling * `UGS` - Ugandan Shilling (1966–1987) * `UAH` - Ukrainian Hryvnia * `UAK` - Ukrainian Karbovanets * `AED` - United Arab Emirates Dirham * `UYW` - Uruguayan Nominal Wage Index Unit * `UYU` - Uruguayan Peso * `UYP` - Uruguayan Peso (1975–1993) * `UYI` - Uruguayan Peso (Indexed Units) * `UZS` - Uzbekistani Som * `VUV` - Vanuatu Vatu * `VES` - Venezuelan Bolívar * `VEB` - Venezuelan Bolívar (1871–2008) * `VEF` - Venezuelan Bolívar (2008–2018) * `VND` - Vietnamese Dong * `VNN` - Vietnamese Dong (1978–1985) * `CHE` - WIR Euro * `CHW` - WIR Franc * `XOF` - West African CFA Franc * `YDD` - Yemeni Dinar * `YER` - Yemeni Rial * `YUN` - Yugoslavian Convertible Dinar (1990–1992) * `YUD` - Yugoslavian Hard Dinar (1966–1990) * `YUM` - Yugoslavian New Dinar (1994–2002) * `YUR` - Yugoslavian Reformed Dinar (1992–1993) * `ZWN` - ZWN * `ZRN` - Zairean New Zaire (1993–1998) * `ZRZ` - Zairean Zaire (1971–1993) * `ZMW` - Zambian Kwacha * `ZMK` - Zambian Kwacha (1968–2012) * `ZWD` - Zimbabwean Dollar (1980–2008) * `ZWR` - Zimbabwean Dollar (2008) * `ZWL` - Zimbabwean Dollar (2009)
|
|
39
46
|
attr_accessor :pay_currency
|
|
40
47
|
|
|
48
|
+
# The employment's pay group
|
|
41
49
|
attr_accessor :pay_group
|
|
42
50
|
|
|
43
|
-
# The position's FLSA status.
|
|
51
|
+
# The position's FLSA status. * `EXEMPT` - EXEMPT * `SALARIED_NONEXEMPT` - SALARIED_NONEXEMPT * `NONEXEMPT` - NONEXEMPT * `OWNER` - OWNER
|
|
44
52
|
attr_accessor :flsa_status
|
|
45
53
|
|
|
46
54
|
# The position's effective date.
|
|
47
55
|
attr_accessor :effective_date
|
|
48
56
|
|
|
49
|
-
# The position's type of employment.
|
|
57
|
+
# The position's type of employment. * `FULL_TIME` - FULL_TIME * `PART_TIME` - PART_TIME * `INTERN` - INTERN * `CONTRACTOR` - CONTRACTOR * `FREELANCE` - FREELANCE
|
|
50
58
|
attr_accessor :employment_type
|
|
51
59
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
# Indicates whether or not this object has been deleted by third party webhooks.
|
|
60
|
+
# Indicates whether or not this object has been deleted in the third party platform.
|
|
55
61
|
attr_accessor :remote_was_deleted
|
|
56
62
|
|
|
63
|
+
attr_accessor :field_mappings
|
|
64
|
+
|
|
65
|
+
attr_accessor :remote_data
|
|
66
|
+
|
|
57
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
58
68
|
def self.attribute_map
|
|
59
69
|
{
|
|
60
70
|
:'id' => :'id',
|
|
61
71
|
:'remote_id' => :'remote_id',
|
|
72
|
+
:'created_at' => :'created_at',
|
|
73
|
+
:'modified_at' => :'modified_at',
|
|
62
74
|
:'employee' => :'employee',
|
|
63
75
|
:'job_title' => :'job_title',
|
|
64
76
|
:'pay_rate' => :'pay_rate',
|
|
@@ -69,8 +81,9 @@ module MergeHRISClient
|
|
|
69
81
|
:'flsa_status' => :'flsa_status',
|
|
70
82
|
:'effective_date' => :'effective_date',
|
|
71
83
|
:'employment_type' => :'employment_type',
|
|
72
|
-
:'
|
|
73
|
-
:'
|
|
84
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
|
85
|
+
:'field_mappings' => :'field_mappings',
|
|
86
|
+
:'remote_data' => :'remote_data'
|
|
74
87
|
}
|
|
75
88
|
end
|
|
76
89
|
|
|
@@ -84,6 +97,8 @@ module MergeHRISClient
|
|
|
84
97
|
{
|
|
85
98
|
:'id' => :'String',
|
|
86
99
|
:'remote_id' => :'String',
|
|
100
|
+
:'created_at' => :'Time',
|
|
101
|
+
:'modified_at' => :'Time',
|
|
87
102
|
:'employee' => :'String',
|
|
88
103
|
:'job_title' => :'String',
|
|
89
104
|
:'pay_rate' => :'Float',
|
|
@@ -94,8 +109,9 @@ module MergeHRISClient
|
|
|
94
109
|
:'flsa_status' => :'FlsaStatusEnum',
|
|
95
110
|
:'effective_date' => :'Time',
|
|
96
111
|
:'employment_type' => :'EmploymentTypeEnum',
|
|
97
|
-
:'
|
|
98
|
-
:'
|
|
112
|
+
:'remote_was_deleted' => :'Boolean',
|
|
113
|
+
:'field_mappings' => :'Object',
|
|
114
|
+
:'remote_data' => :'Array<RemoteData>'
|
|
99
115
|
}
|
|
100
116
|
end
|
|
101
117
|
|
|
@@ -113,7 +129,8 @@ module MergeHRISClient
|
|
|
113
129
|
:'flsa_status',
|
|
114
130
|
:'effective_date',
|
|
115
131
|
:'employment_type',
|
|
116
|
-
:'
|
|
132
|
+
:'field_mappings',
|
|
133
|
+
:'remote_data'
|
|
117
134
|
])
|
|
118
135
|
end
|
|
119
136
|
|
|
@@ -140,6 +157,14 @@ module MergeHRISClient
|
|
|
140
157
|
self.remote_id = attributes[:'remote_id']
|
|
141
158
|
end
|
|
142
159
|
|
|
160
|
+
if attributes.key?(:'created_at')
|
|
161
|
+
self.created_at = attributes[:'created_at']
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.key?(:'modified_at')
|
|
165
|
+
self.modified_at = attributes[:'modified_at']
|
|
166
|
+
end
|
|
167
|
+
|
|
143
168
|
if attributes.key?(:'employee')
|
|
144
169
|
self.employee = attributes[:'employee']
|
|
145
170
|
end
|
|
@@ -180,15 +205,19 @@ module MergeHRISClient
|
|
|
180
205
|
self.employment_type = attributes[:'employment_type']
|
|
181
206
|
end
|
|
182
207
|
|
|
208
|
+
if attributes.key?(:'remote_was_deleted')
|
|
209
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'field_mappings')
|
|
213
|
+
self.field_mappings = attributes[:'field_mappings']
|
|
214
|
+
end
|
|
215
|
+
|
|
183
216
|
if attributes.key?(:'remote_data')
|
|
184
217
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
|
185
218
|
self.remote_data = value
|
|
186
219
|
end
|
|
187
220
|
end
|
|
188
|
-
|
|
189
|
-
if attributes.key?(:'remote_was_deleted')
|
|
190
|
-
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
|
191
|
-
end
|
|
192
221
|
end
|
|
193
222
|
|
|
194
223
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -211,6 +240,8 @@ module MergeHRISClient
|
|
|
211
240
|
self.class == o.class &&
|
|
212
241
|
id == o.id &&
|
|
213
242
|
remote_id == o.remote_id &&
|
|
243
|
+
created_at == o.created_at &&
|
|
244
|
+
modified_at == o.modified_at &&
|
|
214
245
|
employee == o.employee &&
|
|
215
246
|
job_title == o.job_title &&
|
|
216
247
|
pay_rate == o.pay_rate &&
|
|
@@ -221,8 +252,9 @@ module MergeHRISClient
|
|
|
221
252
|
flsa_status == o.flsa_status &&
|
|
222
253
|
effective_date == o.effective_date &&
|
|
223
254
|
employment_type == o.employment_type &&
|
|
224
|
-
|
|
225
|
-
|
|
255
|
+
remote_was_deleted == o.remote_was_deleted &&
|
|
256
|
+
field_mappings == o.field_mappings &&
|
|
257
|
+
remote_data == o.remote_data
|
|
226
258
|
end
|
|
227
259
|
|
|
228
260
|
# @see the `==` method
|
|
@@ -234,7 +266,7 @@ module MergeHRISClient
|
|
|
234
266
|
# Calculates hash code according to all attributes.
|
|
235
267
|
# @return [Integer] Hash code
|
|
236
268
|
def hash
|
|
237
|
-
[id, remote_id, employee, job_title, pay_rate, pay_period, pay_frequency, pay_currency, pay_group, flsa_status, effective_date, employment_type,
|
|
269
|
+
[id, remote_id, created_at, modified_at, employee, job_title, pay_rate, pay_period, pay_frequency, pay_currency, pay_group, flsa_status, effective_date, employment_type, remote_was_deleted, field_mappings, remote_data].hash
|
|
238
270
|
end
|
|
239
271
|
|
|
240
272
|
# Builds the object from hash
|
|
@@ -19,18 +19,28 @@ module MergeHRISClient
|
|
|
19
19
|
PENDING = "PENDING".freeze
|
|
20
20
|
INACTIVE = "INACTIVE".freeze
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
new.build_from_hash(value)
|
|
27
|
-
end
|
|
22
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
|
23
|
+
|
|
24
|
+
attr_accessor :value
|
|
25
|
+
attr_accessor :raw_value
|
|
28
26
|
|
|
29
27
|
# Builds the enum from string
|
|
30
28
|
# @param [String] The enum value in the form of the string
|
|
31
29
|
# @return [String] The enum value
|
|
32
30
|
def build_from_hash(value)
|
|
33
|
-
value
|
|
31
|
+
@raw_value = value
|
|
32
|
+
if ["ACTIVE", "PENDING", "INACTIVE", ].include? value
|
|
33
|
+
@value = value
|
|
34
|
+
else
|
|
35
|
+
@value = MERGE_NONSTANDARD_VALUE
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
self
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def self.build_from_hash(value)
|
|
42
|
+
EmploymentStatusEnum.new.build_from_hash(value)
|
|
34
43
|
end
|
|
35
44
|
end
|
|
45
|
+
|
|
36
46
|
end
|
|
@@ -21,18 +21,28 @@ module MergeHRISClient
|
|
|
21
21
|
CONTRACTOR = "CONTRACTOR".freeze
|
|
22
22
|
FREELANCE = "FREELANCE".freeze
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
new.build_from_hash(value)
|
|
29
|
-
end
|
|
24
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
|
25
|
+
|
|
26
|
+
attr_accessor :value
|
|
27
|
+
attr_accessor :raw_value
|
|
30
28
|
|
|
31
29
|
# Builds the enum from string
|
|
32
30
|
# @param [String] The enum value in the form of the string
|
|
33
31
|
# @return [String] The enum value
|
|
34
32
|
def build_from_hash(value)
|
|
35
|
-
value
|
|
33
|
+
@raw_value = value
|
|
34
|
+
if ["FULL_TIME", "PART_TIME", "INTERN", "CONTRACTOR", "FREELANCE", ].include? value
|
|
35
|
+
@value = value
|
|
36
|
+
else
|
|
37
|
+
@value = MERGE_NONSTANDARD_VALUE
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
self
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def self.build_from_hash(value)
|
|
44
|
+
EmploymentTypeEnum.new.build_from_hash(value)
|
|
36
45
|
end
|
|
37
46
|
end
|
|
47
|
+
|
|
38
48
|
end
|
|
@@ -0,0 +1,45 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module MergeHRISClient
|
|
17
|
+
class EnabledActionsEnum
|
|
18
|
+
READ = "READ".freeze
|
|
19
|
+
WRITE = "WRITE".freeze
|
|
20
|
+
|
|
21
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
|
22
|
+
|
|
23
|
+
attr_accessor :value
|
|
24
|
+
attr_accessor :raw_value
|
|
25
|
+
|
|
26
|
+
# Builds the enum from string
|
|
27
|
+
# @param [String] The enum value in the form of the string
|
|
28
|
+
# @return [String] The enum value
|
|
29
|
+
def build_from_hash(value)
|
|
30
|
+
@raw_value = value
|
|
31
|
+
if ["READ", "WRITE", ].include? value
|
|
32
|
+
@value = value
|
|
33
|
+
else
|
|
34
|
+
@value = MERGE_NONSTANDARD_VALUE
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
self
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def self.build_from_hash(value)
|
|
41
|
+
EnabledActionsEnum.new.build_from_hash(value)
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
end
|
|
@@ -19,18 +19,28 @@ module MergeHRISClient
|
|
|
19
19
|
BASE64 = "BASE64".freeze
|
|
20
20
|
GZIP_BASE64 = "GZIP_BASE64".freeze
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
new.build_from_hash(value)
|
|
27
|
-
end
|
|
22
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
|
23
|
+
|
|
24
|
+
attr_accessor :value
|
|
25
|
+
attr_accessor :raw_value
|
|
28
26
|
|
|
29
27
|
# Builds the enum from string
|
|
30
28
|
# @param [String] The enum value in the form of the string
|
|
31
29
|
# @return [String] The enum value
|
|
32
30
|
def build_from_hash(value)
|
|
33
|
-
value
|
|
31
|
+
@raw_value = value
|
|
32
|
+
if ["RAW", "BASE64", "GZIP_BASE64", ].include? value
|
|
33
|
+
@value = value
|
|
34
|
+
else
|
|
35
|
+
@value = MERGE_NONSTANDARD_VALUE
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
self
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def self.build_from_hash(value)
|
|
42
|
+
EncodingEnum.new.build_from_hash(value)
|
|
34
43
|
end
|
|
35
44
|
end
|
|
45
|
+
|
|
36
46
|
end
|
|
@@ -15,20 +15,39 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module MergeHRISClient
|
|
17
17
|
class EndUserDetailsRequest
|
|
18
|
+
# Your end user's email address. This is purely for identification purposes - setting this value will not cause any emails to be sent.
|
|
18
19
|
attr_accessor :end_user_email_address
|
|
19
20
|
|
|
21
|
+
# Your end user's organization.
|
|
20
22
|
attr_accessor :end_user_organization_name
|
|
21
23
|
|
|
24
|
+
# This unique identifier typically represents the ID for your end user in your product's database. This value must be distinct from other Linked Accounts' unique identifiers.
|
|
22
25
|
attr_accessor :end_user_origin_id
|
|
23
26
|
|
|
27
|
+
# The integration categories to show in Merge Link.
|
|
24
28
|
attr_accessor :categories
|
|
25
29
|
|
|
26
|
-
# The slug of a specific pre-selected integration for this linking flow token
|
|
30
|
+
# The slug of a specific pre-selected integration for this linking flow token. For examples of slugs, see https://docs.merge.dev/guides/merge-link/single-integration/.
|
|
27
31
|
attr_accessor :integration
|
|
28
32
|
|
|
29
|
-
# An integer number of minutes between [30, 720] for how long this token is valid. Defaults to 30
|
|
33
|
+
# An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.
|
|
30
34
|
attr_accessor :link_expiry_mins
|
|
31
35
|
|
|
36
|
+
# Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
|
|
37
|
+
attr_accessor :should_create_magic_link_url
|
|
38
|
+
|
|
39
|
+
# An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.
|
|
40
|
+
attr_accessor :common_models
|
|
41
|
+
|
|
42
|
+
# When creating a Link Token, you can set permissions for Common Models that will apply to the account that is going to be linked. Any model or field not specified in link token payload will default to existing settings.
|
|
43
|
+
attr_accessor :category_common_model_scopes
|
|
44
|
+
|
|
45
|
+
# The language code for the language to localize Merge Link to.
|
|
46
|
+
attr_accessor :language
|
|
47
|
+
|
|
48
|
+
# A JSON object containing integration-specific configuration options.
|
|
49
|
+
attr_accessor :integration_specific_config
|
|
50
|
+
|
|
32
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
52
|
def self.attribute_map
|
|
34
53
|
{
|
|
@@ -37,7 +56,12 @@ module MergeHRISClient
|
|
|
37
56
|
:'end_user_origin_id' => :'end_user_origin_id',
|
|
38
57
|
:'categories' => :'categories',
|
|
39
58
|
:'integration' => :'integration',
|
|
40
|
-
:'link_expiry_mins' => :'link_expiry_mins'
|
|
59
|
+
:'link_expiry_mins' => :'link_expiry_mins',
|
|
60
|
+
:'should_create_magic_link_url' => :'should_create_magic_link_url',
|
|
61
|
+
:'common_models' => :'common_models',
|
|
62
|
+
:'category_common_model_scopes' => :'category_common_model_scopes',
|
|
63
|
+
:'language' => :'language',
|
|
64
|
+
:'integration_specific_config' => :'integration_specific_config'
|
|
41
65
|
}
|
|
42
66
|
end
|
|
43
67
|
|
|
@@ -54,7 +78,12 @@ module MergeHRISClient
|
|
|
54
78
|
:'end_user_origin_id' => :'String',
|
|
55
79
|
:'categories' => :'Array<CategoriesEnum>',
|
|
56
80
|
:'integration' => :'String',
|
|
57
|
-
:'link_expiry_mins' => :'Integer'
|
|
81
|
+
:'link_expiry_mins' => :'Integer',
|
|
82
|
+
:'should_create_magic_link_url' => :'Boolean',
|
|
83
|
+
:'common_models' => :'Array<CommonModelScopesBodyRequest>',
|
|
84
|
+
:'category_common_model_scopes' => :'Hash<String, Array<IndividualCommonModelScopeDeserializerRequest>>',
|
|
85
|
+
:'language' => :'String',
|
|
86
|
+
:'integration_specific_config' => :'Hash<String, Object>'
|
|
58
87
|
}
|
|
59
88
|
end
|
|
60
89
|
|
|
@@ -62,6 +91,11 @@ module MergeHRISClient
|
|
|
62
91
|
def self.openapi_nullable
|
|
63
92
|
Set.new([
|
|
64
93
|
:'integration',
|
|
94
|
+
:'should_create_magic_link_url',
|
|
95
|
+
:'common_models',
|
|
96
|
+
:'category_common_model_scopes',
|
|
97
|
+
:'language',
|
|
98
|
+
:'integration_specific_config'
|
|
65
99
|
])
|
|
66
100
|
end
|
|
67
101
|
|
|
@@ -107,6 +141,34 @@ module MergeHRISClient
|
|
|
107
141
|
else
|
|
108
142
|
self.link_expiry_mins = 30
|
|
109
143
|
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'should_create_magic_link_url')
|
|
146
|
+
self.should_create_magic_link_url = attributes[:'should_create_magic_link_url']
|
|
147
|
+
else
|
|
148
|
+
self.should_create_magic_link_url = false
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if attributes.key?(:'common_models')
|
|
152
|
+
if (value = attributes[:'common_models']).is_a?(Array)
|
|
153
|
+
self.common_models = value
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'category_common_model_scopes')
|
|
158
|
+
if (value = attributes[:'category_common_model_scopes']).is_a?(Hash)
|
|
159
|
+
self.category_common_model_scopes = value
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
if attributes.key?(:'language')
|
|
164
|
+
self.language = attributes[:'language']
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
if attributes.key?(:'integration_specific_config')
|
|
168
|
+
if (value = attributes[:'integration_specific_config']).is_a?(Hash)
|
|
169
|
+
self.integration_specific_config = value
|
|
170
|
+
end
|
|
171
|
+
end
|
|
110
172
|
end
|
|
111
173
|
|
|
112
174
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -157,14 +219,22 @@ module MergeHRISClient
|
|
|
157
219
|
invalid_properties.push('invalid value for "integration", the character length must be great than or equal to 1.')
|
|
158
220
|
end
|
|
159
221
|
|
|
160
|
-
if !@link_expiry_mins.nil? && @link_expiry_mins >
|
|
161
|
-
invalid_properties.push('invalid value for "link_expiry_mins", must be smaller than or equal to
|
|
222
|
+
if !@link_expiry_mins.nil? && @link_expiry_mins > 10080
|
|
223
|
+
invalid_properties.push('invalid value for "link_expiry_mins", must be smaller than or equal to 10080.')
|
|
162
224
|
end
|
|
163
225
|
|
|
164
226
|
if !@link_expiry_mins.nil? && @link_expiry_mins < 30
|
|
165
227
|
invalid_properties.push('invalid value for "link_expiry_mins", must be greater than or equal to 30.')
|
|
166
228
|
end
|
|
167
229
|
|
|
230
|
+
if !@language.nil? && @language.to_s.length > 2
|
|
231
|
+
invalid_properties.push('invalid value for "language", the character length must be smaller than or equal to 2.')
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if !@language.nil? && @language.to_s.length < 1
|
|
235
|
+
invalid_properties.push('invalid value for "language", the character length must be great than or equal to 1.')
|
|
236
|
+
end
|
|
237
|
+
|
|
168
238
|
invalid_properties
|
|
169
239
|
end
|
|
170
240
|
|
|
@@ -182,8 +252,10 @@ module MergeHRISClient
|
|
|
182
252
|
return false if @end_user_origin_id.to_s.length < 1
|
|
183
253
|
return false if @categories.nil?
|
|
184
254
|
return false if !@integration.nil? && @integration.to_s.length < 1
|
|
185
|
-
return false if !@link_expiry_mins.nil? && @link_expiry_mins >
|
|
255
|
+
return false if !@link_expiry_mins.nil? && @link_expiry_mins > 10080
|
|
186
256
|
return false if !@link_expiry_mins.nil? && @link_expiry_mins < 30
|
|
257
|
+
return false if !@language.nil? && @language.to_s.length > 2
|
|
258
|
+
return false if !@language.nil? && @language.to_s.length < 1
|
|
187
259
|
true
|
|
188
260
|
end
|
|
189
261
|
|
|
@@ -254,8 +326,8 @@ module MergeHRISClient
|
|
|
254
326
|
# Custom attribute writer method with validation
|
|
255
327
|
# @param [Object] link_expiry_mins Value to be assigned
|
|
256
328
|
def link_expiry_mins=(link_expiry_mins)
|
|
257
|
-
if !link_expiry_mins.nil? && link_expiry_mins >
|
|
258
|
-
fail ArgumentError, 'invalid value for "link_expiry_mins", must be smaller than or equal to
|
|
329
|
+
if !link_expiry_mins.nil? && link_expiry_mins > 10080
|
|
330
|
+
fail ArgumentError, 'invalid value for "link_expiry_mins", must be smaller than or equal to 10080.'
|
|
259
331
|
end
|
|
260
332
|
|
|
261
333
|
if !link_expiry_mins.nil? && link_expiry_mins < 30
|
|
@@ -265,6 +337,20 @@ module MergeHRISClient
|
|
|
265
337
|
@link_expiry_mins = link_expiry_mins
|
|
266
338
|
end
|
|
267
339
|
|
|
340
|
+
# Custom attribute writer method with validation
|
|
341
|
+
# @param [Object] language Value to be assigned
|
|
342
|
+
def language=(language)
|
|
343
|
+
if !language.nil? && language.to_s.length > 2
|
|
344
|
+
fail ArgumentError, 'invalid value for "language", the character length must be smaller than or equal to 2.'
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
if !language.nil? && language.to_s.length < 1
|
|
348
|
+
fail ArgumentError, 'invalid value for "language", the character length must be great than or equal to 1.'
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
@language = language
|
|
352
|
+
end
|
|
353
|
+
|
|
268
354
|
# Checks equality by comparing each attribute.
|
|
269
355
|
# @param [Object] Object to be compared
|
|
270
356
|
def ==(o)
|
|
@@ -275,7 +361,12 @@ module MergeHRISClient
|
|
|
275
361
|
end_user_origin_id == o.end_user_origin_id &&
|
|
276
362
|
categories == o.categories &&
|
|
277
363
|
integration == o.integration &&
|
|
278
|
-
link_expiry_mins == o.link_expiry_mins
|
|
364
|
+
link_expiry_mins == o.link_expiry_mins &&
|
|
365
|
+
should_create_magic_link_url == o.should_create_magic_link_url &&
|
|
366
|
+
common_models == o.common_models &&
|
|
367
|
+
category_common_model_scopes == o.category_common_model_scopes &&
|
|
368
|
+
language == o.language &&
|
|
369
|
+
integration_specific_config == o.integration_specific_config
|
|
279
370
|
end
|
|
280
371
|
|
|
281
372
|
# @see the `==` method
|
|
@@ -287,7 +378,7 @@ module MergeHRISClient
|
|
|
287
378
|
# Calculates hash code according to all attributes.
|
|
288
379
|
# @return [Integer] Hash code
|
|
289
380
|
def hash
|
|
290
|
-
[end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins].hash
|
|
381
|
+
[end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins, should_create_magic_link_url, common_models, category_common_model_scopes, language, integration_specific_config].hash
|
|
291
382
|
end
|
|
292
383
|
|
|
293
384
|
# Builds the object from hash
|
|
@@ -24,18 +24,28 @@ module MergeHRISClient
|
|
|
24
24
|
WHITE = "WHITE".freeze
|
|
25
25
|
PREFER_NOT_TO_DISCLOSE = "PREFER_NOT_TO_DISCLOSE".freeze
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
new.build_from_hash(value)
|
|
32
|
-
end
|
|
27
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
|
28
|
+
|
|
29
|
+
attr_accessor :value
|
|
30
|
+
attr_accessor :raw_value
|
|
33
31
|
|
|
34
32
|
# Builds the enum from string
|
|
35
33
|
# @param [String] The enum value in the form of the string
|
|
36
34
|
# @return [String] The enum value
|
|
37
35
|
def build_from_hash(value)
|
|
38
|
-
value
|
|
36
|
+
@raw_value = value
|
|
37
|
+
if ["AMERICAN_INDIAN_OR_ALASKA_NATIVE", "ASIAN_OR_INDIAN_SUBCONTINENT", "BLACK_OR_AFRICAN_AMERICAN", "HISPANIC_OR_LATINO", "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER", "TWO_OR_MORE_RACES", "WHITE", "PREFER_NOT_TO_DISCLOSE", ].include? value
|
|
38
|
+
@value = value
|
|
39
|
+
else
|
|
40
|
+
@value = MERGE_NONSTANDARD_VALUE
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
self
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def self.build_from_hash(value)
|
|
47
|
+
EthnicityEnum.new.build_from_hash(value)
|
|
39
48
|
end
|
|
40
49
|
end
|
|
50
|
+
|
|
41
51
|
end
|