---
title: SeverancePayHypothesis
slug: oip-next/ylr8fbvayymvirjaemcbv
createdAt: 2024-02-21T13:25:53.000Z
---

# SeverancePayHypothesis

## Description

L’entité SeverancePayHypothesis contient les différents paramètres nécessaires au simulateur d’indemnité de fin de carrière. Ce sont les hypothèses globales de calcul.

## Relations

### Ascendantes

| Entité     | Propriété              |
| ---------- | ---------------------- |
| Hypothesis | severancePayHypothesis |

### Descendantes

| Entité                                | Propriété                               |
| ------------------------------------- | --------------------------------------- |
| History                               | history                                 |
| SeverancePayAverageDemography         | severancePayAverageDemographies         |
| SeverancePayFundingPlan               | severancePayFundingPlans                |
| SeverancePayHypothesisCategory        | severancePayHypothesisCategories        |
| SeverancePayHypothesisIndemnities     | severancePayHypothesisIndemnities       |
| SeverancePayHypothesisResult          | severancePayHypothesisResults           |
| SeverancePayHypothesisSolution        | severancePayHypothesisSolutions         |
| SeverancePaySocialLiabilityByAgeRange | severancePaySocialLiabilityByAgeRanges  |
| SeverancePaySocialLiabilityByCategory | severancePaySocialLiabilityByCategories |
| SeverancePaySocialLiabilitySchedule   | severancePaySocialLiabilitySchedules    |
| SeverancePayTheorical                 | severancePayTheoricals                  |

## Liste des propriétés

| Nom                            | Type                                             | Dernière version modifiée | Description                                                                                                                                                                                  | Getter                                                  | Setter                                                  | Deprecated                                        |
| ------------------------------ | ------------------------------------------------ | ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------- |
| amountToTransfer               | `Number`                                         | 2.8.0                     | Il s’agit du montant à transférer (frais inclus) lorsque le client possède déjà un contrat IFC et qu’il souhaite transférer une partie ou la totalité de ce  montant détenu à la concurrence | getSeverancePayHypothesisAmountToTransfer               | setSeverancePayHypothesisAmountToTransfer               | -                                                 |
| averageYield                   | `Number`                                         | 2.8.0                     | Il s’agit du rendement moyen en %                                                                                                                                                            | getSeverancePayHypothesisAverageYield                   | setSeverancePayHypothesisAverageYield                   | -                                                 |
| corporateTaxRate               | `Number`                                         | 2.7.0                     | Taux d’impôt sur les sociétés.                                                                                                                                                               | getSeverancePayHypothesisCorporateTaxRate               | setSeverancePayHypothesisCorporateTaxRate               | -                                                 |
| createdAt                      | `Date`                                           |                           | Date de création de l'entité `SeverancePayHypothesis`                                                                                                                                        | getSeverancePayHypothesisCreatedAt                      | Lecture seule                                           | -                                                 |
| createdBy                      | `String`                                         |                           | Utilisateur à l'origine de la création de l'entité `SeverancePayHypothesis`                                                                                                                  | getSeverancePayHypothesisCreatedBy                      | Lecture seule                                           | -                                                 |
| duration                       | `Number`                                         | 2.7.0                     | Il s’agit de la durée moyenne actualisée et probabilisée de versement des indemnités de fin de carrière pour l’entreprise.                                                                   | getSeverancePayHypothesisDuration                       | setSeverancePayHypothesisDuration                       | -                                                 |
| estimatedLevelOfRisk           | `severancePayHypothesisEstimatedLevelOfRiskEnum` | 2.10.0                    | Il s'agit du niveau estimé du risque                                                                                                                                                         | getSeverancePayHypothesisEstimatedLevelOfRisk           | setSeverancePayHypothesisEstimatedLevelOfRisk           | -                                                 |
| hasAlreadySeverancePayContract | `Boolean`                                        | 2.8.0                     | Il s’agit de savoir si le client a déjà un contrat IFC chez un concurrent                                                                                                                    | getSeverancePayHypothesisHasAlreadySeverancePayContract | setSeverancePayHypothesisHasAlreadySeverancePayContract | -                                                 |
| heldedAmountContract           | `Number`                                         | 2.8.0                     | Il s’agit du montant détenu dans le cadre du contrat chez le concurrent                                                                                                                      | getSeverancePayHypothesisHeldedAmountContract           | setSeverancePayHypothesisHeldedAmountContract           | -                                                 |
| horizon                        | `String`                                         | 2.10.0                    | Il s'agit de l'horizon de placement                                                                                                                                                          | getSeverancePayHypothesisHorizon                        | setSeverancePayHypothesisHorizon                        | -                                                 |
| id                             | `String`                                         |                           | Identifiant unique de l'entité `SeverancePayHypothesis`                                                                                                                                      | getSeverancePayHypothesisId                             | Lecture seule                                           | -                                                 |
| refreshRate                    | `Number`                                         | 2.7.0                     | Taux d’actualisation.                                                                                                                                                                        | getSeverancePayHypothesisRefreshRate                    | setSeverancePayHypothesisRefreshRate                    | -                                                 |
| severancePayAmount             | `Number`                                         | 2.7.0                     | Il s’agit du montant du passif social pour l’entreprise.                                                                                                                                     | getSeverancePayHypothesisSeverancePayAmount             | setSeverancePayHypothesisSeverancePayAmount             | -                                                 |
| socialLiabilityDate            | `Date`                                           | 2.7.0                     | Date de calcul du passif social.                                                                                                                                                             | getSeverancePayHypothesisSocialLiabilityDate            | setSeverancePayHypothesisSocialLiabilityDate            | -                                                 |
| theoricalCompanyTaxGains       | `Number`                                         | 2.7.0                     | Il s’agit du gain d’Impôts théorique sur les sociétés pour l’entreprise. Estimation basée sur : (Passif social) x (Taux d’IS sélectionné).                                                   | getSeverancePayHypothesisTheoricalCompanyTaxGains       | setSeverancePayHypothesisTheoricalCompanyTaxGains       | -                                                 |
| type                           | `severancePayHypothesisTypeEnum`                 | 2.8.0                     | Il s’agit du type de simulation                                                                                                                                                              | getSeverancePayHypothesisType                           | setSeverancePayHypothesisType                           | Utiliser la propriété type de l'entité hypothesis |
| updatedAt                      | `Date`                                           |                           | Date de modification de l'entité `SeverancePayHypothesis`                                                                                                                                    | getSeverancePayHypothesisUpdatedAt                      | Lecture seule                                           | -                                                 |
| updatedBy                      | `String`                                         |                           | Utilisateur à l'origine de la modification de l'entité `SeverancePayHypothesis`                                                                                                              | getSeverancePayHypothesisUpdatedBy                      | Lecture seule                                           | -                                                 |

## Enums

### severancePayHypothesisEstimatedLevelOfRiskEnum

- `severancePayHypothesisEstimatedLevelOfRiskEnum.HIGH`
- `severancePayHypothesisEstimatedLevelOfRiskEnum.LOW`
- `severancePayHypothesisEstimatedLevelOfRiskEnum.MEDIUM`

### severancePayHypothesisTypeEnum

- `severancePayHypothesisTypeEnum.SOCIAL_LIABILITY_CALCULATION`
- `severancePayHypothesisTypeEnum.FUNDING_PLAN_CALCULATION`

## Exemple

```javascript
import { Entities } from '@fasstech/oip-core';
import { getHypothesisId } from '@fasstech/oip-core/entities/hypothesis';
import { getOfferId } from '@fasstech/oip-core/entities/offer';
import { getProjectId } from '@fasstech/oip-core/entities/project';
import { getSeverancePayHypothesisAmountToTransfer, getSeverancePayHypothesisAverageYield, getSeverancePayHypothesisCorporateTaxRate, getSeverancePayHypothesisDuration, getSeverancePayHypothesisEstimatedLevelOfRisk, getSeverancePayHypothesisHasAlreadySeverancePayContract, getSeverancePayHypothesisHeldedAmountContract, getSeverancePayHypothesisHorizon, getSeverancePayHypothesisRefreshRate, getSeverancePayHypothesisSeverancePayAmount, getSeverancePayHypothesisSocialLiabilityDate, getSeverancePayHypothesisTheoricalCompanyTaxGains, getSeverancePayHypothesisType, setSeverancePayHypothesisAmountToTransfer, setSeverancePayHypothesisAverageYield, setSeverancePayHypothesisCorporateTaxRate, setSeverancePayHypothesisDuration, setSeverancePayHypothesisEstimatedLevelOfRisk, setSeverancePayHypothesisHasAlreadySeverancePayContract, setSeverancePayHypothesisHeldedAmountContract, setSeverancePayHypothesisHorizon, setSeverancePayHypothesisRefreshRate, setSeverancePayHypothesisSeverancePayAmount, setSeverancePayHypothesisSocialLiabilityDate, setSeverancePayHypothesisTheoricalCompanyTaxGains, setSeverancePayHypothesisType } from '@fasstech/oip-core/entities/severancePayHypothesis';
import { severancePayHypothesisEstimatedLevelOfRiskEnum, severancePayHypothesisTypeEnum } from '@fasstech/oip-core/entities/severancePayHypothesis/enums';

(async () => {
  let ProjectEntity = await Entities('Project').get({ id: projectId });
  let OfferEntity = await Entities('Offer').create();
  let HypothesisEntity = await Entities('Hypothesis').create();
  const SeverancePayHypothesisEntity = await Entities('SeverancePayHypothesis').get(HypothesisEntity);
  
  setSeverancePayHypothesisAmountToTransfer(97, SeverancePayHypothesisEntity);
  setSeverancePayHypothesisAverageYield(97, SeverancePayHypothesisEntity);
  setSeverancePayHypothesisCorporateTaxRate(99, SeverancePayHypothesisEntity);
  setSeverancePayHypothesisDuration(100, SeverancePayHypothesisEntity);
  setSeverancePayHypothesisEstimatedLevelOfRisk(severancePayHypothesisEstimatedLevelOfRiskEnum.MEDIUM, SeverancePayHypothesisEntity);
  setSeverancePayHypothesisHasAlreadySeverancePayContract(true, SeverancePayHypothesisEntity);
  setSeverancePayHypothesisHeldedAmountContract(104, SeverancePayHypothesisEntity);
  setSeverancePayHypothesisHorizon('horizon', SeverancePayHypothesisEntity);
  setSeverancePayHypothesisRefreshRate(114, SeverancePayHypothesisEntity);
  setSeverancePayHypothesisSeverancePayAmount(115, SeverancePayHypothesisEntity);
  setSeverancePayHypothesisSocialLiabilityDate(new Date('2017-01-01'), SeverancePayHypothesisEntity);
  setSeverancePayHypothesisTheoricalCompanyTaxGains(116, SeverancePayHypothesisEntity);
  setSeverancePayHypothesisType(severancePayHypothesisTypeEnum.FUNDING_PLAN_CALCULATION, SeverancePayHypothesisEntity);
  
  HypothesisEntity = await Entities('SeverancePayHypothesis').save(HypothesisEntity, SeverancePayHypothesisEntity);
  OfferEntity = await Entities('Hypothesis').save(OfferEntity, HypothesisEntity);
  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 HypothesisEntityToTest = await Entities('Hypothesis').get(OfferEntityToTest, getHypothesisId(HypothesisEntity));
  const SeverancePayHypothesisEntityToTest = await Entities('SeverancePayHypothesis').get(HypothesisEntityToTest);
  
  getSeverancePayHypothesisAmountToTransfer(SeverancePayHypothesisEntityToTest); // 97
  getSeverancePayHypothesisAverageYield(SeverancePayHypothesisEntityToTest); // 97
  getSeverancePayHypothesisCorporateTaxRate(SeverancePayHypothesisEntityToTest); // 99
  getSeverancePayHypothesisDuration(SeverancePayHypothesisEntityToTest); // 100
  getSeverancePayHypothesisEstimatedLevelOfRisk(SeverancePayHypothesisEntityToTest); // severancePayHypothesisEstimatedLevelOfRiskEnum.MEDIUM
  getSeverancePayHypothesisHasAlreadySeverancePayContract(SeverancePayHypothesisEntityToTest); // true
  getSeverancePayHypothesisHeldedAmountContract(SeverancePayHypothesisEntityToTest); // 104
  getSeverancePayHypothesisHorizon(SeverancePayHypothesisEntityToTest); // 'horizon'
  getSeverancePayHypothesisRefreshRate(SeverancePayHypothesisEntityToTest); // 114
  getSeverancePayHypothesisSeverancePayAmount(SeverancePayHypothesisEntityToTest); // 115
  getSeverancePayHypothesisSocialLiabilityDate(SeverancePayHypothesisEntityToTest); // new Date('2017-01-01')
  getSeverancePayHypothesisTheoricalCompanyTaxGains(SeverancePayHypothesisEntityToTest); // 116
  getSeverancePayHypothesisType(SeverancePayHypothesisEntityToTest); // severancePayHypothesisTypeEnum.FUNDING_PLAN_CALCULATION
})();
```
