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

## Propriétés

| Nom                              | Type                            | Description                                                                                              | Validateur | Lecture seule ? | Dépréciée ? | Dernière version modifiée |
| -------------------------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------- | ---------- | --------------- | ----------- | ------------------------- |
| professionalCategoryGroup        | `ProfessionalCategoryGroupEnum` | Il s'agit du regroupement de catégorie pour un salarié.                                                  |            |                 |             | 2.7.0                     |
| retirementAge                    | `Number`                        | Age de départ à la retraite.                                                                             |            |                 |             | 2.7.0                     |
| salaryIncreaseRate               | `Number`                        | Taux annuel de progression des salaires.                                                                 |            |                 |             | 2.7.0                     |
| socialChargesRate                | `Number`                        | Taux de charges sociale.                                                                                 |            |                 |             | 2.7.0                     |
| turnoverCode                     | `String`                        | Code de turnover.                                                                                        |            |                 |             | 2.7.0                     |
| id                               | `String`                        | Identifiant de l'entité `SeverancePayHypothesisCategory`                                                 |            | X               |             |                           |
| code                             | `String`                        | Codification fonctionnelle de l'entité `SeverancePayHypothesisCategory`                                  |            |                 |             |                           |
| externalId                       | `String`                        | Identifiant de l'entité `SeverancePayHypothesisCategory` dans le système client                          |            |                 |             |                           |
| externalCode                     | `String`                        | Codification fonctionnelle de l'entité `SeverancePayHypothesisCategory` dans le système client           |            |                 |             |                           |
| severancePayHypothesisCategoryId | `String`                        | Identifiant public de l'entité `SeverancePayHypothesisCategory` dans l'OIP                               |            |                 |             |                           |
| label                            | `String`                        | Information relative au nom de l'entité `SeverancePayHypothesisCategory` dans son contexte d'utilisation |            |                 |             |                           |
| createdAt                        | `Date`                          | Date de création de l'entité `SeverancePayHypothesisCategory`                                            |            | X               |             |                           |
| updatedAt                        | `Date`                          | Date de modification de l'entité `SeverancePayHypothesisCategory`                                        |            | X               |             |                           |

## Enumérations

Aucune enumération.

## Enumérations génériques

- ProfessionalCategoryGroupEnum

## 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 { getSeverancePayHypothesisCategoryCode, getSeverancePayHypothesisCategoryExternalCode, getSeverancePayHypothesisCategoryExternalId, getSeverancePayHypothesisCategoryId, getSeverancePayHypothesisCategoryLabel, getSeverancePayHypothesisCategoryProfessionalCategoryGroup, getSeverancePayHypothesisCategoryRetirementAge, getSeverancePayHypothesisCategorySalaryIncreaseRate, getSeverancePayHypothesisCategorySeverancePayHypothesisCategoryId, getSeverancePayHypothesisCategorySocialChargesRate, getSeverancePayHypothesisCategoryTurnoverCode, setSeverancePayHypothesisCategoryCode, setSeverancePayHypothesisCategoryExternalCode, setSeverancePayHypothesisCategoryExternalId, setSeverancePayHypothesisCategoryLabel, setSeverancePayHypothesisCategoryProfessionalCategoryGroup, setSeverancePayHypothesisCategoryRetirementAge, setSeverancePayHypothesisCategorySalaryIncreaseRate, setSeverancePayHypothesisCategorySeverancePayHypothesisCategoryId, setSeverancePayHypothesisCategorySocialChargesRate, setSeverancePayHypothesisCategoryTurnoverCode } from '@fasstech/oip-core/entities/SeverancePayHypothesisCategory';
import { ProfessionalCategoryGroupEnum } from '@fasstech/oip-core/entities/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 severancePayHypothesisCategory = await Entities('SeverancePayHypothesisCategory').create();
  
  setSeverancePayHypothesisCategoryProfessionalCategoryGroup(ProfessionalCategoryGroupEnum.SUPERVISOR, severancePayHypothesisCategory);
  setSeverancePayHypothesisCategoryRetirementAge(114, severancePayHypothesisCategory);
  setSeverancePayHypothesisCategorySalaryIncreaseRate(115, severancePayHypothesisCategory);
  setSeverancePayHypothesisCategorySocialChargesRate(115, severancePayHypothesisCategory);
  setSeverancePayHypothesisCategoryTurnoverCode('turnoverCode', severancePayHypothesisCategory);
  setSeverancePayHypothesisCategoryCode('code', severancePayHypothesisCategory);
  setSeverancePayHypothesisCategoryExternalId('externalId', severancePayHypothesisCategory);
  setSeverancePayHypothesisCategoryExternalCode('externalCode', severancePayHypothesisCategory);
  setSeverancePayHypothesisCategorySeverancePayHypothesisCategoryId('severancePayHypothesisCategoryId', severancePayHypothesisCategory);
  setSeverancePayHypothesisCategoryLabel('label', severancePayHypothesisCategory);
  
  severancePayHypothesis = await Entities('SeverancePayHypothesisCategory').save(severancePayHypothesis, severancePayHypothesisCategory);
  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 severancePayHypothesisCategoryToTest = await Entities('SeverancePayHypothesisCategory').get(severancePayHypothesisToTest, { filter: ({ id }) => id === getSeverancePayHypothesisCategoryId(severancePayHypothesisCategory) });
  
  getSeverancePayHypothesisCategoryProfessionalCategoryGroup(severancePayHypothesisCategoryToTest); // ProfessionalCategoryGroupEnum.SUPERVISOR
  getSeverancePayHypothesisCategoryRetirementAge(severancePayHypothesisCategoryToTest); // 114
  getSeverancePayHypothesisCategorySalaryIncreaseRate(severancePayHypothesisCategoryToTest); // 115
  getSeverancePayHypothesisCategorySocialChargesRate(severancePayHypothesisCategoryToTest); // 115
  getSeverancePayHypothesisCategoryTurnoverCode(severancePayHypothesisCategoryToTest); // 'turnoverCode'
  getSeverancePayHypothesisCategoryCode(severancePayHypothesisCategoryToTest); // 'code'
  getSeverancePayHypothesisCategoryExternalId(severancePayHypothesisCategoryToTest); // 'externalId'
  getSeverancePayHypothesisCategoryExternalCode(severancePayHypothesisCategoryToTest); // 'externalCode'
  getSeverancePayHypothesisCategorySeverancePayHypothesisCategoryId(severancePayHypothesisCategoryToTest); // 'severancePayHypothesisCategoryId'
  getSeverancePayHypothesisCategoryLabel(severancePayHypothesisCategoryToTest); // 'label'
})();
```
