@factpulse/sdk 3.0.25 → 3.0.26
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/README.md +19 -38
- package/dist/esm/models/chorus-pro-credentials.d.ts +19 -7
- package/dist/esm/models/chorus-pro-destination.d.ts +2 -2
- package/dist/esm/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.d.ts → facture-electronique-models-invoice-type-code.d.ts} +63 -18
- package/dist/esm/models/{facture-electronique-rest-api-schemas-ereporting-invoice-type-code.js → facture-electronique-models-invoice-type-code.js} +66 -7
- package/dist/{models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.d.ts → esm/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.d.ts} +11 -9
- package/dist/esm/models/get-chorus-pro-id-request.d.ts +2 -2
- package/dist/esm/models/get-invoice-request.d.ts +2 -2
- package/dist/esm/models/get-structure-request.d.ts +2 -2
- package/dist/esm/models/index.d.ts +2 -2
- package/dist/esm/models/index.js +2 -2
- package/dist/esm/models/invoice-input.d.ts +2 -2
- package/dist/esm/models/invoice-type-code.d.ts +6 -65
- package/dist/esm/models/invoice-type-code.js +6 -65
- package/dist/esm/models/search-structure-request.d.ts +2 -2
- package/dist/esm/models/simplified-invoice-data.d.ts +2 -2
- package/dist/esm/models/submit-invoice-request.d.ts +2 -2
- package/dist/esm/src/helpers/client.js +1 -1
- package/dist/models/chorus-pro-credentials.d.ts +19 -7
- package/dist/models/chorus-pro-destination.d.ts +2 -2
- package/dist/{esm/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.d.ts → models/facture-electronique-models-invoice-type-code.d.ts} +67 -8
- package/dist/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.d.ts → facture-electronique-models-invoice-type-code.js} +67 -18
- package/dist/models/{facture-electronique-rest-api-schemas-ereporting-invoice-type-code.js → facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.d.ts} +11 -13
- package/dist/models/get-chorus-pro-id-request.d.ts +2 -2
- package/dist/models/get-invoice-request.d.ts +2 -2
- package/dist/models/get-structure-request.d.ts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +2 -2
- package/dist/models/invoice-input.d.ts +2 -2
- package/dist/models/invoice-type-code.d.ts +6 -65
- package/dist/models/invoice-type-code.js +6 -65
- package/dist/models/search-structure-request.d.ts +2 -2
- package/dist/models/simplified-invoice-data.d.ts +2 -2
- package/dist/models/submit-invoice-request.d.ts +2 -2
- package/dist/src/helpers/client.js +1 -1
- package/docs/ChorusProCredentials.md +9 -9
- package/docs/ChorusProDestination.md +1 -1
- package/docs/FactureElectroniqueModelsInvoiceTypeCode.md +39 -0
- package/docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md +29 -0
- package/docs/GetChorusProIdRequest.md +1 -1
- package/docs/GetInvoiceRequest.md +1 -1
- package/docs/GetStructureRequest.md +1 -1
- package/docs/InvoiceInput.md +1 -1
- package/docs/InvoiceTypeCode.md +6 -28
- package/docs/SearchStructureRequest.md +1 -1
- package/docs/SimplifiedInvoiceData.md +1 -1
- package/docs/SubmitInvoiceRequest.md +1 -1
- package/models/chorus-pro-credentials.ts +19 -7
- package/models/chorus-pro-destination.ts +2 -2
- package/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.ts → facture-electronique-models-invoice-type-code.ts} +67 -18
- package/models/{facture-electronique-rest-api-schemas-ereporting-invoice-type-code.ts → facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.ts} +11 -13
- package/models/get-chorus-pro-id-request.ts +2 -2
- package/models/get-invoice-request.ts +2 -2
- package/models/get-structure-request.ts +2 -2
- package/models/index.ts +2 -2
- package/models/invoice-input.ts +2 -2
- package/models/invoice-type-code.ts +6 -65
- package/models/search-structure-request.ts +2 -2
- package/models/simplified-invoice-data.ts +2 -2
- package/models/submit-invoice-request.ts +2 -2
- package/package.json +1 -1
- package/src/helpers/client.ts +1 -1
- package/docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md +0 -29
- package/docs/FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.md +0 -17
- /package/dist/esm/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.js → facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.js} +0 -0
- /package/dist/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.js → facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -164,8 +164,8 @@ docs/ErrorSource.md
|
|
|
164
164
|
docs/ExtractionInfo.md
|
|
165
165
|
docs/FacturXInvoice.md
|
|
166
166
|
docs/FacturXPDFInfo.md
|
|
167
|
-
docs/
|
|
168
|
-
docs/
|
|
167
|
+
docs/FactureElectroniqueModelsInvoiceTypeCode.md
|
|
168
|
+
docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md
|
|
169
169
|
docs/FieldStatus.md
|
|
170
170
|
docs/FileInfo.md
|
|
171
171
|
docs/FilesInfo.md
|
|
@@ -444,8 +444,8 @@ models/error-source.ts
|
|
|
444
444
|
models/extraction-info.ts
|
|
445
445
|
models/factur-xinvoice.ts
|
|
446
446
|
models/factur-xpdfinfo.ts
|
|
447
|
-
models/facture-electronique-
|
|
448
|
-
models/facture-electronique-rest-api-schemas-
|
|
447
|
+
models/facture-electronique-models-invoice-type-code.ts
|
|
448
|
+
models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.ts
|
|
449
449
|
models/field-status.ts
|
|
450
450
|
models/file-info.ts
|
|
451
451
|
models/files-info.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.26] - 2026-01-15
|
|
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.26...HEAD
|
|
28
|
+
[3.0.26]: https://github.com/factpulse/sdk-typescript/releases/tag/v3.0.26
|
package/README.md
CHANGED
|
@@ -23,15 +23,7 @@ yarn add @factpulse/sdk
|
|
|
23
23
|
The `helpers` module provides a simplified API with automatic authentication and polling:
|
|
24
24
|
|
|
25
25
|
```typescript
|
|
26
|
-
import {
|
|
27
|
-
FactPulseClient,
|
|
28
|
-
amount,
|
|
29
|
-
invoiceTotals,
|
|
30
|
-
invoiceLine,
|
|
31
|
-
vatLine,
|
|
32
|
-
supplier,
|
|
33
|
-
recipient,
|
|
34
|
-
} from '@factpulse/sdk/helpers';
|
|
26
|
+
import { FactPulseClient } from '@factpulse/sdk/helpers';
|
|
35
27
|
import * as fs from 'fs';
|
|
36
28
|
|
|
37
29
|
// Create the client
|
|
@@ -40,41 +32,30 @@ const client = new FactPulseClient({
|
|
|
40
32
|
password: 'your_password'
|
|
41
33
|
});
|
|
42
34
|
|
|
43
|
-
// Build the invoice
|
|
35
|
+
// Build the invoice using simplified format (auto-calculates totals)
|
|
44
36
|
const invoiceData = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
|
|
55
|
-
),
|
|
56
|
-
recipient: recipient(
|
|
57
|
-
'Client SARL',
|
|
58
|
-
'98765432109876',
|
|
59
|
-
'456 Test Avenue',
|
|
60
|
-
'69001',
|
|
61
|
-
'Lyon'
|
|
62
|
-
),
|
|
63
|
-
totals: invoiceTotals(1000.00, 200.00, 1200.00, 1200.00),
|
|
37
|
+
number: 'INV-2025-001',
|
|
38
|
+
supplier: {
|
|
39
|
+
name: 'My Company SAS',
|
|
40
|
+
siret: '12345678901234',
|
|
41
|
+
iban: 'FR7630001007941234567890185',
|
|
42
|
+
},
|
|
43
|
+
recipient: {
|
|
44
|
+
name: 'Client SARL',
|
|
45
|
+
siret: '98765432109876',
|
|
46
|
+
},
|
|
64
47
|
lines: [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
48
|
+
{
|
|
49
|
+
description: 'Consulting services',
|
|
50
|
+
quantity: 10,
|
|
51
|
+
unitPrice: 100.0,
|
|
52
|
+
vatRate: 20,
|
|
53
|
+
}
|
|
69
54
|
],
|
|
70
55
|
};
|
|
71
56
|
|
|
72
57
|
// Generate the Factur-X PDF
|
|
73
|
-
const pdfBytes = await client.generateFacturx(
|
|
74
|
-
invoiceData,
|
|
75
|
-
'source_invoice.pdf',
|
|
76
|
-
'EN16931'
|
|
77
|
-
);
|
|
58
|
+
const pdfBytes = await client.generateFacturx(invoiceData, 'source_invoice.pdf');
|
|
78
59
|
|
|
79
60
|
fs.writeFileSync('facturx_invoice.pdf', pdfBytes);
|
|
80
61
|
```
|
|
@@ -10,15 +10,27 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Chorus Pro credentials for Zero-Trust mode. **Zero-Trust Mode**: Credentials are passed in each request and are NEVER stored. **Security**: - Credentials are never persisted in the database - They are used only for the duration of the request - Secure transmission via HTTPS **Use cases**: - High-security environments (banks, administrations) - Strict GDPR compliance - Tests with temporary credentials - Users who don\'t want to store their credentials
|
|
14
14
|
*/
|
|
15
15
|
export interface ChorusProCredentials {
|
|
16
|
-
'pisteClientId'?: string | null;
|
|
17
|
-
'pisteClientSecret'?: string | null;
|
|
18
|
-
'chorusLogin'?: string | null;
|
|
19
|
-
'chorusPassword'?: string | null;
|
|
20
16
|
/**
|
|
21
|
-
*
|
|
17
|
+
* PISTE Client ID (government API portal)
|
|
22
18
|
*/
|
|
23
|
-
'
|
|
19
|
+
'pisteClientId': string;
|
|
20
|
+
/**
|
|
21
|
+
* PISTE Client Secret
|
|
22
|
+
*/
|
|
23
|
+
'pisteClientSecret': string;
|
|
24
|
+
/**
|
|
25
|
+
* Chorus Pro login
|
|
26
|
+
*/
|
|
27
|
+
'chorusProLogin': string;
|
|
28
|
+
/**
|
|
29
|
+
* Chorus Pro password
|
|
30
|
+
*/
|
|
31
|
+
'chorusProPassword': string;
|
|
32
|
+
/**
|
|
33
|
+
* Use sandbox environment (true) or production (false)
|
|
34
|
+
*/
|
|
35
|
+
'sandbox'?: boolean;
|
|
24
36
|
}
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { FactureElectroniqueRestApiSchemasProcessingChorusProCredentials } from './facture-electronique-rest-api-schemas-processing-chorus-pro-credentials';
|
|
13
13
|
/**
|
|
14
14
|
* Specific configuration for Chorus Pro destination.
|
|
15
15
|
*/
|
|
16
16
|
export interface ChorusProDestination {
|
|
17
17
|
'type'?: ChorusProDestinationTypeEnum;
|
|
18
|
-
'credentials'?:
|
|
18
|
+
'credentials'?: FactureElectroniqueRestApiSchemasProcessingChorusProCredentials | null;
|
|
19
19
|
}
|
|
20
20
|
export declare const ChorusProDestinationTypeEnum: {
|
|
21
21
|
readonly ChorusPro: "chorus_pro";
|
|
@@ -10,27 +10,72 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Document type according to BR-FR-04 (UNTDID 1001 codes). | Code | Name | Description | |------|------|-------------| | 380 | INVOICE | Commercial invoice | | 389 | SELF_BILLED_INVOICE | Self-billed invoice | | 393 | FACTORED_INVOICE | Factored invoice | | 501 | SELF_BILLED_FACTORED_INVOICE | Self-billed factored invoice | | 386 | PREPAYMENT_INVOICE | Prepayment invoice | | 500 | SELF_BILLED_PREPAYMENT_INVOICE | Self-billed prepayment invoice | | 384 | CORRECTIVE_INVOICE | Corrective invoice | | 471 | SELF_BILLED_CORRECTIVE_INVOICE | Self-billed corrective invoice | | 472 | FACTORED_CORRECTIVE_INVOICE | Factored corrective invoice | | 473 | SELF_BILLED_FACTORED_CORRECTIVE_INVOICE | Self-billed factored corrective invoice | | 381 | CREDIT_NOTE | Credit note | | 261 | SELF_BILLED_CREDIT_NOTE | Self-billed credit note | | 262 | GLOBAL_ALLOWANCE_CREDIT_NOTE | Credit note for global allowance | | 396 | FACTORED_CREDIT_NOTE | Factored credit note | | 502 | SELF_BILLED_FACTORED_CREDIT_NOTE | Self-billed factored credit note | | 503 | PREPAYMENT_CREDIT_NOTE | Credit note for prepayment invoice |
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export declare const FactureElectroniqueModelsInvoiceTypeCode: {
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
* Commercial Invoice
|
|
18
|
+
*/
|
|
19
|
+
readonly INVOICE: "380";
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
* Self-billed Invoice
|
|
22
|
+
*/
|
|
23
|
+
readonly SELF_BILLED_INVOICE: "389";
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
* Factored Invoice
|
|
26
|
+
*/
|
|
27
|
+
readonly FACTORED_INVOICE: "393";
|
|
28
28
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
* Self-billed Factored Invoice
|
|
30
|
+
*/
|
|
31
|
+
readonly SELF_BILLED_FACTORED_INVOICE: "501";
|
|
32
32
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
* Prepayment Invoice
|
|
34
|
+
*/
|
|
35
|
+
readonly PREPAYMENT_INVOICE: "386";
|
|
36
|
+
/**
|
|
37
|
+
* Self-billed Prepayment Invoice
|
|
38
|
+
*/
|
|
39
|
+
readonly SELF_BILLED_PREPAYMENT_INVOICE: "500";
|
|
40
|
+
/**
|
|
41
|
+
* Corrective Invoice
|
|
42
|
+
*/
|
|
43
|
+
readonly CORRECTIVE_INVOICE: "384";
|
|
44
|
+
/**
|
|
45
|
+
* Self-billed Corrective Invoice
|
|
46
|
+
*/
|
|
47
|
+
readonly SELF_BILLED_CORRECTIVE_INVOICE: "471";
|
|
48
|
+
/**
|
|
49
|
+
* Factored Corrective Invoice
|
|
50
|
+
*/
|
|
51
|
+
readonly FACTORED_CORRECTIVE_INVOICE: "472";
|
|
52
|
+
/**
|
|
53
|
+
* Self-billed Factored Corrective Invoice
|
|
54
|
+
*/
|
|
55
|
+
readonly SELF_BILLED_FACTORED_CORRECTIVE_INVOICE: "473";
|
|
56
|
+
/**
|
|
57
|
+
* Credit Note
|
|
58
|
+
*/
|
|
59
|
+
readonly CREDIT_NOTE: "381";
|
|
60
|
+
/**
|
|
61
|
+
* Self-billed Credit Note
|
|
62
|
+
*/
|
|
63
|
+
readonly SELF_BILLED_CREDIT_NOTE: "261";
|
|
64
|
+
/**
|
|
65
|
+
* Global Allowance Credit Note
|
|
66
|
+
*/
|
|
67
|
+
readonly GLOBAL_ALLOWANCE_CREDIT_NOTE: "262";
|
|
68
|
+
/**
|
|
69
|
+
* Factored Credit Note
|
|
70
|
+
*/
|
|
71
|
+
readonly FACTORED_CREDIT_NOTE: "396";
|
|
72
|
+
/**
|
|
73
|
+
* Self-billed Factored Credit Note
|
|
74
|
+
*/
|
|
75
|
+
readonly SELF_BILLED_FACTORED_CREDIT_NOTE: "502";
|
|
76
|
+
/**
|
|
77
|
+
* Prepayment Credit Note
|
|
78
|
+
*/
|
|
79
|
+
readonly PREPAYMENT_CREDIT_NOTE: "503";
|
|
80
|
+
};
|
|
81
|
+
export type FactureElectroniqueModelsInvoiceTypeCode = typeof FactureElectroniqueModelsInvoiceTypeCode[keyof typeof FactureElectroniqueModelsInvoiceTypeCode];
|
|
@@ -12,12 +12,71 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Document type according to BR-FR-04 (UNTDID 1001 codes). | Code | Name | Description | |------|------|-------------| | 380 | INVOICE | Commercial invoice | | 389 | SELF_BILLED_INVOICE | Self-billed invoice | | 393 | FACTORED_INVOICE | Factored invoice | | 501 | SELF_BILLED_FACTORED_INVOICE | Self-billed factored invoice | | 386 | PREPAYMENT_INVOICE | Prepayment invoice | | 500 | SELF_BILLED_PREPAYMENT_INVOICE | Self-billed prepayment invoice | | 384 | CORRECTIVE_INVOICE | Corrective invoice | | 471 | SELF_BILLED_CORRECTIVE_INVOICE | Self-billed corrective invoice | | 472 | FACTORED_CORRECTIVE_INVOICE | Factored corrective invoice | | 473 | SELF_BILLED_FACTORED_CORRECTIVE_INVOICE | Self-billed factored corrective invoice | | 381 | CREDIT_NOTE | Credit note | | 261 | SELF_BILLED_CREDIT_NOTE | Self-billed credit note | | 262 | GLOBAL_ALLOWANCE_CREDIT_NOTE | Credit note for global allowance | | 396 | FACTORED_CREDIT_NOTE | Factored credit note | | 502 | SELF_BILLED_FACTORED_CREDIT_NOTE | Self-billed factored credit note | | 503 | PREPAYMENT_CREDIT_NOTE | Credit note for prepayment invoice |
|
|
16
16
|
*/
|
|
17
|
-
export const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
export const FactureElectroniqueModelsInvoiceTypeCode = {
|
|
18
|
+
/**
|
|
19
|
+
* Commercial Invoice
|
|
20
|
+
*/
|
|
21
|
+
INVOICE: '380',
|
|
22
|
+
/**
|
|
23
|
+
* Self-billed Invoice
|
|
24
|
+
*/
|
|
25
|
+
SELF_BILLED_INVOICE: '389',
|
|
26
|
+
/**
|
|
27
|
+
* Factored Invoice
|
|
28
|
+
*/
|
|
29
|
+
FACTORED_INVOICE: '393',
|
|
30
|
+
/**
|
|
31
|
+
* Self-billed Factored Invoice
|
|
32
|
+
*/
|
|
33
|
+
SELF_BILLED_FACTORED_INVOICE: '501',
|
|
34
|
+
/**
|
|
35
|
+
* Prepayment Invoice
|
|
36
|
+
*/
|
|
37
|
+
PREPAYMENT_INVOICE: '386',
|
|
38
|
+
/**
|
|
39
|
+
* Self-billed Prepayment Invoice
|
|
40
|
+
*/
|
|
41
|
+
SELF_BILLED_PREPAYMENT_INVOICE: '500',
|
|
42
|
+
/**
|
|
43
|
+
* Corrective Invoice
|
|
44
|
+
*/
|
|
45
|
+
CORRECTIVE_INVOICE: '384',
|
|
46
|
+
/**
|
|
47
|
+
* Self-billed Corrective Invoice
|
|
48
|
+
*/
|
|
49
|
+
SELF_BILLED_CORRECTIVE_INVOICE: '471',
|
|
50
|
+
/**
|
|
51
|
+
* Factored Corrective Invoice
|
|
52
|
+
*/
|
|
53
|
+
FACTORED_CORRECTIVE_INVOICE: '472',
|
|
54
|
+
/**
|
|
55
|
+
* Self-billed Factored Corrective Invoice
|
|
56
|
+
*/
|
|
57
|
+
SELF_BILLED_FACTORED_CORRECTIVE_INVOICE: '473',
|
|
58
|
+
/**
|
|
59
|
+
* Credit Note
|
|
60
|
+
*/
|
|
61
|
+
CREDIT_NOTE: '381',
|
|
62
|
+
/**
|
|
63
|
+
* Self-billed Credit Note
|
|
64
|
+
*/
|
|
65
|
+
SELF_BILLED_CREDIT_NOTE: '261',
|
|
66
|
+
/**
|
|
67
|
+
* Global Allowance Credit Note
|
|
68
|
+
*/
|
|
69
|
+
GLOBAL_ALLOWANCE_CREDIT_NOTE: '262',
|
|
70
|
+
/**
|
|
71
|
+
* Factored Credit Note
|
|
72
|
+
*/
|
|
73
|
+
FACTORED_CREDIT_NOTE: '396',
|
|
74
|
+
/**
|
|
75
|
+
* Self-billed Factored Credit Note
|
|
76
|
+
*/
|
|
77
|
+
SELF_BILLED_FACTORED_CREDIT_NOTE: '502',
|
|
78
|
+
/**
|
|
79
|
+
* Prepayment Credit Note
|
|
80
|
+
*/
|
|
81
|
+
PREPAYMENT_CREDIT_NOTE: '503'
|
|
23
82
|
};
|
|
@@ -10,13 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Optional Chorus Pro credentials. **MODE 1 - JWT retrieval (recommended):** Do not provide this `credentials` field in the payload. Credentials will be automatically retrieved via client_uid from JWT (0-trust). **MODE 2 - Credentials in payload:** Provide all required fields below. Useful for tests or third-party integrations.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
export interface FactureElectroniqueRestApiSchemasProcessingChorusProCredentials {
|
|
16
|
+
'pisteClientId'?: string | null;
|
|
17
|
+
'pisteClientSecret'?: string | null;
|
|
18
|
+
'chorusLogin'?: string | null;
|
|
19
|
+
'chorusPassword'?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* [MODE 2] Use sandbox mode (default: True)
|
|
22
|
+
*/
|
|
23
|
+
'sandboxMode'?: boolean;
|
|
24
|
+
}
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { ChorusProCredentials } from './chorus-pro-credentials';
|
|
13
13
|
/**
|
|
14
14
|
* Get Chorus Pro ID from SIRET.
|
|
15
15
|
*/
|
|
16
16
|
export interface GetChorusProIdRequest {
|
|
17
|
-
'credentials'?:
|
|
17
|
+
'credentials'?: ChorusProCredentials | null;
|
|
18
18
|
/**
|
|
19
19
|
* Structure SIRET (14 digits)
|
|
20
20
|
*/
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { ChorusProCredentials } from './chorus-pro-credentials';
|
|
13
13
|
/**
|
|
14
14
|
* Get an invoice.
|
|
15
15
|
*/
|
|
16
16
|
export interface GetInvoiceRequest {
|
|
17
|
-
'credentials'?:
|
|
17
|
+
'credentials'?: ChorusProCredentials | null;
|
|
18
18
|
/**
|
|
19
19
|
* Chorus Pro invoice ID
|
|
20
20
|
*/
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { ChorusProCredentials } from './chorus-pro-credentials';
|
|
13
13
|
/**
|
|
14
14
|
* Get structure details.
|
|
15
15
|
*/
|
|
16
16
|
export interface GetStructureRequest {
|
|
17
|
-
'credentials'?:
|
|
17
|
+
'credentials'?: ChorusProCredentials | null;
|
|
18
18
|
/**
|
|
19
19
|
* Chorus Pro structure ID
|
|
20
20
|
*/
|
|
@@ -138,8 +138,8 @@ export * from './error-source';
|
|
|
138
138
|
export * from './extraction-info';
|
|
139
139
|
export * from './factur-xinvoice';
|
|
140
140
|
export * from './factur-xpdfinfo';
|
|
141
|
-
export * from './facture-electronique-
|
|
142
|
-
export * from './facture-electronique-rest-api-schemas-
|
|
141
|
+
export * from './facture-electronique-models-invoice-type-code';
|
|
142
|
+
export * from './facture-electronique-rest-api-schemas-processing-chorus-pro-credentials';
|
|
143
143
|
export * from './field-status';
|
|
144
144
|
export * from './file-info';
|
|
145
145
|
export * from './files-info';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -138,8 +138,8 @@ export * from './error-source';
|
|
|
138
138
|
export * from './extraction-info';
|
|
139
139
|
export * from './factur-xinvoice';
|
|
140
140
|
export * from './factur-xpdfinfo';
|
|
141
|
-
export * from './facture-electronique-
|
|
142
|
-
export * from './facture-electronique-rest-api-schemas-
|
|
141
|
+
export * from './facture-electronique-models-invoice-type-code';
|
|
142
|
+
export * from './facture-electronique-rest-api-schemas-processing-chorus-pro-credentials';
|
|
143
143
|
export * from './field-status';
|
|
144
144
|
export * from './file-info';
|
|
145
145
|
export * from './files-info';
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Buyercountry } from './buyercountry';
|
|
13
13
|
import type { Currency } from './currency';
|
|
14
|
-
import type {
|
|
14
|
+
import type { InvoiceTypeCode } from './invoice-type-code';
|
|
15
15
|
import type { Sellercountry } from './sellercountry';
|
|
16
16
|
import type { TaxBreakdownInput } from './tax-breakdown-input';
|
|
17
17
|
import type { Taxamount1 } from './taxamount1';
|
|
@@ -31,7 +31,7 @@ export interface InvoiceInput {
|
|
|
31
31
|
/**
|
|
32
32
|
* Invoice type code
|
|
33
33
|
*/
|
|
34
|
-
'typeCode'?:
|
|
34
|
+
'typeCode'?: InvoiceTypeCode;
|
|
35
35
|
'currency'?: Currency;
|
|
36
36
|
'dueDate'?: string | null;
|
|
37
37
|
/**
|
|
@@ -10,72 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Invoice type codes (UNTDID 1001).
|
|
14
14
|
*/
|
|
15
15
|
export declare const InvoiceTypeCode: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
readonly
|
|
20
|
-
|
|
21
|
-
* Self-billed Invoice
|
|
22
|
-
*/
|
|
23
|
-
readonly SELF_BILLED_INVOICE: "389";
|
|
24
|
-
/**
|
|
25
|
-
* Factored Invoice
|
|
26
|
-
*/
|
|
27
|
-
readonly FACTORED_INVOICE: "393";
|
|
28
|
-
/**
|
|
29
|
-
* Self-billed Factored Invoice
|
|
30
|
-
*/
|
|
31
|
-
readonly SELF_BILLED_FACTORED_INVOICE: "501";
|
|
32
|
-
/**
|
|
33
|
-
* Prepayment Invoice
|
|
34
|
-
*/
|
|
35
|
-
readonly PREPAYMENT_INVOICE: "386";
|
|
36
|
-
/**
|
|
37
|
-
* Self-billed Prepayment Invoice
|
|
38
|
-
*/
|
|
39
|
-
readonly SELF_BILLED_PREPAYMENT_INVOICE: "500";
|
|
40
|
-
/**
|
|
41
|
-
* Corrective Invoice
|
|
42
|
-
*/
|
|
43
|
-
readonly CORRECTIVE_INVOICE: "384";
|
|
44
|
-
/**
|
|
45
|
-
* Self-billed Corrective Invoice
|
|
46
|
-
*/
|
|
47
|
-
readonly SELF_BILLED_CORRECTIVE_INVOICE: "471";
|
|
48
|
-
/**
|
|
49
|
-
* Factored Corrective Invoice
|
|
50
|
-
*/
|
|
51
|
-
readonly FACTORED_CORRECTIVE_INVOICE: "472";
|
|
52
|
-
/**
|
|
53
|
-
* Self-billed Factored Corrective Invoice
|
|
54
|
-
*/
|
|
55
|
-
readonly SELF_BILLED_FACTORED_CORRECTIVE_INVOICE: "473";
|
|
56
|
-
/**
|
|
57
|
-
* Credit Note
|
|
58
|
-
*/
|
|
59
|
-
readonly CREDIT_NOTE: "381";
|
|
60
|
-
/**
|
|
61
|
-
* Self-billed Credit Note
|
|
62
|
-
*/
|
|
63
|
-
readonly SELF_BILLED_CREDIT_NOTE: "261";
|
|
64
|
-
/**
|
|
65
|
-
* Global Allowance Credit Note
|
|
66
|
-
*/
|
|
67
|
-
readonly GLOBAL_ALLOWANCE_CREDIT_NOTE: "262";
|
|
68
|
-
/**
|
|
69
|
-
* Factored Credit Note
|
|
70
|
-
*/
|
|
71
|
-
readonly FACTORED_CREDIT_NOTE: "396";
|
|
72
|
-
/**
|
|
73
|
-
* Self-billed Factored Credit Note
|
|
74
|
-
*/
|
|
75
|
-
readonly SELF_BILLED_FACTORED_CREDIT_NOTE: "502";
|
|
76
|
-
/**
|
|
77
|
-
* Prepayment Credit Note
|
|
78
|
-
*/
|
|
79
|
-
readonly PREPAYMENT_CREDIT_NOTE: "503";
|
|
16
|
+
readonly _380: "380";
|
|
17
|
+
readonly _381: "381";
|
|
18
|
+
readonly _384: "384";
|
|
19
|
+
readonly _389: "389";
|
|
20
|
+
readonly _386: "386";
|
|
80
21
|
};
|
|
81
22
|
export type InvoiceTypeCode = typeof InvoiceTypeCode[keyof typeof InvoiceTypeCode];
|
|
@@ -12,71 +12,12 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Invoice type codes (UNTDID 1001).
|
|
16
16
|
*/
|
|
17
17
|
export const InvoiceTypeCode = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* Self-billed Invoice
|
|
24
|
-
*/
|
|
25
|
-
SELF_BILLED_INVOICE: '389',
|
|
26
|
-
/**
|
|
27
|
-
* Factored Invoice
|
|
28
|
-
*/
|
|
29
|
-
FACTORED_INVOICE: '393',
|
|
30
|
-
/**
|
|
31
|
-
* Self-billed Factored Invoice
|
|
32
|
-
*/
|
|
33
|
-
SELF_BILLED_FACTORED_INVOICE: '501',
|
|
34
|
-
/**
|
|
35
|
-
* Prepayment Invoice
|
|
36
|
-
*/
|
|
37
|
-
PREPAYMENT_INVOICE: '386',
|
|
38
|
-
/**
|
|
39
|
-
* Self-billed Prepayment Invoice
|
|
40
|
-
*/
|
|
41
|
-
SELF_BILLED_PREPAYMENT_INVOICE: '500',
|
|
42
|
-
/**
|
|
43
|
-
* Corrective Invoice
|
|
44
|
-
*/
|
|
45
|
-
CORRECTIVE_INVOICE: '384',
|
|
46
|
-
/**
|
|
47
|
-
* Self-billed Corrective Invoice
|
|
48
|
-
*/
|
|
49
|
-
SELF_BILLED_CORRECTIVE_INVOICE: '471',
|
|
50
|
-
/**
|
|
51
|
-
* Factored Corrective Invoice
|
|
52
|
-
*/
|
|
53
|
-
FACTORED_CORRECTIVE_INVOICE: '472',
|
|
54
|
-
/**
|
|
55
|
-
* Self-billed Factored Corrective Invoice
|
|
56
|
-
*/
|
|
57
|
-
SELF_BILLED_FACTORED_CORRECTIVE_INVOICE: '473',
|
|
58
|
-
/**
|
|
59
|
-
* Credit Note
|
|
60
|
-
*/
|
|
61
|
-
CREDIT_NOTE: '381',
|
|
62
|
-
/**
|
|
63
|
-
* Self-billed Credit Note
|
|
64
|
-
*/
|
|
65
|
-
SELF_BILLED_CREDIT_NOTE: '261',
|
|
66
|
-
/**
|
|
67
|
-
* Global Allowance Credit Note
|
|
68
|
-
*/
|
|
69
|
-
GLOBAL_ALLOWANCE_CREDIT_NOTE: '262',
|
|
70
|
-
/**
|
|
71
|
-
* Factored Credit Note
|
|
72
|
-
*/
|
|
73
|
-
FACTORED_CREDIT_NOTE: '396',
|
|
74
|
-
/**
|
|
75
|
-
* Self-billed Factored Credit Note
|
|
76
|
-
*/
|
|
77
|
-
SELF_BILLED_FACTORED_CREDIT_NOTE: '502',
|
|
78
|
-
/**
|
|
79
|
-
* Prepayment Credit Note
|
|
80
|
-
*/
|
|
81
|
-
PREPAYMENT_CREDIT_NOTE: '503'
|
|
18
|
+
_380: '380',
|
|
19
|
+
_381: '381',
|
|
20
|
+
_384: '384',
|
|
21
|
+
_389: '389',
|
|
22
|
+
_386: '386'
|
|
82
23
|
};
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { ChorusProCredentials } from './chorus-pro-credentials';
|
|
13
13
|
/**
|
|
14
14
|
* Search structures by criteria.
|
|
15
15
|
*/
|
|
16
16
|
export interface SearchStructureRequest {
|
|
17
|
-
'credentials'?:
|
|
17
|
+
'credentials'?: ChorusProCredentials | null;
|
|
18
18
|
'structureIdentifier'?: string | null;
|
|
19
19
|
'structureIdentifierType'?: string | null;
|
|
20
20
|
'companyName'?: string | null;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { FactureElectroniqueModelsInvoiceTypeCode } from './facture-electronique-models-invoice-type-code';
|
|
13
13
|
import type { InvoicingFrameworkCode } from './invoicing-framework-code';
|
|
14
14
|
import type { OperationNature } from './operation-nature';
|
|
15
15
|
/**
|
|
@@ -49,7 +49,7 @@ export interface SimplifiedInvoiceData {
|
|
|
49
49
|
/**
|
|
50
50
|
* Document type (UNTDID 1001). Default: 380 (Invoice).
|
|
51
51
|
*/
|
|
52
|
-
'invoiceType'?:
|
|
52
|
+
'invoiceType'?: FactureElectroniqueModelsInvoiceTypeCode;
|
|
53
53
|
'precedingInvoiceReference'?: string | null;
|
|
54
54
|
'operationNature'?: OperationNature | null;
|
|
55
55
|
'invoicingFramework'?: InvoicingFrameworkCode | null;
|