lib/fattureincloud_ruby_sdk/api/received_documents_api.rb
# Delete Received Document Attachment
# Removes the attachment of the specified document.
# @param company_id [Integer] The ID of the company.
# @param document_id [Integer] The ID of the document.
# @param [Hash] opts the optional parameters
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
Delete Received Document Attachment
Removes the attachment of the specified document.
Delete Received Document Attachment Removes the attachment of the specified document .
def delete_received_document_attachment_with_http_info(company_id, document_id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: ReceivedDocumentsApi.delete_received_document_attachment ...'
      end
      if @api_client.config.client_side_validation && company_id.nil?
        fail ArgumentError, "Missing the required parameter 'company_id' when calling ReceivedDocumentsApi.delete_received_document_attachment"
      end
      if @api_client.config.client_side_validation && document_id.nil?
        fail ArgumentError, "Missing the required parameter 'document_id' when calling ReceivedDocumentsApi.delete_received_document_attachment"
      end
      local_var_path = '/c/{company_id}/received_documents/{document_id}/attachment'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s)).sub('{' + 'document_id' + '}', CGI.escape(document_id.to_s))
      query_params = opts[:query_params] || {}
      header_params = opts[:header_params] || {}
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type]
      auth_names = opts[:debug_auth_names] || ['OAuth2AuthenticationCodeFlow']
      new_options = opts.merge(
        :operation => :"ReceivedDocumentsApi.delete_received_document_attachment",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )
      data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: ReceivedDocumentsApi#delete_received_document_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def delete_received_document_attachment_with_http_info ( company_id , document_id , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: ReceivedDocumentsApi.delete_received_document_attachment ...' end if @api_client . config . client_side_validation && company_id . nil? fail ArgumentError , "Missing the required parameter 'company_id' when calling ReceivedDocumentsApi.delete_received_document_attachment" end if @api_client . config . client_side_validation && document_id . nil? fail ArgumentError , "Missing the required parameter 'document_id' when calling ReceivedDocumentsApi.delete_received_document_attachment" end local_var_path = '/c/{company_id}/received_documents/{document_id}/attachment' . sub ( '{' + 'company_id' + '}' , CGI . escape ( company_id . to_s ) ) . sub ( '{' + 'document_id' + '}' , CGI . escape ( document_id . to_s ) ) query_params = opts [ :query_params ] || { } header_params = opts [ :header_params ] || { } form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] auth_names = opts [ :debug_auth_names ] || [ 'OAuth2AuthenticationCodeFlow' ] new_options = opts . merge ( :operation => :" ReceivedDocumentsApi.delete_received_document_attachment " , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => return_type ) data , status_code , headers = @api_client . call_api ( :DELETE , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: ReceivedDocumentsApi#delete_received_document_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Delete Received Document Attachment
Removes the attachment of the specified document.
Delete Received Document Attachment Removes the attachment of the specified document .
# verify the required parameter 'company_id' is set # verify the required parameter 'document_id' is set # resource path # query parameters # header parameters # form parameters # http body (model) # return_type # auth_names
nil, response status code and response headers
nil response status code and response headers
Array<(nil, Integer, Hash)>
company_id
The ID of the company.
The ID of the company .
document_id
The ID of the document.
The ID of the document .
opts
opts the optional parameters
opts the optional parameters