InvestmentBreakdown
InvestmentBreakdown
Description
L'entité InvestmentBreakdown permet de gérer la répartition des investissements sur différents fonds de placements sur des produits d'épargne.
Relations
Ascendantes
Entité | Propriété |
|---|---|
Pension | investmentBreakdowns |
Descendantes
Entité | Propriété |
|---|---|
History | history |
Propriétés
Nom | Type | Description | Validateur | Lecture seule ? | Dépréciée ? | DerniÚre version modifiée |
|---|---|---|---|---|---|---|
investedPercent | Number | Pourcentage allouĂ© dans les titres financiers | ï»ż | ï»ż | ï»ż | 2.4.0 |
isin | String | Code d'identification d'un titre financier | ï»ż | ï»ż | ï»ż | 2.4.0 |
maximazingInvestmentGainsPercent | Number | Pourcentage allouĂ© Ă la maximisation des plus-values | ï»ż | ï»ż | ï»ż | 2.4.0 |
partId | String | Identifiant de type de part d'un fond d'investissement UC | ï»ż | ï»ż | ï»ż | 2.4.0 |
securingInvestmentGainsPercent | Number | Pourcentage allouĂ© Ă la sĂ©curisation des plus-values | ï»ż | ï»ż | ï»ż | 2.4.0 |
url | String | Url du document d'information du titre financier | ï»ż | ï»ż | ï»ż | 2.4.0 |
id | String | Identifiant de l'entitĂ© InvestmentBreakdown | ï»ż | X | ï»ż | ï»ż |
code | String | Codification fonctionnelle de l'entitĂ© InvestmentBreakdown | ï»ż | ï»ż | ï»ż | ï»ż |
externalId | String | Identifiant de l'entitĂ© InvestmentBreakdown dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
externalCode | String | Codification fonctionnelle de l'entitĂ© InvestmentBreakdown dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
investmentBreakdownId | String | Identifiant public de l'entitĂ© InvestmentBreakdown dans l'OIP | ï»ż | ï»ż | ï»ż | ï»ż |
label | String | Information relative au nom de l'entitĂ© InvestmentBreakdown dans son contexte d'utilisation | ï»ż | ï»ż | ï»ż | ï»ż |
createdAt | Date | Date de crĂ©ation de l'entitĂ© InvestmentBreakdown | ï»ż | X | ï»ż | ï»ż |
updatedAt | Date | Date de modification de l'entitĂ© InvestmentBreakdown | ï»ż | 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 { getInvestmentBreakdownCode, getInvestmentBreakdownExternalCode, getInvestmentBreakdownExternalId, getInvestmentBreakdownId, getInvestmentBreakdownInvestedPercent, getInvestmentBreakdownInvestmentBreakdownId, getInvestmentBreakdownIsin, getInvestmentBreakdownLabel, getInvestmentBreakdownMaximazingInvestmentGainsPercent, getInvestmentBreakdownPartId, getInvestmentBreakdownSecuringInvestmentGainsPercent, getInvestmentBreakdownUrl, setInvestmentBreakdownCode, setInvestmentBreakdownExternalCode, setInvestmentBreakdownExternalId, setInvestmentBreakdownInvestedPercent, setInvestmentBreakdownInvestmentBreakdownId, setInvestmentBreakdownIsin, setInvestmentBreakdownLabel, setInvestmentBreakdownMaximazingInvestmentGainsPercent, setInvestmentBreakdownPartId, setInvestmentBreakdownSecuringInvestmentGainsPercent, setInvestmentBreakdownUrl } from '@fasstech/oip-core/entities/InvestmentBreakdown';
import { getOfferId } from '@fasstech/oip-core/entities/Offer';
import { getPensionId } from '@fasstech/oip-core/entities/Pension';
import { getProjectId } from '@fasstech/oip-core/entities/Project';
(async () => {
let project = await Entities('Project').create();
let offer = await Entities('Offer').create();
let pension = await Entities('Pension').create();
const investmentBreakdown = await Entities('InvestmentBreakdown').create();
setInvestmentBreakdownInvestedPercent(105, investmentBreakdown);
setInvestmentBreakdownIsin('isin', investmentBreakdown);
setInvestmentBreakdownMaximazingInvestmentGainsPercent(109, investmentBreakdown);
setInvestmentBreakdownPartId('partId', investmentBreakdown);
setInvestmentBreakdownSecuringInvestmentGainsPercent(115, investmentBreakdown);
setInvestmentBreakdownUrl('url', investmentBreakdown);
setInvestmentBreakdownCode('code', investmentBreakdown);
setInvestmentBreakdownExternalId('externalId', investmentBreakdown);
setInvestmentBreakdownExternalCode('externalCode', investmentBreakdown);
setInvestmentBreakdownInvestmentBreakdownId('investmentBreakdownId', investmentBreakdown);
setInvestmentBreakdownLabel('label', investmentBreakdown);
pension = await Entities('InvestmentBreakdown').save(pension, investmentBreakdown);
offer = await Entities('Pension').save(offer, pension);
project = await Entities('Offer').save(project, offer);
await Entities('Project').save(project);
const projectToTest = await Entities('Project').get({ id: getProjectId(project) });
const offerToTest = await Entities('Offer').get(projectToTest, { filter: ({ id }) => id === getOfferId(offer) });
const pensionToTest = await Entities('Pension').get(offerToTest, { filter: ({ id }) => id === getPensionId(pension) });
const investmentBreakdownToTest = await Entities('InvestmentBreakdown').get(pensionToTest, { filter: ({ id }) => id === getInvestmentBreakdownId(investmentBreakdown) });
getInvestmentBreakdownInvestedPercent(investmentBreakdownToTest); // 105
getInvestmentBreakdownIsin(investmentBreakdownToTest); // 'isin'
getInvestmentBreakdownMaximazingInvestmentGainsPercent(investmentBreakdownToTest); // 109
getInvestmentBreakdownPartId(investmentBreakdownToTest); // 'partId'
getInvestmentBreakdownSecuringInvestmentGainsPercent(investmentBreakdownToTest); // 115
getInvestmentBreakdownUrl(investmentBreakdownToTest); // 'url'
getInvestmentBreakdownCode(investmentBreakdownToTest); // 'code'
getInvestmentBreakdownExternalId(investmentBreakdownToTest); // 'externalId'
getInvestmentBreakdownExternalCode(investmentBreakdownToTest); // 'externalCode'
getInvestmentBreakdownInvestmentBreakdownId(investmentBreakdownToTest); // 'investmentBreakdownId'
getInvestmentBreakdownLabel(investmentBreakdownToTest); // 'label'
})();