@@ -663,6 +663,12 @@ actions:
663663 - " lang " : " ruby"
664664 " label " : " hris_update_employee_employment"
665665 "source": "require 'stackone_client'\n\n\ns = ::StackOne::StackOne.new\ns.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\",\n password: \"\",\n )\n)\n\n \nres = s.hris.update_employee_employment(id=\"<id>\", sub_resource_id=\"<id>\", x_account_id=\"<id>\", hris_create_employment_request_dto=::StackOne::Shared::HrisCreateEmploymentRequestDto.new(\n id: \"8187e5da-dc77-475e-9949-af0f1fa4e4e3\",\n unified_custom_fields: {\n \"my_project_custom_field_1\": \"REF-1236\",\n \"my_project_custom_field_2\": \"some other value\",\n },\n employee_id: \"1687-3\",\n job_title: \"Software Engineer\",\n pay_rate: \"40.00\",\n pay_period: ::StackOne::Shared::HrisCreateEmploymentRequestDtoPayPeriod.new(),\n pay_frequency: ::StackOne::Shared::HrisCreateEmploymentRequestDtoPayFrequency.new(),\n pay_currency: \"USD\",\n effective_date: DateTime.iso8601('2021-01-01T01:01:01.000Z'),\n employment_type: ::StackOne::Shared::HrisCreateEmploymentRequestDtoEmploymentType.new(),\n employment_contract_type: ::StackOne::Shared::HrisCreateEmploymentRequestDtoEmploymentContractType.new(),\n time_worked: \"P0Y0M0DT8H0M0S\",\n passthrough: {\n \"other_known_names\": \"John Doe\",\n },\n))\n\nif ! res.employment_result.nil?\n # handle response\nend"
666+ - target : $["paths"]["/unified/hris/employees/{id}/invite"]["post"]
667+ update :
668+ " x-codeSamples " :
669+ - " lang " : " ruby"
670+ " label " : " hris_invite_employee"
671+ " source " : " require 'stackone_client'\n\n\n s = ::StackOne::StackOne.new\n s.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\" ,\n password: \"\" ,\n )\n )\n\n \n res = s.hris.invite_employee(id=\" <id>\" , x_account_id=\" <id>\" , hris_invite_employee_request_dto=::StackOne::Shared::HrisInviteEmployeeRequestDto.new(\n passthrough: {\n \" other_known_names\" : \" John Doe\" ,\n },\n ))\n\n if ! res.invite_employee_result.nil?\n # handle response\n end"
666672 - target : $["paths"]["/unified/hris/employees/{id}/skills"]["post"]
667673 update :
668674 " x-codeSamples " :
@@ -687,6 +693,18 @@ actions:
687693 - " lang " : " ruby"
688694 " label " : " hris_get_employees_time_off_request"
689695 " source " : " require 'stackone_client'\n\n\n s = ::StackOne::StackOne.new\n s.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\" ,\n password: \"\" ,\n )\n )\n\n\n req = ::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest.new(\n id: \" <id>\" ,\n sub_resource_id: \" <id>\" ,\n fields_: \" id,remote_id,employee_id,remote_employee_id,approver_id,remote_approver_id,status,type,start_date,end_date,start_half_day,end_half_day,duration,created_at,updated_at\" ,\n x_account_id: \" <id>\" ,\n )\n \n res = s.hris.get_employees_time_off_request(req)\n\n if ! res.time_off_result.nil?\n # handle response\n end"
696+ - target : $["paths"]["/unified/hris/employees/{id}/time_off_balances"]["get"]
697+ update :
698+ " x-codeSamples " :
699+ - " lang " : " ruby"
700+ " label " : " hris_list_employee_time_off_balances"
701+ " source " : " require 'stackone_client'\n\n\n s = ::StackOne::StackOne.new\n s.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\" ,\n password: \"\" ,\n )\n )\n\n\n req = ::StackOne::Operations::HrisListEmployeeTimeOffBalancesRequest.new(\n id: \" <id>\" ,\n fields_: \" id,remote_id,employee_id,remote_employee_id,policy_id,remote_policy_id,policy,current_balance,initial_balance,balance_unit,balance_start_date,balance_expiry_date,updated_at\" ,\n filter: ::StackOne::Operations::HrisListEmployeeTimeOffBalancesQueryParamFilter.new(\n updated_after: \" 2020-01-01T00:00:00.000Z\" ,\n ),\n expand: \" policy\" ,\n x_account_id: \" <id>\" ,\n )\n \n res = s.hris.list_employee_time_off_balances(req)\n\n if ! res.time_off_balances_paginated.nil?\n # handle response\n end"
702+ - target : $["paths"]["/unified/hris/employees/{id}/time_off_balances/{subResourceId}"]["get"]
703+ update :
704+ " x-codeSamples " :
705+ - " lang " : " ruby"
706+ " label " : " hris_get_employee_time_off_balance"
707+ " source " : " require 'stackone_client'\n\n\n s = ::StackOne::StackOne.new\n s.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\" ,\n password: \"\" ,\n )\n )\n\n\n req = ::StackOne::Operations::HrisGetEmployeeTimeOffBalanceRequest.new(\n id: \" <id>\" ,\n sub_resource_id: \" <id>\" ,\n fields_: \" id,remote_id,employee_id,remote_employee_id,policy_id,remote_policy_id,policy,current_balance,initial_balance,balance_unit,balance_start_date,balance_expiry_date,updated_at\" ,\n expand: \" policy\" ,\n x_account_id: \" <id>\" ,\n )\n \n res = s.hris.get_employee_time_off_balance(req)\n\n if ! res.time_off_balance_result.nil?\n # handle response\n end"
690708 - target : $["paths"]["/unified/hris/employees/{id}/work_eligibility"]["get"]
691709 update :
692710 " x-codeSamples " :
@@ -831,6 +849,18 @@ actions:
831849 - " lang " : " ruby"
832850 " label " : " hris_update_time_off_request"
833851 " source " : " require 'stackone_client'\n\n\n s = ::StackOne::StackOne.new\n s.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\" ,\n password: \"\" ,\n )\n )\n\n \n res = s.hris.update_time_off_request(id=\" <id>\" , x_account_id=\" <id>\" , hris_create_time_off_request_dto=::StackOne::Shared::HrisCreateTimeOffRequestDto.new(\n employee_id: \" 1687-3\" ,\n approver_id: \" 1687-4\" ,\n start_date: DateTime.iso8601('2021-01-01T01:01:01.000Z'),\n end_date: DateTime.iso8601('2021-01-01T01:01:01.000Z'),\n start_half_day: true,\n end_half_day: true,\n passthrough: {\n \" other_known_names\" : \" John Doe\" ,\n },\n ))\n\n if ! res.create_result.nil?\n # handle response\n end"
852+ - target : $["paths"]["/unified/hris/time_off_policies"]["get"]
853+ update :
854+ " x-codeSamples " :
855+ - " lang " : " ruby"
856+ " label " : " hris_list_time_off_policies"
857+ " source " : " require 'stackone_client'\n\n\n s = ::StackOne::StackOne.new\n s.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\" ,\n password: \"\" ,\n )\n )\n\n\n req = ::StackOne::Operations::HrisListTimeOffPoliciesRequest.new(\n fields_: \" id,remote_id,name,description,type,updated_at,created_at\" ,\n filter: ::StackOne::Operations::HrisListTimeOffPoliciesQueryParamFilter.new(\n updated_after: \" 2020-01-01T00:00:00.000Z\" ,\n ),\n x_account_id: \" <id>\" ,\n )\n \n res = s.hris.list_time_off_policies(req)\n\n if ! res.time_off_policies_paginated.nil?\n # handle response\n end"
858+ - target : $["paths"]["/unified/hris/time_off_policies/{id}"]["get"]
859+ update :
860+ " x-codeSamples " :
861+ - " lang " : " ruby"
862+ " label " : " hris_get_time_off_policy"
863+ " source " : " require 'stackone_client'\n\n\n s = ::StackOne::StackOne.new\n s.config_security(\n ::StackOne::Shared::Security.new(\n username: \"\" ,\n password: \"\" ,\n )\n )\n\n\n req = ::StackOne::Operations::HrisGetTimeOffPolicyRequest.new(\n id: \" <id>\" ,\n fields_: \" id,remote_id,name,description,type,updated_at,created_at\" ,\n x_account_id: \" <id>\" ,\n )\n \n res = s.hris.get_time_off_policy(req)\n\n if ! res.time_off_policy_result.nil?\n # handle response\n end"
834864 - target : $["paths"]["/unified/hris/time_off_types"]["get"]
835865 update :
836866 " x-codeSamples " :
0 commit comments