lib/fattureincloud_ruby_sdk/api/taxes_api.rb
# List F24
# Lists the F24s.
# @param company_id [Integer] The ID of the company.
# @param [Hash] opts the optional parameters
# @option opts [String] :fields List of comma-separated fields.
# @option opts [String] :fieldset Name of the fieldset.
# @option opts [String] :sort List of comma-separated fields for result sorting (minus for desc sorting).
# @option opts [Integer] :page The page to retrieve.
# @option opts [Integer] :per_page The size of the page.
# @option opts [String] :q Query for filtering the results.
# @return [Array<(ListF24Response, Integer, Hash)>] ListF24Response data, response status code and response headers
List F24
Lists the F24s.
List F24 Lists the F24s .
def list_f24_with_http_info(company_id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: TaxesApi.list_f24 ...'
      end
      if @api_client.config.client_side_validation && company_id.nil?
        fail ArgumentError, "Missing the required parameter 'company_id' when calling TaxesApi.list_f24"
      end
      allowable_values = ["basic", "detailed"]
      if @api_client.config.client_side_validation && opts[:'fieldset'] && !allowable_values.include?(opts[:'fieldset'])
        fail ArgumentError, "invalid value for \"fieldset\", must be one of #{allowable_values}"
      end
      local_var_path = '/c/{company_id}/taxes'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
      query_params = opts[:query_params] || {}
      query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
      query_params[:'fieldset'] = opts[:'fieldset'] if !opts[:'fieldset'].nil?
      query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
      query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
      query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
      query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
      header_params = opts[:header_params] || {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      form_params = opts[:form_params] || {}
      post_body = opts[:debug_body]
      return_type = opts[:debug_return_type] || 'ListF24Response'
      auth_names = opts[:debug_auth_names] || ['OAuth2AuthenticationCodeFlow']
      new_options = opts.merge(
        :operation => :"TaxesApi.list_f24",
        :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(:GET, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: TaxesApi#list_f24\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def list_f24_with_http_info ( company_id , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: TaxesApi.list_f24 ...' end if @api_client . config . client_side_validation && company_id . nil? fail ArgumentError , "Missing the required parameter 'company_id' when calling TaxesApi.list_f24" end allowable_values = [ "basic" , "detailed" ] if @api_client . config . client_side_validation && opts [ :' fieldset ' ] && ! allowable_values . include? ( opts [ :' fieldset ' ] ) fail ArgumentError , "invalid value for \"fieldset\", must be one of #{allowable_values}" end local_var_path = '/c/{company_id}/taxes' . sub ( '{' + 'company_id' + '}' , CGI . escape ( company_id . to_s ) ) query_params = opts [ :query_params ] || { } query_params [ :' fields ' ] = opts [ :' fields ' ] if ! opts [ :' fields ' ] . nil? query_params [ :' fieldset ' ] = opts [ :' fieldset ' ] if ! opts [ :' fieldset ' ] . nil? query_params [ :' sort ' ] = opts [ :' sort ' ] if ! opts [ :' sort ' ] . nil? query_params [ :' page ' ] = opts [ :' page ' ] if ! opts [ :' page ' ] . nil? query_params [ :' per_page ' ] = opts [ :' per_page ' ] if ! opts [ :' per_page ' ] . nil? query_params [ :' q ' ] = opts [ :' q ' ] if ! opts [ :' q ' ] . nil? header_params = opts [ :header_params ] || { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) form_params = opts [ :form_params ] || { } post_body = opts [ :debug_body ] return_type = opts [ :debug_return_type ] || 'ListF24Response' auth_names = opts [ :debug_auth_names ] || [ 'OAuth2AuthenticationCodeFlow' ] new_options = opts . merge ( :operation => :" TaxesApi.list_f24 " , :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 ( :GET , local_var_path , new_options ) if @api_client . config . debugging @api_client . config . logger . debug "API called: TaxesApi#list_f24\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
List F24
Lists the F24s.
List F24 Lists the F24s .
# verify the required parameter 'company_id' is set # resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model) # return_type # auth_names
ListF24Response data, response status code and response headers
ListF24Response data response status code and response headers
Array<(ListF24Response, Integer, Hash)>
company_id
The ID of the company.
The ID of the company .
opts
:q Query for filtering the results.
: q Query for filtering the results .
opts the optional parameters
opts the optional parameters