Skip to content
Snippets Groups Projects
Commit 6846b000 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

feat: commanderArretServiceSouscritMesures

parent 4c4f0226
No related branches found
No related tags found
1 merge request!7Feat/rename endpoints
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
...@@ -24,7 +24,7 @@ const { ...@@ -24,7 +24,7 @@ const {
consultationMesuresDetaillees, consultationMesuresDetaillees,
rechercherPoint, rechercherPoint,
commanderCollectePublicationMesures, commanderCollectePublicationMesures,
stopDataCollect, commanderArretServiceSouscritMesures,
getInseeCode, getInseeCode,
updateBoConsent, updateBoConsent,
createBoConsent, createBoConsent,
...@@ -94,7 +94,7 @@ async function start(fields, cozyParameters) { ...@@ -94,7 +94,7 @@ async function start(fields, cozyParameters) {
await getBoConsent() await getBoConsent()
if (!(await verifyUserIdentity(fields))) { if (!(await verifyUserIdentity(fields))) {
await deleteBoConsent() await deleteBoConsent()
await stopDataCollect() await commanderArretServiceSouscritMesures()
throw errors.TERMS_VERSION_MISMATCH throw errors.TERMS_VERSION_MISMATCH
} }
} }
......
...@@ -158,7 +158,7 @@ function rechercherPoint(appLogin, name, postalCode, inseeCode, address) { ...@@ -158,7 +158,7 @@ function rechercherPoint(appLogin, name, postalCode, inseeCode, address) {
* @param {string} pointId * @param {string} pointId
* @returns {*} * @returns {*}
*/ */
function searchServiceSouscrit(appLogin, contractId, pointId) { function rechercherServicesSouscritsMesures(appLogin, contractId, pointId) {
log('info', `Query commanderCollectePublicationMesures`) log('info', `Query commanderCollectePublicationMesures`)
return `<?xml version='1.0' encoding='utf-8'?> return `<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
...@@ -241,8 +241,13 @@ function commanderCollectePublicationMesures( ...@@ -241,8 +241,13 @@ function commanderCollectePublicationMesures(
* @param {string} serviceSouscritId * @param {string} serviceSouscritId
* @returns {*} * @returns {*}
*/ */
function stopDataCollect(appLogin, contractId, pointId, serviceSouscritId) { function commanderArretServiceSouscritMesures(
log('info', `Query stopDataCollect`) appLogin,
contractId,
pointId,
serviceSouscritId
) {
log('info', `Query commanderArretServiceSouscritMesures`)
return `<?xml version='1.0' encoding='utf-8'?> return `<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:v2="http://www.enedis.fr/sge/b2b/commanderarretservicesouscritmesures/v1.0" xmlns:v2="http://www.enedis.fr/sge/b2b/commanderarretservicesouscritmesures/v1.0"
...@@ -317,9 +322,9 @@ module.exports = { ...@@ -317,9 +322,9 @@ module.exports = {
consultationMesuresDetailleesMaxPower, consultationMesuresDetailleesMaxPower,
consultationMesuresDetaillees, consultationMesuresDetaillees,
rechercherPoint, rechercherPoint,
searchServiceSouscrit, rechercherServicesSouscritsMesures,
commanderCollectePublicationMesures, commanderCollectePublicationMesures,
stopDataCollect, commanderArretServiceSouscritMesures,
getInseeCode, getInseeCode,
createBoConsent, createBoConsent,
updateBoConsent, updateBoConsent,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment