Aml
Aml
Description
L'entité AML (Anti Money Laundering) permet de stocker les indicateurs de risque AML liés à la personne physique ou morale.
Relations
Ascendantes
Entité | Propriété |
|---|---|
Company | amls |
Contact | amls |
Customer | amls |
Grantee | amls |
Tns | amls |
Descendantes
Entité | Propriété |
|---|---|
History | history |
Propriétés
Nom | Type | Description | Validateur | Lecture seule ? | Dépréciée ? | DerniÚre version modifiée |
|---|---|---|---|---|---|---|
isLegalEntity | Boolean | Indique s'il s'agit d'une personne morale. | ï»ż | ï»ż | ï»ż | 2.4.0 |
isPoliticallyExposed | Boolean | Est un bĂ©nĂ©ficiaire exposĂ© politiquement. | ï»ż | ï»ż | ï»ż | 2.4.0 |
isRelationPoliticallyExposed | Boolean | Est un bĂ©nĂ©ficiaire ayant une relation avec une personne exposĂ©e politiquement. | ï»ż | ï»ż | ï»ż | 2.4.0 |
id | String | Identifiant de l'entitĂ© Aml | ï»ż | X | ï»ż | ï»ż |
code | String | Codification fonctionnelle de l'entitĂ© Aml | ï»ż | ï»ż | ï»ż | ï»ż |
externalId | String | Identifiant de l'entitĂ© Aml dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
externalCode | String | Codification fonctionnelle de l'entitĂ© Aml dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
amlId | String | Identifiant public de l'entitĂ© Aml dans l'OIP | ï»ż | ï»ż | ï»ż | ï»ż |
label | String | Information relative au nom de l'entitĂ© Aml dans son contexte d'utilisation | ï»ż | ï»ż | ï»ż | ï»ż |
createdAt | Date | Date de crĂ©ation de l'entitĂ© Aml | ï»ż | X | ï»ż | ï»ż |
updatedAt | Date | Date de modification de l'entitĂ© Aml | ï»ż | X | ï»ż | ï»ż |
Enumérations
Aucune enumération.
Enumérations génériques
Aucune enumération générique.
Exemple
import { Entities } from '@fasstech/oip-core';
import { getAmlAmlId, getAmlCode, getAmlExternalCode, getAmlExternalId, getAmlId, getAmlIsLegalEntity, getAmlIsPoliticallyExposed, getAmlIsRelationPoliticallyExposed, getAmlLabel, setAmlAmlId, setAmlCode, setAmlExternalCode, setAmlExternalId, setAmlIsLegalEntity, setAmlIsPoliticallyExposed, setAmlIsRelationPoliticallyExposed, setAmlLabel } from '@fasstech/oip-core/entities/Aml';
import { getCompanyId } from '@fasstech/oip-core/entities/Company';
import { getProjectId } from '@fasstech/oip-core/entities/Project';
(async () => {
let project = await Entities('Project').create();
let company = await Entities('Company').create();
const aml = await Entities('Aml').create();
setAmlIsLegalEntity(false, aml);
setAmlIsPoliticallyExposed(false, aml);
setAmlIsRelationPoliticallyExposed(false, aml);
setAmlCode('code', aml);
setAmlExternalId('externalId', aml);
setAmlExternalCode('externalCode', aml);
setAmlAmlId('amlId', aml);
setAmlLabel('label', aml);
company = await Entities('Aml').save(company, aml);
project = await Entities('Company').save(project, company);
await Entities('Project').save(project);
const projectToTest = await Entities('Project').get({ id: getProjectId(project) });
const companyToTest = await Entities('Company').get(projectToTest, { filter: ({ id }) => id === getCompanyId(company) });
const amlToTest = await Entities('Aml').get(companyToTest, { filter: ({ id }) => id === getAmlId(aml) });
getAmlIsLegalEntity(amlToTest); // false
getAmlIsPoliticallyExposed(amlToTest); // false
getAmlIsRelationPoliticallyExposed(amlToTest); // false
getAmlCode(amlToTest); // 'code'
getAmlExternalId(amlToTest); // 'externalId'
getAmlExternalCode(amlToTest); // 'externalCode'
getAmlAmlId(amlToTest); // 'amlId'
getAmlLabel(amlToTest); // 'label'
})();