---
title: SeverancePayHypothesisCategory
slug: oip-next/3uquzo1bydwf9bqbxemwl
createdAt: 2024-02-21T13:25:52.000Z
---

# SeverancePayHypothesisCategory

## Description

L’entité SeverancePayHypothesisCategory contient les hypothèses de calcul par regroupement de catégorie.

## Relations

### Ascendantes

| Entité                 | Propriété                        |
| ---------------------- | -------------------------------- |
| SeverancePayHypothesis | severancePayHypothesisCategories |

### 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é `SeverancePayHypothesisCategory`                           | getSeverancePayHypothesisCategoryCreatedAt                 | Lecture seule                                              | -          |
| createdBy                 | `String`                                                      |                           | Utilisateur à l'origine de la création de l'entité `SeverancePayHypothesisCategory`     | getSeverancePayHypothesisCategoryCreatedBy                 | Lecture seule                                              | -          |
| id                        | `String`                                                      |                           | Identifiant unique de l'entité `SeverancePayHypothesisCategory`                         | getSeverancePayHypothesisCategoryId                        | Lecture seule                                              | -          |
| professionalCategoryGroup | `severancePayHypothesisCategoryProfessionalCategoryGroupEnum` | 2.7.0                     | Il s’agit du regroupement de catégorie pour un salarié.                                 | getSeverancePayHypothesisCategoryProfessionalCategoryGroup | setSeverancePayHypothesisCategoryProfessionalCategoryGroup | -          |
| retirementAge             | `Number`                                                      | 2.7.0                     | Age de départ à la retraite.                                                            | getSeverancePayHypothesisCategoryRetirementAge             | setSeverancePayHypothesisCategoryRetirementAge             | -          |
| salaryIncreaseRate        | `Number`                                                      | 2.7.0                     | Taux annuel de progression des salaires.                                                | getSeverancePayHypothesisCategorySalaryIncreaseRate        | setSeverancePayHypothesisCategorySalaryIncreaseRate        | -          |
| socialChargesRate         | `Number`                                                      | 2.7.0                     | Taux de charges sociale.                                                                | getSeverancePayHypothesisCategorySocialChargesRate         | setSeverancePayHypothesisCategorySocialChargesRate         | -          |
| turnoverCode              | `String`                                                      | 2.7.0                     | Code de turnover.                                                                       | getSeverancePayHypothesisCategoryTurnoverCode              | setSeverancePayHypothesisCategoryTurnoverCode              | -          |
| updatedAt                 | `Date`                                                        |                           | Date de modification de l'entité `SeverancePayHypothesisCategory`                       | getSeverancePayHypothesisCategoryUpdatedAt                 | Lecture seule                                              | -          |
| updatedBy                 | `String`                                                      |                           | Utilisateur à l'origine de la modification de l'entité `SeverancePayHypothesisCategory` | getSeverancePayHypothesisCategoryUpdatedBy                 | Lecture seule                                              | -          |

## Enums

### severancePayHypothesisCategoryProfessionalCategoryGroupEnum

- `severancePayHypothesisCategoryProfessionalCategoryGroupEnum.SENIOR_EXECUTIVE_EMPLOYEE`
- `severancePayHypothesisCategoryProfessionalCategoryGroupEnum.EXECUTIVE_EMPLOYEE`
- `severancePayHypothesisCategoryProfessionalCategoryGroupEnum.SUPERVISOR`
- `severancePayHypothesisCategoryProfessionalCategoryGroupEnum.EMPLOYEE`
- `severancePayHypothesisCategoryProfessionalCategoryGroupEnum.WORKER`
- `severancePayHypothesisCategoryProfessionalCategoryGroupEnum.SALES_REPRESENTATIVE`

## 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 { getSeverancePayHypothesisCategoryProfessionalCategoryGroup, getSeverancePayHypothesisCategoryRetirementAge, getSeverancePayHypothesisCategorySalaryIncreaseRate, getSeverancePayHypothesisCategorySocialChargesRate, getSeverancePayHypothesisCategoryTurnoverCode, getseverancePayHypothesisCategoryId, setSeverancePayHypothesisCategoryProfessionalCategoryGroup, setSeverancePayHypothesisCategoryRetirementAge, setSeverancePayHypothesisCategorySalaryIncreaseRate, setSeverancePayHypothesisCategorySocialChargesRate, setSeverancePayHypothesisCategoryTurnoverCode } from '@fasstech/oip-core/entities/severancePayHypothesisCategory';
import { severancePayHypothesisCategoryProfessionalCategoryGroupEnum } from '@fasstech/oip-core/entities/severancePayHypothesisCategory/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 SeverancePayHypothesisCategoryEntity = await Entities('SeverancePayHypothesisCategory').create();
  
  setSeverancePayHypothesisCategoryProfessionalCategoryGroup(severancePayHypothesisCategoryProfessionalCategoryGroupEnum.SUPERVISOR, SeverancePayHypothesisCategoryEntity);
  setSeverancePayHypothesisCategoryRetirementAge(114, SeverancePayHypothesisCategoryEntity);
  setSeverancePayHypothesisCategorySalaryIncreaseRate(115, SeverancePayHypothesisCategoryEntity);
  setSeverancePayHypothesisCategorySocialChargesRate(115, SeverancePayHypothesisCategoryEntity);
  setSeverancePayHypothesisCategoryTurnoverCode('turnoverCode', SeverancePayHypothesisCategoryEntity);
  
  SeverancePayHypothesisEntity = await Entities('SeverancePayHypothesisCategory').save(SeverancePayHypothesisEntity, SeverancePayHypothesisCategoryEntity);
  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 SeverancePayHypothesisCategoryEntityToTest = await Entities('SeverancePayHypothesisCategory').get(SeverancePayHypothesisEntityToTest, getSeverancePayHypothesisCategoryId(SeverancePayHypothesisCategoryEntity));
  
  getSeverancePayHypothesisCategoryProfessionalCategoryGroup(SeverancePayHypothesisCategoryEntityToTest); // severancePayHypothesisCategoryProfessionalCategoryGroupEnum.SUPERVISOR
  getSeverancePayHypothesisCategoryRetirementAge(SeverancePayHypothesisCategoryEntityToTest); // 114
  getSeverancePayHypothesisCategorySalaryIncreaseRate(SeverancePayHypothesisCategoryEntityToTest); // 115
  getSeverancePayHypothesisCategorySocialChargesRate(SeverancePayHypothesisCategoryEntityToTest); // 115
  getSeverancePayHypothesisCategoryTurnoverCode(SeverancePayHypothesisCategoryEntityToTest); // 'turnoverCode'
})();
```
