@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.
- package/.openapi-generator/FILES +30 -6
- package/.openapi-generator/VERSION +1 -1
- package/CHANGELOG.md +5 -9
- package/api/cdarcycle-de-vie-api.ts +186 -86
- package/api/client-management-api.ts +672 -0
- package/api/downloads-api.ts +0 -152
- package/api.ts +1 -0
- package/dist/api/cdarcycle-de-vie-api.d.ts +93 -50
- package/dist/api/cdarcycle-de-vie-api.js +174 -80
- package/dist/api/client-management-api.d.ts +309 -0
- package/dist/api/client-management-api.js +642 -0
- package/dist/api/downloads-api.d.ts +0 -68
- package/dist/api/downloads-api.js +0 -145
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/cdarcycle-de-vie-api.d.ts +93 -50
- package/dist/esm/api/cdarcycle-de-vie-api.js +174 -80
- package/dist/esm/api/client-management-api.d.ts +309 -0
- package/dist/esm/api/client-management-api.js +632 -0
- package/dist/esm/api/downloads-api.d.ts +0 -68
- package/dist/esm/api/downloads-api.js +0 -145
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/allowance-charge.d.ts +2 -2
- package/dist/esm/models/amount.d.ts +1 -1
- package/dist/esm/models/amount1.d.ts +1 -1
- package/dist/esm/models/amount2.d.ts +16 -0
- package/dist/esm/models/{body-submit-cdar-xml-api-v1-cdar-submit-xml-post.d.ts → client-activate-response.d.ts} +16 -5
- package/dist/esm/models/client-create-request.d.ts +22 -0
- package/dist/esm/models/client-create-request.js +14 -0
- package/dist/esm/models/client-detail.d.ts +48 -0
- package/dist/esm/models/client-detail.js +14 -0
- package/dist/esm/models/client-list-response.d.ts +33 -0
- package/dist/esm/models/client-list-response.js +14 -0
- package/dist/esm/models/client-summary.d.ts +48 -0
- package/dist/esm/models/client-summary.js +14 -0
- package/dist/esm/models/client-update-request.d.ts +19 -0
- package/dist/esm/models/client-update-request.js +14 -0
- package/dist/esm/models/encaissee-request.d.ts +39 -0
- package/dist/esm/models/encaissee-request.js +14 -0
- package/dist/esm/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.d.ts +22 -0
- package/dist/esm/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.js +23 -0
- package/dist/esm/models/index.d.ts +14 -3
- package/dist/esm/models/index.js +14 -3
- package/dist/esm/models/invoice-input.d.ts +2 -2
- package/dist/esm/models/invoice-type-code.d.ts +65 -6
- package/dist/esm/models/invoice-type-code.js +65 -6
- package/dist/esm/models/payment-amount-by-rate.d.ts +2 -2
- package/dist/esm/models/pdpconfig-response.d.ts +34 -0
- package/dist/esm/models/pdpconfig-response.js +14 -0
- package/dist/esm/models/pdpconfig-update-request.d.ts +40 -0
- package/dist/esm/models/pdpconfig-update-request.js +14 -0
- package/dist/esm/models/refusee-request.d.ts +38 -0
- package/dist/esm/models/refusee-request.js +14 -0
- package/dist/esm/models/{body-submit-cdar-api-v1-cdar-submit-post.d.ts → secret-status.d.ts} +12 -5
- package/dist/esm/models/secret-status.js +14 -0
- package/dist/esm/models/simplified-cdarresponse.d.ts +36 -0
- package/dist/esm/models/simplified-cdarresponse.js +14 -0
- package/dist/esm/models/simplified-invoice-data.d.ts +2 -2
- package/dist/esm/models/submit-cdarrequest.d.ts +4 -0
- package/dist/esm/models/submit-cdarxmlrequest.d.ts +4 -0
- package/dist/esm/src/helpers/client.d.ts +3 -1
- package/dist/esm/src/helpers/client.js +28 -7
- package/dist/esm/src/helpers/exceptions.d.ts +3 -1
- package/dist/esm/src/helpers/exceptions.js +7 -1
- package/dist/models/allowance-charge.d.ts +2 -2
- package/dist/models/amount.d.ts +1 -1
- package/dist/models/amount1.d.ts +1 -1
- package/dist/models/amount2.d.ts +16 -0
- package/dist/models/{body-submit-cdar-xml-api-v1-cdar-submit-xml-post.d.ts → client-activate-response.d.ts} +16 -5
- package/dist/models/client-create-request.d.ts +22 -0
- package/dist/models/client-create-request.js +15 -0
- package/dist/models/client-detail.d.ts +48 -0
- package/dist/models/client-detail.js +15 -0
- package/dist/models/client-list-response.d.ts +33 -0
- package/dist/models/client-list-response.js +15 -0
- package/dist/models/client-summary.d.ts +48 -0
- package/dist/models/client-summary.js +15 -0
- package/dist/models/client-update-request.d.ts +19 -0
- package/dist/models/client-update-request.js +15 -0
- package/dist/models/encaissee-request.d.ts +39 -0
- package/dist/models/encaissee-request.js +15 -0
- package/dist/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.d.ts +22 -0
- package/dist/models/facture-electronique-rest-api-schemas-ereporting-invoice-type-code.js +26 -0
- package/dist/models/index.d.ts +14 -3
- package/dist/models/index.js +14 -3
- package/dist/models/invoice-input.d.ts +2 -2
- package/dist/models/invoice-type-code.d.ts +65 -6
- package/dist/models/invoice-type-code.js +65 -6
- package/dist/models/payment-amount-by-rate.d.ts +2 -2
- package/dist/models/pdpconfig-response.d.ts +34 -0
- package/dist/models/pdpconfig-response.js +15 -0
- package/dist/models/pdpconfig-update-request.d.ts +40 -0
- package/dist/models/pdpconfig-update-request.js +15 -0
- package/dist/models/refusee-request.d.ts +38 -0
- package/dist/models/refusee-request.js +15 -0
- package/dist/models/{body-submit-cdar-api-v1-cdar-submit-post.d.ts → secret-status.d.ts} +12 -5
- package/dist/models/secret-status.js +15 -0
- package/dist/models/simplified-cdarresponse.d.ts +36 -0
- package/dist/models/simplified-cdarresponse.js +15 -0
- package/dist/models/simplified-invoice-data.d.ts +2 -2
- package/dist/models/submit-cdarrequest.d.ts +4 -0
- package/dist/models/submit-cdarxmlrequest.d.ts +4 -0
- package/dist/src/helpers/client.d.ts +3 -1
- package/dist/src/helpers/client.js +61 -7
- package/dist/src/helpers/exceptions.d.ts +3 -1
- package/dist/src/helpers/exceptions.js +7 -1
- package/docs/AllowanceCharge.md +1 -1
- package/docs/Amount.md +1 -1
- package/docs/Amount1.md +1 -1
- package/docs/Amount2.md +19 -0
- package/docs/CDARCycleDeVieApi.md +126 -30
- package/docs/ClientActivateResponse.md +25 -0
- package/docs/ClientCreateRequest.md +25 -0
- package/docs/ClientDetail.md +41 -0
- package/docs/ClientListResponse.md +27 -0
- package/docs/ClientManagementApi.md +483 -0
- package/docs/ClientSummary.md +41 -0
- package/docs/ClientUpdateRequest.md +25 -0
- package/docs/DownloadsApi.md +0 -115
- package/docs/EncaisseeRequest.md +39 -0
- package/docs/FactureElectroniqueRestApiSchemasEreportingInvoiceTypeCode.md +17 -0
- package/docs/InvoiceInput.md +1 -1
- package/docs/InvoiceTypeCode.md +28 -6
- package/docs/PDPConfigResponse.md +47 -0
- package/docs/PDPConfigUpdateRequest.md +31 -0
- package/docs/PaymentAmountByRate.md +1 -1
- package/docs/RefuseeRequest.md +39 -0
- package/docs/SecretStatus.md +23 -0
- package/docs/SimplifiedCDARResponse.md +29 -0
- package/docs/SimplifiedInvoiceData.md +1 -1
- package/docs/SubmitCDARRequest.md +8 -0
- package/docs/SubmitCDARXMLRequest.md +8 -0
- package/models/allowance-charge.ts +2 -2
- package/models/amount.ts +1 -1
- package/models/amount1.ts +1 -1
- package/models/amount2.ts +22 -0
- package/models/client-activate-response.ts +34 -0
- package/models/client-create-request.ts +28 -0
- package/models/client-detail.ts +54 -0
- package/models/{body-submit-cdar-api-v1-cdar-submit-post.ts → client-list-response.ts} +21 -7
- package/models/client-summary.ts +54 -0
- package/models/client-update-request.ts +25 -0
- package/models/encaissee-request.ts +47 -0
- 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
- package/models/index.ts +14 -3
- package/models/invoice-input.ts +2 -2
- package/models/invoice-type-code.ts +65 -6
- package/models/payment-amount-by-rate.ts +2 -2
- package/models/pdpconfig-response.ts +42 -0
- package/models/pdpconfig-update-request.ts +46 -0
- package/models/refusee-request.ts +44 -0
- package/models/secret-status.ts +30 -0
- package/models/simplified-cdarresponse.ts +42 -0
- package/models/simplified-invoice-data.ts +2 -2
- package/models/submit-cdarrequest.ts +4 -0
- package/models/submit-cdarxmlrequest.ts +4 -0
- package/package.json +1 -1
- package/src/helpers/client.ts +24 -6
- package/src/helpers/exceptions.ts +9 -1
- package/dist/esm/models/facture-electronique-models-invoice-type-code.d.ts +0 -81
- package/dist/esm/models/facture-electronique-models-invoice-type-code.js +0 -82
- package/dist/models/facture-electronique-models-invoice-type-code.d.ts +0 -81
- package/dist/models/facture-electronique-models-invoice-type-code.js +0 -85
- package/docs/BodySubmitCdarApiV1CdarSubmitPost.md +0 -22
- package/docs/BodySubmitCdarXmlApiV1CdarSubmitXmlPost.md +0 -22
- package/docs/FactureElectroniqueModelsInvoiceTypeCode.md +0 -39
- package/models/facture-electronique-models-invoice-type-code.ts +0 -91
- /package/dist/esm/models/{body-submit-cdar-api-v1-cdar-submit-post.js → amount2.js} +0 -0
- /package/dist/esm/models/{body-submit-cdar-xml-api-v1-cdar-submit-xml-post.js → client-activate-response.js} +0 -0
- /package/dist/models/{body-submit-cdar-api-v1-cdar-submit-post.js → amount2.js} +0 -0
- /package/dist/models/{body-submit-cdar-xml-api-v1-cdar-submit-xml-post.js → client-activate-response.js} +0 -0
package/api/downloads-api.ts
CHANGED
|
@@ -66,44 +66,6 @@ export const DownloadsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
66
66
|
options: localVarRequestOptions,
|
|
67
67
|
};
|
|
68
68
|
},
|
|
69
|
-
/**
|
|
70
|
-
* 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.
|
|
71
|
-
* @summary Check if a file exists
|
|
72
|
-
* @param {string} downloadId
|
|
73
|
-
* @param {*} [options] Override http request option.
|
|
74
|
-
* @throws {RequiredError}
|
|
75
|
-
*/
|
|
76
|
-
checkFileApiV1DownloadDownloadIdHead_1: async (downloadId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
77
|
-
// verify required parameter 'downloadId' is not null or undefined
|
|
78
|
-
assertParamExists('checkFileApiV1DownloadDownloadIdHead_1', 'downloadId', downloadId)
|
|
79
|
-
const localVarPath = `/api/v1/download/{download_id}`
|
|
80
|
-
.replace(`{${"download_id"}}`, encodeURIComponent(String(downloadId)));
|
|
81
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
82
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
83
|
-
let baseOptions;
|
|
84
|
-
if (configuration) {
|
|
85
|
-
baseOptions = configuration.baseOptions;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
const localVarRequestOptions = { method: 'HEAD', ...baseOptions, ...options};
|
|
89
|
-
const localVarHeaderParameter = {} as any;
|
|
90
|
-
const localVarQueryParameter = {} as any;
|
|
91
|
-
|
|
92
|
-
// authentication HTTPBearer required
|
|
93
|
-
// http bearer authentication required
|
|
94
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
95
|
-
|
|
96
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
97
|
-
|
|
98
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
99
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
100
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
101
|
-
|
|
102
|
-
return {
|
|
103
|
-
url: toPathString(localVarUrlObj),
|
|
104
|
-
options: localVarRequestOptions,
|
|
105
|
-
};
|
|
106
|
-
},
|
|
107
69
|
/**
|
|
108
70
|
* 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
|
|
109
71
|
* @summary Download a temporary file
|
|
@@ -142,49 +104,6 @@ export const DownloadsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
142
104
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
143
105
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
144
106
|
|
|
145
|
-
return {
|
|
146
|
-
url: toPathString(localVarUrlObj),
|
|
147
|
-
options: localVarRequestOptions,
|
|
148
|
-
};
|
|
149
|
-
},
|
|
150
|
-
/**
|
|
151
|
-
* 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
|
|
152
|
-
* @summary Download a temporary file
|
|
153
|
-
* @param {string} downloadId
|
|
154
|
-
* @param {boolean} [deleteAfter] If true, delete the file after download (one-time download)
|
|
155
|
-
* @param {*} [options] Override http request option.
|
|
156
|
-
* @throws {RequiredError}
|
|
157
|
-
*/
|
|
158
|
-
downloadFileApiV1DownloadDownloadIdGet_2: async (downloadId: string, deleteAfter?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
159
|
-
// verify required parameter 'downloadId' is not null or undefined
|
|
160
|
-
assertParamExists('downloadFileApiV1DownloadDownloadIdGet_2', 'downloadId', downloadId)
|
|
161
|
-
const localVarPath = `/api/v1/download/{download_id}`
|
|
162
|
-
.replace(`{${"download_id"}}`, encodeURIComponent(String(downloadId)));
|
|
163
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
164
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
165
|
-
let baseOptions;
|
|
166
|
-
if (configuration) {
|
|
167
|
-
baseOptions = configuration.baseOptions;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
171
|
-
const localVarHeaderParameter = {} as any;
|
|
172
|
-
const localVarQueryParameter = {} as any;
|
|
173
|
-
|
|
174
|
-
// authentication HTTPBearer required
|
|
175
|
-
// http bearer authentication required
|
|
176
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
177
|
-
|
|
178
|
-
if (deleteAfter !== undefined) {
|
|
179
|
-
localVarQueryParameter['delete_after'] = deleteAfter;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
localVarHeaderParameter['Accept'] = 'application/json,application/pdf,application/xml,application/octet-stream';
|
|
183
|
-
|
|
184
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
185
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
187
|
-
|
|
188
107
|
return {
|
|
189
108
|
url: toPathString(localVarUrlObj),
|
|
190
109
|
options: localVarRequestOptions,
|
|
@@ -212,19 +131,6 @@ export const DownloadsApiFp = function(configuration?: Configuration) {
|
|
|
212
131
|
const localVarOperationServerBasePath = operationServerMap['DownloadsApi.checkFileApiV1DownloadDownloadIdHead']?.[localVarOperationServerIndex]?.url;
|
|
213
132
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
214
133
|
},
|
|
215
|
-
/**
|
|
216
|
-
* 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.
|
|
217
|
-
* @summary Check if a file exists
|
|
218
|
-
* @param {string} downloadId
|
|
219
|
-
* @param {*} [options] Override http request option.
|
|
220
|
-
* @throws {RequiredError}
|
|
221
|
-
*/
|
|
222
|
-
async checkFileApiV1DownloadDownloadIdHead_1(downloadId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
223
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.checkFileApiV1DownloadDownloadIdHead_1(downloadId, options);
|
|
224
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
225
|
-
const localVarOperationServerBasePath = operationServerMap['DownloadsApi.checkFileApiV1DownloadDownloadIdHead_1']?.[localVarOperationServerIndex]?.url;
|
|
226
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
227
|
-
},
|
|
228
134
|
/**
|
|
229
135
|
* 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
|
|
230
136
|
* @summary Download a temporary file
|
|
@@ -239,20 +145,6 @@ export const DownloadsApiFp = function(configuration?: Configuration) {
|
|
|
239
145
|
const localVarOperationServerBasePath = operationServerMap['DownloadsApi.downloadFileApiV1DownloadDownloadIdGet']?.[localVarOperationServerIndex]?.url;
|
|
240
146
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
241
147
|
},
|
|
242
|
-
/**
|
|
243
|
-
* 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
|
|
244
|
-
* @summary Download a temporary file
|
|
245
|
-
* @param {string} downloadId
|
|
246
|
-
* @param {boolean} [deleteAfter] If true, delete the file after download (one-time download)
|
|
247
|
-
* @param {*} [options] Override http request option.
|
|
248
|
-
* @throws {RequiredError}
|
|
249
|
-
*/
|
|
250
|
-
async downloadFileApiV1DownloadDownloadIdGet_2(downloadId: string, deleteAfter?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
251
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFileApiV1DownloadDownloadIdGet_2(downloadId, deleteAfter, options);
|
|
252
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
253
|
-
const localVarOperationServerBasePath = operationServerMap['DownloadsApi.downloadFileApiV1DownloadDownloadIdGet_2']?.[localVarOperationServerIndex]?.url;
|
|
254
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
255
|
-
},
|
|
256
148
|
}
|
|
257
149
|
};
|
|
258
150
|
|
|
@@ -272,16 +164,6 @@ export const DownloadsApiFactory = function (configuration?: Configuration, base
|
|
|
272
164
|
checkFileApiV1DownloadDownloadIdHead(downloadId: string, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
273
165
|
return localVarFp.checkFileApiV1DownloadDownloadIdHead(downloadId, options).then((request) => request(axios, basePath));
|
|
274
166
|
},
|
|
275
|
-
/**
|
|
276
|
-
* 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.
|
|
277
|
-
* @summary Check if a file exists
|
|
278
|
-
* @param {string} downloadId
|
|
279
|
-
* @param {*} [options] Override http request option.
|
|
280
|
-
* @throws {RequiredError}
|
|
281
|
-
*/
|
|
282
|
-
checkFileApiV1DownloadDownloadIdHead_1(downloadId: string, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
283
|
-
return localVarFp.checkFileApiV1DownloadDownloadIdHead_1(downloadId, options).then((request) => request(axios, basePath));
|
|
284
|
-
},
|
|
285
167
|
/**
|
|
286
168
|
* 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
|
|
287
169
|
* @summary Download a temporary file
|
|
@@ -293,17 +175,6 @@ export const DownloadsApiFactory = function (configuration?: Configuration, base
|
|
|
293
175
|
downloadFileApiV1DownloadDownloadIdGet(downloadId: string, deleteAfter?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
294
176
|
return localVarFp.downloadFileApiV1DownloadDownloadIdGet(downloadId, deleteAfter, options).then((request) => request(axios, basePath));
|
|
295
177
|
},
|
|
296
|
-
/**
|
|
297
|
-
* 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
|
|
298
|
-
* @summary Download a temporary file
|
|
299
|
-
* @param {string} downloadId
|
|
300
|
-
* @param {boolean} [deleteAfter] If true, delete the file after download (one-time download)
|
|
301
|
-
* @param {*} [options] Override http request option.
|
|
302
|
-
* @throws {RequiredError}
|
|
303
|
-
*/
|
|
304
|
-
downloadFileApiV1DownloadDownloadIdGet_2(downloadId: string, deleteAfter?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
305
|
-
return localVarFp.downloadFileApiV1DownloadDownloadIdGet_2(downloadId, deleteAfter, options).then((request) => request(axios, basePath));
|
|
306
|
-
},
|
|
307
178
|
};
|
|
308
179
|
};
|
|
309
180
|
|
|
@@ -322,17 +193,6 @@ export class DownloadsApi extends BaseAPI {
|
|
|
322
193
|
return DownloadsApiFp(this.configuration).checkFileApiV1DownloadDownloadIdHead(downloadId, options).then((request) => request(this.axios, this.basePath));
|
|
323
194
|
}
|
|
324
195
|
|
|
325
|
-
/**
|
|
326
|
-
* 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.
|
|
327
|
-
* @summary Check if a file exists
|
|
328
|
-
* @param {string} downloadId
|
|
329
|
-
* @param {*} [options] Override http request option.
|
|
330
|
-
* @throws {RequiredError}
|
|
331
|
-
*/
|
|
332
|
-
public checkFileApiV1DownloadDownloadIdHead_1(downloadId: string, options?: RawAxiosRequestConfig) {
|
|
333
|
-
return DownloadsApiFp(this.configuration).checkFileApiV1DownloadDownloadIdHead_1(downloadId, options).then((request) => request(this.axios, this.basePath));
|
|
334
|
-
}
|
|
335
|
-
|
|
336
196
|
/**
|
|
337
197
|
* 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
|
|
338
198
|
* @summary Download a temporary file
|
|
@@ -344,17 +204,5 @@ export class DownloadsApi extends BaseAPI {
|
|
|
344
204
|
public downloadFileApiV1DownloadDownloadIdGet(downloadId: string, deleteAfter?: boolean, options?: RawAxiosRequestConfig) {
|
|
345
205
|
return DownloadsApiFp(this.configuration).downloadFileApiV1DownloadDownloadIdGet(downloadId, deleteAfter, options).then((request) => request(this.axios, this.basePath));
|
|
346
206
|
}
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* 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
|
|
350
|
-
* @summary Download a temporary file
|
|
351
|
-
* @param {string} downloadId
|
|
352
|
-
* @param {boolean} [deleteAfter] If true, delete the file after download (one-time download)
|
|
353
|
-
* @param {*} [options] Override http request option.
|
|
354
|
-
* @throws {RequiredError}
|
|
355
|
-
*/
|
|
356
|
-
public downloadFileApiV1DownloadDownloadIdGet_2(downloadId: string, deleteAfter?: boolean, options?: RawAxiosRequestConfig) {
|
|
357
|
-
return DownloadsApiFp(this.configuration).downloadFileApiV1DownloadDownloadIdGet_2(downloadId, deleteAfter, options).then((request) => request(this.axios, this.basePath));
|
|
358
|
-
}
|
|
359
207
|
}
|
|
360
208
|
|
package/api.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './api/afnorpdppadirectory-service-api';
|
|
|
19
19
|
export * from './api/afnorpdppaflow-service-api';
|
|
20
20
|
export * from './api/cdarcycle-de-vie-api';
|
|
21
21
|
export * from './api/chorus-pro-api';
|
|
22
|
+
export * from './api/client-management-api';
|
|
22
23
|
export * from './api/document-conversion-api';
|
|
23
24
|
export * from './api/downloads-api';
|
|
24
25
|
export * from './api/ereporting-api';
|
|
@@ -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.
|
|
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 {
|
|
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: (
|
|
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 {
|
|
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: (
|
|
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.
|
|
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 {
|
|
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(
|
|
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 {
|
|
137
|
-
* @param {
|
|
138
|
-
* @
|
|
139
|
-
|
|
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
|
-
|
|
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.
|
|
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 {
|
|
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(
|
|
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 {
|
|
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(
|
|
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.
|
|
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 {
|
|
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(
|
|
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 {
|
|
265
|
-
* @param {
|
|
266
|
-
* @
|
|
267
|
-
|
|
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
|
-
|
|
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
|