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 |
Liste des propriétés
Nom | Type | DerniÚre version modifiée | Description | Getter | Setter | Deprecated |
|---|---|---|---|---|---|---|
createdAt | Date | ï»ż | Date de crĂ©ation de l'entitĂ© StockFunds | getStockFundsCreatedAt | Lecture seule | - |
createdBy | String | ï»ż | Utilisateur Ă l'origine de la crĂ©ation de l'entitĂ© StockFunds | getStockFundsCreatedBy | Lecture seule | - |
distribution | Number | 2.9.6 | Il sâagit de la rĂ©partition en % | getStockFundsDistribution | setStockFundsDistribution | - |
id | String | ï»ż | Identifiant unique de l'entitĂ© StockFunds | getStockFundsId | Lecture seule | - |
isin | String | 2.8.0 | Il sâagit du code d'identification d'un titre financier | getStockFundsIsin | setStockFundsIsin | - |
label | String | 2.8.0 | Il sâagit du libellĂ© du fond | getStockFundsLabel | setStockFundsLabel | - |
updatedAt | Date | ï»ż | Date de modification de l'entitĂ© StockFunds | getStockFundsUpdatedAt | Lecture seule | - |
updatedBy | String | ï»ż | Utilisateur Ă l'origine de la modification de l'entitĂ© StockFunds | getStockFundsUpdatedBy | Lecture seule | - |
Enums
Aucune enumération disponible pour cette entité.
Exemple
import { Entities } from '@fasstech/oip-core';
import { getOfferId } from '@fasstech/oip-core/entities/offer';
import { getProjectId } from '@fasstech/oip-core/entities/project';
import { getSeverancePayId } from '@fasstech/oip-core/entities/severancePay';
import { getStockFundsDistribution, getStockFundsIsin, getStockFundsLabel, getstockFundsId, setStockFundsDistribution, setStockFundsIsin, setStockFundsLabel } from '@fasstech/oip-core/entities/stockFunds';
(async () => {
let ProjectEntity = await Entities('Project').get({ id: projectId });
let OfferEntity = await Entities('Offer').create();
let PensionEntity = await Entities('Pension').get(OfferEntity);
let SeverancePayEntity = await Entities('SeverancePay').create();
const StockFundsEntity = await Entities('StockFunds').create();
setStockFundsDistribution(100, StockFundsEntity);
setStockFundsIsin('isin', StockFundsEntity);
setStockFundsLabel('label', StockFundsEntity);
SeverancePayEntity = await Entities('StockFunds').save(SeverancePayEntity, StockFundsEntity);
PensionEntity = await Entities('SeverancePay').save(PensionEntity, SeverancePayEntity);
OfferEntity = await Entities('Pension').save(OfferEntity, PensionEntity);
ProjectEntity = await Entities('Offer').save(ProjectEntity, OfferEntity);
await Entities('Project').save(ProjectEntity);
const ProjectEntityToTest = await Entities('Project').get({ id: getProjectId(ProjectEntity) });
const OfferEntityToTest = await Entities('Offer').get(ProjectEntityToTest, getOfferId(OfferEntity));
const PensionEntityToTest = await Entities('Pension').get(OfferEntityToTest);
const SeverancePayEntityToTest = await Entities('SeverancePay').get(PensionEntityToTest, getSeverancePayId(SeverancePayEntity));
const StockFundsEntityToTest = await Entities('StockFunds').get(SeverancePayEntityToTest, getStockFundsId(StockFundsEntity));
getStockFundsDistribution(StockFundsEntityToTest); // 100
getStockFundsIsin(StockFundsEntityToTest); // 'isin'
getStockFundsLabel(StockFundsEntityToTest); // 'label'
})();