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

rename parameters to lastname

parent 9cb0ae79
No related branches found
No related tags found
1 merge request!37fix: remove accents in last names
......@@ -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
),
......
......@@ -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,
......
......@@ -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
*/
......
......@@ -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>
......
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