@silexpert/core 1.3.102 → 1.3.104

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.
Files changed (91) hide show
  1. package/dist/cjs/api/resources/BankDedup.d.ts +9 -0
  2. package/dist/cjs/api/resources/BankDedup.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/BankDedup.js +20 -0
  4. package/dist/cjs/api/resources/BankDedup.js.map +1 -0
  5. package/dist/cjs/api/resources/CalendarEvent.d.ts +1 -0
  6. package/dist/cjs/api/resources/CalendarEvent.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/CalendarEvent.js +3 -0
  8. package/dist/cjs/api/resources/CalendarEvent.js.map +1 -1
  9. package/dist/cjs/api/resources.d.ts +2 -0
  10. package/dist/cjs/api/resources.d.ts.map +1 -1
  11. package/dist/cjs/api/resources.js +3 -1
  12. package/dist/cjs/api/resources.js.map +1 -1
  13. package/dist/cjs/types/Enum/ConstitutionState.d.ts +2 -1
  14. package/dist/cjs/types/Enum/ConstitutionState.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/ConstitutionState.js +7 -1
  16. package/dist/cjs/types/Enum/ConstitutionState.js.map +1 -1
  17. package/dist/cjs/types/Enum/Phone.d.ts +6 -0
  18. package/dist/cjs/types/Enum/Phone.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/Phone.js +6 -0
  20. package/dist/cjs/types/Enum/Phone.js.map +1 -1
  21. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +2 -1
  22. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  23. package/dist/cjs/types/Enum/ReasonTerminationType.js +8 -2
  24. package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
  25. package/dist/cjs/types/Enum/RegistrationSource.d.ts +2 -1
  26. package/dist/cjs/types/Enum/RegistrationSource.d.ts.map +1 -1
  27. package/dist/cjs/types/Enum/RegistrationSource.js +1 -0
  28. package/dist/cjs/types/Enum/RegistrationSource.js.map +1 -1
  29. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts +104 -0
  30. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +1 -0
  31. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js +359 -0
  32. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js.map +1 -0
  33. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +15 -0
  34. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  35. package/dist/cjs/types/Interface/api/stripe/Create.js +68 -1
  36. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  37. package/dist/cjs/types/index.d.ts +1 -0
  38. package/dist/cjs/types/index.d.ts.map +1 -1
  39. package/dist/cjs/types/index.js +1 -0
  40. package/dist/cjs/types/index.js.map +1 -1
  41. package/dist/mjs/api/resources/BankDedup.d.ts +9 -0
  42. package/dist/mjs/api/resources/BankDedup.d.ts.map +1 -0
  43. package/dist/mjs/api/resources/BankDedup.js +16 -0
  44. package/dist/mjs/api/resources/BankDedup.js.map +1 -0
  45. package/dist/mjs/api/resources/CalendarEvent.d.ts +1 -0
  46. package/dist/mjs/api/resources/CalendarEvent.d.ts.map +1 -1
  47. package/dist/mjs/api/resources/CalendarEvent.js +3 -0
  48. package/dist/mjs/api/resources/CalendarEvent.js.map +1 -1
  49. package/dist/mjs/api/resources.d.ts +2 -0
  50. package/dist/mjs/api/resources.d.ts.map +1 -1
  51. package/dist/mjs/api/resources.js +3 -1
  52. package/dist/mjs/api/resources.js.map +1 -1
  53. package/dist/mjs/types/Enum/ConstitutionState.d.ts +2 -1
  54. package/dist/mjs/types/Enum/ConstitutionState.d.ts.map +1 -1
  55. package/dist/mjs/types/Enum/ConstitutionState.js +7 -1
  56. package/dist/mjs/types/Enum/ConstitutionState.js.map +1 -1
  57. package/dist/mjs/types/Enum/Phone.d.ts +6 -0
  58. package/dist/mjs/types/Enum/Phone.d.ts.map +1 -1
  59. package/dist/mjs/types/Enum/Phone.js +6 -0
  60. package/dist/mjs/types/Enum/Phone.js.map +1 -1
  61. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +2 -1
  62. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  63. package/dist/mjs/types/Enum/ReasonTerminationType.js +8 -2
  64. package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
  65. package/dist/mjs/types/Enum/RegistrationSource.d.ts +2 -1
  66. package/dist/mjs/types/Enum/RegistrationSource.d.ts.map +1 -1
  67. package/dist/mjs/types/Enum/RegistrationSource.js +1 -0
  68. package/dist/mjs/types/Enum/RegistrationSource.js.map +1 -1
  69. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts +104 -0
  70. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +1 -0
  71. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js +406 -0
  72. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js.map +1 -0
  73. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +15 -0
  74. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  75. package/dist/mjs/types/Interface/api/stripe/Create.js +76 -0
  76. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  77. package/dist/mjs/types/index.d.ts +1 -0
  78. package/dist/mjs/types/index.d.ts.map +1 -1
  79. package/dist/mjs/types/index.js +1 -0
  80. package/dist/mjs/types/index.js.map +1 -1
  81. package/package.json +1 -1
  82. package/ts/api/resources/BankDedup.ts +19 -0
  83. package/ts/api/resources/CalendarEvent.ts +4 -0
  84. package/ts/api/resources.ts +3 -1
  85. package/ts/types/Enum/ConstitutionState.ts +7 -1
  86. package/ts/types/Enum/Phone.ts +6 -0
  87. package/ts/types/Enum/ReasonTerminationType.ts +8 -2
  88. package/ts/types/Enum/RegistrationSource.ts +3 -2
  89. package/ts/types/Interface/api/bankDedup/BankDedup.ts +305 -0
  90. package/ts/types/Interface/api/stripe/Create.ts +53 -0
  91. package/ts/types/index.ts +1 -0
@@ -0,0 +1,406 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { IsString, IsNumber, IsArray, ValidateNested, IsBoolean, IsIn, IsOptional, Min, Max } from 'class-validator';
11
+ import { ApiProperty } from '../../../../utils';
12
+ export class BankDedupRequest {
13
+ csv; // CSV en string (avec header: label,dateValue,credit,debit)
14
+ initial; // solde initial
15
+ target; // solde cible
16
+ }
17
+ __decorate([
18
+ ApiProperty(),
19
+ IsString(),
20
+ __metadata("design:type", String)
21
+ ], BankDedupRequest.prototype, "csv", void 0);
22
+ __decorate([
23
+ ApiProperty(),
24
+ IsNumber(),
25
+ __metadata("design:type", Number)
26
+ ], BankDedupRequest.prototype, "initial", void 0);
27
+ __decorate([
28
+ ApiProperty(),
29
+ IsNumber(),
30
+ __metadata("design:type", Number)
31
+ ], BankDedupRequest.prototype, "target", void 0);
32
+ export class BankDedupAnalysisParams {
33
+ csv;
34
+ initial;
35
+ target;
36
+ }
37
+ __decorate([
38
+ ApiProperty(),
39
+ __metadata("design:type", File)
40
+ ], BankDedupAnalysisParams.prototype, "csv", void 0);
41
+ __decorate([
42
+ ApiProperty(),
43
+ IsNumber(),
44
+ __metadata("design:type", Number)
45
+ ], BankDedupAnalysisParams.prototype, "initial", void 0);
46
+ __decorate([
47
+ ApiProperty(),
48
+ IsNumber(),
49
+ __metadata("design:type", Number)
50
+ ], BankDedupAnalysisParams.prototype, "target", void 0);
51
+ export class BankDedupFileUploadBody {
52
+ initial; // solde initial
53
+ target; // solde cible
54
+ }
55
+ __decorate([
56
+ ApiProperty(),
57
+ IsNumber(),
58
+ __metadata("design:type", Number)
59
+ ], BankDedupFileUploadBody.prototype, "initial", void 0);
60
+ __decorate([
61
+ ApiProperty(),
62
+ IsNumber(),
63
+ __metadata("design:type", Number)
64
+ ], BankDedupFileUploadBody.prototype, "target", void 0);
65
+ export class BankTx {
66
+ id; // id interne généré
67
+ label;
68
+ dateValue; // YYYY-MM-DD
69
+ credit;
70
+ debit;
71
+ sign; // 1 = crédit net, -1 = débit net
72
+ amount; // valeur absolue du mouvement (en positif)
73
+ cents; // montant en centimes pour calculs exacts
74
+ }
75
+ __decorate([
76
+ ApiProperty(),
77
+ IsString(),
78
+ __metadata("design:type", String)
79
+ ], BankTx.prototype, "id", void 0);
80
+ __decorate([
81
+ ApiProperty(),
82
+ IsString(),
83
+ __metadata("design:type", String)
84
+ ], BankTx.prototype, "label", void 0);
85
+ __decorate([
86
+ ApiProperty(),
87
+ IsString(),
88
+ __metadata("design:type", String)
89
+ ], BankTx.prototype, "dateValue", void 0);
90
+ __decorate([
91
+ ApiProperty(),
92
+ IsNumber(),
93
+ __metadata("design:type", Number)
94
+ ], BankTx.prototype, "credit", void 0);
95
+ __decorate([
96
+ ApiProperty(),
97
+ IsNumber(),
98
+ __metadata("design:type", Number)
99
+ ], BankTx.prototype, "debit", void 0);
100
+ __decorate([
101
+ ApiProperty(),
102
+ IsIn([1, -1]),
103
+ __metadata("design:type", Number)
104
+ ], BankTx.prototype, "sign", void 0);
105
+ __decorate([
106
+ ApiProperty(),
107
+ IsNumber(),
108
+ Min(0),
109
+ __metadata("design:type", Number)
110
+ ], BankTx.prototype, "amount", void 0);
111
+ __decorate([
112
+ ApiProperty(),
113
+ IsNumber(),
114
+ __metadata("design:type", Number)
115
+ ], BankTx.prototype, "cents", void 0);
116
+ export class DuplicateGroup {
117
+ id;
118
+ transactions;
119
+ amount; // montant commun
120
+ cents; // montant en centimes
121
+ sign; // signe commun
122
+ confidence; // score de confiance [0 - 1]
123
+ method; // méthode de détection
124
+ }
125
+ __decorate([
126
+ ApiProperty(),
127
+ IsString(),
128
+ __metadata("design:type", String)
129
+ ], DuplicateGroup.prototype, "id", void 0);
130
+ __decorate([
131
+ ApiProperty({ type: [BankTx] }),
132
+ IsArray(),
133
+ ValidateNested({ each: true }),
134
+ __metadata("design:type", Array)
135
+ ], DuplicateGroup.prototype, "transactions", void 0);
136
+ __decorate([
137
+ ApiProperty(),
138
+ IsNumber(),
139
+ __metadata("design:type", Number)
140
+ ], DuplicateGroup.prototype, "amount", void 0);
141
+ __decorate([
142
+ ApiProperty(),
143
+ IsNumber(),
144
+ __metadata("design:type", Number)
145
+ ], DuplicateGroup.prototype, "cents", void 0);
146
+ __decorate([
147
+ ApiProperty(),
148
+ IsIn([1, -1]),
149
+ __metadata("design:type", Number)
150
+ ], DuplicateGroup.prototype, "sign", void 0);
151
+ __decorate([
152
+ ApiProperty(),
153
+ IsNumber(),
154
+ Min(0),
155
+ Max(1),
156
+ __metadata("design:type", Number)
157
+ ], DuplicateGroup.prototype, "confidence", void 0);
158
+ __decorate([
159
+ ApiProperty(),
160
+ IsIn(['exact', 'fuzzy_high', 'fuzzy_medium', 'fuzzy_low']),
161
+ __metadata("design:type", String)
162
+ ], DuplicateGroup.prototype, "method", void 0);
163
+ export class BankDedupRemovedTx {
164
+ id;
165
+ isSelected;
166
+ confidence;
167
+ method;
168
+ amount;
169
+ transactionCount;
170
+ transactions;
171
+ }
172
+ __decorate([
173
+ ApiProperty(),
174
+ IsString(),
175
+ __metadata("design:type", String)
176
+ ], BankDedupRemovedTx.prototype, "id", void 0);
177
+ __decorate([
178
+ ApiProperty(),
179
+ IsBoolean(),
180
+ __metadata("design:type", Boolean)
181
+ ], BankDedupRemovedTx.prototype, "isSelected", void 0);
182
+ __decorate([
183
+ ApiProperty(),
184
+ IsOptional(),
185
+ IsNumber(),
186
+ Min(0),
187
+ Max(1),
188
+ __metadata("design:type", Number)
189
+ ], BankDedupRemovedTx.prototype, "confidence", void 0);
190
+ __decorate([
191
+ ApiProperty(),
192
+ IsOptional(),
193
+ IsString(),
194
+ __metadata("design:type", String)
195
+ ], BankDedupRemovedTx.prototype, "method", void 0);
196
+ __decorate([
197
+ ApiProperty(),
198
+ IsOptional(),
199
+ IsNumber(),
200
+ __metadata("design:type", Number)
201
+ ], BankDedupRemovedTx.prototype, "amount", void 0);
202
+ __decorate([
203
+ ApiProperty(),
204
+ IsOptional(),
205
+ IsNumber(),
206
+ __metadata("design:type", Number)
207
+ ], BankDedupRemovedTx.prototype, "transactionCount", void 0);
208
+ __decorate([
209
+ ApiProperty(),
210
+ IsOptional(),
211
+ IsArray(),
212
+ __metadata("design:type", Array)
213
+ ], BankDedupRemovedTx.prototype, "transactions", void 0);
214
+ export class BankDedupResult {
215
+ success;
216
+ initial;
217
+ target;
218
+ finalRaw;
219
+ finalAfterDedup;
220
+ diffBefore; // target - finalRaw
221
+ diffAfter; // target - finalAfterDedup (DOIT être exactement 0, aucune tolérance)
222
+ removedTxs;
223
+ removedCount;
224
+ keptCount;
225
+ csvDeduped;
226
+ allGroups;
227
+ debug;
228
+ }
229
+ __decorate([
230
+ ApiProperty(),
231
+ IsBoolean(),
232
+ __metadata("design:type", Boolean)
233
+ ], BankDedupResult.prototype, "success", void 0);
234
+ __decorate([
235
+ ApiProperty(),
236
+ IsNumber(),
237
+ __metadata("design:type", Number)
238
+ ], BankDedupResult.prototype, "initial", void 0);
239
+ __decorate([
240
+ ApiProperty(),
241
+ IsNumber(),
242
+ __metadata("design:type", Number)
243
+ ], BankDedupResult.prototype, "target", void 0);
244
+ __decorate([
245
+ ApiProperty(),
246
+ IsNumber(),
247
+ __metadata("design:type", Number)
248
+ ], BankDedupResult.prototype, "finalRaw", void 0);
249
+ __decorate([
250
+ ApiProperty(),
251
+ IsNumber(),
252
+ __metadata("design:type", Number)
253
+ ], BankDedupResult.prototype, "finalAfterDedup", void 0);
254
+ __decorate([
255
+ ApiProperty(),
256
+ IsNumber(),
257
+ __metadata("design:type", Number)
258
+ ], BankDedupResult.prototype, "diffBefore", void 0);
259
+ __decorate([
260
+ ApiProperty(),
261
+ IsNumber(),
262
+ __metadata("design:type", Number)
263
+ ], BankDedupResult.prototype, "diffAfter", void 0);
264
+ __decorate([
265
+ ApiProperty(),
266
+ IsArray(),
267
+ ValidateNested({ each: true }),
268
+ __metadata("design:type", Array)
269
+ ], BankDedupResult.prototype, "removedTxs", void 0);
270
+ __decorate([
271
+ ApiProperty(),
272
+ IsNumber(),
273
+ __metadata("design:type", Number)
274
+ ], BankDedupResult.prototype, "removedCount", void 0);
275
+ __decorate([
276
+ ApiProperty(),
277
+ IsNumber(),
278
+ __metadata("design:type", Number)
279
+ ], BankDedupResult.prototype, "keptCount", void 0);
280
+ __decorate([
281
+ ApiProperty(),
282
+ IsString(),
283
+ __metadata("design:type", String)
284
+ ], BankDedupResult.prototype, "csvDeduped", void 0);
285
+ __decorate([
286
+ ApiProperty(),
287
+ IsArray(),
288
+ ValidateNested({ each: true }),
289
+ __metadata("design:type", Array)
290
+ ], BankDedupResult.prototype, "allGroups", void 0);
291
+ __decorate([
292
+ ApiProperty(),
293
+ __metadata("design:type", Object)
294
+ ], BankDedupResult.prototype, "debug", void 0);
295
+ export class BankDedupGroup {
296
+ id;
297
+ isSelected;
298
+ confidence;
299
+ method;
300
+ amount;
301
+ transactionCount;
302
+ transactions;
303
+ }
304
+ __decorate([
305
+ ApiProperty(),
306
+ IsString(),
307
+ __metadata("design:type", String)
308
+ ], BankDedupGroup.prototype, "id", void 0);
309
+ __decorate([
310
+ ApiProperty(),
311
+ IsBoolean(),
312
+ __metadata("design:type", Boolean)
313
+ ], BankDedupGroup.prototype, "isSelected", void 0);
314
+ __decorate([
315
+ ApiProperty(),
316
+ IsOptional(),
317
+ IsNumber(),
318
+ Min(0),
319
+ Max(1),
320
+ __metadata("design:type", Number)
321
+ ], BankDedupGroup.prototype, "confidence", void 0);
322
+ __decorate([
323
+ ApiProperty(),
324
+ IsOptional(),
325
+ IsString(),
326
+ __metadata("design:type", String)
327
+ ], BankDedupGroup.prototype, "method", void 0);
328
+ __decorate([
329
+ ApiProperty(),
330
+ IsOptional(),
331
+ IsNumber(),
332
+ __metadata("design:type", Number)
333
+ ], BankDedupGroup.prototype, "amount", void 0);
334
+ __decorate([
335
+ ApiProperty(),
336
+ IsOptional(),
337
+ IsNumber(),
338
+ __metadata("design:type", Number)
339
+ ], BankDedupGroup.prototype, "transactionCount", void 0);
340
+ __decorate([
341
+ ApiProperty(),
342
+ IsOptional(),
343
+ IsArray(),
344
+ __metadata("design:type", Array)
345
+ ], BankDedupGroup.prototype, "transactions", void 0);
346
+ export class BankDedupImpossible {
347
+ success;
348
+ reason;
349
+ message;
350
+ initial;
351
+ target;
352
+ finalRaw;
353
+ diffBefore;
354
+ bestAttempt;
355
+ stats;
356
+ }
357
+ __decorate([
358
+ ApiProperty(),
359
+ IsBoolean(),
360
+ __metadata("design:type", Boolean)
361
+ ], BankDedupImpossible.prototype, "success", void 0);
362
+ __decorate([
363
+ ApiProperty(),
364
+ IsIn(['NO_EXACT_COMBINATION', 'CSV_PARSE_ERROR', 'INVALID_INPUT', 'INSUFFICIENT_DUPLICATES']),
365
+ __metadata("design:type", String)
366
+ ], BankDedupImpossible.prototype, "reason", void 0);
367
+ __decorate([
368
+ ApiProperty(),
369
+ IsString(),
370
+ __metadata("design:type", String)
371
+ ], BankDedupImpossible.prototype, "message", void 0);
372
+ __decorate([
373
+ ApiProperty(),
374
+ IsOptional(),
375
+ IsNumber(),
376
+ __metadata("design:type", Number)
377
+ ], BankDedupImpossible.prototype, "initial", void 0);
378
+ __decorate([
379
+ ApiProperty(),
380
+ IsOptional(),
381
+ IsNumber(),
382
+ __metadata("design:type", Number)
383
+ ], BankDedupImpossible.prototype, "target", void 0);
384
+ __decorate([
385
+ ApiProperty(),
386
+ IsOptional(),
387
+ IsNumber(),
388
+ __metadata("design:type", Number)
389
+ ], BankDedupImpossible.prototype, "finalRaw", void 0);
390
+ __decorate([
391
+ ApiProperty(),
392
+ IsOptional(),
393
+ IsNumber(),
394
+ __metadata("design:type", Number)
395
+ ], BankDedupImpossible.prototype, "diffBefore", void 0);
396
+ __decorate([
397
+ ApiProperty(),
398
+ IsOptional(),
399
+ __metadata("design:type", Object)
400
+ ], BankDedupImpossible.prototype, "bestAttempt", void 0);
401
+ __decorate([
402
+ ApiProperty(),
403
+ IsOptional(),
404
+ __metadata("design:type", Object)
405
+ ], BankDedupImpossible.prototype, "stats", void 0);
406
+ //# sourceMappingURL=BankDedup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BankDedup.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankDedup/BankDedup.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACrH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,gBAAgB;IAG3B,GAAG,CAAS,CAAC,4DAA4D;IAIzE,OAAO,CAAS,CAAC,gBAAgB;IAIjC,MAAM,CAAS,CAAC,cAAc;CAC/B;AATC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6CACC;AAIZ;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;iDACK;AAIhB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;gDACI;AAGjB,MAAM,OAAO,uBAAuB;IAElC,GAAG,CAAO;IAIV,OAAO,CAAS;IAIhB,MAAM,CAAS;CAChB;AATC;IADC,WAAW,EAAE;8BACT,IAAI;oDAAC;AAIV;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;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E;;wDAKX;AAIF;IAFC,WAAW,EAAE;IACb,UAAU,EAAE;;kDAKX","sourcesContent":["import { IsString, IsNumber, IsArray, ValidateNested, IsBoolean, IsIn, IsOptional, Min, Max } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class BankDedupRequest {\n @ApiProperty()\n @IsString()\n csv: string; // CSV en string (avec header: label,dateValue,credit,debit)\n\n @ApiProperty()\n @IsNumber()\n initial: number; // solde initial\n\n @ApiProperty()\n @IsNumber()\n target: number; // solde cible\n}\n\nexport class BankDedupAnalysisParams {\n @ApiProperty()\n csv: File;\n\n @ApiProperty()\n @IsNumber()\n initial: number;\n\n @ApiProperty()\n @IsNumber()\n target: number;\n}\n\nexport class BankDedupFileUploadBody {\n @ApiProperty()\n @IsNumber()\n initial: number; // solde initial\n\n @ApiProperty()\n @IsNumber()\n target: number; // solde cible\n}\n\nexport class BankTx {\n @ApiProperty()\n @IsString()\n id: string; // id interne généré\n\n @ApiProperty()\n @IsString()\n label: string;\n\n @ApiProperty()\n @IsString()\n dateValue: string; // YYYY-MM-DD\n\n @ApiProperty()\n @IsNumber()\n credit: number;\n\n @ApiProperty()\n @IsNumber()\n debit: number;\n\n @ApiProperty()\n @IsIn([1, -1])\n sign: 1 | -1; // 1 = crédit net, -1 = débit net\n\n @ApiProperty()\n @IsNumber()\n @Min(0)\n amount: number; // valeur absolue du mouvement (en positif)\n\n @ApiProperty()\n @IsNumber()\n cents: number; // montant en centimes pour calculs exacts\n}\n\nexport class DuplicateGroup {\n @ApiProperty()\n @IsString()\n id: string;\n\n @ApiProperty({ type: [BankTx] })\n @IsArray()\n @ValidateNested({ each: true })\n transactions: BankTx[];\n\n @ApiProperty()\n @IsNumber()\n amount: number; // montant commun\n\n @ApiProperty()\n @IsNumber()\n cents: number; // montant en centimes\n\n @ApiProperty()\n @IsIn([1, -1])\n sign: 1 | -1; // signe commun\n\n @ApiProperty()\n @IsNumber()\n @Min(0)\n @Max(1)\n confidence: number; // score de confiance [0 - 1]\n\n @ApiProperty()\n @IsIn(['exact', 'fuzzy_high', 'fuzzy_medium', 'fuzzy_low'])\n method: 'exact' | 'fuzzy_high' | 'fuzzy_medium' | 'fuzzy_low'; // méthode de détection\n}\n\nexport class BankDedupRemovedTx {\n @ApiProperty()\n @IsString()\n id: string;\n\n @ApiProperty()\n @IsBoolean()\n isSelected: boolean;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n @Min(0)\n @Max(1)\n confidence?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsString()\n method?: string;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n transactionCount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsArray()\n transactions?: {\n id: string;\n label: string;\n dateValue: string;\n isKept: boolean;\n isCredit: boolean;\n }[];\n}\n\nexport class BankDedupResult {\n @ApiProperty()\n @IsBoolean()\n success: true;\n\n @ApiProperty()\n @IsNumber()\n initial: number;\n\n @ApiProperty()\n @IsNumber()\n target: number;\n\n @ApiProperty()\n @IsNumber()\n finalRaw: number;\n\n @ApiProperty()\n @IsNumber()\n finalAfterDedup: number;\n\n @ApiProperty()\n @IsNumber()\n diffBefore: number; // target - finalRaw\n\n @ApiProperty()\n @IsNumber()\n diffAfter: number; // target - finalAfterDedup (DOIT être exactement 0, aucune tolérance)\n\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n removedTxs: BankDedupRemovedTx[];\n\n @ApiProperty()\n @IsNumber()\n removedCount: number;\n\n @ApiProperty()\n @IsNumber()\n keptCount: number;\n\n @ApiProperty()\n @IsString()\n csvDeduped: string;\n\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n allGroups: BankDedupGroup[];\n\n @ApiProperty()\n debug: {\n totalGroups: number;\n selectedGroups: number;\n iterations: number;\n strategiesUsed: string[];\n };\n}\n\nexport class BankDedupGroup {\n @ApiProperty()\n @IsString()\n id: string;\n\n @ApiProperty()\n @IsBoolean()\n isSelected: boolean;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n @Min(0)\n @Max(1)\n confidence?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsString()\n method?: string;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n transactionCount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsArray()\n transactions?: {\n id: string;\n label: string;\n dateValue: string;\n isKept: boolean;\n isCredit: boolean;\n }[];\n}\n\nexport class BankDedupImpossible {\n @ApiProperty()\n @IsBoolean()\n success: false;\n\n @ApiProperty()\n @IsIn(['NO_EXACT_COMBINATION', 'CSV_PARSE_ERROR', 'INVALID_INPUT', 'INSUFFICIENT_DUPLICATES'])\n reason: 'NO_EXACT_COMBINATION' | 'CSV_PARSE_ERROR' | 'INVALID_INPUT' | 'INSUFFICIENT_DUPLICATES';\n\n @ApiProperty()\n @IsString()\n message: string;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n initial?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n target?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n finalRaw?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n diffBefore?: number;\n\n @ApiProperty()\n @IsOptional()\n bestAttempt?: {\n finalAfterDedup: number;\n diffAfter: number;\n removedCount: number;\n };\n\n @ApiProperty()\n @IsOptional()\n stats?: {\n totalTx?: number;\n totalGroups?: number;\n strategiesTried?: string[];\n };\n}\n\nexport type BankDedupResponse = BankDedupResult | BankDedupImpossible;\n"]}
@@ -28,6 +28,11 @@ export declare class CreateSubscriptionSessionOff {
28
28
  ref: string;
29
29
  returnUrl?: string;
30
30
  }
31
+ export declare class CreateSubscriptionSessionOffErp {
32
+ idSociety: number;
33
+ stripePriceId: string;
34
+ returnUrl?: string;
35
+ }
31
36
  export declare class CreatePaymentIntent {
32
37
  stripeCustomerId: string;
33
38
  paymentMethodId: string;
@@ -54,4 +59,14 @@ export declare class CreatePurchaseSession {
54
59
  quantity: number;
55
60
  }>;
56
61
  }
62
+ export declare class CreatePaymentSession {
63
+ stripeCustomerId: string;
64
+ label?: string;
65
+ returnUrl: string;
66
+ metadata?: Record<string, string | number>;
67
+ amountInCentsTaxIncluded?: number;
68
+ priceId?: string;
69
+ idVatForInternalInvoicing?: number;
70
+ stripeAccount?: string;
71
+ }
57
72
  //# sourceMappingURL=Create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,qBAAa,sBAAsB;IAGjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,cAAc;IAGzB,EAAE,EAAE,MAAM,CAAC;IAIX,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,iCAAiC;IAI5C,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED,qBAAa,yBAAyB;IAGpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,uBAAuB;IAGlC,SAAS,EAAE,MAAM,CAAC;IAIlB,MAAM,EAAE,MAAM,CAAC;IAIf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,4BAA4B;IAIvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,GAAG,EAAE,MAAM,CAAC;IAKZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,eAAe,EAAE,MAAM,CAAC;IAIxB,aAAa,EAAE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CAAC,CAAC;IAK3C,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAKlC,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAKnC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
@@ -118,6 +118,27 @@ __decorate([
118
118
  IsString(),
119
119
  __metadata("design:type", String)
120
120
  ], CreateSubscriptionSessionOff.prototype, "returnUrl", void 0);
121
+ export class CreateSubscriptionSessionOffErp {
122
+ idSociety;
123
+ stripePriceId;
124
+ returnUrl;
125
+ }
126
+ __decorate([
127
+ ApiProperty(),
128
+ IsInt(),
129
+ __metadata("design:type", Number)
130
+ ], CreateSubscriptionSessionOffErp.prototype, "idSociety", void 0);
131
+ __decorate([
132
+ ApiProperty(),
133
+ IsString(),
134
+ __metadata("design:type", String)
135
+ ], CreateSubscriptionSessionOffErp.prototype, "stripePriceId", void 0);
136
+ __decorate([
137
+ ApiPropertyOptional(),
138
+ IsOptional(),
139
+ IsString(),
140
+ __metadata("design:type", String)
141
+ ], CreateSubscriptionSessionOffErp.prototype, "returnUrl", void 0);
121
142
  export class CreatePaymentIntent {
122
143
  stripeCustomerId;
123
144
  paymentMethodId;
@@ -211,4 +232,59 @@ __decorate([
211
232
  IsArray(),
212
233
  __metadata("design:type", Array)
213
234
  ], CreatePurchaseSession.prototype, "items", void 0);
235
+ export class CreatePaymentSession {
236
+ stripeCustomerId;
237
+ label;
238
+ returnUrl;
239
+ metadata;
240
+ amountInCentsTaxIncluded;
241
+ priceId;
242
+ idVatForInternalInvoicing;
243
+ stripeAccount;
244
+ }
245
+ __decorate([
246
+ ApiProperty(),
247
+ IsString(),
248
+ __metadata("design:type", String)
249
+ ], CreatePaymentSession.prototype, "stripeCustomerId", void 0);
250
+ __decorate([
251
+ ApiPropertyOptional(),
252
+ IsOptional(),
253
+ IsString(),
254
+ __metadata("design:type", String)
255
+ ], CreatePaymentSession.prototype, "label", void 0);
256
+ __decorate([
257
+ ApiProperty(),
258
+ IsString(),
259
+ __metadata("design:type", String)
260
+ ], CreatePaymentSession.prototype, "returnUrl", void 0);
261
+ __decorate([
262
+ ApiPropertyOptional(),
263
+ IsOptional(),
264
+ __metadata("design:type", Object)
265
+ ], CreatePaymentSession.prototype, "metadata", void 0);
266
+ __decorate([
267
+ ApiPropertyOptional(),
268
+ IsOptional(),
269
+ IsInt(),
270
+ __metadata("design:type", Number)
271
+ ], CreatePaymentSession.prototype, "amountInCentsTaxIncluded", void 0);
272
+ __decorate([
273
+ ApiPropertyOptional(),
274
+ IsOptional(),
275
+ IsString(),
276
+ __metadata("design:type", String)
277
+ ], CreatePaymentSession.prototype, "priceId", void 0);
278
+ __decorate([
279
+ ApiPropertyOptional(),
280
+ IsOptional(),
281
+ IsInt(),
282
+ __metadata("design:type", Number)
283
+ ], CreatePaymentSession.prototype, "idVatForInternalInvoicing", void 0);
284
+ __decorate([
285
+ ApiPropertyOptional(),
286
+ IsOptional(),
287
+ IsString(),
288
+ __metadata("design:type", String)
289
+ ], CreatePaymentSession.prototype, "stripeAccount", void 0);
214
290
  //# sourceMappingURL=Create.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACvH,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,MAAM,OAAO,sBAAsB;IAGjC,IAAI,CAAS;CACd;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;oDACE;AAGf,MAAM,OAAO,mBAAmB;IAG9B,gBAAgB,CAAS;CAC1B;AADC;IA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ACqB;AAI3C;IAFC,WAAW,EAAE;IACb,OAAO,EAAE;8BACH,KAAK;oDAAwC","sourcesContent":["import { IsArray, IsBoolean, IsDate, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n\nexport class PostProcessPaymentAutomatically {\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n}\n\nexport class CreateTapToPayIntent {\n @ApiProperty()\n @IsNumber()\n @Min(1, {\n message: 'Le montant doit être supérieur à 1ct',\n })\n amountInCents: number;\n}\n\nexport class CreateTapToPayConnectionToken {\n @ApiProperty()\n @IsString()\n @IsOptional()\n locationId?: string;\n}\n\nexport class CreatePurchaseSession {\n @ApiProperty({ description: 'Is software or accountancy product' })\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n\n @ApiProperty({ description: 'Redirection link on success' })\n @IsString()\n successRedirection: string;\n\n @ApiProperty({ description: 'Redirection link on cancel / error' })\n @IsString()\n cancelRedirection: string;\n\n @ApiPropertyOptional()\n metadata?: Record<string, string | number>;\n\n @ApiProperty()\n @IsArray()\n items: Array<{ priceId: string; quantity: number }>;\n}\n"]}
1
+ {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACvH,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,MAAM,OAAO,sBAAsB;IAGjC,IAAI,CAAS;CACd;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;oDACE;AAGf,MAAM,OAAO,mBAAmB;IAG9B,gBAAgB,CAAS;CAC1B;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACc;AAG3B,MAAM,OAAO,cAAc;IAGzB,EAAE,CAAS;IAIX,KAAK,CAAS;IAId,QAAQ,CAAU;IAIlB,SAAS,CAAU;CACpB;AAbC;IAFC,WAAW,EAAE;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AE,WAAW,EAAE,oCAAoC,EAAE,CAAC;IAClE,QAAQ,EAAE;;gEACe;AAG1B;IADC,mBAAmB,EAAE;;uDACqB;AAI3C;IAFC,WAAW,EAAE;IACb,OAAO,EAAE;8BACH,KAAK;oDAAwC;AAEtD,MAAM,OAAO,oBAAoB;IAG/B,gBAAgB,CAAS;IAKzB,KAAK,CAAU;IAIf,SAAS,CAAS;IAIlB,QAAQ,CAAmC;IAK3C,wBAAwB,CAAU;IAKlC,OAAO,CAAU;IAKjB,yBAAyB,CAAU;IAKnC,aAAa,CAAU;CACxB;AAlCC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;8DACc;AAKzB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACI;AAIf;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;uDACO;AAIlB;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;sDAC8B;AAK3C;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;sEAC0B;AAKlC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;qDACM;AAKjB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,KAAK,EAAE;;uEAC2B;AAKnC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;2DACY","sourcesContent":["import { IsArray, IsBoolean, IsDate, IsDateString, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateCommercialSession {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsInt()\n idUser: number;\n\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreateSubscriptionSessionOffErp {\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiProperty()\n @IsString()\n stripePriceId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n\nexport class PostProcessPaymentAutomatically {\n @ApiPropertyOptional()\n @IsInt()\n @IsOptional()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsDateString()\n @IsOptional()\n minDate?: string;\n}\n\nexport class CreateTapToPayIntent {\n @ApiProperty()\n @IsNumber()\n @Min(1, {\n message: 'Le montant doit être supérieur à 1ct',\n })\n amountInCents: number;\n}\n\nexport class CreateTapToPayConnectionToken {\n @ApiProperty()\n @IsString()\n @IsOptional()\n locationId?: string;\n}\n\nexport class CreatePurchaseSession {\n @ApiProperty({ description: 'Is software or accountancy product' })\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n\n @ApiProperty({ description: 'Redirection link on success' })\n @IsString()\n successRedirection: string;\n\n @ApiProperty({ description: 'Redirection link on cancel / error' })\n @IsString()\n cancelRedirection: string;\n\n @ApiPropertyOptional()\n metadata?: Record<string, string | number>;\n\n @ApiProperty()\n @IsArray()\n items: Array<{ priceId: string; quantity: number }>;\n}\nexport class CreatePaymentSession {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n label?: string;\n\n @ApiProperty()\n @IsString()\n returnUrl: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n metadata?: Record<string, string | number>;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n amountInCentsTaxIncluded?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n priceId?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idVatForInternalInvoicing?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeAccount?: string;\n}\n"]}
@@ -726,6 +726,7 @@ export * from './Interface/api/webmail/ExportEmails';
726
726
  export * from './Interface/api/webmail/PostAttachmentEmailFromLambdaParams';
727
727
  export * from './Interface/api/webmail/GetPaginatedWhereObjectParams';
728
728
  export * from './Interface/api/bankAccount/Delete';
729
+ export * from './Interface/api/bankDedup/BankDedup';
729
730
  export * from './Interface/api/log/QueryLogPagination';
730
731
  export * from './Interface/api/employee/QueryEmployeeSearch';
731
732
  export * from './Interface/api/employee/QueryCreateEmployee';