lib/stack_one/hris.rb in stackone_client-0.2.18 vs lib/stack_one/hris.rb in stackone_client-0.2.26
- old
+ new
@@ -1132,16 +1132,16 @@
end
res
end
- sig { params(unified_upload_request_dto: ::StackOne::Shared::UnifiedUploadRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUploadEmployeeDocumentResponse) }
- def upload_employee_document(unified_upload_request_dto, id, x_account_id)
+ sig { params(hris_documents_upload_request_dto: ::StackOne::Shared::HrisDocumentsUploadRequestDto, id: ::String, x_account_id: ::String).returns(::StackOne::Operations::HrisUploadEmployeeDocumentResponse) }
+ def upload_employee_document(hris_documents_upload_request_dto, id, x_account_id)
# upload_employee_document - Upload Employee Document
request = ::StackOne::Operations::HrisUploadEmployeeDocumentRequest.new(
- unified_upload_request_dto: unified_upload_request_dto,
+ hris_documents_upload_request_dto: hris_documents_upload_request_dto,
id: id,
x_account_id: x_account_id
)
url, params = @sdk_configuration.get_server_details
base_url = Utils.template_url(url, params)
@@ -1150,10 +1150,10 @@
base_url,
'/unified/hris/employees/{id}/documents/upload',
request
)
headers = Utils.get_headers(request)
- req_content_type, data, form = Utils.serialize_request_body(request, :unified_upload_request_dto, :json)
+ req_content_type, data, form = Utils.serialize_request_body(request, :hris_documents_upload_request_dto, :json)
headers['content-type'] = req_content_type
raise StandardError, 'request body is required' if data.nil? && form.nil?
headers['Accept'] = 'application/json'
headers['user-agent'] = @sdk_configuration.user_agent