stackone_client 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stack_one/ats.rb +1400 -0
- data/lib/stack_one/crm.rb +332 -0
- data/lib/stack_one/hris.rb +71 -0
- data/lib/stack_one/marketing.rb +599 -0
- data/lib/stack_one/models/operations/ats_create_application_request.rb +27 -0
- data/lib/stack_one/models/operations/ats_create_application_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_create_candidate_note_request.rb +30 -0
- data/lib/stack_one/models/operations/ats_create_candidate_note_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_create_candidate_request.rb +27 -0
- data/lib/stack_one/models/operations/ats_create_candidate_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_create_offer_request.rb +27 -0
- data/lib/stack_one/models/operations/ats_create_offer_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_application_document_request.rb +58 -0
- data/lib/stack_one/models/operations/ats_get_application_document_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_application_offer_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_application_offer_request.rb +58 -0
- data/lib/stack_one/models/operations/ats_get_application_offer_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_application_request.rb +58 -0
- data/lib/stack_one/models/operations/ats_get_application_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_application_scorecard_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_application_scorecard_request.rb +58 -0
- data/lib/stack_one/models/operations/ats_get_application_scorecard_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_candidate_note_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_candidate_note_request.rb +58 -0
- data/lib/stack_one/models/operations/ats_get_candidate_note_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_candidate_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_candidate_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_candidate_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_department_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_department_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_department_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_interview_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_interview_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_interview_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_interview_stage_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_interview_stage_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_interview_stage_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_job_posting_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_job_posting_request.rb +58 -0
- data/lib/stack_one/models/operations/ats_get_job_posting_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_job_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_job_request.rb +58 -0
- data/lib/stack_one/models/operations/ats_get_job_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_location_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_location_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_location_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_offer_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_offer_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_offer_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_rejected_reason_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_rejected_reason_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_rejected_reason_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_get_user_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_get_user_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_get_user_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_application_documents_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_application_documents_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_list_application_documents_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_application_scorecards_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_application_scorecards_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_list_application_scorecards_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_applications_offers_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_applications_offers_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_list_applications_offers_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_applications_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_applications_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_list_applications_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_candidate_notes_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_candidate_notes_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_list_candidate_notes_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_candidates_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_candidates_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_candidates_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_departments_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_departments_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_departments_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_interview_stages_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_interview_stages_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_interview_stages_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_interviews_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_interviews_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_interviews_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_job_postings_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_job_postings_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_list_job_postings_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_jobs_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_jobs_request.rb +55 -0
- data/lib/stack_one/models/operations/ats_list_jobs_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_locations_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_locations_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_locations_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_offers_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_offers_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_offers_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_rejected_reasons_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_list_users_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/ats_list_users_request.rb +52 -0
- data/lib/stack_one/models/operations/ats_list_users_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_update_application_request.rb +30 -0
- data/lib/stack_one/models/operations/ats_update_application_response.rb +33 -0
- data/lib/stack_one/models/operations/ats_update_candidate_request.rb +30 -0
- data/lib/stack_one/models/operations/ats_update_candidate_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_create_contact_request.rb +27 -0
- data/lib/stack_one/models/operations/crm_create_contact_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_get_account_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/crm_get_account_request.rb +50 -0
- data/lib/stack_one/models/operations/crm_get_account_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_get_contact_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/crm_get_contact_request.rb +50 -0
- data/lib/stack_one/models/operations/crm_get_contact_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_get_list_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/crm_get_list_request.rb +50 -0
- data/lib/stack_one/models/operations/crm_get_list_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_list_accounts_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/crm_list_accounts_request.rb +47 -0
- data/lib/stack_one/models/operations/crm_list_accounts_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_list_contacts_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/crm_list_contacts_request.rb +47 -0
- data/lib/stack_one/models/operations/crm_list_contacts_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_list_lists_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/crm_list_lists_request.rb +47 -0
- data/lib/stack_one/models/operations/crm_list_lists_response.rb +33 -0
- data/lib/stack_one/models/operations/crm_update_contact_request.rb +30 -0
- data/lib/stack_one/models/operations/crm_update_contact_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_benefit_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_benefit_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_get_benefit_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_company_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_company_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_get_employee_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_employee_request.rb +2 -2
- data/lib/stack_one/models/operations/hris_list_benefits_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_benefits_request.rb +47 -0
- data/lib/stack_one/models/operations/hris_list_benefits_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_create_email_template_request.rb +27 -0
- data/lib/stack_one/models/operations/marketing_create_email_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_create_omni_channel_template_request.rb +27 -0
- data/lib/stack_one/models/operations/marketing_create_omni_channel_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_create_push_template_request.rb +27 -0
- data/lib/stack_one/models/operations/marketing_create_push_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_get_campaign_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_get_campaign_request.rb +50 -0
- data/lib/stack_one/models/operations/marketing_get_campaign_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_get_email_template_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_get_email_template_request.rb +50 -0
- data/lib/stack_one/models/operations/marketing_get_email_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_request.rb +50 -0
- data/lib/stack_one/models/operations/marketing_get_omni_channel_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_get_push_template_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_get_push_template_request.rb +50 -0
- data/lib/stack_one/models/operations/marketing_get_push_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_list_campaigns_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_list_campaigns_request.rb +47 -0
- data/lib/stack_one/models/operations/marketing_list_campaigns_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_list_email_templates_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_list_email_templates_request.rb +47 -0
- data/lib/stack_one/models/operations/marketing_list_email_templates_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_request.rb +47 -0
- data/lib/stack_one/models/operations/marketing_list_omni_channel_templates_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_list_push_templates_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/marketing_list_push_templates_request.rb +47 -0
- data/lib/stack_one/models/operations/marketing_list_push_templates_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_update_email_template_request.rb +30 -0
- data/lib/stack_one/models/operations/marketing_update_email_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_update_omni_channel_template_request.rb +30 -0
- data/lib/stack_one/models/operations/marketing_update_omni_channel_template_response.rb +33 -0
- data/lib/stack_one/models/operations/marketing_update_push_template_request.rb +30 -0
- data/lib/stack_one/models/operations/marketing_update_push_template_response.rb +33 -0
- data/lib/stack_one/models/operations.rb +168 -2
- data/lib/stack_one/models/shared/account.rb +54 -0
- data/lib/stack_one/models/shared/accountaddress.rb +42 -0
- data/lib/stack_one/models/shared/accountaddress_schemas_value.rb +265 -0
- data/lib/stack_one/models/shared/accountaddress_value.rb +20 -0
- data/lib/stack_one/models/shared/accountresult.rb +27 -0
- data/lib/stack_one/models/shared/accountspaginated.rb +33 -0
- data/lib/stack_one/models/shared/answer.rb +30 -0
- data/lib/stack_one/models/shared/answer_value.rb +26 -0
- data/lib/stack_one/models/shared/application.rb +77 -0
- data/lib/stack_one/models/shared/application_candidate.rb +30 -0
- data/lib/stack_one/models/shared/application_interview_stage.rb +36 -0
- data/lib/stack_one/models/shared/application_status.rb +27 -0
- data/lib/stack_one/models/shared/application_value.rb +32 -0
- data/lib/stack_one/models/shared/applicationattachment.rb +33 -0
- data/lib/stack_one/models/shared/applicationattachment_value.rb +19 -0
- data/lib/stack_one/models/shared/applicationresult.rb +27 -0
- data/lib/stack_one/models/shared/applicationspaginated.rb +33 -0
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto.rb +44 -0
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto_application_status.rb +27 -0
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto_candidate.rb +30 -0
- data/lib/stack_one/models/shared/atscreateapplicationrequestdto_value.rb +32 -0
- data/lib/stack_one/models/shared/atscreatecandidaterequestdto.rb +47 -0
- data/lib/stack_one/models/shared/atscreatenotesrequestdto.rb +30 -0
- data/lib/stack_one/models/shared/atscreatenotesrequestdto_value.rb +19 -0
- data/lib/stack_one/models/shared/atscreateofferrequestdto.rb +39 -0
- data/lib/stack_one/models/shared/atscreateofferrequestdto_value.rb +25 -0
- data/lib/stack_one/models/shared/atslocation.rb +27 -0
- data/lib/stack_one/models/shared/atslocationresult.rb +27 -0
- data/lib/stack_one/models/shared/atslocationspaginated.rb +33 -0
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto.rb +47 -0
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_application_status.rb +27 -0
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_candidate.rb +30 -0
- data/lib/stack_one/models/shared/atsupdateapplicationrequestdto_value.rb +32 -0
- data/lib/stack_one/models/shared/atsupdatecandidatesrequestdto.rb +50 -0
- data/lib/stack_one/models/shared/benefit_type.rb +27 -0
- data/lib/stack_one/models/shared/campaign.rb +63 -0
- data/lib/stack_one/models/shared/campaign_schemas_value.rb +20 -0
- data/lib/stack_one/models/shared/campaign_value.rb +22 -0
- data/lib/stack_one/models/shared/campaignresult.rb +27 -0
- data/lib/stack_one/models/shared/campaignspaginated.rb +33 -0
- data/lib/stack_one/models/shared/candidate.rb +68 -0
- data/lib/stack_one/models/shared/candidateemail.rb +27 -0
- data/lib/stack_one/models/shared/candidateresult.rb +27 -0
- data/lib/stack_one/models/shared/candidatespaginated.rb +33 -0
- data/lib/stack_one/models/shared/channelsenum.rb +27 -0
- data/lib/stack_one/models/shared/confidential.rb +19 -0
- data/lib/stack_one/models/shared/contact.rb +51 -0
- data/lib/stack_one/models/shared/contactresult.rb +27 -0
- data/lib/stack_one/models/shared/contactspaginated.rb +33 -0
- data/lib/stack_one/models/shared/content_type.rb +27 -0
- data/lib/stack_one/models/shared/country.rb +4 -4
- data/lib/stack_one/models/shared/countrycodeenum.rb +2 -2
- data/lib/stack_one/models/shared/countrycodeenum_value.rb +266 -0
- data/lib/stack_one/models/shared/createcandidatenoteresult.rb +30 -0
- data/lib/stack_one/models/shared/createofferresult.rb +30 -0
- data/lib/stack_one/models/shared/createresult.rb +30 -0
- data/lib/stack_one/models/shared/createtemplateresult.rb +30 -0
- data/lib/stack_one/models/shared/crmcreatecontactrequestdto.rb +42 -0
- data/lib/stack_one/models/shared/department.rb +27 -0
- data/lib/stack_one/models/shared/departmentresult.rb +27 -0
- data/lib/stack_one/models/shared/departmentspaginated.rb +33 -0
- data/lib/stack_one/models/shared/documentapimodel.rb +2 -2
- data/lib/stack_one/models/shared/documentapimodel_type.rb +27 -0
- data/lib/stack_one/models/shared/documentapimodel_value.rb +7 -14
- data/lib/stack_one/models/shared/emailmessages.rb +33 -0
- data/lib/stack_one/models/shared/employee_country.rb +2 -2
- data/lib/stack_one/models/shared/employee_location_type.rb +4 -4
- data/lib/stack_one/models/shared/employee_schemas_country.rb +2 -2
- data/lib/stack_one/models/shared/employee_schemas_employment_type_value.rb +1 -1
- data/lib/stack_one/models/shared/employee_schemas_home_location_location_type_value.rb +1 -1
- data/lib/stack_one/models/shared/employee_schemas_location_type.rb +4 -4
- data/lib/stack_one/models/shared/employee_schemas_work_location_location_type_value.rb +1 -1
- data/lib/stack_one/models/shared/employment_employment_type.rb +2 -2
- data/lib/stack_one/models/shared/employment_schemas_pay_frequency_value.rb +1 -3
- data/lib/stack_one/models/shared/employment_schemas_pay_period_value.rb +2 -1
- data/lib/stack_one/models/shared/employment_schemas_value.rb +1 -1
- data/lib/stack_one/models/shared/employment_type.rb +2 -2
- data/lib/stack_one/models/shared/field.rb +36 -0
- data/lib/stack_one/models/shared/field_type.rb +29 -0
- data/lib/stack_one/models/shared/fileformatenum_value.rb +1203 -11
- data/lib/stack_one/models/shared/home_location.rb +3 -3
- data/lib/stack_one/models/shared/hrisbenefit.rb +42 -0
- data/lib/stack_one/models/shared/hrisbenefit_value.rb +18 -0
- data/lib/stack_one/models/shared/hrisbenefitresult.rb +27 -0
- data/lib/stack_one/models/shared/hrisbenefitspaginated.rb +33 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_type.rb +2 -2
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb +1 -1
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_status.rb +27 -0
- data/lib/stack_one/models/shared/hrislocation.rb +3 -3
- data/lib/stack_one/models/shared/hrislocation_country.rb +27 -0
- data/lib/stack_one/models/shared/hrislocation_location_type.rb +27 -0
- data/lib/stack_one/models/shared/hrislocation_schemas_value.rb +1 -1
- data/lib/stack_one/models/shared/internal.rb +19 -0
- data/lib/stack_one/models/shared/interview.rb +60 -0
- data/lib/stack_one/models/shared/interview_interview_stage.rb +36 -0
- data/lib/stack_one/models/shared/interview_status.rb +27 -0
- data/lib/stack_one/models/shared/interview_value.rb +23 -0
- data/lib/stack_one/models/shared/interviewer.rb +36 -0
- data/lib/stack_one/models/shared/interviewpart.rb +39 -0
- data/lib/stack_one/models/shared/interviewspaginated.rb +33 -0
- data/lib/stack_one/models/shared/interviewsresult.rb +27 -0
- data/lib/stack_one/models/shared/interviewstage.rb +36 -0
- data/lib/stack_one/models/shared/interviewstageresult.rb +27 -0
- data/lib/stack_one/models/shared/interviewstagespaginated.rb +33 -0
- data/lib/stack_one/models/shared/job.rb +57 -0
- data/lib/stack_one/models/shared/job_status.rb +27 -0
- data/lib/stack_one/models/shared/job_value.rb +25 -0
- data/lib/stack_one/models/shared/jobhiringteam.rb +36 -0
- data/lib/stack_one/models/shared/jobposting.rb +66 -0
- data/lib/stack_one/models/shared/jobposting_content.rb +27 -0
- data/lib/stack_one/models/shared/jobposting_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/jobposting_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/jobposting_schemas_status_value.rb +21 -0
- data/lib/stack_one/models/shared/jobposting_schemas_value.rb +35 -0
- data/lib/stack_one/models/shared/jobposting_status.rb +27 -0
- data/lib/stack_one/models/shared/jobposting_value.rb +21 -0
- data/lib/stack_one/models/shared/jobpostingcompensation.rb +45 -0
- data/lib/stack_one/models/shared/jobpostingcompensation_pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/jobpostingcompensation_pay_period.rb +27 -0
- data/lib/stack_one/models/shared/jobpostingcompensation_schemas_type_value.rb +24 -0
- data/lib/stack_one/models/shared/jobpostingcompensation_schemas_value.rb +27 -0
- data/lib/stack_one/models/shared/jobpostingcompensation_type.rb +27 -0
- data/lib/stack_one/models/shared/jobpostingcompensation_value.rb +31 -0
- data/lib/stack_one/models/shared/jobpostinglocation.rb +27 -0
- data/lib/stack_one/models/shared/jobpostingquestionnaire.rb +33 -0
- data/lib/stack_one/models/shared/jobpostingresult.rb +27 -0
- data/lib/stack_one/models/shared/jobpostingspaginated.rb +33 -0
- data/lib/stack_one/models/shared/jobresult.rb +27 -0
- data/lib/stack_one/models/shared/jobspaginated.rb +33 -0
- data/lib/stack_one/models/shared/list.rb +39 -0
- data/lib/stack_one/models/shared/list_type.rb +27 -0
- data/lib/stack_one/models/shared/list_value.rb +20 -0
- data/lib/stack_one/models/shared/listresult.rb +27 -0
- data/lib/stack_one/models/shared/listspaginated.rb +33 -0
- data/lib/stack_one/models/shared/location_type.rb +4 -4
- data/lib/stack_one/models/shared/marketingcreateemailtemplaterequestdto.rb +33 -0
- data/lib/stack_one/models/shared/marketingcreatepushtemplaterequestdto.rb +33 -0
- data/lib/stack_one/models/shared/marketingcreatetemplaterequestdto.rb +33 -0
- data/lib/stack_one/models/shared/message.rb +33 -0
- data/lib/stack_one/models/shared/message_content.rb +36 -0
- data/lib/stack_one/models/shared/message_message_type.rb +27 -0
- data/lib/stack_one/models/shared/message_type.rb +27 -0
- data/lib/stack_one/models/shared/note.rb +42 -0
- data/lib/stack_one/models/shared/note_value.rb +19 -0
- data/lib/stack_one/models/shared/note_visibility.rb +27 -0
- data/lib/stack_one/models/shared/notecontentapimodel.rb +24 -0
- data/lib/stack_one/models/shared/noteresult.rb +27 -0
- data/lib/stack_one/models/shared/notespaginated.rb +33 -0
- data/lib/stack_one/models/shared/offer.rb +48 -0
- data/lib/stack_one/models/shared/offer_offer_status.rb +27 -0
- data/lib/stack_one/models/shared/offer_status.rb +27 -0
- data/lib/stack_one/models/shared/offer_value.rb +25 -0
- data/lib/stack_one/models/shared/offerhistory.rb +36 -0
- data/lib/stack_one/models/shared/offerspaginated.rb +33 -0
- data/lib/stack_one/models/shared/offersresult.rb +27 -0
- data/lib/stack_one/models/shared/overall_recommendation.rb +23 -0
- data/lib/stack_one/models/shared/pay_frequency.rb +2 -2
- data/lib/stack_one/models/shared/pay_period.rb +2 -2
- data/lib/stack_one/models/shared/phonenumber.rb +27 -0
- data/lib/stack_one/models/shared/phonenumber_type.rb +23 -0
- data/lib/stack_one/models/shared/pushmessages.rb +33 -0
- data/lib/stack_one/models/shared/pushmessages_message_content.rb +24 -0
- data/lib/stack_one/models/shared/pushmessages_message_type.rb +27 -0
- data/lib/stack_one/models/shared/question.rb +39 -0
- data/lib/stack_one/models/shared/question_type.rb +27 -0
- data/lib/stack_one/models/shared/question_value.rb +26 -0
- data/lib/stack_one/models/shared/questionmultiplechoiceanswers.rb +27 -0
- data/lib/stack_one/models/shared/questionnaire.rb +27 -0
- data/lib/stack_one/models/shared/rejected_reason_type.rb +27 -0
- data/lib/stack_one/models/shared/rejectedreason.rb +33 -0
- data/lib/stack_one/models/shared/rejectedreason_value.rb +22 -0
- data/lib/stack_one/models/shared/rejectedreasonresult.rb +27 -0
- data/lib/stack_one/models/shared/rejectedreasonspaginated.rb +33 -0
- data/lib/stack_one/models/shared/resultlink.rb +27 -0
- data/lib/stack_one/models/shared/schedule_type.rb +27 -0
- data/lib/stack_one/models/shared/scorecard.rb +51 -0
- data/lib/stack_one/models/shared/scorecardsection.rb +30 -0
- data/lib/stack_one/models/shared/scorecardspaginated.rb +33 -0
- data/lib/stack_one/models/shared/sociallink.rb +27 -0
- data/lib/stack_one/models/shared/status.rb +5 -5
- data/lib/stack_one/models/shared/template.rb +36 -0
- data/lib/stack_one/models/shared/templateresult.rb +27 -0
- data/lib/stack_one/models/shared/templatespaginated.rb +33 -0
- data/lib/stack_one/models/shared/type.rb +5 -5
- data/lib/stack_one/models/shared/updateresult.rb +30 -0
- data/lib/stack_one/models/shared/user.rb +39 -0
- data/lib/stack_one/models/shared/userresult.rb +27 -0
- data/lib/stack_one/models/shared/userspaginated.rb +33 -0
- data/lib/stack_one/models/shared/value.rb +7 -249
- data/lib/stack_one/models/shared/visibility.rb +27 -0
- data/lib/stack_one/models/shared/work_location.rb +3 -3
- data/lib/stack_one/models/shared.rb +180 -18
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- data/lib/stack_one/stackone.rb +4 -1
- data/lib/stackone_client.rb +3 -0
- metadata +337 -6
@@ -0,0 +1,332 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'faraday'
|
7
|
+
require 'faraday/multipart'
|
8
|
+
require 'sorbet-runtime'
|
9
|
+
|
10
|
+
module StackOne
|
11
|
+
extend T::Sig
|
12
|
+
class Crm
|
13
|
+
extend T::Sig
|
14
|
+
|
15
|
+
|
16
|
+
sig { params(sdk_config: SDKConfiguration).void }
|
17
|
+
def initialize(sdk_config)
|
18
|
+
@sdk_configuration = sdk_config
|
19
|
+
end
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(crm_create_contact_request_dto: ::StackOne::Shared::CrmCreateContactRequestDto, x_account_id: ::String).returns(Utils::FieldAugmented) }
|
23
|
+
def create_contact(crm_create_contact_request_dto, x_account_id)
|
24
|
+
# create_contact - Creates a new Contact
|
25
|
+
request = ::StackOne::Operations::CrmCreateContactRequest.new(
|
26
|
+
|
27
|
+
crm_create_contact_request_dto: crm_create_contact_request_dto,
|
28
|
+
x_account_id: x_account_id
|
29
|
+
)
|
30
|
+
url, params = @sdk_configuration.get_server_details
|
31
|
+
base_url = Utils.template_url(url, params)
|
32
|
+
url = "#{base_url}/unified/crm/contacts"
|
33
|
+
headers = Utils.get_headers(request)
|
34
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :crm_create_contact_request_dto, :json)
|
35
|
+
headers['content-type'] = req_content_type
|
36
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
37
|
+
headers['Accept'] = 'application/json'
|
38
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
39
|
+
|
40
|
+
r = @sdk_configuration.client.post(url) do |req|
|
41
|
+
req.headers = headers
|
42
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
43
|
+
if form
|
44
|
+
req.body = Utils.encode_form(form)
|
45
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
46
|
+
req.body = URI.encode_www_form(data)
|
47
|
+
else
|
48
|
+
req.body = data
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
53
|
+
|
54
|
+
res = ::StackOne::Operations::CrmCreateContactResponse.new(
|
55
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
56
|
+
)
|
57
|
+
if r.status == 200
|
58
|
+
if Utils.match_content_type(content_type, 'application/json')
|
59
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ContactResult)
|
60
|
+
res.contact_result = out
|
61
|
+
end
|
62
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
63
|
+
end
|
64
|
+
res
|
65
|
+
end
|
66
|
+
|
67
|
+
|
68
|
+
sig { params(request: T.nilable(::StackOne::Operations::CrmGetAccountRequest)).returns(Utils::FieldAugmented) }
|
69
|
+
def get_account(request)
|
70
|
+
# get_account - Get Account
|
71
|
+
url, params = @sdk_configuration.get_server_details
|
72
|
+
base_url = Utils.template_url(url, params)
|
73
|
+
url = Utils.generate_url(
|
74
|
+
::StackOne::Operations::CrmGetAccountRequest,
|
75
|
+
base_url,
|
76
|
+
'/unified/crm/accounts/{id}',
|
77
|
+
request
|
78
|
+
)
|
79
|
+
headers = Utils.get_headers(request)
|
80
|
+
query_params = Utils.get_query_params(::StackOne::Operations::CrmGetAccountRequest, request)
|
81
|
+
headers['Accept'] = 'application/json'
|
82
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
83
|
+
|
84
|
+
r = @sdk_configuration.client.get(url) do |req|
|
85
|
+
req.headers = headers
|
86
|
+
req.params = query_params
|
87
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
88
|
+
end
|
89
|
+
|
90
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
91
|
+
|
92
|
+
res = ::StackOne::Operations::CrmGetAccountResponse.new(
|
93
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
94
|
+
)
|
95
|
+
if r.status == 200
|
96
|
+
if Utils.match_content_type(content_type, 'application/json')
|
97
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AccountResult)
|
98
|
+
res.account_result = out
|
99
|
+
end
|
100
|
+
elsif [400, 403, 429, 500, 501].include?(r.status)
|
101
|
+
end
|
102
|
+
res
|
103
|
+
end
|
104
|
+
|
105
|
+
|
106
|
+
sig { params(request: T.nilable(::StackOne::Operations::CrmGetContactRequest)).returns(Utils::FieldAugmented) }
|
107
|
+
def get_contact(request)
|
108
|
+
# get_contact - Get Contact
|
109
|
+
url, params = @sdk_configuration.get_server_details
|
110
|
+
base_url = Utils.template_url(url, params)
|
111
|
+
url = Utils.generate_url(
|
112
|
+
::StackOne::Operations::CrmGetContactRequest,
|
113
|
+
base_url,
|
114
|
+
'/unified/crm/contacts/{id}',
|
115
|
+
request
|
116
|
+
)
|
117
|
+
headers = Utils.get_headers(request)
|
118
|
+
query_params = Utils.get_query_params(::StackOne::Operations::CrmGetContactRequest, request)
|
119
|
+
headers['Accept'] = 'application/json'
|
120
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
121
|
+
|
122
|
+
r = @sdk_configuration.client.get(url) do |req|
|
123
|
+
req.headers = headers
|
124
|
+
req.params = query_params
|
125
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
126
|
+
end
|
127
|
+
|
128
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
129
|
+
|
130
|
+
res = ::StackOne::Operations::CrmGetContactResponse.new(
|
131
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
132
|
+
)
|
133
|
+
if r.status == 200
|
134
|
+
if Utils.match_content_type(content_type, 'application/json')
|
135
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ContactResult)
|
136
|
+
res.contact_result = out
|
137
|
+
end
|
138
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
139
|
+
end
|
140
|
+
res
|
141
|
+
end
|
142
|
+
|
143
|
+
|
144
|
+
sig { params(request: T.nilable(::StackOne::Operations::CrmGetListRequest)).returns(Utils::FieldAugmented) }
|
145
|
+
def get_list(request)
|
146
|
+
# get_list - Get List
|
147
|
+
url, params = @sdk_configuration.get_server_details
|
148
|
+
base_url = Utils.template_url(url, params)
|
149
|
+
url = Utils.generate_url(
|
150
|
+
::StackOne::Operations::CrmGetListRequest,
|
151
|
+
base_url,
|
152
|
+
'/unified/crm/lists/{id}',
|
153
|
+
request
|
154
|
+
)
|
155
|
+
headers = Utils.get_headers(request)
|
156
|
+
query_params = Utils.get_query_params(::StackOne::Operations::CrmGetListRequest, request)
|
157
|
+
headers['Accept'] = 'application/json'
|
158
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
159
|
+
|
160
|
+
r = @sdk_configuration.client.get(url) do |req|
|
161
|
+
req.headers = headers
|
162
|
+
req.params = query_params
|
163
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
164
|
+
end
|
165
|
+
|
166
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
167
|
+
|
168
|
+
res = ::StackOne::Operations::CrmGetListResponse.new(
|
169
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
170
|
+
)
|
171
|
+
if r.status == 200
|
172
|
+
if Utils.match_content_type(content_type, 'application/json')
|
173
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ListResult)
|
174
|
+
res.list_result = out
|
175
|
+
end
|
176
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
177
|
+
end
|
178
|
+
res
|
179
|
+
end
|
180
|
+
|
181
|
+
|
182
|
+
sig { params(request: T.nilable(::StackOne::Operations::CrmListAccountsRequest)).returns(Utils::FieldAugmented) }
|
183
|
+
def list_accounts(request)
|
184
|
+
# list_accounts - List Accounts
|
185
|
+
url, params = @sdk_configuration.get_server_details
|
186
|
+
base_url = Utils.template_url(url, params)
|
187
|
+
url = "#{base_url}/unified/crm/accounts"
|
188
|
+
headers = Utils.get_headers(request)
|
189
|
+
query_params = Utils.get_query_params(::StackOne::Operations::CrmListAccountsRequest, request)
|
190
|
+
headers['Accept'] = 'application/json'
|
191
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
192
|
+
|
193
|
+
r = @sdk_configuration.client.get(url) do |req|
|
194
|
+
req.headers = headers
|
195
|
+
req.params = query_params
|
196
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
197
|
+
end
|
198
|
+
|
199
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
200
|
+
|
201
|
+
res = ::StackOne::Operations::CrmListAccountsResponse.new(
|
202
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
203
|
+
)
|
204
|
+
if r.status == 200
|
205
|
+
if Utils.match_content_type(content_type, 'application/json')
|
206
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::AccountsPaginated)
|
207
|
+
res.accounts_paginated = out
|
208
|
+
end
|
209
|
+
elsif [400, 403, 429, 500, 501].include?(r.status)
|
210
|
+
end
|
211
|
+
res
|
212
|
+
end
|
213
|
+
|
214
|
+
|
215
|
+
sig { params(request: T.nilable(::StackOne::Operations::CrmListContactsRequest)).returns(Utils::FieldAugmented) }
|
216
|
+
def list_contacts(request)
|
217
|
+
# list_contacts - List Contacts
|
218
|
+
url, params = @sdk_configuration.get_server_details
|
219
|
+
base_url = Utils.template_url(url, params)
|
220
|
+
url = "#{base_url}/unified/crm/contacts"
|
221
|
+
headers = Utils.get_headers(request)
|
222
|
+
query_params = Utils.get_query_params(::StackOne::Operations::CrmListContactsRequest, request)
|
223
|
+
headers['Accept'] = 'application/json'
|
224
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
225
|
+
|
226
|
+
r = @sdk_configuration.client.get(url) do |req|
|
227
|
+
req.headers = headers
|
228
|
+
req.params = query_params
|
229
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
230
|
+
end
|
231
|
+
|
232
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
233
|
+
|
234
|
+
res = ::StackOne::Operations::CrmListContactsResponse.new(
|
235
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
236
|
+
)
|
237
|
+
if r.status == 200
|
238
|
+
if Utils.match_content_type(content_type, 'application/json')
|
239
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ContactsPaginated)
|
240
|
+
res.contacts_paginated = out
|
241
|
+
end
|
242
|
+
elsif [400, 403, 429, 500, 501].include?(r.status)
|
243
|
+
end
|
244
|
+
res
|
245
|
+
end
|
246
|
+
|
247
|
+
|
248
|
+
sig { params(request: T.nilable(::StackOne::Operations::CrmListListsRequest)).returns(Utils::FieldAugmented) }
|
249
|
+
def list_lists(request)
|
250
|
+
# list_lists - Get all Lists
|
251
|
+
url, params = @sdk_configuration.get_server_details
|
252
|
+
base_url = Utils.template_url(url, params)
|
253
|
+
url = "#{base_url}/unified/crm/lists"
|
254
|
+
headers = Utils.get_headers(request)
|
255
|
+
query_params = Utils.get_query_params(::StackOne::Operations::CrmListListsRequest, request)
|
256
|
+
headers['Accept'] = 'application/json'
|
257
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
258
|
+
|
259
|
+
r = @sdk_configuration.client.get(url) do |req|
|
260
|
+
req.headers = headers
|
261
|
+
req.params = query_params
|
262
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
263
|
+
end
|
264
|
+
|
265
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
266
|
+
|
267
|
+
res = ::StackOne::Operations::CrmListListsResponse.new(
|
268
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
269
|
+
)
|
270
|
+
if r.status == 200
|
271
|
+
if Utils.match_content_type(content_type, 'application/json')
|
272
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ListsPaginated)
|
273
|
+
res.lists_paginated = out
|
274
|
+
end
|
275
|
+
elsif [400, 403, 429, 500, 501].include?(r.status)
|
276
|
+
end
|
277
|
+
res
|
278
|
+
end
|
279
|
+
|
280
|
+
|
281
|
+
sig { params(crm_create_contact_request_dto: ::StackOne::Shared::CrmCreateContactRequestDto, id: ::String, x_account_id: ::String).returns(Utils::FieldAugmented) }
|
282
|
+
def update_contact(crm_create_contact_request_dto, id, x_account_id)
|
283
|
+
# update_contact - Update Contact (early access)
|
284
|
+
request = ::StackOne::Operations::CrmUpdateContactRequest.new(
|
285
|
+
|
286
|
+
crm_create_contact_request_dto: crm_create_contact_request_dto,
|
287
|
+
id: id,
|
288
|
+
x_account_id: x_account_id
|
289
|
+
)
|
290
|
+
url, params = @sdk_configuration.get_server_details
|
291
|
+
base_url = Utils.template_url(url, params)
|
292
|
+
url = Utils.generate_url(
|
293
|
+
::StackOne::Operations::CrmUpdateContactRequest,
|
294
|
+
base_url,
|
295
|
+
'/unified/crm/contacts/{id}',
|
296
|
+
request
|
297
|
+
)
|
298
|
+
headers = Utils.get_headers(request)
|
299
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :crm_create_contact_request_dto, :json)
|
300
|
+
headers['content-type'] = req_content_type
|
301
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
302
|
+
headers['Accept'] = 'application/json'
|
303
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
304
|
+
|
305
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
306
|
+
req.headers = headers
|
307
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
308
|
+
if form
|
309
|
+
req.body = Utils.encode_form(form)
|
310
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
311
|
+
req.body = URI.encode_www_form(data)
|
312
|
+
else
|
313
|
+
req.body = data
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
317
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
318
|
+
|
319
|
+
res = ::StackOne::Operations::CrmUpdateContactResponse.new(
|
320
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
321
|
+
)
|
322
|
+
if r.status == 200
|
323
|
+
if Utils.match_content_type(content_type, 'application/json')
|
324
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::ContactResult)
|
325
|
+
res.contact_result = out
|
326
|
+
end
|
327
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
328
|
+
end
|
329
|
+
res
|
330
|
+
end
|
331
|
+
end
|
332
|
+
end
|
data/lib/stack_one/hris.rb
CHANGED
@@ -163,6 +163,44 @@ module StackOne
|
|
163
163
|
end
|
164
164
|
|
165
165
|
|
166
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetBenefitRequest)).returns(Utils::FieldAugmented) }
|
167
|
+
def get_benefit(request)
|
168
|
+
# get_benefit - Get Benefit
|
169
|
+
url, params = @sdk_configuration.get_server_details
|
170
|
+
base_url = Utils.template_url(url, params)
|
171
|
+
url = Utils.generate_url(
|
172
|
+
::StackOne::Operations::HrisGetBenefitRequest,
|
173
|
+
base_url,
|
174
|
+
'/unified/hris/benefits/{id}',
|
175
|
+
request
|
176
|
+
)
|
177
|
+
headers = Utils.get_headers(request)
|
178
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetBenefitRequest, request)
|
179
|
+
headers['Accept'] = 'application/json'
|
180
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
181
|
+
|
182
|
+
r = @sdk_configuration.client.get(url) do |req|
|
183
|
+
req.headers = headers
|
184
|
+
req.params = query_params
|
185
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
186
|
+
end
|
187
|
+
|
188
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
189
|
+
|
190
|
+
res = ::StackOne::Operations::HrisGetBenefitResponse.new(
|
191
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
192
|
+
)
|
193
|
+
if r.status == 200
|
194
|
+
if Utils.match_content_type(content_type, 'application/json')
|
195
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISBenefitResult)
|
196
|
+
res.hris_benefit_result = out
|
197
|
+
end
|
198
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
199
|
+
end
|
200
|
+
res
|
201
|
+
end
|
202
|
+
|
203
|
+
|
166
204
|
sig { params(request: T.nilable(::StackOne::Operations::HrisGetCompanyRequest)).returns(Utils::FieldAugmented) }
|
167
205
|
def get_company(request)
|
168
206
|
# get_company - Get Company
|
@@ -429,6 +467,39 @@ module StackOne
|
|
429
467
|
end
|
430
468
|
|
431
469
|
|
470
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListBenefitsRequest)).returns(Utils::FieldAugmented) }
|
471
|
+
def list_benefits(request)
|
472
|
+
# list_benefits - List benefits
|
473
|
+
url, params = @sdk_configuration.get_server_details
|
474
|
+
base_url = Utils.template_url(url, params)
|
475
|
+
url = "#{base_url}/unified/hris/benefits"
|
476
|
+
headers = Utils.get_headers(request)
|
477
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListBenefitsRequest, request)
|
478
|
+
headers['Accept'] = 'application/json'
|
479
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
480
|
+
|
481
|
+
r = @sdk_configuration.client.get(url) do |req|
|
482
|
+
req.headers = headers
|
483
|
+
req.params = query_params
|
484
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
485
|
+
end
|
486
|
+
|
487
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
488
|
+
|
489
|
+
res = ::StackOne::Operations::HrisListBenefitsResponse.new(
|
490
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
491
|
+
)
|
492
|
+
if r.status == 200
|
493
|
+
if Utils.match_content_type(content_type, 'application/json')
|
494
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISBenefitsPaginated)
|
495
|
+
res.hris_benefits_paginated = out
|
496
|
+
end
|
497
|
+
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
498
|
+
end
|
499
|
+
res
|
500
|
+
end
|
501
|
+
|
502
|
+
|
432
503
|
sig { params(request: T.nilable(::StackOne::Operations::HrisListCompaniesRequest)).returns(Utils::FieldAugmented) }
|
433
504
|
def list_companies(request)
|
434
505
|
# list_companies - List Companies
|