Skip to content
Snippets Groups Projects
Commit 66140358 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

Merge remote-tracking branch 'origin/main' into feat/868-sge-fallback

parents ee40d919 25ec59f5
No related branches found
No related tags found
1 merge request!21US878 feat(rechercherpoint): add two fallback in case of no rechercher point match
......@@ -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
*/
/**
......
......@@ -100,6 +100,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
)
......
......@@ -143,7 +143,7 @@ function rechercherPoint(
) {
log(
'info',
`Query rechercherPoint - postal code / insee code: ${postalCode} / ${inseeCode}`
`Query rechercherPoint - postal code : ${postalCode} / insee code: ${inseeCode}`
)
if (escalierEtEtageEtAppartement) {
return `<?xml version='1.0' encoding='utf-8'?>
......
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