@silexpert/core 1.1.180 → 1.1.182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/resources/BalanceSheet.d.ts +2 -0
- package/dist/cjs/api/resources/BalanceSheet.d.ts.map +1 -1
- package/dist/cjs/api/resources/BalanceSheet.js +3 -0
- package/dist/cjs/api/resources/BalanceSheet.js.map +1 -1
- package/dist/cjs/api/resources/ThirdParty.d.ts +0 -1
- package/dist/cjs/api/resources/ThirdParty.d.ts.map +1 -1
- package/dist/cjs/api/resources/ThirdParty.js +0 -4
- package/dist/cjs/api/resources/ThirdParty.js.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +2 -0
- package/dist/cjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.d.ts +0 -1
- package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICustomerVat.d.ts +1 -0
- package/dist/cjs/types/Interface/models/ICustomerVat.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICustomerVat.js.map +1 -1
- package/dist/cjs/utils/index.d.ts +1 -0
- package/dist/cjs/utils/index.d.ts.map +1 -1
- package/dist/cjs/utils/index.js +1 -0
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/statutsGeneration.d.ts +177 -0
- package/dist/cjs/utils/statutsGeneration.d.ts.map +1 -0
- package/dist/cjs/utils/statutsGeneration.js +115 -0
- package/dist/cjs/utils/statutsGeneration.js.map +1 -0
- package/dist/mjs/api/resources/BalanceSheet.d.ts +2 -0
- package/dist/mjs/api/resources/BalanceSheet.d.ts.map +1 -1
- package/dist/mjs/api/resources/BalanceSheet.js +3 -0
- package/dist/mjs/api/resources/BalanceSheet.js.map +1 -1
- package/dist/mjs/api/resources/ThirdParty.d.ts +0 -1
- package/dist/mjs/api/resources/ThirdParty.d.ts.map +1 -1
- package/dist/mjs/api/resources/ThirdParty.js +0 -4
- package/dist/mjs/api/resources/ThirdParty.js.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +2 -0
- package/dist/mjs/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.d.ts +0 -1
- package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICustomerVat.d.ts +1 -0
- package/dist/mjs/types/Interface/models/ICustomerVat.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICustomerVat.js.map +1 -1
- package/dist/mjs/utils/index.d.ts +1 -0
- package/dist/mjs/utils/index.d.ts.map +1 -1
- package/dist/mjs/utils/index.js +1 -0
- package/dist/mjs/utils/index.js.map +1 -1
- package/dist/mjs/utils/statutsGeneration.d.ts +177 -0
- package/dist/mjs/utils/statutsGeneration.d.ts.map +1 -0
- package/dist/mjs/utils/statutsGeneration.js +111 -0
- package/dist/mjs/utils/statutsGeneration.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/BalanceSheet.ts +6 -0
- package/ts/api/resources/ThirdParty.ts +0 -5
- package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +2 -0
- package/ts/types/Interface/models/IBalanceSheet.ts +1 -0
- package/ts/types/Interface/models/ICard.ts +0 -1
- package/ts/types/Interface/models/ICustomerVat.ts +1 -0
- package/ts/utils/index.ts +1 -0
- package/ts/utils/statutsGeneration.ts +123 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { LegalFormTypeEnum } from '../types/Enum/LegalForm';
|
|
2
|
+
import { PrestationType } from '../types/Enum/PrestationType';
|
|
3
|
+
|
|
4
|
+
export const legalNoticesCosts: Record<number, number> = {
|
|
5
|
+
[LegalFormTypeEnum.SASU]: 138,
|
|
6
|
+
[LegalFormTypeEnum.SAS]: 193,
|
|
7
|
+
[LegalFormTypeEnum.EURL]: 121,
|
|
8
|
+
[LegalFormTypeEnum.SARL]: 144,
|
|
9
|
+
[LegalFormTypeEnum.AUTO_ENTREPRENEUR]: 0,
|
|
10
|
+
[LegalFormTypeEnum.EI]: 0,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const courtCosts: Record<number, number> = {
|
|
14
|
+
[LegalFormTypeEnum.SASU]: 77.23,
|
|
15
|
+
[LegalFormTypeEnum.SAS]: 77.23,
|
|
16
|
+
[LegalFormTypeEnum.EURL]: 77.23,
|
|
17
|
+
[LegalFormTypeEnum.SARL]: 77.23,
|
|
18
|
+
[LegalFormTypeEnum.AUTO_ENTREPRENEUR]: 39,
|
|
19
|
+
[LegalFormTypeEnum.EI]: 39,
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const features = [
|
|
23
|
+
{
|
|
24
|
+
text: 'Statuts + dossier complet',
|
|
25
|
+
detail: null,
|
|
26
|
+
offers: [PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2],
|
|
27
|
+
hidden: [PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_AE],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
text: 'Dossier complet',
|
|
31
|
+
detail: null,
|
|
32
|
+
offers: [PrestationType.STATUTS_OPTION_AE],
|
|
33
|
+
hidden: [PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
text: 'Statuts',
|
|
37
|
+
detail: null,
|
|
38
|
+
offers: [PrestationType.STATUTS_FREE],
|
|
39
|
+
hidden: [PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
text: 'Assistance mail et téléphonique',
|
|
43
|
+
detail: null,
|
|
44
|
+
offers: [PrestationType.STATUTS_FREE, PrestationType.STATUTS_OPTION_1, PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE],
|
|
45
|
+
},
|
|
46
|
+
{ text: 'Suivi par nos formalistes', detail: null, offers: [PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE] },
|
|
47
|
+
{
|
|
48
|
+
text: 'Immatriculation',
|
|
49
|
+
detail: '(sous réserve du guichet unique)',
|
|
50
|
+
offers: [PrestationType.STATUTS_OPTION_2, PrestationType.STATUTS_OPTION_AE],
|
|
51
|
+
},
|
|
52
|
+
{ text: 'Assurance anti-rejet', detail: null, offers: [PrestationType.STATUTS_OPTION_2] },
|
|
53
|
+
{ text: 'Vérification du dossier', detail: null, offers: [PrestationType.STATUTS_OPTION_2] },
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
export const justCreation = {
|
|
57
|
+
id: PrestationType.STATUTS_OPTION_1,
|
|
58
|
+
tag: null,
|
|
59
|
+
title: 'Just’ Création',
|
|
60
|
+
description: 'Une création en quelques clics',
|
|
61
|
+
price: 0,
|
|
62
|
+
priceInformation: 'HT',
|
|
63
|
+
additionalCosts: '+ Frais de greffe + frais d’annonce légale',
|
|
64
|
+
features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_FREE)),
|
|
65
|
+
legalForms: [LegalFormTypeEnum.SASU, LegalFormTypeEnum.SAS, LegalFormTypeEnum.EURL, LegalFormTypeEnum.SARL],
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export const justStatuts = {
|
|
69
|
+
id: PrestationType.STATUTS_FREE,
|
|
70
|
+
tag: null,
|
|
71
|
+
title: 'Just’ Statuts',
|
|
72
|
+
description: 'Editer vos statuts n’a jamais été aussi simple et rapide.',
|
|
73
|
+
price: 79,
|
|
74
|
+
priceInformation: 'HT',
|
|
75
|
+
additionalCosts: 'Annonce légale et frais de greffe non inclus',
|
|
76
|
+
features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_FREE)),
|
|
77
|
+
legalForms: [LegalFormTypeEnum.SASU, LegalFormTypeEnum.SAS, LegalFormTypeEnum.EURL, LegalFormTypeEnum.SARL],
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export const creaSociete = {
|
|
81
|
+
id: PrestationType.STATUTS_OPTION_2,
|
|
82
|
+
tag: 'Populaire',
|
|
83
|
+
title: 'Full\'Créa',
|
|
84
|
+
description: 'Création de société de A à Z, réalisée en toute conformité.',
|
|
85
|
+
price: {
|
|
86
|
+
[LegalFormTypeEnum.SASU]: 179,
|
|
87
|
+
[LegalFormTypeEnum.SAS]: 219,
|
|
88
|
+
[LegalFormTypeEnum.EURL]: 179,
|
|
89
|
+
[LegalFormTypeEnum.SARL]: 219,
|
|
90
|
+
} as Record<number, number>,
|
|
91
|
+
priceInformation: 'HT',
|
|
92
|
+
additionalCosts: '+ frais de greffe + frais d’annonce légale',
|
|
93
|
+
features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_OPTION_2)),
|
|
94
|
+
legalForms: [LegalFormTypeEnum.SASU, LegalFormTypeEnum.SAS, LegalFormTypeEnum.EURL, LegalFormTypeEnum.SARL],
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export const creaEIMicro = {
|
|
98
|
+
id: PrestationType.STATUTS_OPTION_AE,
|
|
99
|
+
tag: null,
|
|
100
|
+
title: 'Créa EI et Micro',
|
|
101
|
+
description:
|
|
102
|
+
'Créer votre entreprise individuelle ou votre micro-entreprise en quelques clics.',
|
|
103
|
+
price: 60,
|
|
104
|
+
priceInformation: 'HT',
|
|
105
|
+
additionalCosts: '+ 39€ HT de frais de greffe',
|
|
106
|
+
features: features.filter((f) => f.offers.includes(PrestationType.STATUTS_OPTION_AE)),
|
|
107
|
+
legalForms: [LegalFormTypeEnum.AUTO_ENTREPRENEUR, LegalFormTypeEnum.EI],
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export const offers = [justCreation, creaEIMicro, justStatuts, creaSociete];
|
|
111
|
+
|
|
112
|
+
export const getStatutsAmount = (idLegalForm: LegalFormTypeEnum, idPrestationList: PrestationType): number => {
|
|
113
|
+
const offer = offers.find((e) => e.id === idPrestationList)!;
|
|
114
|
+
|
|
115
|
+
const price =
|
|
116
|
+
typeof offer.price === 'object'
|
|
117
|
+
? offer.price[idLegalForm]
|
|
118
|
+
: offer.price;
|
|
119
|
+
|
|
120
|
+
return price +
|
|
121
|
+
legalNoticesCosts[idLegalForm] +
|
|
122
|
+
courtCosts[idLegalForm];
|
|
123
|
+
};
|