@silexpert/core 1.3.104 → 1.3.106-1
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/BankDedup.d.ts.map +1 -1
- package/dist/cjs/api/resources/BankDedup.js +5 -1
- package/dist/cjs/api/resources/BankDedup.js.map +1 -1
- package/dist/cjs/api/resources/FecFile.d.ts +0 -1
- package/dist/cjs/api/resources/FecFile.d.ts.map +1 -1
- package/dist/cjs/api/resources/FecFile.js +0 -3
- package/dist/cjs/api/resources/FecFile.js.map +1 -1
- package/dist/cjs/api/resources/IncomeAllocation.d.ts +0 -2
- package/dist/cjs/api/resources/IncomeAllocation.d.ts.map +1 -1
- package/dist/cjs/api/resources/IncomeAllocation.js +0 -4
- package/dist/cjs/api/resources/IncomeAllocation.js.map +1 -1
- package/dist/cjs/api/resources/Payment.d.ts +3 -1
- package/dist/cjs/api/resources/Payment.d.ts.map +1 -1
- package/dist/cjs/api/resources/Payment.js +3 -0
- package/dist/cjs/api/resources/Payment.js.map +1 -1
- package/dist/cjs/api/resources/Registration.d.ts +2 -1
- package/dist/cjs/api/resources/Registration.d.ts.map +1 -1
- package/dist/cjs/api/resources/Registration.js +3 -0
- package/dist/cjs/api/resources/Registration.js.map +1 -1
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts +3 -21
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js +2 -54
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/Utils.d.ts +2 -0
- package/dist/cjs/types/Interface/api/cerfa/Utils.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/Utils.js.map +1 -1
- package/dist/cjs/types/Interface/api/fecFile/CreateFecFile.d.ts +1 -0
- package/dist/cjs/types/Interface/api/fecFile/CreateFecFile.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/fecFile/CreateFecFile.js +7 -0
- package/dist/cjs/types/Interface/api/fecFile/CreateFecFile.js.map +1 -1
- package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts +10 -9
- package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js +17 -9
- package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js.map +1 -1
- package/dist/cjs/types/Interface/api/registration/QueryRegistration.d.ts +3 -0
- package/dist/cjs/types/Interface/api/registration/QueryRegistration.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/registration/QueryRegistration.js +9 -1
- package/dist/cjs/types/Interface/api/registration/QueryRegistration.js.map +1 -1
- package/dist/cjs/types/Interface/api/registration/ReadRegistration.d.ts +3 -0
- package/dist/cjs/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/registration/ReadRegistration.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +4 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +13 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -0
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +6 -0
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/mjs/api/resources/BankDedup.d.ts.map +1 -1
- package/dist/mjs/api/resources/BankDedup.js +5 -1
- package/dist/mjs/api/resources/BankDedup.js.map +1 -1
- package/dist/mjs/api/resources/FecFile.d.ts +0 -1
- package/dist/mjs/api/resources/FecFile.d.ts.map +1 -1
- package/dist/mjs/api/resources/FecFile.js +0 -3
- package/dist/mjs/api/resources/FecFile.js.map +1 -1
- package/dist/mjs/api/resources/IncomeAllocation.d.ts +0 -2
- package/dist/mjs/api/resources/IncomeAllocation.d.ts.map +1 -1
- package/dist/mjs/api/resources/IncomeAllocation.js +0 -4
- package/dist/mjs/api/resources/IncomeAllocation.js.map +1 -1
- package/dist/mjs/api/resources/Payment.d.ts +3 -1
- package/dist/mjs/api/resources/Payment.d.ts.map +1 -1
- package/dist/mjs/api/resources/Payment.js +3 -0
- package/dist/mjs/api/resources/Payment.js.map +1 -1
- package/dist/mjs/api/resources/Registration.d.ts +2 -1
- package/dist/mjs/api/resources/Registration.d.ts.map +1 -1
- package/dist/mjs/api/resources/Registration.js +3 -0
- package/dist/mjs/api/resources/Registration.js.map +1 -1
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts +3 -21
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js +1 -61
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/Utils.d.ts +2 -0
- package/dist/mjs/types/Interface/api/cerfa/Utils.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/Utils.js.map +1 -1
- package/dist/mjs/types/Interface/api/fecFile/CreateFecFile.d.ts +1 -0
- package/dist/mjs/types/Interface/api/fecFile/CreateFecFile.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/fecFile/CreateFecFile.js +8 -0
- package/dist/mjs/types/Interface/api/fecFile/CreateFecFile.js.map +1 -1
- package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts +10 -9
- package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js +18 -9
- package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js.map +1 -1
- package/dist/mjs/types/Interface/api/registration/QueryRegistration.d.ts +3 -0
- package/dist/mjs/types/Interface/api/registration/QueryRegistration.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/registration/QueryRegistration.js +8 -0
- package/dist/mjs/types/Interface/api/registration/QueryRegistration.js.map +1 -1
- package/dist/mjs/types/Interface/api/registration/ReadRegistration.d.ts +3 -0
- package/dist/mjs/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/registration/ReadRegistration.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +4 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +13 -0
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -0
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +8 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BankDedup.ts +6 -1
- package/ts/api/resources/FecFile.ts +0 -4
- package/ts/api/resources/IncomeAllocation.ts +0 -5
- package/ts/api/resources/Payment.ts +6 -0
- package/ts/api/resources/Registration.ts +6 -0
- package/ts/types/Interface/api/bankDedup/BankDedup.ts +3 -52
- package/ts/types/Interface/api/cerfa/Utils.ts +2 -0
- package/ts/types/Interface/api/fecFile/CreateFecFile.ts +6 -0
- package/ts/types/Interface/api/incomeAllocation/CreateIncomeAllocation.ts +25 -18
- package/ts/types/Interface/api/registration/QueryRegistration.ts +6 -0
- package/ts/types/Interface/api/registration/ReadRegistration.ts +4 -0
- package/ts/types/Interface/api/stripe/Create.ts +9 -0
- package/ts/types/Interface/api/stripe/QueryStripe.ts +6 -1
|
@@ -7,17 +7,24 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { IsBoolean, IsOptional, IsString } from 'class-validator';
|
|
10
|
+
import { IsBoolean, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
11
11
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
12
12
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
13
13
|
export class RetrievePaymentMethodsParams {
|
|
14
14
|
customerId;
|
|
15
|
+
idSociety;
|
|
15
16
|
}
|
|
16
17
|
__decorate([
|
|
17
18
|
ApiProperty(),
|
|
18
19
|
IsString(),
|
|
19
20
|
__metadata("design:type", String)
|
|
20
21
|
], RetrievePaymentMethodsParams.prototype, "customerId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
ApiPropertyOptional({ describe: 'Search into payment method metadata' }),
|
|
24
|
+
IsNumber(),
|
|
25
|
+
IsOptional(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], RetrievePaymentMethodsParams.prototype, "idSociety", void 0);
|
|
21
28
|
export class QueryStripeSession {
|
|
22
29
|
isYearly;
|
|
23
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryStripe.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/QueryStripe.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"QueryStripe.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/QueryStripe.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,4BAA4B;IAGvC,UAAU,CAAS;IAKnB,SAAS,CAAS;CACnB;AANC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;gEACQ;AAKnB;IAHC,mBAAmB,CAAC,EAAE,QAAQ,EAAE,qCAAqC,EAAE,CAAC;IACxE,QAAQ,EAAE;IACV,UAAU,EAAE;;+DACK;AAGpB,MAAM,OAAO,kBAAkB;IAK7B,QAAQ,CAAW;CACpB;AADC;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;oDACO;AAGrB,MAAM,OAAO,yBAAyB;IAGpC,UAAU,CAAS;CACpB;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACQ;AAGrB,MAAM,OAAO,gBAAgB;IAI3B,UAAU,CAAU;CACrB;AADC;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;oDACQ;AAGtB,MAAM,OAAO,uBAAuB;IAIlC,UAAU,CAAU;CACrB;AADC;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;2DACQ","sourcesContent":["import { IsBoolean, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class RetrievePaymentMethodsParams {\n @ApiProperty()\n @IsString()\n customerId: string;\n\n @ApiPropertyOptional({ describe: 'Search into payment method metadata' })\n @IsNumber()\n @IsOptional()\n idSociety: number;\n}\n\nexport class QueryStripeSession {\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n isYearly?: boolean;\n}\n\nexport class QueryStripeSubscriptionId {\n @ApiProperty()\n @IsString()\n customerId: string;\n}\n\nexport class QueryStripePrice {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n}\n\nexport class QueryStripePurchaseHook {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n isSoftware: boolean;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.106-1",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -8,7 +8,12 @@ export class BankDedup extends Resource {
|
|
|
8
8
|
public getAnalysis(body: BankDedupAnalysisParams): Promise<BankDedupResponse> {
|
|
9
9
|
const formData = new FormData();
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// Convert TFile2 buffer to Blob for FormData
|
|
12
|
+
const csvBlob = new Blob([new Uint8Array(body.csv.buffer)], {
|
|
13
|
+
type: body.csv.mimeType || 'text/csv',
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
formData.append('file', csvBlob, body.csv.originalname);
|
|
12
17
|
formData.append('initial', `${body.initial}`);
|
|
13
18
|
formData.append('target', `${body.target}`);
|
|
14
19
|
|
|
@@ -21,10 +21,6 @@ export class FecFile extends Resource {
|
|
|
21
21
|
return this.axios.$post('fec-file', params);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
map(params: CreateMappingFecFile): Promise<IFecFile> {
|
|
25
|
-
return this.axios.$post('fec-file/mapping', params);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
24
|
delete(): Promise<DeleteFecFile> {
|
|
29
25
|
return this.axios.$delete('fec-file');
|
|
30
26
|
}
|
|
@@ -21,11 +21,6 @@ export class IncomeAllocation extends Resource {
|
|
|
21
21
|
return this.axios.$get(`/incomeAllocation/annualGeneralMeeting/exercice/${idExercice}`);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
/** @deprecated */
|
|
25
|
-
create(params: CreateIncomeAllocation): Promise<IAccountingEntry[]> {
|
|
26
|
-
return this.axios.$post('/incomeAllocation/', params);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
24
|
createForSociety(idExercice: number, params: CreateIncomeAllocation): Promise<IAccountingEntry[]> {
|
|
30
25
|
return this.axios.$post(`/exercices/${idExercice}/income-allocations`, params);
|
|
31
26
|
}
|
|
@@ -23,8 +23,10 @@ import {
|
|
|
23
23
|
ReadStatsSocietyUnpaid,
|
|
24
24
|
UpdatePayment,
|
|
25
25
|
QueryStripeSubscriptionId,
|
|
26
|
+
UpdatePaymentMethod,
|
|
26
27
|
} from '../../types';
|
|
27
28
|
import { IPaymentRecovery } from '../../types/Interface/models/IPaymentRecovery';
|
|
29
|
+
import Stripe from 'stripe';
|
|
28
30
|
|
|
29
31
|
export class Payment extends Resource {
|
|
30
32
|
getMonthlyCsv(query: QueryMonthlyPayment): Promise<void> {
|
|
@@ -99,6 +101,10 @@ export class Payment extends Resource {
|
|
|
99
101
|
return this.axios.$get('/stripe/payments/methods', { params });
|
|
100
102
|
}
|
|
101
103
|
|
|
104
|
+
updatePaymentMethod(params: UpdatePaymentMethod): Promise<Stripe.PaymentMethod> {
|
|
105
|
+
return this.axios.$put('/stripe/payments/methods', params);
|
|
106
|
+
}
|
|
107
|
+
|
|
102
108
|
getStatsPaidByPrestation(
|
|
103
109
|
payload: QueryPayment,
|
|
104
110
|
): Promise<{ invoicePaymentStats: ReadStatPrestation; assetPaymentStats: ReadStatPrestation }> {
|
|
@@ -15,6 +15,8 @@ import {
|
|
|
15
15
|
UpdateRegistration,
|
|
16
16
|
ReadRegistrationExternalFile,
|
|
17
17
|
DownloadExternalFile,
|
|
18
|
+
QueryRegistrationFormValues,
|
|
19
|
+
ReadRegistrationFormValues,
|
|
18
20
|
} from '../../types';
|
|
19
21
|
|
|
20
22
|
export class Registration extends Resource {
|
|
@@ -109,4 +111,8 @@ export class Registration extends Resource {
|
|
|
109
111
|
...(signal ? { signal } : {}),
|
|
110
112
|
});
|
|
111
113
|
}
|
|
114
|
+
|
|
115
|
+
getAllFormValues(idExercice: number, query: QueryRegistrationFormValues): Promise<ReadRegistrationFormValues> {
|
|
116
|
+
return this.axios.$get(`/exercices/${idExercice}/registrations/form-values`, { params: query });
|
|
117
|
+
}
|
|
112
118
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IsString, IsNumber, IsArray, ValidateNested, IsBoolean, IsIn, IsOptional, Min, Max } from 'class-validator';
|
|
2
2
|
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
import { TFile2 } from '../file/TFile';
|
|
3
4
|
|
|
4
5
|
export class BankDedupRequest {
|
|
5
6
|
@ApiProperty()
|
|
@@ -17,7 +18,7 @@ export class BankDedupRequest {
|
|
|
17
18
|
|
|
18
19
|
export class BankDedupAnalysisParams {
|
|
19
20
|
@ApiProperty()
|
|
20
|
-
csv:
|
|
21
|
+
csv: TFile2;
|
|
21
22
|
|
|
22
23
|
@ApiProperty()
|
|
23
24
|
@IsNumber()
|
|
@@ -252,54 +253,4 @@ export class BankDedupGroup {
|
|
|
252
253
|
}[];
|
|
253
254
|
}
|
|
254
255
|
|
|
255
|
-
export
|
|
256
|
-
@ApiProperty()
|
|
257
|
-
@IsBoolean()
|
|
258
|
-
success: false;
|
|
259
|
-
|
|
260
|
-
@ApiProperty()
|
|
261
|
-
@IsIn(['NO_EXACT_COMBINATION', 'CSV_PARSE_ERROR', 'INVALID_INPUT', 'INSUFFICIENT_DUPLICATES'])
|
|
262
|
-
reason: 'NO_EXACT_COMBINATION' | 'CSV_PARSE_ERROR' | 'INVALID_INPUT' | 'INSUFFICIENT_DUPLICATES';
|
|
263
|
-
|
|
264
|
-
@ApiProperty()
|
|
265
|
-
@IsString()
|
|
266
|
-
message: string;
|
|
267
|
-
|
|
268
|
-
@ApiProperty()
|
|
269
|
-
@IsOptional()
|
|
270
|
-
@IsNumber()
|
|
271
|
-
initial?: number;
|
|
272
|
-
|
|
273
|
-
@ApiProperty()
|
|
274
|
-
@IsOptional()
|
|
275
|
-
@IsNumber()
|
|
276
|
-
target?: number;
|
|
277
|
-
|
|
278
|
-
@ApiProperty()
|
|
279
|
-
@IsOptional()
|
|
280
|
-
@IsNumber()
|
|
281
|
-
finalRaw?: number;
|
|
282
|
-
|
|
283
|
-
@ApiProperty()
|
|
284
|
-
@IsOptional()
|
|
285
|
-
@IsNumber()
|
|
286
|
-
diffBefore?: number;
|
|
287
|
-
|
|
288
|
-
@ApiProperty()
|
|
289
|
-
@IsOptional()
|
|
290
|
-
bestAttempt?: {
|
|
291
|
-
finalAfterDedup: number;
|
|
292
|
-
diffAfter: number;
|
|
293
|
-
removedCount: number;
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
@ApiProperty()
|
|
297
|
-
@IsOptional()
|
|
298
|
-
stats?: {
|
|
299
|
-
totalTx?: number;
|
|
300
|
-
totalGroups?: number;
|
|
301
|
-
strategiesTried?: string[];
|
|
302
|
-
};
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
export type BankDedupResponse = BankDedupResult | BankDedupImpossible;
|
|
256
|
+
export type BankDedupResponse = BankDedupResult;
|
|
@@ -12,7 +12,9 @@ export interface PartnersNaturalPersonPayment {
|
|
|
12
12
|
paymentYear: number;
|
|
13
13
|
emolumentsAndCompensations?: number;
|
|
14
14
|
fixedCompensations?: number;
|
|
15
|
+
fixedCompensations2?: number;
|
|
15
16
|
reimbursements?: number;
|
|
17
|
+
reimbursements2?: number;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
export interface PartnersNaturalPerson {
|
|
@@ -20,4 +20,10 @@ export class CreateMappingFecFile {
|
|
|
20
20
|
@IsBoolean()
|
|
21
21
|
@ToBoolean()
|
|
22
22
|
disableRetainingEarnings?: boolean;
|
|
23
|
+
|
|
24
|
+
@ApiPropertyOptional({ description: 'If true, delete the transactions before the end date of the new exercise.' })
|
|
25
|
+
@IsOptional()
|
|
26
|
+
@IsBoolean()
|
|
27
|
+
@ToBoolean()
|
|
28
|
+
shouldRemoveTransactionsBeforeEndDate?: boolean;
|
|
23
29
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { IsBoolean } from 'class-validator';
|
|
1
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
2
4
|
|
|
3
5
|
export class CreateIncomeAllocation {
|
|
4
6
|
@ApiProperty()
|
|
@@ -7,36 +9,41 @@ export class CreateIncomeAllocation {
|
|
|
7
9
|
@ApiProperty()
|
|
8
10
|
idExercice: number;
|
|
9
11
|
|
|
12
|
+
@ApiPropertyOptional({ description: 'If true, it will affect the amount into an account 117000.' })
|
|
13
|
+
@IsBoolean()
|
|
14
|
+
@ToBoolean()
|
|
15
|
+
isWaiting?: boolean;
|
|
16
|
+
|
|
10
17
|
@ApiPropertyOptional()
|
|
11
18
|
idFile?: number;
|
|
12
19
|
|
|
13
20
|
@ApiPropertyOptional()
|
|
14
21
|
dateValue?: string | undefined;
|
|
15
22
|
|
|
16
|
-
@
|
|
17
|
-
debitReport
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
debitReport?: number;
|
|
18
25
|
|
|
19
|
-
@
|
|
20
|
-
creditReport
|
|
26
|
+
@ApiPropertyOptional()
|
|
27
|
+
creditReport?: number;
|
|
21
28
|
|
|
22
|
-
@
|
|
23
|
-
statutoryReserve
|
|
29
|
+
@ApiPropertyOptional()
|
|
30
|
+
statutoryReserve?: number;
|
|
24
31
|
|
|
25
|
-
@
|
|
26
|
-
legalReserve
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
legalReserve?: number;
|
|
27
34
|
|
|
28
|
-
@
|
|
29
|
-
regulatedReserve
|
|
35
|
+
@ApiPropertyOptional()
|
|
36
|
+
regulatedReserve?: number;
|
|
30
37
|
|
|
31
|
-
@
|
|
32
|
-
unavailableReserve
|
|
38
|
+
@ApiPropertyOptional()
|
|
39
|
+
unavailableReserve?: number;
|
|
33
40
|
|
|
34
|
-
@
|
|
35
|
-
optionalReserve
|
|
41
|
+
@ApiPropertyOptional()
|
|
42
|
+
optionalReserve?: number;
|
|
36
43
|
|
|
37
|
-
@
|
|
38
|
-
levyOnReserve
|
|
44
|
+
@ApiPropertyOptional()
|
|
45
|
+
levyOnReserve?: number;
|
|
39
46
|
|
|
40
|
-
@
|
|
41
|
-
dividend
|
|
47
|
+
@ApiPropertyOptional()
|
|
48
|
+
dividend?: number;
|
|
42
49
|
}
|
|
@@ -12,6 +12,12 @@ export class QueryRegistration {
|
|
|
12
12
|
idExercice?: number;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export class QueryRegistrationFormValues {
|
|
16
|
+
@ApiProperty()
|
|
17
|
+
@IsEnum(CerfaType)
|
|
18
|
+
idCerfaType: CerfaType;
|
|
19
|
+
}
|
|
20
|
+
|
|
15
21
|
export class QueryPaginatedRegistration extends RequiredQueryPaginate {
|
|
16
22
|
@ApiPropertyOptional()
|
|
17
23
|
@IsOptional()
|
|
@@ -13,6 +13,10 @@ export interface ReadSynchronization {
|
|
|
13
13
|
hasFailed: boolean;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
export type ReadRegistrationFormValues = {
|
|
17
|
+
carriedForwardDeficit: number;
|
|
18
|
+
};
|
|
19
|
+
|
|
16
20
|
export type ReadRegistrationHistory = InterchangeState;
|
|
17
21
|
|
|
18
22
|
export interface ReadRegistrationTick {
|
|
@@ -112,6 +112,15 @@ export class CreatePaymentIntent {
|
|
|
112
112
|
metadata?: Stripe.MetadataParam;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
export class UpdatePaymentMethod {
|
|
116
|
+
@ApiProperty()
|
|
117
|
+
@IsString()
|
|
118
|
+
stripePaymentMethodId: string;
|
|
119
|
+
|
|
120
|
+
@ApiProperty()
|
|
121
|
+
metadata: any;
|
|
122
|
+
}
|
|
123
|
+
|
|
115
124
|
export class PostProcessPaymentAutomatically {
|
|
116
125
|
@ApiPropertyOptional()
|
|
117
126
|
@IsInt()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsBoolean, IsOptional, IsString } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
|
|
@@ -6,6 +6,11 @@ export class RetrievePaymentMethodsParams {
|
|
|
6
6
|
@ApiProperty()
|
|
7
7
|
@IsString()
|
|
8
8
|
customerId: string;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional({ describe: 'Search into payment method metadata' })
|
|
11
|
+
@IsNumber()
|
|
12
|
+
@IsOptional()
|
|
13
|
+
idSociety: number;
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
export class QueryStripeSession {
|