def perform(checks, check_data = {})
      # check_data = Callcredit::Validator.clean_check_data(check_data)
      response = @connection.get do |request|
        request.path = @config[:api_endpoint]
        request.body = build_request_xml(checks, check_data).to_s
      end
      @config[:raw] ? response : response.body
    rescue Faraday::Error::ClientError => e
      if e.response.nil?
        raise APIError.new
      else
        raise APIError.new(e.response[:body], e.response[:status], e.response)
      end
    end
def perform(checks, check_data = {})
      # check_data = Callcredit::Validator.clean_check_data(check_data)
      response = @connection.get do |request|
        request.path = @config[:api_endpoint]
        request.body = build_request_xml(checks, check_data).to_s
      end
      @config[:raw] ? response : response.body
    rescue Faraday::Error::ClientError => e
      if e.response.nil?
        raise APIError.new
      else
        raise APIError.new(e.response[:body], e.response[:status], e.response)
      end
    end
Perform a credit check