@silexpert/core 2.0.97 → 2.0.99

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "2.0.97",
3
+ "version": "2.0.99",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "keywords": [
6
6
  "accounting",
@@ -1,4 +1,9 @@
1
- import { _InvoicingKycMAndateWithDirectoryLineInfo, BasePaginate, QueryMandatePaginate } from '#types/index.js';
1
+ import {
2
+ _InvoicingKycMAndateWithDirectoryLineInfo,
3
+ BasePaginate,
4
+ IEInvoicingKycAndMandate,
5
+ QueryMandatePaginate,
6
+ } from '#types/index.js';
2
7
  import { Resource } from '../Resource.js';
3
8
 
4
9
  export class KycMandate extends Resource {
@@ -10,6 +15,14 @@ export class KycMandate extends Resource {
10
15
  return this.axios.$delete(`/societies/${idSociety}/mandates/${idMandate}`);
11
16
  }
12
17
 
18
+ public update(
19
+ idSociety: number,
20
+ idMandate: number,
21
+ params: Partial<IEInvoicingKycAndMandate>,
22
+ ): Promise<IEInvoicingKycAndMandate> {
23
+ return this.axios.$put(`/societies/${idSociety}/mandates/${idMandate}`, params);
24
+ }
25
+
13
26
  public getAllPaginate(
14
27
  params: QueryMandatePaginate,
15
28
  ): Promise<BasePaginate<_InvoicingKycMAndateWithDirectoryLineInfo>> {
@@ -20,6 +20,9 @@ export class UpdateAccountSociety {
20
20
 
21
21
  @ApiPropertyOptional()
22
22
  idRegisterCategorie?: number;
23
+
24
+ @ApiPropertyOptional()
25
+ metadata?: IAccount['metadata'];
23
26
  }
24
27
 
25
28
  export class UpdateAccount {
@@ -171,7 +171,7 @@ export type ReadEInvoicingReception = {
171
171
  name: string | undefined;
172
172
  siren: string | undefined;
173
173
  vatNumber: string | undefined;
174
- email: string | undefined;
174
+ addressingIdentifier: string | undefined;
175
175
  idCountry: CountryId | undefined;
176
176
  };
177
177
  products: Array<{
@@ -1,8 +1,18 @@
1
- import { IEInvoicingKycAndMandate, ReadDocoonDirectoryLineAdded } from '../../../../index.js';
1
+ import { IEInvoicingKycAndMandate, ReadDocoonTenantDirectoryLines } from '../../../../index.js';
2
+
3
+ export enum EInvoicingAddressingIdentifierStatus {
4
+ ACTIVE = 'ACTIVE',
5
+ SUSPENDED = 'SUSPENDED',
6
+ PENDING = 'PENDING',
7
+ ERROR = 'ERROR',
8
+ CANCELLED = 'CANCELLED',
9
+ }
2
10
 
3
11
  export type _InvoicingKycMAndateWithDirectoryLineInfo = IEInvoicingKycAndMandate & {
4
- directoryLineInfo?: ReadDocoonDirectoryLineAdded;
5
- status?: 'ACTIVE' | 'SUSPENDED' | 'PENDING' | 'ERROR';
12
+ status: EInvoicingAddressingIdentifierStatus;
13
+ statusLabel: string;
14
+ /** @deprecated do not use, will be removed in future versions */
15
+ directoryLineInfo?: ReadDocoonTenantDirectoryLines;
6
16
  };
7
17
  export interface LegalRepresentative {
8
18
  type: 'INDIVIDU' | 'ENTREPRISE';
@@ -1724,18 +1724,10 @@ export function getCerfa3517Century26RegistrationField(data: Cerfa3517_2026): As
1724
1724
 
1725
1725
  export function getCerfa3517DDRCentury26RegistrationField(data: Cerfa3517_2025 | Cerfa3517_2026): AsponeFormFields {
1726
1726
  if (data.refund.asked > 0) {
1727
- return [
1727
+ const fields: AsponeFormFields = [
1728
1728
  {
1729
1729
  name: '3517DDR',
1730
1730
  fields: [
1731
- {
1732
- key: 'AA',
1733
- tag: 'Valeur',
1734
- isMultiple: false,
1735
- description:
1736
- 'MOA Crédit remboursable dégagé à la clôture de lannée ou de lexercice si celui-ci est supérieur ou égal à 150 euros 100173 a',
1737
- value: data.refund.creditRefundable,
1738
- },
1739
1731
  {
1740
1732
  key: 'AB',
1741
1733
  tag: 'Valeur',
@@ -1876,6 +1868,18 @@ export function getCerfa3517DDRCentury26RegistrationField(data: Cerfa3517_2025 |
1876
1868
  ],
1877
1869
  },
1878
1870
  ];
1871
+ if (data.refund.creditRefundable && data.refund.creditRefundable > 0) {
1872
+ fields[0].fields.push({
1873
+ key: 'AA',
1874
+ tag: 'Valeur',
1875
+ isMultiple: false,
1876
+ description:
1877
+ 'MOA Crédit remboursable dégagé à la clôture de lannée ou de lexercice si celui-ci est supérieur ou égal à 150 euros 100173 a',
1878
+ value: data.refund.creditRefundable,
1879
+ });
1880
+ }
1881
+
1882
+ return fields;
1879
1883
  }
1880
1884
  return [];
1881
1885
  }