Retrieves the current customer vulnerabilities.
A Promise that resolves to the retrieved customer vulnerabilities.
Updates the customer vulnerabilities with the provided data.
The vulnerabilities object containing health, competence,
life flags and optional additionalSupportNeeds text to update.
A Promise that resolves to the updated customer vulnerabilities.
// Example usage:
const vulnerabilities = {
health: {
physicalDisability: true,
gamblingAddiction: false
},
competence: {
poorLiteracy: true
},
additionalSupportNeeds: 'Please use plain language in all communications.'
};
vulnerabilitiesService.update(vulnerabilities)
.then((updatedVulnerabilities) => {
console.log('Vulnerabilities updated:', updatedVulnerabilities);
})
.catch((error) => {
console.error('Error updating vulnerabilities.');
});
StaticgetFunctionRetrieves the singleton instance of the VulnerabilitiesService class.
The singleton instance of the VulnerabilitiesService class.
Service class for managing customer vulnerabilities related operations.