StockFunds
StockFunds
Description
L'entitĂ© stockFunds contient les diffĂ©rentes informations liĂ©es Ă la liste des fonds choisis lors du parcours IFC. Ils peuvent ĂȘtre choisis dans le cas d'une gestion libre ou bien prĂ© sĂ©lectionnĂ©s lors d'une gestion profilĂ©e ou guidĂ©e.
Relations
Ascendantes
Entité | Propriété |
|---|---|
SeverancePay | stockFunds |
Descendantes
Entité | Propriété |
|---|---|
History | history |
Propriétés
Nom | Type | Description | Validateur | Lecture seule ? | Dépréciée ? | DerniÚre version modifiée |
|---|---|---|---|---|---|---|
districution | Number | Il s'agit de la rĂ©partition en % | ï»ż | ï»ż | ï»ż | 2.8.0 |
isin | String | Il s'agit du code d'identification d'un titre financier | ï»ż | ï»ż | ï»ż | 2.8.0 |
id | String | Identifiant de l'entitĂ© StockFunds | ï»ż | X | ï»ż | ï»ż |
code | String | Codification fonctionnelle de l'entitĂ© StockFunds | ï»ż | ï»ż | ï»ż | ï»ż |
externalId | String | Identifiant de l'entitĂ© StockFunds dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
externalCode | String | Codification fonctionnelle de l'entitĂ© StockFunds dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
stockFundsId | String | Identifiant public de l'entitĂ© StockFunds dans l'OIP | ï»ż | ï»ż | ï»ż | ï»ż |
label | String | Information relative au nom de l'entitĂ© StockFunds dans son contexte d'utilisation | ï»ż | ï»ż | ï»ż | ï»ż |
createdAt | Date | Date de crĂ©ation de l'entitĂ© StockFunds | ï»ż | X | ï»ż | ï»ż |
updatedAt | Date | Date de modification de l'entitĂ© StockFunds | ï»ż | 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 { getOfferId } from '@fasstech/oip-core/entities/Offer';
import { getPensionId } from '@fasstech/oip-core/entities/Pension';
import { getProjectId } from '@fasstech/oip-core/entities/Project';
import { getSeverancePayId } from '@fasstech/oip-core/entities/SeverancePay';
import { getStockFundsCode, getStockFundsDistricution, getStockFundsExternalCode, getStockFundsExternalId, getStockFundsId, getStockFundsIsin, getStockFundsLabel, getStockFundsStockFundsId, setStockFundsCode, setStockFundsDistricution, setStockFundsExternalCode, setStockFundsExternalId, setStockFundsIsin, setStockFundsLabel, setStockFundsStockFundsId } from '@fasstech/oip-core/entities/StockFunds';
(async () => {
let project = await Entities('Project').create();
let offer = await Entities('Offer').create();
let pension = await Entities('Pension').create();
let severancePay = await Entities('SeverancePay').create();
const stockFunds = await Entities('StockFunds').create();
setStockFundsDistricution(100, stockFunds);
setStockFundsIsin('isin', stockFunds);
setStockFundsCode('code', stockFunds);
setStockFundsExternalId('externalId', stockFunds);
setStockFundsExternalCode('externalCode', stockFunds);
setStockFundsStockFundsId('stockFundsId', stockFunds);
setStockFundsLabel('label', stockFunds);
severancePay = await Entities('StockFunds').save(severancePay, stockFunds);
pension = await Entities('SeverancePay').save(pension, severancePay);
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 severancePayToTest = await Entities('SeverancePay').get(pensionToTest, { filter: ({ id }) => id === getSeverancePayId(severancePay) });
const stockFundsToTest = await Entities('StockFunds').get(severancePayToTest, { filter: ({ id }) => id === getStockFundsId(stockFunds) });
getStockFundsDistricution(stockFundsToTest); // 100
getStockFundsIsin(stockFundsToTest); // 'isin'
getStockFundsCode(stockFundsToTest); // 'code'
getStockFundsExternalId(stockFundsToTest); // 'externalId'
getStockFundsExternalCode(stockFundsToTest); // 'externalCode'
getStockFundsStockFundsId(stockFundsToTest); // 'stockFundsId'
getStockFundsLabel(stockFundsToTest); // 'label'
})();