def add_rfr_request(options, path = (File.dirname(@path_to_batches)))

      rfrrequest = LitleRFRRequest.new
      if(options['litleSessionId']) then
        rfrrequest.litleSessionId = options['litleSessionId']
      elsif(options['merchantId'] and options['postDay']) then
        accountUpdate = AccountUpdateFileRequestData.new
        accountUpdate.merchantId = options['merchantId']
        accountUpdate.postDay = options['postDay']
        rfrrequest.accountUpdateFileRequestData = accountUpdate
      else
        raise ArgumentError, "For an RFR Request, you must specify either a litleSessionId for an RFRRequest for batch or a merchantId
        and a postDay for an RFRRequest for account updater."
      end

      litleRequest = LitleRequestForRFR.new
      litleRequest.rfrRequest = rfrrequest

      authentication = Authentication.new
      authentication.user = get_config(:user, options)
      authentication.password = get_config(:password, options)

      litleRequest.authentication = authentication
      litleRequest.numBatchRequests = "0"

      litleRequest.version         = '11.4'
      litleRequest.xmlns           = "http://www.litle.com/schema"


      xml = litleRequest.save_to_xml.to_s

      ts = Time::now.to_i.to_s
      begin
        ts += Time::now.nsec.to_s
      rescue NoMethodError # ruby 1.8.7 fix
        ts += Time::now.usec.to_s
      end
      if(File.file?(path)) then
        raise RuntimeError, "Entered a file not a path."
      end

      if(path[-1,1] != '/' and path[-1,1] != '\\') then
        path = path + File::SEPARATOR
      end

      if !File.directory?(path) then
        Dir.mkdir(path)
      end

      path_to_request = path + REQUEST_FILE_PREFIX + ts

      File.open(path_to_request, 'a+') do |file|
        file.write xml
      end
      File.rename(path_to_request, path_to_request + COMPLETE_FILE_SUFFIX)
      @RESPONSE_TIME_OUT += 90
    end
def add_rfr_request(options, path = (File.dirname(@path_to_batches)))

      rfrrequest = LitleRFRRequest.new
      if(options['litleSessionId']) then
        rfrrequest.litleSessionId = options['litleSessionId']
      elsif(options['merchantId'] and options['postDay']) then
        accountUpdate = AccountUpdateFileRequestData.new
        accountUpdate.merchantId = options['merchantId']
        accountUpdate.postDay = options['postDay']
        rfrrequest.accountUpdateFileRequestData = accountUpdate
      else
        raise ArgumentError, "For an RFR Request, you must specify either a litleSessionId for an RFRRequest for batch or a merchantId
        and a postDay for an RFRRequest for account updater."
      end

      litleRequest = LitleRequestForRFR.new
      litleRequest.rfrRequest = rfrrequest

      authentication = Authentication.new
      authentication.user = get_config(:user, options)
      authentication.password = get_config(:password, options)

      litleRequest.authentication = authentication
      litleRequest.numBatchRequests = "0"

      litleRequest.version         = '11.4'
      litleRequest.xmlns           = "http://www.litle.com/schema"


      xml = litleRequest.save_to_xml.to_s

      ts = Time::now.to_i.to_s
      begin
        ts += Time::now.nsec.to_s
      rescue NoMethodError # ruby 1.8.7 fix
        ts += Time::now.usec.to_s
      end
      if(File.file?(path)) then
        raise RuntimeError, "Entered a file not a path."
      end

      if(path[-1,1] != '/' and path[-1,1] != '\\') then
        path = path + File::SEPARATOR
      end

      if !File.directory?(path) then
        Dir.mkdir(path)
      end

      path_to_request = path + REQUEST_FILE_PREFIX + ts

      File.open(path_to_request, 'a+') do |file|
        file.write xml
      end
      File.rename(path_to_request, path_to_request + COMPLETE_FILE_SUFFIX)
      @RESPONSE_TIME_OUT += 90
    end
Adds an RFRRequest to the LitleRequest.
 params:
 +options+:: a required +Hash+ containing configuration info for the RFRRequest. If the RFRRequest is for a batch, then the
 litleSessionId is required as a key/val pair. If the RFRRequest is for account updater, then merchantId and postDay are required
 as key/val pairs.
 +path+:: optional path to save the new litle request containing the RFRRequest at