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

feat: add consents city

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