@silexpert/core 1.3.281 → 1.3.282

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.
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Motifs de suivi d'une relance d'impayé (commentaires de type CommentType.UNPAID).
3
+ * À ne pas confondre avec UnpaidReason (motifs de rejet SEPA).
4
+ */
5
+ export enum UnpaidFollowUpReason {
6
+ WRONG_NUMBER = 1,
7
+ BUSINESS_CLOSED = 2,
8
+ FINANCIAL_DIFFICULTIES = 3,
9
+ CALLBACK_REQUESTED = 4,
10
+ PAYMENT_PROMISE = 5,
11
+ NO_ANSWER = 6,
12
+ REFUSES_TO_PAY = 7,
13
+ PAID = 8,
14
+ OTHER = 9,
15
+ }
16
+
17
+ export interface UnpaidFollowUpReasonOption {
18
+ value: UnpaidFollowUpReason;
19
+ text: string;
20
+ /** La précision libre est obligatoire pour ce motif */
21
+ requiresDetail?: boolean;
22
+ }
23
+
24
+ export const UnpaidFollowUpReasonList: UnpaidFollowUpReasonOption[] = [
25
+ {
26
+ value: UnpaidFollowUpReason.WRONG_NUMBER,
27
+ text: 'Faux numéro',
28
+ },
29
+ {
30
+ value: UnpaidFollowUpReason.BUSINESS_CLOSED,
31
+ text: "Cessation d'activité",
32
+ },
33
+ {
34
+ value: UnpaidFollowUpReason.FINANCIAL_DIFFICULTIES,
35
+ text: 'Difficultés financières',
36
+ },
37
+ {
38
+ value: UnpaidFollowUpReason.CALLBACK_REQUESTED,
39
+ text: 'Demande de rappel',
40
+ },
41
+ {
42
+ value: UnpaidFollowUpReason.PAYMENT_PROMISE,
43
+ text: 'Promesse de paiement',
44
+ },
45
+ {
46
+ value: UnpaidFollowUpReason.NO_ANSWER,
47
+ text: 'Non répondu / Messagerie',
48
+ },
49
+ {
50
+ value: UnpaidFollowUpReason.REFUSES_TO_PAY,
51
+ text: 'Refus de payer / Ne plus contacter',
52
+ },
53
+ {
54
+ value: UnpaidFollowUpReason.PAID,
55
+ text: 'Réglé / Payé',
56
+ },
57
+ {
58
+ value: UnpaidFollowUpReason.OTHER,
59
+ text: 'Autre',
60
+ requiresDetail: true,
61
+ },
62
+ ];
package/ts/types/index.ts CHANGED
@@ -570,6 +570,7 @@ export * from './Enum/InformationRequestType';
570
570
  export * from './Enum/InformationRequestState';
571
571
  export * from './Enum/Revenue';
572
572
  export * from './Enum/EbookIntention';
573
+ export * from './Enum/UnpaidFollowUpReason';
573
574
 
574
575
  // Interfaces API
575
576
  export * from './Interface/api/authentification/AuthenticationResponse';