@factpulse/sdk 3.0.2 → 3.0.4
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 -4
- package/CHANGELOG.md +3 -3
- package/api/invoice-processing-api.ts +4 -4
- package/api/pdfxmlverification-api.ts +6 -6
- package/dist/api/invoice-processing-api.d.ts +4 -4
- package/dist/api/pdfxmlverification-api.d.ts +7 -7
- package/dist/esm/api/invoice-processing-api.d.ts +4 -4
- package/dist/esm/api/pdfxmlverification-api.d.ts +7 -7
- package/dist/{models/task-status.d.ts → esm/models/async-task-status.d.ts} +1 -1
- package/dist/esm/models/{facture-factur-x.d.ts → factur-xinvoice.d.ts} +1 -1
- package/dist/esm/models/index.d.ts +2 -2
- package/dist/esm/models/index.js +2 -2
- package/dist/esm/models/invoice-type-code.d.ts +0 -16
- package/dist/esm/models/invoice-type-code.js +1 -17
- package/dist/esm/models/invoicing-framework-code.d.ts +0 -4
- package/dist/esm/models/invoicing-framework-code.js +1 -5
- package/dist/esm/models/payment-means.d.ts +0 -6
- package/dist/esm/models/payment-means.js +1 -7
- package/dist/esm/models/submission-mode.d.ts +0 -3
- package/dist/esm/models/submission-mode.js +1 -4
- package/dist/esm/models/unit-of-measure.d.ts +0 -6
- package/dist/esm/models/unit-of-measure.js +1 -7
- package/dist/esm/models/vataccounting-code.d.ts +0 -4
- package/dist/esm/models/vataccounting-code.js +1 -5
- package/dist/{esm/models/task-status.d.ts → models/async-task-status.d.ts} +1 -1
- package/dist/models/{facture-factur-x.d.ts → factur-xinvoice.d.ts} +1 -1
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/dist/models/invoice-type-code.d.ts +0 -16
- package/dist/models/invoice-type-code.js +1 -17
- package/dist/models/invoicing-framework-code.d.ts +0 -4
- package/dist/models/invoicing-framework-code.js +1 -5
- package/dist/models/payment-means.d.ts +0 -6
- package/dist/models/payment-means.js +1 -7
- package/dist/models/submission-mode.d.ts +0 -3
- package/dist/models/submission-mode.js +1 -4
- package/dist/models/unit-of-measure.d.ts +0 -6
- package/dist/models/unit-of-measure.js +1 -7
- package/dist/models/vataccounting-code.d.ts +0 -4
- package/dist/models/vataccounting-code.js +1 -5
- package/docs/{TaskStatus.md → AsyncTaskStatus.md} +3 -3
- package/docs/{FactureFacturX.md → FacturXInvoice.md} +3 -3
- package/docs/InvoiceProcessingApi.md +2 -2
- package/docs/InvoiceTypeCode.md +0 -32
- package/docs/InvoicingFrameworkCode.md +0 -8
- package/docs/PDFXMLVerificationApi.md +4 -4
- package/docs/PaymentMeans.md +0 -12
- package/docs/SubmissionMode.md +0 -6
- package/docs/UnitOfMeasure.md +0 -12
- package/docs/VATAccountingCode.md +0 -8
- package/models/{task-status.ts → async-task-status.ts} +1 -1
- package/models/{facture-factur-x.ts → factur-xinvoice.ts} +1 -1
- package/models/index.ts +2 -2
- package/models/invoice-type-code.ts +1 -17
- package/models/invoicing-framework-code.ts +1 -5
- package/models/payment-means.ts +1 -7
- package/models/submission-mode.ts +1 -4
- package/models/unit-of-measure.ts +1 -7
- package/models/vataccounting-code.ts +1 -5
- package/package.json +1 -1
- /package/dist/esm/models/{facture-factur-x.js → async-task-status.js} +0 -0
- /package/dist/esm/models/{task-status.js → factur-xinvoice.js} +0 -0
- /package/dist/models/{facture-factur-x.js → async-task-status.js} +0 -0
- /package/dist/models/{task-status.js → factur-xinvoice.js} +0 -0
|
@@ -18,9 +18,5 @@ export const VATAccountingCode = {
|
|
|
18
18
|
TvaSurDebit: 'TVA_SUR_DEBIT',
|
|
19
19
|
TvaSurEncaissement: 'TVA_SUR_ENCAISSEMENT',
|
|
20
20
|
Exoneration: 'EXONERATION',
|
|
21
|
-
SansTva: 'SANS_TVA'
|
|
22
|
-
TvaSurDebit2: 'TVA_SUR_DEBIT',
|
|
23
|
-
TvaSurEncaissement2: 'TVA_SUR_ENCAISSEMENT',
|
|
24
|
-
Exoneration2: 'EXONERATION',
|
|
25
|
-
SansTva2: 'SANS_TVA'
|
|
21
|
+
SansTva: 'SANS_TVA'
|
|
26
22
|
};
|
|
@@ -13,7 +13,7 @@ import type { CeleryStatus } from './celery-status';
|
|
|
13
13
|
/**
|
|
14
14
|
* Complete description of an async task status. The `status` field indicates the Celery state of the task. When `status=\"SUCCESS\"`, check `result.status` for the business result (\"SUCCESS\" or \"ERROR\").
|
|
15
15
|
*/
|
|
16
|
-
export interface
|
|
16
|
+
export interface AsyncTaskStatus {
|
|
17
17
|
/**
|
|
18
18
|
* Unique task identifier
|
|
19
19
|
*/
|
|
@@ -23,7 +23,7 @@ import type { VATLine } from './vatline';
|
|
|
23
23
|
/**
|
|
24
24
|
* Data model for an invoice to be converted to Factur-X.
|
|
25
25
|
*/
|
|
26
|
-
export interface
|
|
26
|
+
export interface FacturXInvoice {
|
|
27
27
|
'invoice_number': string;
|
|
28
28
|
'payment_due_date': string;
|
|
29
29
|
'invoice_date'?: string;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './apiprofile';
|
|
|
7
7
|
export * from './acknowledgment-status';
|
|
8
8
|
export * from './allowance-reason-code';
|
|
9
9
|
export * from './amount-due';
|
|
10
|
+
export * from './async-task-status';
|
|
10
11
|
export * from './bounding-box-schema';
|
|
11
12
|
export * from './celery-status';
|
|
12
13
|
export * from './certificate-info-response';
|
|
@@ -18,10 +19,10 @@ export * from './electronic-address';
|
|
|
18
19
|
export * from './enriched-invoice-info';
|
|
19
20
|
export * from './error-level';
|
|
20
21
|
export * from './error-source';
|
|
22
|
+
export * from './factur-xinvoice';
|
|
21
23
|
export * from './factur-xpdfinfo';
|
|
22
24
|
export * from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
|
|
23
25
|
export * from './facture-electronique-rest-api-schemas-processing-chorus-pro-credentials';
|
|
24
|
-
export * from './facture-factur-x';
|
|
25
26
|
export * from './field-status';
|
|
26
27
|
export * from './flow-direction';
|
|
27
28
|
export * from './flow-profile';
|
|
@@ -92,7 +93,6 @@ export * from './submit-vat-amount';
|
|
|
92
93
|
export * from './supplementary-attachment';
|
|
93
94
|
export * from './supplier';
|
|
94
95
|
export * from './task-response';
|
|
95
|
-
export * from './task-status';
|
|
96
96
|
export * from './taxable-amount';
|
|
97
97
|
export * from './total-gross-amount';
|
|
98
98
|
export * from './total-net-amount';
|
package/dist/models/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./apiprofile"), exports);
|
|
|
23
23
|
__exportStar(require("./acknowledgment-status"), exports);
|
|
24
24
|
__exportStar(require("./allowance-reason-code"), exports);
|
|
25
25
|
__exportStar(require("./amount-due"), exports);
|
|
26
|
+
__exportStar(require("./async-task-status"), exports);
|
|
26
27
|
__exportStar(require("./bounding-box-schema"), exports);
|
|
27
28
|
__exportStar(require("./celery-status"), exports);
|
|
28
29
|
__exportStar(require("./certificate-info-response"), exports);
|
|
@@ -34,10 +35,10 @@ __exportStar(require("./electronic-address"), exports);
|
|
|
34
35
|
__exportStar(require("./enriched-invoice-info"), exports);
|
|
35
36
|
__exportStar(require("./error-level"), exports);
|
|
36
37
|
__exportStar(require("./error-source"), exports);
|
|
38
|
+
__exportStar(require("./factur-xinvoice"), exports);
|
|
37
39
|
__exportStar(require("./factur-xpdfinfo"), exports);
|
|
38
40
|
__exportStar(require("./facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials"), exports);
|
|
39
41
|
__exportStar(require("./facture-electronique-rest-api-schemas-processing-chorus-pro-credentials"), exports);
|
|
40
|
-
__exportStar(require("./facture-factur-x"), exports);
|
|
41
42
|
__exportStar(require("./field-status"), exports);
|
|
42
43
|
__exportStar(require("./flow-direction"), exports);
|
|
43
44
|
__exportStar(require("./flow-profile"), exports);
|
|
@@ -108,7 +109,6 @@ __exportStar(require("./submit-vat-amount"), exports);
|
|
|
108
109
|
__exportStar(require("./supplementary-attachment"), exports);
|
|
109
110
|
__exportStar(require("./supplier"), exports);
|
|
110
111
|
__exportStar(require("./task-response"), exports);
|
|
111
|
-
__exportStar(require("./task-status"), exports);
|
|
112
112
|
__exportStar(require("./taxable-amount"), exports);
|
|
113
113
|
__exportStar(require("./total-gross-amount"), exports);
|
|
114
114
|
__exportStar(require("./total-net-amount"), exports);
|
|
@@ -77,21 +77,5 @@ export declare const InvoiceTypeCode: {
|
|
|
77
77
|
* Prepayment Credit Note
|
|
78
78
|
*/
|
|
79
79
|
readonly PREPAYMENT_CREDIT_NOTE: "503";
|
|
80
|
-
readonly _3802: "380";
|
|
81
|
-
readonly _3892: "389";
|
|
82
|
-
readonly _3932: "393";
|
|
83
|
-
readonly _5012: "501";
|
|
84
|
-
readonly _3862: "386";
|
|
85
|
-
readonly _5002: "500";
|
|
86
|
-
readonly _3842: "384";
|
|
87
|
-
readonly _4712: "471";
|
|
88
|
-
readonly _4722: "472";
|
|
89
|
-
readonly _4732: "473";
|
|
90
|
-
readonly _3812: "381";
|
|
91
|
-
readonly _2612: "261";
|
|
92
|
-
readonly _2622: "262";
|
|
93
|
-
readonly _3962: "396";
|
|
94
|
-
readonly _5022: "502";
|
|
95
|
-
readonly _5032: "503";
|
|
96
80
|
};
|
|
97
81
|
export type InvoiceTypeCode = typeof InvoiceTypeCode[keyof typeof InvoiceTypeCode];
|
|
@@ -81,21 +81,5 @@ exports.InvoiceTypeCode = {
|
|
|
81
81
|
/**
|
|
82
82
|
* Prepayment Credit Note
|
|
83
83
|
*/
|
|
84
|
-
PREPAYMENT_CREDIT_NOTE: '503'
|
|
85
|
-
_3802: '380',
|
|
86
|
-
_3892: '389',
|
|
87
|
-
_3932: '393',
|
|
88
|
-
_5012: '501',
|
|
89
|
-
_3862: '386',
|
|
90
|
-
_5002: '500',
|
|
91
|
-
_3842: '384',
|
|
92
|
-
_4712: '471',
|
|
93
|
-
_4722: '472',
|
|
94
|
-
_4732: '473',
|
|
95
|
-
_3812: '381',
|
|
96
|
-
_2612: '261',
|
|
97
|
-
_2622: '262',
|
|
98
|
-
_3962: '396',
|
|
99
|
-
_5022: '502',
|
|
100
|
-
_5032: '503'
|
|
84
|
+
PREPAYMENT_CREDIT_NOTE: '503'
|
|
101
85
|
};
|
|
@@ -17,9 +17,5 @@ export declare const InvoicingFrameworkCode: {
|
|
|
17
17
|
readonly A2FactureFournisseurDejaPayee: "A2_FACTURE_FOURNISSEUR_DEJA_PAYEE";
|
|
18
18
|
readonly A9FactureSoustraitant: "A9_FACTURE_SOUSTRAITANT";
|
|
19
19
|
readonly A12FactureCotraitant: "A12_FACTURE_COTRAITANT";
|
|
20
|
-
readonly A1FactureFournisseur2: "A1_FACTURE_FOURNISSEUR";
|
|
21
|
-
readonly A2FactureFournisseurDejaPayee2: "A2_FACTURE_FOURNISSEUR_DEJA_PAYEE";
|
|
22
|
-
readonly A9FactureSoustraitant2: "A9_FACTURE_SOUSTRAITANT";
|
|
23
|
-
readonly A12FactureCotraitant2: "A12_FACTURE_COTRAITANT";
|
|
24
20
|
};
|
|
25
21
|
export type InvoicingFrameworkCode = typeof InvoicingFrameworkCode[keyof typeof InvoicingFrameworkCode];
|
|
@@ -21,9 +21,5 @@ exports.InvoicingFrameworkCode = {
|
|
|
21
21
|
A1FactureFournisseur: 'A1_FACTURE_FOURNISSEUR',
|
|
22
22
|
A2FactureFournisseurDejaPayee: 'A2_FACTURE_FOURNISSEUR_DEJA_PAYEE',
|
|
23
23
|
A9FactureSoustraitant: 'A9_FACTURE_SOUSTRAITANT',
|
|
24
|
-
A12FactureCotraitant: 'A12_FACTURE_COTRAITANT'
|
|
25
|
-
A1FactureFournisseur2: 'A1_FACTURE_FOURNISSEUR',
|
|
26
|
-
A2FactureFournisseurDejaPayee2: 'A2_FACTURE_FOURNISSEUR_DEJA_PAYEE',
|
|
27
|
-
A9FactureSoustraitant2: 'A9_FACTURE_SOUSTRAITANT',
|
|
28
|
-
A12FactureCotraitant2: 'A12_FACTURE_COTRAITANT'
|
|
24
|
+
A12FactureCotraitant: 'A12_FACTURE_COTRAITANT'
|
|
29
25
|
};
|
|
@@ -19,11 +19,5 @@ export declare const PaymentMeans: {
|
|
|
19
19
|
readonly Espece: "ESPECE";
|
|
20
20
|
readonly Autre: "AUTRE";
|
|
21
21
|
readonly Report: "REPORT";
|
|
22
|
-
readonly Cheque2: "CHEQUE";
|
|
23
|
-
readonly Prelevement2: "PRELEVEMENT";
|
|
24
|
-
readonly Virement2: "VIREMENT";
|
|
25
|
-
readonly Espece2: "ESPECE";
|
|
26
|
-
readonly Autre2: "AUTRE";
|
|
27
|
-
readonly Report2: "REPORT";
|
|
28
22
|
};
|
|
29
23
|
export type PaymentMeans = typeof PaymentMeans[keyof typeof PaymentMeans];
|
|
@@ -23,11 +23,5 @@ exports.PaymentMeans = {
|
|
|
23
23
|
Virement: 'VIREMENT',
|
|
24
24
|
Espece: 'ESPECE',
|
|
25
25
|
Autre: 'AUTRE',
|
|
26
|
-
Report: 'REPORT'
|
|
27
|
-
Cheque2: 'CHEQUE',
|
|
28
|
-
Prelevement2: 'PRELEVEMENT',
|
|
29
|
-
Virement2: 'VIREMENT',
|
|
30
|
-
Espece2: 'ESPECE',
|
|
31
|
-
Autre2: 'AUTRE',
|
|
32
|
-
Report2: 'REPORT'
|
|
26
|
+
Report: 'REPORT'
|
|
33
27
|
};
|
|
@@ -16,8 +16,5 @@ export declare const SubmissionMode: {
|
|
|
16
16
|
readonly SaisieApi: "SAISIE_API";
|
|
17
17
|
readonly DepotPdfApi: "DEPOT_PDF_API";
|
|
18
18
|
readonly DepotPdfSigneApi: "DEPOT_PDF_SIGNE_API";
|
|
19
|
-
readonly SaisieApi2: "SAISIE_API";
|
|
20
|
-
readonly DepotPdfApi2: "DEPOT_PDF_API";
|
|
21
|
-
readonly DepotPdfSigneApi2: "DEPOT_PDF_SIGNE_API";
|
|
22
19
|
};
|
|
23
20
|
export type SubmissionMode = typeof SubmissionMode[keyof typeof SubmissionMode];
|
|
@@ -20,8 +20,5 @@ exports.SubmissionMode = void 0;
|
|
|
20
20
|
exports.SubmissionMode = {
|
|
21
21
|
SaisieApi: 'SAISIE_API',
|
|
22
22
|
DepotPdfApi: 'DEPOT_PDF_API',
|
|
23
|
-
DepotPdfSigneApi: 'DEPOT_PDF_SIGNE_API'
|
|
24
|
-
SaisieApi2: 'SAISIE_API',
|
|
25
|
-
DepotPdfApi2: 'DEPOT_PDF_API',
|
|
26
|
-
DepotPdfSigneApi2: 'DEPOT_PDF_SIGNE_API'
|
|
23
|
+
DepotPdfSigneApi: 'DEPOT_PDF_SIGNE_API'
|
|
27
24
|
};
|
|
@@ -19,11 +19,5 @@ export declare const UnitOfMeasure: {
|
|
|
19
19
|
readonly Kilogramme: "KILOGRAMME";
|
|
20
20
|
readonly Litre: "LITRE";
|
|
21
21
|
readonly Forfait: "FORFAIT";
|
|
22
|
-
readonly Piece2: "PIECE";
|
|
23
|
-
readonly Heure2: "HEURE";
|
|
24
|
-
readonly Jour2: "JOUR";
|
|
25
|
-
readonly Kilogramme2: "KILOGRAMME";
|
|
26
|
-
readonly Litre2: "LITRE";
|
|
27
|
-
readonly Forfait2: "FORFAIT";
|
|
28
22
|
};
|
|
29
23
|
export type UnitOfMeasure = typeof UnitOfMeasure[keyof typeof UnitOfMeasure];
|
|
@@ -23,11 +23,5 @@ exports.UnitOfMeasure = {
|
|
|
23
23
|
Jour: 'JOUR',
|
|
24
24
|
Kilogramme: 'KILOGRAMME',
|
|
25
25
|
Litre: 'LITRE',
|
|
26
|
-
Forfait: 'FORFAIT'
|
|
27
|
-
Piece2: 'PIECE',
|
|
28
|
-
Heure2: 'HEURE',
|
|
29
|
-
Jour2: 'JOUR',
|
|
30
|
-
Kilogramme2: 'KILOGRAMME',
|
|
31
|
-
Litre2: 'LITRE',
|
|
32
|
-
Forfait2: 'FORFAIT'
|
|
26
|
+
Forfait: 'FORFAIT'
|
|
33
27
|
};
|
|
@@ -17,9 +17,5 @@ export declare const VATAccountingCode: {
|
|
|
17
17
|
readonly TvaSurEncaissement: "TVA_SUR_ENCAISSEMENT";
|
|
18
18
|
readonly Exoneration: "EXONERATION";
|
|
19
19
|
readonly SansTva: "SANS_TVA";
|
|
20
|
-
readonly TvaSurDebit2: "TVA_SUR_DEBIT";
|
|
21
|
-
readonly TvaSurEncaissement2: "TVA_SUR_ENCAISSEMENT";
|
|
22
|
-
readonly Exoneration2: "EXONERATION";
|
|
23
|
-
readonly SansTva2: "SANS_TVA";
|
|
24
20
|
};
|
|
25
21
|
export type VATAccountingCode = typeof VATAccountingCode[keyof typeof VATAccountingCode];
|
|
@@ -21,9 +21,5 @@ exports.VATAccountingCode = {
|
|
|
21
21
|
TvaSurDebit: 'TVA_SUR_DEBIT',
|
|
22
22
|
TvaSurEncaissement: 'TVA_SUR_ENCAISSEMENT',
|
|
23
23
|
Exoneration: 'EXONERATION',
|
|
24
|
-
SansTva: 'SANS_TVA'
|
|
25
|
-
TvaSurDebit2: 'TVA_SUR_DEBIT',
|
|
26
|
-
TvaSurEncaissement2: 'TVA_SUR_ENCAISSEMENT',
|
|
27
|
-
Exoneration2: 'EXONERATION',
|
|
28
|
-
SansTva2: 'SANS_TVA'
|
|
24
|
+
SansTva: 'SANS_TVA'
|
|
29
25
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# AsyncTaskStatus
|
|
2
2
|
|
|
3
3
|
Complete description of an async task status. The `status` field indicates the Celery state of the task. When `status=\"SUCCESS\"`, check `result.status` for the business result (\"SUCCESS\" or \"ERROR\").
|
|
4
4
|
|
|
@@ -13,9 +13,9 @@ Name | Type | Description | Notes
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import {
|
|
16
|
+
import { AsyncTaskStatus } from '@factpulse/sdk';
|
|
17
17
|
|
|
18
|
-
const instance:
|
|
18
|
+
const instance: AsyncTaskStatus = {
|
|
19
19
|
taskId,
|
|
20
20
|
status,
|
|
21
21
|
result,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# FacturXInvoice
|
|
2
2
|
|
|
3
3
|
Data model for an invoice to be converted to Factur-X.
|
|
4
4
|
|
|
@@ -26,9 +26,9 @@ Name | Type | Description | Notes
|
|
|
26
26
|
## Example
|
|
27
27
|
|
|
28
28
|
```typescript
|
|
29
|
-
import {
|
|
29
|
+
import { FacturXInvoice } from '@factpulse/sdk';
|
|
30
30
|
|
|
31
|
-
const instance:
|
|
31
|
+
const instance: FacturXInvoice = {
|
|
32
32
|
invoice_number,
|
|
33
33
|
payment_due_date,
|
|
34
34
|
invoice_date,
|
|
@@ -137,7 +137,7 @@ const { status, data } = await apiInstance.generateTestCertificateApiV1Processin
|
|
|
137
137
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
138
138
|
|
|
139
139
|
# **getTaskStatusApiV1ProcessingTasksTaskIdStatusGet**
|
|
140
|
-
>
|
|
140
|
+
> AsyncTaskStatus getTaskStatusApiV1ProcessingTasksTaskIdStatusGet()
|
|
141
141
|
|
|
142
142
|
Retrieves the progress status of an invoice generation task. ## Possible states The `status` field uses the `CeleryStatus` enum with values: - **PENDING, STARTED, SUCCESS, FAILURE, RETRY** See the `CeleryStatus` schema documentation for details. ## Business result When `status=\"SUCCESS\"`, the `result` field contains: - `status`: \"SUCCESS\" or \"ERROR\" (business result) - `content_b64`: Base64 encoded content (if success) - `errorCode`, `errorMessage`, `details`: AFNOR format (if business error) ## Usage Poll this endpoint every 2-3 seconds until `status` is `SUCCESS` or `FAILURE`.
|
|
143
143
|
|
|
@@ -168,7 +168,7 @@ const { status, data } = await apiInstance.getTaskStatusApiV1ProcessingTasksTask
|
|
|
168
168
|
|
|
169
169
|
### Return type
|
|
170
170
|
|
|
171
|
-
**
|
|
171
|
+
**AsyncTaskStatus**
|
|
172
172
|
|
|
173
173
|
### Authorization
|
|
174
174
|
|
package/docs/InvoiceTypeCode.md
CHANGED
|
@@ -36,36 +36,4 @@ Document type according to BR-FR-04 (UNTDID 1001 codes). | Code | Name | Descri
|
|
|
36
36
|
|
|
37
37
|
* `PREPAYMENT_CREDIT_NOTE` (value: `'503'`)
|
|
38
38
|
|
|
39
|
-
* `_3802` (value: `'380'`)
|
|
40
|
-
|
|
41
|
-
* `_3892` (value: `'389'`)
|
|
42
|
-
|
|
43
|
-
* `_3932` (value: `'393'`)
|
|
44
|
-
|
|
45
|
-
* `_5012` (value: `'501'`)
|
|
46
|
-
|
|
47
|
-
* `_3862` (value: `'386'`)
|
|
48
|
-
|
|
49
|
-
* `_5002` (value: `'500'`)
|
|
50
|
-
|
|
51
|
-
* `_3842` (value: `'384'`)
|
|
52
|
-
|
|
53
|
-
* `_4712` (value: `'471'`)
|
|
54
|
-
|
|
55
|
-
* `_4722` (value: `'472'`)
|
|
56
|
-
|
|
57
|
-
* `_4732` (value: `'473'`)
|
|
58
|
-
|
|
59
|
-
* `_3812` (value: `'381'`)
|
|
60
|
-
|
|
61
|
-
* `_2612` (value: `'261'`)
|
|
62
|
-
|
|
63
|
-
* `_2622` (value: `'262'`)
|
|
64
|
-
|
|
65
|
-
* `_3962` (value: `'396'`)
|
|
66
|
-
|
|
67
|
-
* `_5022` (value: `'502'`)
|
|
68
|
-
|
|
69
|
-
* `_5032` (value: `'503'`)
|
|
70
|
-
|
|
71
39
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -12,12 +12,4 @@ Chorus Pro codes for invoicing framework (B2G usage).
|
|
|
12
12
|
|
|
13
13
|
* `A12FactureCotraitant` (value: `'A12_FACTURE_COTRAITANT'`)
|
|
14
14
|
|
|
15
|
-
* `A1FactureFournisseur2` (value: `'A1_FACTURE_FOURNISSEUR'`)
|
|
16
|
-
|
|
17
|
-
* `A2FactureFournisseurDejaPayee2` (value: `'A2_FACTURE_FOURNISSEUR_DEJA_PAYEE'`)
|
|
18
|
-
|
|
19
|
-
* `A9FactureSoustraitant2` (value: `'A9_FACTURE_SOUSTRAITANT'`)
|
|
20
|
-
|
|
21
|
-
* `A12FactureCotraitant2` (value: `'A12_FACTURE_COTRAITANT'`)
|
|
22
|
-
|
|
23
15
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost*
|
|
|
12
12
|
|[**verifyPdfSyncApiV1VerificationVerifyPost_0**](#verifypdfsyncapiv1verificationverifypost_0) | **POST** /api/v1/verification/verify | Verify PDF/XML Factur-X compliance (synchronous)|
|
|
13
13
|
|
|
14
14
|
# **getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet**
|
|
15
|
-
>
|
|
15
|
+
> AsyncTaskStatus getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet()
|
|
16
16
|
|
|
17
17
|
Retrieves the status and result of an asynchronous verification task. **Possible statuses:** - `PENDING`: Task waiting in queue - `STARTED`: Task currently running - `SUCCESS`: Task completed successfully (see `result`) - `FAILURE`: System error (unhandled exception) **Note:** The `result.status` field can be \"SUCCESS\" or \"ERROR\" independently of Celery status (which will always be SUCCESS if the task ran).
|
|
18
18
|
|
|
@@ -43,7 +43,7 @@ const { status, data } = await apiInstance.getVerificationStatusApiV1Verificatio
|
|
|
43
43
|
|
|
44
44
|
### Return type
|
|
45
45
|
|
|
46
|
-
**
|
|
46
|
+
**AsyncTaskStatus**
|
|
47
47
|
|
|
48
48
|
### Authorization
|
|
49
49
|
|
|
@@ -64,7 +64,7 @@ const { status, data } = await apiInstance.getVerificationStatusApiV1Verificatio
|
|
|
64
64
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
65
|
|
|
66
66
|
# **getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_0**
|
|
67
|
-
>
|
|
67
|
+
> AsyncTaskStatus getVerificationStatusApiV1VerificationVerifyAsyncTaskIdStatusGet_0()
|
|
68
68
|
|
|
69
69
|
Retrieves the status and result of an asynchronous verification task. **Possible statuses:** - `PENDING`: Task waiting in queue - `STARTED`: Task currently running - `SUCCESS`: Task completed successfully (see `result`) - `FAILURE`: System error (unhandled exception) **Note:** The `result.status` field can be \"SUCCESS\" or \"ERROR\" independently of Celery status (which will always be SUCCESS if the task ran).
|
|
70
70
|
|
|
@@ -95,7 +95,7 @@ const { status, data } = await apiInstance.getVerificationStatusApiV1Verificatio
|
|
|
95
95
|
|
|
96
96
|
### Return type
|
|
97
97
|
|
|
98
|
-
**
|
|
98
|
+
**AsyncTaskStatus**
|
|
99
99
|
|
|
100
100
|
### Authorization
|
|
101
101
|
|
package/docs/PaymentMeans.md
CHANGED
|
@@ -16,16 +16,4 @@ Accepted payment methods.
|
|
|
16
16
|
|
|
17
17
|
* `Report` (value: `'REPORT'`)
|
|
18
18
|
|
|
19
|
-
* `Cheque2` (value: `'CHEQUE'`)
|
|
20
|
-
|
|
21
|
-
* `Prelevement2` (value: `'PRELEVEMENT'`)
|
|
22
|
-
|
|
23
|
-
* `Virement2` (value: `'VIREMENT'`)
|
|
24
|
-
|
|
25
|
-
* `Espece2` (value: `'ESPECE'`)
|
|
26
|
-
|
|
27
|
-
* `Autre2` (value: `'AUTRE'`)
|
|
28
|
-
|
|
29
|
-
* `Report2` (value: `'REPORT'`)
|
|
30
|
-
|
|
31
19
|
[[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/SubmissionMode.md
CHANGED
|
@@ -10,10 +10,4 @@ Invoice submission mode on Chorus Pro.
|
|
|
10
10
|
|
|
11
11
|
* `DepotPdfSigneApi` (value: `'DEPOT_PDF_SIGNE_API'`)
|
|
12
12
|
|
|
13
|
-
* `SaisieApi2` (value: `'SAISIE_API'`)
|
|
14
|
-
|
|
15
|
-
* `DepotPdfApi2` (value: `'DEPOT_PDF_API'`)
|
|
16
|
-
|
|
17
|
-
* `DepotPdfSigneApi2` (value: `'DEPOT_PDF_SIGNE_API'`)
|
|
18
|
-
|
|
19
13
|
[[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/UnitOfMeasure.md
CHANGED
|
@@ -16,16 +16,4 @@ Enumeration of invoicing units of measure.
|
|
|
16
16
|
|
|
17
17
|
* `Forfait` (value: `'FORFAIT'`)
|
|
18
18
|
|
|
19
|
-
* `Piece2` (value: `'PIECE'`)
|
|
20
|
-
|
|
21
|
-
* `Heure2` (value: `'HEURE'`)
|
|
22
|
-
|
|
23
|
-
* `Jour2` (value: `'JOUR'`)
|
|
24
|
-
|
|
25
|
-
* `Kilogramme2` (value: `'KILOGRAMME'`)
|
|
26
|
-
|
|
27
|
-
* `Litre2` (value: `'LITRE'`)
|
|
28
|
-
|
|
29
|
-
* `Forfait2` (value: `'FORFAIT'`)
|
|
30
|
-
|
|
31
19
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -12,12 +12,4 @@ VAT accounting regime.
|
|
|
12
12
|
|
|
13
13
|
* `SansTva` (value: `'SANS_TVA'`)
|
|
14
14
|
|
|
15
|
-
* `TvaSurDebit2` (value: `'TVA_SUR_DEBIT'`)
|
|
16
|
-
|
|
17
|
-
* `TvaSurEncaissement2` (value: `'TVA_SUR_ENCAISSEMENT'`)
|
|
18
|
-
|
|
19
|
-
* `Exoneration2` (value: `'EXONERATION'`)
|
|
20
|
-
|
|
21
|
-
* `SansTva2` (value: `'SANS_TVA'`)
|
|
22
|
-
|
|
23
15
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -20,7 +20,7 @@ import type { CeleryStatus } from './celery-status';
|
|
|
20
20
|
/**
|
|
21
21
|
* Complete description of an async task status. The `status` field indicates the Celery state of the task. When `status=\"SUCCESS\"`, check `result.status` for the business result (\"SUCCESS\" or \"ERROR\").
|
|
22
22
|
*/
|
|
23
|
-
export interface
|
|
23
|
+
export interface AsyncTaskStatus {
|
|
24
24
|
/**
|
|
25
25
|
* Unique task identifier
|
|
26
26
|
*/
|
|
@@ -50,7 +50,7 @@ import type { VATLine } from './vatline';
|
|
|
50
50
|
/**
|
|
51
51
|
* Data model for an invoice to be converted to Factur-X.
|
|
52
52
|
*/
|
|
53
|
-
export interface
|
|
53
|
+
export interface FacturXInvoice {
|
|
54
54
|
'invoice_number': string;
|
|
55
55
|
'payment_due_date': string;
|
|
56
56
|
'invoice_date'?: string;
|
package/models/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './apiprofile';
|
|
|
7
7
|
export * from './acknowledgment-status';
|
|
8
8
|
export * from './allowance-reason-code';
|
|
9
9
|
export * from './amount-due';
|
|
10
|
+
export * from './async-task-status';
|
|
10
11
|
export * from './bounding-box-schema';
|
|
11
12
|
export * from './celery-status';
|
|
12
13
|
export * from './certificate-info-response';
|
|
@@ -18,10 +19,10 @@ export * from './electronic-address';
|
|
|
18
19
|
export * from './enriched-invoice-info';
|
|
19
20
|
export * from './error-level';
|
|
20
21
|
export * from './error-source';
|
|
22
|
+
export * from './factur-xinvoice';
|
|
21
23
|
export * from './factur-xpdfinfo';
|
|
22
24
|
export * from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
|
|
23
25
|
export * from './facture-electronique-rest-api-schemas-processing-chorus-pro-credentials';
|
|
24
|
-
export * from './facture-factur-x';
|
|
25
26
|
export * from './field-status';
|
|
26
27
|
export * from './flow-direction';
|
|
27
28
|
export * from './flow-profile';
|
|
@@ -92,7 +93,6 @@ export * from './submit-vat-amount';
|
|
|
92
93
|
export * from './supplementary-attachment';
|
|
93
94
|
export * from './supplier';
|
|
94
95
|
export * from './task-response';
|
|
95
|
-
export * from './task-status';
|
|
96
96
|
export * from './taxable-amount';
|
|
97
97
|
export * from './total-gross-amount';
|
|
98
98
|
export * from './total-net-amount';
|
|
@@ -82,23 +82,7 @@ export const InvoiceTypeCode = {
|
|
|
82
82
|
/**
|
|
83
83
|
* Prepayment Credit Note
|
|
84
84
|
*/
|
|
85
|
-
PREPAYMENT_CREDIT_NOTE: '503'
|
|
86
|
-
_3802: '380',
|
|
87
|
-
_3892: '389',
|
|
88
|
-
_3932: '393',
|
|
89
|
-
_5012: '501',
|
|
90
|
-
_3862: '386',
|
|
91
|
-
_5002: '500',
|
|
92
|
-
_3842: '384',
|
|
93
|
-
_4712: '471',
|
|
94
|
-
_4722: '472',
|
|
95
|
-
_4732: '473',
|
|
96
|
-
_3812: '381',
|
|
97
|
-
_2612: '261',
|
|
98
|
-
_2622: '262',
|
|
99
|
-
_3962: '396',
|
|
100
|
-
_5022: '502',
|
|
101
|
-
_5032: '503'
|
|
85
|
+
PREPAYMENT_CREDIT_NOTE: '503'
|
|
102
86
|
} as const;
|
|
103
87
|
|
|
104
88
|
export type InvoiceTypeCode = typeof InvoiceTypeCode[keyof typeof InvoiceTypeCode];
|
|
@@ -22,11 +22,7 @@ export const InvoicingFrameworkCode = {
|
|
|
22
22
|
A1FactureFournisseur: 'A1_FACTURE_FOURNISSEUR',
|
|
23
23
|
A2FactureFournisseurDejaPayee: 'A2_FACTURE_FOURNISSEUR_DEJA_PAYEE',
|
|
24
24
|
A9FactureSoustraitant: 'A9_FACTURE_SOUSTRAITANT',
|
|
25
|
-
A12FactureCotraitant: 'A12_FACTURE_COTRAITANT'
|
|
26
|
-
A1FactureFournisseur2: 'A1_FACTURE_FOURNISSEUR',
|
|
27
|
-
A2FactureFournisseurDejaPayee2: 'A2_FACTURE_FOURNISSEUR_DEJA_PAYEE',
|
|
28
|
-
A9FactureSoustraitant2: 'A9_FACTURE_SOUSTRAITANT',
|
|
29
|
-
A12FactureCotraitant2: 'A12_FACTURE_COTRAITANT'
|
|
25
|
+
A12FactureCotraitant: 'A12_FACTURE_COTRAITANT'
|
|
30
26
|
} as const;
|
|
31
27
|
|
|
32
28
|
export type InvoicingFrameworkCode = typeof InvoicingFrameworkCode[keyof typeof InvoicingFrameworkCode];
|
package/models/payment-means.ts
CHANGED
|
@@ -24,13 +24,7 @@ export const PaymentMeans = {
|
|
|
24
24
|
Virement: 'VIREMENT',
|
|
25
25
|
Espece: 'ESPECE',
|
|
26
26
|
Autre: 'AUTRE',
|
|
27
|
-
Report: 'REPORT'
|
|
28
|
-
Cheque2: 'CHEQUE',
|
|
29
|
-
Prelevement2: 'PRELEVEMENT',
|
|
30
|
-
Virement2: 'VIREMENT',
|
|
31
|
-
Espece2: 'ESPECE',
|
|
32
|
-
Autre2: 'AUTRE',
|
|
33
|
-
Report2: 'REPORT'
|
|
27
|
+
Report: 'REPORT'
|
|
34
28
|
} as const;
|
|
35
29
|
|
|
36
30
|
export type PaymentMeans = typeof PaymentMeans[keyof typeof PaymentMeans];
|
|
@@ -21,10 +21,7 @@
|
|
|
21
21
|
export const SubmissionMode = {
|
|
22
22
|
SaisieApi: 'SAISIE_API',
|
|
23
23
|
DepotPdfApi: 'DEPOT_PDF_API',
|
|
24
|
-
DepotPdfSigneApi: 'DEPOT_PDF_SIGNE_API'
|
|
25
|
-
SaisieApi2: 'SAISIE_API',
|
|
26
|
-
DepotPdfApi2: 'DEPOT_PDF_API',
|
|
27
|
-
DepotPdfSigneApi2: 'DEPOT_PDF_SIGNE_API'
|
|
24
|
+
DepotPdfSigneApi: 'DEPOT_PDF_SIGNE_API'
|
|
28
25
|
} as const;
|
|
29
26
|
|
|
30
27
|
export type SubmissionMode = typeof SubmissionMode[keyof typeof SubmissionMode];
|
|
@@ -24,13 +24,7 @@ export const UnitOfMeasure = {
|
|
|
24
24
|
Jour: 'JOUR',
|
|
25
25
|
Kilogramme: 'KILOGRAMME',
|
|
26
26
|
Litre: 'LITRE',
|
|
27
|
-
Forfait: 'FORFAIT'
|
|
28
|
-
Piece2: 'PIECE',
|
|
29
|
-
Heure2: 'HEURE',
|
|
30
|
-
Jour2: 'JOUR',
|
|
31
|
-
Kilogramme2: 'KILOGRAMME',
|
|
32
|
-
Litre2: 'LITRE',
|
|
33
|
-
Forfait2: 'FORFAIT'
|
|
27
|
+
Forfait: 'FORFAIT'
|
|
34
28
|
} as const;
|
|
35
29
|
|
|
36
30
|
export type UnitOfMeasure = typeof UnitOfMeasure[keyof typeof UnitOfMeasure];
|
|
@@ -22,11 +22,7 @@ export const VATAccountingCode = {
|
|
|
22
22
|
TvaSurDebit: 'TVA_SUR_DEBIT',
|
|
23
23
|
TvaSurEncaissement: 'TVA_SUR_ENCAISSEMENT',
|
|
24
24
|
Exoneration: 'EXONERATION',
|
|
25
|
-
SansTva: 'SANS_TVA'
|
|
26
|
-
TvaSurDebit2: 'TVA_SUR_DEBIT',
|
|
27
|
-
TvaSurEncaissement2: 'TVA_SUR_ENCAISSEMENT',
|
|
28
|
-
Exoneration2: 'EXONERATION',
|
|
29
|
-
SansTva2: 'SANS_TVA'
|
|
25
|
+
SansTva: 'SANS_TVA'
|
|
30
26
|
} as const;
|
|
31
27
|
|
|
32
28
|
export type VATAccountingCode = typeof VATAccountingCode[keyof typeof VATAccountingCode];
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|