@factpulse/sdk 3.0.37 → 4.0.0

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.
Files changed (110) hide show
  1. package/.openapi-generator/FILES +6 -6
  2. package/CHANGELOG.md +10 -13
  3. package/README.md +135 -148
  4. package/api/invoice-processing-api.ts +2 -2
  5. package/dist/esm/models/chorus-pro-credentials.d.ts +19 -7
  6. package/dist/esm/models/chorus-pro-destination.d.ts +2 -2
  7. 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
  8. package/dist/{models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.js → esm/models/facture-electronique-models-invoice-type-code.js} +66 -10
  9. package/dist/esm/models/{facture-electronique-rest-api-schemas-validation-validation-error-response.d.ts → facture-electronique-rest-api-schemas-cdar-validation-error-response.d.ts} +13 -4
  10. package/dist/esm/models/{facture-electronique-rest-api-schemas-ereporting-invoice-type-code.d.ts → facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.d.ts} +11 -9
  11. package/dist/esm/models/get-chorus-pro-id-request.d.ts +2 -2
  12. package/dist/esm/models/get-invoice-request.d.ts +2 -2
  13. package/dist/esm/models/get-structure-request.d.ts +2 -2
  14. package/dist/esm/models/index.d.ts +3 -3
  15. package/dist/esm/models/index.js +3 -3
  16. package/dist/esm/models/invoice-input.d.ts +2 -2
  17. package/dist/esm/models/invoice-type-code.d.ts +6 -65
  18. package/dist/esm/models/invoice-type-code.js +6 -65
  19. package/dist/esm/models/recipient.d.ts +1 -1
  20. package/dist/esm/models/scheme-id.d.ts +7 -7
  21. package/dist/esm/models/scheme-id.js +7 -7
  22. package/dist/esm/models/search-structure-request.d.ts +2 -2
  23. package/dist/esm/models/simplified-invoice-data.d.ts +2 -2
  24. package/dist/esm/models/submit-complete-invoice-response.d.ts +1 -1
  25. package/dist/esm/models/submit-invoice-request.d.ts +2 -2
  26. package/dist/esm/models/supplier.d.ts +1 -1
  27. package/dist/esm/models/validate-cdarresponse.d.ts +3 -3
  28. package/dist/esm/models/validation-error-response.d.ts +3 -12
  29. package/dist/esm/src/helpers/client.d.ts +43 -265
  30. package/dist/esm/src/helpers/client.js +196 -779
  31. package/dist/esm/src/helpers/index.d.ts +1 -2
  32. package/dist/esm/src/helpers/index.js +1 -3
  33. package/dist/models/chorus-pro-credentials.d.ts +19 -7
  34. package/dist/models/chorus-pro-destination.d.ts +2 -2
  35. package/dist/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.d.ts → facture-electronique-models-invoice-type-code.d.ts} +63 -18
  36. package/dist/models/facture-electronique-models-invoice-type-code.js +85 -0
  37. package/dist/models/{facture-electronique-rest-api-schemas-validation-validation-error-response.d.ts → facture-electronique-rest-api-schemas-cdar-validation-error-response.d.ts} +13 -4
  38. package/dist/{esm/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.js → models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.d.ts} +11 -10
  39. package/dist/models/get-chorus-pro-id-request.d.ts +2 -2
  40. package/dist/models/get-invoice-request.d.ts +2 -2
  41. package/dist/models/get-structure-request.d.ts +2 -2
  42. package/dist/models/index.d.ts +3 -3
  43. package/dist/models/index.js +3 -3
  44. package/dist/models/invoice-input.d.ts +2 -2
  45. package/dist/models/invoice-type-code.d.ts +6 -65
  46. package/dist/models/invoice-type-code.js +6 -65
  47. package/dist/models/recipient.d.ts +1 -1
  48. package/dist/models/scheme-id.d.ts +7 -7
  49. package/dist/models/scheme-id.js +7 -7
  50. package/dist/models/search-structure-request.d.ts +2 -2
  51. package/dist/models/simplified-invoice-data.d.ts +2 -2
  52. package/dist/models/submit-complete-invoice-response.d.ts +1 -1
  53. package/dist/models/submit-invoice-request.d.ts +2 -2
  54. package/dist/models/supplier.d.ts +1 -1
  55. package/dist/models/validate-cdarresponse.d.ts +3 -3
  56. package/dist/models/validation-error-response.d.ts +3 -12
  57. package/dist/src/helpers/client.d.ts +43 -265
  58. package/dist/src/helpers/client.js +199 -823
  59. package/dist/src/helpers/index.d.ts +1 -2
  60. package/dist/src/helpers/index.js +2 -12
  61. package/docs/ChorusProCredentials.md +9 -9
  62. package/docs/ChorusProDestination.md +1 -1
  63. package/docs/FactureElectroniqueModelsInvoiceTypeCode.md +39 -0
  64. package/docs/FactureElectroniqueRestApiSchemasCdarValidationErrorResponse.md +27 -0
  65. package/docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md +29 -0
  66. package/docs/GetChorusProIdRequest.md +1 -1
  67. package/docs/GetInvoiceRequest.md +1 -1
  68. package/docs/GetStructureRequest.md +1 -1
  69. package/docs/InvoiceInput.md +1 -1
  70. package/docs/InvoiceTypeCode.md +6 -28
  71. package/docs/Recipient.md +1 -1
  72. package/docs/SchemeID.md +4 -4
  73. package/docs/SearchStructureRequest.md +1 -1
  74. package/docs/SimplifiedInvoiceData.md +1 -1
  75. package/docs/SubmitCompleteInvoiceResponse.md +2 -2
  76. package/docs/SubmitInvoiceRequest.md +1 -1
  77. package/docs/Supplier.md +1 -1
  78. package/docs/ValidateCDARResponse.md +2 -2
  79. package/docs/ValidationErrorResponse.md +3 -9
  80. package/models/chorus-pro-credentials.ts +19 -7
  81. package/models/chorus-pro-destination.ts +2 -2
  82. package/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.ts → facture-electronique-models-invoice-type-code.ts} +67 -18
  83. package/models/{facture-electronique-rest-api-schemas-validation-validation-error-response.ts → facture-electronique-rest-api-schemas-cdar-validation-error-response.ts} +13 -4
  84. package/models/{facture-electronique-rest-api-schemas-ereporting-invoice-type-code.ts → facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.ts} +11 -13
  85. package/models/get-chorus-pro-id-request.ts +2 -2
  86. package/models/get-invoice-request.ts +2 -2
  87. package/models/get-structure-request.ts +2 -2
  88. package/models/index.ts +3 -3
  89. package/models/invoice-input.ts +2 -2
  90. package/models/invoice-type-code.ts +6 -65
  91. package/models/recipient.ts +1 -1
  92. package/models/scheme-id.ts +7 -7
  93. package/models/search-structure-request.ts +2 -2
  94. package/models/simplified-invoice-data.ts +2 -2
  95. package/models/submit-complete-invoice-response.ts +1 -1
  96. package/models/submit-invoice-request.ts +2 -2
  97. package/models/supplier.ts +1 -1
  98. package/models/validate-cdarresponse.ts +3 -3
  99. package/models/validation-error-response.ts +3 -12
  100. package/package.json +1 -1
  101. package/src/helpers/client.ts +211 -834
  102. package/src/helpers/index.ts +1 -3
  103. package/dist/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.d.ts +0 -22
  104. package/docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md +0 -29
  105. package/docs/FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.md +0 -17
  106. package/docs/FactureElectroniqueRestApiSchemasValidationValidationErrorResponse.md +0 -21
  107. /package/dist/esm/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.js → facture-electronique-rest-api-schemas-cdar-validation-error-response.js} +0 -0
  108. /package/dist/esm/models/{facture-electronique-rest-api-schemas-validation-validation-error-response.js → facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.js} +0 -0
  109. /package/dist/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.js → facture-electronique-rest-api-schemas-cdar-validation-error-response.js} +0 -0
  110. /package/dist/models/{facture-electronique-rest-api-schemas-validation-validation-error-response.js → facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.js} +0 -0
@@ -10,11 +10,20 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Response for validation errors.
13
+ * Erreur de validation.
14
14
  */
15
- export interface FactureElectroniqueRestApiSchemasValidationValidationErrorResponse {
15
+ export interface FactureElectroniqueRestApiSchemasCdarValidationErrorResponse {
16
16
  /**
17
- * List of detected validation errors.
17
+ * Champ concerné
18
18
  */
19
- 'detail': Array<string>;
19
+ 'field': string;
20
+ /**
21
+ * Message d\'erreur
22
+ */
23
+ 'message': string;
24
+ 'rule'?: string | null;
25
+ /**
26
+ * Sévérité (error/warning)
27
+ */
28
+ 'severity'?: string;
20
29
  }
@@ -10,13 +10,15 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Invoice type codes (UNTDID 1001).
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 declare const FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode: {
16
- readonly _380: "380";
17
- readonly _381: "381";
18
- readonly _384: "384";
19
- readonly _389: "389";
20
- readonly _386: "386";
21
- };
22
- export type FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode = typeof FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode[keyof typeof FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode];
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 { FactureElectroniqueRestApiSchemasChorusProChorusProCredentials } from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
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'?: FactureElectroniqueRestApiSchemasChorusProChorusProCredentials | null;
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 { FactureElectroniqueRestApiSchemasChorusProChorusProCredentials } from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
12
+ import type { ChorusProCredentials } from './chorus-pro-credentials';
13
13
  /**
14
14
  * Get an invoice.
15
15
  */
16
16
  export interface GetInvoiceRequest {
17
- 'credentials'?: FactureElectroniqueRestApiSchemasChorusProChorusProCredentials | null;
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 { FactureElectroniqueRestApiSchemasChorusProChorusProCredentials } from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
12
+ import type { ChorusProCredentials } from './chorus-pro-credentials';
13
13
  /**
14
14
  * Get structure details.
15
15
  */
16
16
  export interface GetStructureRequest {
17
- 'credentials'?: FactureElectroniqueRestApiSchemasChorusProChorusProCredentials | null;
17
+ 'credentials'?: ChorusProCredentials | null;
18
18
  /**
19
19
  * Chorus Pro structure ID
20
20
  */
@@ -145,9 +145,9 @@ export * from './error-source';
145
145
  export * from './extraction-info';
146
146
  export * from './factur-xinvoice';
147
147
  export * from './factur-xpdfinfo';
148
- export * from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
149
- export * from './facture-electronique-rest-api-schemas-ereporting-invoice-type-code';
150
- export * from './facture-electronique-rest-api-schemas-validation-validation-error-response';
148
+ export * from './facture-electronique-models-invoice-type-code';
149
+ export * from './facture-electronique-rest-api-schemas-cdar-validation-error-response';
150
+ export * from './facture-electronique-rest-api-schemas-processing-chorus-pro-credentials';
151
151
  export * from './field-status';
152
152
  export * from './file-info';
153
153
  export * from './files-info';
@@ -145,9 +145,9 @@ export * from './error-source';
145
145
  export * from './extraction-info';
146
146
  export * from './factur-xinvoice';
147
147
  export * from './factur-xpdfinfo';
148
- export * from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
149
- export * from './facture-electronique-rest-api-schemas-ereporting-invoice-type-code';
150
- export * from './facture-electronique-rest-api-schemas-validation-validation-error-response';
148
+ export * from './facture-electronique-models-invoice-type-code';
149
+ export * from './facture-electronique-rest-api-schemas-cdar-validation-error-response';
150
+ export * from './facture-electronique-rest-api-schemas-processing-chorus-pro-credentials';
151
151
  export * from './field-status';
152
152
  export * from './file-info';
153
153
  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 { FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode } from './facture-electronique-rest-api-schemas-ereporting-invoice-type-code';
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'?: FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode;
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
- * 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 |
13
+ * Invoice type codes (UNTDID 1001).
14
14
  */
15
15
  export declare const InvoiceTypeCode: {
16
- /**
17
- * Commercial Invoice
18
- */
19
- readonly INVOICE: "380";
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
- * 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 |
15
+ * Invoice type codes (UNTDID 1001).
16
16
  */
17
17
  export const InvoiceTypeCode = {
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'
18
+ _380: '380',
19
+ _381: '381',
20
+ _384: '384',
21
+ _389: '389',
22
+ _386: '386'
82
23
  };
@@ -16,7 +16,7 @@ import type { PostalAddress } from './postal-address';
16
16
  * Information about the invoice recipient / buyer (BG-7).
17
17
  */
18
18
  export interface Recipient {
19
- 'electronic_address': ElectronicAddress | null;
19
+ 'electronic_address'?: ElectronicAddress | null;
20
20
  'executing_service_code'?: string | null;
21
21
  'name'?: string | null;
22
22
  'siren'?: string | null;
@@ -10,21 +10,21 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Identification scheme codes (Electronic Address Scheme - EAS), mainly for electronic invoice addressing. **Possible values:** - `0225`: FR_SIREN - French SIREN (most common for France) - `0009`: FR_SIRET - French SIRET - `0002`: FR_SIREN_OLD - French SIREN (old code, for legal organization ID) - `0088`: GLN - Global Location Number - `0060`: DUNS - Data Universal Numbering System - `9957`: FR_VAT_INTRA - French intra-community VAT number - `0199`: GLEIF - Global Legal Entity Identifier Foundation - `0231`: DT_DIRECTORY_ID - Directory ID for tax administration - `EM`: EMAIL - Email-based electronic address (BT-34/BT-49)
13
+ * Identification scheme codes (Electronic Address Scheme - EAS). **Electronic Address (routing for PDP/Chorus Pro):** - `0225`: FR_ELECTRONIC_ADDRESS - French electronic billing address (BT-34/BT-49) Format: SIREN or SIREN_SUFFIX (e.g., \"920195229_92019522900017\") **Legal Identifiers (entity identification):** - `0002`: FR_SIREN - French SIREN (9 digits) for BT-30/BT-47 - `0009`: FR_SIRET - French SIRET (14 digits) for BT-29/BT-46 **Other schemes:** - `0088`: GLN - Global Location Number - `0060`: DUNS - Data Universal Numbering System - `9957`: FR_VAT_INTRA - French intra-community VAT number - `0199`: GLEIF - Global Legal Entity Identifier Foundation - `0231`: DT_DIRECTORY_ID - Directory ID for tax administration - `EM`: EMAIL - Email-based electronic address
14
14
  */
15
15
  export declare const SchemeID: {
16
16
  /**
17
- * FR_SIREN - French SIREN (most common for France)
17
+ * FR_ELECTRONIC_ADDRESS - French electronic billing address (BT-34/BT-49)
18
18
  */
19
- readonly FR_SIREN: "0225";
19
+ readonly FR_ELECTRONIC_ADDRESS: "0225";
20
20
  /**
21
- * FR_SIRET - French SIRET
21
+ * FR_SIREN - French SIREN (9 digits) - Legal organization ID
22
22
  */
23
- readonly FR_SIRET: "0009";
23
+ readonly FR_SIREN: "0002";
24
24
  /**
25
- * FR_SIREN_OLD - French SIREN (old code, for legal organization ID)
25
+ * FR_SIRET - French SIRET (14 digits) - Establishment ID
26
26
  */
27
- readonly FR_SIREN_OLD: "0002";
27
+ readonly FR_SIRET: "0009";
28
28
  /**
29
29
  * GLN - Global Location Number (GLN)
30
30
  */
@@ -12,21 +12,21 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- * Identification scheme codes (Electronic Address Scheme - EAS), mainly for electronic invoice addressing. **Possible values:** - `0225`: FR_SIREN - French SIREN (most common for France) - `0009`: FR_SIRET - French SIRET - `0002`: FR_SIREN_OLD - French SIREN (old code, for legal organization ID) - `0088`: GLN - Global Location Number - `0060`: DUNS - Data Universal Numbering System - `9957`: FR_VAT_INTRA - French intra-community VAT number - `0199`: GLEIF - Global Legal Entity Identifier Foundation - `0231`: DT_DIRECTORY_ID - Directory ID for tax administration - `EM`: EMAIL - Email-based electronic address (BT-34/BT-49)
15
+ * Identification scheme codes (Electronic Address Scheme - EAS). **Electronic Address (routing for PDP/Chorus Pro):** - `0225`: FR_ELECTRONIC_ADDRESS - French electronic billing address (BT-34/BT-49) Format: SIREN or SIREN_SUFFIX (e.g., \"920195229_92019522900017\") **Legal Identifiers (entity identification):** - `0002`: FR_SIREN - French SIREN (9 digits) for BT-30/BT-47 - `0009`: FR_SIRET - French SIRET (14 digits) for BT-29/BT-46 **Other schemes:** - `0088`: GLN - Global Location Number - `0060`: DUNS - Data Universal Numbering System - `9957`: FR_VAT_INTRA - French intra-community VAT number - `0199`: GLEIF - Global Legal Entity Identifier Foundation - `0231`: DT_DIRECTORY_ID - Directory ID for tax administration - `EM`: EMAIL - Email-based electronic address
16
16
  */
17
17
  export const SchemeID = {
18
18
  /**
19
- * FR_SIREN - French SIREN (most common for France)
19
+ * FR_ELECTRONIC_ADDRESS - French electronic billing address (BT-34/BT-49)
20
20
  */
21
- FR_SIREN: '0225',
21
+ FR_ELECTRONIC_ADDRESS: '0225',
22
22
  /**
23
- * FR_SIRET - French SIRET
23
+ * FR_SIREN - French SIREN (9 digits) - Legal organization ID
24
24
  */
25
- FR_SIRET: '0009',
25
+ FR_SIREN: '0002',
26
26
  /**
27
- * FR_SIREN_OLD - French SIREN (old code, for legal organization ID)
27
+ * FR_SIRET - French SIRET (14 digits) - Establishment ID
28
28
  */
29
- FR_SIREN_OLD: '0002',
29
+ FR_SIRET: '0009',
30
30
  /**
31
31
  * GLN - Global Location Number (GLN)
32
32
  */
@@ -9,12 +9,12 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { FactureElectroniqueRestApiSchemasChorusProChorusProCredentials } from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
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'?: FactureElectroniqueRestApiSchemasChorusProChorusProCredentials | null;
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 { InvoiceTypeCode } from './invoice-type-code';
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'?: InvoiceTypeCode;
52
+ 'invoiceType'?: FactureElectroniqueModelsInvoiceTypeCode;
53
53
  'precedingInvoiceReference'?: string | null;
54
54
  'operationNature'?: OperationNature | null;
55
55
  'invoicingFramework'?: InvoicingFrameworkCode | null;
@@ -40,7 +40,7 @@ export interface SubmitCompleteInvoiceResponse {
40
40
  /**
41
41
  * Generated Factur-X PDF (and signed if requested) base64-encoded
42
42
  */
43
- 'pdfBase64': string;
43
+ 'contentB64': string;
44
44
  /**
45
45
  * Return message
46
46
  */
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { FactureElectroniqueRestApiSchemasChorusProChorusProCredentials } from './facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials';
12
+ import type { ChorusProCredentials } from './chorus-pro-credentials';
13
13
  import type { SubmitGrossAmount } from './submit-gross-amount';
14
14
  import type { SubmitNetAmount } from './submit-net-amount';
15
15
  import type { SubmitVatAmount } from './submit-vat-amount';
@@ -17,7 +17,7 @@ import type { SubmitVatAmount } from './submit-vat-amount';
17
17
  * Submit an invoice to Chorus Pro.
18
18
  */
19
19
  export interface SubmitInvoiceRequest {
20
- 'credentials'?: FactureElectroniqueRestApiSchemasChorusProChorusProCredentials | null;
20
+ 'credentials'?: ChorusProCredentials | null;
21
21
  /**
22
22
  * Invoice number
23
23
  */
@@ -16,7 +16,7 @@ import type { PostalAddress } from './postal-address';
16
16
  * Information about the supplier / seller (BG-4).
17
17
  */
18
18
  export interface Supplier {
19
- 'electronic_address': ElectronicAddress | null;
19
+ 'electronic_address'?: ElectronicAddress | null;
20
20
  'supplier_id': number;
21
21
  'private_id'?: string | null;
22
22
  'supplier_bank_account_code'?: number | null;
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ValidationErrorResponse } from './validation-error-response';
12
+ import type { FactureElectroniqueRestApiSchemasCdarValidationErrorResponse } from './facture-electronique-rest-api-schemas-cdar-validation-error-response';
13
13
  /**
14
14
  * Réponse de validation CDAR.
15
15
  */
@@ -21,9 +21,9 @@ export interface ValidateCDARResponse {
21
21
  /**
22
22
  * Liste des erreurs
23
23
  */
24
- 'errors'?: Array<ValidationErrorResponse>;
24
+ 'errors'?: Array<FactureElectroniqueRestApiSchemasCdarValidationErrorResponse>;
25
25
  /**
26
26
  * Liste des avertissements
27
27
  */
28
- 'warnings'?: Array<ValidationErrorResponse>;
28
+ 'warnings'?: Array<FactureElectroniqueRestApiSchemasCdarValidationErrorResponse>;
29
29
  }
@@ -10,20 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Erreur de validation.
13
+ * Response for validation errors.
14
14
  */
15
15
  export interface ValidationErrorResponse {
16
16
  /**
17
- * Champ concerné
17
+ * List of detected validation errors.
18
18
  */
19
- 'field': string;
20
- /**
21
- * Message d\'erreur
22
- */
23
- 'message': string;
24
- 'rule'?: string | null;
25
- /**
26
- * Sévérité (error/warning)
27
- */
28
- 'severity'?: string;
19
+ 'detail': Array<string>;
29
20
  }