code: function(bodyObject, args, connectionInfo, callback, retryCounter) {
    if(retryCounter<3) {
      var retryAfter = 5*60*1000; // by default Vend will never block for more than 5 minutes
      retryAfter = Math.max(moment(bodyObject['retry-after']).diff(moment()), 0);
      //retryAfter = 5000; // for sanity testing counter increments quickly
      log.debug('retry after: ' + retryAfter + ' ms');
  
      return Promise.delay(retryAfter)
        .then(function() {
          log.debug(retryAfter + ' ms have passed...');
          return callback(args, connectionInfo, ++retryCounter);
        });
    }
  }
docs: TODO: Should we reuse the following library instead of rolling our own implementation here?
  https://github.com/you21979/node-limit-request-promise
  
  @param bodyObject
  @param connectionInfo - contains tokens and domainPrefix
  @param retryCounter
  @param callback
  @returns {*|Parse.Promise}