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
......@@ -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
}
}
......
......@@ -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,
......
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