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

Merge branch 'feat/US847-consents-city' into 'main'

feat/us847 consents city

See merge request web-et-numerique/llle_project/enedis-sge-konnector!20
parents 42179a75 123cb9d2
No related branches found
No related tags found
1 merge request!20feat/us847 consents city
Pipeline #43410 passed
......@@ -36,6 +36,7 @@
* @property {string} firstname
* @property {string} address
* @property {string} postalCode
* @property {string} city
* @property {string} inseeCode
* @property {string} endDate
* @property {number} [serviceID]
......@@ -51,6 +52,7 @@
* @property {string} postalCode
* @property {string} address
* @property {string} inseeCode
* @property {string} city
*/
/**
......
......@@ -52,6 +52,7 @@ async function verifyUserIdentity(
inseeCode,
postalCode: fields.postalCode,
address: fields.address,
city: fields.city,
}
}
......
......@@ -119,7 +119,8 @@ async function start(fields, cozyParameters) {
user.firstname,
user.address,
user.postalCode,
user.inseeCode
user.inseeCode,
user.city
)
// handle user contract start date in order to preperly request data
......
......@@ -9,6 +9,7 @@ const { default: axios } = require('axios')
* @param {string} address
* @param {string} postalCode
* @param {string} inseeCode
* @param {string} city
* @returns {Promise<Consent>}
*/
async function createBoConsent(
......@@ -19,7 +20,8 @@ async function createBoConsent(
firstname,
address,
postalCode,
inseeCode
inseeCode,
city
) {
log('info', `Query createBoConsent`)
const headers = {
......@@ -38,6 +40,7 @@ async function createBoConsent(
address,
postalCode,
inseeCode,
city,
},
headers
)
......
......@@ -131,7 +131,7 @@ function consulterDonneesTechniquesContractuelles(pointId, appLogin) {
function rechercherPoint(appLogin, name, postalCode, inseeCode, address) {
log(
'info',
`Query rechercherPoint - postal code / insee code: ${postalCode} / ${inseeCode}`
`Query rechercherPoint - postal code : ${postalCode} / insee code: ${inseeCode}`
)
return `<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
......
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