lib/fattureincloud_ruby_sdk/api/info_api.rb
def list_vat_types_with_http_info(company_id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: InfoApi.list_vat_types ...'
      end
      # verify the required parameter 'company_id' is set
      if @api_client.config.client_side_validation && company_id.nil?
        fail ArgumentError, "Missing the required parameter 'company_id' when calling InfoApi.list_vat_types"
      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
      # resource path
      local_var_path = '/c/{company_id}/info/vat_types'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))

      # query parameters
      query_params = opts[:query_params] || {}
      query_params[:'fieldset'] = opts[:'fieldset'] if !opts[:'fieldset'].nil?

      # header parameters
      header_params = opts[:header_params] || {}
      # HTTP header 'Accept' (if needed)
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])

      # form parameters
      form_params = opts[:form_params] || {}

      # http body (model)
      post_body = opts[:debug_body]

      # return_type
      return_type = opts[:debug_return_type] || 'ListVatTypesResponse'

      # auth_names
      auth_names = opts[:debug_auth_names] || ['OAuth2AuthenticationCodeFlow']

      new_options = opts.merge(
        :operation => :"InfoApi.list_vat_types",
        :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: InfoApi#list_vat_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
# List Vat Types
# Lists the available vat types.
# @param company_id [Integer] The ID of the company.
# @param [Hash] opts the optional parameters
# @option opts [String] :fieldset Name of the fieldset.
# @return [Array<(ListVatTypesResponse, Integer, Hash)>] ListVatTypesResponse data, response status code and response headers
List Vat Types
Lists the available vat types.
List Vat Types Lists the available vat types .
def list_vat_types_with_http_info(company_id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: InfoApi.list_vat_types ...'
      end
      if @api_client.config.client_side_validation && company_id.nil?
        fail ArgumentError, "Missing the required parameter 'company_id' when calling InfoApi.list_vat_types"
      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}/info/vat_types'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
      query_params = opts[:query_params] || {}
      query_params[:'fieldset'] = opts[:'fieldset'] if !opts[:'fieldset'].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] || 'ListVatTypesResponse'
      auth_names = opts[:debug_auth_names] || ['OAuth2AuthenticationCodeFlow']
      new_options = opts.merge(
        :operation => :"InfoApi.list_vat_types",
        :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: InfoApi#list_vat_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def list_vat_types_with_http_info ( company_id , opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: InfoApi.list_vat_types ...' end if @api_client . config . client_side_validation && company_id . nil? fail ArgumentError , "Missing the required parameter 'company_id' when calling InfoApi.list_vat_types" 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}/info/vat_types' . sub ( '{' + 'company_id' + '}' , CGI . escape ( company_id . to_s ) ) query_params = opts [ :query_params ] || { } query_params [ :' fieldset ' ] = opts [ :' fieldset ' ] if ! opts [ :' fieldset ' ] . 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 ] || 'ListVatTypesResponse' auth_names = opts [ :debug_auth_names ] || [ 'OAuth2AuthenticationCodeFlow' ] new_options = opts . merge ( :operation => :" InfoApi.list_vat_types " , :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: InfoApi#list_vat_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
List Vat Types
Lists the available vat types.
List Vat Types Lists the available vat types .
# 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
ListVatTypesResponse data, response status code and response headers
ListVatTypesResponse data response status code and response headers
Array<(ListVatTypesResponse, Integer, Hash)>
company_id
The ID of the company.
The ID of the company .
opts
:fieldset Name of the fieldset.
: fieldset Name of the fieldset .
opts the optional parameters
opts the optional parameters