diff --git a/src/index.js b/src/index.js index 68d211a490e59f26b6bc53ec15e0e356b37d48ec..86e0d8a021e887998a4212d3c650367f8b04d50f 100644 --- a/src/index.js +++ b/src/index.js @@ -24,7 +24,7 @@ const { consultationMesuresDetaillees, rechercherPoint, commanderCollectePublicationMesures, - stopDataCollect, + commanderArretServiceSouscritMesures, getInseeCode, updateBoConsent, createBoConsent, @@ -94,7 +94,7 @@ async function start(fields, cozyParameters) { await getBoConsent() if (!(await verifyUserIdentity(fields))) { await deleteBoConsent() - await stopDataCollect() + await commanderArretServiceSouscritMesures() throw errors.TERMS_VERSION_MISMATCH } } diff --git a/src/request.js b/src/request.js index 4d5f3bf76b2f6dc3d9311e468fb6fda477395a24..b4e7f8f11e4b0a03d3562f90abec7a531f1d01a8 100644 --- a/src/request.js +++ b/src/request.js @@ -158,7 +158,7 @@ function rechercherPoint(appLogin, name, postalCode, inseeCode, address) { * @param {string} pointId * @returns {*} */ -function searchServiceSouscrit(appLogin, contractId, pointId) { +function rechercherServicesSouscritsMesures(appLogin, contractId, pointId) { log('info', `Query commanderCollectePublicationMesures`) return `<?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" @@ -241,8 +241,13 @@ function commanderCollectePublicationMesures( * @param {string} serviceSouscritId * @returns {*} */ -function stopDataCollect(appLogin, contractId, pointId, serviceSouscritId) { - log('info', `Query stopDataCollect`) +function commanderArretServiceSouscritMesures( + appLogin, + contractId, + pointId, + serviceSouscritId +) { + log('info', `Query commanderArretServiceSouscritMesures`) 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/commanderarretservicesouscritmesures/v1.0" @@ -317,9 +322,9 @@ module.exports = { consultationMesuresDetailleesMaxPower, consultationMesuresDetaillees, rechercherPoint, - searchServiceSouscrit, + rechercherServicesSouscritsMesures, commanderCollectePublicationMesures, - stopDataCollect, + commanderArretServiceSouscritMesures, getInseeCode, createBoConsent, updateBoConsent,