stackone_client 0.5.8 → 0.6.0
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/lib/stack_one/accounts.rb +107 -20
- data/lib/stack_one/ats.rb +1677 -350
- data/lib/stack_one/connect_sessions.rb +44 -8
- data/lib/stack_one/connectors.rb +44 -8
- data/lib/stack_one/crm.rb +212 -40
- data/lib/stack_one/hris.rb +1354 -282
- data/lib/stack_one/iam.rb +170 -32
- data/lib/stack_one/lms.rb +569 -108
- data/lib/stack_one/marketing.rb +548 -104
- data/lib/stack_one/models/operations/ats_delete_background_check_package_request.rb +27 -0
- data/lib/stack_one/models/operations/ats_delete_background_check_package_response.rb +36 -0
- data/lib/stack_one/models/operations/ats_get_application_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_application_document_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_note_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_offer_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_scheduled_interview_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_application_scorecard_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_assessments_package_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_assessments_request_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_assessments_result_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_background_check_package_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_background_check_request_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_background_check_result_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_candidate_note_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_candidate_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_department_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_interview_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_interview_stage_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_job_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_get_job_posting_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_job_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_list_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_location_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_offer_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_rejected_reason_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_get_user_request.rb +1 -1
- data/lib/stack_one/models/operations/ats_list_application_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_application_notes_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_application_scorecards_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_applications_offers_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_applications_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_applications_scheduled_interviews_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_assessments_packages_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_background_check_packages_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_background_check_request_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_candidate_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_candidate_notes_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_candidates_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_departments_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_interview_stages_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_interviews_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_job_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_jobs_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_lists_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_locations_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_offers_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_list_users_request.rb +2 -2
- data/lib/stack_one/models/operations/ats_update_background_check_package_request.rb +30 -0
- data/lib/stack_one/models/operations/ats_update_background_check_package_response.rb +36 -0
- data/lib/stack_one/models/operations/crm_get_account_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_contact_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_get_contact_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_get_list_request.rb +1 -1
- data/lib/stack_one/models/operations/crm_list_accounts_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_contact_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_contacts_request.rb +2 -2
- data/lib/stack_one/models/operations/crm_list_lists_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_benefit_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_company_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_cost_center_group_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_department_group_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_custom_field_definition_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employee_document_category_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_employment_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employee_skill_request.rb +39 -0
- data/lib/stack_one/models/operations/hris_get_employee_skill_response.rb +36 -0
- data/lib/stack_one/models/operations/hris_get_employee_time_off_balance_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employees_work_eligibility_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_employment_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_group_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_job_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_location_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_location_response.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_team_group_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_entries_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_off_policy_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_get_time_off_type_request.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_benefits_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_companies_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_cost_center_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_department_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_categories_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_custom_field_definitions_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_employments_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_skills_queryparam_filter.rb +24 -0
- data/lib/stack_one/models/operations/hris_list_employee_skills_request.rb +55 -0
- data/lib/stack_one/models/operations/hris_list_employee_skills_response.rb +36 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_balances_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employee_work_eligibility_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employees_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_employments_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_jobs_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_locations_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_locations_response.rb +1 -1
- data/lib/stack_one/models/operations/hris_list_team_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_entries_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_off_policies_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_time_off_types_request.rb +2 -2
- data/lib/stack_one/models/operations/iam_get_group_request.rb +1 -1
- data/lib/stack_one/models/operations/iam_get_policy_request.rb +1 -1
- data/lib/stack_one/models/operations/iam_get_role_request.rb +1 -1
- data/lib/stack_one/models/operations/iam_get_user_request.rb +1 -1
- data/lib/stack_one/models/operations/iam_list_groups_request.rb +2 -2
- data/lib/stack_one/models/operations/iam_list_policies_request.rb +2 -2
- data/lib/stack_one/models/operations/iam_list_roles_request.rb +2 -2
- data/lib/stack_one/models/operations/iam_list_users_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_get_assignment_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_category_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_completion_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_content_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_course_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_skill_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_user_assignment_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_user_completion_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_get_user_request.rb +1 -1
- data/lib/stack_one/models/operations/lms_list_assignments_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_categories_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_completions_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_content_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_courses_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_skills_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_user_assignments_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_user_completions_request.rb +2 -2
- data/lib/stack_one/models/operations/lms_list_users_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_get_campaign_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_content_block_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_email_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_in_app_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_push_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_get_sms_template_request.rb +1 -1
- data/lib/stack_one/models/operations/marketing_list_campaigns_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_content_blocks_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_email_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_in_app_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_push_templates_request.rb +2 -2
- data/lib/stack_one/models/operations/marketing_list_sms_templates_request.rb +2 -2
- data/lib/stack_one/models/operations.rb +9 -0
- data/lib/stack_one/models/shared/atsupdatebackgroundcheckpackagesrequestdto.rb +33 -0
- data/lib/stack_one/models/shared/balance_unit.rb +1 -1
- data/lib/stack_one/models/shared/categories.rb +2 -0
- data/lib/stack_one/models/shared/company.rb +5 -2
- data/lib/stack_one/models/shared/connectorsmeta_category.rb +2 -0
- data/lib/stack_one/models/shared/connectsession.rb +5 -2
- data/lib/stack_one/models/shared/connectsessioncreate.rb +2 -2
- data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +2 -0
- data/lib/stack_one/models/shared/connectsessioncreate_metadata.rb +20 -0
- data/lib/stack_one/models/shared/connectsessiontokenauthlink.rb +5 -2
- data/lib/stack_one/models/shared/connectsessiontokenauthlink_categories.rb +2 -0
- data/lib/stack_one/models/shared/connectsessiontokenauthlink_metadata.rb +20 -0
- data/lib/stack_one/models/shared/createemploymentapimodel.rb +4 -5
- data/lib/stack_one/models/shared/duration_unit.rb +27 -0
- data/lib/stack_one/models/shared/employee.rb +5 -2
- data/lib/stack_one/models/shared/employee_company.rb +5 -2
- data/lib/stack_one/models/shared/entityskillresult.rb +27 -0
- data/lib/stack_one/models/shared/entityskills.rb +42 -0
- data/lib/stack_one/models/shared/entityskills_language.rb +27 -0
- data/lib/stack_one/models/shared/entityskills_schemas_minimum_proficiency_value.rb +21 -0
- data/lib/stack_one/models/shared/entityskills_schemas_value.rb +21 -0
- data/lib/stack_one/models/shared/{localisationmodel_value.rb → entityskills_value.rb} +2 -2
- data/lib/stack_one/models/shared/entityskillscreaterequestdto.rb +3 -3
- data/lib/stack_one/models/shared/entityskillscreaterequestdto_maximum_proficiency.rb +36 -0
- data/lib/stack_one/models/shared/entityskillscreaterequestdto_minimum_proficiency.rb +36 -0
- data/lib/stack_one/models/shared/entityskillspaginated.rb +30 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +10 -8
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment.rb +56 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_pay_period.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_employment_contract_type_value.rb +20 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_pay_period_value.rb +29 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_value.rb +31 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_state.rb +3 -3
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto.rb +4 -5
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +8 -2
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_reason.rb +30 -0
- data/lib/stack_one/models/shared/hrisdepartment_value.rb +1 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto.rb +8 -8
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment.rb +56 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_pay_period.rb +27 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_employment_contract_type_value.rb +20 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_pay_period_value.rb +29 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_employment_value.rb +31 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_state.rb +3 -3
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_state.rb +3 -3
- data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +2 -0
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +5 -5
- data/lib/stack_one/models/shared/lmsupsertcourserequestdto.rb +5 -2
- data/lib/stack_one/models/shared/{localisationmodel.rb → localizationmodel.rb} +4 -4
- data/lib/stack_one/models/shared/{localisationmodel_language.rb → localizationmodel_language.rb} +4 -4
- data/lib/stack_one/models/shared/localizationmodel_value.rb +426 -0
- data/lib/stack_one/models/shared/maximum_proficiency.rb +2 -2
- data/lib/stack_one/models/shared/metadata.rb +1 -1
- data/lib/stack_one/models/shared/minimum_proficiency.rb +2 -2
- data/lib/stack_one/models/shared/patchaccountexternaldto.rb +5 -2
- data/lib/stack_one/models/shared/patchaccountexternaldto_metadata.rb +20 -0
- data/lib/stack_one/models/shared/policy.rb +8 -2
- data/lib/stack_one/models/shared/reason.rb +30 -0
- data/lib/stack_one/models/shared/state.rb +3 -3
- data/lib/stack_one/models/shared/timeoff.rb +11 -2
- data/lib/stack_one/models/shared/timeoff_reason.rb +30 -0
- data/lib/stack_one/models/shared/timeoffbalances_duration_unit.rb +27 -0
- data/lib/stack_one/models/shared/timeoffbalances_schemas_policy_value.rb +26 -0
- data/lib/stack_one/models/shared/timeoffbalances_schemas_value.rb +8 -11
- data/lib/stack_one/models/shared/timeoffbalances_type.rb +2 -2
- data/lib/stack_one/models/shared/timeoffbalances_value.rb +1 -1
- data/lib/stack_one/models/shared/timeoffpolicies.rb +8 -2
- data/lib/stack_one/models/shared/timeoffpolicies_schemas_value.rb +26 -0
- data/lib/stack_one/models/shared/timeoffpolicies_type.rb +2 -2
- data/lib/stack_one/models/shared/timeoffpolicies_value.rb +8 -11
- data/lib/stack_one/models/shared/updateemployeeapimodel.rb +8 -8
- data/lib/stack_one/models/shared/updateemployeeapimodel_employment.rb +56 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_pay_period.rb +27 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_employment_contract_type_value.rb +20 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_pay_period_value.rb +29 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_employment_value.rb +31 -0
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_state.rb +3 -3
- data/lib/stack_one/models/shared/updateemployeeapimodel_state.rb +3 -3
- data/lib/stack_one/models/shared/updatepackage.rb +30 -0
- data/lib/stack_one/models/shared.rb +55 -13
- data/lib/stack_one/proxy.rb +23 -4
- data/lib/stack_one/sdkconfiguration.rb +24 -8
- data/lib/stack_one/stackone.rb +28 -36
- data/lib/stack_one/utils/retries.rb +95 -0
- metadata +93 -13
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_home_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_schemas_work_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_home_location_state_value.rb +0 -3840
- data/lib/stack_one/models/shared/updateemployeeapimodel_schemas_work_location_state_value.rb +0 -3840
data/lib/stack_one/hris.rb
CHANGED
@@ -5,7 +5,9 @@
|
|
5
5
|
|
6
6
|
require 'faraday'
|
7
7
|
require 'faraday/multipart'
|
8
|
+
require 'faraday/retry'
|
8
9
|
require 'sorbet-runtime'
|
10
|
+
require_relative 'utils/retries'
|
9
11
|
|
10
12
|
module StackOne
|
11
13
|
extend T::Sig
|
@@ -19,8 +21,8 @@ module StackOne
|
|
19
21
|
end
|
20
22
|
|
21
23
|
|
22
|
-
sig { params(hris_batch_document_upload_request_dto: ::StackOne::Shared::HrisBatchDocumentUploadRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisBatchUploadEmployeeDocumentResponse) }
|
23
|
-
def batch_upload_employee_document(hris_batch_document_upload_request_dto, id, x_account_id)
|
24
|
+
sig { params(hris_batch_document_upload_request_dto: ::StackOne::Shared::HrisBatchDocumentUploadRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisBatchUploadEmployeeDocumentResponse) }
|
25
|
+
def batch_upload_employee_document(hris_batch_document_upload_request_dto, id, x_account_id, retries = nil)
|
24
26
|
# batch_upload_employee_document - Batch Upload Employee Document
|
25
27
|
request = ::StackOne::Operations::HrisBatchUploadEmployeeDocumentRequest.new(
|
26
28
|
|
@@ -42,10 +44,27 @@ module StackOne
|
|
42
44
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
43
45
|
headers['Accept'] = 'application/json'
|
44
46
|
headers['user-agent'] = @sdk_configuration.user_agent
|
45
|
-
|
46
|
-
|
47
|
+
retries ||= @sdk_configuration.retry_config
|
48
|
+
retries ||= Utils::RetryConfig.new(
|
49
|
+
backoff: Utils::BackoffStrategy.new(
|
50
|
+
exponent: 1.5,
|
51
|
+
initial_interval: 500,
|
52
|
+
max_elapsed_time: 3_600_000,
|
53
|
+
max_interval: 60_000
|
54
|
+
),
|
55
|
+
retry_connection_errors: true,
|
56
|
+
strategy: 'backoff'
|
57
|
+
)
|
58
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
59
|
+
retry_options[:retry_statuses] = [429, 408]
|
60
|
+
|
61
|
+
connection = @sdk_configuration.client.dup
|
62
|
+
connection.request :retry, retry_options
|
63
|
+
|
64
|
+
r = connection.post(url) do |req|
|
47
65
|
req.headers = headers
|
48
|
-
|
66
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
67
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
49
68
|
if form
|
50
69
|
req.body = Utils.encode_form(form)
|
51
70
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
@@ -75,8 +94,8 @@ module StackOne
|
|
75
94
|
end
|
76
95
|
|
77
96
|
|
78
|
-
sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeResponse) }
|
79
|
-
def create_employee(hris_create_employee_request_dto, x_account_id)
|
97
|
+
sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisCreateEmployeeResponse) }
|
98
|
+
def create_employee(hris_create_employee_request_dto, x_account_id, retries = nil)
|
80
99
|
# create_employee - Creates an employee
|
81
100
|
request = ::StackOne::Operations::HrisCreateEmployeeRequest.new(
|
82
101
|
|
@@ -92,10 +111,27 @@ module StackOne
|
|
92
111
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
93
112
|
headers['Accept'] = 'application/json'
|
94
113
|
headers['user-agent'] = @sdk_configuration.user_agent
|
95
|
-
|
96
|
-
|
114
|
+
retries ||= @sdk_configuration.retry_config
|
115
|
+
retries ||= Utils::RetryConfig.new(
|
116
|
+
backoff: Utils::BackoffStrategy.new(
|
117
|
+
exponent: 1.5,
|
118
|
+
initial_interval: 500,
|
119
|
+
max_elapsed_time: 3_600_000,
|
120
|
+
max_interval: 60_000
|
121
|
+
),
|
122
|
+
retry_connection_errors: true,
|
123
|
+
strategy: 'backoff'
|
124
|
+
)
|
125
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
126
|
+
retry_options[:retry_statuses] = [429, 408]
|
127
|
+
|
128
|
+
connection = @sdk_configuration.client.dup
|
129
|
+
connection.request :retry, retry_options
|
130
|
+
|
131
|
+
r = connection.post(url) do |req|
|
97
132
|
req.headers = headers
|
98
|
-
|
133
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
134
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
99
135
|
if form
|
100
136
|
req.body = Utils.encode_form(form)
|
101
137
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
@@ -125,8 +161,8 @@ module StackOne
|
|
125
161
|
end
|
126
162
|
|
127
163
|
|
128
|
-
sig { params(hris_create_employment_request_dto: ::StackOne::Shared::HrisCreateEmploymentRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeEmploymentResponse) }
|
129
|
-
def create_employee_employment(hris_create_employment_request_dto, id, x_account_id)
|
164
|
+
sig { params(hris_create_employment_request_dto: ::StackOne::Shared::HrisCreateEmploymentRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisCreateEmployeeEmploymentResponse) }
|
165
|
+
def create_employee_employment(hris_create_employment_request_dto, id, x_account_id, retries = nil)
|
130
166
|
# create_employee_employment - Create Employee Employment
|
131
167
|
request = ::StackOne::Operations::HrisCreateEmployeeEmploymentRequest.new(
|
132
168
|
|
@@ -148,10 +184,27 @@ module StackOne
|
|
148
184
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
149
185
|
headers['Accept'] = 'application/json'
|
150
186
|
headers['user-agent'] = @sdk_configuration.user_agent
|
151
|
-
|
152
|
-
|
187
|
+
retries ||= @sdk_configuration.retry_config
|
188
|
+
retries ||= Utils::RetryConfig.new(
|
189
|
+
backoff: Utils::BackoffStrategy.new(
|
190
|
+
exponent: 1.5,
|
191
|
+
initial_interval: 500,
|
192
|
+
max_elapsed_time: 3_600_000,
|
193
|
+
max_interval: 60_000
|
194
|
+
),
|
195
|
+
retry_connection_errors: true,
|
196
|
+
strategy: 'backoff'
|
197
|
+
)
|
198
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
199
|
+
retry_options[:retry_statuses] = [429, 408]
|
200
|
+
|
201
|
+
connection = @sdk_configuration.client.dup
|
202
|
+
connection.request :retry, retry_options
|
203
|
+
|
204
|
+
r = connection.post(url) do |req|
|
153
205
|
req.headers = headers
|
154
|
-
|
206
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
207
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
155
208
|
if form
|
156
209
|
req.body = Utils.encode_form(form)
|
157
210
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
@@ -181,8 +234,8 @@ module StackOne
|
|
181
234
|
end
|
182
235
|
|
183
236
|
|
184
|
-
sig { params(entity_skills_create_request_dto: ::StackOne::Shared::EntitySkillsCreateRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeSkillResponse) }
|
185
|
-
def create_employee_skill(entity_skills_create_request_dto, id, x_account_id)
|
237
|
+
sig { params(entity_skills_create_request_dto: ::StackOne::Shared::EntitySkillsCreateRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisCreateEmployeeSkillResponse) }
|
238
|
+
def create_employee_skill(entity_skills_create_request_dto, id, x_account_id, retries = nil)
|
186
239
|
# create_employee_skill - Create Employee Skill
|
187
240
|
request = ::StackOne::Operations::HrisCreateEmployeeSkillRequest.new(
|
188
241
|
|
@@ -204,10 +257,27 @@ module StackOne
|
|
204
257
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
205
258
|
headers['Accept'] = 'application/json'
|
206
259
|
headers['user-agent'] = @sdk_configuration.user_agent
|
207
|
-
|
208
|
-
|
260
|
+
retries ||= @sdk_configuration.retry_config
|
261
|
+
retries ||= Utils::RetryConfig.new(
|
262
|
+
backoff: Utils::BackoffStrategy.new(
|
263
|
+
exponent: 1.5,
|
264
|
+
initial_interval: 500,
|
265
|
+
max_elapsed_time: 3_600_000,
|
266
|
+
max_interval: 60_000
|
267
|
+
),
|
268
|
+
retry_connection_errors: true,
|
269
|
+
strategy: 'backoff'
|
270
|
+
)
|
271
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
272
|
+
retry_options[:retry_statuses] = [429, 408]
|
273
|
+
|
274
|
+
connection = @sdk_configuration.client.dup
|
275
|
+
connection.request :retry, retry_options
|
276
|
+
|
277
|
+
r = connection.post(url) do |req|
|
209
278
|
req.headers = headers
|
210
|
-
|
279
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
280
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
211
281
|
if form
|
212
282
|
req.body = Utils.encode_form(form)
|
213
283
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
@@ -237,8 +307,8 @@ module StackOne
|
|
237
307
|
end
|
238
308
|
|
239
309
|
|
240
|
-
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeTimeOffRequestResponse) }
|
241
|
-
def create_employee_time_off_request(hris_create_time_off_request_dto, id, x_account_id)
|
310
|
+
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisCreateEmployeeTimeOffRequestResponse) }
|
311
|
+
def create_employee_time_off_request(hris_create_time_off_request_dto, id, x_account_id, retries = nil)
|
242
312
|
# create_employee_time_off_request - Create Employee Time Off Request
|
243
313
|
request = ::StackOne::Operations::HrisCreateEmployeeTimeOffRequestRequest.new(
|
244
314
|
|
@@ -260,10 +330,27 @@ module StackOne
|
|
260
330
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
261
331
|
headers['Accept'] = 'application/json'
|
262
332
|
headers['user-agent'] = @sdk_configuration.user_agent
|
263
|
-
|
264
|
-
|
333
|
+
retries ||= @sdk_configuration.retry_config
|
334
|
+
retries ||= Utils::RetryConfig.new(
|
335
|
+
backoff: Utils::BackoffStrategy.new(
|
336
|
+
exponent: 1.5,
|
337
|
+
initial_interval: 500,
|
338
|
+
max_elapsed_time: 3_600_000,
|
339
|
+
max_interval: 60_000
|
340
|
+
),
|
341
|
+
retry_connection_errors: true,
|
342
|
+
strategy: 'backoff'
|
343
|
+
)
|
344
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
345
|
+
retry_options[:retry_statuses] = [429, 408]
|
346
|
+
|
347
|
+
connection = @sdk_configuration.client.dup
|
348
|
+
connection.request :retry, retry_options
|
349
|
+
|
350
|
+
r = connection.post(url) do |req|
|
265
351
|
req.headers = headers
|
266
|
-
|
352
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
353
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
267
354
|
if form
|
268
355
|
req.body = Utils.encode_form(form)
|
269
356
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
@@ -293,8 +380,8 @@ module StackOne
|
|
293
380
|
end
|
294
381
|
|
295
382
|
|
296
|
-
sig { params(hris_create_work_eligibility_request_dto: ::StackOne::Shared::HrisCreateWorkEligibilityRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateEmployeeWorkEligibilityRequestResponse) }
|
297
|
-
def create_employee_work_eligibility_request(hris_create_work_eligibility_request_dto, id, x_account_id)
|
383
|
+
sig { params(hris_create_work_eligibility_request_dto: ::StackOne::Shared::HrisCreateWorkEligibilityRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisCreateEmployeeWorkEligibilityRequestResponse) }
|
384
|
+
def create_employee_work_eligibility_request(hris_create_work_eligibility_request_dto, id, x_account_id, retries = nil)
|
298
385
|
# create_employee_work_eligibility_request - Create Employee Work Eligibility Request
|
299
386
|
request = ::StackOne::Operations::HrisCreateEmployeeWorkEligibilityRequestRequest.new(
|
300
387
|
|
@@ -316,10 +403,27 @@ module StackOne
|
|
316
403
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
317
404
|
headers['Accept'] = 'application/json'
|
318
405
|
headers['user-agent'] = @sdk_configuration.user_agent
|
319
|
-
|
320
|
-
|
406
|
+
retries ||= @sdk_configuration.retry_config
|
407
|
+
retries ||= Utils::RetryConfig.new(
|
408
|
+
backoff: Utils::BackoffStrategy.new(
|
409
|
+
exponent: 1.5,
|
410
|
+
initial_interval: 500,
|
411
|
+
max_elapsed_time: 3_600_000,
|
412
|
+
max_interval: 60_000
|
413
|
+
),
|
414
|
+
retry_connection_errors: true,
|
415
|
+
strategy: 'backoff'
|
416
|
+
)
|
417
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
418
|
+
retry_options[:retry_statuses] = [429, 408]
|
419
|
+
|
420
|
+
connection = @sdk_configuration.client.dup
|
421
|
+
connection.request :retry, retry_options
|
422
|
+
|
423
|
+
r = connection.post(url) do |req|
|
321
424
|
req.headers = headers
|
322
|
-
|
425
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
426
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
323
427
|
if form
|
324
428
|
req.body = Utils.encode_form(form)
|
325
429
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
@@ -349,8 +453,8 @@ module StackOne
|
|
349
453
|
end
|
350
454
|
|
351
455
|
|
352
|
-
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, x_account_id: ::String).returns(::StackOne::Operations::HrisCreateTimeOffRequestResponse) }
|
353
|
-
def create_time_off_request(hris_create_time_off_request_dto, x_account_id)
|
456
|
+
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisCreateTimeOffRequestResponse) }
|
457
|
+
def create_time_off_request(hris_create_time_off_request_dto, x_account_id, retries = nil)
|
354
458
|
# create_time_off_request - Creates a time off request
|
355
459
|
request = ::StackOne::Operations::HrisCreateTimeOffRequestRequest.new(
|
356
460
|
|
@@ -366,10 +470,27 @@ module StackOne
|
|
366
470
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
367
471
|
headers['Accept'] = 'application/json'
|
368
472
|
headers['user-agent'] = @sdk_configuration.user_agent
|
369
|
-
|
370
|
-
|
473
|
+
retries ||= @sdk_configuration.retry_config
|
474
|
+
retries ||= Utils::RetryConfig.new(
|
475
|
+
backoff: Utils::BackoffStrategy.new(
|
476
|
+
exponent: 1.5,
|
477
|
+
initial_interval: 500,
|
478
|
+
max_elapsed_time: 3_600_000,
|
479
|
+
max_interval: 60_000
|
480
|
+
),
|
481
|
+
retry_connection_errors: true,
|
482
|
+
strategy: 'backoff'
|
483
|
+
)
|
484
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
485
|
+
retry_options[:retry_statuses] = [429, 408]
|
486
|
+
|
487
|
+
connection = @sdk_configuration.client.dup
|
488
|
+
connection.request :retry, retry_options
|
489
|
+
|
490
|
+
r = connection.post(url) do |req|
|
371
491
|
req.headers = headers
|
372
|
-
|
492
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
493
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
373
494
|
if form
|
374
495
|
req.body = Utils.encode_form(form)
|
375
496
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
@@ -399,8 +520,8 @@ module StackOne
|
|
399
520
|
end
|
400
521
|
|
401
522
|
|
402
|
-
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, format: T.nilable(::String)).returns(::StackOne::Operations::HrisDownloadEmployeeDocumentResponse) }
|
403
|
-
def download_employee_document(id, sub_resource_id, x_account_id, format = nil)
|
523
|
+
sig { params(id: ::String, sub_resource_id: ::String, x_account_id: ::String, format: T.nilable(::String), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisDownloadEmployeeDocumentResponse) }
|
524
|
+
def download_employee_document(id, sub_resource_id, x_account_id, format = nil, retries = nil)
|
404
525
|
# download_employee_document - Download Employee Document
|
405
526
|
request = ::StackOne::Operations::HrisDownloadEmployeeDocumentRequest.new(
|
406
527
|
|
@@ -421,11 +542,28 @@ module StackOne
|
|
421
542
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisDownloadEmployeeDocumentRequest, request)
|
422
543
|
headers['Accept'] = 'application/octet-stream'
|
423
544
|
headers['user-agent'] = @sdk_configuration.user_agent
|
424
|
-
|
425
|
-
|
545
|
+
retries ||= @sdk_configuration.retry_config
|
546
|
+
retries ||= Utils::RetryConfig.new(
|
547
|
+
backoff: Utils::BackoffStrategy.new(
|
548
|
+
exponent: 1.5,
|
549
|
+
initial_interval: 500,
|
550
|
+
max_elapsed_time: 3_600_000,
|
551
|
+
max_interval: 60_000
|
552
|
+
),
|
553
|
+
retry_connection_errors: true,
|
554
|
+
strategy: 'backoff'
|
555
|
+
)
|
556
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
557
|
+
retry_options[:retry_statuses] = [429, 408]
|
558
|
+
|
559
|
+
connection = @sdk_configuration.client.dup
|
560
|
+
connection.request :retry, retry_options
|
561
|
+
|
562
|
+
r = connection.get(url) do |req|
|
426
563
|
req.headers = headers
|
427
564
|
req.params = query_params
|
428
|
-
|
565
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
566
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
429
567
|
end
|
430
568
|
|
431
569
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -445,8 +583,8 @@ module StackOne
|
|
445
583
|
end
|
446
584
|
|
447
585
|
|
448
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetBenefitRequest)).returns(::StackOne::Operations::HrisGetBenefitResponse) }
|
449
|
-
def get_benefit(request)
|
586
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetBenefitRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetBenefitResponse) }
|
587
|
+
def get_benefit(request, retries = nil)
|
450
588
|
# get_benefit - Get Benefit
|
451
589
|
url, params = @sdk_configuration.get_server_details
|
452
590
|
base_url = Utils.template_url(url, params)
|
@@ -460,11 +598,28 @@ module StackOne
|
|
460
598
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetBenefitRequest, request)
|
461
599
|
headers['Accept'] = 'application/json'
|
462
600
|
headers['user-agent'] = @sdk_configuration.user_agent
|
463
|
-
|
464
|
-
|
601
|
+
retries ||= @sdk_configuration.retry_config
|
602
|
+
retries ||= Utils::RetryConfig.new(
|
603
|
+
backoff: Utils::BackoffStrategy.new(
|
604
|
+
exponent: 1.5,
|
605
|
+
initial_interval: 500,
|
606
|
+
max_elapsed_time: 3_600_000,
|
607
|
+
max_interval: 60_000
|
608
|
+
),
|
609
|
+
retry_connection_errors: true,
|
610
|
+
strategy: 'backoff'
|
611
|
+
)
|
612
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
613
|
+
retry_options[:retry_statuses] = [429, 408]
|
614
|
+
|
615
|
+
connection = @sdk_configuration.client.dup
|
616
|
+
connection.request :retry, retry_options
|
617
|
+
|
618
|
+
r = connection.get(url) do |req|
|
465
619
|
req.headers = headers
|
466
620
|
req.params = query_params
|
467
|
-
|
621
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
622
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
468
623
|
end
|
469
624
|
|
470
625
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -487,8 +642,8 @@ module StackOne
|
|
487
642
|
end
|
488
643
|
|
489
644
|
|
490
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetCompanyRequest)).returns(::StackOne::Operations::HrisGetCompanyResponse) }
|
491
|
-
def get_company(request)
|
645
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetCompanyRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetCompanyResponse) }
|
646
|
+
def get_company(request, retries = nil)
|
492
647
|
# get_company - Get Company
|
493
648
|
url, params = @sdk_configuration.get_server_details
|
494
649
|
base_url = Utils.template_url(url, params)
|
@@ -502,11 +657,28 @@ module StackOne
|
|
502
657
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetCompanyRequest, request)
|
503
658
|
headers['Accept'] = 'application/json'
|
504
659
|
headers['user-agent'] = @sdk_configuration.user_agent
|
505
|
-
|
506
|
-
|
660
|
+
retries ||= @sdk_configuration.retry_config
|
661
|
+
retries ||= Utils::RetryConfig.new(
|
662
|
+
backoff: Utils::BackoffStrategy.new(
|
663
|
+
exponent: 1.5,
|
664
|
+
initial_interval: 500,
|
665
|
+
max_elapsed_time: 3_600_000,
|
666
|
+
max_interval: 60_000
|
667
|
+
),
|
668
|
+
retry_connection_errors: true,
|
669
|
+
strategy: 'backoff'
|
670
|
+
)
|
671
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
672
|
+
retry_options[:retry_statuses] = [429, 408]
|
673
|
+
|
674
|
+
connection = @sdk_configuration.client.dup
|
675
|
+
connection.request :retry, retry_options
|
676
|
+
|
677
|
+
r = connection.get(url) do |req|
|
507
678
|
req.headers = headers
|
508
679
|
req.params = query_params
|
509
|
-
|
680
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
681
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
510
682
|
end
|
511
683
|
|
512
684
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -529,8 +701,8 @@ module StackOne
|
|
529
701
|
end
|
530
702
|
|
531
703
|
|
532
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetCostCenterGroupRequest)).returns(::StackOne::Operations::HrisGetCostCenterGroupResponse) }
|
533
|
-
def get_cost_center_group(request)
|
704
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetCostCenterGroupRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetCostCenterGroupResponse) }
|
705
|
+
def get_cost_center_group(request, retries = nil)
|
534
706
|
# get_cost_center_group - Get Cost Center Group
|
535
707
|
url, params = @sdk_configuration.get_server_details
|
536
708
|
base_url = Utils.template_url(url, params)
|
@@ -544,11 +716,28 @@ module StackOne
|
|
544
716
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetCostCenterGroupRequest, request)
|
545
717
|
headers['Accept'] = 'application/json'
|
546
718
|
headers['user-agent'] = @sdk_configuration.user_agent
|
547
|
-
|
548
|
-
|
719
|
+
retries ||= @sdk_configuration.retry_config
|
720
|
+
retries ||= Utils::RetryConfig.new(
|
721
|
+
backoff: Utils::BackoffStrategy.new(
|
722
|
+
exponent: 1.5,
|
723
|
+
initial_interval: 500,
|
724
|
+
max_elapsed_time: 3_600_000,
|
725
|
+
max_interval: 60_000
|
726
|
+
),
|
727
|
+
retry_connection_errors: true,
|
728
|
+
strategy: 'backoff'
|
729
|
+
)
|
730
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
731
|
+
retry_options[:retry_statuses] = [429, 408]
|
732
|
+
|
733
|
+
connection = @sdk_configuration.client.dup
|
734
|
+
connection.request :retry, retry_options
|
735
|
+
|
736
|
+
r = connection.get(url) do |req|
|
549
737
|
req.headers = headers
|
550
738
|
req.params = query_params
|
551
|
-
|
739
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
740
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
552
741
|
end
|
553
742
|
|
554
743
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -571,8 +760,8 @@ module StackOne
|
|
571
760
|
end
|
572
761
|
|
573
762
|
|
574
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetDepartmentGroupRequest)).returns(::StackOne::Operations::HrisGetDepartmentGroupResponse) }
|
575
|
-
def get_department_group(request)
|
763
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetDepartmentGroupRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetDepartmentGroupResponse) }
|
764
|
+
def get_department_group(request, retries = nil)
|
576
765
|
# get_department_group - Get Department Group
|
577
766
|
url, params = @sdk_configuration.get_server_details
|
578
767
|
base_url = Utils.template_url(url, params)
|
@@ -586,11 +775,28 @@ module StackOne
|
|
586
775
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetDepartmentGroupRequest, request)
|
587
776
|
headers['Accept'] = 'application/json'
|
588
777
|
headers['user-agent'] = @sdk_configuration.user_agent
|
589
|
-
|
590
|
-
|
778
|
+
retries ||= @sdk_configuration.retry_config
|
779
|
+
retries ||= Utils::RetryConfig.new(
|
780
|
+
backoff: Utils::BackoffStrategy.new(
|
781
|
+
exponent: 1.5,
|
782
|
+
initial_interval: 500,
|
783
|
+
max_elapsed_time: 3_600_000,
|
784
|
+
max_interval: 60_000
|
785
|
+
),
|
786
|
+
retry_connection_errors: true,
|
787
|
+
strategy: 'backoff'
|
788
|
+
)
|
789
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
790
|
+
retry_options[:retry_statuses] = [429, 408]
|
791
|
+
|
792
|
+
connection = @sdk_configuration.client.dup
|
793
|
+
connection.request :retry, retry_options
|
794
|
+
|
795
|
+
r = connection.get(url) do |req|
|
591
796
|
req.headers = headers
|
592
797
|
req.params = query_params
|
593
|
-
|
798
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
799
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
594
800
|
end
|
595
801
|
|
596
802
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -613,8 +819,8 @@ module StackOne
|
|
613
819
|
end
|
614
820
|
|
615
821
|
|
616
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeRequest)).returns(::StackOne::Operations::HrisGetEmployeeResponse) }
|
617
|
-
def get_employee(request)
|
822
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeeResponse) }
|
823
|
+
def get_employee(request, retries = nil)
|
618
824
|
# get_employee - Get Employee
|
619
825
|
url, params = @sdk_configuration.get_server_details
|
620
826
|
base_url = Utils.template_url(url, params)
|
@@ -628,11 +834,28 @@ module StackOne
|
|
628
834
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeRequest, request)
|
629
835
|
headers['Accept'] = 'application/json'
|
630
836
|
headers['user-agent'] = @sdk_configuration.user_agent
|
631
|
-
|
632
|
-
|
837
|
+
retries ||= @sdk_configuration.retry_config
|
838
|
+
retries ||= Utils::RetryConfig.new(
|
839
|
+
backoff: Utils::BackoffStrategy.new(
|
840
|
+
exponent: 1.5,
|
841
|
+
initial_interval: 500,
|
842
|
+
max_elapsed_time: 3_600_000,
|
843
|
+
max_interval: 60_000
|
844
|
+
),
|
845
|
+
retry_connection_errors: true,
|
846
|
+
strategy: 'backoff'
|
847
|
+
)
|
848
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
849
|
+
retry_options[:retry_statuses] = [429, 408]
|
850
|
+
|
851
|
+
connection = @sdk_configuration.client.dup
|
852
|
+
connection.request :retry, retry_options
|
853
|
+
|
854
|
+
r = connection.get(url) do |req|
|
633
855
|
req.headers = headers
|
634
856
|
req.params = query_params
|
635
|
-
|
857
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
858
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
636
859
|
end
|
637
860
|
|
638
861
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -655,8 +878,8 @@ module StackOne
|
|
655
878
|
end
|
656
879
|
|
657
880
|
|
658
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionRequest)).returns(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionResponse) }
|
659
|
-
def get_employee_custom_field_definition(request)
|
881
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionResponse) }
|
882
|
+
def get_employee_custom_field_definition(request, retries = nil)
|
660
883
|
# get_employee_custom_field_definition - Get employee Custom Field Definition
|
661
884
|
url, params = @sdk_configuration.get_server_details
|
662
885
|
base_url = Utils.template_url(url, params)
|
@@ -670,11 +893,28 @@ module StackOne
|
|
670
893
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeCustomFieldDefinitionRequest, request)
|
671
894
|
headers['Accept'] = 'application/json'
|
672
895
|
headers['user-agent'] = @sdk_configuration.user_agent
|
673
|
-
|
674
|
-
|
896
|
+
retries ||= @sdk_configuration.retry_config
|
897
|
+
retries ||= Utils::RetryConfig.new(
|
898
|
+
backoff: Utils::BackoffStrategy.new(
|
899
|
+
exponent: 1.5,
|
900
|
+
initial_interval: 500,
|
901
|
+
max_elapsed_time: 3_600_000,
|
902
|
+
max_interval: 60_000
|
903
|
+
),
|
904
|
+
retry_connection_errors: true,
|
905
|
+
strategy: 'backoff'
|
906
|
+
)
|
907
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
908
|
+
retry_options[:retry_statuses] = [429, 408]
|
909
|
+
|
910
|
+
connection = @sdk_configuration.client.dup
|
911
|
+
connection.request :retry, retry_options
|
912
|
+
|
913
|
+
r = connection.get(url) do |req|
|
675
914
|
req.headers = headers
|
676
915
|
req.params = query_params
|
677
|
-
|
916
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
917
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
678
918
|
end
|
679
919
|
|
680
920
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -697,8 +937,8 @@ module StackOne
|
|
697
937
|
end
|
698
938
|
|
699
939
|
|
700
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentRequest)).returns(::StackOne::Operations::HrisGetEmployeeDocumentResponse) }
|
701
|
-
def get_employee_document(request)
|
940
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeeDocumentResponse) }
|
941
|
+
def get_employee_document(request, retries = nil)
|
702
942
|
# get_employee_document - Get Employee Document
|
703
943
|
url, params = @sdk_configuration.get_server_details
|
704
944
|
base_url = Utils.template_url(url, params)
|
@@ -712,11 +952,28 @@ module StackOne
|
|
712
952
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeDocumentRequest, request)
|
713
953
|
headers['Accept'] = 'application/json'
|
714
954
|
headers['user-agent'] = @sdk_configuration.user_agent
|
715
|
-
|
716
|
-
|
955
|
+
retries ||= @sdk_configuration.retry_config
|
956
|
+
retries ||= Utils::RetryConfig.new(
|
957
|
+
backoff: Utils::BackoffStrategy.new(
|
958
|
+
exponent: 1.5,
|
959
|
+
initial_interval: 500,
|
960
|
+
max_elapsed_time: 3_600_000,
|
961
|
+
max_interval: 60_000
|
962
|
+
),
|
963
|
+
retry_connection_errors: true,
|
964
|
+
strategy: 'backoff'
|
965
|
+
)
|
966
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
967
|
+
retry_options[:retry_statuses] = [429, 408]
|
968
|
+
|
969
|
+
connection = @sdk_configuration.client.dup
|
970
|
+
connection.request :retry, retry_options
|
971
|
+
|
972
|
+
r = connection.get(url) do |req|
|
717
973
|
req.headers = headers
|
718
974
|
req.params = query_params
|
719
|
-
|
975
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
976
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
720
977
|
end
|
721
978
|
|
722
979
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -739,8 +996,8 @@ module StackOne
|
|
739
996
|
end
|
740
997
|
|
741
998
|
|
742
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentCategoryRequest)).returns(::StackOne::Operations::HrisGetEmployeeDocumentCategoryResponse) }
|
743
|
-
def get_employee_document_category(request)
|
999
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentCategoryRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeeDocumentCategoryResponse) }
|
1000
|
+
def get_employee_document_category(request, retries = nil)
|
744
1001
|
# get_employee_document_category - Get Employee Document Category
|
745
1002
|
url, params = @sdk_configuration.get_server_details
|
746
1003
|
base_url = Utils.template_url(url, params)
|
@@ -754,11 +1011,28 @@ module StackOne
|
|
754
1011
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeDocumentCategoryRequest, request)
|
755
1012
|
headers['Accept'] = 'application/json'
|
756
1013
|
headers['user-agent'] = @sdk_configuration.user_agent
|
757
|
-
|
758
|
-
|
1014
|
+
retries ||= @sdk_configuration.retry_config
|
1015
|
+
retries ||= Utils::RetryConfig.new(
|
1016
|
+
backoff: Utils::BackoffStrategy.new(
|
1017
|
+
exponent: 1.5,
|
1018
|
+
initial_interval: 500,
|
1019
|
+
max_elapsed_time: 3_600_000,
|
1020
|
+
max_interval: 60_000
|
1021
|
+
),
|
1022
|
+
retry_connection_errors: true,
|
1023
|
+
strategy: 'backoff'
|
1024
|
+
)
|
1025
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1026
|
+
retry_options[:retry_statuses] = [429, 408]
|
1027
|
+
|
1028
|
+
connection = @sdk_configuration.client.dup
|
1029
|
+
connection.request :retry, retry_options
|
1030
|
+
|
1031
|
+
r = connection.get(url) do |req|
|
759
1032
|
req.headers = headers
|
760
1033
|
req.params = query_params
|
761
|
-
|
1034
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1035
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
762
1036
|
end
|
763
1037
|
|
764
1038
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -781,8 +1055,8 @@ module StackOne
|
|
781
1055
|
end
|
782
1056
|
|
783
1057
|
|
784
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeEmploymentRequest)).returns(::StackOne::Operations::HrisGetEmployeeEmploymentResponse) }
|
785
|
-
def get_employee_employment(request)
|
1058
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeEmploymentRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeeEmploymentResponse) }
|
1059
|
+
def get_employee_employment(request, retries = nil)
|
786
1060
|
# get_employee_employment - Get Employee Employment
|
787
1061
|
url, params = @sdk_configuration.get_server_details
|
788
1062
|
base_url = Utils.template_url(url, params)
|
@@ -796,11 +1070,28 @@ module StackOne
|
|
796
1070
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeEmploymentRequest, request)
|
797
1071
|
headers['Accept'] = 'application/json'
|
798
1072
|
headers['user-agent'] = @sdk_configuration.user_agent
|
799
|
-
|
800
|
-
|
1073
|
+
retries ||= @sdk_configuration.retry_config
|
1074
|
+
retries ||= Utils::RetryConfig.new(
|
1075
|
+
backoff: Utils::BackoffStrategy.new(
|
1076
|
+
exponent: 1.5,
|
1077
|
+
initial_interval: 500,
|
1078
|
+
max_elapsed_time: 3_600_000,
|
1079
|
+
max_interval: 60_000
|
1080
|
+
),
|
1081
|
+
retry_connection_errors: true,
|
1082
|
+
strategy: 'backoff'
|
1083
|
+
)
|
1084
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1085
|
+
retry_options[:retry_statuses] = [429, 408]
|
1086
|
+
|
1087
|
+
connection = @sdk_configuration.client.dup
|
1088
|
+
connection.request :retry, retry_options
|
1089
|
+
|
1090
|
+
r = connection.get(url) do |req|
|
801
1091
|
req.headers = headers
|
802
1092
|
req.params = query_params
|
803
|
-
|
1093
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1094
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
804
1095
|
end
|
805
1096
|
|
806
1097
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -823,8 +1114,67 @@ module StackOne
|
|
823
1114
|
end
|
824
1115
|
|
825
1116
|
|
826
|
-
sig { params(request: T.nilable(::StackOne::Operations::
|
827
|
-
def
|
1117
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeSkillRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeeSkillResponse) }
|
1118
|
+
def get_employee_skill(request, retries = nil)
|
1119
|
+
# get_employee_skill - Get Employee Skill
|
1120
|
+
url, params = @sdk_configuration.get_server_details
|
1121
|
+
base_url = Utils.template_url(url, params)
|
1122
|
+
url = Utils.generate_url(
|
1123
|
+
::StackOne::Operations::HrisGetEmployeeSkillRequest,
|
1124
|
+
base_url,
|
1125
|
+
'/unified/hris/employees/{id}/skills/{subResourceId}',
|
1126
|
+
request
|
1127
|
+
)
|
1128
|
+
headers = Utils.get_headers(request)
|
1129
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeSkillRequest, request)
|
1130
|
+
headers['Accept'] = 'application/json'
|
1131
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
1132
|
+
retries ||= @sdk_configuration.retry_config
|
1133
|
+
retries ||= Utils::RetryConfig.new(
|
1134
|
+
backoff: Utils::BackoffStrategy.new(
|
1135
|
+
exponent: 1.5,
|
1136
|
+
initial_interval: 500,
|
1137
|
+
max_elapsed_time: 3_600_000,
|
1138
|
+
max_interval: 60_000
|
1139
|
+
),
|
1140
|
+
retry_connection_errors: true,
|
1141
|
+
strategy: 'backoff'
|
1142
|
+
)
|
1143
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1144
|
+
retry_options[:retry_statuses] = [429, 408]
|
1145
|
+
|
1146
|
+
connection = @sdk_configuration.client.dup
|
1147
|
+
connection.request :retry, retry_options
|
1148
|
+
|
1149
|
+
r = connection.get(url) do |req|
|
1150
|
+
req.headers = headers
|
1151
|
+
req.params = query_params
|
1152
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1153
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
1157
|
+
|
1158
|
+
res = ::StackOne::Operations::HrisGetEmployeeSkillResponse.new(
|
1159
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
1160
|
+
)
|
1161
|
+
if r.status == 200
|
1162
|
+
if Utils.match_content_type(content_type, 'application/json')
|
1163
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::EntitySkillResult)
|
1164
|
+
res.entity_skill_result = out
|
1165
|
+
end
|
1166
|
+
elsif r.status == 408
|
1167
|
+
res.headers = r.headers
|
1168
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
1169
|
+
elsif [500, 501].include?(r.status)
|
1170
|
+
end
|
1171
|
+
|
1172
|
+
res
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
|
1176
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeTimeOffBalanceRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeeTimeOffBalanceResponse) }
|
1177
|
+
def get_employee_time_off_balance(request, retries = nil)
|
828
1178
|
# get_employee_time_off_balance - Get Employee Time Off Balance
|
829
1179
|
url, params = @sdk_configuration.get_server_details
|
830
1180
|
base_url = Utils.template_url(url, params)
|
@@ -838,11 +1188,28 @@ module StackOne
|
|
838
1188
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeTimeOffBalanceRequest, request)
|
839
1189
|
headers['Accept'] = 'application/json'
|
840
1190
|
headers['user-agent'] = @sdk_configuration.user_agent
|
841
|
-
|
842
|
-
|
1191
|
+
retries ||= @sdk_configuration.retry_config
|
1192
|
+
retries ||= Utils::RetryConfig.new(
|
1193
|
+
backoff: Utils::BackoffStrategy.new(
|
1194
|
+
exponent: 1.5,
|
1195
|
+
initial_interval: 500,
|
1196
|
+
max_elapsed_time: 3_600_000,
|
1197
|
+
max_interval: 60_000
|
1198
|
+
),
|
1199
|
+
retry_connection_errors: true,
|
1200
|
+
strategy: 'backoff'
|
1201
|
+
)
|
1202
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1203
|
+
retry_options[:retry_statuses] = [429, 408]
|
1204
|
+
|
1205
|
+
connection = @sdk_configuration.client.dup
|
1206
|
+
connection.request :retry, retry_options
|
1207
|
+
|
1208
|
+
r = connection.get(url) do |req|
|
843
1209
|
req.headers = headers
|
844
1210
|
req.params = query_params
|
845
|
-
|
1211
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1212
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
846
1213
|
end
|
847
1214
|
|
848
1215
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -865,8 +1232,8 @@ module StackOne
|
|
865
1232
|
end
|
866
1233
|
|
867
1234
|
|
868
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest)).returns(::StackOne::Operations::HrisGetEmployeesTimeOffRequestResponse) }
|
869
|
-
def get_employees_time_off_request(request)
|
1235
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeesTimeOffRequestResponse) }
|
1236
|
+
def get_employees_time_off_request(request, retries = nil)
|
870
1237
|
# get_employees_time_off_request - Get Employees Time Off Request
|
871
1238
|
url, params = @sdk_configuration.get_server_details
|
872
1239
|
base_url = Utils.template_url(url, params)
|
@@ -880,11 +1247,28 @@ module StackOne
|
|
880
1247
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest, request)
|
881
1248
|
headers['Accept'] = 'application/json'
|
882
1249
|
headers['user-agent'] = @sdk_configuration.user_agent
|
883
|
-
|
884
|
-
|
1250
|
+
retries ||= @sdk_configuration.retry_config
|
1251
|
+
retries ||= Utils::RetryConfig.new(
|
1252
|
+
backoff: Utils::BackoffStrategy.new(
|
1253
|
+
exponent: 1.5,
|
1254
|
+
initial_interval: 500,
|
1255
|
+
max_elapsed_time: 3_600_000,
|
1256
|
+
max_interval: 60_000
|
1257
|
+
),
|
1258
|
+
retry_connection_errors: true,
|
1259
|
+
strategy: 'backoff'
|
1260
|
+
)
|
1261
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1262
|
+
retry_options[:retry_statuses] = [429, 408]
|
1263
|
+
|
1264
|
+
connection = @sdk_configuration.client.dup
|
1265
|
+
connection.request :retry, retry_options
|
1266
|
+
|
1267
|
+
r = connection.get(url) do |req|
|
885
1268
|
req.headers = headers
|
886
1269
|
req.params = query_params
|
887
|
-
|
1270
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1271
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
888
1272
|
end
|
889
1273
|
|
890
1274
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -907,8 +1291,8 @@ module StackOne
|
|
907
1291
|
end
|
908
1292
|
|
909
1293
|
|
910
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesWorkEligibilityRequest)).returns(::StackOne::Operations::HrisGetEmployeesWorkEligibilityResponse) }
|
911
|
-
def get_employees_work_eligibility(request)
|
1294
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesWorkEligibilityRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmployeesWorkEligibilityResponse) }
|
1295
|
+
def get_employees_work_eligibility(request, retries = nil)
|
912
1296
|
# get_employees_work_eligibility - Get Employees Work Eligibility
|
913
1297
|
url, params = @sdk_configuration.get_server_details
|
914
1298
|
base_url = Utils.template_url(url, params)
|
@@ -922,11 +1306,28 @@ module StackOne
|
|
922
1306
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeesWorkEligibilityRequest, request)
|
923
1307
|
headers['Accept'] = 'application/json'
|
924
1308
|
headers['user-agent'] = @sdk_configuration.user_agent
|
925
|
-
|
926
|
-
|
1309
|
+
retries ||= @sdk_configuration.retry_config
|
1310
|
+
retries ||= Utils::RetryConfig.new(
|
1311
|
+
backoff: Utils::BackoffStrategy.new(
|
1312
|
+
exponent: 1.5,
|
1313
|
+
initial_interval: 500,
|
1314
|
+
max_elapsed_time: 3_600_000,
|
1315
|
+
max_interval: 60_000
|
1316
|
+
),
|
1317
|
+
retry_connection_errors: true,
|
1318
|
+
strategy: 'backoff'
|
1319
|
+
)
|
1320
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1321
|
+
retry_options[:retry_statuses] = [429, 408]
|
1322
|
+
|
1323
|
+
connection = @sdk_configuration.client.dup
|
1324
|
+
connection.request :retry, retry_options
|
1325
|
+
|
1326
|
+
r = connection.get(url) do |req|
|
927
1327
|
req.headers = headers
|
928
1328
|
req.params = query_params
|
929
|
-
|
1329
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1330
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
930
1331
|
end
|
931
1332
|
|
932
1333
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -949,8 +1350,8 @@ module StackOne
|
|
949
1350
|
end
|
950
1351
|
|
951
1352
|
|
952
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmploymentRequest)).returns(::StackOne::Operations::HrisGetEmploymentResponse) }
|
953
|
-
def get_employment(request)
|
1353
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmploymentRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetEmploymentResponse) }
|
1354
|
+
def get_employment(request, retries = nil)
|
954
1355
|
# get_employment - Get Employment
|
955
1356
|
url, params = @sdk_configuration.get_server_details
|
956
1357
|
base_url = Utils.template_url(url, params)
|
@@ -964,11 +1365,28 @@ module StackOne
|
|
964
1365
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmploymentRequest, request)
|
965
1366
|
headers['Accept'] = 'application/json'
|
966
1367
|
headers['user-agent'] = @sdk_configuration.user_agent
|
967
|
-
|
968
|
-
|
1368
|
+
retries ||= @sdk_configuration.retry_config
|
1369
|
+
retries ||= Utils::RetryConfig.new(
|
1370
|
+
backoff: Utils::BackoffStrategy.new(
|
1371
|
+
exponent: 1.5,
|
1372
|
+
initial_interval: 500,
|
1373
|
+
max_elapsed_time: 3_600_000,
|
1374
|
+
max_interval: 60_000
|
1375
|
+
),
|
1376
|
+
retry_connection_errors: true,
|
1377
|
+
strategy: 'backoff'
|
1378
|
+
)
|
1379
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1380
|
+
retry_options[:retry_statuses] = [429, 408]
|
1381
|
+
|
1382
|
+
connection = @sdk_configuration.client.dup
|
1383
|
+
connection.request :retry, retry_options
|
1384
|
+
|
1385
|
+
r = connection.get(url) do |req|
|
969
1386
|
req.headers = headers
|
970
1387
|
req.params = query_params
|
971
|
-
|
1388
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1389
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
972
1390
|
end
|
973
1391
|
|
974
1392
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -991,8 +1409,8 @@ module StackOne
|
|
991
1409
|
end
|
992
1410
|
|
993
1411
|
|
994
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetGroupRequest)).returns(::StackOne::Operations::HrisGetGroupResponse) }
|
995
|
-
def get_group(request)
|
1412
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetGroupRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetGroupResponse) }
|
1413
|
+
def get_group(request, retries = nil)
|
996
1414
|
# get_group - Get Group
|
997
1415
|
url, params = @sdk_configuration.get_server_details
|
998
1416
|
base_url = Utils.template_url(url, params)
|
@@ -1006,11 +1424,28 @@ module StackOne
|
|
1006
1424
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetGroupRequest, request)
|
1007
1425
|
headers['Accept'] = 'application/json'
|
1008
1426
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1009
|
-
|
1010
|
-
|
1427
|
+
retries ||= @sdk_configuration.retry_config
|
1428
|
+
retries ||= Utils::RetryConfig.new(
|
1429
|
+
backoff: Utils::BackoffStrategy.new(
|
1430
|
+
exponent: 1.5,
|
1431
|
+
initial_interval: 500,
|
1432
|
+
max_elapsed_time: 3_600_000,
|
1433
|
+
max_interval: 60_000
|
1434
|
+
),
|
1435
|
+
retry_connection_errors: true,
|
1436
|
+
strategy: 'backoff'
|
1437
|
+
)
|
1438
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1439
|
+
retry_options[:retry_statuses] = [429, 408]
|
1440
|
+
|
1441
|
+
connection = @sdk_configuration.client.dup
|
1442
|
+
connection.request :retry, retry_options
|
1443
|
+
|
1444
|
+
r = connection.get(url) do |req|
|
1011
1445
|
req.headers = headers
|
1012
1446
|
req.params = query_params
|
1013
|
-
|
1447
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1448
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1014
1449
|
end
|
1015
1450
|
|
1016
1451
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1033,8 +1468,8 @@ module StackOne
|
|
1033
1468
|
end
|
1034
1469
|
|
1035
1470
|
|
1036
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetJobRequest)).returns(::StackOne::Operations::HrisGetJobResponse) }
|
1037
|
-
def get_job(request)
|
1471
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetJobRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetJobResponse) }
|
1472
|
+
def get_job(request, retries = nil)
|
1038
1473
|
# get_job - Get Job
|
1039
1474
|
url, params = @sdk_configuration.get_server_details
|
1040
1475
|
base_url = Utils.template_url(url, params)
|
@@ -1048,11 +1483,28 @@ module StackOne
|
|
1048
1483
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetJobRequest, request)
|
1049
1484
|
headers['Accept'] = 'application/json'
|
1050
1485
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1051
|
-
|
1052
|
-
|
1486
|
+
retries ||= @sdk_configuration.retry_config
|
1487
|
+
retries ||= Utils::RetryConfig.new(
|
1488
|
+
backoff: Utils::BackoffStrategy.new(
|
1489
|
+
exponent: 1.5,
|
1490
|
+
initial_interval: 500,
|
1491
|
+
max_elapsed_time: 3_600_000,
|
1492
|
+
max_interval: 60_000
|
1493
|
+
),
|
1494
|
+
retry_connection_errors: true,
|
1495
|
+
strategy: 'backoff'
|
1496
|
+
)
|
1497
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1498
|
+
retry_options[:retry_statuses] = [429, 408]
|
1499
|
+
|
1500
|
+
connection = @sdk_configuration.client.dup
|
1501
|
+
connection.request :retry, retry_options
|
1502
|
+
|
1503
|
+
r = connection.get(url) do |req|
|
1053
1504
|
req.headers = headers
|
1054
1505
|
req.params = query_params
|
1055
|
-
|
1506
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1507
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1056
1508
|
end
|
1057
1509
|
|
1058
1510
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1075,9 +1527,9 @@ module StackOne
|
|
1075
1527
|
end
|
1076
1528
|
|
1077
1529
|
|
1078
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetLocationRequest)).returns(::StackOne::Operations::HrisGetLocationResponse) }
|
1079
|
-
def get_location(request)
|
1080
|
-
# get_location - Get Location
|
1530
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetLocationRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetLocationResponse) }
|
1531
|
+
def get_location(request, retries = nil)
|
1532
|
+
# get_location - Get Work Location
|
1081
1533
|
url, params = @sdk_configuration.get_server_details
|
1082
1534
|
base_url = Utils.template_url(url, params)
|
1083
1535
|
url = Utils.generate_url(
|
@@ -1090,11 +1542,28 @@ module StackOne
|
|
1090
1542
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetLocationRequest, request)
|
1091
1543
|
headers['Accept'] = 'application/json'
|
1092
1544
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1093
|
-
|
1094
|
-
|
1545
|
+
retries ||= @sdk_configuration.retry_config
|
1546
|
+
retries ||= Utils::RetryConfig.new(
|
1547
|
+
backoff: Utils::BackoffStrategy.new(
|
1548
|
+
exponent: 1.5,
|
1549
|
+
initial_interval: 500,
|
1550
|
+
max_elapsed_time: 3_600_000,
|
1551
|
+
max_interval: 60_000
|
1552
|
+
),
|
1553
|
+
retry_connection_errors: true,
|
1554
|
+
strategy: 'backoff'
|
1555
|
+
)
|
1556
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1557
|
+
retry_options[:retry_statuses] = [429, 408]
|
1558
|
+
|
1559
|
+
connection = @sdk_configuration.client.dup
|
1560
|
+
connection.request :retry, retry_options
|
1561
|
+
|
1562
|
+
r = connection.get(url) do |req|
|
1095
1563
|
req.headers = headers
|
1096
1564
|
req.params = query_params
|
1097
|
-
|
1565
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1566
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1098
1567
|
end
|
1099
1568
|
|
1100
1569
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1117,8 +1586,8 @@ module StackOne
|
|
1117
1586
|
end
|
1118
1587
|
|
1119
1588
|
|
1120
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTeamGroupRequest)).returns(::StackOne::Operations::HrisGetTeamGroupResponse) }
|
1121
|
-
def get_team_group(request)
|
1589
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTeamGroupRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetTeamGroupResponse) }
|
1590
|
+
def get_team_group(request, retries = nil)
|
1122
1591
|
# get_team_group - Get Team Group
|
1123
1592
|
url, params = @sdk_configuration.get_server_details
|
1124
1593
|
base_url = Utils.template_url(url, params)
|
@@ -1132,11 +1601,28 @@ module StackOne
|
|
1132
1601
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetTeamGroupRequest, request)
|
1133
1602
|
headers['Accept'] = 'application/json'
|
1134
1603
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1135
|
-
|
1136
|
-
|
1604
|
+
retries ||= @sdk_configuration.retry_config
|
1605
|
+
retries ||= Utils::RetryConfig.new(
|
1606
|
+
backoff: Utils::BackoffStrategy.new(
|
1607
|
+
exponent: 1.5,
|
1608
|
+
initial_interval: 500,
|
1609
|
+
max_elapsed_time: 3_600_000,
|
1610
|
+
max_interval: 60_000
|
1611
|
+
),
|
1612
|
+
retry_connection_errors: true,
|
1613
|
+
strategy: 'backoff'
|
1614
|
+
)
|
1615
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1616
|
+
retry_options[:retry_statuses] = [429, 408]
|
1617
|
+
|
1618
|
+
connection = @sdk_configuration.client.dup
|
1619
|
+
connection.request :retry, retry_options
|
1620
|
+
|
1621
|
+
r = connection.get(url) do |req|
|
1137
1622
|
req.headers = headers
|
1138
1623
|
req.params = query_params
|
1139
|
-
|
1624
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1625
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1140
1626
|
end
|
1141
1627
|
|
1142
1628
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1159,8 +1645,8 @@ module StackOne
|
|
1159
1645
|
end
|
1160
1646
|
|
1161
1647
|
|
1162
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeEntriesRequest)).returns(::StackOne::Operations::HrisGetTimeEntriesResponse) }
|
1163
|
-
def get_time_entries(request)
|
1648
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeEntriesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetTimeEntriesResponse) }
|
1649
|
+
def get_time_entries(request, retries = nil)
|
1164
1650
|
# get_time_entries - Get Time Entry
|
1165
1651
|
url, params = @sdk_configuration.get_server_details
|
1166
1652
|
base_url = Utils.template_url(url, params)
|
@@ -1174,11 +1660,28 @@ module StackOne
|
|
1174
1660
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetTimeEntriesRequest, request)
|
1175
1661
|
headers['Accept'] = 'application/json'
|
1176
1662
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1177
|
-
|
1178
|
-
|
1663
|
+
retries ||= @sdk_configuration.retry_config
|
1664
|
+
retries ||= Utils::RetryConfig.new(
|
1665
|
+
backoff: Utils::BackoffStrategy.new(
|
1666
|
+
exponent: 1.5,
|
1667
|
+
initial_interval: 500,
|
1668
|
+
max_elapsed_time: 3_600_000,
|
1669
|
+
max_interval: 60_000
|
1670
|
+
),
|
1671
|
+
retry_connection_errors: true,
|
1672
|
+
strategy: 'backoff'
|
1673
|
+
)
|
1674
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1675
|
+
retry_options[:retry_statuses] = [429, 408]
|
1676
|
+
|
1677
|
+
connection = @sdk_configuration.client.dup
|
1678
|
+
connection.request :retry, retry_options
|
1679
|
+
|
1680
|
+
r = connection.get(url) do |req|
|
1179
1681
|
req.headers = headers
|
1180
1682
|
req.params = query_params
|
1181
|
-
|
1683
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1684
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1182
1685
|
end
|
1183
1686
|
|
1184
1687
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1201,8 +1704,8 @@ module StackOne
|
|
1201
1704
|
end
|
1202
1705
|
|
1203
1706
|
|
1204
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffPolicyRequest)).returns(::StackOne::Operations::HrisGetTimeOffPolicyResponse) }
|
1205
|
-
def get_time_off_policy(request)
|
1707
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffPolicyRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetTimeOffPolicyResponse) }
|
1708
|
+
def get_time_off_policy(request, retries = nil)
|
1206
1709
|
# get_time_off_policy - Get Time Off Policy
|
1207
1710
|
url, params = @sdk_configuration.get_server_details
|
1208
1711
|
base_url = Utils.template_url(url, params)
|
@@ -1216,11 +1719,28 @@ module StackOne
|
|
1216
1719
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetTimeOffPolicyRequest, request)
|
1217
1720
|
headers['Accept'] = 'application/json'
|
1218
1721
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1219
|
-
|
1220
|
-
|
1722
|
+
retries ||= @sdk_configuration.retry_config
|
1723
|
+
retries ||= Utils::RetryConfig.new(
|
1724
|
+
backoff: Utils::BackoffStrategy.new(
|
1725
|
+
exponent: 1.5,
|
1726
|
+
initial_interval: 500,
|
1727
|
+
max_elapsed_time: 3_600_000,
|
1728
|
+
max_interval: 60_000
|
1729
|
+
),
|
1730
|
+
retry_connection_errors: true,
|
1731
|
+
strategy: 'backoff'
|
1732
|
+
)
|
1733
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1734
|
+
retry_options[:retry_statuses] = [429, 408]
|
1735
|
+
|
1736
|
+
connection = @sdk_configuration.client.dup
|
1737
|
+
connection.request :retry, retry_options
|
1738
|
+
|
1739
|
+
r = connection.get(url) do |req|
|
1221
1740
|
req.headers = headers
|
1222
1741
|
req.params = query_params
|
1223
|
-
|
1742
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1743
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1224
1744
|
end
|
1225
1745
|
|
1226
1746
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1243,8 +1763,8 @@ module StackOne
|
|
1243
1763
|
end
|
1244
1764
|
|
1245
1765
|
|
1246
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffRequestRequest)).returns(::StackOne::Operations::HrisGetTimeOffRequestResponse) }
|
1247
|
-
def get_time_off_request(request)
|
1766
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffRequestRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetTimeOffRequestResponse) }
|
1767
|
+
def get_time_off_request(request, retries = nil)
|
1248
1768
|
# get_time_off_request - Get time off request
|
1249
1769
|
url, params = @sdk_configuration.get_server_details
|
1250
1770
|
base_url = Utils.template_url(url, params)
|
@@ -1258,11 +1778,28 @@ module StackOne
|
|
1258
1778
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetTimeOffRequestRequest, request)
|
1259
1779
|
headers['Accept'] = 'application/json'
|
1260
1780
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1261
|
-
|
1262
|
-
|
1781
|
+
retries ||= @sdk_configuration.retry_config
|
1782
|
+
retries ||= Utils::RetryConfig.new(
|
1783
|
+
backoff: Utils::BackoffStrategy.new(
|
1784
|
+
exponent: 1.5,
|
1785
|
+
initial_interval: 500,
|
1786
|
+
max_elapsed_time: 3_600_000,
|
1787
|
+
max_interval: 60_000
|
1788
|
+
),
|
1789
|
+
retry_connection_errors: true,
|
1790
|
+
strategy: 'backoff'
|
1791
|
+
)
|
1792
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1793
|
+
retry_options[:retry_statuses] = [429, 408]
|
1794
|
+
|
1795
|
+
connection = @sdk_configuration.client.dup
|
1796
|
+
connection.request :retry, retry_options
|
1797
|
+
|
1798
|
+
r = connection.get(url) do |req|
|
1263
1799
|
req.headers = headers
|
1264
1800
|
req.params = query_params
|
1265
|
-
|
1801
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1802
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1266
1803
|
end
|
1267
1804
|
|
1268
1805
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1285,8 +1822,8 @@ module StackOne
|
|
1285
1822
|
end
|
1286
1823
|
|
1287
1824
|
|
1288
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffTypeRequest)).returns(::StackOne::Operations::HrisGetTimeOffTypeResponse) }
|
1289
|
-
def get_time_off_type(request)
|
1825
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffTypeRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisGetTimeOffTypeResponse) }
|
1826
|
+
def get_time_off_type(request, retries = nil)
|
1290
1827
|
# get_time_off_type - Get time off type
|
1291
1828
|
url, params = @sdk_configuration.get_server_details
|
1292
1829
|
base_url = Utils.template_url(url, params)
|
@@ -1300,11 +1837,28 @@ module StackOne
|
|
1300
1837
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetTimeOffTypeRequest, request)
|
1301
1838
|
headers['Accept'] = 'application/json'
|
1302
1839
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1303
|
-
|
1304
|
-
|
1840
|
+
retries ||= @sdk_configuration.retry_config
|
1841
|
+
retries ||= Utils::RetryConfig.new(
|
1842
|
+
backoff: Utils::BackoffStrategy.new(
|
1843
|
+
exponent: 1.5,
|
1844
|
+
initial_interval: 500,
|
1845
|
+
max_elapsed_time: 3_600_000,
|
1846
|
+
max_interval: 60_000
|
1847
|
+
),
|
1848
|
+
retry_connection_errors: true,
|
1849
|
+
strategy: 'backoff'
|
1850
|
+
)
|
1851
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1852
|
+
retry_options[:retry_statuses] = [429, 408]
|
1853
|
+
|
1854
|
+
connection = @sdk_configuration.client.dup
|
1855
|
+
connection.request :retry, retry_options
|
1856
|
+
|
1857
|
+
r = connection.get(url) do |req|
|
1305
1858
|
req.headers = headers
|
1306
1859
|
req.params = query_params
|
1307
|
-
|
1860
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1861
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1308
1862
|
end
|
1309
1863
|
|
1310
1864
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1327,8 +1881,8 @@ module StackOne
|
|
1327
1881
|
end
|
1328
1882
|
|
1329
1883
|
|
1330
|
-
sig { params(hris_invite_employee_request_dto: ::StackOne::Shared::HrisInviteEmployeeRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisInviteEmployeeResponse) }
|
1331
|
-
def invite_employee(hris_invite_employee_request_dto, id, x_account_id)
|
1884
|
+
sig { params(hris_invite_employee_request_dto: ::StackOne::Shared::HrisInviteEmployeeRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisInviteEmployeeResponse) }
|
1885
|
+
def invite_employee(hris_invite_employee_request_dto, id, x_account_id, retries = nil)
|
1332
1886
|
# invite_employee - Invite Employee
|
1333
1887
|
request = ::StackOne::Operations::HrisInviteEmployeeRequest.new(
|
1334
1888
|
|
@@ -1350,10 +1904,27 @@ module StackOne
|
|
1350
1904
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
1351
1905
|
headers['Accept'] = 'application/json'
|
1352
1906
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1353
|
-
|
1354
|
-
|
1907
|
+
retries ||= @sdk_configuration.retry_config
|
1908
|
+
retries ||= Utils::RetryConfig.new(
|
1909
|
+
backoff: Utils::BackoffStrategy.new(
|
1910
|
+
exponent: 1.5,
|
1911
|
+
initial_interval: 500,
|
1912
|
+
max_elapsed_time: 3_600_000,
|
1913
|
+
max_interval: 60_000
|
1914
|
+
),
|
1915
|
+
retry_connection_errors: true,
|
1916
|
+
strategy: 'backoff'
|
1917
|
+
)
|
1918
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1919
|
+
retry_options[:retry_statuses] = [429, 408]
|
1920
|
+
|
1921
|
+
connection = @sdk_configuration.client.dup
|
1922
|
+
connection.request :retry, retry_options
|
1923
|
+
|
1924
|
+
r = connection.post(url) do |req|
|
1355
1925
|
req.headers = headers
|
1356
|
-
|
1926
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1927
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1357
1928
|
if form
|
1358
1929
|
req.body = Utils.encode_form(form)
|
1359
1930
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
@@ -1383,8 +1954,8 @@ module StackOne
|
|
1383
1954
|
end
|
1384
1955
|
|
1385
1956
|
|
1386
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListBenefitsRequest)).returns(::StackOne::Operations::HrisListBenefitsResponse) }
|
1387
|
-
def list_benefits(request)
|
1957
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListBenefitsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListBenefitsResponse) }
|
1958
|
+
def list_benefits(request, retries = nil)
|
1388
1959
|
# list_benefits - List benefits
|
1389
1960
|
url, params = @sdk_configuration.get_server_details
|
1390
1961
|
base_url = Utils.template_url(url, params)
|
@@ -1393,11 +1964,28 @@ module StackOne
|
|
1393
1964
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListBenefitsRequest, request)
|
1394
1965
|
headers['Accept'] = 'application/json'
|
1395
1966
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1396
|
-
|
1397
|
-
|
1967
|
+
retries ||= @sdk_configuration.retry_config
|
1968
|
+
retries ||= Utils::RetryConfig.new(
|
1969
|
+
backoff: Utils::BackoffStrategy.new(
|
1970
|
+
exponent: 1.5,
|
1971
|
+
initial_interval: 500,
|
1972
|
+
max_elapsed_time: 3_600_000,
|
1973
|
+
max_interval: 60_000
|
1974
|
+
),
|
1975
|
+
retry_connection_errors: true,
|
1976
|
+
strategy: 'backoff'
|
1977
|
+
)
|
1978
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
1979
|
+
retry_options[:retry_statuses] = [429, 408]
|
1980
|
+
|
1981
|
+
connection = @sdk_configuration.client.dup
|
1982
|
+
connection.request :retry, retry_options
|
1983
|
+
|
1984
|
+
r = connection.get(url) do |req|
|
1398
1985
|
req.headers = headers
|
1399
1986
|
req.params = query_params
|
1400
|
-
|
1987
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
1988
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1401
1989
|
end
|
1402
1990
|
|
1403
1991
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1420,8 +2008,8 @@ module StackOne
|
|
1420
2008
|
end
|
1421
2009
|
|
1422
2010
|
|
1423
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListCompaniesRequest)).returns(::StackOne::Operations::HrisListCompaniesResponse) }
|
1424
|
-
def list_companies(request)
|
2011
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListCompaniesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListCompaniesResponse) }
|
2012
|
+
def list_companies(request, retries = nil)
|
1425
2013
|
# list_companies - List Companies
|
1426
2014
|
url, params = @sdk_configuration.get_server_details
|
1427
2015
|
base_url = Utils.template_url(url, params)
|
@@ -1430,11 +2018,28 @@ module StackOne
|
|
1430
2018
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListCompaniesRequest, request)
|
1431
2019
|
headers['Accept'] = 'application/json'
|
1432
2020
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1433
|
-
|
1434
|
-
|
2021
|
+
retries ||= @sdk_configuration.retry_config
|
2022
|
+
retries ||= Utils::RetryConfig.new(
|
2023
|
+
backoff: Utils::BackoffStrategy.new(
|
2024
|
+
exponent: 1.5,
|
2025
|
+
initial_interval: 500,
|
2026
|
+
max_elapsed_time: 3_600_000,
|
2027
|
+
max_interval: 60_000
|
2028
|
+
),
|
2029
|
+
retry_connection_errors: true,
|
2030
|
+
strategy: 'backoff'
|
2031
|
+
)
|
2032
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2033
|
+
retry_options[:retry_statuses] = [429, 408]
|
2034
|
+
|
2035
|
+
connection = @sdk_configuration.client.dup
|
2036
|
+
connection.request :retry, retry_options
|
2037
|
+
|
2038
|
+
r = connection.get(url) do |req|
|
1435
2039
|
req.headers = headers
|
1436
2040
|
req.params = query_params
|
1437
|
-
|
2041
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2042
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1438
2043
|
end
|
1439
2044
|
|
1440
2045
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1457,8 +2062,8 @@ module StackOne
|
|
1457
2062
|
end
|
1458
2063
|
|
1459
2064
|
|
1460
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListCostCenterGroupsRequest)).returns(::StackOne::Operations::HrisListCostCenterGroupsResponse) }
|
1461
|
-
def list_cost_center_groups(request)
|
2065
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListCostCenterGroupsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListCostCenterGroupsResponse) }
|
2066
|
+
def list_cost_center_groups(request, retries = nil)
|
1462
2067
|
# list_cost_center_groups - List Cost Center Groups
|
1463
2068
|
url, params = @sdk_configuration.get_server_details
|
1464
2069
|
base_url = Utils.template_url(url, params)
|
@@ -1467,11 +2072,28 @@ module StackOne
|
|
1467
2072
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListCostCenterGroupsRequest, request)
|
1468
2073
|
headers['Accept'] = 'application/json'
|
1469
2074
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1470
|
-
|
1471
|
-
|
2075
|
+
retries ||= @sdk_configuration.retry_config
|
2076
|
+
retries ||= Utils::RetryConfig.new(
|
2077
|
+
backoff: Utils::BackoffStrategy.new(
|
2078
|
+
exponent: 1.5,
|
2079
|
+
initial_interval: 500,
|
2080
|
+
max_elapsed_time: 3_600_000,
|
2081
|
+
max_interval: 60_000
|
2082
|
+
),
|
2083
|
+
retry_connection_errors: true,
|
2084
|
+
strategy: 'backoff'
|
2085
|
+
)
|
2086
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2087
|
+
retry_options[:retry_statuses] = [429, 408]
|
2088
|
+
|
2089
|
+
connection = @sdk_configuration.client.dup
|
2090
|
+
connection.request :retry, retry_options
|
2091
|
+
|
2092
|
+
r = connection.get(url) do |req|
|
1472
2093
|
req.headers = headers
|
1473
2094
|
req.params = query_params
|
1474
|
-
|
2095
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2096
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1475
2097
|
end
|
1476
2098
|
|
1477
2099
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1494,8 +2116,8 @@ module StackOne
|
|
1494
2116
|
end
|
1495
2117
|
|
1496
2118
|
|
1497
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListDepartmentGroupsRequest)).returns(::StackOne::Operations::HrisListDepartmentGroupsResponse) }
|
1498
|
-
def list_department_groups(request)
|
2119
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListDepartmentGroupsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListDepartmentGroupsResponse) }
|
2120
|
+
def list_department_groups(request, retries = nil)
|
1499
2121
|
# list_department_groups - List Department Groups
|
1500
2122
|
url, params = @sdk_configuration.get_server_details
|
1501
2123
|
base_url = Utils.template_url(url, params)
|
@@ -1504,11 +2126,28 @@ module StackOne
|
|
1504
2126
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListDepartmentGroupsRequest, request)
|
1505
2127
|
headers['Accept'] = 'application/json'
|
1506
2128
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1507
|
-
|
1508
|
-
|
2129
|
+
retries ||= @sdk_configuration.retry_config
|
2130
|
+
retries ||= Utils::RetryConfig.new(
|
2131
|
+
backoff: Utils::BackoffStrategy.new(
|
2132
|
+
exponent: 1.5,
|
2133
|
+
initial_interval: 500,
|
2134
|
+
max_elapsed_time: 3_600_000,
|
2135
|
+
max_interval: 60_000
|
2136
|
+
),
|
2137
|
+
retry_connection_errors: true,
|
2138
|
+
strategy: 'backoff'
|
2139
|
+
)
|
2140
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2141
|
+
retry_options[:retry_statuses] = [429, 408]
|
2142
|
+
|
2143
|
+
connection = @sdk_configuration.client.dup
|
2144
|
+
connection.request :retry, retry_options
|
2145
|
+
|
2146
|
+
r = connection.get(url) do |req|
|
1509
2147
|
req.headers = headers
|
1510
2148
|
req.params = query_params
|
1511
|
-
|
2149
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2150
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1512
2151
|
end
|
1513
2152
|
|
1514
2153
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1531,8 +2170,8 @@ module StackOne
|
|
1531
2170
|
end
|
1532
2171
|
|
1533
2172
|
|
1534
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeCategoriesRequest)).returns(::StackOne::Operations::HrisListEmployeeCategoriesResponse) }
|
1535
|
-
def list_employee_categories(request)
|
2173
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeCategoriesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeCategoriesResponse) }
|
2174
|
+
def list_employee_categories(request, retries = nil)
|
1536
2175
|
# list_employee_categories - List Employee Document Categories
|
1537
2176
|
url, params = @sdk_configuration.get_server_details
|
1538
2177
|
base_url = Utils.template_url(url, params)
|
@@ -1541,11 +2180,28 @@ module StackOne
|
|
1541
2180
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeCategoriesRequest, request)
|
1542
2181
|
headers['Accept'] = 'application/json'
|
1543
2182
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1544
|
-
|
1545
|
-
|
2183
|
+
retries ||= @sdk_configuration.retry_config
|
2184
|
+
retries ||= Utils::RetryConfig.new(
|
2185
|
+
backoff: Utils::BackoffStrategy.new(
|
2186
|
+
exponent: 1.5,
|
2187
|
+
initial_interval: 500,
|
2188
|
+
max_elapsed_time: 3_600_000,
|
2189
|
+
max_interval: 60_000
|
2190
|
+
),
|
2191
|
+
retry_connection_errors: true,
|
2192
|
+
strategy: 'backoff'
|
2193
|
+
)
|
2194
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2195
|
+
retry_options[:retry_statuses] = [429, 408]
|
2196
|
+
|
2197
|
+
connection = @sdk_configuration.client.dup
|
2198
|
+
connection.request :retry, retry_options
|
2199
|
+
|
2200
|
+
r = connection.get(url) do |req|
|
1546
2201
|
req.headers = headers
|
1547
2202
|
req.params = query_params
|
1548
|
-
|
2203
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2204
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1549
2205
|
end
|
1550
2206
|
|
1551
2207
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1568,8 +2224,8 @@ module StackOne
|
|
1568
2224
|
end
|
1569
2225
|
|
1570
2226
|
|
1571
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsRequest)).returns(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsResponse) }
|
1572
|
-
def list_employee_custom_field_definitions(request)
|
2227
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsResponse) }
|
2228
|
+
def list_employee_custom_field_definitions(request, retries = nil)
|
1573
2229
|
# list_employee_custom_field_definitions - List employee Custom Field Definitions
|
1574
2230
|
url, params = @sdk_configuration.get_server_details
|
1575
2231
|
base_url = Utils.template_url(url, params)
|
@@ -1578,11 +2234,28 @@ module StackOne
|
|
1578
2234
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeCustomFieldDefinitionsRequest, request)
|
1579
2235
|
headers['Accept'] = 'application/json'
|
1580
2236
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1581
|
-
|
1582
|
-
|
2237
|
+
retries ||= @sdk_configuration.retry_config
|
2238
|
+
retries ||= Utils::RetryConfig.new(
|
2239
|
+
backoff: Utils::BackoffStrategy.new(
|
2240
|
+
exponent: 1.5,
|
2241
|
+
initial_interval: 500,
|
2242
|
+
max_elapsed_time: 3_600_000,
|
2243
|
+
max_interval: 60_000
|
2244
|
+
),
|
2245
|
+
retry_connection_errors: true,
|
2246
|
+
strategy: 'backoff'
|
2247
|
+
)
|
2248
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2249
|
+
retry_options[:retry_statuses] = [429, 408]
|
2250
|
+
|
2251
|
+
connection = @sdk_configuration.client.dup
|
2252
|
+
connection.request :retry, retry_options
|
2253
|
+
|
2254
|
+
r = connection.get(url) do |req|
|
1583
2255
|
req.headers = headers
|
1584
2256
|
req.params = query_params
|
1585
|
-
|
2257
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2258
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1586
2259
|
end
|
1587
2260
|
|
1588
2261
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1605,8 +2278,8 @@ module StackOne
|
|
1605
2278
|
end
|
1606
2279
|
|
1607
2280
|
|
1608
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeDocumentsRequest)).returns(::StackOne::Operations::HrisListEmployeeDocumentsResponse) }
|
1609
|
-
def list_employee_documents(request)
|
2281
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeDocumentsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeDocumentsResponse) }
|
2282
|
+
def list_employee_documents(request, retries = nil)
|
1610
2283
|
# list_employee_documents - List Employee Documents
|
1611
2284
|
url, params = @sdk_configuration.get_server_details
|
1612
2285
|
base_url = Utils.template_url(url, params)
|
@@ -1620,11 +2293,28 @@ module StackOne
|
|
1620
2293
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeDocumentsRequest, request)
|
1621
2294
|
headers['Accept'] = 'application/json'
|
1622
2295
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1623
|
-
|
1624
|
-
|
2296
|
+
retries ||= @sdk_configuration.retry_config
|
2297
|
+
retries ||= Utils::RetryConfig.new(
|
2298
|
+
backoff: Utils::BackoffStrategy.new(
|
2299
|
+
exponent: 1.5,
|
2300
|
+
initial_interval: 500,
|
2301
|
+
max_elapsed_time: 3_600_000,
|
2302
|
+
max_interval: 60_000
|
2303
|
+
),
|
2304
|
+
retry_connection_errors: true,
|
2305
|
+
strategy: 'backoff'
|
2306
|
+
)
|
2307
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2308
|
+
retry_options[:retry_statuses] = [429, 408]
|
2309
|
+
|
2310
|
+
connection = @sdk_configuration.client.dup
|
2311
|
+
connection.request :retry, retry_options
|
2312
|
+
|
2313
|
+
r = connection.get(url) do |req|
|
1625
2314
|
req.headers = headers
|
1626
2315
|
req.params = query_params
|
1627
|
-
|
2316
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2317
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1628
2318
|
end
|
1629
2319
|
|
1630
2320
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1647,8 +2337,8 @@ module StackOne
|
|
1647
2337
|
end
|
1648
2338
|
|
1649
2339
|
|
1650
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeEmploymentsRequest)).returns(::StackOne::Operations::HrisListEmployeeEmploymentsResponse) }
|
1651
|
-
def list_employee_employments(request)
|
2340
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeEmploymentsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeEmploymentsResponse) }
|
2341
|
+
def list_employee_employments(request, retries = nil)
|
1652
2342
|
# list_employee_employments - List Employee Employments
|
1653
2343
|
url, params = @sdk_configuration.get_server_details
|
1654
2344
|
base_url = Utils.template_url(url, params)
|
@@ -1662,11 +2352,28 @@ module StackOne
|
|
1662
2352
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeEmploymentsRequest, request)
|
1663
2353
|
headers['Accept'] = 'application/json'
|
1664
2354
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1665
|
-
|
1666
|
-
|
2355
|
+
retries ||= @sdk_configuration.retry_config
|
2356
|
+
retries ||= Utils::RetryConfig.new(
|
2357
|
+
backoff: Utils::BackoffStrategy.new(
|
2358
|
+
exponent: 1.5,
|
2359
|
+
initial_interval: 500,
|
2360
|
+
max_elapsed_time: 3_600_000,
|
2361
|
+
max_interval: 60_000
|
2362
|
+
),
|
2363
|
+
retry_connection_errors: true,
|
2364
|
+
strategy: 'backoff'
|
2365
|
+
)
|
2366
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2367
|
+
retry_options[:retry_statuses] = [429, 408]
|
2368
|
+
|
2369
|
+
connection = @sdk_configuration.client.dup
|
2370
|
+
connection.request :retry, retry_options
|
2371
|
+
|
2372
|
+
r = connection.get(url) do |req|
|
1667
2373
|
req.headers = headers
|
1668
2374
|
req.params = query_params
|
1669
|
-
|
2375
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2376
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1670
2377
|
end
|
1671
2378
|
|
1672
2379
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1689,8 +2396,67 @@ module StackOne
|
|
1689
2396
|
end
|
1690
2397
|
|
1691
2398
|
|
1692
|
-
sig { params(request: T.nilable(::StackOne::Operations::
|
1693
|
-
def
|
2399
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeSkillsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeSkillsResponse) }
|
2400
|
+
def list_employee_skills(request, retries = nil)
|
2401
|
+
# list_employee_skills - List Employee Skills
|
2402
|
+
url, params = @sdk_configuration.get_server_details
|
2403
|
+
base_url = Utils.template_url(url, params)
|
2404
|
+
url = Utils.generate_url(
|
2405
|
+
::StackOne::Operations::HrisListEmployeeSkillsRequest,
|
2406
|
+
base_url,
|
2407
|
+
'/unified/hris/employees/{id}/skills',
|
2408
|
+
request
|
2409
|
+
)
|
2410
|
+
headers = Utils.get_headers(request)
|
2411
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeSkillsRequest, request)
|
2412
|
+
headers['Accept'] = 'application/json'
|
2413
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
2414
|
+
retries ||= @sdk_configuration.retry_config
|
2415
|
+
retries ||= Utils::RetryConfig.new(
|
2416
|
+
backoff: Utils::BackoffStrategy.new(
|
2417
|
+
exponent: 1.5,
|
2418
|
+
initial_interval: 500,
|
2419
|
+
max_elapsed_time: 3_600_000,
|
2420
|
+
max_interval: 60_000
|
2421
|
+
),
|
2422
|
+
retry_connection_errors: true,
|
2423
|
+
strategy: 'backoff'
|
2424
|
+
)
|
2425
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2426
|
+
retry_options[:retry_statuses] = [429, 408]
|
2427
|
+
|
2428
|
+
connection = @sdk_configuration.client.dup
|
2429
|
+
connection.request :retry, retry_options
|
2430
|
+
|
2431
|
+
r = connection.get(url) do |req|
|
2432
|
+
req.headers = headers
|
2433
|
+
req.params = query_params
|
2434
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2435
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
2436
|
+
end
|
2437
|
+
|
2438
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
2439
|
+
|
2440
|
+
res = ::StackOne::Operations::HrisListEmployeeSkillsResponse.new(
|
2441
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
2442
|
+
)
|
2443
|
+
if r.status == 200
|
2444
|
+
if Utils.match_content_type(content_type, 'application/json')
|
2445
|
+
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::StackOne::Shared::EntitySkillsPaginated)
|
2446
|
+
res.entity_skills_paginated = out
|
2447
|
+
end
|
2448
|
+
elsif r.status == 408
|
2449
|
+
res.headers = r.headers
|
2450
|
+
elsif [400, 403, 412, 429].include?(r.status)
|
2451
|
+
elsif [500, 501].include?(r.status)
|
2452
|
+
end
|
2453
|
+
|
2454
|
+
res
|
2455
|
+
end
|
2456
|
+
|
2457
|
+
|
2458
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeTimeOffBalancesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeTimeOffBalancesResponse) }
|
2459
|
+
def list_employee_time_off_balances(request, retries = nil)
|
1694
2460
|
# list_employee_time_off_balances - List Employee Time Off Balances
|
1695
2461
|
url, params = @sdk_configuration.get_server_details
|
1696
2462
|
base_url = Utils.template_url(url, params)
|
@@ -1704,11 +2470,28 @@ module StackOne
|
|
1704
2470
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeTimeOffBalancesRequest, request)
|
1705
2471
|
headers['Accept'] = 'application/json'
|
1706
2472
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1707
|
-
|
1708
|
-
|
2473
|
+
retries ||= @sdk_configuration.retry_config
|
2474
|
+
retries ||= Utils::RetryConfig.new(
|
2475
|
+
backoff: Utils::BackoffStrategy.new(
|
2476
|
+
exponent: 1.5,
|
2477
|
+
initial_interval: 500,
|
2478
|
+
max_elapsed_time: 3_600_000,
|
2479
|
+
max_interval: 60_000
|
2480
|
+
),
|
2481
|
+
retry_connection_errors: true,
|
2482
|
+
strategy: 'backoff'
|
2483
|
+
)
|
2484
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2485
|
+
retry_options[:retry_statuses] = [429, 408]
|
2486
|
+
|
2487
|
+
connection = @sdk_configuration.client.dup
|
2488
|
+
connection.request :retry, retry_options
|
2489
|
+
|
2490
|
+
r = connection.get(url) do |req|
|
1709
2491
|
req.headers = headers
|
1710
2492
|
req.params = query_params
|
1711
|
-
|
2493
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2494
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1712
2495
|
end
|
1713
2496
|
|
1714
2497
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1731,8 +2514,8 @@ module StackOne
|
|
1731
2514
|
end
|
1732
2515
|
|
1733
2516
|
|
1734
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeTimeOffRequestsRequest)).returns(::StackOne::Operations::HrisListEmployeeTimeOffRequestsResponse) }
|
1735
|
-
def list_employee_time_off_requests(request)
|
2517
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeTimeOffRequestsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeTimeOffRequestsResponse) }
|
2518
|
+
def list_employee_time_off_requests(request, retries = nil)
|
1736
2519
|
# list_employee_time_off_requests - List Employee Time Off Requests
|
1737
2520
|
url, params = @sdk_configuration.get_server_details
|
1738
2521
|
base_url = Utils.template_url(url, params)
|
@@ -1746,11 +2529,28 @@ module StackOne
|
|
1746
2529
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeTimeOffRequestsRequest, request)
|
1747
2530
|
headers['Accept'] = 'application/json'
|
1748
2531
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1749
|
-
|
1750
|
-
|
2532
|
+
retries ||= @sdk_configuration.retry_config
|
2533
|
+
retries ||= Utils::RetryConfig.new(
|
2534
|
+
backoff: Utils::BackoffStrategy.new(
|
2535
|
+
exponent: 1.5,
|
2536
|
+
initial_interval: 500,
|
2537
|
+
max_elapsed_time: 3_600_000,
|
2538
|
+
max_interval: 60_000
|
2539
|
+
),
|
2540
|
+
retry_connection_errors: true,
|
2541
|
+
strategy: 'backoff'
|
2542
|
+
)
|
2543
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2544
|
+
retry_options[:retry_statuses] = [429, 408]
|
2545
|
+
|
2546
|
+
connection = @sdk_configuration.client.dup
|
2547
|
+
connection.request :retry, retry_options
|
2548
|
+
|
2549
|
+
r = connection.get(url) do |req|
|
1751
2550
|
req.headers = headers
|
1752
2551
|
req.params = query_params
|
1753
|
-
|
2552
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2553
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1754
2554
|
end
|
1755
2555
|
|
1756
2556
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1773,8 +2573,8 @@ module StackOne
|
|
1773
2573
|
end
|
1774
2574
|
|
1775
2575
|
|
1776
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeWorkEligibilityRequest)).returns(::StackOne::Operations::HrisListEmployeeWorkEligibilityResponse) }
|
1777
|
-
def list_employee_work_eligibility(request)
|
2576
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeWorkEligibilityRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeeWorkEligibilityResponse) }
|
2577
|
+
def list_employee_work_eligibility(request, retries = nil)
|
1778
2578
|
# list_employee_work_eligibility - List Employee Work Eligibility
|
1779
2579
|
url, params = @sdk_configuration.get_server_details
|
1780
2580
|
base_url = Utils.template_url(url, params)
|
@@ -1788,11 +2588,28 @@ module StackOne
|
|
1788
2588
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeWorkEligibilityRequest, request)
|
1789
2589
|
headers['Accept'] = 'application/json'
|
1790
2590
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1791
|
-
|
1792
|
-
|
2591
|
+
retries ||= @sdk_configuration.retry_config
|
2592
|
+
retries ||= Utils::RetryConfig.new(
|
2593
|
+
backoff: Utils::BackoffStrategy.new(
|
2594
|
+
exponent: 1.5,
|
2595
|
+
initial_interval: 500,
|
2596
|
+
max_elapsed_time: 3_600_000,
|
2597
|
+
max_interval: 60_000
|
2598
|
+
),
|
2599
|
+
retry_connection_errors: true,
|
2600
|
+
strategy: 'backoff'
|
2601
|
+
)
|
2602
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2603
|
+
retry_options[:retry_statuses] = [429, 408]
|
2604
|
+
|
2605
|
+
connection = @sdk_configuration.client.dup
|
2606
|
+
connection.request :retry, retry_options
|
2607
|
+
|
2608
|
+
r = connection.get(url) do |req|
|
1793
2609
|
req.headers = headers
|
1794
2610
|
req.params = query_params
|
1795
|
-
|
2611
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2612
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1796
2613
|
end
|
1797
2614
|
|
1798
2615
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1815,8 +2632,8 @@ module StackOne
|
|
1815
2632
|
end
|
1816
2633
|
|
1817
2634
|
|
1818
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeesRequest)).returns(::StackOne::Operations::HrisListEmployeesResponse) }
|
1819
|
-
def list_employees(request)
|
2635
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmployeesResponse) }
|
2636
|
+
def list_employees(request, retries = nil)
|
1820
2637
|
# list_employees - List Employees
|
1821
2638
|
url, params = @sdk_configuration.get_server_details
|
1822
2639
|
base_url = Utils.template_url(url, params)
|
@@ -1825,11 +2642,28 @@ module StackOne
|
|
1825
2642
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeesRequest, request)
|
1826
2643
|
headers['Accept'] = 'application/json'
|
1827
2644
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1828
|
-
|
1829
|
-
|
2645
|
+
retries ||= @sdk_configuration.retry_config
|
2646
|
+
retries ||= Utils::RetryConfig.new(
|
2647
|
+
backoff: Utils::BackoffStrategy.new(
|
2648
|
+
exponent: 1.5,
|
2649
|
+
initial_interval: 500,
|
2650
|
+
max_elapsed_time: 3_600_000,
|
2651
|
+
max_interval: 60_000
|
2652
|
+
),
|
2653
|
+
retry_connection_errors: true,
|
2654
|
+
strategy: 'backoff'
|
2655
|
+
)
|
2656
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2657
|
+
retry_options[:retry_statuses] = [429, 408]
|
2658
|
+
|
2659
|
+
connection = @sdk_configuration.client.dup
|
2660
|
+
connection.request :retry, retry_options
|
2661
|
+
|
2662
|
+
r = connection.get(url) do |req|
|
1830
2663
|
req.headers = headers
|
1831
2664
|
req.params = query_params
|
1832
|
-
|
2665
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2666
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1833
2667
|
end
|
1834
2668
|
|
1835
2669
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1852,8 +2686,8 @@ module StackOne
|
|
1852
2686
|
end
|
1853
2687
|
|
1854
2688
|
|
1855
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmploymentsRequest)).returns(::StackOne::Operations::HrisListEmploymentsResponse) }
|
1856
|
-
def list_employments(request)
|
2689
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmploymentsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListEmploymentsResponse) }
|
2690
|
+
def list_employments(request, retries = nil)
|
1857
2691
|
# list_employments - List Employments
|
1858
2692
|
url, params = @sdk_configuration.get_server_details
|
1859
2693
|
base_url = Utils.template_url(url, params)
|
@@ -1862,11 +2696,28 @@ module StackOne
|
|
1862
2696
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmploymentsRequest, request)
|
1863
2697
|
headers['Accept'] = 'application/json'
|
1864
2698
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1865
|
-
|
1866
|
-
|
2699
|
+
retries ||= @sdk_configuration.retry_config
|
2700
|
+
retries ||= Utils::RetryConfig.new(
|
2701
|
+
backoff: Utils::BackoffStrategy.new(
|
2702
|
+
exponent: 1.5,
|
2703
|
+
initial_interval: 500,
|
2704
|
+
max_elapsed_time: 3_600_000,
|
2705
|
+
max_interval: 60_000
|
2706
|
+
),
|
2707
|
+
retry_connection_errors: true,
|
2708
|
+
strategy: 'backoff'
|
2709
|
+
)
|
2710
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2711
|
+
retry_options[:retry_statuses] = [429, 408]
|
2712
|
+
|
2713
|
+
connection = @sdk_configuration.client.dup
|
2714
|
+
connection.request :retry, retry_options
|
2715
|
+
|
2716
|
+
r = connection.get(url) do |req|
|
1867
2717
|
req.headers = headers
|
1868
2718
|
req.params = query_params
|
1869
|
-
|
2719
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2720
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1870
2721
|
end
|
1871
2722
|
|
1872
2723
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1889,8 +2740,8 @@ module StackOne
|
|
1889
2740
|
end
|
1890
2741
|
|
1891
2742
|
|
1892
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListGroupsRequest)).returns(::StackOne::Operations::HrisListGroupsResponse) }
|
1893
|
-
def list_groups(request)
|
2743
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListGroupsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListGroupsResponse) }
|
2744
|
+
def list_groups(request, retries = nil)
|
1894
2745
|
# list_groups - List Groups
|
1895
2746
|
url, params = @sdk_configuration.get_server_details
|
1896
2747
|
base_url = Utils.template_url(url, params)
|
@@ -1899,11 +2750,28 @@ module StackOne
|
|
1899
2750
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListGroupsRequest, request)
|
1900
2751
|
headers['Accept'] = 'application/json'
|
1901
2752
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1902
|
-
|
1903
|
-
|
2753
|
+
retries ||= @sdk_configuration.retry_config
|
2754
|
+
retries ||= Utils::RetryConfig.new(
|
2755
|
+
backoff: Utils::BackoffStrategy.new(
|
2756
|
+
exponent: 1.5,
|
2757
|
+
initial_interval: 500,
|
2758
|
+
max_elapsed_time: 3_600_000,
|
2759
|
+
max_interval: 60_000
|
2760
|
+
),
|
2761
|
+
retry_connection_errors: true,
|
2762
|
+
strategy: 'backoff'
|
2763
|
+
)
|
2764
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2765
|
+
retry_options[:retry_statuses] = [429, 408]
|
2766
|
+
|
2767
|
+
connection = @sdk_configuration.client.dup
|
2768
|
+
connection.request :retry, retry_options
|
2769
|
+
|
2770
|
+
r = connection.get(url) do |req|
|
1904
2771
|
req.headers = headers
|
1905
2772
|
req.params = query_params
|
1906
|
-
|
2773
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2774
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1907
2775
|
end
|
1908
2776
|
|
1909
2777
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1926,8 +2794,8 @@ module StackOne
|
|
1926
2794
|
end
|
1927
2795
|
|
1928
2796
|
|
1929
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListJobsRequest)).returns(::StackOne::Operations::HrisListJobsResponse) }
|
1930
|
-
def list_jobs(request)
|
2797
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListJobsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListJobsResponse) }
|
2798
|
+
def list_jobs(request, retries = nil)
|
1931
2799
|
# list_jobs - List Jobs
|
1932
2800
|
url, params = @sdk_configuration.get_server_details
|
1933
2801
|
base_url = Utils.template_url(url, params)
|
@@ -1936,11 +2804,28 @@ module StackOne
|
|
1936
2804
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListJobsRequest, request)
|
1937
2805
|
headers['Accept'] = 'application/json'
|
1938
2806
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1939
|
-
|
1940
|
-
|
2807
|
+
retries ||= @sdk_configuration.retry_config
|
2808
|
+
retries ||= Utils::RetryConfig.new(
|
2809
|
+
backoff: Utils::BackoffStrategy.new(
|
2810
|
+
exponent: 1.5,
|
2811
|
+
initial_interval: 500,
|
2812
|
+
max_elapsed_time: 3_600_000,
|
2813
|
+
max_interval: 60_000
|
2814
|
+
),
|
2815
|
+
retry_connection_errors: true,
|
2816
|
+
strategy: 'backoff'
|
2817
|
+
)
|
2818
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2819
|
+
retry_options[:retry_statuses] = [429, 408]
|
2820
|
+
|
2821
|
+
connection = @sdk_configuration.client.dup
|
2822
|
+
connection.request :retry, retry_options
|
2823
|
+
|
2824
|
+
r = connection.get(url) do |req|
|
1941
2825
|
req.headers = headers
|
1942
2826
|
req.params = query_params
|
1943
|
-
|
2827
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2828
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1944
2829
|
end
|
1945
2830
|
|
1946
2831
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -1963,9 +2848,9 @@ module StackOne
|
|
1963
2848
|
end
|
1964
2849
|
|
1965
2850
|
|
1966
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListLocationsRequest)).returns(::StackOne::Operations::HrisListLocationsResponse) }
|
1967
|
-
def list_locations(request)
|
1968
|
-
# list_locations - List
|
2851
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListLocationsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListLocationsResponse) }
|
2852
|
+
def list_locations(request, retries = nil)
|
2853
|
+
# list_locations - List Work Locations
|
1969
2854
|
url, params = @sdk_configuration.get_server_details
|
1970
2855
|
base_url = Utils.template_url(url, params)
|
1971
2856
|
url = "#{base_url}/unified/hris/locations"
|
@@ -1973,11 +2858,28 @@ module StackOne
|
|
1973
2858
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListLocationsRequest, request)
|
1974
2859
|
headers['Accept'] = 'application/json'
|
1975
2860
|
headers['user-agent'] = @sdk_configuration.user_agent
|
1976
|
-
|
1977
|
-
|
2861
|
+
retries ||= @sdk_configuration.retry_config
|
2862
|
+
retries ||= Utils::RetryConfig.new(
|
2863
|
+
backoff: Utils::BackoffStrategy.new(
|
2864
|
+
exponent: 1.5,
|
2865
|
+
initial_interval: 500,
|
2866
|
+
max_elapsed_time: 3_600_000,
|
2867
|
+
max_interval: 60_000
|
2868
|
+
),
|
2869
|
+
retry_connection_errors: true,
|
2870
|
+
strategy: 'backoff'
|
2871
|
+
)
|
2872
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2873
|
+
retry_options[:retry_statuses] = [429, 408]
|
2874
|
+
|
2875
|
+
connection = @sdk_configuration.client.dup
|
2876
|
+
connection.request :retry, retry_options
|
2877
|
+
|
2878
|
+
r = connection.get(url) do |req|
|
1978
2879
|
req.headers = headers
|
1979
2880
|
req.params = query_params
|
1980
|
-
|
2881
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2882
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
1981
2883
|
end
|
1982
2884
|
|
1983
2885
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -2000,8 +2902,8 @@ module StackOne
|
|
2000
2902
|
end
|
2001
2903
|
|
2002
2904
|
|
2003
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListTeamGroupsRequest)).returns(::StackOne::Operations::HrisListTeamGroupsResponse) }
|
2004
|
-
def list_team_groups(request)
|
2905
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListTeamGroupsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListTeamGroupsResponse) }
|
2906
|
+
def list_team_groups(request, retries = nil)
|
2005
2907
|
# list_team_groups - List Team Groups
|
2006
2908
|
url, params = @sdk_configuration.get_server_details
|
2007
2909
|
base_url = Utils.template_url(url, params)
|
@@ -2010,11 +2912,28 @@ module StackOne
|
|
2010
2912
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListTeamGroupsRequest, request)
|
2011
2913
|
headers['Accept'] = 'application/json'
|
2012
2914
|
headers['user-agent'] = @sdk_configuration.user_agent
|
2013
|
-
|
2014
|
-
|
2915
|
+
retries ||= @sdk_configuration.retry_config
|
2916
|
+
retries ||= Utils::RetryConfig.new(
|
2917
|
+
backoff: Utils::BackoffStrategy.new(
|
2918
|
+
exponent: 1.5,
|
2919
|
+
initial_interval: 500,
|
2920
|
+
max_elapsed_time: 3_600_000,
|
2921
|
+
max_interval: 60_000
|
2922
|
+
),
|
2923
|
+
retry_connection_errors: true,
|
2924
|
+
strategy: 'backoff'
|
2925
|
+
)
|
2926
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2927
|
+
retry_options[:retry_statuses] = [429, 408]
|
2928
|
+
|
2929
|
+
connection = @sdk_configuration.client.dup
|
2930
|
+
connection.request :retry, retry_options
|
2931
|
+
|
2932
|
+
r = connection.get(url) do |req|
|
2015
2933
|
req.headers = headers
|
2016
2934
|
req.params = query_params
|
2017
|
-
|
2935
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2936
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
2018
2937
|
end
|
2019
2938
|
|
2020
2939
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -2037,8 +2956,8 @@ module StackOne
|
|
2037
2956
|
end
|
2038
2957
|
|
2039
2958
|
|
2040
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeEntriesRequest)).returns(::StackOne::Operations::HrisListTimeEntriesResponse) }
|
2041
|
-
def list_time_entries(request)
|
2959
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeEntriesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListTimeEntriesResponse) }
|
2960
|
+
def list_time_entries(request, retries = nil)
|
2042
2961
|
# list_time_entries - List Time Entries
|
2043
2962
|
url, params = @sdk_configuration.get_server_details
|
2044
2963
|
base_url = Utils.template_url(url, params)
|
@@ -2047,11 +2966,28 @@ module StackOne
|
|
2047
2966
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListTimeEntriesRequest, request)
|
2048
2967
|
headers['Accept'] = 'application/json'
|
2049
2968
|
headers['user-agent'] = @sdk_configuration.user_agent
|
2050
|
-
|
2051
|
-
|
2969
|
+
retries ||= @sdk_configuration.retry_config
|
2970
|
+
retries ||= Utils::RetryConfig.new(
|
2971
|
+
backoff: Utils::BackoffStrategy.new(
|
2972
|
+
exponent: 1.5,
|
2973
|
+
initial_interval: 500,
|
2974
|
+
max_elapsed_time: 3_600_000,
|
2975
|
+
max_interval: 60_000
|
2976
|
+
),
|
2977
|
+
retry_connection_errors: true,
|
2978
|
+
strategy: 'backoff'
|
2979
|
+
)
|
2980
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
2981
|
+
retry_options[:retry_statuses] = [429, 408]
|
2982
|
+
|
2983
|
+
connection = @sdk_configuration.client.dup
|
2984
|
+
connection.request :retry, retry_options
|
2985
|
+
|
2986
|
+
r = connection.get(url) do |req|
|
2052
2987
|
req.headers = headers
|
2053
2988
|
req.params = query_params
|
2054
|
-
|
2989
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
2990
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
2055
2991
|
end
|
2056
2992
|
|
2057
2993
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -2074,8 +3010,8 @@ module StackOne
|
|
2074
3010
|
end
|
2075
3011
|
|
2076
3012
|
|
2077
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffPoliciesRequest)).returns(::StackOne::Operations::HrisListTimeOffPoliciesResponse) }
|
2078
|
-
def list_time_off_policies(request)
|
3013
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffPoliciesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListTimeOffPoliciesResponse) }
|
3014
|
+
def list_time_off_policies(request, retries = nil)
|
2079
3015
|
# list_time_off_policies - List Time Off Policies
|
2080
3016
|
url, params = @sdk_configuration.get_server_details
|
2081
3017
|
base_url = Utils.template_url(url, params)
|
@@ -2084,11 +3020,28 @@ module StackOne
|
|
2084
3020
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListTimeOffPoliciesRequest, request)
|
2085
3021
|
headers['Accept'] = 'application/json'
|
2086
3022
|
headers['user-agent'] = @sdk_configuration.user_agent
|
2087
|
-
|
2088
|
-
|
3023
|
+
retries ||= @sdk_configuration.retry_config
|
3024
|
+
retries ||= Utils::RetryConfig.new(
|
3025
|
+
backoff: Utils::BackoffStrategy.new(
|
3026
|
+
exponent: 1.5,
|
3027
|
+
initial_interval: 500,
|
3028
|
+
max_elapsed_time: 3_600_000,
|
3029
|
+
max_interval: 60_000
|
3030
|
+
),
|
3031
|
+
retry_connection_errors: true,
|
3032
|
+
strategy: 'backoff'
|
3033
|
+
)
|
3034
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
3035
|
+
retry_options[:retry_statuses] = [429, 408]
|
3036
|
+
|
3037
|
+
connection = @sdk_configuration.client.dup
|
3038
|
+
connection.request :retry, retry_options
|
3039
|
+
|
3040
|
+
r = connection.get(url) do |req|
|
2089
3041
|
req.headers = headers
|
2090
3042
|
req.params = query_params
|
2091
|
-
|
3043
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
3044
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
2092
3045
|
end
|
2093
3046
|
|
2094
3047
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -2111,8 +3064,8 @@ module StackOne
|
|
2111
3064
|
end
|
2112
3065
|
|
2113
3066
|
|
2114
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffRequestsRequest)).returns(::StackOne::Operations::HrisListTimeOffRequestsResponse) }
|
2115
|
-
def list_time_off_requests(request)
|
3067
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffRequestsRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListTimeOffRequestsResponse) }
|
3068
|
+
def list_time_off_requests(request, retries = nil)
|
2116
3069
|
# list_time_off_requests - List time off requests
|
2117
3070
|
url, params = @sdk_configuration.get_server_details
|
2118
3071
|
base_url = Utils.template_url(url, params)
|
@@ -2121,11 +3074,28 @@ module StackOne
|
|
2121
3074
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListTimeOffRequestsRequest, request)
|
2122
3075
|
headers['Accept'] = 'application/json'
|
2123
3076
|
headers['user-agent'] = @sdk_configuration.user_agent
|
2124
|
-
|
2125
|
-
|
3077
|
+
retries ||= @sdk_configuration.retry_config
|
3078
|
+
retries ||= Utils::RetryConfig.new(
|
3079
|
+
backoff: Utils::BackoffStrategy.new(
|
3080
|
+
exponent: 1.5,
|
3081
|
+
initial_interval: 500,
|
3082
|
+
max_elapsed_time: 3_600_000,
|
3083
|
+
max_interval: 60_000
|
3084
|
+
),
|
3085
|
+
retry_connection_errors: true,
|
3086
|
+
strategy: 'backoff'
|
3087
|
+
)
|
3088
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
3089
|
+
retry_options[:retry_statuses] = [429, 408]
|
3090
|
+
|
3091
|
+
connection = @sdk_configuration.client.dup
|
3092
|
+
connection.request :retry, retry_options
|
3093
|
+
|
3094
|
+
r = connection.get(url) do |req|
|
2126
3095
|
req.headers = headers
|
2127
3096
|
req.params = query_params
|
2128
|
-
|
3097
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
3098
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
2129
3099
|
end
|
2130
3100
|
|
2131
3101
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -2148,8 +3118,8 @@ module StackOne
|
|
2148
3118
|
end
|
2149
3119
|
|
2150
3120
|
|
2151
|
-
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffTypesRequest)).returns(::StackOne::Operations::HrisListTimeOffTypesResponse) }
|
2152
|
-
def list_time_off_types(request)
|
3121
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffTypesRequest), retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisListTimeOffTypesResponse) }
|
3122
|
+
def list_time_off_types(request, retries = nil)
|
2153
3123
|
# list_time_off_types - List time off types
|
2154
3124
|
url, params = @sdk_configuration.get_server_details
|
2155
3125
|
base_url = Utils.template_url(url, params)
|
@@ -2158,11 +3128,28 @@ module StackOne
|
|
2158
3128
|
query_params = Utils.get_query_params(::StackOne::Operations::HrisListTimeOffTypesRequest, request)
|
2159
3129
|
headers['Accept'] = 'application/json'
|
2160
3130
|
headers['user-agent'] = @sdk_configuration.user_agent
|
2161
|
-
|
2162
|
-
|
3131
|
+
retries ||= @sdk_configuration.retry_config
|
3132
|
+
retries ||= Utils::RetryConfig.new(
|
3133
|
+
backoff: Utils::BackoffStrategy.new(
|
3134
|
+
exponent: 1.5,
|
3135
|
+
initial_interval: 500,
|
3136
|
+
max_elapsed_time: 3_600_000,
|
3137
|
+
max_interval: 60_000
|
3138
|
+
),
|
3139
|
+
retry_connection_errors: true,
|
3140
|
+
strategy: 'backoff'
|
3141
|
+
)
|
3142
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
3143
|
+
retry_options[:retry_statuses] = [429, 408]
|
3144
|
+
|
3145
|
+
connection = @sdk_configuration.client.dup
|
3146
|
+
connection.request :retry, retry_options
|
3147
|
+
|
3148
|
+
r = connection.get(url) do |req|
|
2163
3149
|
req.headers = headers
|
2164
3150
|
req.params = query_params
|
2165
|
-
|
3151
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
3152
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
2166
3153
|
end
|
2167
3154
|
|
2168
3155
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
@@ -2185,8 +3172,8 @@ module StackOne
|
|
2185
3172
|
end
|
2186
3173
|
|
2187
3174
|
|
2188
|
-
sig { params(hris_update_employee_request_dto: ::StackOne::Shared::HrisUpdateEmployeeRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateEmployeeResponse) }
|
2189
|
-
def update_employee(hris_update_employee_request_dto, id, x_account_id)
|
3175
|
+
sig { params(hris_update_employee_request_dto: ::StackOne::Shared::HrisUpdateEmployeeRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisUpdateEmployeeResponse) }
|
3176
|
+
def update_employee(hris_update_employee_request_dto, id, x_account_id, retries = nil)
|
2190
3177
|
# update_employee - Updates an employee
|
2191
3178
|
request = ::StackOne::Operations::HrisUpdateEmployeeRequest.new(
|
2192
3179
|
|
@@ -2208,10 +3195,27 @@ module StackOne
|
|
2208
3195
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
2209
3196
|
headers['Accept'] = 'application/json'
|
2210
3197
|
headers['user-agent'] = @sdk_configuration.user_agent
|
2211
|
-
|
2212
|
-
|
3198
|
+
retries ||= @sdk_configuration.retry_config
|
3199
|
+
retries ||= Utils::RetryConfig.new(
|
3200
|
+
backoff: Utils::BackoffStrategy.new(
|
3201
|
+
exponent: 1.5,
|
3202
|
+
initial_interval: 500,
|
3203
|
+
max_elapsed_time: 3_600_000,
|
3204
|
+
max_interval: 60_000
|
3205
|
+
),
|
3206
|
+
retry_connection_errors: true,
|
3207
|
+
strategy: 'backoff'
|
3208
|
+
)
|
3209
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
3210
|
+
retry_options[:retry_statuses] = [429, 408]
|
3211
|
+
|
3212
|
+
connection = @sdk_configuration.client.dup
|
3213
|
+
connection.request :retry, retry_options
|
3214
|
+
|
3215
|
+
r = connection.patch(url) do |req|
|
2213
3216
|
req.headers = headers
|
2214
|
-
|
3217
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
3218
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
2215
3219
|
if form
|
2216
3220
|
req.body = Utils.encode_form(form)
|
2217
3221
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
@@ -2241,8 +3245,8 @@ module StackOne
|
|
2241
3245
|
end
|
2242
3246
|
|
2243
3247
|
|
2244
|
-
sig { params(hris_create_employment_request_dto: ::StackOne::Shared::HrisCreateEmploymentRequestDto, id: ::String, sub_resource_id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateEmployeeEmploymentResponse) }
|
2245
|
-
def update_employee_employment(hris_create_employment_request_dto, id, sub_resource_id, x_account_id)
|
3248
|
+
sig { params(hris_create_employment_request_dto: ::StackOne::Shared::HrisCreateEmploymentRequestDto, id: ::String, sub_resource_id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisUpdateEmployeeEmploymentResponse) }
|
3249
|
+
def update_employee_employment(hris_create_employment_request_dto, id, sub_resource_id, x_account_id, retries = nil)
|
2246
3250
|
# update_employee_employment - Update Employee Employment
|
2247
3251
|
request = ::StackOne::Operations::HrisUpdateEmployeeEmploymentRequest.new(
|
2248
3252
|
|
@@ -2265,10 +3269,27 @@ module StackOne
|
|
2265
3269
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
2266
3270
|
headers['Accept'] = 'application/json'
|
2267
3271
|
headers['user-agent'] = @sdk_configuration.user_agent
|
2268
|
-
|
2269
|
-
|
3272
|
+
retries ||= @sdk_configuration.retry_config
|
3273
|
+
retries ||= Utils::RetryConfig.new(
|
3274
|
+
backoff: Utils::BackoffStrategy.new(
|
3275
|
+
exponent: 1.5,
|
3276
|
+
initial_interval: 500,
|
3277
|
+
max_elapsed_time: 3_600_000,
|
3278
|
+
max_interval: 60_000
|
3279
|
+
),
|
3280
|
+
retry_connection_errors: true,
|
3281
|
+
strategy: 'backoff'
|
3282
|
+
)
|
3283
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
3284
|
+
retry_options[:retry_statuses] = [429, 408]
|
3285
|
+
|
3286
|
+
connection = @sdk_configuration.client.dup
|
3287
|
+
connection.request :retry, retry_options
|
3288
|
+
|
3289
|
+
r = connection.patch(url) do |req|
|
2270
3290
|
req.headers = headers
|
2271
|
-
|
3291
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
3292
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
2272
3293
|
if form
|
2273
3294
|
req.body = Utils.encode_form(form)
|
2274
3295
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
@@ -2298,8 +3319,8 @@ module StackOne
|
|
2298
3319
|
end
|
2299
3320
|
|
2300
3321
|
|
2301
|
-
sig { params(hris_create_work_eligibility_request_dto: ::StackOne::Shared::HrisCreateWorkEligibilityRequestDto, id: ::String, sub_resource_id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestResponse) }
|
2302
|
-
def update_employee_work_eligibility_request(hris_create_work_eligibility_request_dto, id, sub_resource_id, x_account_id)
|
3322
|
+
sig { params(hris_create_work_eligibility_request_dto: ::StackOne::Shared::HrisCreateWorkEligibilityRequestDto, id: ::String, sub_resource_id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestResponse) }
|
3323
|
+
def update_employee_work_eligibility_request(hris_create_work_eligibility_request_dto, id, sub_resource_id, x_account_id, retries = nil)
|
2303
3324
|
# update_employee_work_eligibility_request - Update Employee Work Eligibility Request
|
2304
3325
|
request = ::StackOne::Operations::HrisUpdateEmployeeWorkEligibilityRequestRequest.new(
|
2305
3326
|
|
@@ -2322,10 +3343,27 @@ module StackOne
|
|
2322
3343
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
2323
3344
|
headers['Accept'] = '*/*'
|
2324
3345
|
headers['user-agent'] = @sdk_configuration.user_agent
|
2325
|
-
|
2326
|
-
|
3346
|
+
retries ||= @sdk_configuration.retry_config
|
3347
|
+
retries ||= Utils::RetryConfig.new(
|
3348
|
+
backoff: Utils::BackoffStrategy.new(
|
3349
|
+
exponent: 1.5,
|
3350
|
+
initial_interval: 500,
|
3351
|
+
max_elapsed_time: 3_600_000,
|
3352
|
+
max_interval: 60_000
|
3353
|
+
),
|
3354
|
+
retry_connection_errors: true,
|
3355
|
+
strategy: 'backoff'
|
3356
|
+
)
|
3357
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
3358
|
+
retry_options[:retry_statuses] = [429, 408]
|
3359
|
+
|
3360
|
+
connection = @sdk_configuration.client.dup
|
3361
|
+
connection.request :retry, retry_options
|
3362
|
+
|
3363
|
+
r = connection.patch(url) do |req|
|
2327
3364
|
req.headers = headers
|
2328
|
-
|
3365
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
3366
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
2329
3367
|
if form
|
2330
3368
|
req.body = Utils.encode_form(form)
|
2331
3369
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
@@ -2351,8 +3389,8 @@ module StackOne
|
|
2351
3389
|
end
|
2352
3390
|
|
2353
3391
|
|
2354
|
-
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUpdateTimeOffRequestResponse) }
|
2355
|
-
def update_time_off_request(hris_create_time_off_request_dto, id, x_account_id)
|
3392
|
+
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisUpdateTimeOffRequestResponse) }
|
3393
|
+
def update_time_off_request(hris_create_time_off_request_dto, id, x_account_id, retries = nil)
|
2356
3394
|
# update_time_off_request - Update time off request
|
2357
3395
|
request = ::StackOne::Operations::HrisUpdateTimeOffRequestRequest.new(
|
2358
3396
|
|
@@ -2374,10 +3412,27 @@ module StackOne
|
|
2374
3412
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
2375
3413
|
headers['Accept'] = 'application/json'
|
2376
3414
|
headers['user-agent'] = @sdk_configuration.user_agent
|
2377
|
-
|
2378
|
-
|
3415
|
+
retries ||= @sdk_configuration.retry_config
|
3416
|
+
retries ||= Utils::RetryConfig.new(
|
3417
|
+
backoff: Utils::BackoffStrategy.new(
|
3418
|
+
exponent: 1.5,
|
3419
|
+
initial_interval: 500,
|
3420
|
+
max_elapsed_time: 3_600_000,
|
3421
|
+
max_interval: 60_000
|
3422
|
+
),
|
3423
|
+
retry_connection_errors: true,
|
3424
|
+
strategy: 'backoff'
|
3425
|
+
)
|
3426
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
3427
|
+
retry_options[:retry_statuses] = [429, 408]
|
3428
|
+
|
3429
|
+
connection = @sdk_configuration.client.dup
|
3430
|
+
connection.request :retry, retry_options
|
3431
|
+
|
3432
|
+
r = connection.patch(url) do |req|
|
2379
3433
|
req.headers = headers
|
2380
|
-
|
3434
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
3435
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
2381
3436
|
if form
|
2382
3437
|
req.body = Utils.encode_form(form)
|
2383
3438
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
@@ -2407,8 +3462,8 @@ module StackOne
|
|
2407
3462
|
end
|
2408
3463
|
|
2409
3464
|
|
2410
|
-
sig { params(hris_documents_upload_request_dto: ::StackOne::Shared::HrisDocumentsUploadRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUploadEmployeeDocumentResponse) }
|
2411
|
-
def upload_employee_document(hris_documents_upload_request_dto, id, x_account_id)
|
3465
|
+
sig { params(hris_documents_upload_request_dto: ::StackOne::Shared::HrisDocumentsUploadRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig)).returns(::StackOne::Operations::HrisUploadEmployeeDocumentResponse) }
|
3466
|
+
def upload_employee_document(hris_documents_upload_request_dto, id, x_account_id, retries = nil)
|
2412
3467
|
# upload_employee_document - Upload Employee Document
|
2413
3468
|
request = ::StackOne::Operations::HrisUploadEmployeeDocumentRequest.new(
|
2414
3469
|
|
@@ -2430,10 +3485,27 @@ module StackOne
|
|
2430
3485
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
2431
3486
|
headers['Accept'] = 'application/json'
|
2432
3487
|
headers['user-agent'] = @sdk_configuration.user_agent
|
2433
|
-
|
2434
|
-
|
3488
|
+
retries ||= @sdk_configuration.retry_config
|
3489
|
+
retries ||= Utils::RetryConfig.new(
|
3490
|
+
backoff: Utils::BackoffStrategy.new(
|
3491
|
+
exponent: 1.5,
|
3492
|
+
initial_interval: 500,
|
3493
|
+
max_elapsed_time: 3_600_000,
|
3494
|
+
max_interval: 60_000
|
3495
|
+
),
|
3496
|
+
retry_connection_errors: true,
|
3497
|
+
strategy: 'backoff'
|
3498
|
+
)
|
3499
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
3500
|
+
retry_options[:retry_statuses] = [429, 408]
|
3501
|
+
|
3502
|
+
connection = @sdk_configuration.client.dup
|
3503
|
+
connection.request :retry, retry_options
|
3504
|
+
|
3505
|
+
r = connection.post(url) do |req|
|
2435
3506
|
req.headers = headers
|
2436
|
-
|
3507
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
3508
|
+
Utils.configure_request_security(req, security) if !security.nil?
|
2437
3509
|
if form
|
2438
3510
|
req.body = Utils.encode_form(form)
|
2439
3511
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|