diff --git a/src/core/contractActivation.js b/src/core/contractActivation.js index aa24d5115304684b288781b2e51129fd78278b86..fcb3fb98c6aff45c6b9c3c2095a2a64253b91b7c 100644 --- a/src/core/contractActivation.js +++ b/src/core/contractActivation.js @@ -10,7 +10,7 @@ const Sentry = require('@sentry/node') * @param {string} url * @param {string} apiAuthKey * @param {string} appLogin - * @param {string} name + * @param {string} lastname * @param {number} pointId * @param {string} startDate * @param {string} endDate @@ -21,7 +21,7 @@ async function activateContract( apiAuthKey, appLogin, contractId, - name, + lastname, pointId, startDate, endDate @@ -39,7 +39,7 @@ async function activateContract( appLogin, contractId, pointId, - name, + lastname, startDate, endDate ), diff --git a/src/core/findUserPdl.js b/src/core/findUserPdl.js index 7b41735f5a6672b033259fae40212711dcda0d95..4af3a6d77c2bedcbc4830cfc7cb904e0b5242abb 100644 --- a/src/core/findUserPdl.js +++ b/src/core/findUserPdl.js @@ -10,7 +10,7 @@ const Sentry = require('@sentry/node') * @param {string} url * @param {string} apiAuthKey * @param {string} appLogin - * @param {string} name + * @param {string} lastname * @param {string} address * @param {string} postalCode * @param {string} inseeCode @@ -20,7 +20,7 @@ async function findUserPdl( url, apiAuthKey, appLogin, - name, + lastname, address, postalCode, inseeCode, @@ -37,7 +37,7 @@ async function findUserPdl( headers: sgeHeaders, xml: rechercherPoint( appLogin, - name, + lastname, postalCode, inseeCode, address, diff --git a/src/helpers/parsing.js b/src/helpers/parsing.js index dcb95325c49ef8a575bae3690b0758adc68fb38a..d1c46388ad2f1488ff32b019c1ccb5926aa38940 100644 --- a/src/helpers/parsing.js +++ b/src/helpers/parsing.js @@ -114,7 +114,7 @@ function checkContractExists(parsedReply) { } /** - * Format tag in order to be manipulated easly + * Format tag in order to be manipulated easily * @param {string} name * @returns {string} name */ diff --git a/src/requests/sge.js b/src/requests/sge.js index 9fc48f6c771f8049a057f7e063ab270c10ee201f..41599dc13ff43f4fa2f2763524603806bd4fb97d 100644 --- a/src/requests/sge.js +++ b/src/requests/sge.js @@ -126,7 +126,7 @@ function consulterDonneesTechniquesContractuelles( /** * Use rechercherPoint to find user PDL if exist - * @param {string} name + * @param {string} lastname * @param {string} postalCode * @param {string} inseeCode * @param {string} address @@ -135,7 +135,7 @@ function consulterDonneesTechniquesContractuelles( */ function rechercherPoint( appLogin, - name, + lastname, postalCode, inseeCode, address, @@ -160,7 +160,7 @@ function rechercherPoint( <codePostal>${postalCode}</codePostal> <codeInseeCommune>${inseeCode}</codeInseeCommune> </adresseInstallation> - <nomClientFinalOuDenominationSociale>${name}</nomClientFinalOuDenominationSociale> + <nomClientFinalOuDenominationSociale>${lastname}</nomClientFinalOuDenominationSociale> <rechercheHorsPerimetre>true</rechercheHorsPerimetre> </criteres> <loginUtilisateur>${appLogin}</loginUtilisateur> @@ -181,7 +181,7 @@ function rechercherPoint( <codePostal>${postalCode}</codePostal> <codeInseeCommune>${inseeCode}</codeInseeCommune> </adresseInstallation> - <nomClientFinalOuDenominationSociale>${name}</nomClientFinalOuDenominationSociale> + <nomClientFinalOuDenominationSociale>${lastname}</nomClientFinalOuDenominationSociale> <rechercheHorsPerimetre>true</rechercheHorsPerimetre> </criteres> <loginUtilisateur>${appLogin}</loginUtilisateur> @@ -221,7 +221,7 @@ function rechercherServicesSouscritsMesures(appLogin, contractId, pointId) { * @param {string} appLogin * @param {string} contractId * @param {number} pointId - * @param {string} name + * @param {string} lastname * @param {string} startDate * @param {string} endDate * @returns {*} @@ -230,7 +230,7 @@ function commanderCollectePublicationMesures( appLogin, contractId, pointId, - name, + lastname, startDate, endDate ) { @@ -258,7 +258,7 @@ function commanderCollectePublicationMesures( <declarationAccordClient> <accord>true</accord> <personnePhysique> - <nom>${name}</nom> + <nom>${lastname}</nom> </personnePhysique> </declarationAccordClient> <mesuresTypeCode>CDC</mesuresTypeCode>