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,16 +14,23 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module MergeHRISClient
|
|
17
|
-
# # The Employee Object ### Description The `Employee` object is used to represent
|
|
17
|
+
# # The Employee Object ### Description The `Employee` object is used to represent any person who has been employed by a company. ### Usage Example Fetch from the `LIST Employee` endpoint and filter by `ID` to show all employees.
|
|
18
18
|
class Employee
|
|
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
|
|
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's number that appears in the third-party integration's UI.
|
|
25
31
|
attr_accessor :employee_number
|
|
26
32
|
|
|
33
|
+
# The ID of the employee's company.
|
|
27
34
|
attr_accessor :company
|
|
28
35
|
|
|
29
36
|
# The employee's first name.
|
|
@@ -32,9 +39,15 @@ module MergeHRISClient
|
|
|
32
39
|
# The employee's last name.
|
|
33
40
|
attr_accessor :last_name
|
|
34
41
|
|
|
42
|
+
# The employee's preferred first name.
|
|
43
|
+
attr_accessor :preferred_name
|
|
44
|
+
|
|
35
45
|
# The employee's full name, to use for display purposes. If a preferred first name is available, the full name will include the preferred first name.
|
|
36
46
|
attr_accessor :display_full_name
|
|
37
47
|
|
|
48
|
+
# The employee's username that appears in the remote UI.
|
|
49
|
+
attr_accessor :username
|
|
50
|
+
|
|
38
51
|
attr_accessor :groups
|
|
39
52
|
|
|
40
53
|
# The employee's work email.
|
|
@@ -49,26 +62,31 @@ module MergeHRISClient
|
|
|
49
62
|
# Array of `Employment` IDs for this Employee.
|
|
50
63
|
attr_accessor :employments
|
|
51
64
|
|
|
65
|
+
# The employee's home address.
|
|
52
66
|
attr_accessor :home_location
|
|
53
67
|
|
|
68
|
+
# The employee's work address.
|
|
54
69
|
attr_accessor :work_location
|
|
55
70
|
|
|
71
|
+
# The employee ID of the employee's manager.
|
|
56
72
|
attr_accessor :manager
|
|
57
73
|
|
|
74
|
+
# The employee's team.
|
|
58
75
|
attr_accessor :team
|
|
59
76
|
|
|
77
|
+
# The employee's pay group
|
|
60
78
|
attr_accessor :pay_group
|
|
61
79
|
|
|
62
80
|
# The employee's social security number.
|
|
63
81
|
attr_accessor :ssn
|
|
64
82
|
|
|
65
|
-
# The employee's gender.
|
|
83
|
+
# The employee's gender. * `MALE` - MALE * `FEMALE` - FEMALE * `NON-BINARY` - NON-BINARY * `OTHER` - OTHER * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE
|
|
66
84
|
attr_accessor :gender
|
|
67
85
|
|
|
68
|
-
# The employee's ethnicity.
|
|
86
|
+
# The employee's ethnicity. * `AMERICAN_INDIAN_OR_ALASKA_NATIVE` - AMERICAN_INDIAN_OR_ALASKA_NATIVE * `ASIAN_OR_INDIAN_SUBCONTINENT` - ASIAN_OR_INDIAN_SUBCONTINENT * `BLACK_OR_AFRICAN_AMERICAN` - BLACK_OR_AFRICAN_AMERICAN * `HISPANIC_OR_LATINO` - HISPANIC_OR_LATINO * `NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER` - NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER * `TWO_OR_MORE_RACES` - TWO_OR_MORE_RACES * `WHITE` - WHITE * `PREFER_NOT_TO_DISCLOSE` - PREFER_NOT_TO_DISCLOSE
|
|
69
87
|
attr_accessor :ethnicity
|
|
70
88
|
|
|
71
|
-
# The employee's marital status.
|
|
89
|
+
# The employee's filing status as related to marital status. * `SINGLE` - SINGLE * `MARRIED_FILING_JOINTLY` - MARRIED_FILING_JOINTLY * `MARRIED_FILING_SEPARATELY` - MARRIED_FILING_SEPARATELY * `HEAD_OF_HOUSEHOLD` - HEAD_OF_HOUSEHOLD * `QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD` - QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD
|
|
72
90
|
attr_accessor :marital_status
|
|
73
91
|
|
|
74
92
|
# The employee's date of birth.
|
|
@@ -77,10 +95,13 @@ module MergeHRISClient
|
|
|
77
95
|
# The date that the employee was hired, usually the day that an offer letter is signed. If an employee has multiple hire dates from previous employments, this represents the most recent hire date. Note: If you're looking for the employee's start date, refer to the start_date field.
|
|
78
96
|
attr_accessor :hire_date
|
|
79
97
|
|
|
80
|
-
# The date that the employee started working. If an employee
|
|
98
|
+
# The date that the employee started working. If an employee was rehired, the most recent start date will be returned.
|
|
81
99
|
attr_accessor :start_date
|
|
82
100
|
|
|
83
|
-
#
|
|
101
|
+
# When the third party's employee was created.
|
|
102
|
+
attr_accessor :remote_created_at
|
|
103
|
+
|
|
104
|
+
# The employment status of the employee. * `ACTIVE` - ACTIVE * `PENDING` - PENDING * `INACTIVE` - INACTIVE
|
|
84
105
|
attr_accessor :employment_status
|
|
85
106
|
|
|
86
107
|
# The employee's termination date.
|
|
@@ -89,23 +110,29 @@ module MergeHRISClient
|
|
|
89
110
|
# The URL of the employee's avatar image.
|
|
90
111
|
attr_accessor :avatar
|
|
91
112
|
|
|
92
|
-
attr_accessor :remote_data
|
|
93
|
-
|
|
94
113
|
# Custom fields configured for a given model.
|
|
95
114
|
attr_accessor :custom_fields
|
|
96
115
|
|
|
97
116
|
attr_accessor :remote_was_deleted
|
|
98
117
|
|
|
118
|
+
attr_accessor :field_mappings
|
|
119
|
+
|
|
120
|
+
attr_accessor :remote_data
|
|
121
|
+
|
|
99
122
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
100
123
|
def self.attribute_map
|
|
101
124
|
{
|
|
102
125
|
:'id' => :'id',
|
|
103
126
|
:'remote_id' => :'remote_id',
|
|
127
|
+
:'created_at' => :'created_at',
|
|
128
|
+
:'modified_at' => :'modified_at',
|
|
104
129
|
:'employee_number' => :'employee_number',
|
|
105
130
|
:'company' => :'company',
|
|
106
131
|
:'first_name' => :'first_name',
|
|
107
132
|
:'last_name' => :'last_name',
|
|
133
|
+
:'preferred_name' => :'preferred_name',
|
|
108
134
|
:'display_full_name' => :'display_full_name',
|
|
135
|
+
:'username' => :'username',
|
|
109
136
|
:'groups' => :'groups',
|
|
110
137
|
:'work_email' => :'work_email',
|
|
111
138
|
:'personal_email' => :'personal_email',
|
|
@@ -123,12 +150,14 @@ module MergeHRISClient
|
|
|
123
150
|
:'date_of_birth' => :'date_of_birth',
|
|
124
151
|
:'hire_date' => :'hire_date',
|
|
125
152
|
:'start_date' => :'start_date',
|
|
153
|
+
:'remote_created_at' => :'remote_created_at',
|
|
126
154
|
:'employment_status' => :'employment_status',
|
|
127
155
|
:'termination_date' => :'termination_date',
|
|
128
156
|
:'avatar' => :'avatar',
|
|
129
|
-
:'remote_data' => :'remote_data',
|
|
130
157
|
:'custom_fields' => :'custom_fields',
|
|
131
|
-
:'remote_was_deleted' => :'remote_was_deleted'
|
|
158
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
|
159
|
+
:'field_mappings' => :'field_mappings',
|
|
160
|
+
:'remote_data' => :'remote_data'
|
|
132
161
|
}
|
|
133
162
|
end
|
|
134
163
|
|
|
@@ -142,11 +171,15 @@ module MergeHRISClient
|
|
|
142
171
|
{
|
|
143
172
|
:'id' => :'String',
|
|
144
173
|
:'remote_id' => :'String',
|
|
174
|
+
:'created_at' => :'Time',
|
|
175
|
+
:'modified_at' => :'Time',
|
|
145
176
|
:'employee_number' => :'String',
|
|
146
177
|
:'company' => :'String',
|
|
147
178
|
:'first_name' => :'String',
|
|
148
179
|
:'last_name' => :'String',
|
|
180
|
+
:'preferred_name' => :'String',
|
|
149
181
|
:'display_full_name' => :'String',
|
|
182
|
+
:'username' => :'String',
|
|
150
183
|
:'groups' => :'Array<String>',
|
|
151
184
|
:'work_email' => :'String',
|
|
152
185
|
:'personal_email' => :'String',
|
|
@@ -164,12 +197,14 @@ module MergeHRISClient
|
|
|
164
197
|
:'date_of_birth' => :'Time',
|
|
165
198
|
:'hire_date' => :'Time',
|
|
166
199
|
:'start_date' => :'Time',
|
|
200
|
+
:'remote_created_at' => :'Time',
|
|
167
201
|
:'employment_status' => :'EmploymentStatusEnum',
|
|
168
202
|
:'termination_date' => :'Time',
|
|
169
203
|
:'avatar' => :'String',
|
|
170
|
-
:'
|
|
171
|
-
:'
|
|
172
|
-
:'
|
|
204
|
+
:'custom_fields' => :'Hash<String, Object>',
|
|
205
|
+
:'remote_was_deleted' => :'Boolean',
|
|
206
|
+
:'field_mappings' => :'Object',
|
|
207
|
+
:'remote_data' => :'Array<RemoteData>'
|
|
173
208
|
}
|
|
174
209
|
end
|
|
175
210
|
|
|
@@ -181,7 +216,9 @@ module MergeHRISClient
|
|
|
181
216
|
:'company',
|
|
182
217
|
:'first_name',
|
|
183
218
|
:'last_name',
|
|
219
|
+
:'preferred_name',
|
|
184
220
|
:'display_full_name',
|
|
221
|
+
:'username',
|
|
185
222
|
:'work_email',
|
|
186
223
|
:'personal_email',
|
|
187
224
|
:'mobile_phone_number',
|
|
@@ -197,11 +234,13 @@ module MergeHRISClient
|
|
|
197
234
|
:'date_of_birth',
|
|
198
235
|
:'hire_date',
|
|
199
236
|
:'start_date',
|
|
237
|
+
:'remote_created_at',
|
|
200
238
|
:'employment_status',
|
|
201
239
|
:'termination_date',
|
|
202
240
|
:'avatar',
|
|
203
|
-
:'remote_data',
|
|
204
241
|
:'custom_fields',
|
|
242
|
+
:'field_mappings',
|
|
243
|
+
:'remote_data'
|
|
205
244
|
])
|
|
206
245
|
end
|
|
207
246
|
|
|
@@ -228,6 +267,14 @@ module MergeHRISClient
|
|
|
228
267
|
self.remote_id = attributes[:'remote_id']
|
|
229
268
|
end
|
|
230
269
|
|
|
270
|
+
if attributes.key?(:'created_at')
|
|
271
|
+
self.created_at = attributes[:'created_at']
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
if attributes.key?(:'modified_at')
|
|
275
|
+
self.modified_at = attributes[:'modified_at']
|
|
276
|
+
end
|
|
277
|
+
|
|
231
278
|
if attributes.key?(:'employee_number')
|
|
232
279
|
self.employee_number = attributes[:'employee_number']
|
|
233
280
|
end
|
|
@@ -244,10 +291,18 @@ module MergeHRISClient
|
|
|
244
291
|
self.last_name = attributes[:'last_name']
|
|
245
292
|
end
|
|
246
293
|
|
|
294
|
+
if attributes.key?(:'preferred_name')
|
|
295
|
+
self.preferred_name = attributes[:'preferred_name']
|
|
296
|
+
end
|
|
297
|
+
|
|
247
298
|
if attributes.key?(:'display_full_name')
|
|
248
299
|
self.display_full_name = attributes[:'display_full_name']
|
|
249
300
|
end
|
|
250
301
|
|
|
302
|
+
if attributes.key?(:'username')
|
|
303
|
+
self.username = attributes[:'username']
|
|
304
|
+
end
|
|
305
|
+
|
|
251
306
|
if attributes.key?(:'groups')
|
|
252
307
|
if (value = attributes[:'groups']).is_a?(Array)
|
|
253
308
|
self.groups = value
|
|
@@ -320,6 +375,10 @@ module MergeHRISClient
|
|
|
320
375
|
self.start_date = attributes[:'start_date']
|
|
321
376
|
end
|
|
322
377
|
|
|
378
|
+
if attributes.key?(:'remote_created_at')
|
|
379
|
+
self.remote_created_at = attributes[:'remote_created_at']
|
|
380
|
+
end
|
|
381
|
+
|
|
323
382
|
if attributes.key?(:'employment_status')
|
|
324
383
|
self.employment_status = attributes[:'employment_status']
|
|
325
384
|
end
|
|
@@ -332,12 +391,6 @@ module MergeHRISClient
|
|
|
332
391
|
self.avatar = attributes[:'avatar']
|
|
333
392
|
end
|
|
334
393
|
|
|
335
|
-
if attributes.key?(:'remote_data')
|
|
336
|
-
if (value = attributes[:'remote_data']).is_a?(Array)
|
|
337
|
-
self.remote_data = value
|
|
338
|
-
end
|
|
339
|
-
end
|
|
340
|
-
|
|
341
394
|
if attributes.key?(:'custom_fields')
|
|
342
395
|
if (value = attributes[:'custom_fields']).is_a?(Hash)
|
|
343
396
|
self.custom_fields = value
|
|
@@ -347,6 +400,16 @@ module MergeHRISClient
|
|
|
347
400
|
if attributes.key?(:'remote_was_deleted')
|
|
348
401
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
|
349
402
|
end
|
|
403
|
+
|
|
404
|
+
if attributes.key?(:'field_mappings')
|
|
405
|
+
self.field_mappings = attributes[:'field_mappings']
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
if attributes.key?(:'remote_data')
|
|
409
|
+
if (value = attributes[:'remote_data']).is_a?(Array)
|
|
410
|
+
self.remote_data = value
|
|
411
|
+
end
|
|
412
|
+
end
|
|
350
413
|
end
|
|
351
414
|
|
|
352
415
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -429,11 +492,15 @@ module MergeHRISClient
|
|
|
429
492
|
self.class == o.class &&
|
|
430
493
|
id == o.id &&
|
|
431
494
|
remote_id == o.remote_id &&
|
|
495
|
+
created_at == o.created_at &&
|
|
496
|
+
modified_at == o.modified_at &&
|
|
432
497
|
employee_number == o.employee_number &&
|
|
433
498
|
company == o.company &&
|
|
434
499
|
first_name == o.first_name &&
|
|
435
500
|
last_name == o.last_name &&
|
|
501
|
+
preferred_name == o.preferred_name &&
|
|
436
502
|
display_full_name == o.display_full_name &&
|
|
503
|
+
username == o.username &&
|
|
437
504
|
groups == o.groups &&
|
|
438
505
|
work_email == o.work_email &&
|
|
439
506
|
personal_email == o.personal_email &&
|
|
@@ -451,12 +518,14 @@ module MergeHRISClient
|
|
|
451
518
|
date_of_birth == o.date_of_birth &&
|
|
452
519
|
hire_date == o.hire_date &&
|
|
453
520
|
start_date == o.start_date &&
|
|
521
|
+
remote_created_at == o.remote_created_at &&
|
|
454
522
|
employment_status == o.employment_status &&
|
|
455
523
|
termination_date == o.termination_date &&
|
|
456
524
|
avatar == o.avatar &&
|
|
457
|
-
remote_data == o.remote_data &&
|
|
458
525
|
custom_fields == o.custom_fields &&
|
|
459
|
-
remote_was_deleted == o.remote_was_deleted
|
|
526
|
+
remote_was_deleted == o.remote_was_deleted &&
|
|
527
|
+
field_mappings == o.field_mappings &&
|
|
528
|
+
remote_data == o.remote_data
|
|
460
529
|
end
|
|
461
530
|
|
|
462
531
|
# @see the `==` method
|
|
@@ -468,7 +537,7 @@ module MergeHRISClient
|
|
|
468
537
|
# Calculates hash code according to all attributes.
|
|
469
538
|
# @return [Integer] Hash code
|
|
470
539
|
def hash
|
|
471
|
-
[id, remote_id, employee_number, company, first_name, last_name, display_full_name, groups, work_email, personal_email, mobile_phone_number, employments, home_location, work_location, manager, team, pay_group, ssn, gender, ethnicity, marital_status, date_of_birth, hire_date, start_date, employment_status, termination_date, avatar,
|
|
540
|
+
[id, remote_id, created_at, modified_at, employee_number, company, first_name, last_name, preferred_name, display_full_name, username, groups, work_email, personal_email, mobile_phone_number, employments, home_location, work_location, manager, team, pay_group, ssn, gender, ethnicity, marital_status, date_of_birth, hire_date, start_date, remote_created_at, employment_status, termination_date, avatar, custom_fields, remote_was_deleted, field_mappings, remote_data].hash
|
|
472
541
|
end
|
|
473
542
|
|
|
474
543
|
# Builds the object from hash
|
|
@@ -14,21 +14,29 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module MergeHRISClient
|
|
17
|
-
# # The EmployeePayrollRun Object ### Description The `EmployeePayrollRun` object is used to represent
|
|
17
|
+
# # The EmployeePayrollRun Object ### Description The `EmployeePayrollRun` object is used to represent an employee's pay statement for a specific payroll run. ### Usage Example Fetch from the `LIST EmployeePayrollRun` endpoint and filter by `ID` to show all employee payroll runs.
|
|
18
18
|
class EmployeePayrollRun
|
|
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 whose payroll is being run.
|
|
24
31
|
attr_accessor :employee
|
|
25
32
|
|
|
33
|
+
# The payroll being run.
|
|
26
34
|
attr_accessor :payroll_run
|
|
27
35
|
|
|
28
|
-
# The
|
|
36
|
+
# The total earnings throughout a given period for an employee before any deductions are made.
|
|
29
37
|
attr_accessor :gross_pay
|
|
30
38
|
|
|
31
|
-
# The
|
|
39
|
+
# The take-home pay throughout a given period for an employee after deductions are made.
|
|
32
40
|
attr_accessor :net_pay
|
|
33
41
|
|
|
34
42
|
# The day and time the payroll run started.
|
|
@@ -46,16 +54,20 @@ module MergeHRISClient
|
|
|
46
54
|
|
|
47
55
|
attr_accessor :taxes
|
|
48
56
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
# Indicates whether or not this object has been deleted by third party webhooks.
|
|
57
|
+
# Indicates whether or not this object has been deleted in the third party platform.
|
|
52
58
|
attr_accessor :remote_was_deleted
|
|
53
59
|
|
|
60
|
+
attr_accessor :field_mappings
|
|
61
|
+
|
|
62
|
+
attr_accessor :remote_data
|
|
63
|
+
|
|
54
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
55
65
|
def self.attribute_map
|
|
56
66
|
{
|
|
57
67
|
:'id' => :'id',
|
|
58
68
|
:'remote_id' => :'remote_id',
|
|
69
|
+
:'created_at' => :'created_at',
|
|
70
|
+
:'modified_at' => :'modified_at',
|
|
59
71
|
:'employee' => :'employee',
|
|
60
72
|
:'payroll_run' => :'payroll_run',
|
|
61
73
|
:'gross_pay' => :'gross_pay',
|
|
@@ -66,8 +78,9 @@ module MergeHRISClient
|
|
|
66
78
|
:'earnings' => :'earnings',
|
|
67
79
|
:'deductions' => :'deductions',
|
|
68
80
|
:'taxes' => :'taxes',
|
|
69
|
-
:'
|
|
70
|
-
:'
|
|
81
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
|
82
|
+
:'field_mappings' => :'field_mappings',
|
|
83
|
+
:'remote_data' => :'remote_data'
|
|
71
84
|
}
|
|
72
85
|
end
|
|
73
86
|
|
|
@@ -81,6 +94,8 @@ module MergeHRISClient
|
|
|
81
94
|
{
|
|
82
95
|
:'id' => :'String',
|
|
83
96
|
:'remote_id' => :'String',
|
|
97
|
+
:'created_at' => :'Time',
|
|
98
|
+
:'modified_at' => :'Time',
|
|
84
99
|
:'employee' => :'String',
|
|
85
100
|
:'payroll_run' => :'String',
|
|
86
101
|
:'gross_pay' => :'Float',
|
|
@@ -91,8 +106,9 @@ module MergeHRISClient
|
|
|
91
106
|
:'earnings' => :'Array<Earning>',
|
|
92
107
|
:'deductions' => :'Array<Deduction>',
|
|
93
108
|
:'taxes' => :'Array<Tax>',
|
|
94
|
-
:'
|
|
95
|
-
:'
|
|
109
|
+
:'remote_was_deleted' => :'Boolean',
|
|
110
|
+
:'field_mappings' => :'Object',
|
|
111
|
+
:'remote_data' => :'Array<RemoteData>'
|
|
96
112
|
}
|
|
97
113
|
end
|
|
98
114
|
|
|
@@ -107,7 +123,8 @@ module MergeHRISClient
|
|
|
107
123
|
:'start_date',
|
|
108
124
|
:'end_date',
|
|
109
125
|
:'check_date',
|
|
110
|
-
:'
|
|
126
|
+
:'field_mappings',
|
|
127
|
+
:'remote_data'
|
|
111
128
|
])
|
|
112
129
|
end
|
|
113
130
|
|
|
@@ -134,6 +151,14 @@ module MergeHRISClient
|
|
|
134
151
|
self.remote_id = attributes[:'remote_id']
|
|
135
152
|
end
|
|
136
153
|
|
|
154
|
+
if attributes.key?(:'created_at')
|
|
155
|
+
self.created_at = attributes[:'created_at']
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if attributes.key?(:'modified_at')
|
|
159
|
+
self.modified_at = attributes[:'modified_at']
|
|
160
|
+
end
|
|
161
|
+
|
|
137
162
|
if attributes.key?(:'employee')
|
|
138
163
|
self.employee = attributes[:'employee']
|
|
139
164
|
end
|
|
@@ -180,15 +205,19 @@ module MergeHRISClient
|
|
|
180
205
|
end
|
|
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
|
payroll_run == o.payroll_run &&
|
|
216
247
|
gross_pay == o.gross_pay &&
|
|
@@ -221,8 +252,9 @@ module MergeHRISClient
|
|
|
221
252
|
earnings == o.earnings &&
|
|
222
253
|
deductions == o.deductions &&
|
|
223
254
|
taxes == o.taxes &&
|
|
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, payroll_run, gross_pay, net_pay, start_date, end_date, check_date, earnings, deductions, taxes,
|
|
269
|
+
[id, remote_id, created_at, modified_at, employee, payroll_run, gross_pay, net_pay, start_date, end_date, check_date, earnings, deductions, taxes, remote_was_deleted, field_mappings, remote_data].hash
|
|
238
270
|
end
|
|
239
271
|
|
|
240
272
|
# Builds the object from hash
|