@factpulse/sdk 4.0.0 → 4.0.1

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 (172) hide show
  1. package/.openapi-generator/FILES +30 -6
  2. package/.openapi-generator/VERSION +1 -1
  3. package/CHANGELOG.md +5 -9
  4. package/api/cdarcycle-de-vie-api.ts +186 -86
  5. package/api/client-management-api.ts +672 -0
  6. package/api/downloads-api.ts +0 -152
  7. package/api.ts +1 -0
  8. package/dist/api/cdarcycle-de-vie-api.d.ts +93 -50
  9. package/dist/api/cdarcycle-de-vie-api.js +174 -80
  10. package/dist/api/client-management-api.d.ts +309 -0
  11. package/dist/api/client-management-api.js +642 -0
  12. package/dist/api/downloads-api.d.ts +0 -68
  13. package/dist/api/downloads-api.js +0 -145
  14. package/dist/api.d.ts +1 -0
  15. package/dist/api.js +1 -0
  16. package/dist/esm/api/cdarcycle-de-vie-api.d.ts +93 -50
  17. package/dist/esm/api/cdarcycle-de-vie-api.js +174 -80
  18. package/dist/esm/api/client-management-api.d.ts +309 -0
  19. package/dist/esm/api/client-management-api.js +632 -0
  20. package/dist/esm/api/downloads-api.d.ts +0 -68
  21. package/dist/esm/api/downloads-api.js +0 -145
  22. package/dist/esm/api.d.ts +1 -0
  23. package/dist/esm/api.js +1 -0
  24. package/dist/esm/models/allowance-charge.d.ts +2 -2
  25. package/dist/esm/models/amount.d.ts +1 -1
  26. package/dist/esm/models/amount1.d.ts +1 -1
  27. package/dist/esm/models/amount2.d.ts +16 -0
  28. package/dist/esm/models/{body-submit-cdar-xml-api-v1-cdar-submit-xml-post.d.ts → client-activate-response.d.ts} +16 -5
  29. package/dist/esm/models/client-create-request.d.ts +22 -0
  30. package/dist/esm/models/client-create-request.js +14 -0
  31. package/dist/esm/models/client-detail.d.ts +48 -0
  32. package/dist/esm/models/client-detail.js +14 -0
  33. package/dist/esm/models/client-list-response.d.ts +33 -0
  34. package/dist/esm/models/client-list-response.js +14 -0
  35. package/dist/esm/models/client-summary.d.ts +48 -0
  36. package/dist/esm/models/client-summary.js +14 -0
  37. package/dist/esm/models/client-update-request.d.ts +19 -0
  38. package/dist/esm/models/client-update-request.js +14 -0
  39. package/dist/esm/models/encaissee-request.d.ts +39 -0
  40. package/dist/esm/models/encaissee-request.js +14 -0
  41. package/dist/esm/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.d.ts +22 -0
  42. package/dist/esm/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.js +23 -0
  43. package/dist/esm/models/index.d.ts +14 -3
  44. package/dist/esm/models/index.js +14 -3
  45. package/dist/esm/models/invoice-input.d.ts +2 -2
  46. package/dist/esm/models/invoice-type-code.d.ts +65 -6
  47. package/dist/esm/models/invoice-type-code.js +65 -6
  48. package/dist/esm/models/payment-amount-by-rate.d.ts +2 -2
  49. package/dist/esm/models/pdpconfig-response.d.ts +34 -0
  50. package/dist/esm/models/pdpconfig-response.js +14 -0
  51. package/dist/esm/models/pdpconfig-update-request.d.ts +40 -0
  52. package/dist/esm/models/pdpconfig-update-request.js +14 -0
  53. package/dist/esm/models/refusee-request.d.ts +38 -0
  54. package/dist/esm/models/refusee-request.js +14 -0
  55. package/dist/esm/models/{body-submit-cdar-api-v1-cdar-submit-post.d.ts → secret-status.d.ts} +12 -5
  56. package/dist/esm/models/secret-status.js +14 -0
  57. package/dist/esm/models/simplified-cdarresponse.d.ts +36 -0
  58. package/dist/esm/models/simplified-cdarresponse.js +14 -0
  59. package/dist/esm/models/simplified-invoice-data.d.ts +2 -2
  60. package/dist/esm/models/submit-cdarrequest.d.ts +4 -0
  61. package/dist/esm/models/submit-cdarxmlrequest.d.ts +4 -0
  62. package/dist/esm/src/helpers/client.d.ts +3 -1
  63. package/dist/esm/src/helpers/client.js +28 -7
  64. package/dist/esm/src/helpers/exceptions.d.ts +3 -1
  65. package/dist/esm/src/helpers/exceptions.js +7 -1
  66. package/dist/models/allowance-charge.d.ts +2 -2
  67. package/dist/models/amount.d.ts +1 -1
  68. package/dist/models/amount1.d.ts +1 -1
  69. package/dist/models/amount2.d.ts +16 -0
  70. package/dist/models/{body-submit-cdar-xml-api-v1-cdar-submit-xml-post.d.ts → client-activate-response.d.ts} +16 -5
  71. package/dist/models/client-create-request.d.ts +22 -0
  72. package/dist/models/client-create-request.js +15 -0
  73. package/dist/models/client-detail.d.ts +48 -0
  74. package/dist/models/client-detail.js +15 -0
  75. package/dist/models/client-list-response.d.ts +33 -0
  76. package/dist/models/client-list-response.js +15 -0
  77. package/dist/models/client-summary.d.ts +48 -0
  78. package/dist/models/client-summary.js +15 -0
  79. package/dist/models/client-update-request.d.ts +19 -0
  80. package/dist/models/client-update-request.js +15 -0
  81. package/dist/models/encaissee-request.d.ts +39 -0
  82. package/dist/models/encaissee-request.js +15 -0
  83. package/dist/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.d.ts +22 -0
  84. package/dist/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.js +26 -0
  85. package/dist/models/index.d.ts +14 -3
  86. package/dist/models/index.js +14 -3
  87. package/dist/models/invoice-input.d.ts +2 -2
  88. package/dist/models/invoice-type-code.d.ts +65 -6
  89. package/dist/models/invoice-type-code.js +65 -6
  90. package/dist/models/payment-amount-by-rate.d.ts +2 -2
  91. package/dist/models/pdpconfig-response.d.ts +34 -0
  92. package/dist/models/pdpconfig-response.js +15 -0
  93. package/dist/models/pdpconfig-update-request.d.ts +40 -0
  94. package/dist/models/pdpconfig-update-request.js +15 -0
  95. package/dist/models/refusee-request.d.ts +38 -0
  96. package/dist/models/refusee-request.js +15 -0
  97. package/dist/models/{body-submit-cdar-api-v1-cdar-submit-post.d.ts → secret-status.d.ts} +12 -5
  98. package/dist/models/secret-status.js +15 -0
  99. package/dist/models/simplified-cdarresponse.d.ts +36 -0
  100. package/dist/models/simplified-cdarresponse.js +15 -0
  101. package/dist/models/simplified-invoice-data.d.ts +2 -2
  102. package/dist/models/submit-cdarrequest.d.ts +4 -0
  103. package/dist/models/submit-cdarxmlrequest.d.ts +4 -0
  104. package/dist/src/helpers/client.d.ts +3 -1
  105. package/dist/src/helpers/client.js +61 -7
  106. package/dist/src/helpers/exceptions.d.ts +3 -1
  107. package/dist/src/helpers/exceptions.js +7 -1
  108. package/docs/AllowanceCharge.md +1 -1
  109. package/docs/Amount.md +1 -1
  110. package/docs/Amount1.md +1 -1
  111. package/docs/Amount2.md +19 -0
  112. package/docs/CDARCycleDeVieApi.md +126 -30
  113. package/docs/ClientActivateResponse.md +25 -0
  114. package/docs/ClientCreateRequest.md +25 -0
  115. package/docs/ClientDetail.md +41 -0
  116. package/docs/ClientListResponse.md +27 -0
  117. package/docs/ClientManagementApi.md +483 -0
  118. package/docs/ClientSummary.md +41 -0
  119. package/docs/ClientUpdateRequest.md +25 -0
  120. package/docs/DownloadsApi.md +0 -115
  121. package/docs/EncaisseeRequest.md +39 -0
  122. package/docs/FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.md +17 -0
  123. package/docs/InvoiceInput.md +1 -1
  124. package/docs/InvoiceTypeCode.md +28 -6
  125. package/docs/PDPConfigResponse.md +47 -0
  126. package/docs/PDPConfigUpdateRequest.md +31 -0
  127. package/docs/PaymentAmountByRate.md +1 -1
  128. package/docs/RefuseeRequest.md +39 -0
  129. package/docs/SecretStatus.md +23 -0
  130. package/docs/SimplifiedCDARResponse.md +29 -0
  131. package/docs/SimplifiedInvoiceData.md +1 -1
  132. package/docs/SubmitCDARRequest.md +8 -0
  133. package/docs/SubmitCDARXMLRequest.md +8 -0
  134. package/models/allowance-charge.ts +2 -2
  135. package/models/amount.ts +1 -1
  136. package/models/amount1.ts +1 -1
  137. package/models/amount2.ts +22 -0
  138. package/models/client-activate-response.ts +34 -0
  139. package/models/client-create-request.ts +28 -0
  140. package/models/client-detail.ts +54 -0
  141. package/models/{body-submit-cdar-api-v1-cdar-submit-post.ts → client-list-response.ts} +21 -7
  142. package/models/client-summary.ts +54 -0
  143. package/models/client-update-request.ts +25 -0
  144. package/models/encaissee-request.ts +47 -0
  145. package/models/{body-submit-cdar-xml-api-v1-cdar-submit-xml-post.ts → facture-electronique-rest-api-schemas-ereporting-invoice-type-code.ts} +16 -11
  146. package/models/index.ts +14 -3
  147. package/models/invoice-input.ts +2 -2
  148. package/models/invoice-type-code.ts +65 -6
  149. package/models/payment-amount-by-rate.ts +2 -2
  150. package/models/pdpconfig-response.ts +42 -0
  151. package/models/pdpconfig-update-request.ts +46 -0
  152. package/models/refusee-request.ts +44 -0
  153. package/models/secret-status.ts +30 -0
  154. package/models/simplified-cdarresponse.ts +42 -0
  155. package/models/simplified-invoice-data.ts +2 -2
  156. package/models/submit-cdarrequest.ts +4 -0
  157. package/models/submit-cdarxmlrequest.ts +4 -0
  158. package/package.json +1 -1
  159. package/src/helpers/client.ts +24 -6
  160. package/src/helpers/exceptions.ts +9 -1
  161. package/dist/esm/models/facture-electronique-models-invoice-type-code.d.ts +0 -81
  162. package/dist/esm/models/facture-electronique-models-invoice-type-code.js +0 -82
  163. package/dist/models/facture-electronique-models-invoice-type-code.d.ts +0 -81
  164. package/dist/models/facture-electronique-models-invoice-type-code.js +0 -85
  165. package/docs/BodySubmitCdarApiV1CdarSubmitPost.md +0 -22
  166. package/docs/BodySubmitCdarXmlApiV1CdarSubmitXmlPost.md +0 -22
  167. package/docs/FactureElectroniqueModelsInvoiceTypeCode.md +0 -39
  168. package/models/facture-electronique-models-invoice-type-code.ts +0 -91
  169. /package/dist/esm/models/{body-submit-cdar-api-v1-cdar-submit-post.js → amount2.js} +0 -0
  170. /package/dist/esm/models/{body-submit-cdar-xml-api-v1-cdar-submit-xml-post.js → client-activate-response.js} +0 -0
  171. /package/dist/models/{body-submit-cdar-api-v1-cdar-submit-post.js → amount2.js} +0 -0
  172. /package/dist/models/{body-submit-cdar-xml-api-v1-cdar-submit-xml-post.js → client-activate-response.js} +0 -0
@@ -24,14 +24,6 @@ export declare const DownloadsApiAxiosParamCreator: (configuration?: Configurati
24
24
  * @throws {RequiredError}
25
25
  */
26
26
  checkFileApiV1DownloadDownloadIdHead: (downloadId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
27
- /**
28
- * Check if a temporary file exists and get its metadata without downloading. Useful for: - Verifying a download URL is still valid - Getting file size before downloading - Checking expiration time **Security**: Requires authentication, only file owner can check.
29
- * @summary Check if a file exists
30
- * @param {string} downloadId
31
- * @param {*} [options] Override http request option.
32
- * @throws {RequiredError}
33
- */
34
- checkFileApiV1DownloadDownloadIdHead_1: (downloadId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
35
27
  /**
36
28
  * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
37
29
  * @summary Download a temporary file
@@ -41,15 +33,6 @@ export declare const DownloadsApiAxiosParamCreator: (configuration?: Configurati
41
33
  * @throws {RequiredError}
42
34
  */
43
35
  downloadFileApiV1DownloadDownloadIdGet: (downloadId: string, deleteAfter?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
44
- /**
45
- * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
46
- * @summary Download a temporary file
47
- * @param {string} downloadId
48
- * @param {boolean} [deleteAfter] If true, delete the file after download (one-time download)
49
- * @param {*} [options] Override http request option.
50
- * @throws {RequiredError}
51
- */
52
- downloadFileApiV1DownloadDownloadIdGet_2: (downloadId: string, deleteAfter?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
53
36
  };
54
37
  /**
55
38
  * DownloadsApi - functional programming interface
@@ -63,14 +46,6 @@ export declare const DownloadsApiFp: (configuration?: Configuration) => {
63
46
  * @throws {RequiredError}
64
47
  */
65
48
  checkFileApiV1DownloadDownloadIdHead(downloadId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
66
- /**
67
- * Check if a temporary file exists and get its metadata without downloading. Useful for: - Verifying a download URL is still valid - Getting file size before downloading - Checking expiration time **Security**: Requires authentication, only file owner can check.
68
- * @summary Check if a file exists
69
- * @param {string} downloadId
70
- * @param {*} [options] Override http request option.
71
- * @throws {RequiredError}
72
- */
73
- checkFileApiV1DownloadDownloadIdHead_1(downloadId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
74
49
  /**
75
50
  * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
76
51
  * @summary Download a temporary file
@@ -80,15 +55,6 @@ export declare const DownloadsApiFp: (configuration?: Configuration) => {
80
55
  * @throws {RequiredError}
81
56
  */
82
57
  downloadFileApiV1DownloadDownloadIdGet(downloadId: string, deleteAfter?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
83
- /**
84
- * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
85
- * @summary Download a temporary file
86
- * @param {string} downloadId
87
- * @param {boolean} [deleteAfter] If true, delete the file after download (one-time download)
88
- * @param {*} [options] Override http request option.
89
- * @throws {RequiredError}
90
- */
91
- downloadFileApiV1DownloadDownloadIdGet_2(downloadId: string, deleteAfter?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
92
58
  };
93
59
  /**
94
60
  * DownloadsApi - factory interface
@@ -102,14 +68,6 @@ export declare const DownloadsApiFactory: (configuration?: Configuration, basePa
102
68
  * @throws {RequiredError}
103
69
  */
104
70
  checkFileApiV1DownloadDownloadIdHead(downloadId: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
105
- /**
106
- * Check if a temporary file exists and get its metadata without downloading. Useful for: - Verifying a download URL is still valid - Getting file size before downloading - Checking expiration time **Security**: Requires authentication, only file owner can check.
107
- * @summary Check if a file exists
108
- * @param {string} downloadId
109
- * @param {*} [options] Override http request option.
110
- * @throws {RequiredError}
111
- */
112
- checkFileApiV1DownloadDownloadIdHead_1(downloadId: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
113
71
  /**
114
72
  * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
115
73
  * @summary Download a temporary file
@@ -119,15 +77,6 @@ export declare const DownloadsApiFactory: (configuration?: Configuration, basePa
119
77
  * @throws {RequiredError}
120
78
  */
121
79
  downloadFileApiV1DownloadDownloadIdGet(downloadId: string, deleteAfter?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<any>;
122
- /**
123
- * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
124
- * @summary Download a temporary file
125
- * @param {string} downloadId
126
- * @param {boolean} [deleteAfter] If true, delete the file after download (one-time download)
127
- * @param {*} [options] Override http request option.
128
- * @throws {RequiredError}
129
- */
130
- downloadFileApiV1DownloadDownloadIdGet_2(downloadId: string, deleteAfter?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<any>;
131
80
  };
132
81
  /**
133
82
  * DownloadsApi - object-oriented interface
@@ -141,14 +90,6 @@ export declare class DownloadsApi extends BaseAPI {
141
90
  * @throws {RequiredError}
142
91
  */
143
92
  checkFileApiV1DownloadDownloadIdHead(downloadId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
144
- /**
145
- * Check if a temporary file exists and get its metadata without downloading. Useful for: - Verifying a download URL is still valid - Getting file size before downloading - Checking expiration time **Security**: Requires authentication, only file owner can check.
146
- * @summary Check if a file exists
147
- * @param {string} downloadId
148
- * @param {*} [options] Override http request option.
149
- * @throws {RequiredError}
150
- */
151
- checkFileApiV1DownloadDownloadIdHead_1(downloadId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
152
93
  /**
153
94
  * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
154
95
  * @summary Download a temporary file
@@ -158,13 +99,4 @@ export declare class DownloadsApi extends BaseAPI {
158
99
  * @throws {RequiredError}
159
100
  */
160
101
  downloadFileApiV1DownloadDownloadIdGet(downloadId: string, deleteAfter?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
161
- /**
162
- * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
163
- * @summary Download a temporary file
164
- * @param {string} downloadId
165
- * @param {boolean} [deleteAfter] If true, delete the file after download (one-time download)
166
- * @param {*} [options] Override http request option.
167
- * @throws {RequiredError}
168
- */
169
- downloadFileApiV1DownloadDownloadIdGet_2(downloadId: string, deleteAfter?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
170
102
  }
@@ -70,39 +70,6 @@ const DownloadsApiAxiosParamCreator = function (configuration) {
70
70
  options: localVarRequestOptions,
71
71
  };
72
72
  }),
73
- /**
74
- * Check if a temporary file exists and get its metadata without downloading. Useful for: - Verifying a download URL is still valid - Getting file size before downloading - Checking expiration time **Security**: Requires authentication, only file owner can check.
75
- * @summary Check if a file exists
76
- * @param {string} downloadId
77
- * @param {*} [options] Override http request option.
78
- * @throws {RequiredError}
79
- */
80
- checkFileApiV1DownloadDownloadIdHead_1: (downloadId_1, ...args_1) => __awaiter(this, [downloadId_1, ...args_1], void 0, function* (downloadId, options = {}) {
81
- // verify required parameter 'downloadId' is not null or undefined
82
- (0, common_1.assertParamExists)('checkFileApiV1DownloadDownloadIdHead_1', 'downloadId', downloadId);
83
- const localVarPath = `/api/v1/download/{download_id}`
84
- .replace(`{${"download_id"}}`, encodeURIComponent(String(downloadId)));
85
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
86
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
87
- let baseOptions;
88
- if (configuration) {
89
- baseOptions = configuration.baseOptions;
90
- }
91
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'HEAD' }, baseOptions), options);
92
- const localVarHeaderParameter = {};
93
- const localVarQueryParameter = {};
94
- // authentication HTTPBearer required
95
- // http bearer authentication required
96
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
97
- localVarHeaderParameter['Accept'] = 'application/json';
98
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
99
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
100
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
101
- return {
102
- url: (0, common_1.toPathString)(localVarUrlObj),
103
- options: localVarRequestOptions,
104
- };
105
- }),
106
73
  /**
107
74
  * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
108
75
  * @summary Download a temporary file
@@ -140,43 +107,6 @@ const DownloadsApiAxiosParamCreator = function (configuration) {
140
107
  options: localVarRequestOptions,
141
108
  };
142
109
  }),
143
- /**
144
- * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
145
- * @summary Download a temporary file
146
- * @param {string} downloadId
147
- * @param {boolean} [deleteAfter] If true, delete the file after download (one-time download)
148
- * @param {*} [options] Override http request option.
149
- * @throws {RequiredError}
150
- */
151
- downloadFileApiV1DownloadDownloadIdGet_2: (downloadId_1, deleteAfter_1, ...args_1) => __awaiter(this, [downloadId_1, deleteAfter_1, ...args_1], void 0, function* (downloadId, deleteAfter, options = {}) {
152
- // verify required parameter 'downloadId' is not null or undefined
153
- (0, common_1.assertParamExists)('downloadFileApiV1DownloadDownloadIdGet_2', 'downloadId', downloadId);
154
- const localVarPath = `/api/v1/download/{download_id}`
155
- .replace(`{${"download_id"}}`, encodeURIComponent(String(downloadId)));
156
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
157
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
158
- let baseOptions;
159
- if (configuration) {
160
- baseOptions = configuration.baseOptions;
161
- }
162
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
163
- const localVarHeaderParameter = {};
164
- const localVarQueryParameter = {};
165
- // authentication HTTPBearer required
166
- // http bearer authentication required
167
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
168
- if (deleteAfter !== undefined) {
169
- localVarQueryParameter['delete_after'] = deleteAfter;
170
- }
171
- localVarHeaderParameter['Accept'] = 'application/json,application/pdf,application/xml,application/octet-stream';
172
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
173
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
175
- return {
176
- url: (0, common_1.toPathString)(localVarUrlObj),
177
- options: localVarRequestOptions,
178
- };
179
- }),
180
110
  };
181
111
  };
182
112
  exports.DownloadsApiAxiosParamCreator = DownloadsApiAxiosParamCreator;
@@ -202,22 +132,6 @@ const DownloadsApiFp = function (configuration) {
202
132
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
203
133
  });
204
134
  },
205
- /**
206
- * Check if a temporary file exists and get its metadata without downloading. Useful for: - Verifying a download URL is still valid - Getting file size before downloading - Checking expiration time **Security**: Requires authentication, only file owner can check.
207
- * @summary Check if a file exists
208
- * @param {string} downloadId
209
- * @param {*} [options] Override http request option.
210
- * @throws {RequiredError}
211
- */
212
- checkFileApiV1DownloadDownloadIdHead_1(downloadId, options) {
213
- return __awaiter(this, void 0, void 0, function* () {
214
- var _a, _b, _c;
215
- const localVarAxiosArgs = yield localVarAxiosParamCreator.checkFileApiV1DownloadDownloadIdHead_1(downloadId, options);
216
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
217
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DownloadsApi.checkFileApiV1DownloadDownloadIdHead_1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
218
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
219
- });
220
- },
221
135
  /**
222
136
  * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
223
137
  * @summary Download a temporary file
@@ -235,23 +149,6 @@ const DownloadsApiFp = function (configuration) {
235
149
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
236
150
  });
237
151
  },
238
- /**
239
- * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
240
- * @summary Download a temporary file
241
- * @param {string} downloadId
242
- * @param {boolean} [deleteAfter] If true, delete the file after download (one-time download)
243
- * @param {*} [options] Override http request option.
244
- * @throws {RequiredError}
245
- */
246
- downloadFileApiV1DownloadDownloadIdGet_2(downloadId, deleteAfter, options) {
247
- return __awaiter(this, void 0, void 0, function* () {
248
- var _a, _b, _c;
249
- const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadFileApiV1DownloadDownloadIdGet_2(downloadId, deleteAfter, options);
250
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
251
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DownloadsApi.downloadFileApiV1DownloadDownloadIdGet_2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
252
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
253
- });
254
- },
255
152
  };
256
153
  };
257
154
  exports.DownloadsApiFp = DownloadsApiFp;
@@ -271,16 +168,6 @@ const DownloadsApiFactory = function (configuration, basePath, axios) {
271
168
  checkFileApiV1DownloadDownloadIdHead(downloadId, options) {
272
169
  return localVarFp.checkFileApiV1DownloadDownloadIdHead(downloadId, options).then((request) => request(axios, basePath));
273
170
  },
274
- /**
275
- * Check if a temporary file exists and get its metadata without downloading. Useful for: - Verifying a download URL is still valid - Getting file size before downloading - Checking expiration time **Security**: Requires authentication, only file owner can check.
276
- * @summary Check if a file exists
277
- * @param {string} downloadId
278
- * @param {*} [options] Override http request option.
279
- * @throws {RequiredError}
280
- */
281
- checkFileApiV1DownloadDownloadIdHead_1(downloadId, options) {
282
- return localVarFp.checkFileApiV1DownloadDownloadIdHead_1(downloadId, options).then((request) => request(axios, basePath));
283
- },
284
171
  /**
285
172
  * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
286
173
  * @summary Download a temporary file
@@ -292,17 +179,6 @@ const DownloadsApiFactory = function (configuration, basePath, axios) {
292
179
  downloadFileApiV1DownloadDownloadIdGet(downloadId, deleteAfter, options) {
293
180
  return localVarFp.downloadFileApiV1DownloadDownloadIdGet(downloadId, deleteAfter, options).then((request) => request(axios, basePath));
294
181
  },
295
- /**
296
- * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
297
- * @summary Download a temporary file
298
- * @param {string} downloadId
299
- * @param {boolean} [deleteAfter] If true, delete the file after download (one-time download)
300
- * @param {*} [options] Override http request option.
301
- * @throws {RequiredError}
302
- */
303
- downloadFileApiV1DownloadDownloadIdGet_2(downloadId, deleteAfter, options) {
304
- return localVarFp.downloadFileApiV1DownloadDownloadIdGet_2(downloadId, deleteAfter, options).then((request) => request(axios, basePath));
305
- },
306
182
  };
307
183
  };
308
184
  exports.DownloadsApiFactory = DownloadsApiFactory;
@@ -320,16 +196,6 @@ class DownloadsApi extends base_1.BaseAPI {
320
196
  checkFileApiV1DownloadDownloadIdHead(downloadId, options) {
321
197
  return (0, exports.DownloadsApiFp)(this.configuration).checkFileApiV1DownloadDownloadIdHead(downloadId, options).then((request) => request(this.axios, this.basePath));
322
198
  }
323
- /**
324
- * Check if a temporary file exists and get its metadata without downloading. Useful for: - Verifying a download URL is still valid - Getting file size before downloading - Checking expiration time **Security**: Requires authentication, only file owner can check.
325
- * @summary Check if a file exists
326
- * @param {string} downloadId
327
- * @param {*} [options] Override http request option.
328
- * @throws {RequiredError}
329
- */
330
- checkFileApiV1DownloadDownloadIdHead_1(downloadId, options) {
331
- return (0, exports.DownloadsApiFp)(this.configuration).checkFileApiV1DownloadDownloadIdHead_1(downloadId, options).then((request) => request(this.axios, this.basePath));
332
- }
333
199
  /**
334
200
  * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
335
201
  * @summary Download a temporary file
@@ -341,16 +207,5 @@ class DownloadsApi extends base_1.BaseAPI {
341
207
  downloadFileApiV1DownloadDownloadIdGet(downloadId, deleteAfter, options) {
342
208
  return (0, exports.DownloadsApiFp)(this.configuration).downloadFileApiV1DownloadDownloadIdGet(downloadId, deleteAfter, options).then((request) => request(this.axios, this.basePath));
343
209
  }
344
- /**
345
- * Download a file stored temporarily after asynchronous processing. **Usage**: - This URL is provided in webhook notifications when using `webhook_mode: \"download_url\"` - Files are automatically deleted after 1 hour - Each file can only be downloaded until it expires **Security**: - Requires a valid JWT token - Only the user who initiated the task can download the file
346
- * @summary Download a temporary file
347
- * @param {string} downloadId
348
- * @param {boolean} [deleteAfter] If true, delete the file after download (one-time download)
349
- * @param {*} [options] Override http request option.
350
- * @throws {RequiredError}
351
- */
352
- downloadFileApiV1DownloadDownloadIdGet_2(downloadId, deleteAfter, options) {
353
- return (0, exports.DownloadsApiFp)(this.configuration).downloadFileApiV1DownloadDownloadIdGet_2(downloadId, deleteAfter, options).then((request) => request(this.axios, this.basePath));
354
- }
355
210
  }
356
211
  exports.DownloadsApi = DownloadsApi;
package/dist/api.d.ts CHANGED
@@ -14,6 +14,7 @@ export * from './api/afnorpdppadirectory-service-api';
14
14
  export * from './api/afnorpdppaflow-service-api';
15
15
  export * from './api/cdarcycle-de-vie-api';
16
16
  export * from './api/chorus-pro-api';
17
+ export * from './api/client-management-api';
17
18
  export * from './api/document-conversion-api';
18
19
  export * from './api/downloads-api';
19
20
  export * from './api/ereporting-api';
package/dist/api.js CHANGED
@@ -32,6 +32,7 @@ __exportStar(require("./api/afnorpdppadirectory-service-api"), exports);
32
32
  __exportStar(require("./api/afnorpdppaflow-service-api"), exports);
33
33
  __exportStar(require("./api/cdarcycle-de-vie-api"), exports);
34
34
  __exportStar(require("./api/chorus-pro-api"), exports);
35
+ __exportStar(require("./api/client-management-api"), exports);
35
36
  __exportStar(require("./api/document-conversion-api"), exports);
36
37
  __exportStar(require("./api/downloads-api"), exports);
37
38
  __exportStar(require("./api/ereporting-api"), exports);
@@ -13,13 +13,16 @@ import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { ActionCodesResponse } from '../models';
16
- import type { BodySubmitCdarApiV1CdarSubmitPost } from '../models';
17
- import type { BodySubmitCdarXmlApiV1CdarSubmitXmlPost } from '../models';
18
16
  import type { CreateCDARRequest } from '../models';
17
+ import type { EncaisseeRequest } from '../models';
19
18
  import type { GenerateCDARResponse } from '../models';
20
19
  import type { ReasonCodesResponse } from '../models';
20
+ import type { RefuseeRequest } from '../models';
21
+ import type { SimplifiedCDARResponse } from '../models';
21
22
  import type { StatusCodesResponse } from '../models';
23
+ import type { SubmitCDARRequest } from '../models';
22
24
  import type { SubmitCDARResponse } from '../models';
25
+ import type { SubmitCDARXMLRequest } from '../models';
23
26
  import type { ValidateCDARRequest } from '../models';
24
27
  import type { ValidateCDARResponse } from '../models';
25
28
  /**
@@ -56,27 +59,37 @@ export declare const CDARCycleDeVieApiAxiosParamCreator: (configuration?: Config
56
59
  */
57
60
  getStatusCodesApiV1CdarStatusCodesGet: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
58
61
  /**
59
- * 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)
62
+ * Génère un message CDAR et le soumet à la plateforme PA/PDP. **Stratégies d\'authentification:** 1. **JWT avec client_uid** (recommandé): credentials PDP récupérés du backend 2. **Zero-storage**: Fournir pdpFlowServiceUrl, pdpClientId, pdpClientSecret dans la requête **Types de flux (flowType):** - `CustomerInvoiceLC`: Cycle de vie côté client (acheteur) - `SupplierInvoiceLC`: Cycle de vie côté fournisseur (vendeur)
60
63
  * @summary Générer et soumettre un message CDAR
61
- * @param {number} userId
62
- * @param {BodySubmitCdarApiV1CdarSubmitPost} bodySubmitCdarApiV1CdarSubmitPost
63
- * @param {string | null} [jwtToken]
64
- * @param {string | null} [clientUid]
64
+ * @param {SubmitCDARRequest} submitCDARRequest
65
65
  * @param {*} [options] Override http request option.
66
66
  * @throws {RequiredError}
67
67
  */
68
- submitCdarApiV1CdarSubmitPost: (userId: number, bodySubmitCdarApiV1CdarSubmitPost: BodySubmitCdarApiV1CdarSubmitPost, jwtToken?: string | null, clientUid?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
68
+ submitCdarApiV1CdarSubmitPost: (submitCDARRequest: SubmitCDARRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
69
69
  /**
70
- * 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.
70
+ * 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. **Stratégies d\'authentification:** 1. **JWT avec client_uid** (recommandé): credentials PDP récupérés du backend 2. **Zero-storage**: Fournir pdpFlowServiceUrl, pdpClientId, pdpClientSecret dans la requête
71
71
  * @summary Soumettre un XML CDAR pré-généré
72
- * @param {number} userId
73
- * @param {BodySubmitCdarXmlApiV1CdarSubmitXmlPost} bodySubmitCdarXmlApiV1CdarSubmitXmlPost
74
- * @param {string | null} [jwtToken]
75
- * @param {string | null} [clientUid]
72
+ * @param {SubmitCDARXMLRequest} submitCDARXMLRequest
76
73
  * @param {*} [options] Override http request option.
77
74
  * @throws {RequiredError}
78
75
  */
79
- submitCdarXmlApiV1CdarSubmitXmlPost: (userId: number, bodySubmitCdarXmlApiV1CdarSubmitXmlPost: BodySubmitCdarXmlApiV1CdarSubmitXmlPost, jwtToken?: string | null, clientUid?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
76
+ submitCdarXmlApiV1CdarSubmitXmlPost: (submitCDARXMLRequest: SubmitCDARXMLRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
77
+ /**
78
+ * **Endpoint simplifié pour OD** - Soumet un statut ENCAISSÉE (212) pour une facture. Ce statut est **obligatoire pour le PPF** (BR-FR-CDV-14 requiert le montant encaissé). **Cas d\'usage:** L\'acheteur confirme le paiement d\'une facture. **Authentification:** JWT Bearer (recommandé) ou credentials PDP dans la requête.
79
+ * @summary [Simplifié] Soumettre un statut ENCAISSÉE (212)
80
+ * @param {EncaisseeRequest} encaisseeRequest
81
+ * @param {*} [options] Override http request option.
82
+ * @throws {RequiredError}
83
+ */
84
+ submitEncaisseeApiV1CdarEncaisseePost: (encaisseeRequest: EncaisseeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
85
+ /**
86
+ * **Endpoint simplifié pour OD** - Soumet un statut REFUSÉE (210) pour une facture. Ce statut est **obligatoire pour le PPF** (BR-FR-CDV-15 requiert un code motif). **Cas d\'usage:** L\'acheteur refuse une facture reçue. **Codes motif autorisés (BR-FR-CDV-CL-09):** - `TX_TVA_ERR`: Taux de TVA erroné - `MONTANTTOTAL_ERR`: Montant total erroné - `CALCUL_ERR`: Erreur de calcul - `NON_CONFORME`: Non conforme - `DOUBLON`: Doublon - `DEST_ERR`: Destinataire erroné - `TRANSAC_INC`: Transaction incomplète - `EMMET_INC`: Émetteur inconnu - `CONTRAT_TERM`: Contrat terminé - `DOUBLE_FACT`: Double facturation - `CMD_ERR`: Commande erronée - `ADR_ERR`: Adresse erronée - `REF_CT_ABSENT`: Référence contrat absente **Authentification:** JWT Bearer (recommandé) ou credentials PDP dans la requête.
87
+ * @summary [Simplifié] Soumettre un statut REFUSÉE (210)
88
+ * @param {RefuseeRequest} refuseeRequest
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ submitRefuseeApiV1CdarRefuseePost: (refuseeRequest: RefuseeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
80
93
  /**
81
94
  * 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-*
82
95
  * @summary Valider des données CDAR
@@ -120,27 +133,37 @@ export declare const CDARCycleDeVieApiFp: (configuration?: Configuration) => {
120
133
  */
121
134
  getStatusCodesApiV1CdarStatusCodesGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StatusCodesResponse>>;
122
135
  /**
123
- * 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)
136
+ * Génère un message CDAR et le soumet à la plateforme PA/PDP. **Stratégies d\'authentification:** 1. **JWT avec client_uid** (recommandé): credentials PDP récupérés du backend 2. **Zero-storage**: Fournir pdpFlowServiceUrl, pdpClientId, pdpClientSecret dans la requête **Types de flux (flowType):** - `CustomerInvoiceLC`: Cycle de vie côté client (acheteur) - `SupplierInvoiceLC`: Cycle de vie côté fournisseur (vendeur)
124
137
  * @summary Générer et soumettre un message CDAR
125
- * @param {number} userId
126
- * @param {BodySubmitCdarApiV1CdarSubmitPost} bodySubmitCdarApiV1CdarSubmitPost
127
- * @param {string | null} [jwtToken]
128
- * @param {string | null} [clientUid]
138
+ * @param {SubmitCDARRequest} submitCDARRequest
129
139
  * @param {*} [options] Override http request option.
130
140
  * @throws {RequiredError}
131
141
  */
132
- submitCdarApiV1CdarSubmitPost(userId: number, bodySubmitCdarApiV1CdarSubmitPost: BodySubmitCdarApiV1CdarSubmitPost, jwtToken?: string | null, clientUid?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitCDARResponse>>;
142
+ submitCdarApiV1CdarSubmitPost(submitCDARRequest: SubmitCDARRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitCDARResponse>>;
133
143
  /**
134
- * 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.
144
+ * 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. **Stratégies d\'authentification:** 1. **JWT avec client_uid** (recommandé): credentials PDP récupérés du backend 2. **Zero-storage**: Fournir pdpFlowServiceUrl, pdpClientId, pdpClientSecret dans la requête
135
145
  * @summary Soumettre un XML CDAR pré-généré
136
- * @param {number} userId
137
- * @param {BodySubmitCdarXmlApiV1CdarSubmitXmlPost} bodySubmitCdarXmlApiV1CdarSubmitXmlPost
138
- * @param {string | null} [jwtToken]
139
- * @param {string | null} [clientUid]
146
+ * @param {SubmitCDARXMLRequest} submitCDARXMLRequest
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ submitCdarXmlApiV1CdarSubmitXmlPost(submitCDARXMLRequest: SubmitCDARXMLRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitCDARResponse>>;
151
+ /**
152
+ * **Endpoint simplifié pour OD** - Soumet un statut ENCAISSÉE (212) pour une facture. Ce statut est **obligatoire pour le PPF** (BR-FR-CDV-14 requiert le montant encaissé). **Cas d\'usage:** L\'acheteur confirme le paiement d\'une facture. **Authentification:** JWT Bearer (recommandé) ou credentials PDP dans la requête.
153
+ * @summary [Simplifié] Soumettre un statut ENCAISSÉE (212)
154
+ * @param {EncaisseeRequest} encaisseeRequest
155
+ * @param {*} [options] Override http request option.
156
+ * @throws {RequiredError}
157
+ */
158
+ submitEncaisseeApiV1CdarEncaisseePost(encaisseeRequest: EncaisseeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SimplifiedCDARResponse>>;
159
+ /**
160
+ * **Endpoint simplifié pour OD** - Soumet un statut REFUSÉE (210) pour une facture. Ce statut est **obligatoire pour le PPF** (BR-FR-CDV-15 requiert un code motif). **Cas d\'usage:** L\'acheteur refuse une facture reçue. **Codes motif autorisés (BR-FR-CDV-CL-09):** - `TX_TVA_ERR`: Taux de TVA erroné - `MONTANTTOTAL_ERR`: Montant total erroné - `CALCUL_ERR`: Erreur de calcul - `NON_CONFORME`: Non conforme - `DOUBLON`: Doublon - `DEST_ERR`: Destinataire erroné - `TRANSAC_INC`: Transaction incomplète - `EMMET_INC`: Émetteur inconnu - `CONTRAT_TERM`: Contrat terminé - `DOUBLE_FACT`: Double facturation - `CMD_ERR`: Commande erronée - `ADR_ERR`: Adresse erronée - `REF_CT_ABSENT`: Référence contrat absente **Authentification:** JWT Bearer (recommandé) ou credentials PDP dans la requête.
161
+ * @summary [Simplifié] Soumettre un statut REFUSÉE (210)
162
+ * @param {RefuseeRequest} refuseeRequest
140
163
  * @param {*} [options] Override http request option.
141
164
  * @throws {RequiredError}
142
165
  */
143
- submitCdarXmlApiV1CdarSubmitXmlPost(userId: number, bodySubmitCdarXmlApiV1CdarSubmitXmlPost: BodySubmitCdarXmlApiV1CdarSubmitXmlPost, jwtToken?: string | null, clientUid?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubmitCDARResponse>>;
166
+ submitRefuseeApiV1CdarRefuseePost(refuseeRequest: RefuseeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SimplifiedCDARResponse>>;
144
167
  /**
145
168
  * 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-*
146
169
  * @summary Valider des données CDAR
@@ -184,27 +207,37 @@ export declare const CDARCycleDeVieApiFactory: (configuration?: Configuration, b
184
207
  */
185
208
  getStatusCodesApiV1CdarStatusCodesGet(options?: RawAxiosRequestConfig): AxiosPromise<StatusCodesResponse>;
186
209
  /**
187
- * 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)
210
+ * Génère un message CDAR et le soumet à la plateforme PA/PDP. **Stratégies d\'authentification:** 1. **JWT avec client_uid** (recommandé): credentials PDP récupérés du backend 2. **Zero-storage**: Fournir pdpFlowServiceUrl, pdpClientId, pdpClientSecret dans la requête **Types de flux (flowType):** - `CustomerInvoiceLC`: Cycle de vie côté client (acheteur) - `SupplierInvoiceLC`: Cycle de vie côté fournisseur (vendeur)
188
211
  * @summary Générer et soumettre un message CDAR
189
- * @param {number} userId
190
- * @param {BodySubmitCdarApiV1CdarSubmitPost} bodySubmitCdarApiV1CdarSubmitPost
191
- * @param {string | null} [jwtToken]
192
- * @param {string | null} [clientUid]
212
+ * @param {SubmitCDARRequest} submitCDARRequest
193
213
  * @param {*} [options] Override http request option.
194
214
  * @throws {RequiredError}
195
215
  */
196
- submitCdarApiV1CdarSubmitPost(userId: number, bodySubmitCdarApiV1CdarSubmitPost: BodySubmitCdarApiV1CdarSubmitPost, jwtToken?: string | null, clientUid?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<SubmitCDARResponse>;
216
+ submitCdarApiV1CdarSubmitPost(submitCDARRequest: SubmitCDARRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubmitCDARResponse>;
197
217
  /**
198
- * 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.
218
+ * 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. **Stratégies d\'authentification:** 1. **JWT avec client_uid** (recommandé): credentials PDP récupérés du backend 2. **Zero-storage**: Fournir pdpFlowServiceUrl, pdpClientId, pdpClientSecret dans la requête
199
219
  * @summary Soumettre un XML CDAR pré-généré
200
- * @param {number} userId
201
- * @param {BodySubmitCdarXmlApiV1CdarSubmitXmlPost} bodySubmitCdarXmlApiV1CdarSubmitXmlPost
202
- * @param {string | null} [jwtToken]
203
- * @param {string | null} [clientUid]
220
+ * @param {SubmitCDARXMLRequest} submitCDARXMLRequest
204
221
  * @param {*} [options] Override http request option.
205
222
  * @throws {RequiredError}
206
223
  */
207
- submitCdarXmlApiV1CdarSubmitXmlPost(userId: number, bodySubmitCdarXmlApiV1CdarSubmitXmlPost: BodySubmitCdarXmlApiV1CdarSubmitXmlPost, jwtToken?: string | null, clientUid?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<SubmitCDARResponse>;
224
+ submitCdarXmlApiV1CdarSubmitXmlPost(submitCDARXMLRequest: SubmitCDARXMLRequest, options?: RawAxiosRequestConfig): AxiosPromise<SubmitCDARResponse>;
225
+ /**
226
+ * **Endpoint simplifié pour OD** - Soumet un statut ENCAISSÉE (212) pour une facture. Ce statut est **obligatoire pour le PPF** (BR-FR-CDV-14 requiert le montant encaissé). **Cas d\'usage:** L\'acheteur confirme le paiement d\'une facture. **Authentification:** JWT Bearer (recommandé) ou credentials PDP dans la requête.
227
+ * @summary [Simplifié] Soumettre un statut ENCAISSÉE (212)
228
+ * @param {EncaisseeRequest} encaisseeRequest
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ */
232
+ submitEncaisseeApiV1CdarEncaisseePost(encaisseeRequest: EncaisseeRequest, options?: RawAxiosRequestConfig): AxiosPromise<SimplifiedCDARResponse>;
233
+ /**
234
+ * **Endpoint simplifié pour OD** - Soumet un statut REFUSÉE (210) pour une facture. Ce statut est **obligatoire pour le PPF** (BR-FR-CDV-15 requiert un code motif). **Cas d\'usage:** L\'acheteur refuse une facture reçue. **Codes motif autorisés (BR-FR-CDV-CL-09):** - `TX_TVA_ERR`: Taux de TVA erroné - `MONTANTTOTAL_ERR`: Montant total erroné - `CALCUL_ERR`: Erreur de calcul - `NON_CONFORME`: Non conforme - `DOUBLON`: Doublon - `DEST_ERR`: Destinataire erroné - `TRANSAC_INC`: Transaction incomplète - `EMMET_INC`: Émetteur inconnu - `CONTRAT_TERM`: Contrat terminé - `DOUBLE_FACT`: Double facturation - `CMD_ERR`: Commande erronée - `ADR_ERR`: Adresse erronée - `REF_CT_ABSENT`: Référence contrat absente **Authentification:** JWT Bearer (recommandé) ou credentials PDP dans la requête.
235
+ * @summary [Simplifié] Soumettre un statut REFUSÉE (210)
236
+ * @param {RefuseeRequest} refuseeRequest
237
+ * @param {*} [options] Override http request option.
238
+ * @throws {RequiredError}
239
+ */
240
+ submitRefuseeApiV1CdarRefuseePost(refuseeRequest: RefuseeRequest, options?: RawAxiosRequestConfig): AxiosPromise<SimplifiedCDARResponse>;
208
241
  /**
209
242
  * 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-*
210
243
  * @summary Valider des données CDAR
@@ -248,27 +281,37 @@ export declare class CDARCycleDeVieApi extends BaseAPI {
248
281
  */
249
282
  getStatusCodesApiV1CdarStatusCodesGet(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<StatusCodesResponse, any, {}>>;
250
283
  /**
251
- * 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)
284
+ * Génère un message CDAR et le soumet à la plateforme PA/PDP. **Stratégies d\'authentification:** 1. **JWT avec client_uid** (recommandé): credentials PDP récupérés du backend 2. **Zero-storage**: Fournir pdpFlowServiceUrl, pdpClientId, pdpClientSecret dans la requête **Types de flux (flowType):** - `CustomerInvoiceLC`: Cycle de vie côté client (acheteur) - `SupplierInvoiceLC`: Cycle de vie côté fournisseur (vendeur)
252
285
  * @summary Générer et soumettre un message CDAR
253
- * @param {number} userId
254
- * @param {BodySubmitCdarApiV1CdarSubmitPost} bodySubmitCdarApiV1CdarSubmitPost
255
- * @param {string | null} [jwtToken]
256
- * @param {string | null} [clientUid]
286
+ * @param {SubmitCDARRequest} submitCDARRequest
257
287
  * @param {*} [options] Override http request option.
258
288
  * @throws {RequiredError}
259
289
  */
260
- submitCdarApiV1CdarSubmitPost(userId: number, bodySubmitCdarApiV1CdarSubmitPost: BodySubmitCdarApiV1CdarSubmitPost, jwtToken?: string | null, clientUid?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitCDARResponse, any, {}>>;
290
+ submitCdarApiV1CdarSubmitPost(submitCDARRequest: SubmitCDARRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitCDARResponse, any, {}>>;
261
291
  /**
262
- * 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.
292
+ * 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. **Stratégies d\'authentification:** 1. **JWT avec client_uid** (recommandé): credentials PDP récupérés du backend 2. **Zero-storage**: Fournir pdpFlowServiceUrl, pdpClientId, pdpClientSecret dans la requête
263
293
  * @summary Soumettre un XML CDAR pré-généré
264
- * @param {number} userId
265
- * @param {BodySubmitCdarXmlApiV1CdarSubmitXmlPost} bodySubmitCdarXmlApiV1CdarSubmitXmlPost
266
- * @param {string | null} [jwtToken]
267
- * @param {string | null} [clientUid]
294
+ * @param {SubmitCDARXMLRequest} submitCDARXMLRequest
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ submitCdarXmlApiV1CdarSubmitXmlPost(submitCDARXMLRequest: SubmitCDARXMLRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitCDARResponse, any, {}>>;
299
+ /**
300
+ * **Endpoint simplifié pour OD** - Soumet un statut ENCAISSÉE (212) pour une facture. Ce statut est **obligatoire pour le PPF** (BR-FR-CDV-14 requiert le montant encaissé). **Cas d\'usage:** L\'acheteur confirme le paiement d\'une facture. **Authentification:** JWT Bearer (recommandé) ou credentials PDP dans la requête.
301
+ * @summary [Simplifié] Soumettre un statut ENCAISSÉE (212)
302
+ * @param {EncaisseeRequest} encaisseeRequest
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ */
306
+ submitEncaisseeApiV1CdarEncaisseePost(encaisseeRequest: EncaisseeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SimplifiedCDARResponse, any, {}>>;
307
+ /**
308
+ * **Endpoint simplifié pour OD** - Soumet un statut REFUSÉE (210) pour une facture. Ce statut est **obligatoire pour le PPF** (BR-FR-CDV-15 requiert un code motif). **Cas d\'usage:** L\'acheteur refuse une facture reçue. **Codes motif autorisés (BR-FR-CDV-CL-09):** - `TX_TVA_ERR`: Taux de TVA erroné - `MONTANTTOTAL_ERR`: Montant total erroné - `CALCUL_ERR`: Erreur de calcul - `NON_CONFORME`: Non conforme - `DOUBLON`: Doublon - `DEST_ERR`: Destinataire erroné - `TRANSAC_INC`: Transaction incomplète - `EMMET_INC`: Émetteur inconnu - `CONTRAT_TERM`: Contrat terminé - `DOUBLE_FACT`: Double facturation - `CMD_ERR`: Commande erronée - `ADR_ERR`: Adresse erronée - `REF_CT_ABSENT`: Référence contrat absente **Authentification:** JWT Bearer (recommandé) ou credentials PDP dans la requête.
309
+ * @summary [Simplifié] Soumettre un statut REFUSÉE (210)
310
+ * @param {RefuseeRequest} refuseeRequest
268
311
  * @param {*} [options] Override http request option.
269
312
  * @throws {RequiredError}
270
313
  */
271
- submitCdarXmlApiV1CdarSubmitXmlPost(userId: number, bodySubmitCdarXmlApiV1CdarSubmitXmlPost: BodySubmitCdarXmlApiV1CdarSubmitXmlPost, jwtToken?: string | null, clientUid?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SubmitCDARResponse, any, {}>>;
314
+ submitRefuseeApiV1CdarRefuseePost(refuseeRequest: RefuseeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SimplifiedCDARResponse, any, {}>>;
272
315
  /**
273
316
  * 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-*
274
317
  * @summary Valider des données CDAR