code: function(args, connectionInfo){
    if ( !(args && utils.argsAreValid(args)) ) {
      return Promise.reject('missing required arguments for fetchPaginationInfo()');
    }
    return fetchProducts(args, connectionInfo)
      .then(function(result){
  
        // HACK - until Vend responses become consistent
        if (result && result.results && !result.pagination) {
          result.pagination = {
            'results': result.results,
            'page': result.page,
            'page_size': result.page_size,
            'pages': result.pages,
          }; // NOTE: if the first page has all the results, this block won't run then either
        }
  
        return (result && result.pagination) ? Promise.resolve(result.pagination) : Promise.resolve();
      });
  }
docs: TODO: Should this be deprecated? Since, we have moved on to vend api version 2.0?