stackone_client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/{stackone → stack_one}/accounts.rb +32 -26
- data/lib/{stackone → stack_one}/connect_sessions.rb +10 -7
- data/lib/{stackone → stack_one}/connectors.rb +15 -12
- data/lib/{stackone → stack_one}/hris.rb +109 -89
- data/lib/stack_one/models/operations/hris_create_employee_request.rb +27 -0
- data/lib/stack_one/models/operations/hris_create_employee_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_create_employee_time_off_request_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_create_employee_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_create_time_off_request_request.rb +27 -0
- data/lib/stack_one/models/operations/hris_create_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_company_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_get_company_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_employee_document_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_employee_document_request.rb +53 -0
- data/lib/stack_one/models/operations/hris_get_employee_document_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_employee_request.rb +56 -0
- data/lib/stack_one/models/operations/hris_get_employee_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_request.rb +53 -0
- data/lib/stack_one/models/operations/hris_get_employees_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_employment_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_employment_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_get_employment_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_location_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_location_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_get_location_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_get_time_off_request_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_get_time_off_request_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_get_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_companies_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_companies_request.rb +47 -0
- data/lib/stack_one/models/operations/hris_list_companies_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employee_documents_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_employee_documents_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_list_employee_documents_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_request.rb +50 -0
- data/lib/stack_one/models/operations/hris_list_employee_time_off_requests_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employees_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_employees_request.rb +53 -0
- data/lib/stack_one/models/operations/hris_list_employees_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_employments_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_employments_request.rb +47 -0
- data/lib/stack_one/models/operations/hris_list_employments_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_locations_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_locations_request.rb +47 -0
- data/lib/stack_one/models/operations/hris_list_locations_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_list_time_off_requests_queryparam_proxy.rb +20 -0
- data/lib/stack_one/models/operations/hris_list_time_off_requests_request.rb +47 -0
- data/lib/stack_one/models/operations/hris_list_time_off_requests_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_update_employee_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_update_employee_response.rb +33 -0
- data/lib/stack_one/models/operations/hris_update_time_off_request_request.rb +30 -0
- data/lib/stack_one/models/operations/hris_update_time_off_request_response.rb +33 -0
- data/lib/stack_one/models/operations/proxy.rb +20 -0
- data/lib/stack_one/models/operations/queryparam_proxy.rb +20 -0
- data/lib/{stackone/models/operations/stackone_authenticate_connect_session.rb → stack_one/models/operations/stackone_authenticate_connect_session_response.rb} +6 -8
- data/lib/{stackone/models/operations/stackone_create_connect_session.rb → stack_one/models/operations/stackone_create_connect_session_response.rb} +6 -8
- data/lib/stack_one/models/operations/stackone_delete_account_request.rb +24 -0
- data/lib/{stackone/models/operations/stackone_delete_account.rb → stack_one/models/operations/stackone_delete_account_response.rb} +6 -22
- data/lib/stack_one/models/operations/stackone_get_account_meta_info_request.rb +24 -0
- data/lib/{stackone/models/operations/stackone_get_account_meta_info.rb → stack_one/models/operations/stackone_get_account_meta_info_response.rb} +6 -22
- data/lib/stack_one/models/operations/stackone_get_account_request.rb +24 -0
- data/lib/{stackone/models/operations/stackone_get_account.rb → stack_one/models/operations/stackone_get_account_response.rb} +6 -22
- data/lib/stack_one/models/operations/stackone_get_connector_meta_request.rb +27 -0
- data/lib/stack_one/models/operations/stackone_get_connector_meta_response.rb +33 -0
- data/lib/stack_one/models/operations/stackone_list_connectors_meta_request.rb +24 -0
- data/lib/stack_one/models/operations/stackone_list_connectors_meta_response.rb +33 -0
- data/lib/stack_one/models/operations/stackone_list_linked_accounts_request.rb +27 -0
- data/lib/stack_one/models/operations/stackone_list_linked_accounts_response.rb +33 -0
- data/lib/stack_one/models/operations/stackone_proxy_request_request.rb +27 -0
- data/lib/stack_one/models/operations/stackone_proxy_request_response.rb +30 -0
- data/lib/stack_one/models/operations/stackone_update_account_request.rb +27 -0
- data/lib/stack_one/models/operations/stackone_update_account_response.rb +33 -0
- data/lib/stack_one/models/operations.rb +79 -0
- data/lib/stack_one/models/shared/avatar.rb +27 -0
- data/lib/stack_one/models/shared/body.rb +20 -0
- data/lib/stack_one/models/shared/categories.rb +23 -0
- data/lib/stack_one/models/shared/category.rb +23 -0
- data/lib/stack_one/models/shared/companiespaginated.rb +33 -0
- data/lib/stack_one/models/shared/company.rb +36 -0
- data/lib/stack_one/models/shared/companyresult.rb +27 -0
- data/lib/stack_one/models/shared/connectorsmeta.rb +39 -0
- data/lib/stack_one/models/shared/connectsession.rb +54 -0
- data/lib/{stackone → stack_one}/models/shared/connectsessionauthenticate.rb +3 -4
- data/lib/stack_one/models/shared/connectsessioncreate.rb +51 -0
- data/lib/stack_one/models/shared/connectsessioncreate_categories.rb +23 -0
- data/lib/stack_one/models/shared/connectsessiontoken.rb +57 -0
- data/lib/stack_one/models/shared/connectsessiontoken_categories.rb +23 -0
- data/lib/{stackone → stack_one}/models/shared/content.rb +4 -6
- data/lib/{stackone → stack_one}/models/shared/costcenters.rb +4 -5
- data/lib/stack_one/models/shared/country.rb +27 -0
- data/lib/stack_one/models/shared/countrycodeenum.rb +27 -0
- data/lib/stack_one/models/shared/createemployeeresult.rb +30 -0
- data/lib/stack_one/models/shared/createtimeoffresult.rb +30 -0
- data/lib/stack_one/models/shared/credentials.rb +20 -0
- data/lib/stack_one/models/shared/document.rb +39 -0
- data/lib/stack_one/models/shared/documentapimodel.rb +42 -0
- data/lib/stack_one/models/shared/documentapimodel_value.rb +28 -0
- data/lib/stack_one/models/shared/documentresult.rb +27 -0
- data/lib/stack_one/models/shared/documentspaginated.rb +33 -0
- data/lib/stack_one/models/shared/employee.rb +135 -0
- data/lib/stack_one/models/shared/employee_country.rb +27 -0
- data/lib/stack_one/models/shared/employee_location_type.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_country.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/employee_schemas_ethnicity_value.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_gender_value.rb +24 -0
- data/lib/stack_one/models/shared/employee_schemas_home_location_location_type_value.rb +20 -0
- data/lib/stack_one/models/shared/employee_schemas_home_location_value.rb +266 -0
- data/lib/stack_one/models/shared/employee_schemas_location_type.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_marital_status_value.rb +27 -0
- data/lib/stack_one/models/shared/employee_schemas_value.rb +24 -0
- data/lib/stack_one/models/shared/employee_schemas_work_location_location_type_value.rb +20 -0
- data/lib/stack_one/models/shared/employee_schemas_work_location_value.rb +266 -0
- data/lib/stack_one/models/shared/employee_value.rb +21 -0
- data/lib/stack_one/models/shared/employeecustomfields.rb +42 -0
- data/lib/stack_one/models/shared/employeecustomfields_schemas_value.rb +23 -0
- data/lib/stack_one/models/shared/employeecustomfields_type.rb +27 -0
- data/lib/stack_one/models/shared/employeecustomfields_value.rb +20 -0
- data/lib/stack_one/models/shared/employeeresult.rb +27 -0
- data/lib/stack_one/models/shared/employeespaginated.rb +33 -0
- data/lib/stack_one/models/shared/employment.rb +57 -0
- data/lib/stack_one/models/shared/employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/employment_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/employment_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/employment_schemas_pay_frequency_value.rb +33 -0
- data/lib/stack_one/models/shared/employment_schemas_pay_period_value.rb +26 -0
- data/lib/stack_one/models/shared/employment_schemas_value.rb +33 -0
- data/lib/stack_one/models/shared/employment_status.rb +27 -0
- data/lib/stack_one/models/shared/employment_type.rb +27 -0
- data/lib/stack_one/models/shared/employment_value.rb +21 -0
- data/lib/stack_one/models/shared/employmentresult.rb +27 -0
- data/lib/stack_one/models/shared/employmentspaginated.rb +33 -0
- data/lib/stack_one/models/shared/ethnicity.rb +27 -0
- data/lib/stack_one/models/shared/fileformatenum.rb +27 -0
- data/lib/stack_one/models/shared/fileformatenum_value.rb +34 -0
- data/lib/stack_one/models/shared/gender.rb +27 -0
- data/lib/stack_one/models/shared/headers.rb +20 -0
- data/lib/stack_one/models/shared/home_location.rb +60 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto.rb +117 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_avatar.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_country.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_contract_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_status.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_ethnicity.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_gender.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_home_location.rb +45 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_marital_status.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_country.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_employment_type_value.rb +33 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_ethnicity_value.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_gender_value.rb +24 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_state_value.rb +3841 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_home_location_value.rb +266 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_marital_status_value.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_value.rb +24 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_state_value.rb +3841 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_schemas_work_location_value.rb +266 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_state.rb +27 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_value.rb +21 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_work_location.rb +45 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto.rb +39 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_schemas_value.rb +20 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_type.rb +27 -0
- data/lib/stack_one/models/shared/hriscreatetimeoffrequestdto_value.rb +19 -0
- data/lib/stack_one/models/shared/hrislocation.rb +60 -0
- data/lib/stack_one/models/shared/hrislocation_schemas_value.rb +20 -0
- data/lib/{stackone/models/shared/hrislocation.rb → stack_one/models/shared/hrislocation_value.rb} +1 -96
- data/lib/stack_one/models/shared/hrislocationresult.rb +27 -0
- data/lib/stack_one/models/shared/hrislocationspaginated.rb +33 -0
- data/lib/stack_one/models/shared/images.rb +27 -0
- data/lib/stack_one/models/shared/job_description.rb +24 -0
- data/lib/stack_one/models/shared/linkedaccount.rb +54 -0
- data/lib/stack_one/models/shared/linkedaccountmeta.rb +30 -0
- data/lib/stack_one/models/shared/linkedaccountmeta_category.rb +23 -0
- data/lib/stack_one/models/shared/location_type.rb +27 -0
- data/lib/stack_one/models/shared/marital_status.rb +27 -0
- data/lib/stack_one/models/shared/metadata.rb +20 -0
- data/lib/stack_one/models/shared/method.rb +22 -0
- data/lib/{stackone → stack_one}/models/shared/patchaccountdto.rb +1 -2
- data/lib/stack_one/models/shared/pay_frequency.rb +27 -0
- data/lib/stack_one/models/shared/pay_period.rb +27 -0
- data/lib/stack_one/models/shared/proxyrequestbody.rb +36 -0
- data/lib/stack_one/models/shared/rawresponse.rb +33 -0
- data/lib/stack_one/models/shared/resources.rb +24 -0
- data/lib/stack_one/models/shared/response.rb +20 -0
- data/lib/stack_one/models/shared/security.rb +27 -0
- data/lib/stack_one/models/shared/setup_information.rb +20 -0
- data/lib/stack_one/models/shared/state.rb +27 -0
- data/lib/stack_one/models/shared/status.rb +27 -0
- data/lib/stack_one/models/shared/timeoff.rb +48 -0
- data/lib/stack_one/models/shared/timeoff_schemas_value.rb +20 -0
- data/lib/stack_one/models/shared/timeoff_status.rb +27 -0
- data/lib/stack_one/models/shared/timeoff_type.rb +27 -0
- data/lib/stack_one/models/shared/timeoff_value.rb +19 -0
- data/lib/stack_one/models/shared/timeoffpaginated.rb +33 -0
- data/lib/stack_one/models/shared/timeoffresult.rb +27 -0
- data/lib/stack_one/models/shared/type.rb +27 -0
- data/lib/{stackone/models/shared/countrycodeenum.rb → stack_one/models/shared/value.rb} +1 -19
- data/lib/stack_one/models/shared/work_location.rb +60 -0
- data/lib/stack_one/models/shared/workeligibility.rb +42 -0
- data/lib/stack_one/models/shared/workeligibility_type.rb +27 -0
- data/lib/stack_one/models/shared/workeligibility_value.rb +22 -0
- data/lib/stack_one/models/shared.rb +139 -0
- data/lib/{stackone → stack_one}/proxy.rb +6 -4
- data/lib/{stackone → stack_one}/sdkconfiguration.rb +4 -4
- data/lib/{stackone/sdk.rb → stack_one/stackone.rb} +1 -1
- data/lib/stackone_client.rb +11 -79
- metadata +213 -80
- data/lib/stackone/models/operations/hris_create_employee.rb +0 -53
- data/lib/stackone/models/operations/hris_create_employee_time_off_request.rb +0 -56
- data/lib/stackone/models/operations/hris_create_time_off_request.rb +0 -53
- data/lib/stackone/models/operations/hris_get_company.rb +0 -88
- data/lib/stackone/models/operations/hris_get_employee.rb +0 -94
- data/lib/stackone/models/operations/hris_get_employee_document.rb +0 -91
- data/lib/stackone/models/operations/hris_get_employees_time_off_request.rb +0 -91
- data/lib/stackone/models/operations/hris_get_employment.rb +0 -88
- data/lib/stackone/models/operations/hris_get_location.rb +0 -88
- data/lib/stackone/models/operations/hris_get_time_off_request.rb +0 -88
- data/lib/stackone/models/operations/hris_list_companies.rb +0 -85
- data/lib/stackone/models/operations/hris_list_employee_documents.rb +0 -88
- data/lib/stackone/models/operations/hris_list_employee_time_off_requests.rb +0 -88
- data/lib/stackone/models/operations/hris_list_employees.rb +0 -91
- data/lib/stackone/models/operations/hris_list_employments.rb +0 -85
- data/lib/stackone/models/operations/hris_list_locations.rb +0 -85
- data/lib/stackone/models/operations/hris_list_time_off_requests.rb +0 -85
- data/lib/stackone/models/operations/hris_update_employee.rb +0 -56
- data/lib/stackone/models/operations/hris_update_time_off_request.rb +0 -56
- data/lib/stackone/models/operations/stackone_get_connector_meta.rb +0 -52
- data/lib/stackone/models/operations/stackone_list_connectors_meta.rb +0 -48
- data/lib/stackone/models/operations/stackone_list_linked_accounts.rb +0 -51
- data/lib/stackone/models/operations/stackone_proxy_request.rb +0 -49
- data/lib/stackone/models/operations/stackone_update_account.rb +0 -53
- data/lib/stackone/models/shared/companiespaginated.rb +0 -34
- data/lib/stackone/models/shared/company.rb +0 -37
- data/lib/stackone/models/shared/companyresult.rb +0 -29
- data/lib/stackone/models/shared/connectorsmeta.rb +0 -84
- data/lib/stackone/models/shared/connectsession.rb +0 -68
- data/lib/stackone/models/shared/connectsessioncreate.rb +0 -75
- data/lib/stackone/models/shared/connectsessiontoken.rb +0 -71
- data/lib/stackone/models/shared/createemployeeresult.rb +0 -31
- data/lib/stackone/models/shared/createtimeoffresult.rb +0 -31
- data/lib/stackone/models/shared/documentapimodel.rb +0 -44
- data/lib/stackone/models/shared/documentresult.rb +0 -29
- data/lib/stackone/models/shared/documentspaginated.rb +0 -34
- data/lib/stackone/models/shared/documenttypeenum.rb +0 -40
- data/lib/stackone/models/shared/employee.rb +0 -1065
- data/lib/stackone/models/shared/employeecustomfields.rb +0 -83
- data/lib/stackone/models/shared/employeeresult.rb +0 -29
- data/lib/stackone/models/shared/employeespaginated.rb +0 -34
- data/lib/stackone/models/shared/employment.rb +0 -199
- data/lib/stackone/models/shared/employmentresult.rb +0 -29
- data/lib/stackone/models/shared/employmentspaginated.rb +0 -34
- data/lib/stackone/models/shared/fileformatenum.rb +0 -52
- data/lib/stackone/models/shared/hriscreateemployeerequestdto.rb +0 -8645
- data/lib/stackone/models/shared/hriscreatetimeoffrequestdto.rb +0 -93
- data/lib/stackone/models/shared/hrislocationresult.rb +0 -29
- data/lib/stackone/models/shared/hrislocationspaginated.rb +0 -34
- data/lib/stackone/models/shared/linkedaccount.rb +0 -75
- data/lib/stackone/models/shared/linkedaccountmeta.rb +0 -44
- data/lib/stackone/models/shared/proxyrequestbody.rb +0 -69
- data/lib/stackone/models/shared/rawresponse.rb +0 -44
- data/lib/stackone/models/shared/security.rb +0 -28
- data/lib/stackone/models/shared/timeoff.rb +0 -102
- data/lib/stackone/models/shared/timeoffpaginated.rb +0 -34
- data/lib/stackone/models/shared/timeoffresult.rb +0 -29
- data/lib/stackone/models/shared/workeligibility.rb +0 -101
- /data/lib/{stackone → stack_one}/utils/metadata_fields.rb +0 -0
- /data/lib/{stackone → stack_one}/utils/utils.rb +0 -0
@@ -10,17 +10,19 @@ require 'sorbet-runtime'
|
|
10
10
|
module StackOne
|
11
11
|
extend T::Sig
|
12
12
|
class Hris
|
13
|
-
|
14
13
|
extend T::Sig
|
14
|
+
|
15
|
+
|
15
16
|
sig { params(sdk_config: SDKConfiguration).void }
|
16
17
|
def initialize(sdk_config)
|
17
18
|
@sdk_configuration = sdk_config
|
18
19
|
end
|
19
20
|
|
20
|
-
|
21
|
+
|
22
|
+
sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, x_account_id: ::String).returns(Utils::FieldAugmented) }
|
21
23
|
def create_employee(hris_create_employee_request_dto, x_account_id)
|
22
24
|
# create_employee - Creates an employee
|
23
|
-
request = Operations::HrisCreateEmployeeRequest.new(
|
25
|
+
request = ::StackOne::Operations::HrisCreateEmployeeRequest.new(
|
24
26
|
|
25
27
|
hris_create_employee_request_dto: hris_create_employee_request_dto,
|
26
28
|
x_account_id: x_account_id
|
@@ -49,12 +51,12 @@ module StackOne
|
|
49
51
|
|
50
52
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
51
53
|
|
52
|
-
res = Operations::HrisCreateEmployeeResponse.new(
|
54
|
+
res = ::StackOne::Operations::HrisCreateEmployeeResponse.new(
|
53
55
|
status_code: r.status, content_type: content_type, raw_response: r
|
54
56
|
)
|
55
57
|
if r.status == 201
|
56
58
|
if Utils.match_content_type(content_type, 'application/json')
|
57
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::CreateEmployeeResult)
|
59
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateEmployeeResult)
|
58
60
|
res.create_employee_result = out
|
59
61
|
end
|
60
62
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -62,10 +64,11 @@ module StackOne
|
|
62
64
|
res
|
63
65
|
end
|
64
66
|
|
65
|
-
|
67
|
+
|
68
|
+
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).returns(Utils::FieldAugmented) }
|
66
69
|
def create_employee_time_off_request(hris_create_time_off_request_dto, id, x_account_id)
|
67
70
|
# create_employee_time_off_request - Create Employee Time Off Request
|
68
|
-
request = Operations::HrisCreateEmployeeTimeOffRequestRequest.new(
|
71
|
+
request = ::StackOne::Operations::HrisCreateEmployeeTimeOffRequestRequest.new(
|
69
72
|
|
70
73
|
hris_create_time_off_request_dto: hris_create_time_off_request_dto,
|
71
74
|
id: id,
|
@@ -74,7 +77,7 @@ module StackOne
|
|
74
77
|
url, params = @sdk_configuration.get_server_details
|
75
78
|
base_url = Utils.template_url(url, params)
|
76
79
|
url = Utils.generate_url(
|
77
|
-
Operations::HrisCreateEmployeeTimeOffRequestRequest,
|
80
|
+
::StackOne::Operations::HrisCreateEmployeeTimeOffRequestRequest,
|
78
81
|
base_url,
|
79
82
|
'/unified/hris/employees/{id}/time_off',
|
80
83
|
request
|
@@ -100,12 +103,12 @@ module StackOne
|
|
100
103
|
|
101
104
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
102
105
|
|
103
|
-
res = Operations::HrisCreateEmployeeTimeOffRequestResponse.new(
|
106
|
+
res = ::StackOne::Operations::HrisCreateEmployeeTimeOffRequestResponse.new(
|
104
107
|
status_code: r.status, content_type: content_type, raw_response: r
|
105
108
|
)
|
106
109
|
if r.status == 201
|
107
110
|
if Utils.match_content_type(content_type, 'application/json')
|
108
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::CreateTimeOffResult)
|
111
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateTimeOffResult)
|
109
112
|
res.create_time_off_result = out
|
110
113
|
end
|
111
114
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -113,10 +116,11 @@ module StackOne
|
|
113
116
|
res
|
114
117
|
end
|
115
118
|
|
116
|
-
|
119
|
+
|
120
|
+
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, x_account_id: ::String).returns(Utils::FieldAugmented) }
|
117
121
|
def create_time_off_request(hris_create_time_off_request_dto, x_account_id)
|
118
122
|
# create_time_off_request - Creates a time off request
|
119
|
-
request = Operations::HrisCreateTimeOffRequestRequest.new(
|
123
|
+
request = ::StackOne::Operations::HrisCreateTimeOffRequestRequest.new(
|
120
124
|
|
121
125
|
hris_create_time_off_request_dto: hris_create_time_off_request_dto,
|
122
126
|
x_account_id: x_account_id
|
@@ -145,12 +149,12 @@ module StackOne
|
|
145
149
|
|
146
150
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
147
151
|
|
148
|
-
res = Operations::HrisCreateTimeOffRequestResponse.new(
|
152
|
+
res = ::StackOne::Operations::HrisCreateTimeOffRequestResponse.new(
|
149
153
|
status_code: r.status, content_type: content_type, raw_response: r
|
150
154
|
)
|
151
155
|
if r.status == 201
|
152
156
|
if Utils.match_content_type(content_type, 'application/json')
|
153
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::CreateTimeOffResult)
|
157
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateTimeOffResult)
|
154
158
|
res.create_time_off_result = out
|
155
159
|
end
|
156
160
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -158,19 +162,20 @@ module StackOne
|
|
158
162
|
res
|
159
163
|
end
|
160
164
|
|
161
|
-
|
165
|
+
|
166
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetCompanyRequest)).returns(Utils::FieldAugmented) }
|
162
167
|
def get_company(request)
|
163
168
|
# get_company - Get Company
|
164
169
|
url, params = @sdk_configuration.get_server_details
|
165
170
|
base_url = Utils.template_url(url, params)
|
166
171
|
url = Utils.generate_url(
|
167
|
-
Operations::HrisGetCompanyRequest,
|
172
|
+
::StackOne::Operations::HrisGetCompanyRequest,
|
168
173
|
base_url,
|
169
174
|
'/unified/hris/companies/{id}',
|
170
175
|
request
|
171
176
|
)
|
172
177
|
headers = Utils.get_headers(request)
|
173
|
-
query_params = Utils.get_query_params(Operations::HrisGetCompanyRequest, request)
|
178
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetCompanyRequest, request)
|
174
179
|
headers['Accept'] = 'application/json'
|
175
180
|
headers['user-agent'] = @sdk_configuration.user_agent
|
176
181
|
|
@@ -182,12 +187,12 @@ module StackOne
|
|
182
187
|
|
183
188
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
184
189
|
|
185
|
-
res = Operations::HrisGetCompanyResponse.new(
|
190
|
+
res = ::StackOne::Operations::HrisGetCompanyResponse.new(
|
186
191
|
status_code: r.status, content_type: content_type, raw_response: r
|
187
192
|
)
|
188
193
|
if r.status == 200
|
189
194
|
if Utils.match_content_type(content_type, 'application/json')
|
190
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::CompanyResult)
|
195
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CompanyResult)
|
191
196
|
res.company_result = out
|
192
197
|
end
|
193
198
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -195,19 +200,20 @@ module StackOne
|
|
195
200
|
res
|
196
201
|
end
|
197
202
|
|
198
|
-
|
203
|
+
|
204
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeRequest)).returns(Utils::FieldAugmented) }
|
199
205
|
def get_employee(request)
|
200
206
|
# get_employee - Get Employee
|
201
207
|
url, params = @sdk_configuration.get_server_details
|
202
208
|
base_url = Utils.template_url(url, params)
|
203
209
|
url = Utils.generate_url(
|
204
|
-
Operations::HrisGetEmployeeRequest,
|
210
|
+
::StackOne::Operations::HrisGetEmployeeRequest,
|
205
211
|
base_url,
|
206
212
|
'/unified/hris/employees/{id}',
|
207
213
|
request
|
208
214
|
)
|
209
215
|
headers = Utils.get_headers(request)
|
210
|
-
query_params = Utils.get_query_params(Operations::HrisGetEmployeeRequest, request)
|
216
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeRequest, request)
|
211
217
|
headers['Accept'] = 'application/json'
|
212
218
|
headers['user-agent'] = @sdk_configuration.user_agent
|
213
219
|
|
@@ -219,12 +225,12 @@ module StackOne
|
|
219
225
|
|
220
226
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
221
227
|
|
222
|
-
res = Operations::HrisGetEmployeeResponse.new(
|
228
|
+
res = ::StackOne::Operations::HrisGetEmployeeResponse.new(
|
223
229
|
status_code: r.status, content_type: content_type, raw_response: r
|
224
230
|
)
|
225
231
|
if r.status == 200
|
226
232
|
if Utils.match_content_type(content_type, 'application/json')
|
227
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::EmployeeResult)
|
233
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmployeeResult)
|
228
234
|
res.employee_result = out
|
229
235
|
end
|
230
236
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -232,19 +238,20 @@ module StackOne
|
|
232
238
|
res
|
233
239
|
end
|
234
240
|
|
235
|
-
|
241
|
+
|
242
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeeDocumentRequest)).returns(Utils::FieldAugmented) }
|
236
243
|
def get_employee_document(request)
|
237
244
|
# get_employee_document - Get Employee Document
|
238
245
|
url, params = @sdk_configuration.get_server_details
|
239
246
|
base_url = Utils.template_url(url, params)
|
240
247
|
url = Utils.generate_url(
|
241
|
-
Operations::HrisGetEmployeeDocumentRequest,
|
248
|
+
::StackOne::Operations::HrisGetEmployeeDocumentRequest,
|
242
249
|
base_url,
|
243
250
|
'/unified/hris/employees/{id}/documents/{subResourceId}',
|
244
251
|
request
|
245
252
|
)
|
246
253
|
headers = Utils.get_headers(request)
|
247
|
-
query_params = Utils.get_query_params(Operations::HrisGetEmployeeDocumentRequest, request)
|
254
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeeDocumentRequest, request)
|
248
255
|
headers['Accept'] = 'application/json'
|
249
256
|
headers['user-agent'] = @sdk_configuration.user_agent
|
250
257
|
|
@@ -256,12 +263,12 @@ module StackOne
|
|
256
263
|
|
257
264
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
258
265
|
|
259
|
-
res = Operations::HrisGetEmployeeDocumentResponse.new(
|
266
|
+
res = ::StackOne::Operations::HrisGetEmployeeDocumentResponse.new(
|
260
267
|
status_code: r.status, content_type: content_type, raw_response: r
|
261
268
|
)
|
262
269
|
if r.status == 200
|
263
270
|
if Utils.match_content_type(content_type, 'application/json')
|
264
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::DocumentResult)
|
271
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::DocumentResult)
|
265
272
|
res.document_result = out
|
266
273
|
end
|
267
274
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -269,19 +276,20 @@ module StackOne
|
|
269
276
|
res
|
270
277
|
end
|
271
278
|
|
272
|
-
|
279
|
+
|
280
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest)).returns(Utils::FieldAugmented) }
|
273
281
|
def get_employees_time_off_request(request)
|
274
282
|
# get_employees_time_off_request - Get Employees Time Off Request
|
275
283
|
url, params = @sdk_configuration.get_server_details
|
276
284
|
base_url = Utils.template_url(url, params)
|
277
285
|
url = Utils.generate_url(
|
278
|
-
Operations::HrisGetEmployeesTimeOffRequestRequest,
|
286
|
+
::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest,
|
279
287
|
base_url,
|
280
288
|
'/unified/hris/employees/{id}/time_off/{subResourceId}',
|
281
289
|
request
|
282
290
|
)
|
283
291
|
headers = Utils.get_headers(request)
|
284
|
-
query_params = Utils.get_query_params(Operations::HrisGetEmployeesTimeOffRequestRequest, request)
|
292
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmployeesTimeOffRequestRequest, request)
|
285
293
|
headers['Accept'] = 'application/json'
|
286
294
|
headers['user-agent'] = @sdk_configuration.user_agent
|
287
295
|
|
@@ -293,12 +301,12 @@ module StackOne
|
|
293
301
|
|
294
302
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
295
303
|
|
296
|
-
res = Operations::HrisGetEmployeesTimeOffRequestResponse.new(
|
304
|
+
res = ::StackOne::Operations::HrisGetEmployeesTimeOffRequestResponse.new(
|
297
305
|
status_code: r.status, content_type: content_type, raw_response: r
|
298
306
|
)
|
299
307
|
if r.status == 200
|
300
308
|
if Utils.match_content_type(content_type, 'application/json')
|
301
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::TimeOffResult)
|
309
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TimeOffResult)
|
302
310
|
res.time_off_result = out
|
303
311
|
end
|
304
312
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -306,19 +314,20 @@ module StackOne
|
|
306
314
|
res
|
307
315
|
end
|
308
316
|
|
309
|
-
|
317
|
+
|
318
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetEmploymentRequest)).returns(Utils::FieldAugmented) }
|
310
319
|
def get_employment(request)
|
311
320
|
# get_employment - Get Employment
|
312
321
|
url, params = @sdk_configuration.get_server_details
|
313
322
|
base_url = Utils.template_url(url, params)
|
314
323
|
url = Utils.generate_url(
|
315
|
-
Operations::HrisGetEmploymentRequest,
|
324
|
+
::StackOne::Operations::HrisGetEmploymentRequest,
|
316
325
|
base_url,
|
317
326
|
'/unified/hris/employments/{id}',
|
318
327
|
request
|
319
328
|
)
|
320
329
|
headers = Utils.get_headers(request)
|
321
|
-
query_params = Utils.get_query_params(Operations::HrisGetEmploymentRequest, request)
|
330
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetEmploymentRequest, request)
|
322
331
|
headers['Accept'] = 'application/json'
|
323
332
|
headers['user-agent'] = @sdk_configuration.user_agent
|
324
333
|
|
@@ -330,12 +339,12 @@ module StackOne
|
|
330
339
|
|
331
340
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
332
341
|
|
333
|
-
res = Operations::HrisGetEmploymentResponse.new(
|
342
|
+
res = ::StackOne::Operations::HrisGetEmploymentResponse.new(
|
334
343
|
status_code: r.status, content_type: content_type, raw_response: r
|
335
344
|
)
|
336
345
|
if r.status == 200
|
337
346
|
if Utils.match_content_type(content_type, 'application/json')
|
338
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::EmploymentResult)
|
347
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmploymentResult)
|
339
348
|
res.employment_result = out
|
340
349
|
end
|
341
350
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -343,19 +352,20 @@ module StackOne
|
|
343
352
|
res
|
344
353
|
end
|
345
354
|
|
346
|
-
|
355
|
+
|
356
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetLocationRequest)).returns(Utils::FieldAugmented) }
|
347
357
|
def get_location(request)
|
348
358
|
# get_location - Get Location
|
349
359
|
url, params = @sdk_configuration.get_server_details
|
350
360
|
base_url = Utils.template_url(url, params)
|
351
361
|
url = Utils.generate_url(
|
352
|
-
Operations::HrisGetLocationRequest,
|
362
|
+
::StackOne::Operations::HrisGetLocationRequest,
|
353
363
|
base_url,
|
354
364
|
'/unified/hris/locations/{id}',
|
355
365
|
request
|
356
366
|
)
|
357
367
|
headers = Utils.get_headers(request)
|
358
|
-
query_params = Utils.get_query_params(Operations::HrisGetLocationRequest, request)
|
368
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetLocationRequest, request)
|
359
369
|
headers['Accept'] = 'application/json'
|
360
370
|
headers['user-agent'] = @sdk_configuration.user_agent
|
361
371
|
|
@@ -367,12 +377,12 @@ module StackOne
|
|
367
377
|
|
368
378
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
369
379
|
|
370
|
-
res = Operations::HrisGetLocationResponse.new(
|
380
|
+
res = ::StackOne::Operations::HrisGetLocationResponse.new(
|
371
381
|
status_code: r.status, content_type: content_type, raw_response: r
|
372
382
|
)
|
373
383
|
if r.status == 200
|
374
384
|
if Utils.match_content_type(content_type, 'application/json')
|
375
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::HRISLocationResult)
|
385
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISLocationResult)
|
376
386
|
res.hris_location_result = out
|
377
387
|
end
|
378
388
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -380,19 +390,20 @@ module StackOne
|
|
380
390
|
res
|
381
391
|
end
|
382
392
|
|
383
|
-
|
393
|
+
|
394
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisGetTimeOffRequestRequest)).returns(Utils::FieldAugmented) }
|
384
395
|
def get_time_off_request(request)
|
385
396
|
# get_time_off_request - Get time off request
|
386
397
|
url, params = @sdk_configuration.get_server_details
|
387
398
|
base_url = Utils.template_url(url, params)
|
388
399
|
url = Utils.generate_url(
|
389
|
-
Operations::HrisGetTimeOffRequestRequest,
|
400
|
+
::StackOne::Operations::HrisGetTimeOffRequestRequest,
|
390
401
|
base_url,
|
391
402
|
'/unified/hris/time_off/{id}',
|
392
403
|
request
|
393
404
|
)
|
394
405
|
headers = Utils.get_headers(request)
|
395
|
-
query_params = Utils.get_query_params(Operations::HrisGetTimeOffRequestRequest, request)
|
406
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisGetTimeOffRequestRequest, request)
|
396
407
|
headers['Accept'] = 'application/json'
|
397
408
|
headers['user-agent'] = @sdk_configuration.user_agent
|
398
409
|
|
@@ -404,12 +415,12 @@ module StackOne
|
|
404
415
|
|
405
416
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
406
417
|
|
407
|
-
res = Operations::HrisGetTimeOffRequestResponse.new(
|
418
|
+
res = ::StackOne::Operations::HrisGetTimeOffRequestResponse.new(
|
408
419
|
status_code: r.status, content_type: content_type, raw_response: r
|
409
420
|
)
|
410
421
|
if r.status == 200
|
411
422
|
if Utils.match_content_type(content_type, 'application/json')
|
412
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::TimeOffResult)
|
423
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TimeOffResult)
|
413
424
|
res.time_off_result = out
|
414
425
|
end
|
415
426
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -417,14 +428,15 @@ module StackOne
|
|
417
428
|
res
|
418
429
|
end
|
419
430
|
|
420
|
-
|
431
|
+
|
432
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListCompaniesRequest)).returns(Utils::FieldAugmented) }
|
421
433
|
def list_companies(request)
|
422
434
|
# list_companies - List Companies
|
423
435
|
url, params = @sdk_configuration.get_server_details
|
424
436
|
base_url = Utils.template_url(url, params)
|
425
437
|
url = "#{base_url}/unified/hris/companies"
|
426
438
|
headers = Utils.get_headers(request)
|
427
|
-
query_params = Utils.get_query_params(Operations::HrisListCompaniesRequest, request)
|
439
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListCompaniesRequest, request)
|
428
440
|
headers['Accept'] = 'application/json'
|
429
441
|
headers['user-agent'] = @sdk_configuration.user_agent
|
430
442
|
|
@@ -436,12 +448,12 @@ module StackOne
|
|
436
448
|
|
437
449
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
438
450
|
|
439
|
-
res = Operations::HrisListCompaniesResponse.new(
|
451
|
+
res = ::StackOne::Operations::HrisListCompaniesResponse.new(
|
440
452
|
status_code: r.status, content_type: content_type, raw_response: r
|
441
453
|
)
|
442
454
|
if r.status == 200
|
443
455
|
if Utils.match_content_type(content_type, 'application/json')
|
444
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::CompaniesPaginated)
|
456
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CompaniesPaginated)
|
445
457
|
res.companies_paginated = out
|
446
458
|
end
|
447
459
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -449,19 +461,20 @@ module StackOne
|
|
449
461
|
res
|
450
462
|
end
|
451
463
|
|
452
|
-
|
464
|
+
|
465
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeDocumentsRequest)).returns(Utils::FieldAugmented) }
|
453
466
|
def list_employee_documents(request)
|
454
467
|
# list_employee_documents - List Employee Documents
|
455
468
|
url, params = @sdk_configuration.get_server_details
|
456
469
|
base_url = Utils.template_url(url, params)
|
457
470
|
url = Utils.generate_url(
|
458
|
-
Operations::HrisListEmployeeDocumentsRequest,
|
471
|
+
::StackOne::Operations::HrisListEmployeeDocumentsRequest,
|
459
472
|
base_url,
|
460
473
|
'/unified/hris/employees/{id}/documents',
|
461
474
|
request
|
462
475
|
)
|
463
476
|
headers = Utils.get_headers(request)
|
464
|
-
query_params = Utils.get_query_params(Operations::HrisListEmployeeDocumentsRequest, request)
|
477
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeDocumentsRequest, request)
|
465
478
|
headers['Accept'] = 'application/json'
|
466
479
|
headers['user-agent'] = @sdk_configuration.user_agent
|
467
480
|
|
@@ -473,12 +486,12 @@ module StackOne
|
|
473
486
|
|
474
487
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
475
488
|
|
476
|
-
res = Operations::HrisListEmployeeDocumentsResponse.new(
|
489
|
+
res = ::StackOne::Operations::HrisListEmployeeDocumentsResponse.new(
|
477
490
|
status_code: r.status, content_type: content_type, raw_response: r
|
478
491
|
)
|
479
492
|
if r.status == 200
|
480
493
|
if Utils.match_content_type(content_type, 'application/json')
|
481
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::DocumentsPaginated)
|
494
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::DocumentsPaginated)
|
482
495
|
res.documents_paginated = out
|
483
496
|
end
|
484
497
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -486,19 +499,20 @@ module StackOne
|
|
486
499
|
res
|
487
500
|
end
|
488
501
|
|
489
|
-
|
502
|
+
|
503
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeeTimeOffRequestsRequest)).returns(Utils::FieldAugmented) }
|
490
504
|
def list_employee_time_off_requests(request)
|
491
505
|
# list_employee_time_off_requests - List Employee Time Off Requests
|
492
506
|
url, params = @sdk_configuration.get_server_details
|
493
507
|
base_url = Utils.template_url(url, params)
|
494
508
|
url = Utils.generate_url(
|
495
|
-
Operations::HrisListEmployeeTimeOffRequestsRequest,
|
509
|
+
::StackOne::Operations::HrisListEmployeeTimeOffRequestsRequest,
|
496
510
|
base_url,
|
497
511
|
'/unified/hris/employees/{id}/time_off',
|
498
512
|
request
|
499
513
|
)
|
500
514
|
headers = Utils.get_headers(request)
|
501
|
-
query_params = Utils.get_query_params(Operations::HrisListEmployeeTimeOffRequestsRequest, request)
|
515
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeeTimeOffRequestsRequest, request)
|
502
516
|
headers['Accept'] = 'application/json'
|
503
517
|
headers['user-agent'] = @sdk_configuration.user_agent
|
504
518
|
|
@@ -510,12 +524,12 @@ module StackOne
|
|
510
524
|
|
511
525
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
512
526
|
|
513
|
-
res = Operations::HrisListEmployeeTimeOffRequestsResponse.new(
|
527
|
+
res = ::StackOne::Operations::HrisListEmployeeTimeOffRequestsResponse.new(
|
514
528
|
status_code: r.status, content_type: content_type, raw_response: r
|
515
529
|
)
|
516
530
|
if r.status == 200
|
517
531
|
if Utils.match_content_type(content_type, 'application/json')
|
518
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::TimeOffPaginated)
|
532
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TimeOffPaginated)
|
519
533
|
res.time_off_paginated = out
|
520
534
|
end
|
521
535
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -523,14 +537,15 @@ module StackOne
|
|
523
537
|
res
|
524
538
|
end
|
525
539
|
|
526
|
-
|
540
|
+
|
541
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmployeesRequest)).returns(Utils::FieldAugmented) }
|
527
542
|
def list_employees(request)
|
528
543
|
# list_employees - List Employees
|
529
544
|
url, params = @sdk_configuration.get_server_details
|
530
545
|
base_url = Utils.template_url(url, params)
|
531
546
|
url = "#{base_url}/unified/hris/employees"
|
532
547
|
headers = Utils.get_headers(request)
|
533
|
-
query_params = Utils.get_query_params(Operations::HrisListEmployeesRequest, request)
|
548
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmployeesRequest, request)
|
534
549
|
headers['Accept'] = 'application/json'
|
535
550
|
headers['user-agent'] = @sdk_configuration.user_agent
|
536
551
|
|
@@ -542,12 +557,12 @@ module StackOne
|
|
542
557
|
|
543
558
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
544
559
|
|
545
|
-
res = Operations::HrisListEmployeesResponse.new(
|
560
|
+
res = ::StackOne::Operations::HrisListEmployeesResponse.new(
|
546
561
|
status_code: r.status, content_type: content_type, raw_response: r
|
547
562
|
)
|
548
563
|
if r.status == 200
|
549
564
|
if Utils.match_content_type(content_type, 'application/json')
|
550
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::EmployeesPaginated)
|
565
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmployeesPaginated)
|
551
566
|
res.employees_paginated = out
|
552
567
|
end
|
553
568
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -555,14 +570,15 @@ module StackOne
|
|
555
570
|
res
|
556
571
|
end
|
557
572
|
|
558
|
-
|
573
|
+
|
574
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListEmploymentsRequest)).returns(Utils::FieldAugmented) }
|
559
575
|
def list_employments(request)
|
560
576
|
# list_employments - List Employments
|
561
577
|
url, params = @sdk_configuration.get_server_details
|
562
578
|
base_url = Utils.template_url(url, params)
|
563
579
|
url = "#{base_url}/unified/hris/employments"
|
564
580
|
headers = Utils.get_headers(request)
|
565
|
-
query_params = Utils.get_query_params(Operations::HrisListEmploymentsRequest, request)
|
581
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListEmploymentsRequest, request)
|
566
582
|
headers['Accept'] = 'application/json'
|
567
583
|
headers['user-agent'] = @sdk_configuration.user_agent
|
568
584
|
|
@@ -574,12 +590,12 @@ module StackOne
|
|
574
590
|
|
575
591
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
576
592
|
|
577
|
-
res = Operations::HrisListEmploymentsResponse.new(
|
593
|
+
res = ::StackOne::Operations::HrisListEmploymentsResponse.new(
|
578
594
|
status_code: r.status, content_type: content_type, raw_response: r
|
579
595
|
)
|
580
596
|
if r.status == 200
|
581
597
|
if Utils.match_content_type(content_type, 'application/json')
|
582
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::EmploymentsPaginated)
|
598
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::EmploymentsPaginated)
|
583
599
|
res.employments_paginated = out
|
584
600
|
end
|
585
601
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -587,14 +603,15 @@ module StackOne
|
|
587
603
|
res
|
588
604
|
end
|
589
605
|
|
590
|
-
|
606
|
+
|
607
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListLocationsRequest)).returns(Utils::FieldAugmented) }
|
591
608
|
def list_locations(request)
|
592
609
|
# list_locations - List locations
|
593
610
|
url, params = @sdk_configuration.get_server_details
|
594
611
|
base_url = Utils.template_url(url, params)
|
595
612
|
url = "#{base_url}/unified/hris/locations"
|
596
613
|
headers = Utils.get_headers(request)
|
597
|
-
query_params = Utils.get_query_params(Operations::HrisListLocationsRequest, request)
|
614
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListLocationsRequest, request)
|
598
615
|
headers['Accept'] = 'application/json'
|
599
616
|
headers['user-agent'] = @sdk_configuration.user_agent
|
600
617
|
|
@@ -606,12 +623,12 @@ module StackOne
|
|
606
623
|
|
607
624
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
608
625
|
|
609
|
-
res = Operations::HrisListLocationsResponse.new(
|
626
|
+
res = ::StackOne::Operations::HrisListLocationsResponse.new(
|
610
627
|
status_code: r.status, content_type: content_type, raw_response: r
|
611
628
|
)
|
612
629
|
if r.status == 200
|
613
630
|
if Utils.match_content_type(content_type, 'application/json')
|
614
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::HRISLocationsPaginated)
|
631
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::HRISLocationsPaginated)
|
615
632
|
res.hris_locations_paginated = out
|
616
633
|
end
|
617
634
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -619,14 +636,15 @@ module StackOne
|
|
619
636
|
res
|
620
637
|
end
|
621
638
|
|
622
|
-
|
639
|
+
|
640
|
+
sig { params(request: T.nilable(::StackOne::Operations::HrisListTimeOffRequestsRequest)).returns(Utils::FieldAugmented) }
|
623
641
|
def list_time_off_requests(request)
|
624
642
|
# list_time_off_requests - List time off requests
|
625
643
|
url, params = @sdk_configuration.get_server_details
|
626
644
|
base_url = Utils.template_url(url, params)
|
627
645
|
url = "#{base_url}/unified/hris/time_off"
|
628
646
|
headers = Utils.get_headers(request)
|
629
|
-
query_params = Utils.get_query_params(Operations::HrisListTimeOffRequestsRequest, request)
|
647
|
+
query_params = Utils.get_query_params(::StackOne::Operations::HrisListTimeOffRequestsRequest, request)
|
630
648
|
headers['Accept'] = 'application/json'
|
631
649
|
headers['user-agent'] = @sdk_configuration.user_agent
|
632
650
|
|
@@ -638,12 +656,12 @@ module StackOne
|
|
638
656
|
|
639
657
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
640
658
|
|
641
|
-
res = Operations::HrisListTimeOffRequestsResponse.new(
|
659
|
+
res = ::StackOne::Operations::HrisListTimeOffRequestsResponse.new(
|
642
660
|
status_code: r.status, content_type: content_type, raw_response: r
|
643
661
|
)
|
644
662
|
if r.status == 200
|
645
663
|
if Utils.match_content_type(content_type, 'application/json')
|
646
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::TimeOffPaginated)
|
664
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::TimeOffPaginated)
|
647
665
|
res.time_off_paginated = out
|
648
666
|
end
|
649
667
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -651,10 +669,11 @@ module StackOne
|
|
651
669
|
res
|
652
670
|
end
|
653
671
|
|
654
|
-
|
672
|
+
|
673
|
+
sig { params(hris_create_employee_request_dto: ::StackOne::Shared::HrisCreateEmployeeRequestDto, id: ::String, x_account_id: ::String).returns(Utils::FieldAugmented) }
|
655
674
|
def update_employee(hris_create_employee_request_dto, id, x_account_id)
|
656
675
|
# update_employee - Updates an employee
|
657
|
-
request = Operations::HrisUpdateEmployeeRequest.new(
|
676
|
+
request = ::StackOne::Operations::HrisUpdateEmployeeRequest.new(
|
658
677
|
|
659
678
|
hris_create_employee_request_dto: hris_create_employee_request_dto,
|
660
679
|
id: id,
|
@@ -663,7 +682,7 @@ module StackOne
|
|
663
682
|
url, params = @sdk_configuration.get_server_details
|
664
683
|
base_url = Utils.template_url(url, params)
|
665
684
|
url = Utils.generate_url(
|
666
|
-
Operations::HrisUpdateEmployeeRequest,
|
685
|
+
::StackOne::Operations::HrisUpdateEmployeeRequest,
|
667
686
|
base_url,
|
668
687
|
'/unified/hris/employees/{id}',
|
669
688
|
request
|
@@ -689,12 +708,12 @@ module StackOne
|
|
689
708
|
|
690
709
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
691
710
|
|
692
|
-
res = Operations::HrisUpdateEmployeeResponse.new(
|
711
|
+
res = ::StackOne::Operations::HrisUpdateEmployeeResponse.new(
|
693
712
|
status_code: r.status, content_type: content_type, raw_response: r
|
694
713
|
)
|
695
714
|
if r.status == 200
|
696
715
|
if Utils.match_content_type(content_type, 'application/json')
|
697
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::CreateEmployeeResult)
|
716
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateEmployeeResult)
|
698
717
|
res.create_employee_result = out
|
699
718
|
end
|
700
719
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|
@@ -702,10 +721,11 @@ module StackOne
|
|
702
721
|
res
|
703
722
|
end
|
704
723
|
|
705
|
-
|
724
|
+
|
725
|
+
sig { params(hris_create_time_off_request_dto: ::StackOne::Shared::HrisCreateTimeOffRequestDto, id: ::String, x_account_id: ::String).returns(Utils::FieldAugmented) }
|
706
726
|
def update_time_off_request(hris_create_time_off_request_dto, id, x_account_id)
|
707
727
|
# update_time_off_request - Update time off request
|
708
|
-
request = Operations::HrisUpdateTimeOffRequestRequest.new(
|
728
|
+
request = ::StackOne::Operations::HrisUpdateTimeOffRequestRequest.new(
|
709
729
|
|
710
730
|
hris_create_time_off_request_dto: hris_create_time_off_request_dto,
|
711
731
|
id: id,
|
@@ -714,7 +734,7 @@ module StackOne
|
|
714
734
|
url, params = @sdk_configuration.get_server_details
|
715
735
|
base_url = Utils.template_url(url, params)
|
716
736
|
url = Utils.generate_url(
|
717
|
-
Operations::HrisUpdateTimeOffRequestRequest,
|
737
|
+
::StackOne::Operations::HrisUpdateTimeOffRequestRequest,
|
718
738
|
base_url,
|
719
739
|
'/unified/hris/time_off/{id}',
|
720
740
|
request
|
@@ -740,12 +760,12 @@ module StackOne
|
|
740
760
|
|
741
761
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
742
762
|
|
743
|
-
res = Operations::HrisUpdateTimeOffRequestResponse.new(
|
763
|
+
res = ::StackOne::Operations::HrisUpdateTimeOffRequestResponse.new(
|
744
764
|
status_code: r.status, content_type: content_type, raw_response: r
|
745
765
|
)
|
746
766
|
if r.status == 200
|
747
767
|
if Utils.match_content_type(content_type, 'application/json')
|
748
|
-
out = Utils.unmarshal_complex(r.env.response_body, Shared::CreateTimeOffResult)
|
768
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::StackOne::Shared::CreateTimeOffResult)
|
749
769
|
res.create_time_off_result = out
|
750
770
|
end
|
751
771
|
elsif [400, 403, 412, 429, 500, 501].include?(r.status)
|