diff --git a/src/index.js b/src/index.js index 2a5371e9aa49fbb719ea54d31ecaa00917a1bc33..d9b374d91b849653ecca341689014fba68f3bd89 100644 --- a/src/index.js +++ b/src/index.js @@ -23,7 +23,7 @@ const { userMaxPower, userMesureDetailles, rechercherPoint, - activateDataCollect, + commanderCollectePublicationMesures, stopDataCollect, getInseeCode, updateBoConsent, @@ -88,7 +88,7 @@ async function start(fields, cozyParameters) { // loginUtilisateur, // fields.pointId // ) - await activateDataCollect() + await commanderCollectePublicationMesures() await updateBoConsent() } else { await getBoConsent() diff --git a/src/request.js b/src/request.js index 9fcae3bf986f879ea1cce6af96fdb41249964912..273fb6f356a12c97f21d440d7017eb7c7e0486c5 100644 --- a/src/request.js +++ b/src/request.js @@ -145,7 +145,7 @@ function rechercherPoint(appLogin, name, postalCode, inseeCode, address) { * @returns {*} */ function searchServiceSouscrit(appLogin, contractId, pointId) { - log('info', `Query activateDataCollect`) + log('info', `Query commanderCollectePublicationMesures`) return `<?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://www.enedis.fr/sge/b2b/rechercherservicessouscritsmesures/v1.0" @@ -173,7 +173,7 @@ function searchServiceSouscrit(appLogin, contractId, pointId) { * @param {string} endDate * @returns {*} */ -function activateDataCollect( +function commanderCollectePublicationMesures( appLogin, contractId, pointId, @@ -181,7 +181,7 @@ function activateDataCollect( startDate, endDate ) { - log('info', `Query activateDataCollect`) + log('info', `Query commanderCollectePublicationMesures`) return `<?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://www.enedis.fr/sge/b2b/commandercollectepublicationmesures/v3.0" @@ -304,7 +304,7 @@ module.exports = { userMesureDetailles, rechercherPoint, searchServiceSouscrit, - activateDataCollect, + commanderCollectePublicationMesures, stopDataCollect, getInseeCode, createBoConsent,