@factpulse/sdk 3.0.3 → 3.0.5
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 +2 -2
- package/CHANGELOG.md +3 -3
- package/dist/esm/models/{facture-factur-x.d.ts → factur-xinvoice.d.ts} +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- 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/models/{facture-factur-x.d.ts → factur-xinvoice.d.ts} +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- 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/{FactureFacturX.md → FacturXInvoice.md} +3 -3
- package/docs/InvoiceTypeCode.md +0 -32
- package/docs/InvoicingFrameworkCode.md +0 -8
- 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/{facture-factur-x.ts → factur-xinvoice.ts} +1 -1
- package/models/index.ts +1 -1
- 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 → factur-xinvoice.js} +0 -0
- /package/dist/models/{facture-factur-x.js → factur-xinvoice.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -39,10 +39,10 @@ docs/ElectronicAddress.md
|
|
|
39
39
|
docs/EnrichedInvoiceInfo.md
|
|
40
40
|
docs/ErrorLevel.md
|
|
41
41
|
docs/ErrorSource.md
|
|
42
|
+
docs/FacturXInvoice.md
|
|
42
43
|
docs/FacturXPDFInfo.md
|
|
43
44
|
docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md
|
|
44
45
|
docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md
|
|
45
|
-
docs/FactureFacturX.md
|
|
46
46
|
docs/FieldStatus.md
|
|
47
47
|
docs/FlowDirection.md
|
|
48
48
|
docs/FlowProfile.md
|
|
@@ -157,10 +157,10 @@ models/electronic-address.ts
|
|
|
157
157
|
models/enriched-invoice-info.ts
|
|
158
158
|
models/error-level.ts
|
|
159
159
|
models/error-source.ts
|
|
160
|
+
models/factur-xinvoice.ts
|
|
160
161
|
models/factur-xpdfinfo.ts
|
|
161
162
|
models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.ts
|
|
162
163
|
models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.ts
|
|
163
|
-
models/facture-factur-x.ts
|
|
164
164
|
models/field-status.ts
|
|
165
165
|
models/flow-direction.ts
|
|
166
166
|
models/flow-profile.ts
|
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,7 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
## [3.0.
|
|
10
|
+
## [3.0.5] - 2025-12-19
|
|
11
11
|
|
|
12
12
|
### Added
|
|
13
13
|
- Version initiale du SDK typescript
|
|
@@ -24,5 +24,5 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
24
24
|
- Guide d'authentification JWT
|
|
25
25
|
- Configuration avancée (timeout, proxy, debug)
|
|
26
26
|
|
|
27
|
-
[Unreleased]: https://github.com/factpulse/sdk-typescript/compare/v3.0.
|
|
28
|
-
[3.0.
|
|
27
|
+
[Unreleased]: https://github.com/factpulse/sdk-typescript/compare/v3.0.5...HEAD
|
|
28
|
+
[3.0.5]: https://github.com/factpulse/sdk-typescript/releases/tag/v3.0.5
|
|
@@ -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;
|
|
@@ -19,10 +19,10 @@ export * from './electronic-address';
|
|
|
19
19
|
export * from './enriched-invoice-info';
|
|
20
20
|
export * from './error-level';
|
|
21
21
|
export * from './error-source';
|
|
22
|
+
export * from './factur-xinvoice';
|
|
22
23
|
export * from './factur-xpdfinfo';
|
|
23
24
|
export * from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
|
|
24
25
|
export * from './facture-electronique-rest-api-schemas-processing-chorus-pro-credentials';
|
|
25
|
-
export * from './facture-factur-x';
|
|
26
26
|
export * from './field-status';
|
|
27
27
|
export * from './flow-direction';
|
|
28
28
|
export * from './flow-profile';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -19,10 +19,10 @@ export * from './electronic-address';
|
|
|
19
19
|
export * from './enriched-invoice-info';
|
|
20
20
|
export * from './error-level';
|
|
21
21
|
export * from './error-source';
|
|
22
|
+
export * from './factur-xinvoice';
|
|
22
23
|
export * from './factur-xpdfinfo';
|
|
23
24
|
export * from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
|
|
24
25
|
export * from './facture-electronique-rest-api-schemas-processing-chorus-pro-credentials';
|
|
25
|
-
export * from './facture-factur-x';
|
|
26
26
|
export * from './field-status';
|
|
27
27
|
export * from './flow-direction';
|
|
28
28
|
export * from './flow-profile';
|
|
@@ -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];
|
|
@@ -78,21 +78,5 @@ export const InvoiceTypeCode = {
|
|
|
78
78
|
/**
|
|
79
79
|
* Prepayment Credit Note
|
|
80
80
|
*/
|
|
81
|
-
PREPAYMENT_CREDIT_NOTE: '503'
|
|
82
|
-
_3802: '380',
|
|
83
|
-
_3892: '389',
|
|
84
|
-
_3932: '393',
|
|
85
|
-
_5012: '501',
|
|
86
|
-
_3862: '386',
|
|
87
|
-
_5002: '500',
|
|
88
|
-
_3842: '384',
|
|
89
|
-
_4712: '471',
|
|
90
|
-
_4722: '472',
|
|
91
|
-
_4732: '473',
|
|
92
|
-
_3812: '381',
|
|
93
|
-
_2612: '261',
|
|
94
|
-
_2622: '262',
|
|
95
|
-
_3962: '396',
|
|
96
|
-
_5022: '502',
|
|
97
|
-
_5032: '503'
|
|
81
|
+
PREPAYMENT_CREDIT_NOTE: '503'
|
|
98
82
|
};
|
|
@@ -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];
|
|
@@ -18,9 +18,5 @@ export const InvoicingFrameworkCode = {
|
|
|
18
18
|
A1FactureFournisseur: 'A1_FACTURE_FOURNISSEUR',
|
|
19
19
|
A2FactureFournisseurDejaPayee: 'A2_FACTURE_FOURNISSEUR_DEJA_PAYEE',
|
|
20
20
|
A9FactureSoustraitant: 'A9_FACTURE_SOUSTRAITANT',
|
|
21
|
-
A12FactureCotraitant: 'A12_FACTURE_COTRAITANT'
|
|
22
|
-
A1FactureFournisseur2: 'A1_FACTURE_FOURNISSEUR',
|
|
23
|
-
A2FactureFournisseurDejaPayee2: 'A2_FACTURE_FOURNISSEUR_DEJA_PAYEE',
|
|
24
|
-
A9FactureSoustraitant2: 'A9_FACTURE_SOUSTRAITANT',
|
|
25
|
-
A12FactureCotraitant2: 'A12_FACTURE_COTRAITANT'
|
|
21
|
+
A12FactureCotraitant: 'A12_FACTURE_COTRAITANT'
|
|
26
22
|
};
|
|
@@ -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];
|
|
@@ -20,11 +20,5 @@ export const PaymentMeans = {
|
|
|
20
20
|
Virement: 'VIREMENT',
|
|
21
21
|
Espece: 'ESPECE',
|
|
22
22
|
Autre: 'AUTRE',
|
|
23
|
-
Report: 'REPORT'
|
|
24
|
-
Cheque2: 'CHEQUE',
|
|
25
|
-
Prelevement2: 'PRELEVEMENT',
|
|
26
|
-
Virement2: 'VIREMENT',
|
|
27
|
-
Espece2: 'ESPECE',
|
|
28
|
-
Autre2: 'AUTRE',
|
|
29
|
-
Report2: 'REPORT'
|
|
23
|
+
Report: 'REPORT'
|
|
30
24
|
};
|
|
@@ -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];
|
|
@@ -17,8 +17,5 @@
|
|
|
17
17
|
export const SubmissionMode = {
|
|
18
18
|
SaisieApi: 'SAISIE_API',
|
|
19
19
|
DepotPdfApi: 'DEPOT_PDF_API',
|
|
20
|
-
DepotPdfSigneApi: 'DEPOT_PDF_SIGNE_API'
|
|
21
|
-
SaisieApi2: 'SAISIE_API',
|
|
22
|
-
DepotPdfApi2: 'DEPOT_PDF_API',
|
|
23
|
-
DepotPdfSigneApi2: 'DEPOT_PDF_SIGNE_API'
|
|
20
|
+
DepotPdfSigneApi: 'DEPOT_PDF_SIGNE_API'
|
|
24
21
|
};
|
|
@@ -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];
|
|
@@ -20,11 +20,5 @@ export const UnitOfMeasure = {
|
|
|
20
20
|
Jour: 'JOUR',
|
|
21
21
|
Kilogramme: 'KILOGRAMME',
|
|
22
22
|
Litre: 'LITRE',
|
|
23
|
-
Forfait: 'FORFAIT'
|
|
24
|
-
Piece2: 'PIECE',
|
|
25
|
-
Heure2: 'HEURE',
|
|
26
|
-
Jour2: 'JOUR',
|
|
27
|
-
Kilogramme2: 'KILOGRAMME',
|
|
28
|
-
Litre2: 'LITRE',
|
|
29
|
-
Forfait2: 'FORFAIT'
|
|
23
|
+
Forfait: 'FORFAIT'
|
|
30
24
|
};
|
|
@@ -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];
|
|
@@ -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
|
};
|
|
@@ -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
|
@@ -19,10 +19,10 @@ export * from './electronic-address';
|
|
|
19
19
|
export * from './enriched-invoice-info';
|
|
20
20
|
export * from './error-level';
|
|
21
21
|
export * from './error-source';
|
|
22
|
+
export * from './factur-xinvoice';
|
|
22
23
|
export * from './factur-xpdfinfo';
|
|
23
24
|
export * from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
|
|
24
25
|
export * from './facture-electronique-rest-api-schemas-processing-chorus-pro-credentials';
|
|
25
|
-
export * from './facture-factur-x';
|
|
26
26
|
export * from './field-status';
|
|
27
27
|
export * from './flow-direction';
|
|
28
28
|
export * from './flow-profile';
|
package/dist/models/index.js
CHANGED
|
@@ -35,10 +35,10 @@ __exportStar(require("./electronic-address"), exports);
|
|
|
35
35
|
__exportStar(require("./enriched-invoice-info"), exports);
|
|
36
36
|
__exportStar(require("./error-level"), exports);
|
|
37
37
|
__exportStar(require("./error-source"), exports);
|
|
38
|
+
__exportStar(require("./factur-xinvoice"), exports);
|
|
38
39
|
__exportStar(require("./factur-xpdfinfo"), exports);
|
|
39
40
|
__exportStar(require("./facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials"), exports);
|
|
40
41
|
__exportStar(require("./facture-electronique-rest-api-schemas-processing-chorus-pro-credentials"), exports);
|
|
41
|
-
__exportStar(require("./facture-factur-x"), exports);
|
|
42
42
|
__exportStar(require("./field-status"), exports);
|
|
43
43
|
__exportStar(require("./flow-direction"), exports);
|
|
44
44
|
__exportStar(require("./flow-profile"), 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
|
+
# 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,
|
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)
|
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)
|
|
@@ -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
|
@@ -19,10 +19,10 @@ export * from './electronic-address';
|
|
|
19
19
|
export * from './enriched-invoice-info';
|
|
20
20
|
export * from './error-level';
|
|
21
21
|
export * from './error-source';
|
|
22
|
+
export * from './factur-xinvoice';
|
|
22
23
|
export * from './factur-xpdfinfo';
|
|
23
24
|
export * from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
|
|
24
25
|
export * from './facture-electronique-rest-api-schemas-processing-chorus-pro-credentials';
|
|
25
|
-
export * from './facture-factur-x';
|
|
26
26
|
export * from './field-status';
|
|
27
27
|
export * from './flow-direction';
|
|
28
28
|
export * from './flow-profile';
|
|
@@ -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
|