@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.
Files changed (112) hide show
  1. package/dist/cjs/api/resources/BankDedup.d.ts.map +1 -1
  2. package/dist/cjs/api/resources/BankDedup.js +5 -1
  3. package/dist/cjs/api/resources/BankDedup.js.map +1 -1
  4. package/dist/cjs/api/resources/FecFile.d.ts +0 -1
  5. package/dist/cjs/api/resources/FecFile.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/FecFile.js +0 -3
  7. package/dist/cjs/api/resources/FecFile.js.map +1 -1
  8. package/dist/cjs/api/resources/IncomeAllocation.d.ts +0 -2
  9. package/dist/cjs/api/resources/IncomeAllocation.d.ts.map +1 -1
  10. package/dist/cjs/api/resources/IncomeAllocation.js +0 -4
  11. package/dist/cjs/api/resources/IncomeAllocation.js.map +1 -1
  12. package/dist/cjs/api/resources/Payment.d.ts +3 -1
  13. package/dist/cjs/api/resources/Payment.d.ts.map +1 -1
  14. package/dist/cjs/api/resources/Payment.js +3 -0
  15. package/dist/cjs/api/resources/Payment.js.map +1 -1
  16. package/dist/cjs/api/resources/Registration.d.ts +2 -1
  17. package/dist/cjs/api/resources/Registration.d.ts.map +1 -1
  18. package/dist/cjs/api/resources/Registration.js +3 -0
  19. package/dist/cjs/api/resources/Registration.js.map +1 -1
  20. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts +3 -21
  21. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +1 -1
  22. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js +2 -54
  23. package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js.map +1 -1
  24. package/dist/cjs/types/Interface/api/cerfa/Utils.d.ts +2 -0
  25. package/dist/cjs/types/Interface/api/cerfa/Utils.d.ts.map +1 -1
  26. package/dist/cjs/types/Interface/api/cerfa/Utils.js.map +1 -1
  27. package/dist/cjs/types/Interface/api/fecFile/CreateFecFile.d.ts +1 -0
  28. package/dist/cjs/types/Interface/api/fecFile/CreateFecFile.d.ts.map +1 -1
  29. package/dist/cjs/types/Interface/api/fecFile/CreateFecFile.js +7 -0
  30. package/dist/cjs/types/Interface/api/fecFile/CreateFecFile.js.map +1 -1
  31. package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts +10 -9
  32. package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts.map +1 -1
  33. package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js +17 -9
  34. package/dist/cjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js.map +1 -1
  35. package/dist/cjs/types/Interface/api/registration/QueryRegistration.d.ts +3 -0
  36. package/dist/cjs/types/Interface/api/registration/QueryRegistration.d.ts.map +1 -1
  37. package/dist/cjs/types/Interface/api/registration/QueryRegistration.js +9 -1
  38. package/dist/cjs/types/Interface/api/registration/QueryRegistration.js.map +1 -1
  39. package/dist/cjs/types/Interface/api/registration/ReadRegistration.d.ts +3 -0
  40. package/dist/cjs/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
  41. package/dist/cjs/types/Interface/api/registration/ReadRegistration.js.map +1 -1
  42. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +4 -0
  43. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  44. package/dist/cjs/types/Interface/api/stripe/Create.js +13 -1
  45. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  46. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -0
  47. package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  48. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +6 -0
  49. package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  50. package/dist/mjs/api/resources/BankDedup.d.ts.map +1 -1
  51. package/dist/mjs/api/resources/BankDedup.js +5 -1
  52. package/dist/mjs/api/resources/BankDedup.js.map +1 -1
  53. package/dist/mjs/api/resources/FecFile.d.ts +0 -1
  54. package/dist/mjs/api/resources/FecFile.d.ts.map +1 -1
  55. package/dist/mjs/api/resources/FecFile.js +0 -3
  56. package/dist/mjs/api/resources/FecFile.js.map +1 -1
  57. package/dist/mjs/api/resources/IncomeAllocation.d.ts +0 -2
  58. package/dist/mjs/api/resources/IncomeAllocation.d.ts.map +1 -1
  59. package/dist/mjs/api/resources/IncomeAllocation.js +0 -4
  60. package/dist/mjs/api/resources/IncomeAllocation.js.map +1 -1
  61. package/dist/mjs/api/resources/Payment.d.ts +3 -1
  62. package/dist/mjs/api/resources/Payment.d.ts.map +1 -1
  63. package/dist/mjs/api/resources/Payment.js +3 -0
  64. package/dist/mjs/api/resources/Payment.js.map +1 -1
  65. package/dist/mjs/api/resources/Registration.d.ts +2 -1
  66. package/dist/mjs/api/resources/Registration.d.ts.map +1 -1
  67. package/dist/mjs/api/resources/Registration.js +3 -0
  68. package/dist/mjs/api/resources/Registration.js.map +1 -1
  69. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts +3 -21
  70. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +1 -1
  71. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js +1 -61
  72. package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js.map +1 -1
  73. package/dist/mjs/types/Interface/api/cerfa/Utils.d.ts +2 -0
  74. package/dist/mjs/types/Interface/api/cerfa/Utils.d.ts.map +1 -1
  75. package/dist/mjs/types/Interface/api/cerfa/Utils.js.map +1 -1
  76. package/dist/mjs/types/Interface/api/fecFile/CreateFecFile.d.ts +1 -0
  77. package/dist/mjs/types/Interface/api/fecFile/CreateFecFile.d.ts.map +1 -1
  78. package/dist/mjs/types/Interface/api/fecFile/CreateFecFile.js +8 -0
  79. package/dist/mjs/types/Interface/api/fecFile/CreateFecFile.js.map +1 -1
  80. package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts +10 -9
  81. package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.d.ts.map +1 -1
  82. package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js +18 -9
  83. package/dist/mjs/types/Interface/api/incomeAllocation/CreateIncomeAllocation.js.map +1 -1
  84. package/dist/mjs/types/Interface/api/registration/QueryRegistration.d.ts +3 -0
  85. package/dist/mjs/types/Interface/api/registration/QueryRegistration.d.ts.map +1 -1
  86. package/dist/mjs/types/Interface/api/registration/QueryRegistration.js +8 -0
  87. package/dist/mjs/types/Interface/api/registration/QueryRegistration.js.map +1 -1
  88. package/dist/mjs/types/Interface/api/registration/ReadRegistration.d.ts +3 -0
  89. package/dist/mjs/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -1
  90. package/dist/mjs/types/Interface/api/registration/ReadRegistration.js.map +1 -1
  91. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +4 -0
  92. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  93. package/dist/mjs/types/Interface/api/stripe/Create.js +13 -0
  94. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  95. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +1 -0
  96. package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
  97. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +8 -1
  98. package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
  99. package/package.json +1 -1
  100. package/ts/api/resources/BankDedup.ts +6 -1
  101. package/ts/api/resources/FecFile.ts +0 -4
  102. package/ts/api/resources/IncomeAllocation.ts +0 -5
  103. package/ts/api/resources/Payment.ts +6 -0
  104. package/ts/api/resources/Registration.ts +6 -0
  105. package/ts/types/Interface/api/bankDedup/BankDedup.ts +3 -52
  106. package/ts/types/Interface/api/cerfa/Utils.ts +2 -0
  107. package/ts/types/Interface/api/fecFile/CreateFecFile.ts +6 -0
  108. package/ts/types/Interface/api/incomeAllocation/CreateIncomeAllocation.ts +25 -18
  109. package/ts/types/Interface/api/registration/QueryRegistration.ts +6 -0
  110. package/ts/types/Interface/api/registration/ReadRegistration.ts +4 -0
  111. package/ts/types/Interface/api/stripe/Create.ts +9 -0
  112. 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;AAClE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,4BAA4B;IAGvC,UAAU,CAAS;CACpB;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;gEACQ;AAGrB,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, 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\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"]}
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.104",
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
- formData.append('file', body.csv);
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: File;
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 class BankDedupImpossible {
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
- @ApiProperty()
17
- debitReport: number;
23
+ @ApiPropertyOptional()
24
+ debitReport?: number;
18
25
 
19
- @ApiProperty()
20
- creditReport: number;
26
+ @ApiPropertyOptional()
27
+ creditReport?: number;
21
28
 
22
- @ApiProperty()
23
- statutoryReserve: number;
29
+ @ApiPropertyOptional()
30
+ statutoryReserve?: number;
24
31
 
25
- @ApiProperty()
26
- legalReserve: number;
32
+ @ApiPropertyOptional()
33
+ legalReserve?: number;
27
34
 
28
- @ApiProperty()
29
- regulatedReserve: number;
35
+ @ApiPropertyOptional()
36
+ regulatedReserve?: number;
30
37
 
31
- @ApiProperty()
32
- unavailableReserve: number;
38
+ @ApiPropertyOptional()
39
+ unavailableReserve?: number;
33
40
 
34
- @ApiProperty()
35
- optionalReserve: number;
41
+ @ApiPropertyOptional()
42
+ optionalReserve?: number;
36
43
 
37
- @ApiProperty()
38
- levyOnReserve: number;
44
+ @ApiPropertyOptional()
45
+ levyOnReserve?: number;
39
46
 
40
- @ApiProperty()
41
- dividend: number;
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 {