@factpulse/sdk 2.0.5 → 2.0.7
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/.openapi-generator/FILES +4 -16
- package/CHANGELOG.md +3 -3
- package/api/traitement-facture-api.ts +4 -4
- package/dist/api/traitement-facture-api.d.ts +4 -4
- package/dist/api/traitement-facture-api.js +4 -4
- package/dist/esm/api/traitement-facture-api.d.ts +4 -4
- package/dist/esm/api/traitement-facture-api.js +4 -4
- package/dist/esm/models/destinataire.d.ts +2 -0
- package/dist/esm/models/facture-factur-x.d.ts +2 -0
- package/dist/esm/models/fournisseur.d.ts +1 -0
- package/dist/esm/models/index.d.ts +2 -8
- package/dist/esm/models/index.js +2 -8
- package/dist/esm/models/ligne-de-poste.d.ts +12 -6
- package/dist/esm/models/ligne-de-tva.d.ts +12 -6
- package/dist/esm/models/montant-ht-total.d.ts +0 -3
- package/dist/esm/models/montant-total.d.ts +24 -12
- package/dist/esm/models/montant-ttc-total.d.ts +0 -3
- package/dist/esm/models/montant-tva.d.ts +0 -3
- package/dist/esm/models/montant-tva1.d.ts +1 -1
- package/dist/esm/models/{ligne-de-poste-montant-remise-ht.d.ts → note.d.ts} +4 -2
- package/dist/esm/models/{ligne-de-poste-taux-tva-manuel.d.ts → statut-celery.d.ts} +9 -3
- package/dist/esm/models/{montant-apayer.js → statut-celery.js} +10 -1
- package/dist/esm/models/statut-tache.d.ts +6 -2
- package/dist/models/destinataire.d.ts +2 -0
- package/dist/models/facture-factur-x.d.ts +2 -0
- package/dist/models/fournisseur.d.ts +1 -0
- package/dist/models/index.d.ts +2 -8
- package/dist/models/index.js +2 -8
- package/dist/models/ligne-de-poste.d.ts +12 -6
- package/dist/models/ligne-de-tva.d.ts +12 -6
- package/dist/models/montant-ht-total.d.ts +0 -3
- package/dist/models/montant-total.d.ts +24 -12
- package/dist/models/montant-ttc-total.d.ts +0 -3
- package/dist/models/montant-tva.d.ts +0 -3
- package/dist/models/montant-tva1.d.ts +1 -1
- package/dist/{esm/models/montant-apayer.d.ts → models/note.d.ts} +4 -2
- package/dist/{esm/models/montant-base-ht.d.ts → models/statut-celery.d.ts} +9 -3
- package/dist/models/{ligne-de-poste-taux-tva-manuel.js → statut-celery.js} +11 -0
- package/dist/models/statut-tache.d.ts +6 -2
- package/docs/Destinataire.md +4 -0
- package/docs/FactureFacturX.md +2 -0
- package/docs/Fournisseur.md +2 -0
- package/docs/LigneDePoste.md +3 -3
- package/docs/LigneDeTVA.md +3 -3
- package/docs/MontantHtTotal.md +0 -1
- package/docs/MontantTotal.md +6 -6
- package/docs/MontantTtcTotal.md +0 -1
- package/docs/MontantTva.md +0 -1
- package/docs/MontantTva1.md +1 -1
- package/docs/Note.md +23 -0
- package/docs/StatutCelery.md +17 -0
- package/docs/StatutTache.md +2 -2
- package/docs/TraitementFactureApi.md +1 -1
- package/models/destinataire.ts +2 -0
- package/models/facture-factur-x.ts +4 -0
- package/models/fournisseur.ts +1 -0
- package/models/index.ts +2 -8
- package/models/ligne-de-poste.ts +12 -12
- package/models/ligne-de-tva.ts +12 -12
- package/models/montant-ht-total.ts +0 -3
- package/models/montant-total.ts +24 -24
- package/models/montant-ttc-total.ts +0 -3
- package/models/montant-tva.ts +0 -3
- package/models/montant-tva1.ts +1 -1
- package/models/{ligne-de-poste-montant-remise-ht.ts → note.ts} +4 -2
- package/models/{ligne-de-poste-taux-tva-manuel.ts → statut-celery.ts} +13 -3
- package/models/statut-tache.ts +10 -2
- package/package.json +1 -1
- package/dist/esm/models/ligne-de-poste-taux-tva-manuel.js +0 -14
- package/dist/esm/models/montant-base-ht.js +0 -14
- package/dist/esm/models/montant-remise-globale-ttc.d.ts +0 -16
- package/dist/esm/models/montant-remise-globale-ttc.js +0 -14
- package/dist/esm/models/montant-total-acompte.d.ts +0 -16
- package/dist/esm/models/montant-total-acompte.js +0 -14
- package/dist/esm/models/montant-total-ligne-ht.d.ts +0 -16
- package/dist/esm/models/montant-total-ligne-ht.js +0 -14
- package/dist/esm/models/tauxmanuel.d.ts +0 -16
- package/dist/esm/models/tauxmanuel.js +0 -14
- package/dist/models/ligne-de-poste-montant-remise-ht.d.ts +0 -16
- package/dist/models/ligne-de-poste-taux-tva-manuel.d.ts +0 -16
- package/dist/models/montant-apayer.d.ts +0 -16
- package/dist/models/montant-apayer.js +0 -15
- package/dist/models/montant-base-ht.d.ts +0 -16
- package/dist/models/montant-base-ht.js +0 -15
- package/dist/models/montant-remise-globale-ttc.d.ts +0 -16
- package/dist/models/montant-remise-globale-ttc.js +0 -15
- package/dist/models/montant-total-acompte.d.ts +0 -16
- package/dist/models/montant-total-acompte.js +0 -15
- package/dist/models/montant-total-ligne-ht.d.ts +0 -16
- package/dist/models/montant-total-ligne-ht.js +0 -15
- package/dist/models/tauxmanuel.d.ts +0 -16
- package/dist/models/tauxmanuel.js +0 -15
- package/docs/LigneDePosteMontantRemiseHt.md +0 -19
- package/docs/LigneDePosteTauxTvaManuel.md +0 -19
- package/docs/MontantAPayer.md +0 -19
- package/docs/MontantBaseHt.md +0 -19
- package/docs/MontantRemiseGlobaleTtc.md +0 -19
- package/docs/MontantTotalAcompte.md +0 -19
- package/docs/MontantTotalLigneHt.md +0 -19
- package/docs/Tauxmanuel.md +0 -19
- package/models/montant-apayer.ts +0 -22
- package/models/montant-base-ht.ts +0 -22
- package/models/montant-remise-globale-ttc.ts +0 -22
- package/models/montant-total-acompte.ts +0 -22
- package/models/montant-total-ligne-ht.ts +0 -22
- package/models/tauxmanuel.ts +0 -22
- /package/dist/esm/models/{ligne-de-poste-montant-remise-ht.js → note.js} +0 -0
- /package/dist/models/{ligne-de-poste-montant-remise-ht.js → note.js} +0 -0
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Note de facture (IncludedNote en Factur-X). Les notes obligatoires pour BR-FR-05 sont : - PMT : Indemnité forfaitaire pour frais de recouvrement - PMD : Pénalités de retard - AAB : Escompte pour paiement anticipé
|
|
14
14
|
*/
|
|
15
|
-
export interface
|
|
15
|
+
export interface Note {
|
|
16
|
+
'subjectCode'?: string | null;
|
|
17
|
+
'content': string;
|
|
16
18
|
}
|
|
@@ -10,7 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Statuts possibles d\'une tâche Celery lors du polling. **Valeurs possibles :** - `PENDING` : Tâche en attente de traitement - `STARTED` : Tâche en cours d\'exécution - `SUCCESS` : Tâche terminée avec succès (vérifier `resultat.statut` pour le résultat métier) - `FAILURE` : Erreur système lors de l\'exécution (crash, exception non gérée) - `RETRY` : Tentative de ré-exécution en cours (après un échec temporaire)
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
16
|
-
|
|
15
|
+
export declare const StatutCelery: {
|
|
16
|
+
readonly Pending: "PENDING";
|
|
17
|
+
readonly Started: "STARTED";
|
|
18
|
+
readonly Success: "SUCCESS";
|
|
19
|
+
readonly Failure: "FAILURE";
|
|
20
|
+
readonly Retry: "RETRY";
|
|
21
|
+
};
|
|
22
|
+
export type StatutCelery = typeof StatutCelery[keyof typeof StatutCelery];
|
|
@@ -11,4 +11,13 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Statuts possibles d\'une tâche Celery lors du polling. **Valeurs possibles :** - `PENDING` : Tâche en attente de traitement - `STARTED` : Tâche en cours d\'exécution - `SUCCESS` : Tâche terminée avec succès (vérifier `resultat.statut` pour le résultat métier) - `FAILURE` : Erreur système lors de l\'exécution (crash, exception non gérée) - `RETRY` : Tentative de ré-exécution en cours (après un échec temporaire)
|
|
16
|
+
*/
|
|
17
|
+
export const StatutCelery = {
|
|
18
|
+
Pending: 'PENDING',
|
|
19
|
+
Started: 'STARTED',
|
|
20
|
+
Success: 'SUCCESS',
|
|
21
|
+
Failure: 'FAILURE',
|
|
22
|
+
Retry: 'RETRY'
|
|
23
|
+
};
|
|
@@ -9,12 +9,16 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { StatutCelery } from './statut-celery';
|
|
12
13
|
/**
|
|
13
|
-
* Description complète du statut d\'une tâche asynchrone.
|
|
14
|
+
* Description complète du statut d\'une tâche asynchrone. Le champ `statut` indique l\'état Celery de la tâche. Quand `statut=\"SUCCESS\"`, consultez `resultat.statut` pour le résultat métier (\"SUCCES\" ou \"ERREUR\").
|
|
14
15
|
*/
|
|
15
16
|
export interface StatutTache {
|
|
16
17
|
'id_tache': string;
|
|
17
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Statut Celery de la tâche (PENDING, STARTED, SUCCESS, FAILURE, RETRY)
|
|
20
|
+
*/
|
|
21
|
+
'statut': StatutCelery;
|
|
18
22
|
'resultat'?: {
|
|
19
23
|
[key: string]: any;
|
|
20
24
|
} | null;
|
|
@@ -16,6 +16,7 @@ import type { LigneDePoste } from './ligne-de-poste';
|
|
|
16
16
|
import type { LigneDeTVA } from './ligne-de-tva';
|
|
17
17
|
import type { ModeDepot } from './mode-depot';
|
|
18
18
|
import type { MontantTotal } from './montant-total';
|
|
19
|
+
import type { Note } from './note';
|
|
19
20
|
import type { PieceJointeComplementaire } from './piece-jointe-complementaire';
|
|
20
21
|
import type { References } from './references';
|
|
21
22
|
/**
|
|
@@ -33,6 +34,7 @@ export interface FactureFacturX {
|
|
|
33
34
|
'montantTotal': MontantTotal;
|
|
34
35
|
'lignesDePoste'?: Array<LigneDePoste>;
|
|
35
36
|
'lignesDeTva'?: Array<LigneDeTVA>;
|
|
37
|
+
'notes'?: Array<Note>;
|
|
36
38
|
'commentaire'?: string | null;
|
|
37
39
|
'idUtilisateurCourant'?: number | null;
|
|
38
40
|
'piecesJointesComplementaires'?: Array<PieceJointeComplementaire> | null;
|
|
@@ -20,6 +20,7 @@ export interface Fournisseur {
|
|
|
20
20
|
'codeCoordonneesBancairesFournisseur'?: number | null;
|
|
21
21
|
'idServiceFournisseur'?: number | null;
|
|
22
22
|
'nom'?: string | null;
|
|
23
|
+
'siren'?: string | null;
|
|
23
24
|
'siret'?: string | null;
|
|
24
25
|
'numeroTvaIntra'?: string | null;
|
|
25
26
|
'iban'?: string | null;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -38,24 +38,18 @@ export * from './generate-certificate-response';
|
|
|
38
38
|
export * from './httpvalidation-error';
|
|
39
39
|
export * from './information-signature-api';
|
|
40
40
|
export * from './ligne-de-poste';
|
|
41
|
-
export * from './ligne-de-poste-montant-remise-ht';
|
|
42
|
-
export * from './ligne-de-poste-taux-tva-manuel';
|
|
43
41
|
export * from './ligne-de-tva';
|
|
44
42
|
export * from './mode-depot';
|
|
45
43
|
export * from './mode-paiement';
|
|
46
|
-
export * from './montant-apayer';
|
|
47
|
-
export * from './montant-base-ht';
|
|
48
44
|
export * from './montant-ht-total';
|
|
49
45
|
export * from './montant-ht-total1';
|
|
50
|
-
export * from './montant-remise-globale-ttc';
|
|
51
46
|
export * from './montant-total';
|
|
52
|
-
export * from './montant-total-acompte';
|
|
53
|
-
export * from './montant-total-ligne-ht';
|
|
54
47
|
export * from './montant-ttc-total';
|
|
55
48
|
export * from './montant-ttc-total1';
|
|
56
49
|
export * from './montant-tva';
|
|
57
50
|
export * from './montant-tva1';
|
|
58
51
|
export * from './montant-unitaire-ht';
|
|
52
|
+
export * from './note';
|
|
59
53
|
export * from './obtenir-id-chorus-pro-request';
|
|
60
54
|
export * from './obtenir-id-chorus-pro-response';
|
|
61
55
|
export * from './options-processing';
|
|
@@ -83,10 +77,10 @@ export * from './soumettre-facture-complete-request';
|
|
|
83
77
|
export * from './soumettre-facture-complete-response';
|
|
84
78
|
export * from './soumettre-facture-request';
|
|
85
79
|
export * from './soumettre-facture-response';
|
|
80
|
+
export * from './statut-celery';
|
|
86
81
|
export * from './statut-facture';
|
|
87
82
|
export * from './statut-tache';
|
|
88
83
|
export * from './structure-info';
|
|
89
|
-
export * from './tauxmanuel';
|
|
90
84
|
export * from './type-facture';
|
|
91
85
|
export * from './type-tva';
|
|
92
86
|
export * from './unite';
|
package/dist/models/index.js
CHANGED
|
@@ -54,24 +54,18 @@ __exportStar(require("./generate-certificate-response"), exports);
|
|
|
54
54
|
__exportStar(require("./httpvalidation-error"), exports);
|
|
55
55
|
__exportStar(require("./information-signature-api"), exports);
|
|
56
56
|
__exportStar(require("./ligne-de-poste"), exports);
|
|
57
|
-
__exportStar(require("./ligne-de-poste-montant-remise-ht"), exports);
|
|
58
|
-
__exportStar(require("./ligne-de-poste-taux-tva-manuel"), exports);
|
|
59
57
|
__exportStar(require("./ligne-de-tva"), exports);
|
|
60
58
|
__exportStar(require("./mode-depot"), exports);
|
|
61
59
|
__exportStar(require("./mode-paiement"), exports);
|
|
62
|
-
__exportStar(require("./montant-apayer"), exports);
|
|
63
|
-
__exportStar(require("./montant-base-ht"), exports);
|
|
64
60
|
__exportStar(require("./montant-ht-total"), exports);
|
|
65
61
|
__exportStar(require("./montant-ht-total1"), exports);
|
|
66
|
-
__exportStar(require("./montant-remise-globale-ttc"), exports);
|
|
67
62
|
__exportStar(require("./montant-total"), exports);
|
|
68
|
-
__exportStar(require("./montant-total-acompte"), exports);
|
|
69
|
-
__exportStar(require("./montant-total-ligne-ht"), exports);
|
|
70
63
|
__exportStar(require("./montant-ttc-total"), exports);
|
|
71
64
|
__exportStar(require("./montant-ttc-total1"), exports);
|
|
72
65
|
__exportStar(require("./montant-tva"), exports);
|
|
73
66
|
__exportStar(require("./montant-tva1"), exports);
|
|
74
67
|
__exportStar(require("./montant-unitaire-ht"), exports);
|
|
68
|
+
__exportStar(require("./note"), exports);
|
|
75
69
|
__exportStar(require("./obtenir-id-chorus-pro-request"), exports);
|
|
76
70
|
__exportStar(require("./obtenir-id-chorus-pro-response"), exports);
|
|
77
71
|
__exportStar(require("./options-processing"), exports);
|
|
@@ -99,10 +93,10 @@ __exportStar(require("./soumettre-facture-complete-request"), exports);
|
|
|
99
93
|
__exportStar(require("./soumettre-facture-complete-response"), exports);
|
|
100
94
|
__exportStar(require("./soumettre-facture-request"), exports);
|
|
101
95
|
__exportStar(require("./soumettre-facture-response"), exports);
|
|
96
|
+
__exportStar(require("./statut-celery"), exports);
|
|
102
97
|
__exportStar(require("./statut-facture"), exports);
|
|
103
98
|
__exportStar(require("./statut-tache"), exports);
|
|
104
99
|
__exportStar(require("./structure-info"), exports);
|
|
105
|
-
__exportStar(require("./tauxmanuel"), exports);
|
|
106
100
|
__exportStar(require("./type-facture"), exports);
|
|
107
101
|
__exportStar(require("./type-tva"), exports);
|
|
108
102
|
__exportStar(require("./unite"), exports);
|
|
@@ -11,9 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { CategorieTVA } from './categorie-tva';
|
|
13
13
|
import type { CodeRaisonReduction } from './code-raison-reduction';
|
|
14
|
-
import type { LigneDePosteMontantRemiseHt } from './ligne-de-poste-montant-remise-ht';
|
|
15
|
-
import type { LigneDePosteTauxTvaManuel } from './ligne-de-poste-taux-tva-manuel';
|
|
16
|
-
import type { MontantTotalLigneHt } from './montant-total-ligne-ht';
|
|
17
14
|
import type { MontantUnitaireHt } from './montant-unitaire-ht';
|
|
18
15
|
import type { Quantite } from './quantite';
|
|
19
16
|
import type { Unite } from './unite';
|
|
@@ -27,10 +24,19 @@ export interface LigneDePoste {
|
|
|
27
24
|
'quantite': Quantite;
|
|
28
25
|
'unite': Unite;
|
|
29
26
|
'montantUnitaireHt': MontantUnitaireHt;
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Montant de la remise HT.
|
|
29
|
+
*/
|
|
30
|
+
'montantRemiseHt'?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Montant total HT de la ligne (quantité × prix unitaire - remise).
|
|
33
|
+
*/
|
|
34
|
+
'montantTotalLigneHt'?: string;
|
|
32
35
|
'tauxTva'?: string | null;
|
|
33
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Taux de TVA avec valeur manuelle.
|
|
38
|
+
*/
|
|
39
|
+
'tauxTvaManuel'?: string | null;
|
|
34
40
|
'categorieTva'?: CategorieTVA | null;
|
|
35
41
|
'dateDebutPeriode'?: string | null;
|
|
36
42
|
'dateFinPeriode'?: string | null;
|
|
@@ -10,16 +10,22 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { CategorieTVA } from './categorie-tva';
|
|
13
|
-
import type { MontantBaseHt } from './montant-base-ht';
|
|
14
|
-
import type { MontantTva } from './montant-tva';
|
|
15
|
-
import type { Tauxmanuel } from './tauxmanuel';
|
|
16
13
|
/**
|
|
17
14
|
* Représente une ligne de totalisation par taux de TVA.
|
|
18
15
|
*/
|
|
19
16
|
export interface LigneDeTVA {
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Montant de la base HT pour cette ligne de TVA.
|
|
19
|
+
*/
|
|
20
|
+
'montantBaseHt': string;
|
|
21
|
+
/**
|
|
22
|
+
* Montant de la TVA pour cette ligne.
|
|
23
|
+
*/
|
|
24
|
+
'montantTva': string;
|
|
22
25
|
'taux'?: string | null;
|
|
23
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Taux de TVA avec valeur manuelle.
|
|
28
|
+
*/
|
|
29
|
+
'tauxManuel'?: string;
|
|
24
30
|
'categorie'?: CategorieTVA | null;
|
|
25
31
|
}
|
|
@@ -9,21 +9,33 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { MontantAPayer } from './montant-apayer';
|
|
13
|
-
import type { MontantHtTotal } from './montant-ht-total';
|
|
14
|
-
import type { MontantRemiseGlobaleTtc } from './montant-remise-globale-ttc';
|
|
15
|
-
import type { MontantTotalAcompte } from './montant-total-acompte';
|
|
16
|
-
import type { MontantTtcTotal } from './montant-ttc-total';
|
|
17
|
-
import type { MontantTva1 } from './montant-tva1';
|
|
18
12
|
/**
|
|
19
13
|
* Contient tous les montants totaux de la facture.
|
|
20
14
|
*/
|
|
21
15
|
export interface MontantTotal {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
'
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Montant total HT.
|
|
18
|
+
*/
|
|
19
|
+
'montantHtTotal': string;
|
|
20
|
+
/**
|
|
21
|
+
* Montant total de la TVA.
|
|
22
|
+
*/
|
|
23
|
+
'montantTva': string;
|
|
24
|
+
/**
|
|
25
|
+
* Montant total TTC.
|
|
26
|
+
*/
|
|
27
|
+
'montantTtcTotal': string;
|
|
28
|
+
/**
|
|
29
|
+
* Montant à payer.
|
|
30
|
+
*/
|
|
31
|
+
'montantAPayer': string;
|
|
32
|
+
/**
|
|
33
|
+
* Acompte versé.
|
|
34
|
+
*/
|
|
35
|
+
'acompte'?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Montant de la remise globale TTC.
|
|
38
|
+
*/
|
|
39
|
+
'montantRemiseGlobaleTtc'?: string;
|
|
28
40
|
'motifRemiseGlobaleTtc'?: string | null;
|
|
29
41
|
}
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Note de facture (IncludedNote en Factur-X). Les notes obligatoires pour BR-FR-05 sont : - PMT : Indemnité forfaitaire pour frais de recouvrement - PMD : Pénalités de retard - AAB : Escompte pour paiement anticipé
|
|
14
14
|
*/
|
|
15
|
-
export interface
|
|
15
|
+
export interface Note {
|
|
16
|
+
'subjectCode'?: string | null;
|
|
17
|
+
'content': string;
|
|
16
18
|
}
|
|
@@ -10,7 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Statuts possibles d\'une tâche Celery lors du polling. **Valeurs possibles :** - `PENDING` : Tâche en attente de traitement - `STARTED` : Tâche en cours d\'exécution - `SUCCESS` : Tâche terminée avec succès (vérifier `resultat.statut` pour le résultat métier) - `FAILURE` : Erreur système lors de l\'exécution (crash, exception non gérée) - `RETRY` : Tentative de ré-exécution en cours (après un échec temporaire)
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
16
|
-
|
|
15
|
+
export declare const StatutCelery: {
|
|
16
|
+
readonly Pending: "PENDING";
|
|
17
|
+
readonly Started: "STARTED";
|
|
18
|
+
readonly Success: "SUCCESS";
|
|
19
|
+
readonly Failure: "FAILURE";
|
|
20
|
+
readonly Retry: "RETRY";
|
|
21
|
+
};
|
|
22
|
+
export type StatutCelery = typeof StatutCelery[keyof typeof StatutCelery];
|
|
@@ -13,3 +13,14 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.StatutCelery = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Statuts possibles d\'une tâche Celery lors du polling. **Valeurs possibles :** - `PENDING` : Tâche en attente de traitement - `STARTED` : Tâche en cours d\'exécution - `SUCCESS` : Tâche terminée avec succès (vérifier `resultat.statut` pour le résultat métier) - `FAILURE` : Erreur système lors de l\'exécution (crash, exception non gérée) - `RETRY` : Tentative de ré-exécution en cours (après un échec temporaire)
|
|
19
|
+
*/
|
|
20
|
+
exports.StatutCelery = {
|
|
21
|
+
Pending: 'PENDING',
|
|
22
|
+
Started: 'STARTED',
|
|
23
|
+
Success: 'SUCCESS',
|
|
24
|
+
Failure: 'FAILURE',
|
|
25
|
+
Retry: 'RETRY'
|
|
26
|
+
};
|
|
@@ -9,12 +9,16 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { StatutCelery } from './statut-celery';
|
|
12
13
|
/**
|
|
13
|
-
* Description complète du statut d\'une tâche asynchrone.
|
|
14
|
+
* Description complète du statut d\'une tâche asynchrone. Le champ `statut` indique l\'état Celery de la tâche. Quand `statut=\"SUCCESS\"`, consultez `resultat.statut` pour le résultat métier (\"SUCCES\" ou \"ERREUR\").
|
|
14
15
|
*/
|
|
15
16
|
export interface StatutTache {
|
|
16
17
|
'id_tache': string;
|
|
17
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Statut Celery de la tâche (PENDING, STARTED, SUCCESS, FAILURE, RETRY)
|
|
20
|
+
*/
|
|
21
|
+
'statut': StatutCelery;
|
|
18
22
|
'resultat'?: {
|
|
19
23
|
[key: string]: any;
|
|
20
24
|
} | null;
|
package/docs/Destinataire.md
CHANGED
|
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**adresseElectronique** | [**AdresseElectronique**](AdresseElectronique.md) | | [default to undefined]
|
|
10
10
|
**codeServiceExecutant** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**nom** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**siren** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**siret** | **string** | | [optional] [default to undefined]
|
|
12
14
|
**adressePostale** | [**AdressePostale**](AdressePostale.md) | | [optional] [default to undefined]
|
|
13
15
|
|
|
14
16
|
## Example
|
|
@@ -20,6 +22,8 @@ const instance: Destinataire = {
|
|
|
20
22
|
adresseElectronique,
|
|
21
23
|
codeServiceExecutant,
|
|
22
24
|
nom,
|
|
25
|
+
siren,
|
|
26
|
+
siret,
|
|
23
27
|
adressePostale,
|
|
24
28
|
};
|
|
25
29
|
```
|
package/docs/FactureFacturX.md
CHANGED
|
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**montantTotal** | [**MontantTotal**](MontantTotal.md) | | [default to undefined]
|
|
18
18
|
**lignesDePoste** | [**Array<LigneDePoste>**](LigneDePoste.md) | | [optional] [default to undefined]
|
|
19
19
|
**lignesDeTva** | [**Array<LigneDeTVA>**](LigneDeTVA.md) | | [optional] [default to undefined]
|
|
20
|
+
**notes** | [**Array<Note>**](Note.md) | | [optional] [default to undefined]
|
|
20
21
|
**commentaire** | **string** | | [optional] [default to undefined]
|
|
21
22
|
**idUtilisateurCourant** | **number** | | [optional] [default to undefined]
|
|
22
23
|
**piecesJointesComplementaires** | [**Array<PieceJointeComplementaire>**](PieceJointeComplementaire.md) | | [optional] [default to undefined]
|
|
@@ -38,6 +39,7 @@ const instance: FactureFacturX = {
|
|
|
38
39
|
montantTotal,
|
|
39
40
|
lignesDePoste,
|
|
40
41
|
lignesDeTva,
|
|
42
|
+
notes,
|
|
41
43
|
commentaire,
|
|
42
44
|
idUtilisateurCourant,
|
|
43
45
|
piecesJointesComplementaires,
|
package/docs/Fournisseur.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**codeCoordonneesBancairesFournisseur** | **number** | | [optional] [default to undefined]
|
|
12
12
|
**idServiceFournisseur** | **number** | | [optional] [default to undefined]
|
|
13
13
|
**nom** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**siren** | **string** | | [optional] [default to undefined]
|
|
14
15
|
**siret** | **string** | | [optional] [default to undefined]
|
|
15
16
|
**numeroTvaIntra** | **string** | | [optional] [default to undefined]
|
|
16
17
|
**iban** | **string** | | [optional] [default to undefined]
|
|
@@ -27,6 +28,7 @@ const instance: Fournisseur = {
|
|
|
27
28
|
codeCoordonneesBancairesFournisseur,
|
|
28
29
|
idServiceFournisseur,
|
|
29
30
|
nom,
|
|
31
|
+
siren,
|
|
30
32
|
siret,
|
|
31
33
|
numeroTvaIntra,
|
|
32
34
|
iban,
|
package/docs/LigneDePoste.md
CHANGED
|
@@ -12,10 +12,10 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**quantite** | [**Quantite**](Quantite.md) | | [default to undefined]
|
|
13
13
|
**unite** | [**Unite**](Unite.md) | | [default to undefined]
|
|
14
14
|
**montantUnitaireHt** | [**MontantUnitaireHt**](MontantUnitaireHt.md) | | [default to undefined]
|
|
15
|
-
**montantRemiseHt** |
|
|
16
|
-
**montantTotalLigneHt** |
|
|
15
|
+
**montantRemiseHt** | **string** | Montant de la remise HT. | [optional] [default to undefined]
|
|
16
|
+
**montantTotalLigneHt** | **string** | Montant total HT de la ligne (quantité × prix unitaire - remise). | [optional] [default to undefined]
|
|
17
17
|
**tauxTva** | **string** | | [optional] [default to undefined]
|
|
18
|
-
**tauxTvaManuel** |
|
|
18
|
+
**tauxTvaManuel** | **string** | Taux de TVA avec valeur manuelle. | [optional] [default to undefined]
|
|
19
19
|
**categorieTva** | [**CategorieTVA**](CategorieTVA.md) | | [optional] [default to undefined]
|
|
20
20
|
**dateDebutPeriode** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**dateFinPeriode** | **string** | | [optional] [default to undefined]
|
package/docs/LigneDeTVA.md
CHANGED
|
@@ -6,10 +6,10 @@ Représente une ligne de totalisation par taux de TVA.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**montantBaseHt** |
|
|
10
|
-
**montantTva** |
|
|
9
|
+
**montantBaseHt** | **string** | Montant de la base HT pour cette ligne de TVA. | [default to undefined]
|
|
10
|
+
**montantTva** | **string** | Montant de la TVA pour cette ligne. | [default to undefined]
|
|
11
11
|
**taux** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**tauxManuel** |
|
|
12
|
+
**tauxManuel** | **string** | Taux de TVA avec valeur manuelle. | [optional] [default to undefined]
|
|
13
13
|
**categorie** | [**CategorieTVA**](CategorieTVA.md) | | [optional] [default to undefined]
|
|
14
14
|
|
|
15
15
|
## Example
|
package/docs/MontantHtTotal.md
CHANGED
package/docs/MontantTotal.md
CHANGED
|
@@ -6,12 +6,12 @@ Contient tous les montants totaux de la facture.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**montantHtTotal** |
|
|
10
|
-
**montantTva** |
|
|
11
|
-
**montantTtcTotal** |
|
|
12
|
-
**montantAPayer** |
|
|
13
|
-
**acompte** |
|
|
14
|
-
**montantRemiseGlobaleTtc** |
|
|
9
|
+
**montantHtTotal** | **string** | Montant total HT. | [default to undefined]
|
|
10
|
+
**montantTva** | **string** | Montant total de la TVA. | [default to undefined]
|
|
11
|
+
**montantTtcTotal** | **string** | Montant total TTC. | [default to undefined]
|
|
12
|
+
**montantAPayer** | **string** | Montant à payer. | [default to undefined]
|
|
13
|
+
**acompte** | **string** | Acompte versé. | [optional] [default to undefined]
|
|
14
|
+
**montantRemiseGlobaleTtc** | **string** | Montant de la remise globale TTC. | [optional] [default to undefined]
|
|
15
15
|
**motifRemiseGlobaleTtc** | **string** | | [optional] [default to undefined]
|
|
16
16
|
|
|
17
17
|
## Example
|
package/docs/MontantTtcTotal.md
CHANGED
package/docs/MontantTva.md
CHANGED
package/docs/MontantTva1.md
CHANGED
package/docs/Note.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Note
|
|
2
|
+
|
|
3
|
+
Note de facture (IncludedNote en Factur-X). Les notes obligatoires pour BR-FR-05 sont : - PMT : Indemnité forfaitaire pour frais de recouvrement - PMD : Pénalités de retard - AAB : Escompte pour paiement anticipé
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**subjectCode** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**content** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { Note } from '@factpulse/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: Note = {
|
|
18
|
+
subjectCode,
|
|
19
|
+
content,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# StatutCelery
|
|
2
|
+
|
|
3
|
+
Statuts possibles d\'une tâche Celery lors du polling. **Valeurs possibles :** - `PENDING` : Tâche en attente de traitement - `STARTED` : Tâche en cours d\'exécution - `SUCCESS` : Tâche terminée avec succès (vérifier `resultat.statut` pour le résultat métier) - `FAILURE` : Erreur système lors de l\'exécution (crash, exception non gérée) - `RETRY` : Tentative de ré-exécution en cours (après un échec temporaire)
|
|
4
|
+
|
|
5
|
+
## Enum
|
|
6
|
+
|
|
7
|
+
* `Pending` (value: `'PENDING'`)
|
|
8
|
+
|
|
9
|
+
* `Started` (value: `'STARTED'`)
|
|
10
|
+
|
|
11
|
+
* `Success` (value: `'SUCCESS'`)
|
|
12
|
+
|
|
13
|
+
* `Failure` (value: `'FAILURE'`)
|
|
14
|
+
|
|
15
|
+
* `Retry` (value: `'RETRY'`)
|
|
16
|
+
|
|
17
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/StatutTache.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# StatutTache
|
|
2
2
|
|
|
3
|
-
Description complète du statut d\'une tâche asynchrone.
|
|
3
|
+
Description complète du statut d\'une tâche asynchrone. Le champ `statut` indique l\'état Celery de la tâche. Quand `statut=\"SUCCESS\"`, consultez `resultat.statut` pour le résultat métier (\"SUCCES\" ou \"ERREUR\").
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**id_tache** | **string** | | [default to undefined]
|
|
10
|
-
**statut** | **
|
|
10
|
+
**statut** | [**StatutCelery**](StatutCelery.md) | Statut Celery de la tâche (PENDING, STARTED, SUCCESS, FAILURE, RETRY) | [default to undefined]
|
|
11
11
|
**resultat** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
@@ -139,7 +139,7 @@ const { status, data } = await apiInstance.genererFactureApiV1TraitementGenererF
|
|
|
139
139
|
# **obtenirStatutTacheApiV1TraitementTachesIdTacheStatutGet**
|
|
140
140
|
> StatutTache obtenirStatutTacheApiV1TraitementTachesIdTacheStatutGet()
|
|
141
141
|
|
|
142
|
-
Récupère l\'état d\'avancement d\'une tâche de génération de facture. ## États possibles
|
|
142
|
+
Récupère l\'état d\'avancement d\'une tâche de génération de facture. ## États possibles Le champ `statut` utilise l\'enum `StatutCelery` avec les valeurs : - **PENDING, STARTED, SUCCESS, FAILURE, RETRY** Voir la documentation du schéma `StatutCelery` pour les détails. ## Résultat métier Quand `statut=\"SUCCESS\"`, le champ `resultat` contient : - `statut` : \"SUCCES\" ou \"ERREUR\" (résultat métier) - `chemin_fichier` : Chemin du fichier généré (si succès) - `message_erreur` : Détails de l\'erreur (si échec métier) ## Usage Appelez cet endpoint en boucle (polling) toutes les 2-3 secondes jusqu\'à ce que `statut` soit `SUCCESS` ou `FAILURE`.
|
|
143
143
|
|
|
144
144
|
### Example
|
|
145
145
|
|
package/models/destinataire.ts
CHANGED
|
@@ -36,6 +36,9 @@ import type { ModeDepot } from './mode-depot';
|
|
|
36
36
|
import type { MontantTotal } from './montant-total';
|
|
37
37
|
// May contain unused imports in some cases
|
|
38
38
|
// @ts-ignore
|
|
39
|
+
import type { Note } from './note';
|
|
40
|
+
// May contain unused imports in some cases
|
|
41
|
+
// @ts-ignore
|
|
39
42
|
import type { PieceJointeComplementaire } from './piece-jointe-complementaire';
|
|
40
43
|
// May contain unused imports in some cases
|
|
41
44
|
// @ts-ignore
|
|
@@ -56,6 +59,7 @@ export interface FactureFacturX {
|
|
|
56
59
|
'montantTotal': MontantTotal;
|
|
57
60
|
'lignesDePoste'?: Array<LigneDePoste>;
|
|
58
61
|
'lignesDeTva'?: Array<LigneDeTVA>;
|
|
62
|
+
'notes'?: Array<Note>;
|
|
59
63
|
'commentaire'?: string | null;
|
|
60
64
|
'idUtilisateurCourant'?: number | null;
|
|
61
65
|
'piecesJointesComplementaires'?: Array<PieceJointeComplementaire> | null;
|