code: function(connectionInfo, processPagedResults) {
    var args = {
      page: {value: 1},//{value: 25},
      pageSize: {value: 200}
    };
    // set a default function if none is provided
    if (!processPagedResults) {
      processPagedResults = function(pagedData, previousData){
        if (previousData && previousData.length>0) {
          if (pagedData.consignments.length>0) {
            log.debug('previousData: ', previousData.length);
            pagedData.consignments = pagedData.consignments.concat(previousData);
            log.debug('combined: ', pagedData.consignments.length);
          }
          else {
            pagedData.consignments = previousData;
          }
        }
        return Promise.resolve(pagedData.consignments);
      };
    }
    return utils.processPagesRecursively(args, connectionInfo, fetchStockOrdersForSuppliers, processPagedResults);
  }
docs: TODO: need to add a test