From 6846b000364db9b24d0f8a587b1abe2f72475d2d Mon Sep 17 00:00:00 2001 From: Bastien DUMONT <bdumont@grandlyon.com> Date: Mon, 1 Aug 2022 14:10:14 +0200 Subject: [PATCH] feat: commanderArretServiceSouscritMesures --- src/index.js | 4 ++-- src/request.js | 15 ++++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/index.js b/src/index.js index 68d211a..86e0d8a 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 4d5f3bf..b4e7f8f 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, -- GitLab