---
title: SeverancePayHypothesisSolution
slug: oip-next/hl44qfynz-qvvgwyxkbi
icon: {"lucideIcon":"📘"}
createdAt: 2024-04-08T10:17:29.000Z
---

# SeverancePayHypothesisSolution

## Description

L'entité SeverancePayHypothesisSolution contient les différentes informations liées à la solution de plan de financement.

## Relations

### Ascendantes

| Entité                 | Propriété                       |
| ---------------------- | ------------------------------- |
| SeverancePayHypothesis | severancePayHypothesisSolutions |

### Descendantes

| Entité                                    | Propriété                                  |
| ----------------------------------------- | ------------------------------------------ |
| History                                   | history                                    |
| SeverancePayHypothesisSolutionFundingPlan | severancePayHypothesisSolutionFundingPlans |

## Propriétés

| Nom                                  | Type                                     | Description                                                                                                                                 | Validateur | Lecture seule ? | Dépréciée ? | Dernière version modifiée |
| ------------------------------------ | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | --------------- | ----------- | ------------------------- |
| depositFee                           | `Number`                                 | Il s'agit des frais sur versements.                                                                                                         |            |                 |             | 2.8.0                     |
| eurosDistributionPercentage          | `Number`                                 | Il s'agit du pourcentage de répartition entre les fonds en euros et en unité de compte. Ici c'est celui pour les fonds en euros.            |            |                 |             | 2.8.0                     |
| eurosExpenseRatio                    | `Number`                                 | Il s'agit des frais sur encours en euros.                                                                                                   |            |                 |             | 2.8.0                     |
| firstDeposit                         | `Number`                                 | Il s'agit du versement initial effectué la première année.                                                                                  |            |                 |             | 2.8.0                     |
| isSelected                           | `Boolean`                                | Il s'agit de savoir si la solution financière a été sélectionnée.                                                                           |            |                 |             | 2.10.0                    |
| periodicDeposit                      | `Number`                                 | Il s'agit du versement périodique.                                                                                                          |            |                 |             | 2.8.0                     |
| transferFee                          | `Number`                                 | Il s'agit des frais sur transfert.                                                                                                          |            |                 |             | 2.8.0                     |
| type                                 | `SeverancePayHypothesisSolutionTypeEnum` | Il s'agit du type de solution de plan de financement.                                                                                       |            |                 |             | 2.8.0                     |
| unitOfAccountsExpenseRatio           | `Number`                                 | Il s'agit des frais sur encours en unités de compte.                                                                                        |            |                 |             | 2.8.0                     |
| unitofAccountsDistributionPercentage | `Number`                                 | Il s'agit du pourcentage de répartition entre les fonds en euros et en unité de compte. Ici c'est celui pour les fonds en unités de compte. |            |                 |             | 2.8.0                     |
| id                                   | `String`                                 | Identifiant de l'entité `SeverancePayHypothesisSolution`                                                                                    |            | X               |             |                           |
| code                                 | `String`                                 | Codification fonctionnelle de l'entité `SeverancePayHypothesisSolution`                                                                     |            |                 |             |                           |
| externalId                           | `String`                                 | Identifiant de l'entité `SeverancePayHypothesisSolution` dans le système client                                                             |            |                 |             |                           |
| externalCode                         | `String`                                 | Codification fonctionnelle de l'entité `SeverancePayHypothesisSolution` dans le système client                                              |            |                 |             |                           |
| severancePayHypothesisSolutionId     | `String`                                 | Identifiant public de l'entité `SeverancePayHypothesisSolution` dans l'OIP                                                                  |            |                 |             |                           |
| label                                | `String`                                 | Information relative au nom de l'entité `SeverancePayHypothesisSolution` dans son contexte d'utilisation                                    |            |                 |             |                           |
| createdAt                            | `Date`                                   | Date de création de l'entité `SeverancePayHypothesisSolution`                                                                               |            | X               |             |                           |
| updatedAt                            | `Date`                                   | Date de modification de l'entité `SeverancePayHypothesisSolution`                                                                           |            | X               |             |                           |

## Enumérations

### SeverancePayHypothesisSolutionTypeEnum

- `AMORTIZED`
- `CUSTOMIZED`
- `RETROSPECTIVE_ADJUSTMENT`

## 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 { getSeverancePayHypothesisId } from '@fasstech/oip-core/entities/SeverancePayHypothesis';
import { getSeverancePayHypothesisSolutionCode, getSeverancePayHypothesisSolutionDepositFee, getSeverancePayHypothesisSolutionEurosDistributionPercentage, getSeverancePayHypothesisSolutionEurosExpenseRatio, getSeverancePayHypothesisSolutionExternalCode, getSeverancePayHypothesisSolutionExternalId, getSeverancePayHypothesisSolutionFirstDeposit, getSeverancePayHypothesisSolutionId, getSeverancePayHypothesisSolutionIsSelected, getSeverancePayHypothesisSolutionLabel, getSeverancePayHypothesisSolutionPeriodicDeposit, getSeverancePayHypothesisSolutionSeverancePayHypothesisSolutionId, getSeverancePayHypothesisSolutionTransferFee, getSeverancePayHypothesisSolutionType, getSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio, getSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage, setSeverancePayHypothesisSolutionCode, setSeverancePayHypothesisSolutionDepositFee, setSeverancePayHypothesisSolutionEurosDistributionPercentage, setSeverancePayHypothesisSolutionEurosExpenseRatio, setSeverancePayHypothesisSolutionExternalCode, setSeverancePayHypothesisSolutionExternalId, setSeverancePayHypothesisSolutionFirstDeposit, setSeverancePayHypothesisSolutionIsSelected, setSeverancePayHypothesisSolutionLabel, setSeverancePayHypothesisSolutionPeriodicDeposit, setSeverancePayHypothesisSolutionSeverancePayHypothesisSolutionId, setSeverancePayHypothesisSolutionTransferFee, setSeverancePayHypothesisSolutionType, setSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio, setSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage } from '@fasstech/oip-core/entities/SeverancePayHypothesisSolution';
import { SeverancePayHypothesisSolutionTypeEnum } from '@fasstech/oip-core/entities/SeverancePayHypothesisSolution/enums';

(async () => {
  let project = await Entities('Project').create();
  let offer = await Entities('Offer').create();
  let hypothesis = await Entities('Hypothesis').create();
  let severancePayHypothesis = await Entities('SeverancePayHypothesis').create();
  const severancePayHypothesisSolution = await Entities('SeverancePayHypothesisSolution').create();
  
  setSeverancePayHypothesisSolutionDepositFee(100, severancePayHypothesisSolution);
  setSeverancePayHypothesisSolutionEurosDistributionPercentage(101, severancePayHypothesisSolution);
  setSeverancePayHypothesisSolutionEurosExpenseRatio(101, severancePayHypothesisSolution);
  setSeverancePayHypothesisSolutionFirstDeposit(102, severancePayHypothesisSolution);
  setSeverancePayHypothesisSolutionIsSelected(false, severancePayHypothesisSolution);
  setSeverancePayHypothesisSolutionPeriodicDeposit(112, severancePayHypothesisSolution);
  setSeverancePayHypothesisSolutionTransferFee(116, severancePayHypothesisSolution);
  setSeverancePayHypothesisSolutionType(SeverancePayHypothesisSolutionTypeEnum.RETROSPECTIVE_ADJUSTMENT, severancePayHypothesisSolution);
  setSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio(117, severancePayHypothesisSolution);
  setSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage(117, severancePayHypothesisSolution);
  setSeverancePayHypothesisSolutionCode('code', severancePayHypothesisSolution);
  setSeverancePayHypothesisSolutionExternalId('externalId', severancePayHypothesisSolution);
  setSeverancePayHypothesisSolutionExternalCode('externalCode', severancePayHypothesisSolution);
  setSeverancePayHypothesisSolutionSeverancePayHypothesisSolutionId('severancePayHypothesisSolutionId', severancePayHypothesisSolution);
  setSeverancePayHypothesisSolutionLabel('label', severancePayHypothesisSolution);
  
  severancePayHypothesis = await Entities('SeverancePayHypothesisSolution').save(severancePayHypothesis, severancePayHypothesisSolution);
  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) });
  const severancePayHypothesisSolutionToTest = await Entities('SeverancePayHypothesisSolution').get(severancePayHypothesisToTest, { filter: ({ id }) => id === getSeverancePayHypothesisSolutionId(severancePayHypothesisSolution) });
  
  getSeverancePayHypothesisSolutionDepositFee(severancePayHypothesisSolutionToTest); // 100
  getSeverancePayHypothesisSolutionEurosDistributionPercentage(severancePayHypothesisSolutionToTest); // 101
  getSeverancePayHypothesisSolutionEurosExpenseRatio(severancePayHypothesisSolutionToTest); // 101
  getSeverancePayHypothesisSolutionFirstDeposit(severancePayHypothesisSolutionToTest); // 102
  getSeverancePayHypothesisSolutionIsSelected(severancePayHypothesisSolutionToTest); // false
  getSeverancePayHypothesisSolutionPeriodicDeposit(severancePayHypothesisSolutionToTest); // 112
  getSeverancePayHypothesisSolutionTransferFee(severancePayHypothesisSolutionToTest); // 116
  getSeverancePayHypothesisSolutionType(severancePayHypothesisSolutionToTest); // SeverancePayHypothesisSolutionTypeEnum.RETROSPECTIVE_ADJUSTMENT
  getSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio(severancePayHypothesisSolutionToTest); // 117
  getSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage(severancePayHypothesisSolutionToTest); // 117
  getSeverancePayHypothesisSolutionCode(severancePayHypothesisSolutionToTest); // 'code'
  getSeverancePayHypothesisSolutionExternalId(severancePayHypothesisSolutionToTest); // 'externalId'
  getSeverancePayHypothesisSolutionExternalCode(severancePayHypothesisSolutionToTest); // 'externalCode'
  getSeverancePayHypothesisSolutionSeverancePayHypothesisSolutionId(severancePayHypothesisSolutionToTest); // 'severancePayHypothesisSolutionId'
  getSeverancePayHypothesisSolutionLabel(severancePayHypothesisSolutionToTest); // 'label'
})();
```
