@silexpert/core 1.3.281 → 1.3.283
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/types/Enum/Comment.d.ts +2 -1
- package/dist/cjs/types/Enum/Comment.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Comment.js +1 -0
- package/dist/cjs/types/Enum/Comment.js.map +1 -1
- package/dist/cjs/types/Enum/UnpaidFollowUpReason.d.ts +23 -0
- package/dist/cjs/types/Enum/UnpaidFollowUpReason.d.ts.map +1 -0
- package/dist/cjs/types/Enum/UnpaidFollowUpReason.js +59 -0
- package/dist/cjs/types/Enum/UnpaidFollowUpReason.js.map +1 -0
- package/dist/cjs/types/Interface/api/payment/Params.d.ts +4 -0
- package/dist/cjs/types/Interface/api/payment/Params.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/payment/Params.js +16 -1
- package/dist/cjs/types/Interface/api/payment/Params.js.map +1 -1
- package/dist/cjs/types/Interface/api/payment/ReadPayment.d.ts +5 -0
- package/dist/cjs/types/Interface/api/payment/ReadPayment.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/payment/ReadPayment.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/types/Enum/Comment.d.ts +2 -1
- package/dist/mjs/types/Enum/Comment.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Comment.js +1 -0
- package/dist/mjs/types/Enum/Comment.js.map +1 -1
- package/dist/mjs/types/Enum/UnpaidFollowUpReason.d.ts +23 -0
- package/dist/mjs/types/Enum/UnpaidFollowUpReason.d.ts.map +1 -0
- package/dist/mjs/types/Enum/UnpaidFollowUpReason.js +56 -0
- package/dist/mjs/types/Enum/UnpaidFollowUpReason.js.map +1 -0
- package/dist/mjs/types/Interface/api/payment/Params.d.ts +4 -0
- package/dist/mjs/types/Interface/api/payment/Params.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/payment/Params.js +17 -1
- package/dist/mjs/types/Interface/api/payment/Params.js.map +1 -1
- package/dist/mjs/types/Interface/api/payment/ReadPayment.d.ts +5 -0
- package/dist/mjs/types/Interface/api/payment/ReadPayment.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/payment/ReadPayment.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Enum/Comment.ts +1 -0
- package/ts/types/Enum/UnpaidFollowUpReason.ts +62 -0
- package/ts/types/Interface/api/payment/Params.ts +13 -1
- package/ts/types/Interface/api/payment/ReadPayment.ts +6 -0
- package/ts/types/index.ts +1 -0
|
@@ -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
|
+
];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsBoolean, IsDate, IsInt, IsNumber, IsOptional, IsString, Matches, Min } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsDate, IsInt, IsNumber, IsOptional, IsPositive, IsString, Matches, Min } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
|
|
@@ -133,3 +133,15 @@ export class UpdatePayment {
|
|
|
133
133
|
@IsDate()
|
|
134
134
|
creditLossAt?: Date;
|
|
135
135
|
}
|
|
136
|
+
|
|
137
|
+
// Irrecoverable part of a payment written off as a credit loss
|
|
138
|
+
export class CreatePaymentCreditLoss {
|
|
139
|
+
@ApiProperty()
|
|
140
|
+
@IsNumber({ maxDecimalPlaces: 2 })
|
|
141
|
+
@IsPositive()
|
|
142
|
+
amount: number;
|
|
143
|
+
|
|
144
|
+
@ApiProperty()
|
|
145
|
+
@IsDate()
|
|
146
|
+
creditLossAt: Date;
|
|
147
|
+
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { EInvoicingStatusCode } from "../../../Enum/EInvoicingStatusCode";
|
|
2
|
+
import type { IPayment } from '../../models/IPayment';
|
|
3
|
+
|
|
4
|
+
export interface ReadPaymentCreditLoss {
|
|
5
|
+
creditLossPayment: IPayment;
|
|
6
|
+
remainingPayment: IPayment;
|
|
7
|
+
}
|
|
2
8
|
|
|
3
9
|
export interface ReadNotifyCustomer {
|
|
4
10
|
mailSentForSocieties: number;
|
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';
|