@@ -44,7 +44,7 @@ actions:
4444 " x-codeSamples " :
4545 - " lang " : " ruby"
4646 " label " : " stackone_rpc_action"
47- " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Shared::ActionsRpcRequestDto.new(\n action: 'create_employee',\n input: Models::Shared::Input.new( \n query: {\n \" param1\" : 'value1',\n \" param2\" : 'value2',\n },\n headers: {\n \" Content-Type\" : 'application/json',\n },\n body: {\n \" data\" : 'example',\n }, \n ) ,\n )\n\n res = s.actions.rpc_action(request: req)\n\n unless res.actions_rpc_response.nil?\n # handle response\n end"
47+ " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Shared::ActionsRpcRequestDto.new(\n action: 'create_employee',\n path: { \n \" id \" : '123', \n }, \n query: {\n \" param1\" : 'value1',\n \" param2\" : 'value2',\n },\n headers: {\n \" Content-Type\" : 'application/json',\n },\n body: {\n \" data\" : 'example',\n } ,\n )\n\n res = s.actions.rpc_action(request: req)\n\n unless res.actions_rpc_response.nil?\n # handle response\n end"
4848 - target : $["paths"]["/connect_sessions"]["post"]
4949 update :
5050 " x-codeSamples " :
@@ -818,7 +818,7 @@ actions:
818818 " x-codeSamples " :
819819 - " lang " : " ruby"
820820 " label " : " hris_list_employee_employments"
821- " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Operations::HrisListEmployeeEmploymentsRequest.new(\n id: '<id>',\n fields_: 'id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager',\n filter: Models::Operations::HrisListEmployeeEmploymentsQueryParamFilter.new(\n updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),\n ),\n expand: 'groups',\n x_account_id: '<id>',\n )\n\n res = s.hris.list_employee_employments(request: req)\n\n unless res.employments_paginated.nil?\n # handle response\n end"
821+ " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Operations::HrisListEmployeeEmploymentsRequest.new(\n id: '<id>',\n fields_: 'id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager,groups ',\n filter: Models::Operations::HrisListEmployeeEmploymentsQueryParamFilter.new(\n updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),\n ),\n expand: 'groups',\n x_account_id: '<id>',\n )\n\n res = s.hris.list_employee_employments(request: req)\n\n unless res.employments_paginated.nil?\n # handle response\n end"
822822 - target : $["paths"]["/unified/hris/employees/{id}/employments"]["post"]
823823 update :
824824 " x-codeSamples " :
@@ -830,7 +830,7 @@ actions:
830830 " x-codeSamples " :
831831 - " lang " : " ruby"
832832 " label " : " hris_get_employee_employment"
833- " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Operations::HrisGetEmployeeEmploymentRequest.new(\n id: '<id>',\n sub_resource_id: '<id>',\n fields_: 'id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager',\n expand: 'groups',\n x_account_id: '<id>',\n )\n\n res = s.hris.get_employee_employment(request: req)\n\n unless res.employment_result.nil?\n # handle response\n end"
833+ " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Operations::HrisGetEmployeeEmploymentRequest.new(\n id: '<id>',\n sub_resource_id: '<id>',\n fields_: 'id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager,groups ',\n expand: 'groups',\n x_account_id: '<id>',\n )\n\n res = s.hris.get_employee_employment(request: req)\n\n unless res.employment_result.nil?\n # handle response\n end"
834834 - target : $["paths"]["/unified/hris/employees/{id}/employments/{subResourceId}"]["patch"]
835835 update :
836836 " x-codeSamples " :
@@ -843,6 +843,18 @@ actions:
843843 - " lang " : " ruby"
844844 " label " : " hris_invite_employee"
845845 " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n res = s.hris.invite_employee(id: '<id>', x_account_id: '<id>', hris_invite_employee_request_dto: Models::Shared::HrisInviteEmployeeRequestDto.new(\n passthrough: {\n \" other_known_names\" : 'John Doe',\n },\n ))\n\n unless res.invite_employee_result.nil?\n # handle response\n end"
846+ - target : $["paths"]["/unified/hris/employees/{id}/shifts"]["get"]
847+ update :
848+ " x-codeSamples " :
849+ - " lang " : " ruby"
850+ " label " : " hris_list_employee_shifts"
851+ " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Operations::HrisListEmployeeShiftsRequest.new(\n id: '<id>',\n filter: Models::Operations::HrisListEmployeeShiftsQueryParamFilter.new(\n updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),\n ),\n x_account_id: '<id>',\n )\n\n res = s.hris.list_employee_shifts(request: req)\n\n unless res.hris_shifts_paginated.nil?\n # handle response\n end"
852+ - target : $["paths"]["/unified/hris/employees/{id}/shifts/{subResourceId}"]["get"]
853+ update :
854+ " x-codeSamples " :
855+ - " lang " : " ruby"
856+ " label " : " hris_get_employee_shift"
857+ " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Operations::HrisGetEmployeeShiftRequest.new(\n id: '<id>',\n sub_resource_id: '<id>',\n x_account_id: '<id>',\n )\n\n res = s.hris.get_employee_shift(request: req)\n\n unless res.hris_shift_result.nil?\n # handle response\n end"
846858 - target : $["paths"]["/unified/hris/employees/{id}/skills"]["get"]
847859 update :
848860 " x-codeSamples " :
@@ -884,7 +896,7 @@ actions:
884896 " x-codeSamples " :
885897 - " lang " : " ruby"
886898 " label " : " hris_list_employee_time_off_requests"
887- " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Operations::HrisListEmployeeTimeOffRequestsRequest.new(\n 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,time_off_policy_id,remote_time_off_policy_id,reason,comment,duration,created_at,updated_at,policy',\n filter: Models::Operations::HrisListEmployeeTimeOffRequestsQueryParamFilter.new(\n updated_after: DateTime.iso8601('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_requests(request: req)\n\n unless res.time_off_paginated.nil?\n # handle response\n end"
899+ " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Operations::HrisListEmployeeTimeOffRequestsRequest.new(\n 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,time_off_policy_id,remote_time_off_policy_id,reason,comment,duration,created_at,updated_at,policy',\n filter: Models::Operations::HrisListEmployeeTimeOffRequestsQueryParamFilter.new(\n updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),\n start_date: DateTime.iso8601('2020-01-01T00:00:00.000Z'), \n end_date: DateTime.iso8601('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_requests(request: req)\n\n unless res.time_off_paginated.nil?\n # handle response\n end"
888900 - target : $["paths"]["/unified/hris/employees/{id}/time_off"]["post"]
889901 update :
890902 " x-codeSamples " :
@@ -956,13 +968,13 @@ actions:
956968 " x-codeSamples " :
957969 - " lang " : " ruby"
958970 " label " : " hris_list_employments"
959- " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Operations::HrisListEmploymentsRequest.new(\n fields_: 'id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager',\n filter: Models::Operations::HrisListEmploymentsQueryParamFilter.new(\n updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),\n ),\n expand: 'groups',\n x_account_id: '<id>',\n )\n\n res = s.hris.list_employments(request: req)\n\n unless res.employments_paginated.nil?\n # handle response\n end"
971+ " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Operations::HrisListEmploymentsRequest.new(\n fields_: 'id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager,groups ',\n filter: Models::Operations::HrisListEmploymentsQueryParamFilter.new(\n updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),\n ),\n expand: 'groups',\n x_account_id: '<id>',\n )\n\n res = s.hris.list_employments(request: req)\n\n unless res.employments_paginated.nil?\n # handle response\n end"
960972 - target : $["paths"]["/unified/hris/employments/{id}"]["get"]
961973 update :
962974 " x-codeSamples " :
963975 - " lang " : " ruby"
964976 " label " : " hris_get_employment"
965- " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Operations::HrisGetEmploymentRequest.new(\n id: '<id>',\n fields_: 'id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager',\n expand: 'groups',\n x_account_id: '<id>',\n )\n\n res = s.hris.get_employment(request: req)\n\n unless res.employment_result.nil?\n # handle response\n end"
977+ " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Operations::HrisGetEmploymentRequest.new(\n id: '<id>',\n fields_: 'id,remote_id,employee_id,remote_employee_id,job_title,pay_rate,pay_period,pay_frequency,pay_currency,effective_date,end_date,employment_type,employment_contract_type,type,contract_type,change_reason,grade,work_time,payroll_code,fte,created_at,updated_at,start_date,active,department,team,cost_center,cost_centers,division,job,manager,groups ',\n expand: 'groups',\n x_account_id: '<id>',\n )\n\n res = s.hris.get_employment(request: req)\n\n unless res.employment_result.nil?\n # handle response\n end"
966978 - target : $["paths"]["/unified/hris/groups"]["get"]
967979 update :
968980 " x-codeSamples " :
@@ -1064,7 +1076,7 @@ actions:
10641076 " x-codeSamples " :
10651077 - " lang " : " ruby"
10661078 " label " : " hris_list_positions"
1067- " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Operations::HrisListPositionsRequest.new(\n filter: Models::Operations::HrisListPositionsQueryParamFilter.new(\n updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),\n ),\n status: Models::Operations::Status ::OPEN,\n x_account_id: '<id>',\n )\n\n res = s.hris.list_positions(request: req)\n\n unless res.positions_paginated.nil?\n # handle response\n end"
1079+ " source " : " require 'stackone_client'\n\n Models = ::StackOne::Models\n s = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\n req = Models::Operations::HrisListPositionsRequest.new(\n filter: Models::Operations::HrisListPositionsQueryParamFilter.new(\n updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),\n ),\n status: Models::Operations::QueryParamStatus ::OPEN,\n x_account_id: '<id>',\n )\n\n res = s.hris.list_positions(request: req)\n\n unless res.positions_paginated.nil?\n # handle response\n end"
10681080 - target : $["paths"]["/unified/hris/positions/{id}"]["get"]
10691081 update :
10701082 " x-codeSamples " :
0 commit comments