stackone_client 0.11.1 → 0.15.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/hris.rb +782 -230
- data/lib/stack_one/models/operations/hris_get_employee_task_request.rb +57 -0
- data/lib/stack_one/models/operations/hris_get_employee_task_response.rb +49 -0
- data/lib/stack_one/models/operations/hris_list_employee_tasks_queryparam_filter.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employee_tasks_request.rb +77 -0
- data/lib/stack_one/models/operations/hris_list_employee_tasks_response.rb +49 -0
- data/lib/stack_one/models/operations.rb +5 -0
- data/lib/stack_one/models/shared/accountaddress_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/answer_value.rb +2 -0
- data/lib/stack_one/models/shared/assessmentresult_value.rb +1 -0
- data/lib/stack_one/models/shared/assignment_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/assignment_value.rb +1 -0
- data/lib/stack_one/models/shared/atscreatenotesrequestdto_value.rb +1 -0
- data/lib/stack_one/models/shared/atsupdatebackgroundcheckresultrequestdto_value.rb +1 -0
- data/lib/stack_one/models/shared/atsupdatecandidatesassessmentsresultsrequestdto_value.rb +1 -0
- data/lib/stack_one/models/shared/atsupdatejobrequestdto_confidential.rb +1 -0
- data/lib/stack_one/models/shared/atsupdatenotesrequestdto_value.rb +1 -0
- data/lib/stack_one/models/shared/backgroundcheckresult_value.rb +1 -0
- data/lib/stack_one/models/shared/campaign_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/campaign_value.rb +1 -0
- data/lib/stack_one/models/shared/category_schemas_level_value.rb +1 -0
- data/lib/stack_one/models/shared/category_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/category_value.rb +1 -0
- data/lib/stack_one/models/shared/completion_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/completion_value.rb +1 -0
- data/lib/stack_one/models/shared/confidential.rb +1 -0
- data/lib/stack_one/models/shared/contentblock_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/contentblock_value.rb +1 -0
- data/lib/stack_one/models/shared/createanswer_value.rb +2 -0
- data/lib/stack_one/models/shared/createcategoriesapimodel_schemas_level_value.rb +1 -0
- data/lib/stack_one/models/shared/createcategoriesapimodel_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/createcategoriesapimodel_value.rb +1 -0
- data/lib/stack_one/models/shared/createemploymentapimodel.rb +10 -4
- data/lib/stack_one/models/shared/createskillsapimodel_schemas_level_value.rb +1 -0
- data/lib/stack_one/models/shared/createskillsapimodel_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/createskillsapimodel_value.rb +1 -0
- data/lib/stack_one/models/shared/customfielddefinition_value.rb +1 -0
- data/lib/stack_one/models/shared/employment.rb +6 -2
- data/lib/stack_one/models/shared/entityskills_schemas_minimum_proficiency_value.rb +1 -0
- data/lib/stack_one/models/shared/entityskills_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/entityskills_value.rb +1 -0
- data/lib/stack_one/models/shared/entityskillscreaterequestdto_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/entityskillscreaterequestdto_value.rb +1 -0
- data/lib/stack_one/models/shared/file.rb +75 -0
- data/lib/stack_one/models/shared/file_4.rb +28 -0
- data/lib/stack_one/models/shared/file_category.rb +37 -0
- data/lib/stack_one/models/shared/file_file_format.rb +37 -0
- data/lib/stack_one/models/shared/file_schemas_4.rb +28 -0
- data/lib/stack_one/models/shared/file_schemas_source_value.rb +28 -0
- data/lib/stack_one/models/shared/file_source_value.rb +28 -0
- data/lib/stack_one/models/shared/file_value.rb +1229 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment.rb +11 -3
- data/lib/stack_one/models/shared/hriscreateemploymentrequestdto.rb +10 -4
- data/lib/stack_one/models/shared/hriscreateworkeligibilityrequestdto_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/hrisdepartment_value.rb +1 -0
- data/lib/stack_one/models/shared/hrisdocumentsuploadrequestdto_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/hristeam_value.rb +1 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment.rb +11 -3
- data/lib/stack_one/models/shared/internal.rb +1 -0
- data/lib/stack_one/models/shared/job_confidential.rb +1 -0
- data/lib/stack_one/models/shared/jobpostingcontentsection_value.rb +1 -0
- data/lib/stack_one/models/shared/languageenum_value.rb +1 -0
- data/lib/stack_one/models/shared/lmscreateassignmentrequestdto_value.rb +1 -0
- data/lib/stack_one/models/shared/lmscreatecompletionrequestdto_value.rb +1 -0
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto_value.rb +1 -0
- data/lib/stack_one/models/shared/localizationmodel.rb +6 -2
- data/lib/stack_one/models/shared/localizationmodel_value.rb +1 -0
- data/lib/stack_one/models/shared/marketingcreatecontentblocksrequestdto_value.rb +1 -0
- data/lib/stack_one/models/shared/note_value.rb +1 -0
- data/lib/stack_one/models/shared/phonenumber_type.rb +1 -0
- data/lib/stack_one/models/shared/question_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/question_value.rb +2 -0
- data/lib/stack_one/models/shared/skills_schemas_level_value.rb +1 -0
- data/lib/stack_one/models/shared/skills_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/skills_value.rb +1 -0
- data/lib/stack_one/models/shared/task.rb +105 -0
- data/lib/stack_one/models/shared/task_4.rb +28 -0
- data/lib/stack_one/models/shared/task_schemas_4.rb +28 -0
- data/lib/stack_one/models/shared/task_schemas_source_value.rb +28 -0
- data/lib/stack_one/models/shared/task_schemas_value.rb +24 -0
- data/lib/stack_one/models/shared/task_source_value.rb +28 -0
- data/lib/stack_one/models/shared/task_status.rb +37 -0
- data/lib/stack_one/models/shared/task_type.rb +37 -0
- data/lib/stack_one/models/shared/task_value.rb +24 -0
- data/lib/stack_one/models/shared/taskcommentapimodel.rb +41 -0
- data/lib/stack_one/models/shared/taskresult.rb +37 -0
- data/lib/stack_one/models/shared/taskspaginated.rb +41 -0
- data/lib/stack_one/models/shared/timeoff_schemas_policy_value.rb +1 -0
- data/lib/stack_one/models/shared/timeoffbalances_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared/timeoffbalances_value.rb +1 -0
- data/lib/stack_one/models/shared/timeoffpolicies_value.rb +1 -0
- data/lib/stack_one/models/shared/unifieduploadrequestdto_value.rb +1 -0
- data/lib/stack_one/models/shared/workeligibility_schemas_value.rb +1 -0
- data/lib/stack_one/models/shared.rb +20 -0
- data/lib/stack_one/sdkconfiguration.rb +2 -2
- metadata +27 -2
data/lib/stack_one/hris.rb
CHANGED
@@ -5383,19 +5383,19 @@ module StackOne
|
|
5383
5383
|
end
|
5384
5384
|
|
5385
5385
|
|
5386
|
-
sig { params(request: T.nilable(Models::Operations::
|
5387
|
-
def
|
5388
|
-
#
|
5386
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetEmployeeTaskRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetEmployeeTaskResponse) }
|
5387
|
+
def get_employee_task(request, retries = nil, timeout_ms = nil)
|
5388
|
+
# get_employee_task - Get Employee Task
|
5389
5389
|
url, params = @sdk_configuration.get_server_details
|
5390
5390
|
base_url = Utils.template_url(url, params)
|
5391
5391
|
url = Utils.generate_url(
|
5392
|
-
Models::Operations::
|
5392
|
+
Models::Operations::HrisGetEmployeeTaskRequest,
|
5393
5393
|
base_url,
|
5394
|
-
'/unified/hris/employees/{id}/
|
5394
|
+
'/unified/hris/employees/{id}/tasks/{subResourceId}',
|
5395
5395
|
request
|
5396
5396
|
)
|
5397
5397
|
headers = Utils.get_headers(request)
|
5398
|
-
query_params = Utils.get_query_params(Models::Operations::
|
5398
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetEmployeeTaskRequest, request)
|
5399
5399
|
headers['Accept'] = 'application/json'
|
5400
5400
|
headers['user-agent'] = @sdk_configuration.user_agent
|
5401
5401
|
retries ||= @sdk_configuration.retry_config
|
@@ -5423,7 +5423,7 @@ module StackOne
|
|
5423
5423
|
hook_ctx = SDKHooks::HookContext.new(
|
5424
5424
|
base_url: base_url,
|
5425
5425
|
oauth2_scopes: [],
|
5426
|
-
operation_id: '
|
5426
|
+
operation_id: 'hris_get_employee_task',
|
5427
5427
|
security_source: @sdk_configuration.security_source
|
5428
5428
|
)
|
5429
5429
|
|
@@ -5480,12 +5480,12 @@ module StackOne
|
|
5480
5480
|
),
|
5481
5481
|
response: http_response
|
5482
5482
|
)
|
5483
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
5484
|
-
response = Models::Operations::
|
5483
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::TaskResult)
|
5484
|
+
response = Models::Operations::HrisGetEmployeeTaskResponse.new(
|
5485
5485
|
status_code: http_response.status,
|
5486
5486
|
content_type: content_type,
|
5487
5487
|
raw_response: http_response,
|
5488
|
-
|
5488
|
+
task_result: obj
|
5489
5489
|
)
|
5490
5490
|
|
5491
5491
|
return response
|
@@ -5659,19 +5659,19 @@ module StackOne
|
|
5659
5659
|
end
|
5660
5660
|
|
5661
5661
|
|
5662
|
-
sig { params(request: T.nilable(Models::Operations::
|
5663
|
-
def
|
5664
|
-
#
|
5662
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetEmployeeTimeOffBalanceRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetEmployeeTimeOffBalanceResponse) }
|
5663
|
+
def get_employee_time_off_balance(request, retries = nil, timeout_ms = nil)
|
5664
|
+
# get_employee_time_off_balance - Get Employee Time Off Balance
|
5665
5665
|
url, params = @sdk_configuration.get_server_details
|
5666
5666
|
base_url = Utils.template_url(url, params)
|
5667
5667
|
url = Utils.generate_url(
|
5668
|
-
Models::Operations::
|
5668
|
+
Models::Operations::HrisGetEmployeeTimeOffBalanceRequest,
|
5669
5669
|
base_url,
|
5670
|
-
'/unified/hris/employees/{id}/
|
5670
|
+
'/unified/hris/employees/{id}/time_off_balances/{subResourceId}',
|
5671
5671
|
request
|
5672
5672
|
)
|
5673
5673
|
headers = Utils.get_headers(request)
|
5674
|
-
query_params = Utils.get_query_params(Models::Operations::
|
5674
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetEmployeeTimeOffBalanceRequest, request)
|
5675
5675
|
headers['Accept'] = 'application/json'
|
5676
5676
|
headers['user-agent'] = @sdk_configuration.user_agent
|
5677
5677
|
retries ||= @sdk_configuration.retry_config
|
@@ -5699,7 +5699,7 @@ module StackOne
|
|
5699
5699
|
hook_ctx = SDKHooks::HookContext.new(
|
5700
5700
|
base_url: base_url,
|
5701
5701
|
oauth2_scopes: [],
|
5702
|
-
operation_id: '
|
5702
|
+
operation_id: 'hris_get_employee_time_off_balance',
|
5703
5703
|
security_source: @sdk_configuration.security_source
|
5704
5704
|
)
|
5705
5705
|
|
@@ -5756,12 +5756,12 @@ module StackOne
|
|
5756
5756
|
),
|
5757
5757
|
response: http_response
|
5758
5758
|
)
|
5759
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
5760
|
-
response = Models::Operations::
|
5759
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::TimeOffBalanceResult)
|
5760
|
+
response = Models::Operations::HrisGetEmployeeTimeOffBalanceResponse.new(
|
5761
5761
|
status_code: http_response.status,
|
5762
5762
|
content_type: content_type,
|
5763
5763
|
raw_response: http_response,
|
5764
|
-
|
5764
|
+
time_off_balance_result: obj
|
5765
5765
|
)
|
5766
5766
|
|
5767
5767
|
return response
|
@@ -5935,19 +5935,19 @@ module StackOne
|
|
5935
5935
|
end
|
5936
5936
|
|
5937
5937
|
|
5938
|
-
sig { params(request: T.nilable(Models::Operations::
|
5939
|
-
def
|
5940
|
-
#
|
5938
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetEmployeesTimeOffRequestRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetEmployeesTimeOffRequestResponse) }
|
5939
|
+
def get_employees_time_off_request(request, retries = nil, timeout_ms = nil)
|
5940
|
+
# get_employees_time_off_request - Get Employees Time Off Request
|
5941
5941
|
url, params = @sdk_configuration.get_server_details
|
5942
5942
|
base_url = Utils.template_url(url, params)
|
5943
5943
|
url = Utils.generate_url(
|
5944
|
-
Models::Operations::
|
5944
|
+
Models::Operations::HrisGetEmployeesTimeOffRequestRequest,
|
5945
5945
|
base_url,
|
5946
|
-
'/unified/hris/employees/{id}/
|
5946
|
+
'/unified/hris/employees/{id}/time_off/{subResourceId}',
|
5947
5947
|
request
|
5948
5948
|
)
|
5949
5949
|
headers = Utils.get_headers(request)
|
5950
|
-
query_params = Utils.get_query_params(Models::Operations::
|
5950
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetEmployeesTimeOffRequestRequest, request)
|
5951
5951
|
headers['Accept'] = 'application/json'
|
5952
5952
|
headers['user-agent'] = @sdk_configuration.user_agent
|
5953
5953
|
retries ||= @sdk_configuration.retry_config
|
@@ -5975,7 +5975,7 @@ module StackOne
|
|
5975
5975
|
hook_ctx = SDKHooks::HookContext.new(
|
5976
5976
|
base_url: base_url,
|
5977
5977
|
oauth2_scopes: [],
|
5978
|
-
operation_id: '
|
5978
|
+
operation_id: 'hris_get_employees_time_off_request',
|
5979
5979
|
security_source: @sdk_configuration.security_source
|
5980
5980
|
)
|
5981
5981
|
|
@@ -6032,12 +6032,12 @@ module StackOne
|
|
6032
6032
|
),
|
6033
6033
|
response: http_response
|
6034
6034
|
)
|
6035
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
6036
|
-
response = Models::Operations::
|
6035
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::TimeOffResult)
|
6036
|
+
response = Models::Operations::HrisGetEmployeesTimeOffRequestResponse.new(
|
6037
6037
|
status_code: http_response.status,
|
6038
6038
|
content_type: content_type,
|
6039
6039
|
raw_response: http_response,
|
6040
|
-
|
6040
|
+
time_off_result: obj
|
6041
6041
|
)
|
6042
6042
|
|
6043
6043
|
return response
|
@@ -6211,19 +6211,19 @@ module StackOne
|
|
6211
6211
|
end
|
6212
6212
|
|
6213
6213
|
|
6214
|
-
sig { params(request: T.nilable(Models::Operations::
|
6215
|
-
def
|
6216
|
-
#
|
6214
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetEmployeesWorkEligibilityRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetEmployeesWorkEligibilityResponse) }
|
6215
|
+
def get_employees_work_eligibility(request, retries = nil, timeout_ms = nil)
|
6216
|
+
# get_employees_work_eligibility - Get Employees Work Eligibility
|
6217
6217
|
url, params = @sdk_configuration.get_server_details
|
6218
6218
|
base_url = Utils.template_url(url, params)
|
6219
6219
|
url = Utils.generate_url(
|
6220
|
-
Models::Operations::
|
6220
|
+
Models::Operations::HrisGetEmployeesWorkEligibilityRequest,
|
6221
6221
|
base_url,
|
6222
|
-
'/unified/hris/
|
6222
|
+
'/unified/hris/employees/{id}/work_eligibility/{subResourceId}',
|
6223
6223
|
request
|
6224
6224
|
)
|
6225
6225
|
headers = Utils.get_headers(request)
|
6226
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6226
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetEmployeesWorkEligibilityRequest, request)
|
6227
6227
|
headers['Accept'] = 'application/json'
|
6228
6228
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6229
6229
|
retries ||= @sdk_configuration.retry_config
|
@@ -6251,7 +6251,7 @@ module StackOne
|
|
6251
6251
|
hook_ctx = SDKHooks::HookContext.new(
|
6252
6252
|
base_url: base_url,
|
6253
6253
|
oauth2_scopes: [],
|
6254
|
-
operation_id: '
|
6254
|
+
operation_id: 'hris_get_employees_work_eligibility',
|
6255
6255
|
security_source: @sdk_configuration.security_source
|
6256
6256
|
)
|
6257
6257
|
|
@@ -6308,12 +6308,12 @@ module StackOne
|
|
6308
6308
|
),
|
6309
6309
|
response: http_response
|
6310
6310
|
)
|
6311
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
6312
|
-
response = Models::Operations::
|
6311
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::WorkEligibilityResult)
|
6312
|
+
response = Models::Operations::HrisGetEmployeesWorkEligibilityResponse.new(
|
6313
6313
|
status_code: http_response.status,
|
6314
6314
|
content_type: content_type,
|
6315
6315
|
raw_response: http_response,
|
6316
|
-
|
6316
|
+
work_eligibility_result: obj
|
6317
6317
|
)
|
6318
6318
|
|
6319
6319
|
return response
|
@@ -6487,19 +6487,19 @@ module StackOne
|
|
6487
6487
|
end
|
6488
6488
|
|
6489
6489
|
|
6490
|
-
sig { params(request: T.nilable(Models::Operations::
|
6491
|
-
def
|
6492
|
-
#
|
6490
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetEmploymentRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetEmploymentResponse) }
|
6491
|
+
def get_employment(request, retries = nil, timeout_ms = nil)
|
6492
|
+
# get_employment - Get Employment
|
6493
6493
|
url, params = @sdk_configuration.get_server_details
|
6494
6494
|
base_url = Utils.template_url(url, params)
|
6495
6495
|
url = Utils.generate_url(
|
6496
|
-
Models::Operations::
|
6496
|
+
Models::Operations::HrisGetEmploymentRequest,
|
6497
6497
|
base_url,
|
6498
|
-
'/unified/hris/
|
6498
|
+
'/unified/hris/employments/{id}',
|
6499
6499
|
request
|
6500
6500
|
)
|
6501
6501
|
headers = Utils.get_headers(request)
|
6502
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6502
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetEmploymentRequest, request)
|
6503
6503
|
headers['Accept'] = 'application/json'
|
6504
6504
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6505
6505
|
retries ||= @sdk_configuration.retry_config
|
@@ -6527,7 +6527,7 @@ module StackOne
|
|
6527
6527
|
hook_ctx = SDKHooks::HookContext.new(
|
6528
6528
|
base_url: base_url,
|
6529
6529
|
oauth2_scopes: [],
|
6530
|
-
operation_id: '
|
6530
|
+
operation_id: 'hris_get_employment',
|
6531
6531
|
security_source: @sdk_configuration.security_source
|
6532
6532
|
)
|
6533
6533
|
|
@@ -6584,12 +6584,12 @@ module StackOne
|
|
6584
6584
|
),
|
6585
6585
|
response: http_response
|
6586
6586
|
)
|
6587
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
6588
|
-
response = Models::Operations::
|
6587
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::EmploymentResult)
|
6588
|
+
response = Models::Operations::HrisGetEmploymentResponse.new(
|
6589
6589
|
status_code: http_response.status,
|
6590
6590
|
content_type: content_type,
|
6591
6591
|
raw_response: http_response,
|
6592
|
-
|
6592
|
+
employment_result: obj
|
6593
6593
|
)
|
6594
6594
|
|
6595
6595
|
return response
|
@@ -6763,19 +6763,19 @@ module StackOne
|
|
6763
6763
|
end
|
6764
6764
|
|
6765
6765
|
|
6766
|
-
sig { params(request: T.nilable(Models::Operations::
|
6767
|
-
def
|
6768
|
-
#
|
6766
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetGroupRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetGroupResponse) }
|
6767
|
+
def get_group(request, retries = nil, timeout_ms = nil)
|
6768
|
+
# get_group - Get Group
|
6769
6769
|
url, params = @sdk_configuration.get_server_details
|
6770
6770
|
base_url = Utils.template_url(url, params)
|
6771
6771
|
url = Utils.generate_url(
|
6772
|
-
Models::Operations::
|
6772
|
+
Models::Operations::HrisGetGroupRequest,
|
6773
6773
|
base_url,
|
6774
|
-
'/unified/hris/
|
6774
|
+
'/unified/hris/groups/{id}',
|
6775
6775
|
request
|
6776
6776
|
)
|
6777
6777
|
headers = Utils.get_headers(request)
|
6778
|
-
query_params = Utils.get_query_params(Models::Operations::
|
6778
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetGroupRequest, request)
|
6779
6779
|
headers['Accept'] = 'application/json'
|
6780
6780
|
headers['user-agent'] = @sdk_configuration.user_agent
|
6781
6781
|
retries ||= @sdk_configuration.retry_config
|
@@ -6803,7 +6803,7 @@ module StackOne
|
|
6803
6803
|
hook_ctx = SDKHooks::HookContext.new(
|
6804
6804
|
base_url: base_url,
|
6805
6805
|
oauth2_scopes: [],
|
6806
|
-
operation_id: '
|
6806
|
+
operation_id: 'hris_get_group',
|
6807
6807
|
security_source: @sdk_configuration.security_source
|
6808
6808
|
)
|
6809
6809
|
|
@@ -6860,12 +6860,12 @@ module StackOne
|
|
6860
6860
|
),
|
6861
6861
|
response: http_response
|
6862
6862
|
)
|
6863
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
6864
|
-
response = Models::Operations::
|
6863
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::HRISGroupsResult)
|
6864
|
+
response = Models::Operations::HrisGetGroupResponse.new(
|
6865
6865
|
status_code: http_response.status,
|
6866
6866
|
content_type: content_type,
|
6867
6867
|
raw_response: http_response,
|
6868
|
-
|
6868
|
+
hris_groups_result: obj
|
6869
6869
|
)
|
6870
6870
|
|
6871
6871
|
return response
|
@@ -7039,19 +7039,19 @@ module StackOne
|
|
7039
7039
|
end
|
7040
7040
|
|
7041
7041
|
|
7042
|
-
sig { params(request: T.nilable(Models::Operations::
|
7043
|
-
def
|
7044
|
-
#
|
7042
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetJobRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetJobResponse) }
|
7043
|
+
def get_job(request, retries = nil, timeout_ms = nil)
|
7044
|
+
# get_job - Get Job
|
7045
7045
|
url, params = @sdk_configuration.get_server_details
|
7046
7046
|
base_url = Utils.template_url(url, params)
|
7047
7047
|
url = Utils.generate_url(
|
7048
|
-
Models::Operations::
|
7048
|
+
Models::Operations::HrisGetJobRequest,
|
7049
7049
|
base_url,
|
7050
|
-
'/unified/hris/
|
7050
|
+
'/unified/hris/jobs/{id}',
|
7051
7051
|
request
|
7052
7052
|
)
|
7053
7053
|
headers = Utils.get_headers(request)
|
7054
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7054
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetJobRequest, request)
|
7055
7055
|
headers['Accept'] = 'application/json'
|
7056
7056
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7057
7057
|
retries ||= @sdk_configuration.retry_config
|
@@ -7079,7 +7079,7 @@ module StackOne
|
|
7079
7079
|
hook_ctx = SDKHooks::HookContext.new(
|
7080
7080
|
base_url: base_url,
|
7081
7081
|
oauth2_scopes: [],
|
7082
|
-
operation_id: '
|
7082
|
+
operation_id: 'hris_get_job',
|
7083
7083
|
security_source: @sdk_configuration.security_source
|
7084
7084
|
)
|
7085
7085
|
|
@@ -7136,12 +7136,12 @@ module StackOne
|
|
7136
7136
|
),
|
7137
7137
|
response: http_response
|
7138
7138
|
)
|
7139
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
7140
|
-
response = Models::Operations::
|
7139
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::JobResult)
|
7140
|
+
response = Models::Operations::HrisGetJobResponse.new(
|
7141
7141
|
status_code: http_response.status,
|
7142
7142
|
content_type: content_type,
|
7143
7143
|
raw_response: http_response,
|
7144
|
-
|
7144
|
+
job_result: obj
|
7145
7145
|
)
|
7146
7146
|
|
7147
7147
|
return response
|
@@ -7315,19 +7315,19 @@ module StackOne
|
|
7315
7315
|
end
|
7316
7316
|
|
7317
7317
|
|
7318
|
-
sig { params(request: T.nilable(Models::Operations::
|
7319
|
-
def
|
7320
|
-
#
|
7318
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetLocationRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetLocationResponse) }
|
7319
|
+
def get_location(request, retries = nil, timeout_ms = nil)
|
7320
|
+
# get_location - Get Work Location
|
7321
7321
|
url, params = @sdk_configuration.get_server_details
|
7322
7322
|
base_url = Utils.template_url(url, params)
|
7323
7323
|
url = Utils.generate_url(
|
7324
|
-
Models::Operations::
|
7324
|
+
Models::Operations::HrisGetLocationRequest,
|
7325
7325
|
base_url,
|
7326
|
-
'/unified/hris/
|
7326
|
+
'/unified/hris/locations/{id}',
|
7327
7327
|
request
|
7328
7328
|
)
|
7329
7329
|
headers = Utils.get_headers(request)
|
7330
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7330
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetLocationRequest, request)
|
7331
7331
|
headers['Accept'] = 'application/json'
|
7332
7332
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7333
7333
|
retries ||= @sdk_configuration.retry_config
|
@@ -7355,7 +7355,7 @@ module StackOne
|
|
7355
7355
|
hook_ctx = SDKHooks::HookContext.new(
|
7356
7356
|
base_url: base_url,
|
7357
7357
|
oauth2_scopes: [],
|
7358
|
-
operation_id: '
|
7358
|
+
operation_id: 'hris_get_location',
|
7359
7359
|
security_source: @sdk_configuration.security_source
|
7360
7360
|
)
|
7361
7361
|
|
@@ -7412,12 +7412,12 @@ module StackOne
|
|
7412
7412
|
),
|
7413
7413
|
response: http_response
|
7414
7414
|
)
|
7415
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
7416
|
-
response = Models::Operations::
|
7415
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::HRISLocationResult)
|
7416
|
+
response = Models::Operations::HrisGetLocationResponse.new(
|
7417
7417
|
status_code: http_response.status,
|
7418
7418
|
content_type: content_type,
|
7419
7419
|
raw_response: http_response,
|
7420
|
-
|
7420
|
+
hris_location_result: obj
|
7421
7421
|
)
|
7422
7422
|
|
7423
7423
|
return response
|
@@ -7591,19 +7591,19 @@ module StackOne
|
|
7591
7591
|
end
|
7592
7592
|
|
7593
7593
|
|
7594
|
-
sig { params(request: T.nilable(Models::Operations::
|
7595
|
-
def
|
7596
|
-
#
|
7594
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetTeamGroupRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTeamGroupResponse) }
|
7595
|
+
def get_team_group(request, retries = nil, timeout_ms = nil)
|
7596
|
+
# get_team_group - Get Team Group
|
7597
7597
|
url, params = @sdk_configuration.get_server_details
|
7598
7598
|
base_url = Utils.template_url(url, params)
|
7599
7599
|
url = Utils.generate_url(
|
7600
|
-
Models::Operations::
|
7600
|
+
Models::Operations::HrisGetTeamGroupRequest,
|
7601
7601
|
base_url,
|
7602
|
-
'/unified/hris/
|
7602
|
+
'/unified/hris/groups/teams/{id}',
|
7603
7603
|
request
|
7604
7604
|
)
|
7605
7605
|
headers = Utils.get_headers(request)
|
7606
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7606
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTeamGroupRequest, request)
|
7607
7607
|
headers['Accept'] = 'application/json'
|
7608
7608
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7609
7609
|
retries ||= @sdk_configuration.retry_config
|
@@ -7631,7 +7631,7 @@ module StackOne
|
|
7631
7631
|
hook_ctx = SDKHooks::HookContext.new(
|
7632
7632
|
base_url: base_url,
|
7633
7633
|
oauth2_scopes: [],
|
7634
|
-
operation_id: '
|
7634
|
+
operation_id: 'hris_get_team_group',
|
7635
7635
|
security_source: @sdk_configuration.security_source
|
7636
7636
|
)
|
7637
7637
|
|
@@ -7688,12 +7688,12 @@ module StackOne
|
|
7688
7688
|
),
|
7689
7689
|
response: http_response
|
7690
7690
|
)
|
7691
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
7692
|
-
response = Models::Operations::
|
7691
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::HRISTeamsResult)
|
7692
|
+
response = Models::Operations::HrisGetTeamGroupResponse.new(
|
7693
7693
|
status_code: http_response.status,
|
7694
7694
|
content_type: content_type,
|
7695
7695
|
raw_response: http_response,
|
7696
|
-
|
7696
|
+
hris_teams_result: obj
|
7697
7697
|
)
|
7698
7698
|
|
7699
7699
|
return response
|
@@ -7867,19 +7867,19 @@ module StackOne
|
|
7867
7867
|
end
|
7868
7868
|
|
7869
7869
|
|
7870
|
-
sig { params(request: T.nilable(Models::Operations::
|
7871
|
-
def
|
7872
|
-
#
|
7870
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetTimeEntriesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTimeEntriesResponse) }
|
7871
|
+
def get_time_entries(request, retries = nil, timeout_ms = nil)
|
7872
|
+
# get_time_entries - Get Time Entry
|
7873
7873
|
url, params = @sdk_configuration.get_server_details
|
7874
7874
|
base_url = Utils.template_url(url, params)
|
7875
7875
|
url = Utils.generate_url(
|
7876
|
-
Models::Operations::
|
7876
|
+
Models::Operations::HrisGetTimeEntriesRequest,
|
7877
7877
|
base_url,
|
7878
|
-
'/unified/hris/
|
7878
|
+
'/unified/hris/time_entries/{id}',
|
7879
7879
|
request
|
7880
7880
|
)
|
7881
7881
|
headers = Utils.get_headers(request)
|
7882
|
-
query_params = Utils.get_query_params(Models::Operations::
|
7882
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTimeEntriesRequest, request)
|
7883
7883
|
headers['Accept'] = 'application/json'
|
7884
7884
|
headers['user-agent'] = @sdk_configuration.user_agent
|
7885
7885
|
retries ||= @sdk_configuration.retry_config
|
@@ -7907,7 +7907,7 @@ module StackOne
|
|
7907
7907
|
hook_ctx = SDKHooks::HookContext.new(
|
7908
7908
|
base_url: base_url,
|
7909
7909
|
oauth2_scopes: [],
|
7910
|
-
operation_id: '
|
7910
|
+
operation_id: 'hris_get_time_entries',
|
7911
7911
|
security_source: @sdk_configuration.security_source
|
7912
7912
|
)
|
7913
7913
|
|
@@ -7964,12 +7964,12 @@ module StackOne
|
|
7964
7964
|
),
|
7965
7965
|
response: http_response
|
7966
7966
|
)
|
7967
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
7968
|
-
response = Models::Operations::
|
7967
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::TimeEntriesResult)
|
7968
|
+
response = Models::Operations::HrisGetTimeEntriesResponse.new(
|
7969
7969
|
status_code: http_response.status,
|
7970
7970
|
content_type: content_type,
|
7971
7971
|
raw_response: http_response,
|
7972
|
-
|
7972
|
+
time_entries_result: obj
|
7973
7973
|
)
|
7974
7974
|
|
7975
7975
|
return response
|
@@ -8143,19 +8143,19 @@ module StackOne
|
|
8143
8143
|
end
|
8144
8144
|
|
8145
8145
|
|
8146
|
-
sig { params(request: T.nilable(Models::Operations::
|
8147
|
-
def
|
8148
|
-
#
|
8146
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetTimeOffPolicyRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTimeOffPolicyResponse) }
|
8147
|
+
def get_time_off_policy(request, retries = nil, timeout_ms = nil)
|
8148
|
+
# get_time_off_policy - Get Time Off Policy
|
8149
8149
|
url, params = @sdk_configuration.get_server_details
|
8150
8150
|
base_url = Utils.template_url(url, params)
|
8151
8151
|
url = Utils.generate_url(
|
8152
|
-
Models::Operations::
|
8152
|
+
Models::Operations::HrisGetTimeOffPolicyRequest,
|
8153
8153
|
base_url,
|
8154
|
-
'/unified/hris/
|
8154
|
+
'/unified/hris/time_off_policies/{id}',
|
8155
8155
|
request
|
8156
8156
|
)
|
8157
8157
|
headers = Utils.get_headers(request)
|
8158
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8158
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTimeOffPolicyRequest, request)
|
8159
8159
|
headers['Accept'] = 'application/json'
|
8160
8160
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8161
8161
|
retries ||= @sdk_configuration.retry_config
|
@@ -8183,7 +8183,7 @@ module StackOne
|
|
8183
8183
|
hook_ctx = SDKHooks::HookContext.new(
|
8184
8184
|
base_url: base_url,
|
8185
8185
|
oauth2_scopes: [],
|
8186
|
-
operation_id: '
|
8186
|
+
operation_id: 'hris_get_time_off_policy',
|
8187
8187
|
security_source: @sdk_configuration.security_source
|
8188
8188
|
)
|
8189
8189
|
|
@@ -8240,12 +8240,12 @@ module StackOne
|
|
8240
8240
|
),
|
8241
8241
|
response: http_response
|
8242
8242
|
)
|
8243
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
8244
|
-
response = Models::Operations::
|
8243
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::TimeOffPolicyResult)
|
8244
|
+
response = Models::Operations::HrisGetTimeOffPolicyResponse.new(
|
8245
8245
|
status_code: http_response.status,
|
8246
8246
|
content_type: content_type,
|
8247
8247
|
raw_response: http_response,
|
8248
|
-
|
8248
|
+
time_off_policy_result: obj
|
8249
8249
|
)
|
8250
8250
|
|
8251
8251
|
return response
|
@@ -8419,21 +8419,19 @@ module StackOne
|
|
8419
8419
|
end
|
8420
8420
|
|
8421
8421
|
|
8422
|
-
sig { params(request: T.nilable(Models::Operations::
|
8423
|
-
def
|
8424
|
-
#
|
8425
|
-
#
|
8426
|
-
# @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
8422
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetTimeOffRequestRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTimeOffRequestResponse) }
|
8423
|
+
def get_time_off_request(request, retries = nil, timeout_ms = nil)
|
8424
|
+
# get_time_off_request - Get time off request
|
8427
8425
|
url, params = @sdk_configuration.get_server_details
|
8428
8426
|
base_url = Utils.template_url(url, params)
|
8429
8427
|
url = Utils.generate_url(
|
8430
|
-
Models::Operations::
|
8428
|
+
Models::Operations::HrisGetTimeOffRequestRequest,
|
8431
8429
|
base_url,
|
8432
|
-
'/unified/hris/
|
8430
|
+
'/unified/hris/time_off/{id}',
|
8433
8431
|
request
|
8434
8432
|
)
|
8435
8433
|
headers = Utils.get_headers(request)
|
8436
|
-
query_params = Utils.get_query_params(Models::Operations::
|
8434
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTimeOffRequestRequest, request)
|
8437
8435
|
headers['Accept'] = 'application/json'
|
8438
8436
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8439
8437
|
retries ||= @sdk_configuration.retry_config
|
@@ -8461,7 +8459,7 @@ module StackOne
|
|
8461
8459
|
hook_ctx = SDKHooks::HookContext.new(
|
8462
8460
|
base_url: base_url,
|
8463
8461
|
oauth2_scopes: [],
|
8464
|
-
operation_id: '
|
8462
|
+
operation_id: 'hris_get_time_off_request',
|
8465
8463
|
security_source: @sdk_configuration.security_source
|
8466
8464
|
)
|
8467
8465
|
|
@@ -8518,12 +8516,12 @@ module StackOne
|
|
8518
8516
|
),
|
8519
8517
|
response: http_response
|
8520
8518
|
)
|
8521
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
8522
|
-
response = Models::Operations::
|
8519
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::TimeOffResult)
|
8520
|
+
response = Models::Operations::HrisGetTimeOffRequestResponse.new(
|
8523
8521
|
status_code: http_response.status,
|
8524
8522
|
content_type: content_type,
|
8525
8523
|
raw_response: http_response,
|
8526
|
-
|
8524
|
+
time_off_result: obj
|
8527
8525
|
)
|
8528
8526
|
|
8529
8527
|
return response
|
@@ -8697,35 +8695,584 @@ module StackOne
|
|
8697
8695
|
end
|
8698
8696
|
|
8699
8697
|
|
8700
|
-
sig { params(
|
8701
|
-
def
|
8702
|
-
#
|
8703
|
-
|
8704
|
-
|
8705
|
-
hris_invite_employee_request_dto: hris_invite_employee_request_dto,
|
8706
|
-
id: id,
|
8707
|
-
x_account_id: x_account_id
|
8708
|
-
)
|
8698
|
+
sig { params(request: T.nilable(Models::Operations::HrisGetTimeOffTypeRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisGetTimeOffTypeResponse) }
|
8699
|
+
def get_time_off_type(request, retries = nil, timeout_ms = nil)
|
8700
|
+
# get_time_off_type - Get time off type
|
8701
|
+
#
|
8702
|
+
# @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
8709
8703
|
url, params = @sdk_configuration.get_server_details
|
8710
8704
|
base_url = Utils.template_url(url, params)
|
8711
8705
|
url = Utils.generate_url(
|
8712
|
-
Models::Operations::
|
8706
|
+
Models::Operations::HrisGetTimeOffTypeRequest,
|
8713
8707
|
base_url,
|
8714
|
-
'/unified/hris/
|
8708
|
+
'/unified/hris/time_off_types/{id}',
|
8715
8709
|
request
|
8716
8710
|
)
|
8717
8711
|
headers = Utils.get_headers(request)
|
8718
|
-
|
8719
|
-
headers['
|
8720
|
-
|
8721
|
-
|
8722
|
-
|
8723
|
-
|
8712
|
+
query_params = Utils.get_query_params(Models::Operations::HrisGetTimeOffTypeRequest, request)
|
8713
|
+
headers['Accept'] = 'application/json'
|
8714
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
8715
|
+
retries ||= @sdk_configuration.retry_config
|
8716
|
+
retries ||= Utils::RetryConfig.new(
|
8717
|
+
backoff: Utils::BackoffStrategy.new(
|
8718
|
+
exponent: 1.5,
|
8719
|
+
initial_interval: 500,
|
8720
|
+
max_elapsed_time: 3_600_000,
|
8721
|
+
max_interval: 60_000
|
8722
|
+
),
|
8723
|
+
retry_connection_errors: true,
|
8724
|
+
strategy: 'backoff'
|
8725
|
+
)
|
8726
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
8727
|
+
retry_options[:retry_statuses] = [429, 408]
|
8728
|
+
|
8729
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
8730
|
+
|
8731
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
8732
|
+
timeout ||= @sdk_configuration.timeout
|
8733
|
+
|
8734
|
+
connection = @sdk_configuration.client.dup
|
8735
|
+
connection.request :retry, retry_options
|
8736
|
+
|
8737
|
+
hook_ctx = SDKHooks::HookContext.new(
|
8738
|
+
base_url: base_url,
|
8739
|
+
oauth2_scopes: [],
|
8740
|
+
operation_id: 'hris_get_time_off_type',
|
8741
|
+
security_source: @sdk_configuration.security_source
|
8742
|
+
)
|
8743
|
+
|
8744
|
+
error = T.let(nil, T.nilable(StandardError))
|
8745
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
8746
|
+
|
8747
|
+
|
8748
|
+
begin
|
8749
|
+
http_response = connection.get(url) do |req|
|
8750
|
+
req.headers.merge!(headers)
|
8751
|
+
req.options.timeout = timeout unless timeout.nil?
|
8752
|
+
req.params = query_params
|
8753
|
+
Utils.configure_request_security(req, security)
|
8754
|
+
|
8755
|
+
@sdk_configuration.hooks.before_request(
|
8756
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
8757
|
+
hook_ctx: hook_ctx
|
8758
|
+
),
|
8759
|
+
request: req
|
8760
|
+
)
|
8761
|
+
end
|
8762
|
+
rescue StandardError => e
|
8763
|
+
error = e
|
8764
|
+
ensure
|
8765
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
8766
|
+
http_response = @sdk_configuration.hooks.after_error(
|
8767
|
+
error: error,
|
8768
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
8769
|
+
hook_ctx: hook_ctx
|
8770
|
+
),
|
8771
|
+
response: http_response
|
8772
|
+
)
|
8773
|
+
else
|
8774
|
+
http_response = @sdk_configuration.hooks.after_success(
|
8775
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
8776
|
+
hook_ctx: hook_ctx
|
8777
|
+
),
|
8778
|
+
response: http_response
|
8779
|
+
)
|
8780
|
+
end
|
8781
|
+
|
8782
|
+
if http_response.nil?
|
8783
|
+
raise error if !error.nil?
|
8784
|
+
raise 'no response'
|
8785
|
+
end
|
8786
|
+
end
|
8787
|
+
|
8788
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
8789
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
8790
|
+
if Utils.match_content_type(content_type, 'application/json')
|
8791
|
+
http_response = @sdk_configuration.hooks.after_success(
|
8792
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
8793
|
+
hook_ctx: hook_ctx
|
8794
|
+
),
|
8795
|
+
response: http_response
|
8796
|
+
)
|
8797
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ReferenceResult)
|
8798
|
+
response = Models::Operations::HrisGetTimeOffTypeResponse.new(
|
8799
|
+
status_code: http_response.status,
|
8800
|
+
content_type: content_type,
|
8801
|
+
raw_response: http_response,
|
8802
|
+
reference_result: obj
|
8803
|
+
)
|
8804
|
+
|
8805
|
+
return response
|
8806
|
+
else
|
8807
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
8808
|
+
end
|
8809
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
8810
|
+
if Utils.match_content_type(content_type, 'application/json')
|
8811
|
+
http_response = @sdk_configuration.hooks.after_success(
|
8812
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
8813
|
+
hook_ctx: hook_ctx
|
8814
|
+
),
|
8815
|
+
response: http_response
|
8816
|
+
)
|
8817
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadRequestResponse)
|
8818
|
+
throw obj
|
8819
|
+
else
|
8820
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
8821
|
+
end
|
8822
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
8823
|
+
if Utils.match_content_type(content_type, 'application/json')
|
8824
|
+
http_response = @sdk_configuration.hooks.after_success(
|
8825
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
8826
|
+
hook_ctx: hook_ctx
|
8827
|
+
),
|
8828
|
+
response: http_response
|
8829
|
+
)
|
8830
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnauthorizedResponse)
|
8831
|
+
throw obj
|
8832
|
+
else
|
8833
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
8834
|
+
end
|
8835
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
8836
|
+
if Utils.match_content_type(content_type, 'application/json')
|
8837
|
+
http_response = @sdk_configuration.hooks.after_success(
|
8838
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
8839
|
+
hook_ctx: hook_ctx
|
8840
|
+
),
|
8841
|
+
response: http_response
|
8842
|
+
)
|
8843
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ForbiddenResponse)
|
8844
|
+
throw obj
|
8845
|
+
else
|
8846
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
8847
|
+
end
|
8848
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
8849
|
+
if Utils.match_content_type(content_type, 'application/json')
|
8850
|
+
http_response = @sdk_configuration.hooks.after_success(
|
8851
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
8852
|
+
hook_ctx: hook_ctx
|
8853
|
+
),
|
8854
|
+
response: http_response
|
8855
|
+
)
|
8856
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotFoundResponse)
|
8857
|
+
throw obj
|
8858
|
+
else
|
8859
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
8860
|
+
end
|
8861
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
8862
|
+
if Utils.match_content_type(content_type, 'application/json')
|
8863
|
+
http_response = @sdk_configuration.hooks.after_success(
|
8864
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
8865
|
+
hook_ctx: hook_ctx
|
8866
|
+
),
|
8867
|
+
response: http_response
|
8868
|
+
)
|
8869
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::RequestTimedOutResponse)
|
8870
|
+
throw obj
|
8871
|
+
else
|
8872
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
8873
|
+
end
|
8874
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
8875
|
+
if Utils.match_content_type(content_type, 'application/json')
|
8876
|
+
http_response = @sdk_configuration.hooks.after_success(
|
8877
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
8878
|
+
hook_ctx: hook_ctx
|
8879
|
+
),
|
8880
|
+
response: http_response
|
8881
|
+
)
|
8882
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ConflictResponse)
|
8883
|
+
throw obj
|
8884
|
+
else
|
8885
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
8886
|
+
end
|
8887
|
+
elsif Utils.match_status_code(http_response.status, ['412'])
|
8888
|
+
if Utils.match_content_type(content_type, 'application/json')
|
8889
|
+
http_response = @sdk_configuration.hooks.after_success(
|
8890
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
8891
|
+
hook_ctx: hook_ctx
|
8892
|
+
),
|
8893
|
+
response: http_response
|
8894
|
+
)
|
8895
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::PreconditionFailedResponse)
|
8896
|
+
throw obj
|
8897
|
+
else
|
8898
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
8899
|
+
end
|
8900
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
8901
|
+
if Utils.match_content_type(content_type, 'application/json')
|
8902
|
+
http_response = @sdk_configuration.hooks.after_success(
|
8903
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
8904
|
+
hook_ctx: hook_ctx
|
8905
|
+
),
|
8906
|
+
response: http_response
|
8907
|
+
)
|
8908
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnprocessableEntityResponse)
|
8909
|
+
throw obj
|
8910
|
+
else
|
8911
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
8912
|
+
end
|
8913
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
8914
|
+
if Utils.match_content_type(content_type, 'application/json')
|
8915
|
+
http_response = @sdk_configuration.hooks.after_success(
|
8916
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
8917
|
+
hook_ctx: hook_ctx
|
8918
|
+
),
|
8919
|
+
response: http_response
|
8920
|
+
)
|
8921
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::TooManyRequestsResponse)
|
8922
|
+
throw obj
|
8923
|
+
else
|
8924
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
8925
|
+
end
|
8926
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
8927
|
+
if Utils.match_content_type(content_type, 'application/json')
|
8928
|
+
http_response = @sdk_configuration.hooks.after_success(
|
8929
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
8930
|
+
hook_ctx: hook_ctx
|
8931
|
+
),
|
8932
|
+
response: http_response
|
8933
|
+
)
|
8934
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::InternalServerErrorResponse)
|
8935
|
+
throw obj
|
8936
|
+
else
|
8937
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
8938
|
+
end
|
8939
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
8940
|
+
if Utils.match_content_type(content_type, 'application/json')
|
8941
|
+
http_response = @sdk_configuration.hooks.after_success(
|
8942
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
8943
|
+
hook_ctx: hook_ctx
|
8944
|
+
),
|
8945
|
+
response: http_response
|
8946
|
+
)
|
8947
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotImplementedResponse)
|
8948
|
+
throw obj
|
8949
|
+
else
|
8950
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
8951
|
+
end
|
8952
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
8953
|
+
if Utils.match_content_type(content_type, 'application/json')
|
8954
|
+
http_response = @sdk_configuration.hooks.after_success(
|
8955
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
8956
|
+
hook_ctx: hook_ctx
|
8957
|
+
),
|
8958
|
+
response: http_response
|
8959
|
+
)
|
8960
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadGatewayResponse)
|
8961
|
+
throw obj
|
8962
|
+
else
|
8963
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
8964
|
+
end
|
8965
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
8966
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
8967
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
8968
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
8969
|
+
else
|
8970
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
8971
|
+
|
8972
|
+
end
|
8973
|
+
end
|
8974
|
+
|
8975
|
+
|
8976
|
+
sig { params(hris_invite_employee_request_dto: Models::Shared::HrisInviteEmployeeRequestDto, id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisInviteEmployeeResponse) }
|
8977
|
+
def invite_employee(hris_invite_employee_request_dto, id, x_account_id, retries = nil, timeout_ms = nil)
|
8978
|
+
# invite_employee - Invite Employee
|
8979
|
+
request = Models::Operations::HrisInviteEmployeeRequest.new(
|
8980
|
+
|
8981
|
+
hris_invite_employee_request_dto: hris_invite_employee_request_dto,
|
8982
|
+
id: id,
|
8983
|
+
x_account_id: x_account_id
|
8984
|
+
)
|
8985
|
+
url, params = @sdk_configuration.get_server_details
|
8986
|
+
base_url = Utils.template_url(url, params)
|
8987
|
+
url = Utils.generate_url(
|
8988
|
+
Models::Operations::HrisInviteEmployeeRequest,
|
8989
|
+
base_url,
|
8990
|
+
'/unified/hris/employees/{id}/invite',
|
8991
|
+
request
|
8992
|
+
)
|
8993
|
+
headers = Utils.get_headers(request)
|
8994
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :hris_invite_employee_request_dto, :json)
|
8995
|
+
headers['content-type'] = req_content_type
|
8996
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
8997
|
+
|
8998
|
+
if form
|
8999
|
+
body = Utils.encode_form(form)
|
8724
9000
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
8725
9001
|
body = URI.encode_www_form(data)
|
8726
9002
|
else
|
8727
|
-
body = data
|
9003
|
+
body = data
|
9004
|
+
end
|
9005
|
+
headers['Accept'] = 'application/json'
|
9006
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
9007
|
+
retries ||= @sdk_configuration.retry_config
|
9008
|
+
retries ||= Utils::RetryConfig.new(
|
9009
|
+
backoff: Utils::BackoffStrategy.new(
|
9010
|
+
exponent: 1.5,
|
9011
|
+
initial_interval: 500,
|
9012
|
+
max_elapsed_time: 3_600_000,
|
9013
|
+
max_interval: 60_000
|
9014
|
+
),
|
9015
|
+
retry_connection_errors: true,
|
9016
|
+
strategy: 'backoff'
|
9017
|
+
)
|
9018
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
9019
|
+
retry_options[:retry_statuses] = [429, 408]
|
9020
|
+
|
9021
|
+
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
9022
|
+
|
9023
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
9024
|
+
timeout ||= @sdk_configuration.timeout
|
9025
|
+
|
9026
|
+
connection = @sdk_configuration.client.dup
|
9027
|
+
connection.request :retry, retry_options
|
9028
|
+
|
9029
|
+
hook_ctx = SDKHooks::HookContext.new(
|
9030
|
+
base_url: base_url,
|
9031
|
+
oauth2_scopes: [],
|
9032
|
+
operation_id: 'hris_invite_employee',
|
9033
|
+
security_source: @sdk_configuration.security_source
|
9034
|
+
)
|
9035
|
+
|
9036
|
+
error = T.let(nil, T.nilable(StandardError))
|
9037
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
9038
|
+
|
9039
|
+
|
9040
|
+
begin
|
9041
|
+
http_response = connection.post(url) do |req|
|
9042
|
+
req.body = body
|
9043
|
+
req.headers.merge!(headers)
|
9044
|
+
req.options.timeout = timeout unless timeout.nil?
|
9045
|
+
Utils.configure_request_security(req, security)
|
9046
|
+
|
9047
|
+
@sdk_configuration.hooks.before_request(
|
9048
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
9049
|
+
hook_ctx: hook_ctx
|
9050
|
+
),
|
9051
|
+
request: req
|
9052
|
+
)
|
9053
|
+
end
|
9054
|
+
rescue StandardError => e
|
9055
|
+
error = e
|
9056
|
+
ensure
|
9057
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
9058
|
+
http_response = @sdk_configuration.hooks.after_error(
|
9059
|
+
error: error,
|
9060
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
9061
|
+
hook_ctx: hook_ctx
|
9062
|
+
),
|
9063
|
+
response: http_response
|
9064
|
+
)
|
9065
|
+
else
|
9066
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9067
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9068
|
+
hook_ctx: hook_ctx
|
9069
|
+
),
|
9070
|
+
response: http_response
|
9071
|
+
)
|
9072
|
+
end
|
9073
|
+
|
9074
|
+
if http_response.nil?
|
9075
|
+
raise error if !error.nil?
|
9076
|
+
raise 'no response'
|
9077
|
+
end
|
9078
|
+
end
|
9079
|
+
|
9080
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
9081
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
9082
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9083
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9084
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9085
|
+
hook_ctx: hook_ctx
|
9086
|
+
),
|
9087
|
+
response: http_response
|
9088
|
+
)
|
9089
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::InviteEmployeeResult)
|
9090
|
+
response = Models::Operations::HrisInviteEmployeeResponse.new(
|
9091
|
+
status_code: http_response.status,
|
9092
|
+
content_type: content_type,
|
9093
|
+
raw_response: http_response,
|
9094
|
+
invite_employee_result: obj
|
9095
|
+
)
|
9096
|
+
|
9097
|
+
return response
|
9098
|
+
else
|
9099
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9100
|
+
end
|
9101
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
9102
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9103
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9104
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9105
|
+
hook_ctx: hook_ctx
|
9106
|
+
),
|
9107
|
+
response: http_response
|
9108
|
+
)
|
9109
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadRequestResponse)
|
9110
|
+
throw obj
|
9111
|
+
else
|
9112
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9113
|
+
end
|
9114
|
+
elsif Utils.match_status_code(http_response.status, ['401'])
|
9115
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9116
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9117
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9118
|
+
hook_ctx: hook_ctx
|
9119
|
+
),
|
9120
|
+
response: http_response
|
9121
|
+
)
|
9122
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnauthorizedResponse)
|
9123
|
+
throw obj
|
9124
|
+
else
|
9125
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9126
|
+
end
|
9127
|
+
elsif Utils.match_status_code(http_response.status, ['403'])
|
9128
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9129
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9130
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9131
|
+
hook_ctx: hook_ctx
|
9132
|
+
),
|
9133
|
+
response: http_response
|
9134
|
+
)
|
9135
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ForbiddenResponse)
|
9136
|
+
throw obj
|
9137
|
+
else
|
9138
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9139
|
+
end
|
9140
|
+
elsif Utils.match_status_code(http_response.status, ['404'])
|
9141
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9142
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9143
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9144
|
+
hook_ctx: hook_ctx
|
9145
|
+
),
|
9146
|
+
response: http_response
|
9147
|
+
)
|
9148
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotFoundResponse)
|
9149
|
+
throw obj
|
9150
|
+
else
|
9151
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9152
|
+
end
|
9153
|
+
elsif Utils.match_status_code(http_response.status, ['408'])
|
9154
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9155
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9156
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9157
|
+
hook_ctx: hook_ctx
|
9158
|
+
),
|
9159
|
+
response: http_response
|
9160
|
+
)
|
9161
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::RequestTimedOutResponse)
|
9162
|
+
throw obj
|
9163
|
+
else
|
9164
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9165
|
+
end
|
9166
|
+
elsif Utils.match_status_code(http_response.status, ['409'])
|
9167
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9168
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9169
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9170
|
+
hook_ctx: hook_ctx
|
9171
|
+
),
|
9172
|
+
response: http_response
|
9173
|
+
)
|
9174
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::ConflictResponse)
|
9175
|
+
throw obj
|
9176
|
+
else
|
9177
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9178
|
+
end
|
9179
|
+
elsif Utils.match_status_code(http_response.status, ['412'])
|
9180
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9181
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9182
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9183
|
+
hook_ctx: hook_ctx
|
9184
|
+
),
|
9185
|
+
response: http_response
|
9186
|
+
)
|
9187
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::PreconditionFailedResponse)
|
9188
|
+
throw obj
|
9189
|
+
else
|
9190
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9191
|
+
end
|
9192
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
9193
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9194
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9195
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9196
|
+
hook_ctx: hook_ctx
|
9197
|
+
),
|
9198
|
+
response: http_response
|
9199
|
+
)
|
9200
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::UnprocessableEntityResponse)
|
9201
|
+
throw obj
|
9202
|
+
else
|
9203
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9204
|
+
end
|
9205
|
+
elsif Utils.match_status_code(http_response.status, ['429'])
|
9206
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9207
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9208
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9209
|
+
hook_ctx: hook_ctx
|
9210
|
+
),
|
9211
|
+
response: http_response
|
9212
|
+
)
|
9213
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::TooManyRequestsResponse)
|
9214
|
+
throw obj
|
9215
|
+
else
|
9216
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9217
|
+
end
|
9218
|
+
elsif Utils.match_status_code(http_response.status, ['500'])
|
9219
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9220
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9221
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9222
|
+
hook_ctx: hook_ctx
|
9223
|
+
),
|
9224
|
+
response: http_response
|
9225
|
+
)
|
9226
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::InternalServerErrorResponse)
|
9227
|
+
throw obj
|
9228
|
+
else
|
9229
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9230
|
+
end
|
9231
|
+
elsif Utils.match_status_code(http_response.status, ['501'])
|
9232
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9233
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9234
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9235
|
+
hook_ctx: hook_ctx
|
9236
|
+
),
|
9237
|
+
response: http_response
|
9238
|
+
)
|
9239
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::NotImplementedResponse)
|
9240
|
+
throw obj
|
9241
|
+
else
|
9242
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9243
|
+
end
|
9244
|
+
elsif Utils.match_status_code(http_response.status, ['502'])
|
9245
|
+
if Utils.match_content_type(content_type, 'application/json')
|
9246
|
+
http_response = @sdk_configuration.hooks.after_success(
|
9247
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
9248
|
+
hook_ctx: hook_ctx
|
9249
|
+
),
|
9250
|
+
response: http_response
|
9251
|
+
)
|
9252
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Errors::BadGatewayResponse)
|
9253
|
+
throw obj
|
9254
|
+
else
|
9255
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
9256
|
+
end
|
9257
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
9258
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
9259
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
9260
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
9261
|
+
else
|
9262
|
+
raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
9263
|
+
|
8728
9264
|
end
|
9265
|
+
end
|
9266
|
+
|
9267
|
+
|
9268
|
+
sig { params(request: T.nilable(Models::Operations::HrisListBenefitsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListBenefitsResponse) }
|
9269
|
+
def list_benefits(request, retries = nil, timeout_ms = nil)
|
9270
|
+
# list_benefits - List benefits
|
9271
|
+
url, params = @sdk_configuration.get_server_details
|
9272
|
+
base_url = Utils.template_url(url, params)
|
9273
|
+
url = "#{base_url}/unified/hris/benefits"
|
9274
|
+
headers = Utils.get_headers(request)
|
9275
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListBenefitsRequest, request)
|
8729
9276
|
headers['Accept'] = 'application/json'
|
8730
9277
|
headers['user-agent'] = @sdk_configuration.user_agent
|
8731
9278
|
retries ||= @sdk_configuration.retry_config
|
@@ -8753,7 +9300,7 @@ module StackOne
|
|
8753
9300
|
hook_ctx = SDKHooks::HookContext.new(
|
8754
9301
|
base_url: base_url,
|
8755
9302
|
oauth2_scopes: [],
|
8756
|
-
operation_id: '
|
9303
|
+
operation_id: 'hris_list_benefits',
|
8757
9304
|
security_source: @sdk_configuration.security_source
|
8758
9305
|
)
|
8759
9306
|
|
@@ -8762,10 +9309,10 @@ module StackOne
|
|
8762
9309
|
|
8763
9310
|
|
8764
9311
|
begin
|
8765
|
-
http_response = connection.
|
8766
|
-
req.body = body
|
9312
|
+
http_response = connection.get(url) do |req|
|
8767
9313
|
req.headers.merge!(headers)
|
8768
9314
|
req.options.timeout = timeout unless timeout.nil?
|
9315
|
+
req.params = query_params
|
8769
9316
|
Utils.configure_request_security(req, security)
|
8770
9317
|
|
8771
9318
|
@sdk_configuration.hooks.before_request(
|
@@ -8810,12 +9357,12 @@ module StackOne
|
|
8810
9357
|
),
|
8811
9358
|
response: http_response
|
8812
9359
|
)
|
8813
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
8814
|
-
response = Models::Operations::
|
9360
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::HRISBenefitsPaginated)
|
9361
|
+
response = Models::Operations::HrisListBenefitsResponse.new(
|
8815
9362
|
status_code: http_response.status,
|
8816
9363
|
content_type: content_type,
|
8817
9364
|
raw_response: http_response,
|
8818
|
-
|
9365
|
+
hris_benefits_paginated: obj
|
8819
9366
|
)
|
8820
9367
|
|
8821
9368
|
return response
|
@@ -8989,14 +9536,14 @@ module StackOne
|
|
8989
9536
|
end
|
8990
9537
|
|
8991
9538
|
|
8992
|
-
sig { params(request: T.nilable(Models::Operations::
|
8993
|
-
def
|
8994
|
-
#
|
9539
|
+
sig { params(request: T.nilable(Models::Operations::HrisListCompaniesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListCompaniesResponse) }
|
9540
|
+
def list_companies(request, retries = nil, timeout_ms = nil)
|
9541
|
+
# list_companies - List Companies
|
8995
9542
|
url, params = @sdk_configuration.get_server_details
|
8996
9543
|
base_url = Utils.template_url(url, params)
|
8997
|
-
url = "#{base_url}/unified/hris/
|
9544
|
+
url = "#{base_url}/unified/hris/companies"
|
8998
9545
|
headers = Utils.get_headers(request)
|
8999
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9546
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListCompaniesRequest, request)
|
9000
9547
|
headers['Accept'] = 'application/json'
|
9001
9548
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9002
9549
|
retries ||= @sdk_configuration.retry_config
|
@@ -9024,7 +9571,7 @@ module StackOne
|
|
9024
9571
|
hook_ctx = SDKHooks::HookContext.new(
|
9025
9572
|
base_url: base_url,
|
9026
9573
|
oauth2_scopes: [],
|
9027
|
-
operation_id: '
|
9574
|
+
operation_id: 'hris_list_companies',
|
9028
9575
|
security_source: @sdk_configuration.security_source
|
9029
9576
|
)
|
9030
9577
|
|
@@ -9081,12 +9628,12 @@ module StackOne
|
|
9081
9628
|
),
|
9082
9629
|
response: http_response
|
9083
9630
|
)
|
9084
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
9085
|
-
response = Models::Operations::
|
9631
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::CompaniesPaginated)
|
9632
|
+
response = Models::Operations::HrisListCompaniesResponse.new(
|
9086
9633
|
status_code: http_response.status,
|
9087
9634
|
content_type: content_type,
|
9088
9635
|
raw_response: http_response,
|
9089
|
-
|
9636
|
+
companies_paginated: obj
|
9090
9637
|
)
|
9091
9638
|
|
9092
9639
|
return response
|
@@ -9260,14 +9807,14 @@ module StackOne
|
|
9260
9807
|
end
|
9261
9808
|
|
9262
9809
|
|
9263
|
-
sig { params(request: T.nilable(Models::Operations::
|
9264
|
-
def
|
9265
|
-
#
|
9810
|
+
sig { params(request: T.nilable(Models::Operations::HrisListCostCenterGroupsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListCostCenterGroupsResponse) }
|
9811
|
+
def list_cost_center_groups(request, retries = nil, timeout_ms = nil)
|
9812
|
+
# list_cost_center_groups - List Cost Center Groups
|
9266
9813
|
url, params = @sdk_configuration.get_server_details
|
9267
9814
|
base_url = Utils.template_url(url, params)
|
9268
|
-
url = "#{base_url}/unified/hris/
|
9815
|
+
url = "#{base_url}/unified/hris/groups/cost_centers"
|
9269
9816
|
headers = Utils.get_headers(request)
|
9270
|
-
query_params = Utils.get_query_params(Models::Operations::
|
9817
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListCostCenterGroupsRequest, request)
|
9271
9818
|
headers['Accept'] = 'application/json'
|
9272
9819
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9273
9820
|
retries ||= @sdk_configuration.retry_config
|
@@ -9295,7 +9842,7 @@ module StackOne
|
|
9295
9842
|
hook_ctx = SDKHooks::HookContext.new(
|
9296
9843
|
base_url: base_url,
|
9297
9844
|
oauth2_scopes: [],
|
9298
|
-
operation_id: '
|
9845
|
+
operation_id: 'hris_list_cost_center_groups',
|
9299
9846
|
security_source: @sdk_configuration.security_source
|
9300
9847
|
)
|
9301
9848
|
|
@@ -9352,12 +9899,12 @@ module StackOne
|
|
9352
9899
|
),
|
9353
9900
|
response: http_response
|
9354
9901
|
)
|
9355
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
9356
|
-
response = Models::Operations::
|
9902
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::HRISCostCenterPaginated)
|
9903
|
+
response = Models::Operations::HrisListCostCenterGroupsResponse.new(
|
9357
9904
|
status_code: http_response.status,
|
9358
9905
|
content_type: content_type,
|
9359
9906
|
raw_response: http_response,
|
9360
|
-
|
9907
|
+
hris_cost_center_paginated: obj
|
9361
9908
|
)
|
9362
9909
|
|
9363
9910
|
return response
|
@@ -9531,14 +10078,14 @@ module StackOne
|
|
9531
10078
|
end
|
9532
10079
|
|
9533
10080
|
|
9534
|
-
sig { params(request: T.nilable(Models::Operations::
|
9535
|
-
def
|
9536
|
-
#
|
10081
|
+
sig { params(request: T.nilable(Models::Operations::HrisListDepartmentGroupsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListDepartmentGroupsResponse) }
|
10082
|
+
def list_department_groups(request, retries = nil, timeout_ms = nil)
|
10083
|
+
# list_department_groups - List Department Groups
|
9537
10084
|
url, params = @sdk_configuration.get_server_details
|
9538
10085
|
base_url = Utils.template_url(url, params)
|
9539
|
-
url = "#{base_url}/unified/hris/groups/
|
10086
|
+
url = "#{base_url}/unified/hris/groups/departments"
|
9540
10087
|
headers = Utils.get_headers(request)
|
9541
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10088
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListDepartmentGroupsRequest, request)
|
9542
10089
|
headers['Accept'] = 'application/json'
|
9543
10090
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9544
10091
|
retries ||= @sdk_configuration.retry_config
|
@@ -9566,7 +10113,7 @@ module StackOne
|
|
9566
10113
|
hook_ctx = SDKHooks::HookContext.new(
|
9567
10114
|
base_url: base_url,
|
9568
10115
|
oauth2_scopes: [],
|
9569
|
-
operation_id: '
|
10116
|
+
operation_id: 'hris_list_department_groups',
|
9570
10117
|
security_source: @sdk_configuration.security_source
|
9571
10118
|
)
|
9572
10119
|
|
@@ -9623,12 +10170,12 @@ module StackOne
|
|
9623
10170
|
),
|
9624
10171
|
response: http_response
|
9625
10172
|
)
|
9626
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
9627
|
-
response = Models::Operations::
|
10173
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::HRISDepartmentsPaginated)
|
10174
|
+
response = Models::Operations::HrisListDepartmentGroupsResponse.new(
|
9628
10175
|
status_code: http_response.status,
|
9629
10176
|
content_type: content_type,
|
9630
10177
|
raw_response: http_response,
|
9631
|
-
|
10178
|
+
hris_departments_paginated: obj
|
9632
10179
|
)
|
9633
10180
|
|
9634
10181
|
return response
|
@@ -9802,14 +10349,14 @@ module StackOne
|
|
9802
10349
|
end
|
9803
10350
|
|
9804
10351
|
|
9805
|
-
sig { params(request: T.nilable(Models::Operations::
|
9806
|
-
def
|
9807
|
-
#
|
10352
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeCategoriesRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeCategoriesResponse) }
|
10353
|
+
def list_employee_categories(request, retries = nil, timeout_ms = nil)
|
10354
|
+
# list_employee_categories - List Employee Document Categories
|
9808
10355
|
url, params = @sdk_configuration.get_server_details
|
9809
10356
|
base_url = Utils.template_url(url, params)
|
9810
|
-
url = "#{base_url}/unified/hris/
|
10357
|
+
url = "#{base_url}/unified/hris/documents/employee_categories"
|
9811
10358
|
headers = Utils.get_headers(request)
|
9812
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10359
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeCategoriesRequest, request)
|
9813
10360
|
headers['Accept'] = 'application/json'
|
9814
10361
|
headers['user-agent'] = @sdk_configuration.user_agent
|
9815
10362
|
retries ||= @sdk_configuration.retry_config
|
@@ -9837,7 +10384,7 @@ module StackOne
|
|
9837
10384
|
hook_ctx = SDKHooks::HookContext.new(
|
9838
10385
|
base_url: base_url,
|
9839
10386
|
oauth2_scopes: [],
|
9840
|
-
operation_id: '
|
10387
|
+
operation_id: 'hris_list_employee_categories',
|
9841
10388
|
security_source: @sdk_configuration.security_source
|
9842
10389
|
)
|
9843
10390
|
|
@@ -9894,12 +10441,12 @@ module StackOne
|
|
9894
10441
|
),
|
9895
10442
|
response: http_response
|
9896
10443
|
)
|
9897
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
9898
|
-
response = Models::Operations::
|
10444
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::ReferencePaginated)
|
10445
|
+
response = Models::Operations::HrisListEmployeeCategoriesResponse.new(
|
9899
10446
|
status_code: http_response.status,
|
9900
10447
|
content_type: content_type,
|
9901
10448
|
raw_response: http_response,
|
9902
|
-
|
10449
|
+
reference_paginated: obj
|
9903
10450
|
)
|
9904
10451
|
|
9905
10452
|
return response
|
@@ -10073,14 +10620,14 @@ module StackOne
|
|
10073
10620
|
end
|
10074
10621
|
|
10075
10622
|
|
10076
|
-
sig { params(request: T.nilable(Models::Operations::
|
10077
|
-
def
|
10078
|
-
#
|
10623
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeCustomFieldDefinitionsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeCustomFieldDefinitionsResponse) }
|
10624
|
+
def list_employee_custom_field_definitions(request, retries = nil, timeout_ms = nil)
|
10625
|
+
# list_employee_custom_field_definitions - List employee Custom Field Definitions
|
10079
10626
|
url, params = @sdk_configuration.get_server_details
|
10080
10627
|
base_url = Utils.template_url(url, params)
|
10081
|
-
url = "#{base_url}/unified/hris/
|
10628
|
+
url = "#{base_url}/unified/hris/custom_field_definitions/employees"
|
10082
10629
|
headers = Utils.get_headers(request)
|
10083
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10630
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeCustomFieldDefinitionsRequest, request)
|
10084
10631
|
headers['Accept'] = 'application/json'
|
10085
10632
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10086
10633
|
retries ||= @sdk_configuration.retry_config
|
@@ -10108,7 +10655,7 @@ module StackOne
|
|
10108
10655
|
hook_ctx = SDKHooks::HookContext.new(
|
10109
10656
|
base_url: base_url,
|
10110
10657
|
oauth2_scopes: [],
|
10111
|
-
operation_id: '
|
10658
|
+
operation_id: 'hris_list_employee_custom_field_definitions',
|
10112
10659
|
security_source: @sdk_configuration.security_source
|
10113
10660
|
)
|
10114
10661
|
|
@@ -10165,12 +10712,12 @@ module StackOne
|
|
10165
10712
|
),
|
10166
10713
|
response: http_response
|
10167
10714
|
)
|
10168
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10169
|
-
response = Models::Operations::
|
10715
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::CustomFieldDefinitionsPaginated)
|
10716
|
+
response = Models::Operations::HrisListEmployeeCustomFieldDefinitionsResponse.new(
|
10170
10717
|
status_code: http_response.status,
|
10171
10718
|
content_type: content_type,
|
10172
10719
|
raw_response: http_response,
|
10173
|
-
|
10720
|
+
custom_field_definitions_paginated: obj
|
10174
10721
|
)
|
10175
10722
|
|
10176
10723
|
return response
|
@@ -10344,14 +10891,19 @@ module StackOne
|
|
10344
10891
|
end
|
10345
10892
|
|
10346
10893
|
|
10347
|
-
sig { params(request: T.nilable(Models::Operations::
|
10348
|
-
def
|
10349
|
-
#
|
10894
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeDocumentsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeDocumentsResponse) }
|
10895
|
+
def list_employee_documents(request, retries = nil, timeout_ms = nil)
|
10896
|
+
# list_employee_documents - List Employee Documents
|
10350
10897
|
url, params = @sdk_configuration.get_server_details
|
10351
10898
|
base_url = Utils.template_url(url, params)
|
10352
|
-
url =
|
10899
|
+
url = Utils.generate_url(
|
10900
|
+
Models::Operations::HrisListEmployeeDocumentsRequest,
|
10901
|
+
base_url,
|
10902
|
+
'/unified/hris/employees/{id}/documents',
|
10903
|
+
request
|
10904
|
+
)
|
10353
10905
|
headers = Utils.get_headers(request)
|
10354
|
-
query_params = Utils.get_query_params(Models::Operations::
|
10906
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeDocumentsRequest, request)
|
10355
10907
|
headers['Accept'] = 'application/json'
|
10356
10908
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10357
10909
|
retries ||= @sdk_configuration.retry_config
|
@@ -10379,7 +10931,7 @@ module StackOne
|
|
10379
10931
|
hook_ctx = SDKHooks::HookContext.new(
|
10380
10932
|
base_url: base_url,
|
10381
10933
|
oauth2_scopes: [],
|
10382
|
-
operation_id: '
|
10934
|
+
operation_id: 'hris_list_employee_documents',
|
10383
10935
|
security_source: @sdk_configuration.security_source
|
10384
10936
|
)
|
10385
10937
|
|
@@ -10436,12 +10988,12 @@ module StackOne
|
|
10436
10988
|
),
|
10437
10989
|
response: http_response
|
10438
10990
|
)
|
10439
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10440
|
-
response = Models::Operations::
|
10991
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::HrisDocumentsPaginated)
|
10992
|
+
response = Models::Operations::HrisListEmployeeDocumentsResponse.new(
|
10441
10993
|
status_code: http_response.status,
|
10442
10994
|
content_type: content_type,
|
10443
10995
|
raw_response: http_response,
|
10444
|
-
|
10996
|
+
hris_documents_paginated: obj
|
10445
10997
|
)
|
10446
10998
|
|
10447
10999
|
return response
|
@@ -10615,19 +11167,19 @@ module StackOne
|
|
10615
11167
|
end
|
10616
11168
|
|
10617
11169
|
|
10618
|
-
sig { params(request: T.nilable(Models::Operations::
|
10619
|
-
def
|
10620
|
-
#
|
11170
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeEmploymentsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeEmploymentsResponse) }
|
11171
|
+
def list_employee_employments(request, retries = nil, timeout_ms = nil)
|
11172
|
+
# list_employee_employments - List Employee Employments
|
10621
11173
|
url, params = @sdk_configuration.get_server_details
|
10622
11174
|
base_url = Utils.template_url(url, params)
|
10623
11175
|
url = Utils.generate_url(
|
10624
|
-
Models::Operations::
|
11176
|
+
Models::Operations::HrisListEmployeeEmploymentsRequest,
|
10625
11177
|
base_url,
|
10626
|
-
'/unified/hris/employees/{id}/
|
11178
|
+
'/unified/hris/employees/{id}/employments',
|
10627
11179
|
request
|
10628
11180
|
)
|
10629
11181
|
headers = Utils.get_headers(request)
|
10630
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11182
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeEmploymentsRequest, request)
|
10631
11183
|
headers['Accept'] = 'application/json'
|
10632
11184
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10633
11185
|
retries ||= @sdk_configuration.retry_config
|
@@ -10655,7 +11207,7 @@ module StackOne
|
|
10655
11207
|
hook_ctx = SDKHooks::HookContext.new(
|
10656
11208
|
base_url: base_url,
|
10657
11209
|
oauth2_scopes: [],
|
10658
|
-
operation_id: '
|
11210
|
+
operation_id: 'hris_list_employee_employments',
|
10659
11211
|
security_source: @sdk_configuration.security_source
|
10660
11212
|
)
|
10661
11213
|
|
@@ -10712,12 +11264,12 @@ module StackOne
|
|
10712
11264
|
),
|
10713
11265
|
response: http_response
|
10714
11266
|
)
|
10715
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10716
|
-
response = Models::Operations::
|
11267
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::EmploymentsPaginated)
|
11268
|
+
response = Models::Operations::HrisListEmployeeEmploymentsResponse.new(
|
10717
11269
|
status_code: http_response.status,
|
10718
11270
|
content_type: content_type,
|
10719
11271
|
raw_response: http_response,
|
10720
|
-
|
11272
|
+
employments_paginated: obj
|
10721
11273
|
)
|
10722
11274
|
|
10723
11275
|
return response
|
@@ -10891,19 +11443,19 @@ module StackOne
|
|
10891
11443
|
end
|
10892
11444
|
|
10893
11445
|
|
10894
|
-
sig { params(request: T.nilable(Models::Operations::
|
10895
|
-
def
|
10896
|
-
#
|
11446
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeSkillsRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeSkillsResponse) }
|
11447
|
+
def list_employee_skills(request, retries = nil, timeout_ms = nil)
|
11448
|
+
# list_employee_skills - List Employee Skills
|
10897
11449
|
url, params = @sdk_configuration.get_server_details
|
10898
11450
|
base_url = Utils.template_url(url, params)
|
10899
11451
|
url = Utils.generate_url(
|
10900
|
-
Models::Operations::
|
11452
|
+
Models::Operations::HrisListEmployeeSkillsRequest,
|
10901
11453
|
base_url,
|
10902
|
-
'/unified/hris/employees/{id}/
|
11454
|
+
'/unified/hris/employees/{id}/skills',
|
10903
11455
|
request
|
10904
11456
|
)
|
10905
11457
|
headers = Utils.get_headers(request)
|
10906
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11458
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeSkillsRequest, request)
|
10907
11459
|
headers['Accept'] = 'application/json'
|
10908
11460
|
headers['user-agent'] = @sdk_configuration.user_agent
|
10909
11461
|
retries ||= @sdk_configuration.retry_config
|
@@ -10931,7 +11483,7 @@ module StackOne
|
|
10931
11483
|
hook_ctx = SDKHooks::HookContext.new(
|
10932
11484
|
base_url: base_url,
|
10933
11485
|
oauth2_scopes: [],
|
10934
|
-
operation_id: '
|
11486
|
+
operation_id: 'hris_list_employee_skills',
|
10935
11487
|
security_source: @sdk_configuration.security_source
|
10936
11488
|
)
|
10937
11489
|
|
@@ -10988,12 +11540,12 @@ module StackOne
|
|
10988
11540
|
),
|
10989
11541
|
response: http_response
|
10990
11542
|
)
|
10991
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
10992
|
-
response = Models::Operations::
|
11543
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::EntitySkillsPaginated)
|
11544
|
+
response = Models::Operations::HrisListEmployeeSkillsResponse.new(
|
10993
11545
|
status_code: http_response.status,
|
10994
11546
|
content_type: content_type,
|
10995
11547
|
raw_response: http_response,
|
10996
|
-
|
11548
|
+
entity_skills_paginated: obj
|
10997
11549
|
)
|
10998
11550
|
|
10999
11551
|
return response
|
@@ -11167,19 +11719,19 @@ module StackOne
|
|
11167
11719
|
end
|
11168
11720
|
|
11169
11721
|
|
11170
|
-
sig { params(request: T.nilable(Models::Operations::
|
11171
|
-
def
|
11172
|
-
#
|
11722
|
+
sig { params(request: T.nilable(Models::Operations::HrisListEmployeeTasksRequest), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::HrisListEmployeeTasksResponse) }
|
11723
|
+
def list_employee_tasks(request, retries = nil, timeout_ms = nil)
|
11724
|
+
# list_employee_tasks - List Employee Tasks
|
11173
11725
|
url, params = @sdk_configuration.get_server_details
|
11174
11726
|
base_url = Utils.template_url(url, params)
|
11175
11727
|
url = Utils.generate_url(
|
11176
|
-
Models::Operations::
|
11728
|
+
Models::Operations::HrisListEmployeeTasksRequest,
|
11177
11729
|
base_url,
|
11178
|
-
'/unified/hris/employees/{id}/
|
11730
|
+
'/unified/hris/employees/{id}/tasks',
|
11179
11731
|
request
|
11180
11732
|
)
|
11181
11733
|
headers = Utils.get_headers(request)
|
11182
|
-
query_params = Utils.get_query_params(Models::Operations::
|
11734
|
+
query_params = Utils.get_query_params(Models::Operations::HrisListEmployeeTasksRequest, request)
|
11183
11735
|
headers['Accept'] = 'application/json'
|
11184
11736
|
headers['user-agent'] = @sdk_configuration.user_agent
|
11185
11737
|
retries ||= @sdk_configuration.retry_config
|
@@ -11207,7 +11759,7 @@ module StackOne
|
|
11207
11759
|
hook_ctx = SDKHooks::HookContext.new(
|
11208
11760
|
base_url: base_url,
|
11209
11761
|
oauth2_scopes: [],
|
11210
|
-
operation_id: '
|
11762
|
+
operation_id: 'hris_list_employee_tasks',
|
11211
11763
|
security_source: @sdk_configuration.security_source
|
11212
11764
|
)
|
11213
11765
|
|
@@ -11264,12 +11816,12 @@ module StackOne
|
|
11264
11816
|
),
|
11265
11817
|
response: http_response
|
11266
11818
|
)
|
11267
|
-
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::
|
11268
|
-
response = Models::Operations::
|
11819
|
+
obj = Crystalline.unmarshal_json(JSON.parse(http_response.env.response_body), Models::Shared::TasksPaginated)
|
11820
|
+
response = Models::Operations::HrisListEmployeeTasksResponse.new(
|
11269
11821
|
status_code: http_response.status,
|
11270
11822
|
content_type: content_type,
|
11271
11823
|
raw_response: http_response,
|
11272
|
-
|
11824
|
+
tasks_paginated: obj
|
11273
11825
|
)
|
11274
11826
|
|
11275
11827
|
return response
|