---
title: SeverancePayHypothesisSolution
slug: oip-next/yw1v0zvawymta0qld6e1i
createdAt: 2024-03-08T13:41:36.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 |

## 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é `SeverancePayHypothesisSolution`                                                                               | getSeverancePayHypothesisSolutionCreatedAt                            | Lecture seule                                                         | -          |
| createdBy                            | `String`                                 |                           | Utilisateur à l'origine de la création de l'entité `SeverancePayHypothesisSolution`                                                         | getSeverancePayHypothesisSolutionCreatedBy                            | Lecture seule                                                         | -          |
| depositFee                           | `Number`                                 | 2.8.0                     | Il s’agit des frais sur versements.                                                                                                         | getSeverancePayHypothesisSolutionDepositFee                           | setSeverancePayHypothesisSolutionDepositFee                           | -          |
| eurosDistributionPercentage          | `Number`                                 | 2.8.0                     | 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.            | getSeverancePayHypothesisSolutionEurosDistributionPercentage          | setSeverancePayHypothesisSolutionEurosDistributionPercentage          | -          |
| eurosExpenseRatio                    | `Number`                                 | 2.8.0                     | Il s’agit des frais sur encours en euros.                                                                                                   | getSeverancePayHypothesisSolutionEurosExpenseRatio                    | setSeverancePayHypothesisSolutionEurosExpenseRatio                    | -          |
| firstDeposit                         | `Number`                                 | 2.8.0                     | Il s’agit du versement initial effectué la première année.                                                                                  | getSeverancePayHypothesisSolutionFirstDeposit                         | setSeverancePayHypothesisSolutionFirstDeposit                         | -          |
| id                                   | `String`                                 |                           | Identifiant unique de l'entité `SeverancePayHypothesisSolution`                                                                             | getSeverancePayHypothesisSolutionId                                   | Lecture seule                                                         | -          |
| isSelected                           | `Boolean`                                | 2.10.0                    | Il s'agit de savoir si la solution financière a été sélectionnée.                                                                           | getSeverancePayHypothesisSolutionIsSelected                           | setSeverancePayHypothesisSolutionIsSelected                           | -          |
| periodicDeposit                      | `Number`                                 | 2.8.0                     | Il s’agit du versement périodique.                                                                                                          | getSeverancePayHypothesisSolutionPeriodicDeposit                      | setSeverancePayHypothesisSolutionPeriodicDeposit                      | -          |
| transferFee                          | `Number`                                 | 2.8.0                     | Il s’agit des frais sur transfert.                                                                                                          | getSeverancePayHypothesisSolutionTransferFee                          | setSeverancePayHypothesisSolutionTransferFee                          | -          |
| type                                 | `severancePayHypothesisSolutionTypeEnum` | 2.8.0                     | Il s’agit du type de solution de plan de financement.                                                                                       | getSeverancePayHypothesisSolutionType                                 | setSeverancePayHypothesisSolutionType                                 | -          |
| unitOfAccountsExpenseRatio           | `Number`                                 | 2.8.0                     | Il s’agit des frais sur encours en unités de compte.                                                                                        | getSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio           | setSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio           | -          |
| unitofAccountsDistributionPercentage | `Number`                                 | 2.8.0                     | 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. | getSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage | setSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage | -          |
| updatedAt                            | `Date`                                   |                           | Date de modification de l'entité `SeverancePayHypothesisSolution`                                                                           | getSeverancePayHypothesisSolutionUpdatedAt                            | Lecture seule                                                         | -          |
| updatedBy                            | `String`                                 |                           | Utilisateur à l'origine de la modification de l'entité `SeverancePayHypothesisSolution`                                                     | getSeverancePayHypothesisSolutionUpdatedBy                            | Lecture seule                                                         | -          |

## Enums

### severancePayHypothesisSolutionTypeEnum

- `severancePayHypothesisSolutionTypeEnum.RETROSPECTIVE_ADJUSTMENT`
- `severancePayHypothesisSolutionTypeEnum.AMORTIZED`
- `severancePayHypothesisSolutionTypeEnum.CUSTOMIZED`

## 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 { getSeverancePayHypothesisSolutionDepositFee, getSeverancePayHypothesisSolutionEurosDistributionPercentage, getSeverancePayHypothesisSolutionEurosExpenseRatio, getSeverancePayHypothesisSolutionFirstDeposit, getSeverancePayHypothesisSolutionIsSelected, getSeverancePayHypothesisSolutionPeriodicDeposit, getSeverancePayHypothesisSolutionTransferFee, getSeverancePayHypothesisSolutionType, getSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio, getSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage, getseverancePayHypothesisSolutionId, setSeverancePayHypothesisSolutionDepositFee, setSeverancePayHypothesisSolutionEurosDistributionPercentage, setSeverancePayHypothesisSolutionEurosExpenseRatio, setSeverancePayHypothesisSolutionFirstDeposit, setSeverancePayHypothesisSolutionIsSelected, setSeverancePayHypothesisSolutionPeriodicDeposit, setSeverancePayHypothesisSolutionTransferFee, setSeverancePayHypothesisSolutionType, setSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio, setSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage } from '@fasstech/oip-core/entities/severancePayHypothesisSolution';
import { severancePayHypothesisSolutionTypeEnum } from '@fasstech/oip-core/entities/severancePayHypothesisSolution/enums';

(async () => {
  let ProjectEntity = await Entities('Project').get({ id: projectId });
  let OfferEntity = await Entities('Offer').create();
  let HypothesisEntity = await Entities('Hypothesis').create();
  let SeverancePayHypothesisEntity = await Entities('SeverancePayHypothesis').get(HypothesisEntity);
  const SeverancePayHypothesisSolutionEntity = await Entities('SeverancePayHypothesisSolution').create();
  
  setSeverancePayHypothesisSolutionDepositFee(100, SeverancePayHypothesisSolutionEntity);
  setSeverancePayHypothesisSolutionEurosDistributionPercentage(101, SeverancePayHypothesisSolutionEntity);
  setSeverancePayHypothesisSolutionEurosExpenseRatio(101, SeverancePayHypothesisSolutionEntity);
  setSeverancePayHypothesisSolutionFirstDeposit(102, SeverancePayHypothesisSolutionEntity);
  setSeverancePayHypothesisSolutionIsSelected(false, SeverancePayHypothesisSolutionEntity);
  setSeverancePayHypothesisSolutionPeriodicDeposit(112, SeverancePayHypothesisSolutionEntity);
  setSeverancePayHypothesisSolutionTransferFee(116, SeverancePayHypothesisSolutionEntity);
  setSeverancePayHypothesisSolutionType(severancePayHypothesisSolutionTypeEnum.RETROSPECTIVE_ADJUSTMENT, SeverancePayHypothesisSolutionEntity);
  setSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio(117, SeverancePayHypothesisSolutionEntity);
  setSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage(117, SeverancePayHypothesisSolutionEntity);
  
  SeverancePayHypothesisEntity = await Entities('SeverancePayHypothesisSolution').save(SeverancePayHypothesisEntity, SeverancePayHypothesisSolutionEntity);
  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);
  const SeverancePayHypothesisSolutionEntityToTest = await Entities('SeverancePayHypothesisSolution').get(SeverancePayHypothesisEntityToTest, getSeverancePayHypothesisSolutionId(SeverancePayHypothesisSolutionEntity));
  
  getSeverancePayHypothesisSolutionDepositFee(SeverancePayHypothesisSolutionEntityToTest); // 100
  getSeverancePayHypothesisSolutionEurosDistributionPercentage(SeverancePayHypothesisSolutionEntityToTest); // 101
  getSeverancePayHypothesisSolutionEurosExpenseRatio(SeverancePayHypothesisSolutionEntityToTest); // 101
  getSeverancePayHypothesisSolutionFirstDeposit(SeverancePayHypothesisSolutionEntityToTest); // 102
  getSeverancePayHypothesisSolutionIsSelected(SeverancePayHypothesisSolutionEntityToTest); // false
  getSeverancePayHypothesisSolutionPeriodicDeposit(SeverancePayHypothesisSolutionEntityToTest); // 112
  getSeverancePayHypothesisSolutionTransferFee(SeverancePayHypothesisSolutionEntityToTest); // 116
  getSeverancePayHypothesisSolutionType(SeverancePayHypothesisSolutionEntityToTest); // severancePayHypothesisSolutionTypeEnum.RETROSPECTIVE_ADJUSTMENT
  getSeverancePayHypothesisSolutionUnitOfAccountsExpenseRatio(SeverancePayHypothesisSolutionEntityToTest); // 117
  getSeverancePayHypothesisSolutionUnitofAccountsDistributionPercentage(SeverancePayHypothesisSolutionEntityToTest); // 117
})();
```
