---
title: InvestmentBreakdown
slug: oip-next/j0h3rxhcxlp2o-tkd23j
createdAt: 2024-02-21T13:33:32.000Z
---

# 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   |

## 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é `InvestmentBreakdown`                           | getInvestmentBreakdownCreatedAt                        | Lecture seule                                          | -          |
| createdBy                        | `String` |                           | Utilisateur à l'origine de la création de l'entité `InvestmentBreakdown`     | getInvestmentBreakdownCreatedBy                        | Lecture seule                                          | -          |
| id                               | `String` |                           | Identifiant unique de l'entité `InvestmentBreakdown`                         | getInvestmentBreakdownId                               | Lecture seule                                          | -          |
| investedPercent                  | `Number` | 2.4.0                     | Pourcentage alloué dans les titres financiers                                | getInvestmentBreakdownInvestedPercent                  | setInvestmentBreakdownInvestedPercent                  | -          |
| isin                             | `String` | 2.4.0                     | Code d'identification d’un titre financier                                   | getInvestmentBreakdownIsin                             | setInvestmentBreakdownIsin                             | -          |
| maximazingInvestmentGainsPercent | `Number` | 2.4.0                     | Pourcentage alloué à la maximisation des plus-values                         | getInvestmentBreakdownMaximazingInvestmentGainsPercent | setInvestmentBreakdownMaximazingInvestmentGainsPercent | -          |
| partId                           | `String` | 2.4.0                     | Identifiant de type de part d'un fond d'investissement UC                    | getInvestmentBreakdownPartId                           | setInvestmentBreakdownPartId                           | -          |
| securingInvestmentGainsPercent   | `Number` | 2.4.0                     | Pourcentage alloué à la sécurisation des plus-values                         | getInvestmentBreakdownSecuringInvestmentGainsPercent   | setInvestmentBreakdownSecuringInvestmentGainsPercent   | -          |
| updatedAt                        | `Date`   |                           | Date de modification de l'entité `InvestmentBreakdown`                       | getInvestmentBreakdownUpdatedAt                        | Lecture seule                                          | -          |
| updatedBy                        | `String` |                           | Utilisateur à l'origine de la modification de l'entité `InvestmentBreakdown` | getInvestmentBreakdownUpdatedBy                        | Lecture seule                                          | -          |
| url                              | `String` | 2.4.0                     | Url du document d’information du titre financier                             | getInvestmentBreakdownUrl                              | setInvestmentBreakdownUrl                              | -          |

## Enums

Aucune enumération disponible pour cette entité.

## Exemple

```javascript
import { Entities } from '@fasstech/oip-core';
import { getInvestmentBreakdownInvestedPercent, getInvestmentBreakdownIsin, getInvestmentBreakdownMaximazingInvestmentGainsPercent, getInvestmentBreakdownPartId, getInvestmentBreakdownSecuringInvestmentGainsPercent, getInvestmentBreakdownUrl, getinvestmentBreakdownId, setInvestmentBreakdownInvestedPercent, setInvestmentBreakdownIsin, setInvestmentBreakdownMaximazingInvestmentGainsPercent, setInvestmentBreakdownPartId, setInvestmentBreakdownSecuringInvestmentGainsPercent, setInvestmentBreakdownUrl } from '@fasstech/oip-core/entities/investmentBreakdown';
import { getOfferId } from '@fasstech/oip-core/entities/offer';
import { getProjectId } from '@fasstech/oip-core/entities/project';

(async () => {
  let ProjectEntity = await Entities('Project').get({ id: projectId });
  let OfferEntity = await Entities('Offer').create();
  let PensionEntity = await Entities('Pension').get(OfferEntity);
  const InvestmentBreakdownEntity = await Entities('InvestmentBreakdown').create();
  
  setInvestmentBreakdownInvestedPercent(105, InvestmentBreakdownEntity);
  setInvestmentBreakdownIsin('isin', InvestmentBreakdownEntity);
  setInvestmentBreakdownMaximazingInvestmentGainsPercent(109, InvestmentBreakdownEntity);
  setInvestmentBreakdownPartId('partId', InvestmentBreakdownEntity);
  setInvestmentBreakdownSecuringInvestmentGainsPercent(115, InvestmentBreakdownEntity);
  setInvestmentBreakdownUrl('url', InvestmentBreakdownEntity);
  
  PensionEntity = await Entities('InvestmentBreakdown').save(PensionEntity, InvestmentBreakdownEntity);
  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 InvestmentBreakdownEntityToTest = await Entities('InvestmentBreakdown').get(PensionEntityToTest, getInvestmentBreakdownId(InvestmentBreakdownEntity));
  
  getInvestmentBreakdownInvestedPercent(InvestmentBreakdownEntityToTest); // 105
  getInvestmentBreakdownIsin(InvestmentBreakdownEntityToTest); // 'isin'
  getInvestmentBreakdownMaximazingInvestmentGainsPercent(InvestmentBreakdownEntityToTest); // 109
  getInvestmentBreakdownPartId(InvestmentBreakdownEntityToTest); // 'partId'
  getInvestmentBreakdownSecuringInvestmentGainsPercent(InvestmentBreakdownEntityToTest); // 115
  getInvestmentBreakdownUrl(InvestmentBreakdownEntityToTest); // 'url'
})();
```
