OSCommonProps
OSCommonProps
Description
La sous entité OSCommonProps représente les propriétés communes à toute l'offre.
Relations
Ascendantes
Entité | Propriété |
|---|---|
OfferNode | oSCommonProps |
Descendantes
Entité | Propriété |
|---|---|
Funeral | funerals |
History | history |
Propriétés
Nom | Type | Description | Validateur | Lecture seule ? | Dépréciée ? | DerniÚre version modifiée |
|---|---|---|---|---|---|---|
beneficiariesEnrollment | OSCommonPropsBeneficiariesEnrollmentEnum | Indique si et comment la part employeur s'applique aux ayants droit. OSCommonPropsBeneficiariesEnrollmentEnum | ï»ż | ï»ż | ï»ż | 3.9.0 |
college | OSCommonPropsCollegeEnum | CollĂšge. OSCommonPropsCollegeEnum | ï»ż | ï»ż | ï»ż | 3.4.2 |
contributionStructure | String | Structure de cotisations associĂ© au nĆud. Valeur libre pour le PERco. | ï»ż | ï»ż | ï»ż | 3.5.2 |
effectDate | Date | Date de prise d'effet de l'offre. | ï»ż | ï»ż | ï»ż | 3.1.0 |
employerPercentShare | Number | Part de l'employeur en poucentage. | ï»ż | ï»ż | ï»ż | 3.9.0 |
isConformCCN | Boolean | Indique la conformitĂ© de la formule par rapport Ă la CCN corrĂ©lĂ©e. | ï»ż | ï»ż | ï»ż | 3.9.0 |
isMinimaCCN | Boolean | Indique si la formule respecte les minima CCN requis. | ï»ż | ï»ż | ï»ż | 3.9.0 |
isPreSelected | Boolean | Il s'agit d'identifier les formules et/ou garanties prĂ©sĂ©lectionnĂ©es pour l'utilisateur pour permettre de faire une comparaison | ï»ż | ï»ż | ï»ż | 3.7.0 |
isRecommended | Boolean | Indique si l'offre est recommandĂ©e. | ï»ż | ï»ż | ï»ż | 3.1.0 |
isSelected | Boolean | Indique si l'offre est choisie. | ï»ż | ï»ż | ï»ż | 3.1.0 |
metadata | Json | MĂ©tadonnĂ©es complĂštes ou partielles issues de FlexiProduct. | ï»ż | ï»ż | ï»ż | 3.19.0 |
regime | OSCommonPropsRegimeEnum | RĂ©gime. OSCommonPropsRegimeEnum | ï»ż | ï»ż | ï»ż | 3.4.2 |
status | String | Statut du nĆud. | ï»ż | ï»ż | ï»ż | 3.5.2 |
typologyFamily | OSCommonPropsTypologyFamilyEnum | Type de structure tarifaire. OSCommonPropsTypologyFamilyEnum | ï»ż | ï»ż | ï»ż | 3.10.0 |
id | String | Identifiant de l'entitĂ© OSCommonProps | ï»ż | X | ï»ż | ï»ż |
code | String | Codification fonctionnelle de l'entitĂ© OSCommonProps | ï»ż | ï»ż | ï»ż | ï»ż |
externalId | String | Identifiant de l'entitĂ© OSCommonProps dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
externalCode | String | Codification fonctionnelle de l'entitĂ© OSCommonProps dans le systĂšme client | ï»ż | ï»ż | ï»ż | ï»ż |
oSCommonPropsId | String | Identifiant public de l'entitĂ© OSCommonProps dans l'OIP | ï»ż | ï»ż | ï»ż | ï»ż |
label | String | Information relative au nom de l'entitĂ© OSCommonProps dans son contexte d'utilisation | ï»ż | ï»ż | ï»ż | ï»ż |
createdAt | Date | Date de crĂ©ation de l'entitĂ© OSCommonProps | ï»ż | X | ï»ż | ï»ż |
createdBy | String | Responsable de la crĂ©ation de l'entitĂ© OSCommonProps | ï»ż | ï»ż | ï»ż | ï»ż |
updatedAt | Date | Date de modification de l'entitĂ© OSCommonProps | ï»ż | X | ï»ż | ï»ż |
updatedBy | String | Responsable de la derniĂšre mise Ă jour de l'entitĂ© OSCommonProps | ï»ż | ï»ż | ï»ż | ï»ż |
Enumérations
OSCommonPropsBeneficiariesEnrollmentEnum
- NONE
- MANDATORY_ENROLLMENT
- OPTIONAL_ENROLLMENT
OSCommonPropsCollegeEnum
- ALL
- EMPLOYEES
- EXECUTIVE_EMPLOYEES
OSCommonPropsRegimeEnum
- REGIME_AGRICOLE
- REGIME_GLOBAL
- REGIME_INDEPENDANT
- REGIME_LOCAL
OSCommonPropsTypologyFamilyEnum
- EMPLOYEE_CHILD
- EMPLOYEE_DUO_FAMILY
- EMPLOYEE_FAMILY
- EMPLOYEE_PARTNER_CHILD
- FAMILY
Enumérations génériques
Aucune enumération générique.
Exemple
import { Entities } from '@fasstech/oip-core';
import { getCompanyId } from '@fasstech/oip-core/entities/Company';
import { getOSCommonPropsBeneficiariesEnrollment, getOSCommonPropsCode, getOSCommonPropsCollege, getOSCommonPropsContributionStructure, getOSCommonPropsCreatedBy, getOSCommonPropsEffectDate, getOSCommonPropsEmployerPercentShare, getOSCommonPropsExternalCode, getOSCommonPropsExternalId, getOSCommonPropsId, getOSCommonPropsIsConformCCN, getOSCommonPropsIsMinimaCCN, getOSCommonPropsIsPreSelected, getOSCommonPropsIsRecommended, getOSCommonPropsIsSelected, getOSCommonPropsLabel, getOSCommonPropsMetadata, getOSCommonPropsOSCommonPropsId, getOSCommonPropsRegime, getOSCommonPropsStatus, getOSCommonPropsTypologyFamily, getOSCommonPropsUpdatedBy, setOSCommonPropsBeneficiariesEnrollment, setOSCommonPropsCode, setOSCommonPropsCollege, setOSCommonPropsContributionStructure, setOSCommonPropsCreatedBy, setOSCommonPropsEffectDate, setOSCommonPropsEmployerPercentShare, setOSCommonPropsExternalCode, setOSCommonPropsExternalId, setOSCommonPropsIsConformCCN, setOSCommonPropsIsMinimaCCN, setOSCommonPropsIsPreSelected, setOSCommonPropsIsRecommended, setOSCommonPropsIsSelected, setOSCommonPropsLabel, setOSCommonPropsMetadata, setOSCommonPropsOSCommonPropsId, setOSCommonPropsRegime, setOSCommonPropsStatus, setOSCommonPropsTypologyFamily, setOSCommonPropsUpdatedBy } from '@fasstech/oip-core/entities/OSCommonProps';
import { OSCommonPropsBeneficiariesEnrollmentEnum, OSCommonPropsCollegeEnum, OSCommonPropsRegimeEnum, OSCommonPropsTypologyFamilyEnum } from '@fasstech/oip-core/entities/OSCommonProps/enums';
import { getOfferNodeId } from '@fasstech/oip-core/entities/OfferNode';
import { getProjectId } from '@fasstech/oip-core/entities/Project';
(async () => {
let project = await Entities('Project').create();
let company = await Entities('Company').create();
let offerNode = await Entities('OfferNode').create();
const oSCommonProps = await Entities('OSCommonProps').create();
setOSCommonPropsBeneficiariesEnrollment(OSCommonPropsBeneficiariesEnrollmentEnum.OPTIONAL_ENROLLMENT, oSCommonProps);
setOSCommonPropsCollege(OSCommonPropsCollegeEnum.ALL, oSCommonProps);
setOSCommonPropsContributionStructure('contributionStructure', oSCommonProps);
setOSCommonPropsEffectDate(new Date('2017-01-01'), oSCommonProps);
setOSCommonPropsEmployerPercentShare(101, oSCommonProps);
setOSCommonPropsIsConformCCN(false, oSCommonProps);
setOSCommonPropsIsMinimaCCN(false, oSCommonProps);
setOSCommonPropsIsPreSelected(false, oSCommonProps);
setOSCommonPropsIsRecommended(false, oSCommonProps);
setOSCommonPropsIsSelected(false, oSCommonProps);
setOSCommonPropsMetadata({ metadata: 'foo' }, oSCommonProps);
setOSCommonPropsRegime(OSCommonPropsRegimeEnum.REGIME_INDEPENDANT, oSCommonProps);
setOSCommonPropsStatus('status', oSCommonProps);
setOSCommonPropsTypologyFamily(OSCommonPropsTypologyFamilyEnum.EMPLOYEE_DUO_FAMILY, oSCommonProps);
setOSCommonPropsCode('code', oSCommonProps);
setOSCommonPropsExternalId('externalId', oSCommonProps);
setOSCommonPropsExternalCode('externalCode', oSCommonProps);
setOSCommonPropsOSCommonPropsId('oSCommonPropsId', oSCommonProps);
setOSCommonPropsLabel('label', oSCommonProps);
setOSCommonPropsCreatedBy('createdBy', oSCommonProps);
setOSCommonPropsUpdatedBy('updatedBy', oSCommonProps);
offerNode = await Entities('OSCommonProps').save(offerNode, oSCommonProps);
company = await Entities('OfferNode').save(company, offerNode);
project = await Entities('Company').save(project, company);
await Entities('Project').save(project);
const projectToTest = await Entities('Project').get({ id: getProjectId(project) });
const companyToTest = await Entities('Company').get(projectToTest, { filter: ({ id }) => id === getCompanyId(company) });
const offerNodeToTest = await Entities('OfferNode').get(companyToTest, { filter: ({ id }) => id === getOfferNodeId(offerNode) });
const oSCommonPropsToTest = await Entities('OSCommonProps').get(offerNodeToTest, { filter: ({ id }) => id === getOSCommonPropsId(oSCommonProps) });
getOSCommonPropsBeneficiariesEnrollment(oSCommonPropsToTest); // OSCommonPropsBeneficiariesEnrollmentEnum.OPTIONAL_ENROLLMENT
getOSCommonPropsCollege(oSCommonPropsToTest); // OSCommonPropsCollegeEnum.ALL
getOSCommonPropsContributionStructure(oSCommonPropsToTest); // 'contributionStructure'
getOSCommonPropsEffectDate(oSCommonPropsToTest); // new Date('2017-01-01')
getOSCommonPropsEmployerPercentShare(oSCommonPropsToTest); // 101
getOSCommonPropsIsConformCCN(oSCommonPropsToTest); // false
getOSCommonPropsIsMinimaCCN(oSCommonPropsToTest); // false
getOSCommonPropsIsPreSelected(oSCommonPropsToTest); // false
getOSCommonPropsIsRecommended(oSCommonPropsToTest); // false
getOSCommonPropsIsSelected(oSCommonPropsToTest); // false
getOSCommonPropsMetadata(oSCommonPropsToTest); // { metadata: 'foo' }
getOSCommonPropsRegime(oSCommonPropsToTest); // OSCommonPropsRegimeEnum.REGIME_INDEPENDANT
getOSCommonPropsStatus(oSCommonPropsToTest); // 'status'
getOSCommonPropsTypologyFamily(oSCommonPropsToTest); // OSCommonPropsTypologyFamilyEnum.EMPLOYEE_DUO_FAMILY
getOSCommonPropsCode(oSCommonPropsToTest); // 'code'
getOSCommonPropsExternalId(oSCommonPropsToTest); // 'externalId'
getOSCommonPropsExternalCode(oSCommonPropsToTest); // 'externalCode'
getOSCommonPropsOSCommonPropsId(oSCommonPropsToTest); // 'oSCommonPropsId'
getOSCommonPropsLabel(oSCommonPropsToTest); // 'label'
getOSCommonPropsCreatedBy(oSCommonPropsToTest); // 'createdBy'
getOSCommonPropsUpdatedBy(oSCommonPropsToTest); // 'updatedBy'
})();