---
title: SeverancePayHypothesis
slug: oip-next/gamqitw5mnnvtplsmizgi
icon: {"lucideIcon":"📘"}
createdAt: 2024-04-08T10:17:29.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                  |

## Propriétés

| Nom                            | Type                                             | Description                                                                                                                                                                                  | Validateur | Lecture seule ? | Dépréciée ? | Dernière version modifiée |
| ------------------------------ | ------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | --------------- | ----------- | ------------------------- |
| amountToTransfer               | `Number`                                         | 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 |            |                 |             | 2.8.0                     |
| averageYield                   | `Number`                                         | Il s'agit du rendement moyen en %                                                                                                                                                            |            |                 |             | 2.8.0                     |
| corporateTaxRate               | `Number`                                         | Taux d'impôt sur les sociétés.                                                                                                                                                               |            |                 |             | 2.7.0                     |
| duration                       | `Number`                                         | 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.                                                                   |            |                 |             | 2.7.0                     |
| estimatedLevelOfRisk           | `SeverancePayHypothesisEstimatedLevelOfRiskEnum` | Il s'agit du niveau estimé du risque.                                                                                                                                                        |            |                 |             | 2.10.0                    |
| hasAlreadySeverancePayContract | `Boolean`                                        | Il s'agit de savoir si le client a déjà un contrat IFC chez un concurrent                                                                                                                    |            |                 |             | 2.8.0                     |
| heldedAmountContract           | `Number`                                         | Il s'agit du montant détenu dans le cadre du contrat chez le concurrent                                                                                                                      |            |                 |             | 2.8.0                     |
| horizon                        | `String`                                         | Il s'agit de l'horizon de placement.                                                                                                                                                         |            |                 |             | 2.10.0                    |
| refreshRate                    | `Number`                                         | Taux d'actualisation.                                                                                                                                                                        |            |                 |             | 2.7.0                     |
| severancePayAmount             | `Number`                                         | Il s'agit du montant du passif social pour l'entreprise.                                                                                                                                     |            |                 |             | 2.7.0                     |
| socialLiabilityDate            | `Date`                                           | Date de calcul du passif social.                                                                                                                                                             |            |                 |             | 2.7.0                     |
| theoricalCompanyTaxGains       | `Number`                                         | 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é).                                                   |            |                 |             | 2.7.0                     |
| id                             | `String`                                         | Identifiant de l'entité `SeverancePayHypothesis`                                                                                                                                             |            | X               |             |                           |
| code                           | `String`                                         | Codification fonctionnelle de l'entité `SeverancePayHypothesis`                                                                                                                              |            |                 |             |                           |
| externalId                     | `String`                                         | Identifiant de l'entité `SeverancePayHypothesis` dans le système client                                                                                                                      |            |                 |             |                           |
| externalCode                   | `String`                                         | Codification fonctionnelle de l'entité `SeverancePayHypothesis` dans le système client                                                                                                       |            |                 |             |                           |
| severancePayHypothesisId       | `String`                                         | Identifiant public de l'entité `SeverancePayHypothesis` dans l'OIP                                                                                                                           |            |                 |             |                           |
| label                          | `String`                                         | Information relative au nom de l'entité `SeverancePayHypothesis` dans son contexte d'utilisation                                                                                             |            |                 |             |                           |
| createdAt                      | `Date`                                           | Date de création de l'entité `SeverancePayHypothesis`                                                                                                                                        |            | X               |             |                           |
| updatedAt                      | `Date`                                           | Date de modification de l'entité `SeverancePayHypothesis`                                                                                                                                    |            | X               |             |                           |

## Enumérations

### SeverancePayHypothesisEstimatedLevelOfRiskEnum

- `HIGH`
- `LOW`
- `MEDIUM`

## Enumérations génériques

Aucune enumération générique.

## 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, getSeverancePayHypothesisCode, getSeverancePayHypothesisCorporateTaxRate, getSeverancePayHypothesisDuration, getSeverancePayHypothesisEstimatedLevelOfRisk, getSeverancePayHypothesisExternalCode, getSeverancePayHypothesisExternalId, getSeverancePayHypothesisHasAlreadySeverancePayContract, getSeverancePayHypothesisHeldedAmountContract, getSeverancePayHypothesisHorizon, getSeverancePayHypothesisId, getSeverancePayHypothesisLabel, getSeverancePayHypothesisRefreshRate, getSeverancePayHypothesisSeverancePayAmount, getSeverancePayHypothesisSeverancePayHypothesisId, getSeverancePayHypothesisSocialLiabilityDate, getSeverancePayHypothesisTheoricalCompanyTaxGains, setSeverancePayHypothesisAmountToTransfer, setSeverancePayHypothesisAverageYield, setSeverancePayHypothesisCode, setSeverancePayHypothesisCorporateTaxRate, setSeverancePayHypothesisDuration, setSeverancePayHypothesisEstimatedLevelOfRisk, setSeverancePayHypothesisExternalCode, setSeverancePayHypothesisExternalId, setSeverancePayHypothesisHasAlreadySeverancePayContract, setSeverancePayHypothesisHeldedAmountContract, setSeverancePayHypothesisHorizon, setSeverancePayHypothesisLabel, setSeverancePayHypothesisRefreshRate, setSeverancePayHypothesisSeverancePayAmount, setSeverancePayHypothesisSeverancePayHypothesisId, setSeverancePayHypothesisSocialLiabilityDate, setSeverancePayHypothesisTheoricalCompanyTaxGains } from '@fasstech/oip-core/entities/SeverancePayHypothesis';
import { SeverancePayHypothesisEstimatedLevelOfRiskEnum } from '@fasstech/oip-core/entities/SeverancePayHypothesis/enums';

(async () => {
  let project = await Entities('Project').create();
  let offer = await Entities('Offer').create();
  let hypothesis = await Entities('Hypothesis').create();
  const severancePayHypothesis = await Entities('SeverancePayHypothesis').create();
  
  setSeverancePayHypothesisAmountToTransfer(97, severancePayHypothesis);
  setSeverancePayHypothesisAverageYield(97, severancePayHypothesis);
  setSeverancePayHypothesisCorporateTaxRate(99, severancePayHypothesis);
  setSeverancePayHypothesisDuration(100, severancePayHypothesis);
  setSeverancePayHypothesisEstimatedLevelOfRisk(SeverancePayHypothesisEstimatedLevelOfRiskEnum.MEDIUM, severancePayHypothesis);
  setSeverancePayHypothesisHasAlreadySeverancePayContract(true, severancePayHypothesis);
  setSeverancePayHypothesisHeldedAmountContract(104, severancePayHypothesis);
  setSeverancePayHypothesisHorizon('horizon', severancePayHypothesis);
  setSeverancePayHypothesisRefreshRate(114, severancePayHypothesis);
  setSeverancePayHypothesisSeverancePayAmount(115, severancePayHypothesis);
  setSeverancePayHypothesisSocialLiabilityDate(new Date('2017-01-01'), severancePayHypothesis);
  setSeverancePayHypothesisTheoricalCompanyTaxGains(116, severancePayHypothesis);
  setSeverancePayHypothesisCode('code', severancePayHypothesis);
  setSeverancePayHypothesisExternalId('externalId', severancePayHypothesis);
  setSeverancePayHypothesisExternalCode('externalCode', severancePayHypothesis);
  setSeverancePayHypothesisSeverancePayHypothesisId('severancePayHypothesisId', severancePayHypothesis);
  setSeverancePayHypothesisLabel('label', severancePayHypothesis);
  
  hypothesis = await Entities('SeverancePayHypothesis').save(hypothesis, severancePayHypothesis);
  offer = await Entities('Hypothesis').save(offer, hypothesis);
  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 hypothesisToTest = await Entities('Hypothesis').get(offerToTest, { filter: ({ id }) => id === getHypothesisId(hypothesis) });
  const severancePayHypothesisToTest = await Entities('SeverancePayHypothesis').get(hypothesisToTest, { filter: ({ id }) => id === getSeverancePayHypothesisId(severancePayHypothesis) });
  
  getSeverancePayHypothesisAmountToTransfer(severancePayHypothesisToTest); // 97
  getSeverancePayHypothesisAverageYield(severancePayHypothesisToTest); // 97
  getSeverancePayHypothesisCorporateTaxRate(severancePayHypothesisToTest); // 99
  getSeverancePayHypothesisDuration(severancePayHypothesisToTest); // 100
  getSeverancePayHypothesisEstimatedLevelOfRisk(severancePayHypothesisToTest); // SeverancePayHypothesisEstimatedLevelOfRiskEnum.MEDIUM
  getSeverancePayHypothesisHasAlreadySeverancePayContract(severancePayHypothesisToTest); // true
  getSeverancePayHypothesisHeldedAmountContract(severancePayHypothesisToTest); // 104
  getSeverancePayHypothesisHorizon(severancePayHypothesisToTest); // 'horizon'
  getSeverancePayHypothesisRefreshRate(severancePayHypothesisToTest); // 114
  getSeverancePayHypothesisSeverancePayAmount(severancePayHypothesisToTest); // 115
  getSeverancePayHypothesisSocialLiabilityDate(severancePayHypothesisToTest); // new Date('2017-01-01')
  getSeverancePayHypothesisTheoricalCompanyTaxGains(severancePayHypothesisToTest); // 116
  getSeverancePayHypothesisCode(severancePayHypothesisToTest); // 'code'
  getSeverancePayHypothesisExternalId(severancePayHypothesisToTest); // 'externalId'
  getSeverancePayHypothesisExternalCode(severancePayHypothesisToTest); // 'externalCode'
  getSeverancePayHypothesisSeverancePayHypothesisId(severancePayHypothesisToTest); // 'severancePayHypothesisId'
  getSeverancePayHypothesisLabel(severancePayHypothesisToTest); // 'label'
})();
```
