@factpulse/sdk 3.0.32 → 3.0.33

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 (186) hide show
  1. package/.openapi-generator/FILES +42 -2
  2. package/CHANGELOG.md +9 -17
  3. package/api/afnorpdppaapi.ts +1 -1
  4. package/api/afnorpdppadirectory-service-api.ts +1 -1
  5. package/api/afnorpdppaflow-service-api.ts +1 -1
  6. package/api/cdarcycle-de-vie-api.ts +603 -0
  7. package/api/chorus-pro-api.ts +1 -1
  8. package/api/document-conversion-api.ts +1 -1
  9. package/api/downloads-api.ts +1 -1
  10. package/api/ereporting-api.ts +1 -1
  11. package/api/health-api.ts +1 -1
  12. package/api/invoice-processing-api.ts +3 -3
  13. package/api/pdfxmlverification-api.ts +1 -1
  14. package/api/user-api.ts +1 -1
  15. package/api.ts +1 -0
  16. package/dist/api/cdarcycle-de-vie-api.d.ts +280 -0
  17. package/dist/api/cdarcycle-de-vie-api.js +569 -0
  18. package/dist/api.d.ts +1 -0
  19. package/dist/api.js +1 -0
  20. package/dist/esm/api/cdarcycle-de-vie-api.d.ts +280 -0
  21. package/dist/esm/api/cdarcycle-de-vie-api.js +559 -0
  22. package/dist/esm/api.d.ts +1 -0
  23. package/dist/esm/api.js +1 -0
  24. package/dist/esm/models/{facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.d.ts → action-code-info.d.ts} +12 -8
  25. package/dist/{models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.d.ts → esm/models/action-codes-response.d.ts} +13 -8
  26. package/dist/esm/models/action-codes-response.js +14 -0
  27. package/dist/esm/models/body-submit-cdar-api-v1-cdar-submit-post.d.ts +17 -0
  28. package/dist/esm/models/body-submit-cdar-api-v1-cdar-submit-post.js +14 -0
  29. package/dist/esm/models/body-submit-cdar-xml-api-v1-cdar-submit-xml-post.d.ts +17 -0
  30. package/dist/esm/models/body-submit-cdar-xml-api-v1-cdar-submit-xml-post.js +14 -0
  31. package/dist/esm/models/chorus-pro-credentials.d.ts +7 -19
  32. package/dist/esm/models/chorus-pro-destination.d.ts +2 -2
  33. package/dist/esm/models/create-cdarrequest.d.ts +66 -0
  34. package/dist/esm/models/create-cdarrequest.js +14 -0
  35. package/dist/esm/models/encaisseamount.d.ts +16 -0
  36. package/dist/esm/models/encaisseamount.js +14 -0
  37. package/dist/esm/models/encaisseamount1.d.ts +13 -0
  38. package/dist/esm/models/encaisseamount1.js +14 -0
  39. package/dist/esm/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.d.ts +36 -0
  40. package/dist/esm/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.js +14 -0
  41. package/dist/esm/models/facture-electronique-rest-api-schemas-validation-validation-error-response.d.ts +20 -0
  42. package/dist/esm/models/facture-electronique-rest-api-schemas-validation-validation-error-response.js +14 -0
  43. package/dist/esm/models/generate-cdarresponse.d.ts +33 -0
  44. package/dist/esm/models/generate-cdarresponse.js +14 -0
  45. package/dist/esm/models/get-chorus-pro-id-request.d.ts +2 -2
  46. package/dist/esm/models/get-invoice-request.d.ts +2 -2
  47. package/dist/esm/models/get-structure-request.d.ts +2 -2
  48. package/dist/esm/models/index.d.ts +20 -1
  49. package/dist/esm/models/index.js +20 -1
  50. package/dist/esm/models/reason-code-info.d.ts +28 -0
  51. package/dist/esm/models/reason-code-info.js +14 -0
  52. package/dist/esm/models/reason-codes-response.d.ts +29 -0
  53. package/dist/esm/models/reason-codes-response.js +14 -0
  54. package/dist/esm/models/recipient-input.d.ts +24 -0
  55. package/dist/esm/models/recipient-input.js +14 -0
  56. package/dist/esm/models/search-structure-request.d.ts +2 -2
  57. package/dist/esm/models/status-code-info.d.ts +28 -0
  58. package/dist/esm/models/status-code-info.js +14 -0
  59. package/dist/esm/models/status-codes-response.d.ts +29 -0
  60. package/dist/esm/models/status-codes-response.js +14 -0
  61. package/dist/esm/models/submit-cdarrequest.d.ts +70 -0
  62. package/dist/esm/models/submit-cdarrequest.js +14 -0
  63. package/dist/esm/models/submit-cdarresponse.d.ts +26 -0
  64. package/dist/esm/models/submit-cdarresponse.js +14 -0
  65. package/dist/esm/models/submit-cdarxmlrequest.d.ts +25 -0
  66. package/dist/esm/models/submit-cdarxmlrequest.js +14 -0
  67. package/dist/esm/models/submit-invoice-request.d.ts +2 -2
  68. package/dist/esm/models/validate-cdarrequest.d.ts +25 -0
  69. package/dist/esm/models/validate-cdarrequest.js +14 -0
  70. package/dist/esm/models/validate-cdarresponse.d.ts +29 -0
  71. package/dist/esm/models/validate-cdarresponse.js +14 -0
  72. package/dist/esm/models/validation-error-response.d.ts +12 -3
  73. package/dist/esm/src/helpers/client.js +3 -0
  74. package/dist/models/action-code-info.d.ts +28 -0
  75. package/dist/models/action-codes-response.d.ts +29 -0
  76. package/dist/models/action-codes-response.js +15 -0
  77. package/dist/models/body-submit-cdar-api-v1-cdar-submit-post.d.ts +17 -0
  78. package/dist/models/body-submit-cdar-api-v1-cdar-submit-post.js +15 -0
  79. package/dist/models/body-submit-cdar-xml-api-v1-cdar-submit-xml-post.d.ts +17 -0
  80. package/dist/models/body-submit-cdar-xml-api-v1-cdar-submit-xml-post.js +15 -0
  81. package/dist/models/chorus-pro-credentials.d.ts +7 -19
  82. package/dist/models/chorus-pro-destination.d.ts +2 -2
  83. package/dist/models/create-cdarrequest.d.ts +66 -0
  84. package/dist/models/create-cdarrequest.js +15 -0
  85. package/dist/models/encaisseamount.d.ts +16 -0
  86. package/dist/models/encaisseamount.js +15 -0
  87. package/dist/models/encaisseamount1.d.ts +13 -0
  88. package/dist/models/encaisseamount1.js +15 -0
  89. package/dist/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.d.ts +36 -0
  90. package/dist/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.js +15 -0
  91. package/dist/models/facture-electronique-rest-api-schemas-validation-validation-error-response.d.ts +20 -0
  92. package/dist/models/facture-electronique-rest-api-schemas-validation-validation-error-response.js +15 -0
  93. package/dist/models/generate-cdarresponse.d.ts +33 -0
  94. package/dist/models/generate-cdarresponse.js +15 -0
  95. package/dist/models/get-chorus-pro-id-request.d.ts +2 -2
  96. package/dist/models/get-invoice-request.d.ts +2 -2
  97. package/dist/models/get-structure-request.d.ts +2 -2
  98. package/dist/models/index.d.ts +20 -1
  99. package/dist/models/index.js +20 -1
  100. package/dist/models/reason-code-info.d.ts +28 -0
  101. package/dist/models/reason-code-info.js +15 -0
  102. package/dist/models/reason-codes-response.d.ts +29 -0
  103. package/dist/models/reason-codes-response.js +15 -0
  104. package/dist/models/recipient-input.d.ts +24 -0
  105. package/dist/models/recipient-input.js +15 -0
  106. package/dist/models/search-structure-request.d.ts +2 -2
  107. package/dist/models/status-code-info.d.ts +28 -0
  108. package/dist/models/status-code-info.js +15 -0
  109. package/dist/models/status-codes-response.d.ts +29 -0
  110. package/dist/models/status-codes-response.js +15 -0
  111. package/dist/models/submit-cdarrequest.d.ts +70 -0
  112. package/dist/models/submit-cdarrequest.js +15 -0
  113. package/dist/models/submit-cdarresponse.d.ts +26 -0
  114. package/dist/models/submit-cdarresponse.js +15 -0
  115. package/dist/models/submit-cdarxmlrequest.d.ts +25 -0
  116. package/dist/models/submit-cdarxmlrequest.js +15 -0
  117. package/dist/models/submit-invoice-request.d.ts +2 -2
  118. package/dist/models/validate-cdarrequest.d.ts +25 -0
  119. package/dist/models/validate-cdarrequest.js +15 -0
  120. package/dist/models/validate-cdarresponse.d.ts +29 -0
  121. package/dist/models/validate-cdarresponse.js +15 -0
  122. package/dist/models/validation-error-response.d.ts +12 -3
  123. package/dist/src/helpers/client.js +3 -0
  124. package/docs/ActionCodeInfo.md +25 -0
  125. package/docs/ActionCodesResponse.md +25 -0
  126. package/docs/BodySubmitCdarApiV1CdarSubmitPost.md +22 -0
  127. package/docs/BodySubmitCdarXmlApiV1CdarSubmitXmlPost.md +22 -0
  128. package/docs/CDARCycleDeVieApi.md +397 -0
  129. package/docs/ChorusProCredentials.md +9 -9
  130. package/docs/ChorusProDestination.md +1 -1
  131. package/docs/CreateCDARRequest.md +55 -0
  132. package/docs/Encaisseamount.md +19 -0
  133. package/docs/Encaisseamount1.md +18 -0
  134. package/docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md +29 -0
  135. package/docs/FactureElectroniqueRestApiSchemasValidationValidationErrorResponse.md +21 -0
  136. package/docs/GenerateCDARResponse.md +29 -0
  137. package/docs/GetChorusProIdRequest.md +1 -1
  138. package/docs/GetInvoiceRequest.md +1 -1
  139. package/docs/GetStructureRequest.md +1 -1
  140. package/docs/ReasonCodeInfo.md +25 -0
  141. package/docs/ReasonCodesResponse.md +25 -0
  142. package/docs/RecipientInput.md +29 -0
  143. package/docs/SearchStructureRequest.md +1 -1
  144. package/docs/StatusCodeInfo.md +25 -0
  145. package/docs/StatusCodesResponse.md +25 -0
  146. package/docs/SubmitCDARRequest.md +57 -0
  147. package/docs/SubmitCDARResponse.md +27 -0
  148. package/docs/SubmitCDARXMLRequest.md +25 -0
  149. package/docs/SubmitInvoiceRequest.md +1 -1
  150. package/docs/ValidateCDARRequest.md +35 -0
  151. package/docs/ValidateCDARResponse.md +25 -0
  152. package/docs/ValidationErrorResponse.md +9 -3
  153. package/models/{facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.ts → action-code-info.ts} +12 -8
  154. package/models/action-codes-response.ts +37 -0
  155. package/models/body-submit-cdar-api-v1-cdar-submit-post.ts +27 -0
  156. package/models/body-submit-cdar-xml-api-v1-cdar-submit-xml-post.ts +27 -0
  157. package/models/chorus-pro-credentials.ts +7 -19
  158. package/models/chorus-pro-destination.ts +2 -2
  159. package/models/create-cdarrequest.ts +76 -0
  160. package/models/encaisseamount.ts +22 -0
  161. package/models/encaisseamount1.ts +19 -0
  162. package/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.ts +42 -0
  163. package/models/facture-electronique-rest-api-schemas-validation-validation-error-response.ts +26 -0
  164. package/models/generate-cdarresponse.ts +39 -0
  165. package/models/get-chorus-pro-id-request.ts +2 -2
  166. package/models/get-invoice-request.ts +2 -2
  167. package/models/get-structure-request.ts +2 -2
  168. package/models/index.ts +20 -1
  169. package/models/reason-code-info.ts +34 -0
  170. package/models/reason-codes-response.ts +37 -0
  171. package/models/recipient-input.ts +30 -0
  172. package/models/search-structure-request.ts +2 -2
  173. package/models/status-code-info.ts +34 -0
  174. package/models/status-codes-response.ts +37 -0
  175. package/models/submit-cdarrequest.ts +80 -0
  176. package/models/submit-cdarresponse.ts +32 -0
  177. package/models/submit-cdarxmlrequest.ts +31 -0
  178. package/models/submit-invoice-request.ts +2 -2
  179. package/models/validate-cdarrequest.ts +33 -0
  180. package/models/validate-cdarresponse.ts +37 -0
  181. package/models/validation-error-response.ts +12 -3
  182. package/package.json +1 -1
  183. package/src/helpers/client.ts +3 -0
  184. package/docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md +0 -29
  185. /package/dist/esm/models/{facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.js → action-code-info.js} +0 -0
  186. /package/dist/models/{facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.js → action-code-info.js} +0 -0
@@ -0,0 +1,559 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * FactPulse REST API
5
+ * REST API for electronic invoicing in France: Factur-X, AFNOR PDP/PA, electronic signatures. ## 🎯 Main Features ### 📄 Factur-X Invoice Generation - **Formats**: XML only or PDF/A-3 with embedded XML - **Profiles**: MINIMUM, BASIC, EN16931, EXTENDED - **Standards**: EN 16931 (EU directive 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT) - **🆕 Simplified Format**: Generation from SIRET + auto-enrichment (Chorus Pro API + Business Search) ### ✅ Validation and Compliance - **XML Validation**: Schematron (45 to 210+ rules depending on profile) - **PDF Validation**: PDF/A-3, Factur-X XMP metadata, electronic signatures - **VeraPDF**: Strict PDF/A validation (146+ ISO 19005-3 rules) - **Asynchronous Processing**: Celery support for heavy validations (VeraPDF) ### 📡 AFNOR PDP/PA Integration (XP Z12-013) - **Flow Submission**: Send invoices to Partner Dematerialization Platforms - **Flow Search**: View submitted invoices - **Download**: Retrieve PDF/A-3 with XML - **Directory Service**: Company search (SIREN/SIRET) - **Multi-client**: Support for multiple PDP configs per user (stored credentials or zero-storage) ### ✍️ PDF Electronic Signature - **Standards**: PAdES-B-B, PAdES-B-T (RFC 3161 timestamping), PAdES-B-LT (long-term archival) - **eIDAS Levels**: SES (self-signed), AdES (commercial CA), QES (QTSP) - **Validation**: Cryptographic integrity and certificate verification - **Certificate Generation**: Self-signed X.509 certificates for testing ### 🔄 Asynchronous Processing - **Celery**: Asynchronous generation, validation and signing - **Polling**: Status tracking via `/tasks/{task_id}/status` - **No timeout**: Ideal for large files or heavy validations ## 🔒 Authentication All requests require a **JWT token** in the Authorization header: ``` Authorization: Bearer YOUR_JWT_TOKEN ``` ### How to obtain a JWT token? #### 🔑 Method 1: `/api/token/` API (Recommended) **URL:** `https://factpulse.fr/api/token/` This method is **recommended** for integration in your applications and CI/CD workflows. **Prerequisites:** Having set a password on your account **For users registered via email/password:** - You already have a password, use it directly **For users registered via OAuth (Google/GitHub):** - You must first set a password at: https://factpulse.fr/accounts/password/set/ - Once the password is created, you can use the API **Request example:** ```bash curl -X POST https://factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"your_email@example.com\", \"password\": \"your_password\" }\' ``` **Optional `client_uid` parameter:** To select credentials for a specific client (PA/PDP, Chorus Pro, signing certificates), add `client_uid`: ```bash curl -X POST https://factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"your_email@example.com\", \"password\": \"your_password\", \"client_uid\": \"550e8400-e29b-41d4-a716-446655440000\" }\' ``` The `client_uid` will be included in the JWT and allow the API to automatically use: - AFNOR/PDP credentials configured for this client - Chorus Pro credentials configured for this client - Electronic signature certificates configured for this client **Response:** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Access token (validity: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Refresh token (validity: 7 days) } ``` **Advantages:** - ✅ Full automation (CI/CD, scripts) - ✅ Programmatic token management - ✅ Refresh token support for automatic access renewal - ✅ Easy integration in any language/tool #### 🖥️ Method 2: Dashboard Generation (Alternative) **URL:** https://factpulse.fr/api/dashboard/ This method is suitable for quick tests or occasional use via the graphical interface. **How it works:** - Log in to the dashboard - Use the \"Generate Test Token\" or \"Generate Production Token\" buttons - Works for **all** users (OAuth and email/password), without requiring a password **Token types:** - **Test Token**: 24h validity, 1000 calls/day quota (free) - **Production Token**: 7 days validity, quota based on your plan **Advantages:** - ✅ Quick for API testing - ✅ No password required - ✅ Simple visual interface **Disadvantages:** - ❌ Requires manual action - ❌ No refresh token - ❌ Less suited for automation ### 📚 Full Documentation For more information on authentication and API usage: https://factpulse.fr/documentation-api/
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: contact@factpulse.fr
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * CDARCycleDeVieApi - axios parameter creator
31
+ */
32
+ export const CDARCycleDeVieApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * Génère un message XML CDAR (Cross Domain Acknowledgement and Response) pour communiquer le statut d\'une facture. **Types de messages:** - **23** (Traitement): Message de cycle de vie standard - **305** (Transmission): Message de transmission entre plateformes **Règles métier:** - BR-FR-CDV-14: Le statut 212 (ENCAISSEE) requiert un montant encaissé - BR-FR-CDV-15: Les statuts 206/207/208/210/213/501 requièrent un code motif
36
+ * @summary Générer un message CDAR
37
+ * @param {CreateCDARRequest} createCDARRequest
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ generateCdarApiV1CdarGeneratePost: (createCDARRequest_1, ...args_1) => __awaiter(this, [createCDARRequest_1, ...args_1], void 0, function* (createCDARRequest, options = {}) {
42
+ // verify required parameter 'createCDARRequest' is not null or undefined
43
+ assertParamExists('generateCdarApiV1CdarGeneratePost', 'createCDARRequest', createCDARRequest);
44
+ const localVarPath = `/api/v1/cdar/generate`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ }
51
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
52
+ const localVarHeaderParameter = {};
53
+ const localVarQueryParameter = {};
54
+ // authentication HTTPBearer required
55
+ // http bearer authentication required
56
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
57
+ localVarHeaderParameter['Content-Type'] = 'application/json';
58
+ localVarHeaderParameter['Accept'] = 'application/json';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ localVarRequestOptions.data = serializeDataIfNeeded(createCDARRequest, localVarRequestOptions, configuration);
63
+ return {
64
+ url: toPathString(localVarUrlObj),
65
+ options: localVarRequestOptions,
66
+ };
67
+ }),
68
+ /**
69
+ * Retourne la liste complète des codes action (BR-FR-CDV-CL-10). Ces codes indiquent l\'action demandée sur la facture.
70
+ * @summary Liste des codes action CDAR
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ getActionCodesApiV1CdarActionCodesGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
75
+ const localVarPath = `/api/v1/cdar/action-codes`;
76
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
77
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
78
+ let baseOptions;
79
+ if (configuration) {
80
+ baseOptions = configuration.baseOptions;
81
+ }
82
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
83
+ const localVarHeaderParameter = {};
84
+ const localVarQueryParameter = {};
85
+ localVarHeaderParameter['Accept'] = 'application/json';
86
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
87
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
88
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
89
+ return {
90
+ url: toPathString(localVarUrlObj),
91
+ options: localVarRequestOptions,
92
+ };
93
+ }),
94
+ /**
95
+ * Retourne la liste complète des codes motif de statut (BR-FR-CDV-CL-09). Ces codes expliquent la raison d\'un statut particulier.
96
+ * @summary Liste des codes motif CDAR
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ getReasonCodesApiV1CdarReasonCodesGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
101
+ const localVarPath = `/api/v1/cdar/reason-codes`;
102
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
104
+ let baseOptions;
105
+ if (configuration) {
106
+ baseOptions = configuration.baseOptions;
107
+ }
108
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
109
+ const localVarHeaderParameter = {};
110
+ const localVarQueryParameter = {};
111
+ localVarHeaderParameter['Accept'] = 'application/json';
112
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
113
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
114
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
115
+ return {
116
+ url: toPathString(localVarUrlObj),
117
+ options: localVarRequestOptions,
118
+ };
119
+ }),
120
+ /**
121
+ * Retourne la liste complète des codes statut de facture (BR-FR-CDV-CL-06). Ces codes indiquent l\'état du cycle de vie d\'une facture.
122
+ * @summary Liste des codes statut CDAR
123
+ * @param {*} [options] Override http request option.
124
+ * @throws {RequiredError}
125
+ */
126
+ getStatusCodesApiV1CdarStatusCodesGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
127
+ const localVarPath = `/api/v1/cdar/status-codes`;
128
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
129
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
130
+ let baseOptions;
131
+ if (configuration) {
132
+ baseOptions = configuration.baseOptions;
133
+ }
134
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
135
+ const localVarHeaderParameter = {};
136
+ const localVarQueryParameter = {};
137
+ localVarHeaderParameter['Accept'] = 'application/json';
138
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
139
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
140
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
141
+ return {
142
+ url: toPathString(localVarUrlObj),
143
+ options: localVarRequestOptions,
144
+ };
145
+ }),
146
+ /**
147
+ * Génère un message CDAR et le soumet à la plateforme PA/PDP. Nécessite une authentification AFNOR valide. **Types de flux (flowType):** - `CustomerInvoiceLC`: Cycle de vie côté client (acheteur) - `SupplierInvoiceLC`: Cycle de vie côté fournisseur (vendeur)
148
+ * @summary Générer et soumettre un message CDAR
149
+ * @param {number} userId
150
+ * @param {BodySubmitCdarApiV1CdarSubmitPost} bodySubmitCdarApiV1CdarSubmitPost
151
+ * @param {string | null} [jwtToken]
152
+ * @param {string | null} [clientUid]
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ submitCdarApiV1CdarSubmitPost: (userId_1, bodySubmitCdarApiV1CdarSubmitPost_1, jwtToken_1, clientUid_1, ...args_1) => __awaiter(this, [userId_1, bodySubmitCdarApiV1CdarSubmitPost_1, jwtToken_1, clientUid_1, ...args_1], void 0, function* (userId, bodySubmitCdarApiV1CdarSubmitPost, jwtToken, clientUid, options = {}) {
157
+ // verify required parameter 'userId' is not null or undefined
158
+ assertParamExists('submitCdarApiV1CdarSubmitPost', 'userId', userId);
159
+ // verify required parameter 'bodySubmitCdarApiV1CdarSubmitPost' is not null or undefined
160
+ assertParamExists('submitCdarApiV1CdarSubmitPost', 'bodySubmitCdarApiV1CdarSubmitPost', bodySubmitCdarApiV1CdarSubmitPost);
161
+ const localVarPath = `/api/v1/cdar/submit`;
162
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
163
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
164
+ let baseOptions;
165
+ if (configuration) {
166
+ baseOptions = configuration.baseOptions;
167
+ }
168
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
169
+ const localVarHeaderParameter = {};
170
+ const localVarQueryParameter = {};
171
+ // authentication HTTPBearer required
172
+ // http bearer authentication required
173
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
174
+ if (userId !== undefined) {
175
+ localVarQueryParameter['user_id'] = userId;
176
+ }
177
+ if (jwtToken !== undefined) {
178
+ localVarQueryParameter['jwt_token'] = jwtToken;
179
+ }
180
+ if (clientUid !== undefined) {
181
+ localVarQueryParameter['client_uid'] = clientUid;
182
+ }
183
+ localVarHeaderParameter['Content-Type'] = 'application/json';
184
+ localVarHeaderParameter['Accept'] = 'application/json';
185
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
186
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
+ localVarRequestOptions.data = serializeDataIfNeeded(bodySubmitCdarApiV1CdarSubmitPost, localVarRequestOptions, configuration);
189
+ return {
190
+ url: toPathString(localVarUrlObj),
191
+ options: localVarRequestOptions,
192
+ };
193
+ }),
194
+ /**
195
+ * Soumet un message XML CDAR pré-généré à la plateforme PA/PDP. Utile pour soumettre des XML générés par d\'autres systèmes.
196
+ * @summary Soumettre un XML CDAR pré-généré
197
+ * @param {number} userId
198
+ * @param {BodySubmitCdarXmlApiV1CdarSubmitXmlPost} bodySubmitCdarXmlApiV1CdarSubmitXmlPost
199
+ * @param {string | null} [jwtToken]
200
+ * @param {string | null} [clientUid]
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ submitCdarXmlApiV1CdarSubmitXmlPost: (userId_1, bodySubmitCdarXmlApiV1CdarSubmitXmlPost_1, jwtToken_1, clientUid_1, ...args_1) => __awaiter(this, [userId_1, bodySubmitCdarXmlApiV1CdarSubmitXmlPost_1, jwtToken_1, clientUid_1, ...args_1], void 0, function* (userId, bodySubmitCdarXmlApiV1CdarSubmitXmlPost, jwtToken, clientUid, options = {}) {
205
+ // verify required parameter 'userId' is not null or undefined
206
+ assertParamExists('submitCdarXmlApiV1CdarSubmitXmlPost', 'userId', userId);
207
+ // verify required parameter 'bodySubmitCdarXmlApiV1CdarSubmitXmlPost' is not null or undefined
208
+ assertParamExists('submitCdarXmlApiV1CdarSubmitXmlPost', 'bodySubmitCdarXmlApiV1CdarSubmitXmlPost', bodySubmitCdarXmlApiV1CdarSubmitXmlPost);
209
+ const localVarPath = `/api/v1/cdar/submit-xml`;
210
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
211
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
212
+ let baseOptions;
213
+ if (configuration) {
214
+ baseOptions = configuration.baseOptions;
215
+ }
216
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
217
+ const localVarHeaderParameter = {};
218
+ const localVarQueryParameter = {};
219
+ // authentication HTTPBearer required
220
+ // http bearer authentication required
221
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
222
+ if (userId !== undefined) {
223
+ localVarQueryParameter['user_id'] = userId;
224
+ }
225
+ if (jwtToken !== undefined) {
226
+ localVarQueryParameter['jwt_token'] = jwtToken;
227
+ }
228
+ if (clientUid !== undefined) {
229
+ localVarQueryParameter['client_uid'] = clientUid;
230
+ }
231
+ localVarHeaderParameter['Content-Type'] = 'application/json';
232
+ localVarHeaderParameter['Accept'] = 'application/json';
233
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
234
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
235
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
236
+ localVarRequestOptions.data = serializeDataIfNeeded(bodySubmitCdarXmlApiV1CdarSubmitXmlPost, localVarRequestOptions, configuration);
237
+ return {
238
+ url: toPathString(localVarUrlObj),
239
+ options: localVarRequestOptions,
240
+ };
241
+ }),
242
+ /**
243
+ * Valide les données CDAR sans générer le XML. Vérifie: - Les formats des champs (SIREN, dates, etc.) - Les codes enums (statut, motif, action) - Les règles métier BR-FR-CDV-*
244
+ * @summary Valider des données CDAR
245
+ * @param {ValidateCDARRequest} validateCDARRequest
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ validateCdarApiV1CdarValidatePost: (validateCDARRequest_1, ...args_1) => __awaiter(this, [validateCDARRequest_1, ...args_1], void 0, function* (validateCDARRequest, options = {}) {
250
+ // verify required parameter 'validateCDARRequest' is not null or undefined
251
+ assertParamExists('validateCdarApiV1CdarValidatePost', 'validateCDARRequest', validateCDARRequest);
252
+ const localVarPath = `/api/v1/cdar/validate`;
253
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
254
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
255
+ let baseOptions;
256
+ if (configuration) {
257
+ baseOptions = configuration.baseOptions;
258
+ }
259
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
260
+ const localVarHeaderParameter = {};
261
+ const localVarQueryParameter = {};
262
+ // authentication HTTPBearer required
263
+ // http bearer authentication required
264
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
265
+ localVarHeaderParameter['Content-Type'] = 'application/json';
266
+ localVarHeaderParameter['Accept'] = 'application/json';
267
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
268
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
269
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
270
+ localVarRequestOptions.data = serializeDataIfNeeded(validateCDARRequest, localVarRequestOptions, configuration);
271
+ return {
272
+ url: toPathString(localVarUrlObj),
273
+ options: localVarRequestOptions,
274
+ };
275
+ }),
276
+ };
277
+ };
278
+ /**
279
+ * CDARCycleDeVieApi - functional programming interface
280
+ */
281
+ export const CDARCycleDeVieApiFp = function (configuration) {
282
+ const localVarAxiosParamCreator = CDARCycleDeVieApiAxiosParamCreator(configuration);
283
+ return {
284
+ /**
285
+ * Génère un message XML CDAR (Cross Domain Acknowledgement and Response) pour communiquer le statut d\'une facture. **Types de messages:** - **23** (Traitement): Message de cycle de vie standard - **305** (Transmission): Message de transmission entre plateformes **Règles métier:** - BR-FR-CDV-14: Le statut 212 (ENCAISSEE) requiert un montant encaissé - BR-FR-CDV-15: Les statuts 206/207/208/210/213/501 requièrent un code motif
286
+ * @summary Générer un message CDAR
287
+ * @param {CreateCDARRequest} createCDARRequest
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ */
291
+ generateCdarApiV1CdarGeneratePost(createCDARRequest, options) {
292
+ return __awaiter(this, void 0, void 0, function* () {
293
+ var _a, _b, _c;
294
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateCdarApiV1CdarGeneratePost(createCDARRequest, options);
295
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
296
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CDARCycleDeVieApi.generateCdarApiV1CdarGeneratePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
297
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
298
+ });
299
+ },
300
+ /**
301
+ * Retourne la liste complète des codes action (BR-FR-CDV-CL-10). Ces codes indiquent l\'action demandée sur la facture.
302
+ * @summary Liste des codes action CDAR
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ */
306
+ getActionCodesApiV1CdarActionCodesGet(options) {
307
+ return __awaiter(this, void 0, void 0, function* () {
308
+ var _a, _b, _c;
309
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getActionCodesApiV1CdarActionCodesGet(options);
310
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
311
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CDARCycleDeVieApi.getActionCodesApiV1CdarActionCodesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
312
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
313
+ });
314
+ },
315
+ /**
316
+ * Retourne la liste complète des codes motif de statut (BR-FR-CDV-CL-09). Ces codes expliquent la raison d\'un statut particulier.
317
+ * @summary Liste des codes motif CDAR
318
+ * @param {*} [options] Override http request option.
319
+ * @throws {RequiredError}
320
+ */
321
+ getReasonCodesApiV1CdarReasonCodesGet(options) {
322
+ return __awaiter(this, void 0, void 0, function* () {
323
+ var _a, _b, _c;
324
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReasonCodesApiV1CdarReasonCodesGet(options);
325
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
326
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CDARCycleDeVieApi.getReasonCodesApiV1CdarReasonCodesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
327
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
328
+ });
329
+ },
330
+ /**
331
+ * Retourne la liste complète des codes statut de facture (BR-FR-CDV-CL-06). Ces codes indiquent l\'état du cycle de vie d\'une facture.
332
+ * @summary Liste des codes statut CDAR
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ getStatusCodesApiV1CdarStatusCodesGet(options) {
337
+ return __awaiter(this, void 0, void 0, function* () {
338
+ var _a, _b, _c;
339
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getStatusCodesApiV1CdarStatusCodesGet(options);
340
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
341
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CDARCycleDeVieApi.getStatusCodesApiV1CdarStatusCodesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
342
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
343
+ });
344
+ },
345
+ /**
346
+ * Génère un message CDAR et le soumet à la plateforme PA/PDP. Nécessite une authentification AFNOR valide. **Types de flux (flowType):** - `CustomerInvoiceLC`: Cycle de vie côté client (acheteur) - `SupplierInvoiceLC`: Cycle de vie côté fournisseur (vendeur)
347
+ * @summary Générer et soumettre un message CDAR
348
+ * @param {number} userId
349
+ * @param {BodySubmitCdarApiV1CdarSubmitPost} bodySubmitCdarApiV1CdarSubmitPost
350
+ * @param {string | null} [jwtToken]
351
+ * @param {string | null} [clientUid]
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ submitCdarApiV1CdarSubmitPost(userId, bodySubmitCdarApiV1CdarSubmitPost, jwtToken, clientUid, options) {
356
+ return __awaiter(this, void 0, void 0, function* () {
357
+ var _a, _b, _c;
358
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.submitCdarApiV1CdarSubmitPost(userId, bodySubmitCdarApiV1CdarSubmitPost, jwtToken, clientUid, options);
359
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
360
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CDARCycleDeVieApi.submitCdarApiV1CdarSubmitPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
361
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
362
+ });
363
+ },
364
+ /**
365
+ * Soumet un message XML CDAR pré-généré à la plateforme PA/PDP. Utile pour soumettre des XML générés par d\'autres systèmes.
366
+ * @summary Soumettre un XML CDAR pré-généré
367
+ * @param {number} userId
368
+ * @param {BodySubmitCdarXmlApiV1CdarSubmitXmlPost} bodySubmitCdarXmlApiV1CdarSubmitXmlPost
369
+ * @param {string | null} [jwtToken]
370
+ * @param {string | null} [clientUid]
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ */
374
+ submitCdarXmlApiV1CdarSubmitXmlPost(userId, bodySubmitCdarXmlApiV1CdarSubmitXmlPost, jwtToken, clientUid, options) {
375
+ return __awaiter(this, void 0, void 0, function* () {
376
+ var _a, _b, _c;
377
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.submitCdarXmlApiV1CdarSubmitXmlPost(userId, bodySubmitCdarXmlApiV1CdarSubmitXmlPost, jwtToken, clientUid, options);
378
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
379
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CDARCycleDeVieApi.submitCdarXmlApiV1CdarSubmitXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
380
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
381
+ });
382
+ },
383
+ /**
384
+ * Valide les données CDAR sans générer le XML. Vérifie: - Les formats des champs (SIREN, dates, etc.) - Les codes enums (statut, motif, action) - Les règles métier BR-FR-CDV-*
385
+ * @summary Valider des données CDAR
386
+ * @param {ValidateCDARRequest} validateCDARRequest
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ */
390
+ validateCdarApiV1CdarValidatePost(validateCDARRequest, options) {
391
+ return __awaiter(this, void 0, void 0, function* () {
392
+ var _a, _b, _c;
393
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.validateCdarApiV1CdarValidatePost(validateCDARRequest, options);
394
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
395
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CDARCycleDeVieApi.validateCdarApiV1CdarValidatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
396
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
397
+ });
398
+ },
399
+ };
400
+ };
401
+ /**
402
+ * CDARCycleDeVieApi - factory interface
403
+ */
404
+ export const CDARCycleDeVieApiFactory = function (configuration, basePath, axios) {
405
+ const localVarFp = CDARCycleDeVieApiFp(configuration);
406
+ return {
407
+ /**
408
+ * Génère un message XML CDAR (Cross Domain Acknowledgement and Response) pour communiquer le statut d\'une facture. **Types de messages:** - **23** (Traitement): Message de cycle de vie standard - **305** (Transmission): Message de transmission entre plateformes **Règles métier:** - BR-FR-CDV-14: Le statut 212 (ENCAISSEE) requiert un montant encaissé - BR-FR-CDV-15: Les statuts 206/207/208/210/213/501 requièrent un code motif
409
+ * @summary Générer un message CDAR
410
+ * @param {CreateCDARRequest} createCDARRequest
411
+ * @param {*} [options] Override http request option.
412
+ * @throws {RequiredError}
413
+ */
414
+ generateCdarApiV1CdarGeneratePost(createCDARRequest, options) {
415
+ return localVarFp.generateCdarApiV1CdarGeneratePost(createCDARRequest, options).then((request) => request(axios, basePath));
416
+ },
417
+ /**
418
+ * Retourne la liste complète des codes action (BR-FR-CDV-CL-10). Ces codes indiquent l\'action demandée sur la facture.
419
+ * @summary Liste des codes action CDAR
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ */
423
+ getActionCodesApiV1CdarActionCodesGet(options) {
424
+ return localVarFp.getActionCodesApiV1CdarActionCodesGet(options).then((request) => request(axios, basePath));
425
+ },
426
+ /**
427
+ * Retourne la liste complète des codes motif de statut (BR-FR-CDV-CL-09). Ces codes expliquent la raison d\'un statut particulier.
428
+ * @summary Liste des codes motif CDAR
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ */
432
+ getReasonCodesApiV1CdarReasonCodesGet(options) {
433
+ return localVarFp.getReasonCodesApiV1CdarReasonCodesGet(options).then((request) => request(axios, basePath));
434
+ },
435
+ /**
436
+ * Retourne la liste complète des codes statut de facture (BR-FR-CDV-CL-06). Ces codes indiquent l\'état du cycle de vie d\'une facture.
437
+ * @summary Liste des codes statut CDAR
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ */
441
+ getStatusCodesApiV1CdarStatusCodesGet(options) {
442
+ return localVarFp.getStatusCodesApiV1CdarStatusCodesGet(options).then((request) => request(axios, basePath));
443
+ },
444
+ /**
445
+ * Génère un message CDAR et le soumet à la plateforme PA/PDP. Nécessite une authentification AFNOR valide. **Types de flux (flowType):** - `CustomerInvoiceLC`: Cycle de vie côté client (acheteur) - `SupplierInvoiceLC`: Cycle de vie côté fournisseur (vendeur)
446
+ * @summary Générer et soumettre un message CDAR
447
+ * @param {number} userId
448
+ * @param {BodySubmitCdarApiV1CdarSubmitPost} bodySubmitCdarApiV1CdarSubmitPost
449
+ * @param {string | null} [jwtToken]
450
+ * @param {string | null} [clientUid]
451
+ * @param {*} [options] Override http request option.
452
+ * @throws {RequiredError}
453
+ */
454
+ submitCdarApiV1CdarSubmitPost(userId, bodySubmitCdarApiV1CdarSubmitPost, jwtToken, clientUid, options) {
455
+ return localVarFp.submitCdarApiV1CdarSubmitPost(userId, bodySubmitCdarApiV1CdarSubmitPost, jwtToken, clientUid, options).then((request) => request(axios, basePath));
456
+ },
457
+ /**
458
+ * Soumet un message XML CDAR pré-généré à la plateforme PA/PDP. Utile pour soumettre des XML générés par d\'autres systèmes.
459
+ * @summary Soumettre un XML CDAR pré-généré
460
+ * @param {number} userId
461
+ * @param {BodySubmitCdarXmlApiV1CdarSubmitXmlPost} bodySubmitCdarXmlApiV1CdarSubmitXmlPost
462
+ * @param {string | null} [jwtToken]
463
+ * @param {string | null} [clientUid]
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ */
467
+ submitCdarXmlApiV1CdarSubmitXmlPost(userId, bodySubmitCdarXmlApiV1CdarSubmitXmlPost, jwtToken, clientUid, options) {
468
+ return localVarFp.submitCdarXmlApiV1CdarSubmitXmlPost(userId, bodySubmitCdarXmlApiV1CdarSubmitXmlPost, jwtToken, clientUid, options).then((request) => request(axios, basePath));
469
+ },
470
+ /**
471
+ * Valide les données CDAR sans générer le XML. Vérifie: - Les formats des champs (SIREN, dates, etc.) - Les codes enums (statut, motif, action) - Les règles métier BR-FR-CDV-*
472
+ * @summary Valider des données CDAR
473
+ * @param {ValidateCDARRequest} validateCDARRequest
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ validateCdarApiV1CdarValidatePost(validateCDARRequest, options) {
478
+ return localVarFp.validateCdarApiV1CdarValidatePost(validateCDARRequest, options).then((request) => request(axios, basePath));
479
+ },
480
+ };
481
+ };
482
+ /**
483
+ * CDARCycleDeVieApi - object-oriented interface
484
+ */
485
+ export class CDARCycleDeVieApi extends BaseAPI {
486
+ /**
487
+ * Génère un message XML CDAR (Cross Domain Acknowledgement and Response) pour communiquer le statut d\'une facture. **Types de messages:** - **23** (Traitement): Message de cycle de vie standard - **305** (Transmission): Message de transmission entre plateformes **Règles métier:** - BR-FR-CDV-14: Le statut 212 (ENCAISSEE) requiert un montant encaissé - BR-FR-CDV-15: Les statuts 206/207/208/210/213/501 requièrent un code motif
488
+ * @summary Générer un message CDAR
489
+ * @param {CreateCDARRequest} createCDARRequest
490
+ * @param {*} [options] Override http request option.
491
+ * @throws {RequiredError}
492
+ */
493
+ generateCdarApiV1CdarGeneratePost(createCDARRequest, options) {
494
+ return CDARCycleDeVieApiFp(this.configuration).generateCdarApiV1CdarGeneratePost(createCDARRequest, options).then((request) => request(this.axios, this.basePath));
495
+ }
496
+ /**
497
+ * Retourne la liste complète des codes action (BR-FR-CDV-CL-10). Ces codes indiquent l\'action demandée sur la facture.
498
+ * @summary Liste des codes action CDAR
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ */
502
+ getActionCodesApiV1CdarActionCodesGet(options) {
503
+ return CDARCycleDeVieApiFp(this.configuration).getActionCodesApiV1CdarActionCodesGet(options).then((request) => request(this.axios, this.basePath));
504
+ }
505
+ /**
506
+ * Retourne la liste complète des codes motif de statut (BR-FR-CDV-CL-09). Ces codes expliquent la raison d\'un statut particulier.
507
+ * @summary Liste des codes motif CDAR
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ */
511
+ getReasonCodesApiV1CdarReasonCodesGet(options) {
512
+ return CDARCycleDeVieApiFp(this.configuration).getReasonCodesApiV1CdarReasonCodesGet(options).then((request) => request(this.axios, this.basePath));
513
+ }
514
+ /**
515
+ * Retourne la liste complète des codes statut de facture (BR-FR-CDV-CL-06). Ces codes indiquent l\'état du cycle de vie d\'une facture.
516
+ * @summary Liste des codes statut CDAR
517
+ * @param {*} [options] Override http request option.
518
+ * @throws {RequiredError}
519
+ */
520
+ getStatusCodesApiV1CdarStatusCodesGet(options) {
521
+ return CDARCycleDeVieApiFp(this.configuration).getStatusCodesApiV1CdarStatusCodesGet(options).then((request) => request(this.axios, this.basePath));
522
+ }
523
+ /**
524
+ * Génère un message CDAR et le soumet à la plateforme PA/PDP. Nécessite une authentification AFNOR valide. **Types de flux (flowType):** - `CustomerInvoiceLC`: Cycle de vie côté client (acheteur) - `SupplierInvoiceLC`: Cycle de vie côté fournisseur (vendeur)
525
+ * @summary Générer et soumettre un message CDAR
526
+ * @param {number} userId
527
+ * @param {BodySubmitCdarApiV1CdarSubmitPost} bodySubmitCdarApiV1CdarSubmitPost
528
+ * @param {string | null} [jwtToken]
529
+ * @param {string | null} [clientUid]
530
+ * @param {*} [options] Override http request option.
531
+ * @throws {RequiredError}
532
+ */
533
+ submitCdarApiV1CdarSubmitPost(userId, bodySubmitCdarApiV1CdarSubmitPost, jwtToken, clientUid, options) {
534
+ return CDARCycleDeVieApiFp(this.configuration).submitCdarApiV1CdarSubmitPost(userId, bodySubmitCdarApiV1CdarSubmitPost, jwtToken, clientUid, options).then((request) => request(this.axios, this.basePath));
535
+ }
536
+ /**
537
+ * Soumet un message XML CDAR pré-généré à la plateforme PA/PDP. Utile pour soumettre des XML générés par d\'autres systèmes.
538
+ * @summary Soumettre un XML CDAR pré-généré
539
+ * @param {number} userId
540
+ * @param {BodySubmitCdarXmlApiV1CdarSubmitXmlPost} bodySubmitCdarXmlApiV1CdarSubmitXmlPost
541
+ * @param {string | null} [jwtToken]
542
+ * @param {string | null} [clientUid]
543
+ * @param {*} [options] Override http request option.
544
+ * @throws {RequiredError}
545
+ */
546
+ submitCdarXmlApiV1CdarSubmitXmlPost(userId, bodySubmitCdarXmlApiV1CdarSubmitXmlPost, jwtToken, clientUid, options) {
547
+ return CDARCycleDeVieApiFp(this.configuration).submitCdarXmlApiV1CdarSubmitXmlPost(userId, bodySubmitCdarXmlApiV1CdarSubmitXmlPost, jwtToken, clientUid, options).then((request) => request(this.axios, this.basePath));
548
+ }
549
+ /**
550
+ * Valide les données CDAR sans générer le XML. Vérifie: - Les formats des champs (SIREN, dates, etc.) - Les codes enums (statut, motif, action) - Les règles métier BR-FR-CDV-*
551
+ * @summary Valider des données CDAR
552
+ * @param {ValidateCDARRequest} validateCDARRequest
553
+ * @param {*} [options] Override http request option.
554
+ * @throws {RequiredError}
555
+ */
556
+ validateCdarApiV1CdarValidatePost(validateCDARRequest, options) {
557
+ return CDARCycleDeVieApiFp(this.configuration).validateCdarApiV1CdarValidatePost(validateCDARRequest, options).then((request) => request(this.axios, this.basePath));
558
+ }
559
+ }
package/dist/esm/api.d.ts CHANGED
@@ -12,6 +12,7 @@
12
12
  export * from './api/afnorpdppaapi';
13
13
  export * from './api/afnorpdppadirectory-service-api';
14
14
  export * from './api/afnorpdppaflow-service-api';
15
+ export * from './api/cdarcycle-de-vie-api';
15
16
  export * from './api/chorus-pro-api';
16
17
  export * from './api/document-conversion-api';
17
18
  export * from './api/downloads-api';
package/dist/esm/api.js CHANGED
@@ -14,6 +14,7 @@
14
14
  export * from './api/afnorpdppaapi';
15
15
  export * from './api/afnorpdppadirectory-service-api';
16
16
  export * from './api/afnorpdppaflow-service-api';
17
+ export * from './api/cdarcycle-de-vie-api';
17
18
  export * from './api/chorus-pro-api';
18
19
  export * from './api/document-conversion-api';
19
20
  export * from './api/downloads-api';
@@ -10,15 +10,19 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
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.
13
+ * Information sur un code action.
14
14
  */
15
- export interface FactureElectroniqueRestApiSchemasProcessingChorusProCredentials {
16
- 'pisteClientId'?: string | null;
17
- 'pisteClientSecret'?: string | null;
18
- 'chorusLogin'?: string | null;
19
- 'chorusPassword'?: string | null;
15
+ export interface ActionCodeInfo {
20
16
  /**
21
- * [MODE 2] Use sandbox mode (default: True)
17
+ * Code
22
18
  */
23
- 'sandboxMode'?: boolean;
19
+ 'code': string;
20
+ /**
21
+ * Nom Python de l\'enum
22
+ */
23
+ 'name': string;
24
+ /**
25
+ * Description
26
+ */
27
+ 'description': string;
24
28
  }
@@ -9,16 +9,21 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ActionCodeInfo } from './action-code-info';
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
+ * Liste des codes action disponibles.
14
15
  */
15
- export interface FactureElectroniqueRestApiSchemasProcessingChorusProCredentials {
16
- 'pisteClientId'?: string | null;
17
- 'pisteClientSecret'?: string | null;
18
- 'chorusLogin'?: string | null;
19
- 'chorusPassword'?: string | null;
16
+ export interface ActionCodesResponse {
20
17
  /**
21
- * [MODE 2] Use sandbox mode (default: True)
18
+ * Liste des codes action
22
19
  */
23
- 'sandboxMode'?: boolean;
20
+ 'codes': Array<ActionCodeInfo>;
21
+ /**
22
+ * Nombre de codes
23
+ */
24
+ 'count': number;
25
+ /**
26
+ * Règle source
27
+ */
28
+ 'source'?: string;
24
29
  }