@factpulse/sdk 2.0.49 → 3.0.2

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 (1341) hide show
  1. package/.openapi-generator/FILES +198 -194
  2. package/CHANGELOG.md +3 -3
  3. package/README.md +106 -106
  4. package/api/afnorpdppaapi.ts +38 -38
  5. package/api/afnorpdppadirectory-service-api.ts +78 -78
  6. package/api/afnorpdppaflow-service-api.ts +30 -30
  7. package/api/chorus-pro-api.ts +210 -210
  8. package/api/health-api.ts +176 -0
  9. package/api/invoice-processing-api.ts +1083 -0
  10. package/api/pdfxmlverification-api.ts +536 -0
  11. package/api/user-api.ts +119 -0
  12. package/api.ts +6 -6
  13. package/base.ts +2 -2
  14. package/common.ts +2 -2
  15. package/configuration.ts +2 -2
  16. package/dist/api/afnorpdppaapi.d.ts +31 -31
  17. package/dist/api/afnorpdppaapi.js +36 -36
  18. package/dist/api/afnorpdppadirectory-service-api.d.ts +78 -78
  19. package/dist/api/afnorpdppadirectory-service-api.js +78 -78
  20. package/dist/api/afnorpdppaflow-service-api.d.ts +30 -30
  21. package/dist/api/afnorpdppaflow-service-api.js +30 -30
  22. package/dist/api/chorus-pro-api.d.ts +180 -180
  23. package/dist/api/chorus-pro-api.js +196 -196
  24. package/dist/api/health-api.d.ts +90 -0
  25. package/dist/api/health-api.js +184 -0
  26. package/dist/api/invoice-processing-api.d.ts +480 -0
  27. package/dist/api/invoice-processing-api.js +1010 -0
  28. package/dist/api/pdfxmlverification-api.d.ts +237 -0
  29. package/dist/api/pdfxmlverification-api.js +514 -0
  30. package/dist/api/user-api.d.ts +62 -0
  31. package/dist/api/user-api.js +128 -0
  32. package/dist/api.d.ts +6 -6
  33. package/dist/api.js +6 -6
  34. package/dist/base.d.ts +2 -2
  35. package/dist/base.js +2 -2
  36. package/dist/common.d.ts +2 -2
  37. package/dist/common.js +2 -2
  38. package/dist/configuration.d.ts +2 -2
  39. package/dist/configuration.js +2 -2
  40. package/dist/esm/api/afnorpdppaapi.d.ts +31 -31
  41. package/dist/esm/api/afnorpdppaapi.js +36 -36
  42. package/dist/esm/api/afnorpdppadirectory-service-api.d.ts +78 -78
  43. package/dist/esm/api/afnorpdppadirectory-service-api.js +78 -78
  44. package/dist/esm/api/afnorpdppaflow-service-api.d.ts +30 -30
  45. package/dist/esm/api/afnorpdppaflow-service-api.js +30 -30
  46. package/dist/esm/api/chorus-pro-api.d.ts +180 -180
  47. package/dist/esm/api/chorus-pro-api.js +196 -196
  48. package/dist/esm/api/health-api.d.ts +90 -0
  49. package/dist/esm/api/health-api.js +174 -0
  50. package/dist/esm/api/invoice-processing-api.d.ts +480 -0
  51. package/dist/esm/api/invoice-processing-api.js +1000 -0
  52. package/dist/esm/api/pdfxmlverification-api.d.ts +237 -0
  53. package/dist/esm/api/pdfxmlverification-api.js +504 -0
  54. package/dist/esm/api/user-api.d.ts +62 -0
  55. package/dist/esm/api/user-api.js +118 -0
  56. package/dist/esm/api.d.ts +6 -6
  57. package/dist/esm/api.js +6 -6
  58. package/dist/esm/base.d.ts +2 -2
  59. package/dist/esm/base.js +2 -2
  60. package/dist/esm/common.d.ts +2 -2
  61. package/dist/esm/common.js +2 -2
  62. package/dist/esm/configuration.d.ts +2 -2
  63. package/dist/esm/configuration.js +2 -2
  64. package/dist/esm/index.d.ts +2 -2
  65. package/dist/esm/index.js +2 -2
  66. package/dist/esm/models/acknowledgment-status.d.ts +20 -0
  67. package/dist/esm/models/acknowledgment-status.js +21 -0
  68. package/dist/esm/models/afnorcredentials.d.ts +19 -0
  69. package/dist/esm/models/afnorcredentials.js +14 -0
  70. package/dist/esm/models/afnordestination.d.ts +34 -0
  71. package/dist/esm/models/afnordestination.js +21 -0
  72. package/dist/esm/models/afnorhealth-check-response.d.ts +28 -0
  73. package/dist/esm/models/afnorhealth-check-response.js +14 -0
  74. package/dist/esm/models/afnorresult.d.ts +30 -0
  75. package/dist/esm/models/afnorresult.js +14 -0
  76. package/dist/esm/models/allowance-reason-code.d.ts +24 -0
  77. package/dist/esm/models/allowance-reason-code.js +25 -0
  78. package/dist/esm/models/amount-due.d.ts +16 -0
  79. package/dist/esm/models/amount-due.js +14 -0
  80. package/dist/esm/models/apierror.d.ts +5 -5
  81. package/dist/esm/models/apierror.js +2 -2
  82. package/dist/esm/models/apiprofile.d.ts +21 -0
  83. package/dist/esm/models/apiprofile.js +22 -0
  84. package/dist/esm/models/bounding-box-schema.d.ts +10 -10
  85. package/dist/esm/models/bounding-box-schema.js +2 -2
  86. package/dist/esm/models/celery-status.d.ts +22 -0
  87. package/dist/esm/models/celery-status.js +23 -0
  88. package/dist/esm/models/certificate-info-response.d.ts +23 -23
  89. package/dist/esm/models/certificate-info-response.js +2 -2
  90. package/dist/esm/models/chorus-pro-destination.d.ts +23 -0
  91. package/dist/esm/models/chorus-pro-destination.js +16 -0
  92. package/dist/esm/models/chorus-pro-result.d.ts +22 -0
  93. package/dist/esm/models/chorus-pro-result.js +14 -0
  94. package/dist/esm/models/destination.d.ts +7 -7
  95. package/dist/esm/models/destination.js +2 -2
  96. package/dist/esm/models/document-type.d.ts +37 -0
  97. package/dist/esm/models/document-type.js +38 -0
  98. package/dist/esm/models/electronic-address.d.ts +19 -0
  99. package/dist/esm/models/electronic-address.js +14 -0
  100. package/dist/esm/models/enriched-invoice-info.d.ts +24 -0
  101. package/dist/esm/models/enriched-invoice-info.js +14 -0
  102. package/dist/esm/models/error-level.d.ts +2 -2
  103. package/dist/esm/models/error-level.js +2 -2
  104. package/dist/esm/models/error-source.d.ts +2 -2
  105. package/dist/esm/models/error-source.js +2 -2
  106. package/dist/esm/models/factur-xpdfinfo.d.ts +28 -0
  107. package/dist/esm/models/factur-xpdfinfo.js +14 -0
  108. package/dist/esm/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.d.ts +36 -0
  109. package/dist/esm/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.js +14 -0
  110. package/dist/esm/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.d.ts +24 -0
  111. package/dist/esm/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.js +14 -0
  112. package/dist/esm/models/facture-factur-x.d.ts +30 -30
  113. package/dist/esm/models/facture-factur-x.js +2 -2
  114. package/dist/esm/models/field-status.d.ts +22 -0
  115. package/dist/esm/models/field-status.js +23 -0
  116. package/dist/esm/models/flow-direction.d.ts +19 -0
  117. package/dist/esm/models/flow-direction.js +20 -0
  118. package/dist/esm/models/flow-profile.d.ts +20 -0
  119. package/dist/esm/models/flow-profile.js +21 -0
  120. package/dist/esm/models/flow-summary.d.ts +24 -0
  121. package/dist/esm/models/flow-summary.js +14 -0
  122. package/dist/esm/models/flow-syntax.d.ts +22 -0
  123. package/dist/esm/models/flow-syntax.js +23 -0
  124. package/dist/esm/models/flow-type.d.ts +22 -0
  125. package/dist/esm/models/flow-type.js +23 -0
  126. package/dist/esm/models/generate-certificate-request.d.ts +21 -21
  127. package/dist/esm/models/generate-certificate-request.js +2 -2
  128. package/dist/esm/models/generate-certificate-response.d.ts +12 -12
  129. package/dist/esm/models/generate-certificate-response.js +2 -2
  130. package/dist/esm/models/get-chorus-pro-id-request.d.ts +26 -0
  131. package/dist/esm/models/get-chorus-pro-id-request.js +14 -0
  132. package/dist/esm/models/get-chorus-pro-id-response.d.ts +29 -0
  133. package/dist/esm/models/get-chorus-pro-id-response.js +14 -0
  134. package/dist/esm/models/get-invoice-request.d.ts +22 -0
  135. package/dist/esm/models/get-invoice-request.js +14 -0
  136. package/dist/esm/models/get-invoice-response.d.ts +26 -0
  137. package/dist/esm/models/get-invoice-response.js +14 -0
  138. package/dist/esm/models/get-structure-request.d.ts +26 -0
  139. package/dist/esm/models/get-structure-request.js +14 -0
  140. package/dist/esm/models/get-structure-response.d.ts +26 -0
  141. package/dist/esm/models/get-structure-response.js +14 -0
  142. package/dist/esm/models/global-allowance-amount.d.ts +16 -0
  143. package/dist/esm/models/global-allowance-amount.js +14 -0
  144. package/dist/esm/models/httpvalidation-error.d.ts +2 -2
  145. package/dist/esm/models/httpvalidation-error.js +2 -2
  146. package/dist/esm/models/incoming-invoice.d.ts +68 -0
  147. package/dist/esm/models/incoming-invoice.js +14 -0
  148. package/dist/esm/models/incoming-supplier.d.ts +29 -0
  149. package/dist/esm/models/incoming-supplier.js +14 -0
  150. package/dist/esm/models/index.d.ts +95 -93
  151. package/dist/esm/models/index.js +95 -93
  152. package/dist/esm/models/invoice-format.d.ts +20 -0
  153. package/dist/esm/models/invoice-format.js +21 -0
  154. package/dist/esm/models/invoice-line-allowance-amount.d.ts +16 -0
  155. package/dist/esm/models/invoice-line-allowance-amount.js +14 -0
  156. package/dist/esm/models/invoice-line.d.ts +39 -0
  157. package/dist/esm/models/invoice-line.js +14 -0
  158. package/dist/esm/models/invoice-note.d.ts +18 -0
  159. package/dist/esm/models/invoice-note.js +14 -0
  160. package/dist/esm/models/invoice-references.d.ts +27 -0
  161. package/dist/esm/models/invoice-references.js +14 -0
  162. package/dist/esm/models/invoice-status.d.ts +25 -0
  163. package/dist/esm/models/invoice-status.js +14 -0
  164. package/dist/esm/models/invoice-totals-prepayment.d.ts +16 -0
  165. package/dist/esm/models/invoice-totals-prepayment.js +14 -0
  166. package/dist/esm/models/invoice-totals.d.ts +29 -0
  167. package/dist/esm/models/invoice-totals.js +14 -0
  168. package/dist/esm/models/invoice-type-code.d.ts +97 -0
  169. package/dist/esm/models/invoice-type-code.js +98 -0
  170. package/dist/esm/models/invoicing-framework-code.d.ts +25 -0
  171. package/dist/esm/models/invoicing-framework-code.js +26 -0
  172. package/dist/esm/models/invoicing-framework.d.ts +22 -0
  173. package/dist/esm/models/invoicing-framework.js +14 -0
  174. package/dist/esm/models/line-net-amount.d.ts +16 -0
  175. package/dist/esm/models/line-net-amount.js +14 -0
  176. package/dist/esm/models/mandatory-note-schema.d.ts +34 -0
  177. package/dist/esm/models/mandatory-note-schema.js +14 -0
  178. package/dist/esm/models/manual-rate.d.ts +16 -0
  179. package/dist/esm/models/manual-rate.js +14 -0
  180. package/dist/esm/models/manual-vat-rate.d.ts +16 -0
  181. package/dist/esm/models/manual-vat-rate.js +14 -0
  182. package/dist/esm/models/operation-nature.d.ts +31 -0
  183. package/dist/esm/models/operation-nature.js +32 -0
  184. package/dist/esm/models/output-format.d.ts +19 -0
  185. package/dist/esm/models/output-format.js +20 -0
  186. package/dist/esm/models/page-dimensions-schema.d.ts +24 -0
  187. package/dist/esm/models/page-dimensions-schema.js +14 -0
  188. package/dist/esm/models/payee.d.ts +26 -0
  189. package/dist/esm/models/payee.js +14 -0
  190. package/dist/esm/models/payment-means.d.ts +29 -0
  191. package/dist/esm/models/payment-means.js +30 -0
  192. package/dist/esm/models/pdfvalidation-result-api.d.ts +93 -0
  193. package/dist/esm/models/pdfvalidation-result-api.js +14 -0
  194. package/dist/esm/models/pdpcredentials.d.ts +7 -7
  195. package/dist/esm/models/pdpcredentials.js +2 -2
  196. package/dist/esm/models/postal-address.d.ts +21 -0
  197. package/dist/esm/models/postal-address.js +14 -0
  198. package/dist/esm/models/processing-options.d.ts +33 -0
  199. package/dist/esm/models/processing-options.js +14 -0
  200. package/dist/esm/models/quantity.d.ts +16 -0
  201. package/dist/esm/models/quantity.js +14 -0
  202. package/dist/esm/models/recipient.d.ts +24 -0
  203. package/dist/esm/models/recipient.js +14 -0
  204. package/dist/esm/models/scheme-id.d.ts +5 -5
  205. package/dist/esm/models/scheme-id.js +5 -5
  206. package/dist/esm/models/search-flow-request.d.ts +34 -0
  207. package/dist/esm/models/search-flow-request.js +14 -0
  208. package/dist/esm/models/search-flow-response.d.ts +33 -0
  209. package/dist/esm/models/search-flow-response.js +14 -0
  210. package/dist/esm/models/search-services-response.d.ts +24 -0
  211. package/dist/esm/models/search-services-response.js +14 -0
  212. package/dist/esm/models/search-structure-request.d.ts +25 -0
  213. package/dist/esm/models/search-structure-request.js +14 -0
  214. package/dist/esm/models/search-structure-response.d.ts +30 -0
  215. package/dist/esm/models/search-structure-response.js +14 -0
  216. package/dist/esm/models/signature-info-api.d.ts +25 -0
  217. package/dist/esm/models/signature-info-api.js +14 -0
  218. package/dist/esm/models/signature-info.d.ts +5 -5
  219. package/dist/esm/models/signature-info.js +2 -2
  220. package/dist/esm/models/signature-parameters.d.ts +34 -0
  221. package/dist/esm/models/signature-parameters.js +14 -0
  222. package/dist/esm/models/simplified-invoice-data.d.ts +46 -0
  223. package/dist/esm/models/simplified-invoice-data.js +14 -0
  224. package/dist/esm/models/structure-info.d.ts +13 -13
  225. package/dist/esm/models/structure-info.js +2 -2
  226. package/dist/esm/models/structure-parameters.d.ts +28 -0
  227. package/dist/esm/models/structure-parameters.js +14 -0
  228. package/dist/esm/models/structure-service.d.ts +32 -0
  229. package/dist/esm/models/structure-service.js +14 -0
  230. package/dist/esm/models/submission-mode.d.ts +23 -0
  231. package/dist/esm/models/submission-mode.js +24 -0
  232. package/dist/esm/models/submit-complete-invoice-request.d.ts +34 -0
  233. package/dist/esm/models/submit-complete-invoice-request.js +14 -0
  234. package/dist/esm/models/submit-complete-invoice-response.d.ts +53 -0
  235. package/dist/esm/models/submit-complete-invoice-response.js +17 -0
  236. package/dist/esm/models/submit-flow-request.d.ts +31 -0
  237. package/dist/esm/models/submit-flow-request.js +14 -0
  238. package/dist/esm/models/submit-flow-response.d.ts +38 -0
  239. package/dist/esm/models/submit-flow-response.js +14 -0
  240. package/dist/esm/models/submit-gross-amount.d.ts +16 -0
  241. package/dist/esm/models/submit-gross-amount.js +14 -0
  242. package/dist/esm/models/submit-invoice-request.d.ts +44 -0
  243. package/dist/esm/models/submit-invoice-request.js +14 -0
  244. package/dist/esm/models/submit-invoice-response.d.ts +26 -0
  245. package/dist/esm/models/submit-invoice-response.js +14 -0
  246. package/dist/esm/models/submit-net-amount.d.ts +16 -0
  247. package/dist/esm/models/submit-net-amount.js +14 -0
  248. package/dist/esm/models/submit-vat-amount.d.ts +16 -0
  249. package/dist/esm/models/submit-vat-amount.js +14 -0
  250. package/dist/esm/models/supplementary-attachment.d.ts +21 -0
  251. package/dist/esm/models/supplementary-attachment.js +14 -0
  252. package/dist/esm/models/supplier.d.ts +28 -0
  253. package/dist/esm/models/supplier.js +14 -0
  254. package/dist/esm/models/task-response.d.ts +20 -0
  255. package/dist/esm/models/task-response.js +14 -0
  256. package/dist/esm/models/task-status.d.ts +28 -0
  257. package/dist/esm/models/task-status.js +14 -0
  258. package/dist/esm/models/taxable-amount.d.ts +16 -0
  259. package/dist/esm/models/taxable-amount.js +14 -0
  260. package/dist/esm/models/total-gross-amount.d.ts +16 -0
  261. package/dist/esm/models/total-gross-amount.js +14 -0
  262. package/dist/esm/models/total-net-amount.d.ts +16 -0
  263. package/dist/esm/models/total-net-amount.js +14 -0
  264. package/dist/esm/models/total-vatamount.d.ts +16 -0
  265. package/dist/esm/models/total-vatamount.js +14 -0
  266. package/dist/esm/models/unit-net-price.d.ts +16 -0
  267. package/dist/esm/models/unit-net-price.js +14 -0
  268. package/dist/esm/models/unit-of-measure.d.ts +29 -0
  269. package/dist/esm/models/unit-of-measure.js +30 -0
  270. package/dist/esm/models/validation-error-detail.d.ts +6 -6
  271. package/dist/esm/models/validation-error-detail.js +2 -2
  272. package/dist/esm/models/validation-error-loc-inner.d.ts +2 -2
  273. package/dist/esm/models/validation-error-loc-inner.js +2 -2
  274. package/dist/esm/models/validation-error-response.d.ts +20 -0
  275. package/dist/esm/models/validation-error-response.js +14 -0
  276. package/dist/esm/models/validation-error.d.ts +2 -2
  277. package/dist/esm/models/validation-error.js +2 -2
  278. package/dist/esm/models/validation-success-response.d.ts +20 -0
  279. package/dist/esm/models/validation-success-response.js +14 -0
  280. package/dist/esm/models/vataccounting-code.d.ts +25 -0
  281. package/dist/esm/models/vataccounting-code.js +26 -0
  282. package/dist/esm/models/vatamount.d.ts +16 -0
  283. package/dist/esm/models/vatamount.js +14 -0
  284. package/dist/esm/models/vatcategory.d.ts +26 -0
  285. package/dist/esm/models/vatcategory.js +27 -0
  286. package/dist/esm/models/vatline.d.ts +27 -0
  287. package/dist/esm/models/vatline.js +14 -0
  288. package/dist/esm/models/verification-success-response.d.ts +56 -0
  289. package/dist/esm/models/verification-success-response.js +14 -0
  290. package/dist/esm/models/verified-field-schema.d.ts +42 -0
  291. package/dist/esm/models/verified-field-schema.js +14 -0
  292. package/dist/esm/src/helpers/client.d.ts +129 -129
  293. package/dist/esm/src/helpers/client.js +222 -222
  294. package/dist/esm/src/helpers/index.d.ts +1 -1
  295. package/dist/esm/src/helpers/index.js +3 -3
  296. package/dist/index.d.ts +2 -2
  297. package/dist/index.js +2 -2
  298. package/dist/models/acknowledgment-status.d.ts +20 -0
  299. package/dist/models/acknowledgment-status.js +24 -0
  300. package/dist/models/afnorcredentials.d.ts +19 -0
  301. package/dist/models/afnorcredentials.js +15 -0
  302. package/dist/models/afnordestination.d.ts +34 -0
  303. package/dist/models/afnordestination.js +24 -0
  304. package/dist/models/afnorhealth-check-response.d.ts +28 -0
  305. package/dist/models/afnorhealth-check-response.js +15 -0
  306. package/dist/models/afnorresult.d.ts +30 -0
  307. package/dist/models/afnorresult.js +15 -0
  308. package/dist/models/allowance-reason-code.d.ts +24 -0
  309. package/dist/models/allowance-reason-code.js +28 -0
  310. package/dist/models/amount-due.d.ts +16 -0
  311. package/dist/models/amount-due.js +15 -0
  312. package/dist/models/apierror.d.ts +5 -5
  313. package/dist/models/apierror.js +2 -2
  314. package/dist/models/apiprofile.d.ts +21 -0
  315. package/dist/models/apiprofile.js +25 -0
  316. package/dist/models/bounding-box-schema.d.ts +10 -10
  317. package/dist/models/bounding-box-schema.js +2 -2
  318. package/dist/models/celery-status.d.ts +22 -0
  319. package/dist/models/celery-status.js +26 -0
  320. package/dist/models/certificate-info-response.d.ts +23 -23
  321. package/dist/models/certificate-info-response.js +2 -2
  322. package/dist/models/chorus-pro-destination.d.ts +23 -0
  323. package/dist/models/chorus-pro-destination.js +19 -0
  324. package/dist/models/chorus-pro-result.d.ts +22 -0
  325. package/dist/models/chorus-pro-result.js +15 -0
  326. package/dist/models/destination.d.ts +7 -7
  327. package/dist/models/destination.js +2 -2
  328. package/dist/models/document-type.d.ts +37 -0
  329. package/dist/models/document-type.js +41 -0
  330. package/dist/models/electronic-address.d.ts +19 -0
  331. package/dist/models/electronic-address.js +15 -0
  332. package/dist/models/enriched-invoice-info.d.ts +24 -0
  333. package/dist/models/enriched-invoice-info.js +15 -0
  334. package/dist/models/error-level.d.ts +2 -2
  335. package/dist/models/error-level.js +2 -2
  336. package/dist/models/error-source.d.ts +2 -2
  337. package/dist/models/error-source.js +2 -2
  338. package/dist/models/factur-xpdfinfo.d.ts +28 -0
  339. package/dist/models/factur-xpdfinfo.js +15 -0
  340. package/dist/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.d.ts +36 -0
  341. package/dist/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.js +15 -0
  342. package/dist/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.d.ts +24 -0
  343. package/dist/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.js +15 -0
  344. package/dist/models/facture-factur-x.d.ts +30 -30
  345. package/dist/models/facture-factur-x.js +2 -2
  346. package/dist/models/field-status.d.ts +22 -0
  347. package/dist/models/field-status.js +26 -0
  348. package/dist/models/flow-direction.d.ts +19 -0
  349. package/dist/models/flow-direction.js +23 -0
  350. package/dist/models/flow-profile.d.ts +20 -0
  351. package/dist/models/flow-profile.js +24 -0
  352. package/dist/models/flow-summary.d.ts +24 -0
  353. package/dist/models/flow-summary.js +15 -0
  354. package/dist/models/flow-syntax.d.ts +22 -0
  355. package/dist/models/flow-syntax.js +26 -0
  356. package/dist/models/flow-type.d.ts +22 -0
  357. package/dist/models/flow-type.js +26 -0
  358. package/dist/models/generate-certificate-request.d.ts +21 -21
  359. package/dist/models/generate-certificate-request.js +2 -2
  360. package/dist/models/generate-certificate-response.d.ts +12 -12
  361. package/dist/models/generate-certificate-response.js +2 -2
  362. package/dist/models/get-chorus-pro-id-request.d.ts +26 -0
  363. package/dist/models/get-chorus-pro-id-request.js +15 -0
  364. package/dist/models/get-chorus-pro-id-response.d.ts +29 -0
  365. package/dist/models/get-chorus-pro-id-response.js +15 -0
  366. package/dist/models/get-invoice-request.d.ts +22 -0
  367. package/dist/models/get-invoice-request.js +15 -0
  368. package/dist/models/get-invoice-response.d.ts +26 -0
  369. package/dist/models/get-invoice-response.js +15 -0
  370. package/dist/models/get-structure-request.d.ts +26 -0
  371. package/dist/models/get-structure-request.js +15 -0
  372. package/dist/models/get-structure-response.d.ts +26 -0
  373. package/dist/models/get-structure-response.js +15 -0
  374. package/dist/models/global-allowance-amount.d.ts +16 -0
  375. package/dist/models/global-allowance-amount.js +15 -0
  376. package/dist/models/httpvalidation-error.d.ts +2 -2
  377. package/dist/models/httpvalidation-error.js +2 -2
  378. package/dist/models/incoming-invoice.d.ts +68 -0
  379. package/dist/models/incoming-invoice.js +15 -0
  380. package/dist/models/incoming-supplier.d.ts +29 -0
  381. package/dist/models/incoming-supplier.js +15 -0
  382. package/dist/models/index.d.ts +95 -93
  383. package/dist/models/index.js +95 -93
  384. package/dist/models/invoice-format.d.ts +20 -0
  385. package/dist/models/invoice-format.js +24 -0
  386. package/dist/models/invoice-line-allowance-amount.d.ts +16 -0
  387. package/dist/models/invoice-line-allowance-amount.js +15 -0
  388. package/dist/models/invoice-line.d.ts +39 -0
  389. package/dist/models/invoice-line.js +15 -0
  390. package/dist/models/invoice-note.d.ts +18 -0
  391. package/dist/models/invoice-note.js +15 -0
  392. package/dist/models/invoice-references.d.ts +27 -0
  393. package/dist/models/invoice-references.js +15 -0
  394. package/dist/models/invoice-status.d.ts +25 -0
  395. package/dist/models/invoice-status.js +15 -0
  396. package/dist/models/invoice-totals-prepayment.d.ts +16 -0
  397. package/dist/models/invoice-totals-prepayment.js +15 -0
  398. package/dist/models/invoice-totals.d.ts +29 -0
  399. package/dist/models/invoice-totals.js +15 -0
  400. package/dist/models/invoice-type-code.d.ts +97 -0
  401. package/dist/models/invoice-type-code.js +101 -0
  402. package/dist/models/invoicing-framework-code.d.ts +25 -0
  403. package/dist/models/invoicing-framework-code.js +29 -0
  404. package/dist/models/invoicing-framework.d.ts +22 -0
  405. package/dist/models/invoicing-framework.js +15 -0
  406. package/dist/models/line-net-amount.d.ts +16 -0
  407. package/dist/models/line-net-amount.js +15 -0
  408. package/dist/models/mandatory-note-schema.d.ts +34 -0
  409. package/dist/models/mandatory-note-schema.js +15 -0
  410. package/dist/models/manual-rate.d.ts +16 -0
  411. package/dist/models/manual-rate.js +15 -0
  412. package/dist/models/manual-vat-rate.d.ts +16 -0
  413. package/dist/models/manual-vat-rate.js +15 -0
  414. package/dist/models/operation-nature.d.ts +31 -0
  415. package/dist/models/operation-nature.js +35 -0
  416. package/dist/models/output-format.d.ts +19 -0
  417. package/dist/models/output-format.js +23 -0
  418. package/dist/models/page-dimensions-schema.d.ts +24 -0
  419. package/dist/models/page-dimensions-schema.js +15 -0
  420. package/dist/models/payee.d.ts +26 -0
  421. package/dist/models/payee.js +15 -0
  422. package/dist/models/payment-means.d.ts +29 -0
  423. package/dist/models/payment-means.js +33 -0
  424. package/dist/models/pdfvalidation-result-api.d.ts +93 -0
  425. package/dist/models/pdfvalidation-result-api.js +15 -0
  426. package/dist/models/pdpcredentials.d.ts +7 -7
  427. package/dist/models/pdpcredentials.js +2 -2
  428. package/dist/models/postal-address.d.ts +21 -0
  429. package/dist/models/postal-address.js +15 -0
  430. package/dist/models/processing-options.d.ts +33 -0
  431. package/dist/models/processing-options.js +15 -0
  432. package/dist/models/quantity.d.ts +16 -0
  433. package/dist/models/quantity.js +15 -0
  434. package/dist/models/recipient.d.ts +24 -0
  435. package/dist/models/recipient.js +15 -0
  436. package/dist/models/scheme-id.d.ts +5 -5
  437. package/dist/models/scheme-id.js +5 -5
  438. package/dist/models/search-flow-request.d.ts +34 -0
  439. package/dist/models/search-flow-request.js +15 -0
  440. package/dist/models/search-flow-response.d.ts +33 -0
  441. package/dist/models/search-flow-response.js +15 -0
  442. package/dist/models/search-services-response.d.ts +24 -0
  443. package/dist/models/search-services-response.js +15 -0
  444. package/dist/models/search-structure-request.d.ts +25 -0
  445. package/dist/models/search-structure-request.js +15 -0
  446. package/dist/models/search-structure-response.d.ts +30 -0
  447. package/dist/models/search-structure-response.js +15 -0
  448. package/dist/models/signature-info-api.d.ts +25 -0
  449. package/dist/models/signature-info-api.js +15 -0
  450. package/dist/models/signature-info.d.ts +5 -5
  451. package/dist/models/signature-info.js +2 -2
  452. package/dist/models/signature-parameters.d.ts +34 -0
  453. package/dist/models/signature-parameters.js +15 -0
  454. package/dist/models/simplified-invoice-data.d.ts +46 -0
  455. package/dist/models/simplified-invoice-data.js +15 -0
  456. package/dist/models/structure-info.d.ts +13 -13
  457. package/dist/models/structure-info.js +2 -2
  458. package/dist/models/structure-parameters.d.ts +28 -0
  459. package/dist/models/structure-parameters.js +15 -0
  460. package/dist/models/structure-service.d.ts +32 -0
  461. package/dist/models/structure-service.js +15 -0
  462. package/dist/models/submission-mode.d.ts +23 -0
  463. package/dist/models/submission-mode.js +27 -0
  464. package/dist/models/submit-complete-invoice-request.d.ts +34 -0
  465. package/dist/models/submit-complete-invoice-request.js +15 -0
  466. package/dist/models/submit-complete-invoice-response.d.ts +53 -0
  467. package/dist/models/submit-complete-invoice-response.js +20 -0
  468. package/dist/models/submit-flow-request.d.ts +31 -0
  469. package/dist/models/submit-flow-request.js +15 -0
  470. package/dist/models/submit-flow-response.d.ts +38 -0
  471. package/dist/models/submit-flow-response.js +15 -0
  472. package/dist/models/submit-gross-amount.d.ts +16 -0
  473. package/dist/models/submit-gross-amount.js +15 -0
  474. package/dist/models/submit-invoice-request.d.ts +44 -0
  475. package/dist/models/submit-invoice-request.js +15 -0
  476. package/dist/models/submit-invoice-response.d.ts +26 -0
  477. package/dist/models/submit-invoice-response.js +15 -0
  478. package/dist/models/submit-net-amount.d.ts +16 -0
  479. package/dist/models/submit-net-amount.js +15 -0
  480. package/dist/models/submit-vat-amount.d.ts +16 -0
  481. package/dist/models/submit-vat-amount.js +15 -0
  482. package/dist/models/supplementary-attachment.d.ts +21 -0
  483. package/dist/models/supplementary-attachment.js +15 -0
  484. package/dist/models/supplier.d.ts +28 -0
  485. package/dist/models/supplier.js +15 -0
  486. package/dist/models/task-response.d.ts +20 -0
  487. package/dist/models/task-response.js +15 -0
  488. package/dist/models/task-status.d.ts +28 -0
  489. package/dist/models/task-status.js +15 -0
  490. package/dist/models/taxable-amount.d.ts +16 -0
  491. package/dist/models/taxable-amount.js +15 -0
  492. package/dist/models/total-gross-amount.d.ts +16 -0
  493. package/dist/models/total-gross-amount.js +15 -0
  494. package/dist/models/total-net-amount.d.ts +16 -0
  495. package/dist/models/total-net-amount.js +15 -0
  496. package/dist/models/total-vatamount.d.ts +16 -0
  497. package/dist/models/total-vatamount.js +15 -0
  498. package/dist/models/unit-net-price.d.ts +16 -0
  499. package/dist/models/unit-net-price.js +15 -0
  500. package/dist/models/unit-of-measure.d.ts +29 -0
  501. package/dist/models/unit-of-measure.js +33 -0
  502. package/dist/models/validation-error-detail.d.ts +6 -6
  503. package/dist/models/validation-error-detail.js +2 -2
  504. package/dist/models/validation-error-loc-inner.d.ts +2 -2
  505. package/dist/models/validation-error-loc-inner.js +2 -2
  506. package/dist/models/validation-error-response.d.ts +20 -0
  507. package/dist/models/validation-error-response.js +15 -0
  508. package/dist/models/validation-error.d.ts +2 -2
  509. package/dist/models/validation-error.js +2 -2
  510. package/dist/models/validation-success-response.d.ts +20 -0
  511. package/dist/models/validation-success-response.js +15 -0
  512. package/dist/models/vataccounting-code.d.ts +25 -0
  513. package/dist/models/vataccounting-code.js +29 -0
  514. package/dist/models/vatamount.d.ts +16 -0
  515. package/dist/models/vatamount.js +15 -0
  516. package/dist/models/vatcategory.d.ts +26 -0
  517. package/dist/models/vatcategory.js +30 -0
  518. package/dist/models/vatline.d.ts +27 -0
  519. package/dist/models/vatline.js +15 -0
  520. package/dist/models/verification-success-response.d.ts +56 -0
  521. package/dist/models/verification-success-response.js +15 -0
  522. package/dist/models/verified-field-schema.d.ts +42 -0
  523. package/dist/models/verified-field-schema.js +15 -0
  524. package/dist/src/helpers/client.d.ts +129 -129
  525. package/dist/src/helpers/client.js +231 -231
  526. package/dist/src/helpers/index.d.ts +1 -1
  527. package/dist/src/helpers/index.js +12 -11
  528. package/docs/AFNORCredentials.md +25 -0
  529. package/docs/AFNORDestination.md +27 -0
  530. package/docs/AFNORHealthCheckResponse.md +25 -0
  531. package/docs/AFNORPDPPAApi.md +21 -21
  532. package/docs/AFNORPDPPADirectoryServiceApi.md +70 -70
  533. package/docs/AFNORPDPPAFlowServiceApi.md +23 -23
  534. package/docs/AFNORResult.md +29 -0
  535. package/docs/APIError.md +3 -3
  536. package/docs/APIProfile.md +15 -0
  537. package/docs/AcknowledgmentStatus.md +13 -0
  538. package/docs/AllowanceReasonCode.md +21 -0
  539. package/docs/AmountDue.md +19 -0
  540. package/docs/BoundingBoxSchema.md +8 -8
  541. package/docs/CeleryStatus.md +17 -0
  542. package/docs/CertificateInfoResponse.md +21 -21
  543. package/docs/ChorusProApi.md +63 -63
  544. package/docs/ChorusProDestination.md +23 -0
  545. package/docs/ChorusProResult.md +25 -0
  546. package/docs/Destination.md +6 -6
  547. package/docs/DocumentType.md +17 -0
  548. package/docs/ElectronicAddress.md +23 -0
  549. package/docs/EnrichedInvoiceInfo.md +35 -0
  550. package/docs/FacturXPDFInfo.md +25 -0
  551. package/docs/FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md +29 -0
  552. package/docs/FactureElectroniqueRestApiSchemasProcessingChorusProCredentials.md +29 -0
  553. package/docs/FactureFacturX.md +31 -31
  554. package/docs/FieldStatus.md +17 -0
  555. package/docs/FlowDirection.md +11 -0
  556. package/docs/FlowProfile.md +13 -0
  557. package/docs/FlowSummary.md +35 -0
  558. package/docs/FlowSyntax.md +17 -0
  559. package/docs/FlowType.md +17 -0
  560. package/docs/GenerateCertificateRequest.md +20 -20
  561. package/docs/GenerateCertificateResponse.md +11 -11
  562. package/docs/GetChorusProIdRequest.md +25 -0
  563. package/docs/GetChorusProIdResponse.md +27 -0
  564. package/docs/GetInvoiceRequest.md +23 -0
  565. package/docs/GetInvoiceResponse.md +37 -0
  566. package/docs/GetStructureRequest.md +25 -0
  567. package/docs/GetStructureResponse.md +37 -0
  568. package/docs/GlobalAllowanceAmount.md +19 -0
  569. package/docs/HealthApi.md +97 -0
  570. package/docs/IncomingInvoice.md +57 -0
  571. package/docs/IncomingSupplier.md +35 -0
  572. package/docs/InvoiceFormat.md +13 -0
  573. package/docs/InvoiceLine.md +49 -0
  574. package/docs/InvoiceLineAllowanceAmount.md +19 -0
  575. package/docs/InvoiceNote.md +23 -0
  576. package/docs/InvoiceProcessingApi.md +670 -0
  577. package/docs/InvoiceReferences.md +35 -0
  578. package/docs/InvoiceStatus.md +25 -0
  579. package/docs/InvoiceTotals.md +33 -0
  580. package/docs/InvoiceTotalsPrepayment.md +19 -0
  581. package/docs/InvoiceTypeCode.md +71 -0
  582. package/docs/InvoicingFramework.md +27 -0
  583. package/docs/InvoicingFrameworkCode.md +23 -0
  584. package/docs/LineNetAmount.md +19 -0
  585. package/docs/MandatoryNoteSchema.md +33 -0
  586. package/docs/ManualRate.md +19 -0
  587. package/docs/ManualVatRate.md +19 -0
  588. package/docs/OperationNature.md +35 -0
  589. package/docs/OutputFormat.md +11 -0
  590. package/docs/PDFValidationResultAPI.md +65 -0
  591. package/docs/PDFXMLVerificationApi.md +335 -0
  592. package/docs/PDPCredentials.md +5 -5
  593. package/docs/PageDimensionsSchema.md +23 -0
  594. package/docs/Payee.md +31 -0
  595. package/docs/PaymentMeans.md +31 -0
  596. package/docs/PostalAddress.md +29 -0
  597. package/docs/ProcessingOptions.md +27 -0
  598. package/docs/Quantity.md +19 -0
  599. package/docs/Recipient.md +31 -0
  600. package/docs/SchemeID.md +1 -1
  601. package/docs/SearchFlowRequest.md +37 -0
  602. package/docs/SearchFlowResponse.md +27 -0
  603. package/docs/SearchServicesResponse.md +27 -0
  604. package/docs/SearchStructureRequest.md +29 -0
  605. package/docs/SearchStructureResponse.md +27 -0
  606. package/docs/SignatureInfo.md +3 -3
  607. package/docs/SignatureInfoAPI.md +31 -0
  608. package/docs/SignatureParameters.md +37 -0
  609. package/docs/SimplifiedInvoiceData.md +37 -0
  610. package/docs/StructureInfo.md +11 -11
  611. package/docs/StructureParameters.md +25 -0
  612. package/docs/StructureService.md +27 -0
  613. package/docs/SubmissionMode.md +19 -0
  614. package/docs/SubmitCompleteInvoiceRequest.md +29 -0
  615. package/docs/SubmitCompleteInvoiceResponse.md +37 -0
  616. package/docs/SubmitFlowRequest.md +31 -0
  617. package/docs/SubmitFlowResponse.md +33 -0
  618. package/docs/SubmitGrossAmount.md +19 -0
  619. package/docs/SubmitInvoiceRequest.md +49 -0
  620. package/docs/SubmitInvoiceResponse.md +27 -0
  621. package/docs/SubmitNetAmount.md +19 -0
  622. package/docs/SubmitVatAmount.md +19 -0
  623. package/docs/SupplementaryAttachment.md +29 -0
  624. package/docs/Supplier.md +39 -0
  625. package/docs/TaskResponse.md +21 -0
  626. package/docs/TaskStatus.md +25 -0
  627. package/docs/TaxableAmount.md +19 -0
  628. package/docs/TotalGrossAmount.md +19 -0
  629. package/docs/TotalNetAmount.md +19 -0
  630. package/docs/TotalVATAmount.md +19 -0
  631. package/docs/UnitNetPrice.md +19 -0
  632. package/docs/UnitOfMeasure.md +31 -0
  633. package/docs/UserApi.md +52 -0
  634. package/docs/VATAccountingCode.md +23 -0
  635. package/docs/VATAmount.md +19 -0
  636. package/docs/VATCategory.md +25 -0
  637. package/docs/VATLine.md +33 -0
  638. package/docs/ValidationErrorDetail.md +4 -4
  639. package/docs/ValidationErrorResponse.md +21 -0
  640. package/docs/ValidationSuccessResponse.md +21 -0
  641. package/docs/VerificationSuccessResponse.md +39 -0
  642. package/docs/VerifiedFieldSchema.md +37 -0
  643. package/index.ts +2 -2
  644. package/models/acknowledgment-status.ts +30 -0
  645. package/models/afnorcredentials.ts +25 -0
  646. package/models/afnordestination.ts +46 -0
  647. package/models/afnorhealth-check-response.ts +34 -0
  648. package/models/afnorresult.ts +36 -0
  649. package/models/allowance-reason-code.ts +34 -0
  650. package/models/amount-due.ts +22 -0
  651. package/models/apierror.ts +5 -5
  652. package/models/apiprofile.ts +31 -0
  653. package/models/bounding-box-schema.ts +10 -10
  654. package/models/celery-status.ts +32 -0
  655. package/models/certificate-info-response.ts +23 -23
  656. package/models/chorus-pro-destination.ts +34 -0
  657. package/models/chorus-pro-result.ts +28 -0
  658. package/models/destination.ts +7 -7
  659. package/models/document-type.ts +47 -0
  660. package/models/electronic-address.ts +29 -0
  661. package/models/enriched-invoice-info.ts +30 -0
  662. package/models/error-level.ts +2 -2
  663. package/models/error-source.ts +2 -2
  664. package/models/factur-xpdfinfo.ts +34 -0
  665. package/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.ts +42 -0
  666. package/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.ts +30 -0
  667. package/models/facture-factur-x.ts +30 -30
  668. package/models/field-status.ts +32 -0
  669. package/models/flow-direction.ts +29 -0
  670. package/models/flow-profile.ts +30 -0
  671. package/models/flow-summary.ts +30 -0
  672. package/models/flow-syntax.ts +32 -0
  673. package/models/flow-type.ts +32 -0
  674. package/models/generate-certificate-request.ts +21 -21
  675. package/models/generate-certificate-response.ts +12 -12
  676. package/models/get-chorus-pro-id-request.ts +34 -0
  677. package/models/get-chorus-pro-id-response.ts +35 -0
  678. package/models/get-invoice-request.ts +30 -0
  679. package/models/get-invoice-response.ts +34 -0
  680. package/models/get-structure-request.ts +34 -0
  681. package/models/get-structure-response.ts +34 -0
  682. package/models/global-allowance-amount.ts +22 -0
  683. package/models/httpvalidation-error.ts +2 -2
  684. package/models/incoming-invoice.ts +82 -0
  685. package/models/incoming-supplier.ts +39 -0
  686. package/models/index.ts +95 -93
  687. package/models/invoice-format.ts +30 -0
  688. package/models/invoice-line-allowance-amount.ts +22 -0
  689. package/models/invoice-line.ts +63 -0
  690. package/models/invoice-note.ts +24 -0
  691. package/models/invoice-references.ts +41 -0
  692. package/models/invoice-status.ts +31 -0
  693. package/models/invoice-totals-prepayment.ts +22 -0
  694. package/models/invoice-totals.ts +47 -0
  695. package/models/invoice-type-code.ts +107 -0
  696. package/models/invoicing-framework-code.ts +35 -0
  697. package/models/invoicing-framework.ts +34 -0
  698. package/models/line-net-amount.ts +22 -0
  699. package/models/mandatory-note-schema.ts +46 -0
  700. package/models/manual-rate.ts +22 -0
  701. package/models/manual-vat-rate.ts +22 -0
  702. package/models/operation-nature.ts +41 -0
  703. package/models/output-format.ts +29 -0
  704. package/models/page-dimensions-schema.ts +30 -0
  705. package/models/payee.ts +34 -0
  706. package/models/payment-means.ts +39 -0
  707. package/models/pdfvalidation-result-api.ts +99 -0
  708. package/models/pdpcredentials.ts +7 -7
  709. package/models/postal-address.ts +27 -0
  710. package/models/processing-options.ts +43 -0
  711. package/models/quantity.ts +22 -0
  712. package/models/recipient.ts +34 -0
  713. package/models/scheme-id.ts +5 -5
  714. package/models/search-flow-request.ts +48 -0
  715. package/models/search-flow-response.ts +41 -0
  716. package/models/search-services-response.ts +32 -0
  717. package/models/search-structure-request.ts +33 -0
  718. package/models/search-structure-response.ts +38 -0
  719. package/models/signature-info-api.ts +31 -0
  720. package/models/signature-info.ts +5 -5
  721. package/models/signature-parameters.ts +40 -0
  722. package/models/simplified-invoice-data.ts +46 -0
  723. package/models/structure-info.ts +13 -13
  724. package/models/structure-parameters.ts +34 -0
  725. package/models/structure-service.ts +38 -0
  726. package/models/submission-mode.ts +33 -0
  727. package/models/submit-complete-invoice-request.ts +48 -0
  728. package/models/submit-complete-invoice-response.ts +72 -0
  729. package/models/submit-flow-request.ts +45 -0
  730. package/models/submit-flow-response.ts +44 -0
  731. package/models/submit-gross-amount.ts +22 -0
  732. package/models/submit-invoice-request.ts +58 -0
  733. package/models/submit-invoice-response.ts +32 -0
  734. package/models/submit-net-amount.ts +22 -0
  735. package/models/submit-vat-amount.ts +22 -0
  736. package/models/supplementary-attachment.ts +27 -0
  737. package/models/supplier.ts +38 -0
  738. package/models/task-response.ts +26 -0
  739. package/models/task-status.ts +36 -0
  740. package/models/taxable-amount.ts +22 -0
  741. package/models/total-gross-amount.ts +22 -0
  742. package/models/total-net-amount.ts +22 -0
  743. package/models/total-vatamount.ts +22 -0
  744. package/models/unit-net-price.ts +22 -0
  745. package/models/unit-of-measure.ts +39 -0
  746. package/models/validation-error-detail.ts +6 -6
  747. package/models/validation-error-loc-inner.ts +2 -2
  748. package/models/validation-error-response.ts +26 -0
  749. package/models/validation-error.ts +2 -2
  750. package/models/validation-success-response.ts +26 -0
  751. package/models/vataccounting-code.ts +35 -0
  752. package/models/vatamount.ts +22 -0
  753. package/models/vatcategory.ts +36 -0
  754. package/models/vatline.ts +43 -0
  755. package/models/verification-success-response.ts +68 -0
  756. package/models/verified-field-schema.ts +54 -0
  757. package/package.json +1 -1
  758. package/src/helpers/client.ts +233 -233
  759. package/src/helpers/index.ts +3 -3
  760. package/api/sant-api.ts +0 -176
  761. package/api/traitement-facture-api.ts +0 -1083
  762. package/api/utilisateur-api.ts +0 -119
  763. package/api/vrification-pdfxmlapi.ts +0 -536
  764. package/dist/api/sant-api.d.ts +0 -90
  765. package/dist/api/sant-api.js +0 -184
  766. package/dist/api/traitement-facture-api.d.ts +0 -480
  767. package/dist/api/traitement-facture-api.js +0 -1010
  768. package/dist/api/utilisateur-api.d.ts +0 -62
  769. package/dist/api/utilisateur-api.js +0 -128
  770. package/dist/api/vrification-pdfxmlapi.d.ts +0 -237
  771. package/dist/api/vrification-pdfxmlapi.js +0 -514
  772. package/dist/esm/api/sant-api.d.ts +0 -90
  773. package/dist/esm/api/sant-api.js +0 -174
  774. package/dist/esm/api/traitement-facture-api.d.ts +0 -480
  775. package/dist/esm/api/traitement-facture-api.js +0 -1000
  776. package/dist/esm/api/utilisateur-api.d.ts +0 -62
  777. package/dist/esm/api/utilisateur-api.js +0 -118
  778. package/dist/esm/api/vrification-pdfxmlapi.d.ts +0 -237
  779. package/dist/esm/api/vrification-pdfxmlapi.js +0 -504
  780. package/dist/esm/models/adresse-electronique.d.ts +0 -19
  781. package/dist/esm/models/adresse-electronique.js +0 -14
  782. package/dist/esm/models/adresse-postale.d.ts +0 -21
  783. package/dist/esm/models/adresse-postale.js +0 -14
  784. package/dist/esm/models/beneficiaire.d.ts +0 -26
  785. package/dist/esm/models/beneficiaire.js +0 -14
  786. package/dist/esm/models/cadre-de-facturation.d.ts +0 -22
  787. package/dist/esm/models/cadre-de-facturation.js +0 -14
  788. package/dist/esm/models/categorie-tva.d.ts +0 -53
  789. package/dist/esm/models/categorie-tva.js +0 -54
  790. package/dist/esm/models/champ-verifie-schema.d.ts +0 -42
  791. package/dist/esm/models/champ-verifie-schema.js +0 -14
  792. package/dist/esm/models/chorus-pro-credentials.d.ts +0 -36
  793. package/dist/esm/models/chorus-pro-credentials.js +0 -14
  794. package/dist/esm/models/code-cadre-facturation.d.ts +0 -21
  795. package/dist/esm/models/code-cadre-facturation.js +0 -22
  796. package/dist/esm/models/code-raison-reduction.d.ts +0 -45
  797. package/dist/esm/models/code-raison-reduction.js +0 -46
  798. package/dist/esm/models/consulter-facture-request.d.ts +0 -22
  799. package/dist/esm/models/consulter-facture-request.js +0 -14
  800. package/dist/esm/models/consulter-facture-response.d.ts +0 -26
  801. package/dist/esm/models/consulter-facture-response.js +0 -14
  802. package/dist/esm/models/consulter-structure-request.d.ts +0 -26
  803. package/dist/esm/models/consulter-structure-request.js +0 -14
  804. package/dist/esm/models/consulter-structure-response.d.ts +0 -26
  805. package/dist/esm/models/consulter-structure-response.js +0 -14
  806. package/dist/esm/models/credentials-afnor.d.ts +0 -19
  807. package/dist/esm/models/credentials-afnor.js +0 -14
  808. package/dist/esm/models/credentials-chorus-pro.d.ts +0 -24
  809. package/dist/esm/models/credentials-chorus-pro.js +0 -14
  810. package/dist/esm/models/destinataire.d.ts +0 -24
  811. package/dist/esm/models/destinataire.js +0 -14
  812. package/dist/esm/models/destination-afnor.d.ts +0 -34
  813. package/dist/esm/models/destination-afnor.js +0 -21
  814. package/dist/esm/models/destination-chorus-pro.d.ts +0 -23
  815. package/dist/esm/models/destination-chorus-pro.js +0 -16
  816. package/dist/esm/models/dimension-page-schema.d.ts +0 -24
  817. package/dist/esm/models/dimension-page-schema.js +0 -14
  818. package/dist/esm/models/direction-flux.d.ts +0 -19
  819. package/dist/esm/models/direction-flux.js +0 -20
  820. package/dist/esm/models/donnees-facture-simplifiees.d.ts +0 -46
  821. package/dist/esm/models/donnees-facture-simplifiees.js +0 -14
  822. package/dist/esm/models/facture-enrichie-info.d.ts +0 -24
  823. package/dist/esm/models/facture-enrichie-info.js +0 -14
  824. package/dist/esm/models/facture-entrante.d.ts +0 -68
  825. package/dist/esm/models/facture-entrante.js +0 -14
  826. package/dist/esm/models/flux-resume.d.ts +0 -24
  827. package/dist/esm/models/flux-resume.js +0 -14
  828. package/dist/esm/models/format-facture.d.ts +0 -20
  829. package/dist/esm/models/format-facture.js +0 -21
  830. package/dist/esm/models/format-sortie.d.ts +0 -16
  831. package/dist/esm/models/format-sortie.js +0 -17
  832. package/dist/esm/models/fournisseur-entrant.d.ts +0 -29
  833. package/dist/esm/models/fournisseur-entrant.js +0 -14
  834. package/dist/esm/models/fournisseur.d.ts +0 -28
  835. package/dist/esm/models/fournisseur.js +0 -14
  836. package/dist/esm/models/information-signature-api.d.ts +0 -25
  837. package/dist/esm/models/information-signature-api.js +0 -14
  838. package/dist/esm/models/ligne-de-poste-montant-remise-ht.d.ts +0 -16
  839. package/dist/esm/models/ligne-de-poste-montant-remise-ht.js +0 -14
  840. package/dist/esm/models/ligne-de-poste-taux-tva-manuel.d.ts +0 -16
  841. package/dist/esm/models/ligne-de-poste-taux-tva-manuel.js +0 -14
  842. package/dist/esm/models/ligne-de-poste.d.ts +0 -39
  843. package/dist/esm/models/ligne-de-poste.js +0 -14
  844. package/dist/esm/models/ligne-de-tva.d.ts +0 -27
  845. package/dist/esm/models/ligne-de-tva.js +0 -14
  846. package/dist/esm/models/mode-depot.d.ts +0 -20
  847. package/dist/esm/models/mode-depot.js +0 -21
  848. package/dist/esm/models/mode-paiement.d.ts +0 -23
  849. package/dist/esm/models/mode-paiement.js +0 -24
  850. package/dist/esm/models/montant-apayer.d.ts +0 -16
  851. package/dist/esm/models/montant-apayer.js +0 -14
  852. package/dist/esm/models/montant-base-ht.d.ts +0 -16
  853. package/dist/esm/models/montant-base-ht.js +0 -14
  854. package/dist/esm/models/montant-ht-total.d.ts +0 -16
  855. package/dist/esm/models/montant-ht-total.js +0 -14
  856. package/dist/esm/models/montant-remise-globale-ttc.d.ts +0 -16
  857. package/dist/esm/models/montant-remise-globale-ttc.js +0 -14
  858. package/dist/esm/models/montant-total-acompte.d.ts +0 -16
  859. package/dist/esm/models/montant-total-acompte.js +0 -14
  860. package/dist/esm/models/montant-total-ligne-ht.d.ts +0 -16
  861. package/dist/esm/models/montant-total-ligne-ht.js +0 -14
  862. package/dist/esm/models/montant-total.d.ts +0 -29
  863. package/dist/esm/models/montant-total.js +0 -14
  864. package/dist/esm/models/montant-ttc-total.d.ts +0 -16
  865. package/dist/esm/models/montant-ttc-total.js +0 -14
  866. package/dist/esm/models/montant-tva-ligne.d.ts +0 -16
  867. package/dist/esm/models/montant-tva-ligne.js +0 -14
  868. package/dist/esm/models/montant-tva-total.d.ts +0 -16
  869. package/dist/esm/models/montant-tva-total.js +0 -14
  870. package/dist/esm/models/montant-tva.d.ts +0 -16
  871. package/dist/esm/models/montant-tva.js +0 -14
  872. package/dist/esm/models/montant-unitaire-ht.d.ts +0 -16
  873. package/dist/esm/models/montant-unitaire-ht.js +0 -14
  874. package/dist/esm/models/nature-operation.d.ts +0 -31
  875. package/dist/esm/models/nature-operation.js +0 -32
  876. package/dist/esm/models/note-obligatoire-schema.d.ts +0 -34
  877. package/dist/esm/models/note-obligatoire-schema.js +0 -14
  878. package/dist/esm/models/note.d.ts +0 -18
  879. package/dist/esm/models/note.js +0 -14
  880. package/dist/esm/models/obtenir-id-chorus-pro-request.d.ts +0 -26
  881. package/dist/esm/models/obtenir-id-chorus-pro-request.js +0 -14
  882. package/dist/esm/models/obtenir-id-chorus-pro-response.d.ts +0 -29
  883. package/dist/esm/models/obtenir-id-chorus-pro-response.js +0 -14
  884. package/dist/esm/models/options-processing.d.ts +0 -33
  885. package/dist/esm/models/options-processing.js +0 -14
  886. package/dist/esm/models/parametres-signature.d.ts +0 -34
  887. package/dist/esm/models/parametres-signature.js +0 -14
  888. package/dist/esm/models/parametres-structure.d.ts +0 -28
  889. package/dist/esm/models/parametres-structure.js +0 -14
  890. package/dist/esm/models/pdffactur-xinfo.d.ts +0 -28
  891. package/dist/esm/models/pdffactur-xinfo.js +0 -14
  892. package/dist/esm/models/piece-jointe-complementaire.d.ts +0 -21
  893. package/dist/esm/models/piece-jointe-complementaire.js +0 -14
  894. package/dist/esm/models/profil-api.d.ts +0 -18
  895. package/dist/esm/models/profil-api.js +0 -19
  896. package/dist/esm/models/profil-flux.d.ts +0 -20
  897. package/dist/esm/models/profil-flux.js +0 -21
  898. package/dist/esm/models/quantite.d.ts +0 -16
  899. package/dist/esm/models/quantite.js +0 -14
  900. package/dist/esm/models/rechercher-services-response.d.ts +0 -24
  901. package/dist/esm/models/rechercher-services-response.js +0 -14
  902. package/dist/esm/models/rechercher-structure-request.d.ts +0 -25
  903. package/dist/esm/models/rechercher-structure-request.js +0 -14
  904. package/dist/esm/models/rechercher-structure-response.d.ts +0 -30
  905. package/dist/esm/models/rechercher-structure-response.js +0 -14
  906. package/dist/esm/models/references.d.ts +0 -27
  907. package/dist/esm/models/references.js +0 -14
  908. package/dist/esm/models/reponse-healthcheck-afnor.d.ts +0 -28
  909. package/dist/esm/models/reponse-healthcheck-afnor.js +0 -14
  910. package/dist/esm/models/reponse-recherche-flux.d.ts +0 -33
  911. package/dist/esm/models/reponse-recherche-flux.js +0 -14
  912. package/dist/esm/models/reponse-soumission-flux.d.ts +0 -38
  913. package/dist/esm/models/reponse-soumission-flux.js +0 -14
  914. package/dist/esm/models/reponse-tache.d.ts +0 -17
  915. package/dist/esm/models/reponse-tache.js +0 -14
  916. package/dist/esm/models/reponse-validation-erreur.d.ts +0 -17
  917. package/dist/esm/models/reponse-validation-erreur.js +0 -14
  918. package/dist/esm/models/reponse-validation-succes.d.ts +0 -17
  919. package/dist/esm/models/reponse-validation-succes.js +0 -14
  920. package/dist/esm/models/reponse-verification-succes.d.ts +0 -56
  921. package/dist/esm/models/reponse-verification-succes.js +0 -14
  922. package/dist/esm/models/requete-recherche-flux.d.ts +0 -34
  923. package/dist/esm/models/requete-recherche-flux.js +0 -14
  924. package/dist/esm/models/requete-soumission-flux.d.ts +0 -31
  925. package/dist/esm/models/requete-soumission-flux.js +0 -14
  926. package/dist/esm/models/resultat-afnor.d.ts +0 -30
  927. package/dist/esm/models/resultat-afnor.js +0 -14
  928. package/dist/esm/models/resultat-chorus-pro.d.ts +0 -22
  929. package/dist/esm/models/resultat-chorus-pro.js +0 -14
  930. package/dist/esm/models/resultat-validation-pdfapi.d.ts +0 -93
  931. package/dist/esm/models/resultat-validation-pdfapi.js +0 -14
  932. package/dist/esm/models/service-structure.d.ts +0 -32
  933. package/dist/esm/models/service-structure.js +0 -14
  934. package/dist/esm/models/soumettre-facture-complete-request.d.ts +0 -34
  935. package/dist/esm/models/soumettre-facture-complete-request.js +0 -14
  936. package/dist/esm/models/soumettre-facture-complete-response.d.ts +0 -53
  937. package/dist/esm/models/soumettre-facture-complete-response.js +0 -17
  938. package/dist/esm/models/soumettre-facture-request.d.ts +0 -44
  939. package/dist/esm/models/soumettre-facture-request.js +0 -14
  940. package/dist/esm/models/soumettre-facture-response.d.ts +0 -26
  941. package/dist/esm/models/soumettre-facture-response.js +0 -14
  942. package/dist/esm/models/statut-acquittement.d.ts +0 -20
  943. package/dist/esm/models/statut-acquittement.js +0 -21
  944. package/dist/esm/models/statut-celery.d.ts +0 -22
  945. package/dist/esm/models/statut-celery.js +0 -23
  946. package/dist/esm/models/statut-champ-api.d.ts +0 -22
  947. package/dist/esm/models/statut-champ-api.js +0 -23
  948. package/dist/esm/models/statut-facture.d.ts +0 -25
  949. package/dist/esm/models/statut-facture.js +0 -14
  950. package/dist/esm/models/statut-tache.d.ts +0 -25
  951. package/dist/esm/models/statut-tache.js +0 -14
  952. package/dist/esm/models/syntaxe-flux.d.ts +0 -22
  953. package/dist/esm/models/syntaxe-flux.js +0 -23
  954. package/dist/esm/models/tauxmanuel.d.ts +0 -16
  955. package/dist/esm/models/tauxmanuel.js +0 -14
  956. package/dist/esm/models/type-document.d.ts +0 -37
  957. package/dist/esm/models/type-document.js +0 -38
  958. package/dist/esm/models/type-facture.d.ts +0 -81
  959. package/dist/esm/models/type-facture.js +0 -82
  960. package/dist/esm/models/type-flux.d.ts +0 -22
  961. package/dist/esm/models/type-flux.js +0 -23
  962. package/dist/esm/models/type-tva.d.ts +0 -21
  963. package/dist/esm/models/type-tva.js +0 -22
  964. package/dist/esm/models/unite.d.ts +0 -23
  965. package/dist/esm/models/unite.js +0 -24
  966. package/dist/models/adresse-electronique.d.ts +0 -19
  967. package/dist/models/adresse-electronique.js +0 -15
  968. package/dist/models/adresse-postale.d.ts +0 -21
  969. package/dist/models/adresse-postale.js +0 -15
  970. package/dist/models/beneficiaire.d.ts +0 -26
  971. package/dist/models/beneficiaire.js +0 -15
  972. package/dist/models/cadre-de-facturation.d.ts +0 -22
  973. package/dist/models/cadre-de-facturation.js +0 -15
  974. package/dist/models/categorie-tva.d.ts +0 -53
  975. package/dist/models/categorie-tva.js +0 -57
  976. package/dist/models/champ-verifie-schema.d.ts +0 -42
  977. package/dist/models/champ-verifie-schema.js +0 -15
  978. package/dist/models/chorus-pro-credentials.d.ts +0 -36
  979. package/dist/models/chorus-pro-credentials.js +0 -15
  980. package/dist/models/code-cadre-facturation.d.ts +0 -21
  981. package/dist/models/code-cadre-facturation.js +0 -25
  982. package/dist/models/code-raison-reduction.d.ts +0 -45
  983. package/dist/models/code-raison-reduction.js +0 -49
  984. package/dist/models/consulter-facture-request.d.ts +0 -22
  985. package/dist/models/consulter-facture-request.js +0 -15
  986. package/dist/models/consulter-facture-response.d.ts +0 -26
  987. package/dist/models/consulter-facture-response.js +0 -15
  988. package/dist/models/consulter-structure-request.d.ts +0 -26
  989. package/dist/models/consulter-structure-request.js +0 -15
  990. package/dist/models/consulter-structure-response.d.ts +0 -26
  991. package/dist/models/consulter-structure-response.js +0 -15
  992. package/dist/models/credentials-afnor.d.ts +0 -19
  993. package/dist/models/credentials-afnor.js +0 -15
  994. package/dist/models/credentials-chorus-pro.d.ts +0 -24
  995. package/dist/models/credentials-chorus-pro.js +0 -15
  996. package/dist/models/destinataire.d.ts +0 -24
  997. package/dist/models/destinataire.js +0 -15
  998. package/dist/models/destination-afnor.d.ts +0 -34
  999. package/dist/models/destination-afnor.js +0 -24
  1000. package/dist/models/destination-chorus-pro.d.ts +0 -23
  1001. package/dist/models/destination-chorus-pro.js +0 -19
  1002. package/dist/models/dimension-page-schema.d.ts +0 -24
  1003. package/dist/models/dimension-page-schema.js +0 -15
  1004. package/dist/models/direction-flux.d.ts +0 -19
  1005. package/dist/models/direction-flux.js +0 -23
  1006. package/dist/models/donnees-facture-simplifiees.d.ts +0 -46
  1007. package/dist/models/donnees-facture-simplifiees.js +0 -15
  1008. package/dist/models/facture-enrichie-info.d.ts +0 -24
  1009. package/dist/models/facture-enrichie-info.js +0 -15
  1010. package/dist/models/facture-entrante.d.ts +0 -68
  1011. package/dist/models/facture-entrante.js +0 -15
  1012. package/dist/models/flux-resume.d.ts +0 -24
  1013. package/dist/models/flux-resume.js +0 -15
  1014. package/dist/models/format-facture.d.ts +0 -20
  1015. package/dist/models/format-facture.js +0 -24
  1016. package/dist/models/format-sortie.d.ts +0 -16
  1017. package/dist/models/format-sortie.js +0 -20
  1018. package/dist/models/fournisseur-entrant.d.ts +0 -29
  1019. package/dist/models/fournisseur-entrant.js +0 -15
  1020. package/dist/models/fournisseur.d.ts +0 -28
  1021. package/dist/models/fournisseur.js +0 -15
  1022. package/dist/models/information-signature-api.d.ts +0 -25
  1023. package/dist/models/information-signature-api.js +0 -15
  1024. package/dist/models/ligne-de-poste-montant-remise-ht.d.ts +0 -16
  1025. package/dist/models/ligne-de-poste-montant-remise-ht.js +0 -15
  1026. package/dist/models/ligne-de-poste-taux-tva-manuel.d.ts +0 -16
  1027. package/dist/models/ligne-de-poste-taux-tva-manuel.js +0 -15
  1028. package/dist/models/ligne-de-poste.d.ts +0 -39
  1029. package/dist/models/ligne-de-poste.js +0 -15
  1030. package/dist/models/ligne-de-tva.d.ts +0 -27
  1031. package/dist/models/ligne-de-tva.js +0 -15
  1032. package/dist/models/mode-depot.d.ts +0 -20
  1033. package/dist/models/mode-depot.js +0 -24
  1034. package/dist/models/mode-paiement.d.ts +0 -23
  1035. package/dist/models/mode-paiement.js +0 -27
  1036. package/dist/models/montant-apayer.d.ts +0 -16
  1037. package/dist/models/montant-apayer.js +0 -15
  1038. package/dist/models/montant-base-ht.d.ts +0 -16
  1039. package/dist/models/montant-base-ht.js +0 -15
  1040. package/dist/models/montant-ht-total.d.ts +0 -16
  1041. package/dist/models/montant-ht-total.js +0 -15
  1042. package/dist/models/montant-remise-globale-ttc.d.ts +0 -16
  1043. package/dist/models/montant-remise-globale-ttc.js +0 -15
  1044. package/dist/models/montant-total-acompte.d.ts +0 -16
  1045. package/dist/models/montant-total-acompte.js +0 -15
  1046. package/dist/models/montant-total-ligne-ht.d.ts +0 -16
  1047. package/dist/models/montant-total-ligne-ht.js +0 -15
  1048. package/dist/models/montant-total.d.ts +0 -29
  1049. package/dist/models/montant-total.js +0 -15
  1050. package/dist/models/montant-ttc-total.d.ts +0 -16
  1051. package/dist/models/montant-ttc-total.js +0 -15
  1052. package/dist/models/montant-tva-ligne.d.ts +0 -16
  1053. package/dist/models/montant-tva-ligne.js +0 -15
  1054. package/dist/models/montant-tva-total.d.ts +0 -16
  1055. package/dist/models/montant-tva-total.js +0 -15
  1056. package/dist/models/montant-tva.d.ts +0 -16
  1057. package/dist/models/montant-tva.js +0 -15
  1058. package/dist/models/montant-unitaire-ht.d.ts +0 -16
  1059. package/dist/models/montant-unitaire-ht.js +0 -15
  1060. package/dist/models/nature-operation.d.ts +0 -31
  1061. package/dist/models/nature-operation.js +0 -35
  1062. package/dist/models/note-obligatoire-schema.d.ts +0 -34
  1063. package/dist/models/note-obligatoire-schema.js +0 -15
  1064. package/dist/models/note.d.ts +0 -18
  1065. package/dist/models/note.js +0 -15
  1066. package/dist/models/obtenir-id-chorus-pro-request.d.ts +0 -26
  1067. package/dist/models/obtenir-id-chorus-pro-request.js +0 -15
  1068. package/dist/models/obtenir-id-chorus-pro-response.d.ts +0 -29
  1069. package/dist/models/obtenir-id-chorus-pro-response.js +0 -15
  1070. package/dist/models/options-processing.d.ts +0 -33
  1071. package/dist/models/options-processing.js +0 -15
  1072. package/dist/models/parametres-signature.d.ts +0 -34
  1073. package/dist/models/parametres-signature.js +0 -15
  1074. package/dist/models/parametres-structure.d.ts +0 -28
  1075. package/dist/models/parametres-structure.js +0 -15
  1076. package/dist/models/pdffactur-xinfo.d.ts +0 -28
  1077. package/dist/models/pdffactur-xinfo.js +0 -15
  1078. package/dist/models/piece-jointe-complementaire.d.ts +0 -21
  1079. package/dist/models/piece-jointe-complementaire.js +0 -15
  1080. package/dist/models/profil-api.d.ts +0 -18
  1081. package/dist/models/profil-api.js +0 -22
  1082. package/dist/models/profil-flux.d.ts +0 -20
  1083. package/dist/models/profil-flux.js +0 -24
  1084. package/dist/models/quantite.d.ts +0 -16
  1085. package/dist/models/quantite.js +0 -15
  1086. package/dist/models/rechercher-services-response.d.ts +0 -24
  1087. package/dist/models/rechercher-services-response.js +0 -15
  1088. package/dist/models/rechercher-structure-request.d.ts +0 -25
  1089. package/dist/models/rechercher-structure-request.js +0 -15
  1090. package/dist/models/rechercher-structure-response.d.ts +0 -30
  1091. package/dist/models/rechercher-structure-response.js +0 -15
  1092. package/dist/models/references.d.ts +0 -27
  1093. package/dist/models/references.js +0 -15
  1094. package/dist/models/reponse-healthcheck-afnor.d.ts +0 -28
  1095. package/dist/models/reponse-healthcheck-afnor.js +0 -15
  1096. package/dist/models/reponse-recherche-flux.d.ts +0 -33
  1097. package/dist/models/reponse-recherche-flux.js +0 -15
  1098. package/dist/models/reponse-soumission-flux.d.ts +0 -38
  1099. package/dist/models/reponse-soumission-flux.js +0 -15
  1100. package/dist/models/reponse-tache.d.ts +0 -17
  1101. package/dist/models/reponse-tache.js +0 -15
  1102. package/dist/models/reponse-validation-erreur.d.ts +0 -17
  1103. package/dist/models/reponse-validation-erreur.js +0 -15
  1104. package/dist/models/reponse-validation-succes.d.ts +0 -17
  1105. package/dist/models/reponse-validation-succes.js +0 -15
  1106. package/dist/models/reponse-verification-succes.d.ts +0 -56
  1107. package/dist/models/reponse-verification-succes.js +0 -15
  1108. package/dist/models/requete-recherche-flux.d.ts +0 -34
  1109. package/dist/models/requete-recherche-flux.js +0 -15
  1110. package/dist/models/requete-soumission-flux.d.ts +0 -31
  1111. package/dist/models/requete-soumission-flux.js +0 -15
  1112. package/dist/models/resultat-afnor.d.ts +0 -30
  1113. package/dist/models/resultat-afnor.js +0 -15
  1114. package/dist/models/resultat-chorus-pro.d.ts +0 -22
  1115. package/dist/models/resultat-chorus-pro.js +0 -15
  1116. package/dist/models/resultat-validation-pdfapi.d.ts +0 -93
  1117. package/dist/models/resultat-validation-pdfapi.js +0 -15
  1118. package/dist/models/service-structure.d.ts +0 -32
  1119. package/dist/models/service-structure.js +0 -15
  1120. package/dist/models/soumettre-facture-complete-request.d.ts +0 -34
  1121. package/dist/models/soumettre-facture-complete-request.js +0 -15
  1122. package/dist/models/soumettre-facture-complete-response.d.ts +0 -53
  1123. package/dist/models/soumettre-facture-complete-response.js +0 -20
  1124. package/dist/models/soumettre-facture-request.d.ts +0 -44
  1125. package/dist/models/soumettre-facture-request.js +0 -15
  1126. package/dist/models/soumettre-facture-response.d.ts +0 -26
  1127. package/dist/models/soumettre-facture-response.js +0 -15
  1128. package/dist/models/statut-acquittement.d.ts +0 -20
  1129. package/dist/models/statut-acquittement.js +0 -24
  1130. package/dist/models/statut-celery.d.ts +0 -22
  1131. package/dist/models/statut-celery.js +0 -26
  1132. package/dist/models/statut-champ-api.d.ts +0 -22
  1133. package/dist/models/statut-champ-api.js +0 -26
  1134. package/dist/models/statut-facture.d.ts +0 -25
  1135. package/dist/models/statut-facture.js +0 -15
  1136. package/dist/models/statut-tache.d.ts +0 -25
  1137. package/dist/models/statut-tache.js +0 -15
  1138. package/dist/models/syntaxe-flux.d.ts +0 -22
  1139. package/dist/models/syntaxe-flux.js +0 -26
  1140. package/dist/models/tauxmanuel.d.ts +0 -16
  1141. package/dist/models/tauxmanuel.js +0 -15
  1142. package/dist/models/type-document.d.ts +0 -37
  1143. package/dist/models/type-document.js +0 -41
  1144. package/dist/models/type-facture.d.ts +0 -81
  1145. package/dist/models/type-facture.js +0 -85
  1146. package/dist/models/type-flux.d.ts +0 -22
  1147. package/dist/models/type-flux.js +0 -26
  1148. package/dist/models/type-tva.d.ts +0 -21
  1149. package/dist/models/type-tva.js +0 -25
  1150. package/dist/models/unite.d.ts +0 -23
  1151. package/dist/models/unite.js +0 -27
  1152. package/docs/AdresseElectronique.md +0 -23
  1153. package/docs/AdressePostale.md +0 -29
  1154. package/docs/Beneficiaire.md +0 -31
  1155. package/docs/CadreDeFacturation.md +0 -27
  1156. package/docs/CategorieTVA.md +0 -25
  1157. package/docs/ChampVerifieSchema.md +0 -37
  1158. package/docs/ChorusProCredentials.md +0 -29
  1159. package/docs/CodeCadreFacturation.md +0 -15
  1160. package/docs/CodeRaisonReduction.md +0 -21
  1161. package/docs/ConsulterFactureRequest.md +0 -23
  1162. package/docs/ConsulterFactureResponse.md +0 -37
  1163. package/docs/ConsulterStructureRequest.md +0 -25
  1164. package/docs/ConsulterStructureResponse.md +0 -37
  1165. package/docs/CredentialsAFNOR.md +0 -25
  1166. package/docs/CredentialsChorusPro.md +0 -29
  1167. package/docs/Destinataire.md +0 -31
  1168. package/docs/DestinationAFNOR.md +0 -27
  1169. package/docs/DestinationChorusPro.md +0 -23
  1170. package/docs/DimensionPageSchema.md +0 -23
  1171. package/docs/DirectionFlux.md +0 -11
  1172. package/docs/DonneesFactureSimplifiees.md +0 -37
  1173. package/docs/FactureEnrichieInfo.md +0 -35
  1174. package/docs/FactureEntrante.md +0 -57
  1175. package/docs/FluxResume.md +0 -35
  1176. package/docs/FormatFacture.md +0 -13
  1177. package/docs/FormatSortie.md +0 -10
  1178. package/docs/Fournisseur.md +0 -39
  1179. package/docs/FournisseurEntrant.md +0 -35
  1180. package/docs/InformationSignatureAPI.md +0 -31
  1181. package/docs/LigneDePoste.md +0 -49
  1182. package/docs/LigneDePosteMontantRemiseHt.md +0 -19
  1183. package/docs/LigneDePosteTauxTvaManuel.md +0 -19
  1184. package/docs/LigneDeTVA.md +0 -33
  1185. package/docs/ModeDepot.md +0 -13
  1186. package/docs/ModePaiement.md +0 -19
  1187. package/docs/MontantAPayer.md +0 -19
  1188. package/docs/MontantBaseHt.md +0 -19
  1189. package/docs/MontantHtTotal.md +0 -19
  1190. package/docs/MontantRemiseGlobaleTtc.md +0 -19
  1191. package/docs/MontantTotal.md +0 -33
  1192. package/docs/MontantTotalAcompte.md +0 -19
  1193. package/docs/MontantTotalLigneHt.md +0 -19
  1194. package/docs/MontantTtcTotal.md +0 -19
  1195. package/docs/MontantTva.md +0 -19
  1196. package/docs/MontantTvaLigne.md +0 -19
  1197. package/docs/MontantTvaTotal.md +0 -19
  1198. package/docs/MontantUnitaireHt.md +0 -19
  1199. package/docs/NatureOperation.md +0 -35
  1200. package/docs/Note.md +0 -23
  1201. package/docs/NoteObligatoireSchema.md +0 -33
  1202. package/docs/ObtenirIdChorusProRequest.md +0 -25
  1203. package/docs/ObtenirIdChorusProResponse.md +0 -27
  1204. package/docs/OptionsProcessing.md +0 -27
  1205. package/docs/PDFFacturXInfo.md +0 -25
  1206. package/docs/ParametresSignature.md +0 -37
  1207. package/docs/ParametresStructure.md +0 -25
  1208. package/docs/PieceJointeComplementaire.md +0 -29
  1209. package/docs/ProfilAPI.md +0 -14
  1210. package/docs/ProfilFlux.md +0 -13
  1211. package/docs/Quantite.md +0 -19
  1212. package/docs/RechercherServicesResponse.md +0 -27
  1213. package/docs/RechercherStructureRequest.md +0 -29
  1214. package/docs/RechercherStructureResponse.md +0 -27
  1215. package/docs/References.md +0 -35
  1216. package/docs/ReponseHealthcheckAFNOR.md +0 -25
  1217. package/docs/ReponseRechercheFlux.md +0 -27
  1218. package/docs/ReponseSoumissionFlux.md +0 -33
  1219. package/docs/ReponseTache.md +0 -21
  1220. package/docs/ReponseValidationErreur.md +0 -20
  1221. package/docs/ReponseValidationSucces.md +0 -20
  1222. package/docs/ReponseVerificationSucces.md +0 -39
  1223. package/docs/RequeteRechercheFlux.md +0 -37
  1224. package/docs/RequeteSoumissionFlux.md +0 -31
  1225. package/docs/ResultatAFNOR.md +0 -29
  1226. package/docs/ResultatChorusPro.md +0 -25
  1227. package/docs/ResultatValidationPDFAPI.md +0 -65
  1228. package/docs/SantApi.md +0 -97
  1229. package/docs/ServiceStructure.md +0 -27
  1230. package/docs/SoumettreFactureCompleteRequest.md +0 -29
  1231. package/docs/SoumettreFactureCompleteResponse.md +0 -37
  1232. package/docs/SoumettreFactureRequest.md +0 -49
  1233. package/docs/SoumettreFactureResponse.md +0 -27
  1234. package/docs/StatutAcquittement.md +0 -13
  1235. package/docs/StatutCelery.md +0 -17
  1236. package/docs/StatutChampAPI.md +0 -17
  1237. package/docs/StatutFacture.md +0 -25
  1238. package/docs/StatutTache.md +0 -25
  1239. package/docs/SyntaxeFlux.md +0 -17
  1240. package/docs/Tauxmanuel.md +0 -19
  1241. package/docs/TraitementFactureApi.md +0 -670
  1242. package/docs/TypeDocument.md +0 -17
  1243. package/docs/TypeFacture.md +0 -39
  1244. package/docs/TypeFlux.md +0 -17
  1245. package/docs/TypeTVA.md +0 -15
  1246. package/docs/Unite.md +0 -19
  1247. package/docs/UtilisateurApi.md +0 -52
  1248. package/docs/VrificationPDFXMLApi.md +0 -335
  1249. package/models/adresse-electronique.ts +0 -29
  1250. package/models/adresse-postale.ts +0 -27
  1251. package/models/beneficiaire.ts +0 -34
  1252. package/models/cadre-de-facturation.ts +0 -34
  1253. package/models/categorie-tva.ts +0 -63
  1254. package/models/champ-verifie-schema.ts +0 -54
  1255. package/models/chorus-pro-credentials.ts +0 -42
  1256. package/models/code-cadre-facturation.ts +0 -31
  1257. package/models/code-raison-reduction.ts +0 -55
  1258. package/models/consulter-facture-request.ts +0 -30
  1259. package/models/consulter-facture-response.ts +0 -34
  1260. package/models/consulter-structure-request.ts +0 -34
  1261. package/models/consulter-structure-response.ts +0 -34
  1262. package/models/credentials-afnor.ts +0 -25
  1263. package/models/credentials-chorus-pro.ts +0 -30
  1264. package/models/destinataire.ts +0 -34
  1265. package/models/destination-afnor.ts +0 -46
  1266. package/models/destination-chorus-pro.ts +0 -34
  1267. package/models/dimension-page-schema.ts +0 -30
  1268. package/models/direction-flux.ts +0 -29
  1269. package/models/donnees-facture-simplifiees.ts +0 -46
  1270. package/models/facture-enrichie-info.ts +0 -30
  1271. package/models/facture-entrante.ts +0 -82
  1272. package/models/flux-resume.ts +0 -30
  1273. package/models/format-facture.ts +0 -30
  1274. package/models/format-sortie.ts +0 -26
  1275. package/models/fournisseur-entrant.ts +0 -39
  1276. package/models/fournisseur.ts +0 -38
  1277. package/models/information-signature-api.ts +0 -31
  1278. package/models/ligne-de-poste-montant-remise-ht.ts +0 -22
  1279. package/models/ligne-de-poste-taux-tva-manuel.ts +0 -22
  1280. package/models/ligne-de-poste.ts +0 -63
  1281. package/models/ligne-de-tva.ts +0 -43
  1282. package/models/mode-depot.ts +0 -30
  1283. package/models/mode-paiement.ts +0 -33
  1284. package/models/montant-apayer.ts +0 -22
  1285. package/models/montant-base-ht.ts +0 -22
  1286. package/models/montant-ht-total.ts +0 -22
  1287. package/models/montant-remise-globale-ttc.ts +0 -22
  1288. package/models/montant-total-acompte.ts +0 -22
  1289. package/models/montant-total-ligne-ht.ts +0 -22
  1290. package/models/montant-total.ts +0 -47
  1291. package/models/montant-ttc-total.ts +0 -22
  1292. package/models/montant-tva-ligne.ts +0 -22
  1293. package/models/montant-tva-total.ts +0 -22
  1294. package/models/montant-tva.ts +0 -22
  1295. package/models/montant-unitaire-ht.ts +0 -22
  1296. package/models/nature-operation.ts +0 -41
  1297. package/models/note-obligatoire-schema.ts +0 -46
  1298. package/models/note.ts +0 -24
  1299. package/models/obtenir-id-chorus-pro-request.ts +0 -34
  1300. package/models/obtenir-id-chorus-pro-response.ts +0 -35
  1301. package/models/options-processing.ts +0 -43
  1302. package/models/parametres-signature.ts +0 -40
  1303. package/models/parametres-structure.ts +0 -34
  1304. package/models/pdffactur-xinfo.ts +0 -34
  1305. package/models/piece-jointe-complementaire.ts +0 -27
  1306. package/models/profil-api.ts +0 -28
  1307. package/models/profil-flux.ts +0 -30
  1308. package/models/quantite.ts +0 -22
  1309. package/models/rechercher-services-response.ts +0 -32
  1310. package/models/rechercher-structure-request.ts +0 -33
  1311. package/models/rechercher-structure-response.ts +0 -38
  1312. package/models/references.ts +0 -41
  1313. package/models/reponse-healthcheck-afnor.ts +0 -34
  1314. package/models/reponse-recherche-flux.ts +0 -41
  1315. package/models/reponse-soumission-flux.ts +0 -44
  1316. package/models/reponse-tache.ts +0 -23
  1317. package/models/reponse-validation-erreur.ts +0 -23
  1318. package/models/reponse-validation-succes.ts +0 -23
  1319. package/models/reponse-verification-succes.ts +0 -68
  1320. package/models/requete-recherche-flux.ts +0 -48
  1321. package/models/requete-soumission-flux.ts +0 -45
  1322. package/models/resultat-afnor.ts +0 -36
  1323. package/models/resultat-chorus-pro.ts +0 -28
  1324. package/models/resultat-validation-pdfapi.ts +0 -99
  1325. package/models/service-structure.ts +0 -38
  1326. package/models/soumettre-facture-complete-request.ts +0 -48
  1327. package/models/soumettre-facture-complete-response.ts +0 -72
  1328. package/models/soumettre-facture-request.ts +0 -58
  1329. package/models/soumettre-facture-response.ts +0 -32
  1330. package/models/statut-acquittement.ts +0 -30
  1331. package/models/statut-celery.ts +0 -32
  1332. package/models/statut-champ-api.ts +0 -32
  1333. package/models/statut-facture.ts +0 -31
  1334. package/models/statut-tache.ts +0 -33
  1335. package/models/syntaxe-flux.ts +0 -32
  1336. package/models/tauxmanuel.ts +0 -22
  1337. package/models/type-document.ts +0 -47
  1338. package/models/type-facture.ts +0 -91
  1339. package/models/type-flux.ts +0 -32
  1340. package/models/type-tva.ts +0 -31
  1341. package/models/unite.ts +0 -33
@@ -0,0 +1,1010 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * FactPulse REST API
6
+ * REST API for electronic invoicing in France: Factur-X, AFNOR PDP/PA, electronic signatures. ## 🎯 Main Features ### 📄 Factur-X Invoice Generation - **Formats**: XML only or PDF/A-3 with embedded XML - **Profiles**: MINIMUM, BASIC, EN16931, EXTENDED - **Standards**: EN 16931 (EU directive 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT) - **🆕 Simplified Format**: Generation from SIRET + auto-enrichment (Chorus Pro API + Business Search) ### ✅ Validation and Compliance - **XML Validation**: Schematron (45 to 210+ rules depending on profile) - **PDF Validation**: PDF/A-3, Factur-X XMP metadata, electronic signatures - **VeraPDF**: Strict PDF/A validation (146+ ISO 19005-3 rules) - **Asynchronous Processing**: Celery support for heavy validations (VeraPDF) ### 📡 AFNOR PDP/PA Integration (XP Z12-013) - **Flow Submission**: Send invoices to Partner Dematerialization Platforms - **Flow Search**: View submitted invoices - **Download**: Retrieve PDF/A-3 with XML - **Directory Service**: Company search (SIREN/SIRET) - **Multi-client**: Support for multiple PDP configs per user (stored credentials or zero-storage) ### ✍️ PDF Electronic Signature - **Standards**: PAdES-B-B, PAdES-B-T (RFC 3161 timestamping), PAdES-B-LT (long-term archival) - **eIDAS Levels**: SES (self-signed), AdES (commercial CA), QES (QTSP) - **Validation**: Cryptographic integrity and certificate verification - **Certificate Generation**: Self-signed X.509 certificates for testing ### 🔄 Asynchronous Processing - **Celery**: Asynchronous generation, validation and signing - **Polling**: Status tracking via `/tasks/{task_id}/status` - **No timeout**: Ideal for large files or heavy validations ## 🔒 Authentication All requests require a **JWT token** in the Authorization header: ``` Authorization: Bearer YOUR_JWT_TOKEN ``` ### How to obtain a JWT token? #### 🔑 Method 1: `/api/token/` API (Recommended) **URL:** `https://www.factpulse.fr/api/token/` This method is **recommended** for integration in your applications and CI/CD workflows. **Prerequisites:** Having set a password on your account **For users registered via email/password:** - You already have a password, use it directly **For users registered via OAuth (Google/GitHub):** - You must first set a password at: https://www.factpulse.fr/accounts/password/set/ - Once the password is created, you can use the API **Request example:** ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"your_email@example.com\", \"password\": \"your_password\" }\' ``` **Optional `client_uid` parameter:** To select credentials for a specific client (PA/PDP, Chorus Pro, signing certificates), add `client_uid`: ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"your_email@example.com\", \"password\": \"your_password\", \"client_uid\": \"550e8400-e29b-41d4-a716-446655440000\" }\' ``` The `client_uid` will be included in the JWT and allow the API to automatically use: - AFNOR/PDP credentials configured for this client - Chorus Pro credentials configured for this client - Electronic signature certificates configured for this client **Response:** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Access token (validity: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Refresh token (validity: 7 days) } ``` **Advantages:** - ✅ Full automation (CI/CD, scripts) - ✅ Programmatic token management - ✅ Refresh token support for automatic access renewal - ✅ Easy integration in any language/tool #### 🖥️ Method 2: Dashboard Generation (Alternative) **URL:** https://www.factpulse.fr/dashboard/ This method is suitable for quick tests or occasional use via the graphical interface. **How it works:** - Log in to the dashboard - Use the \"Generate Test Token\" or \"Generate Production Token\" buttons - Works for **all** users (OAuth and email/password), without requiring a password **Token types:** - **Test Token**: 24h validity, 1000 calls/day quota (free) - **Production Token**: 7 days validity, quota based on your plan **Advantages:** - ✅ Quick for API testing - ✅ No password required - ✅ Simple visual interface **Disadvantages:** - ❌ Requires manual action - ❌ No refresh token - ❌ Less suited for automation ### 📚 Full Documentation For more information on authentication and API usage: https://www.factpulse.fr/documentation-api/
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ var __importDefault = (this && this.__importDefault) || function (mod) {
25
+ return (mod && mod.__esModule) ? mod : { "default": mod };
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.InvoiceProcessingApi = exports.InvoiceProcessingApiFactory = exports.InvoiceProcessingApiFp = exports.InvoiceProcessingApiAxiosParamCreator = void 0;
29
+ const axios_1 = __importDefault(require("axios"));
30
+ // Some imports not used depending on template conditions
31
+ // @ts-ignore
32
+ const common_1 = require("../common");
33
+ // @ts-ignore
34
+ const base_1 = require("../base");
35
+ /**
36
+ * InvoiceProcessingApi - axios parameter creator
37
+ */
38
+ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
39
+ return {
40
+ /**
41
+ * Generates an electronic invoice in Factur-X format compliant with European standards. ## Applied Standards - **Factur-X** (France): FNFE-MPE standard (Forum National de la Facture Électronique) - **ZUGFeRD** (Germany): German format compatible with Factur-X - **EN 16931**: European semantic standard for electronic invoicing - **ISO 19005-3** (PDF/A-3): Long-term electronic archiving - **Cross Industry Invoice (CII)**: UN/CEFACT XML syntax ## 🆕 New: Simplified format with auto-enrichment (P0.1) You can now create an invoice by providing only: - An invoice number - A sender SIRET + **IBAN** (required) - A recipient SIRET - Invoice lines (description, quantity, net price) **Simplified format example**: ```json { \"number\": \"FACT-2025-001\", \"sender\": { \"siret\": \"92019522900017\", \"iban\": \"FR7630001007941234567890185\" }, \"recipient\": {\"siret\": \"35600000000048\"}, \"lines\": [ {\"description\": \"Service\", \"quantity\": 10, \"unitPrice\": 100.00, \"vatRate\": 20.0} ] } ``` **⚠️ Required fields (simplified format)**: - `number`: Unique invoice number - `sender.siret`: Sender\'s SIRET (14 digits) - `sender.iban`: Bank account IBAN (no public API to retrieve it) - `recipient.siret`: Recipient\'s SIRET - `lines[]`: At least one invoice line **What happens automatically with `auto_enrich=True`**: - ✅ Name enrichment from Chorus Pro API - ✅ Address enrichment from Business Search API (free, public) - ✅ Automatic intra-EU VAT calculation (FR + key + SIREN) - ✅ Chorus Pro ID retrieval for electronic invoicing - ✅ Net/VAT/Gross totals calculation - ✅ Date generation (today + 30-day due date) - ✅ Multi-rate VAT handling **Supported identifiers**: - SIRET (14 digits): Specific establishment ⭐ Recommended - SIREN (9 digits): Company (auto-selection of headquarters) - Special types: UE_HORS_FRANCE, RIDET, TAHITI, etc. ## Checks performed during generation ### 1. Data validation (Pydantic) - Data types (amounts as Decimal, ISO 8601 dates) - Formats (14-digit SIRET, 9-digit SIREN, IBAN) - Required fields per profile - Amount consistency (Net + VAT = Gross) ### 2. CII-compliant XML generation - Serialization according to Cross Industry Invoice XSD schema - Correct UN/CEFACT namespaces - Hierarchical structure respected - UTF-8 encoding without BOM ### 3. Schematron validation - Business rules for selected profile (MINIMUM, BASIC, EN16931, EXTENDED) - Element cardinality (required, optional, repeatable) - Calculation rules (totals, VAT, discounts) - European EN 16931 compliance ### 4. PDF/A-3 conversion (if output_format=\'pdf\') - Source PDF conversion to PDF/A-3 via Ghostscript - Factur-X XML embedding in PDF - Compliant XMP metadata - ICC sRGB color profile - Removal of forbidden elements (JavaScript, forms) ## How it works 1. **Submission**: Invoice is queued in Celery for asynchronous processing 2. **Immediate return**: You receive a `task_id` (HTTP 202 Accepted) 3. **Tracking**: Use the `/tasks/{task_id}/status` endpoint to track progress ## Output formats - **xml**: Generates only Factur-X XML (recommended for testing) - **pdf**: Generates PDF/A-3 with embedded XML (requires `source_pdf`) ## Factur-X profiles - **MINIMUM**: Minimal data (simplified invoice) - **BASIC**: Basic information (SMEs) - **EN16931**: European standard (recommended, compliant with directive 2014/55/EU) - **EXTENDED**: All available data (large accounts) ## What you get After successful processing (status `completed`): - **XML only**: Base64-encoded Factur-X compliant XML file - **PDF/A-3**: PDF with embedded XML, ready for sending/archiving - **Metadata**: Profile, Factur-X version, file size - **Validation**: Schematron compliance confirmation ## Validation Data is automatically validated according to detected format. On error, a 422 status is returned with invalid field details.
42
+ * @summary Generate a Factur-X invoice
43
+ * @param {string} invoiceData Invoice data in JSON format. Two formats accepted: 1. **Classic format**: Complete FactureFacturX structure (all fields) 2. **Simplified format** (🆕 P0.1): Minimal structure with auto-enrichment Format is detected automatically!
44
+ * @param {APIProfile} [profile] Factur-X profile: MINIMUM, BASIC, EN16931 or EXTENDED.
45
+ * @param {OutputFormat} [outputFormat] Output format: \\\'xml\\\' (XML only) or \\\'pdf\\\' (Factur-X PDF with embedded XML).
46
+ * @param {boolean} [autoEnrich] 🆕 Enable auto-enrichment from SIRET/SIREN (simplified format only)
47
+ * @param {File | null} [sourcePdf]
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ */
51
+ generateInvoiceApiV1ProcessingGenerateInvoicePost: (invoiceData_1, profile_1, outputFormat_1, autoEnrich_1, sourcePdf_1, ...args_1) => __awaiter(this, [invoiceData_1, profile_1, outputFormat_1, autoEnrich_1, sourcePdf_1, ...args_1], void 0, function* (invoiceData, profile, outputFormat, autoEnrich, sourcePdf, options = {}) {
52
+ // verify required parameter 'invoiceData' is not null or undefined
53
+ (0, common_1.assertParamExists)('generateInvoiceApiV1ProcessingGenerateInvoicePost', 'invoiceData', invoiceData);
54
+ const localVarPath = `/api/v1/processing/generate-invoice`;
55
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
56
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
57
+ let baseOptions;
58
+ if (configuration) {
59
+ baseOptions = configuration.baseOptions;
60
+ }
61
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
62
+ const localVarHeaderParameter = {};
63
+ const localVarQueryParameter = {};
64
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
65
+ // authentication HTTPBearer required
66
+ // http bearer authentication required
67
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
68
+ if (invoiceData !== undefined) {
69
+ localVarFormParams.append('invoice_data', invoiceData);
70
+ }
71
+ if (profile !== undefined) {
72
+ localVarFormParams.append('profile', profile);
73
+ }
74
+ if (outputFormat !== undefined) {
75
+ localVarFormParams.append('output_format', outputFormat);
76
+ }
77
+ if (autoEnrich !== undefined) {
78
+ localVarFormParams.append('auto_enrich', String(autoEnrich));
79
+ }
80
+ if (sourcePdf !== undefined) {
81
+ localVarFormParams.append('source_pdf', sourcePdf);
82
+ }
83
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
84
+ localVarHeaderParameter['Accept'] = 'application/json';
85
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
86
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
87
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
88
+ localVarRequestOptions.data = localVarFormParams;
89
+ return {
90
+ url: (0, common_1.toPathString)(localVarUrlObj),
91
+ options: localVarRequestOptions,
92
+ };
93
+ }),
94
+ /**
95
+ * Generates a self-signed X.509 certificate for PDF electronic signature testing. **⚠️ WARNING: TEST certificate only!** This certificate is: - ✅ Suitable for testing and development - ✅ Compatible with PDF signing (PAdES) - ✅ Compliant with eIDAS **SES** level (Simple Electronic Signature) - ❌ **NEVER usable in production** - ❌ **Not recognized** by browsers and PDF readers - ❌ **No legal value** ## eIDAS levels - **SES** (Simple): Self-signed certificate ← Generated by this endpoint - **AdES** (Advanced): Commercial CA certificate (Let\'s Encrypt, etc.) - **QES** (Qualified): Qualified certificate from QTSP (CertEurope, Universign, etc.) ## Usage Once generated, the certificate can be: 1. **Saved in Django** (recommended): - Django Admin > Signing Certificates - Upload `certificate_pem` and `private_key_pem` 2. **Used directly**: - Sign a PDF with `/sign-pdf` - The certificate will be automatically used ## Example call ```bash curl -X POST \"https://www.factpulse.fr/api/v1/processing/generate-test-certificate\" \\ -H \"Authorization: Bearer eyJ0eXAi...\" \\ -H \"Content-Type: application/json\" \\ -d \'{ \"cn\": \"Test Client XYZ\", \"organization\": \"Client XYZ Ltd\", \"email\": \"contact@xyz.com\", \"validity_days\": 365 }\' ``` ## Use cases - PDF signature testing in development - Electronic signature POC - Training and demos - Automated integration tests ## Technical compliance Certificate generated with: - RSA key 2048 or 4096 bits - SHA-256 algorithm - Key Usage extensions: `digitalSignature`, `contentCommitment` (non-repudiation) - Extended Key Usage extensions: `codeSigning`, `emailProtection` - Validity: 1 day to 10 years (configurable) - Format: PEM (certificate and key) - Optional: PKCS#12 (.p12)
96
+ * @summary Generate a self-signed X.509 test certificate
97
+ * @param {GenerateCertificateRequest} generateCertificateRequest
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ generateTestCertificateApiV1ProcessingGenerateTestCertificatePost: (generateCertificateRequest_1, ...args_1) => __awaiter(this, [generateCertificateRequest_1, ...args_1], void 0, function* (generateCertificateRequest, options = {}) {
102
+ // verify required parameter 'generateCertificateRequest' is not null or undefined
103
+ (0, common_1.assertParamExists)('generateTestCertificateApiV1ProcessingGenerateTestCertificatePost', 'generateCertificateRequest', generateCertificateRequest);
104
+ const localVarPath = `/api/v1/processing/generate-test-certificate`;
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ if (configuration) {
109
+ baseOptions = configuration.baseOptions;
110
+ }
111
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
112
+ const localVarHeaderParameter = {};
113
+ const localVarQueryParameter = {};
114
+ // authentication HTTPBearer required
115
+ // http bearer authentication required
116
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
117
+ localVarHeaderParameter['Content-Type'] = 'application/json';
118
+ localVarHeaderParameter['Accept'] = 'application/json';
119
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
120
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
121
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
122
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(generateCertificateRequest, localVarRequestOptions, configuration);
123
+ return {
124
+ url: (0, common_1.toPathString)(localVarUrlObj),
125
+ options: localVarRequestOptions,
126
+ };
127
+ }),
128
+ /**
129
+ * Retrieves the progress status of an invoice generation task. ## Possible states The `status` field uses the `CeleryStatus` enum with values: - **PENDING, STARTED, SUCCESS, FAILURE, RETRY** See the `CeleryStatus` schema documentation for details. ## Business result When `status=\"SUCCESS\"`, the `result` field contains: - `status`: \"SUCCESS\" or \"ERROR\" (business result) - `content_b64`: Base64 encoded content (if success) - `errorCode`, `errorMessage`, `details`: AFNOR format (if business error) ## Usage Poll this endpoint every 2-3 seconds until `status` is `SUCCESS` or `FAILURE`.
130
+ * @summary Get task generation status
131
+ * @param {string} taskId
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ */
135
+ getTaskStatusApiV1ProcessingTasksTaskIdStatusGet: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
136
+ // verify required parameter 'taskId' is not null or undefined
137
+ (0, common_1.assertParamExists)('getTaskStatusApiV1ProcessingTasksTaskIdStatusGet', 'taskId', taskId);
138
+ const localVarPath = `/api/v1/processing/tasks/{task_id}/status`
139
+ .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
140
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
141
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
142
+ let baseOptions;
143
+ if (configuration) {
144
+ baseOptions = configuration.baseOptions;
145
+ }
146
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
147
+ const localVarHeaderParameter = {};
148
+ const localVarQueryParameter = {};
149
+ // authentication HTTPBearer required
150
+ // http bearer authentication required
151
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
152
+ localVarHeaderParameter['Accept'] = 'application/json';
153
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
154
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
155
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
156
+ return {
157
+ url: (0, common_1.toPathString)(localVarUrlObj),
158
+ options: localVarRequestOptions,
159
+ };
160
+ }),
161
+ /**
162
+ * Signs an uploaded PDF with the electronic certificate configured for the client (via client_uid from JWT). **Supported standards**: PAdES-B-B, PAdES-B-T (timestamping), PAdES-B-LT (long-term archiving). **eIDAS levels**: SES (self-signed), AdES (commercial CA), QES (PSCO - out of scope). **Security**: Double authentication X-Internal-Secret + JWT Bearer to retrieve the certificate. **⚠️ Legal disclaimer**: Generated signatures are electronic seals as defined by the eIDAS regulation. The level of legal validity depends on the certificate used (SES/AdES/QES). FactPulse does not provide QES qualified certificates - you must obtain a certificate from a PSCO (qualified Trust Service Provider) for maximum legal validity.
163
+ * @summary Sign a PDF with client\'s certificate (PAdES-B-LT)
164
+ * @param {File} pdfFile PDF file to sign (will be processed and returned signed in base64)
165
+ * @param {string | null} [reason]
166
+ * @param {string | null} [location]
167
+ * @param {string | null} [contact]
168
+ * @param {string} [fieldName] PDF signature field name
169
+ * @param {boolean} [usePadesLt] Enable PAdES-B-LT (long-term archiving with embedded validation data). REQUIRES a certificate with OCSP/CRL access.
170
+ * @param {boolean} [useTimestamp] Enable RFC 3161 timestamping with FreeTSA (PAdES-B-T)
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ */
174
+ signPdfApiV1ProcessingSignPdfPost: (pdfFile_1, reason_1, location_1, contact_1, fieldName_1, usePadesLt_1, useTimestamp_1, ...args_1) => __awaiter(this, [pdfFile_1, reason_1, location_1, contact_1, fieldName_1, usePadesLt_1, useTimestamp_1, ...args_1], void 0, function* (pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options = {}) {
175
+ // verify required parameter 'pdfFile' is not null or undefined
176
+ (0, common_1.assertParamExists)('signPdfApiV1ProcessingSignPdfPost', 'pdfFile', pdfFile);
177
+ const localVarPath = `/api/v1/processing/sign-pdf`;
178
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
179
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
180
+ let baseOptions;
181
+ if (configuration) {
182
+ baseOptions = configuration.baseOptions;
183
+ }
184
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
185
+ const localVarHeaderParameter = {};
186
+ const localVarQueryParameter = {};
187
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
188
+ // authentication HTTPBearer required
189
+ // http bearer authentication required
190
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
191
+ if (pdfFile !== undefined) {
192
+ localVarFormParams.append('pdf_file', pdfFile);
193
+ }
194
+ if (reason !== undefined) {
195
+ localVarFormParams.append('reason', reason);
196
+ }
197
+ if (location !== undefined) {
198
+ localVarFormParams.append('location', location);
199
+ }
200
+ if (contact !== undefined) {
201
+ localVarFormParams.append('contact', contact);
202
+ }
203
+ if (fieldName !== undefined) {
204
+ localVarFormParams.append('field_name', fieldName);
205
+ }
206
+ if (usePadesLt !== undefined) {
207
+ localVarFormParams.append('use_pades_lt', String(usePadesLt));
208
+ }
209
+ if (useTimestamp !== undefined) {
210
+ localVarFormParams.append('use_timestamp', String(useTimestamp));
211
+ }
212
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
213
+ localVarHeaderParameter['Accept'] = 'application/json';
214
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
216
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
217
+ localVarRequestOptions.data = localVarFormParams;
218
+ return {
219
+ url: (0, common_1.toPathString)(localVarUrlObj),
220
+ options: localVarRequestOptions,
221
+ };
222
+ }),
223
+ /**
224
+ * Signs an uploaded PDF asynchronously via a Celery task. **Difference with /sign-pdf**: - `/sign-pdf`: Synchronous signature (blocking until completion) - `/sign-pdf-async`: Asynchronous signature (returns immediately with task_id) **Async advantages**: - No timeout for large files - No blocking of FastAPI worker - Progress tracking via task_id - Ideal for batch processing **Supported standards**: PAdES-B-B, PAdES-B-T (timestamping), PAdES-B-LT (long-term archiving). **⚠️ Legal disclaimer**: Same as /sign-pdf (see that endpoint\'s documentation).
225
+ * @summary Sign a PDF asynchronously (Celery)
226
+ * @param {File} pdfFile PDF file to sign (processed asynchronously)
227
+ * @param {string | null} [reason]
228
+ * @param {string | null} [location]
229
+ * @param {string | null} [contact]
230
+ * @param {string} [fieldName] PDF signature field name
231
+ * @param {boolean} [usePadesLt] Enable PAdES-B-LT (long-term archiving with embedded validation data). REQUIRES a certificate with OCSP/CRL access.
232
+ * @param {boolean} [useTimestamp] Enable RFC 3161 timestamping with FreeTSA (PAdES-B-T)
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ */
236
+ signPdfAsyncApiV1ProcessingSignPdfAsyncPost: (pdfFile_1, reason_1, location_1, contact_1, fieldName_1, usePadesLt_1, useTimestamp_1, ...args_1) => __awaiter(this, [pdfFile_1, reason_1, location_1, contact_1, fieldName_1, usePadesLt_1, useTimestamp_1, ...args_1], void 0, function* (pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options = {}) {
237
+ // verify required parameter 'pdfFile' is not null or undefined
238
+ (0, common_1.assertParamExists)('signPdfAsyncApiV1ProcessingSignPdfAsyncPost', 'pdfFile', pdfFile);
239
+ const localVarPath = `/api/v1/processing/sign-pdf-async`;
240
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
241
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
242
+ let baseOptions;
243
+ if (configuration) {
244
+ baseOptions = configuration.baseOptions;
245
+ }
246
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
247
+ const localVarHeaderParameter = {};
248
+ const localVarQueryParameter = {};
249
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
250
+ // authentication HTTPBearer required
251
+ // http bearer authentication required
252
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
253
+ if (pdfFile !== undefined) {
254
+ localVarFormParams.append('pdf_file', pdfFile);
255
+ }
256
+ if (reason !== undefined) {
257
+ localVarFormParams.append('reason', reason);
258
+ }
259
+ if (location !== undefined) {
260
+ localVarFormParams.append('location', location);
261
+ }
262
+ if (contact !== undefined) {
263
+ localVarFormParams.append('contact', contact);
264
+ }
265
+ if (fieldName !== undefined) {
266
+ localVarFormParams.append('field_name', fieldName);
267
+ }
268
+ if (usePadesLt !== undefined) {
269
+ localVarFormParams.append('use_pades_lt', String(usePadesLt));
270
+ }
271
+ if (useTimestamp !== undefined) {
272
+ localVarFormParams.append('use_timestamp', String(useTimestamp));
273
+ }
274
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
275
+ localVarHeaderParameter['Accept'] = 'application/json';
276
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
277
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
278
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
279
+ localVarRequestOptions.data = localVarFormParams;
280
+ return {
281
+ url: (0, common_1.toPathString)(localVarUrlObj),
282
+ options: localVarRequestOptions,
283
+ };
284
+ }),
285
+ /**
286
+ * Unified endpoint to submit a complete invoice to different destinations. **Automated workflow:** 1. **Auto-enrichment** (optional): retrieves data via public APIs and Chorus Pro/AFNOR 2. **Factur-X PDF generation**: creates a PDF/A-3 with embedded XML 3. **Electronic signature** (optional): signs the PDF with a certificate 4. **Submission**: sends to the chosen destination (Chorus Pro or AFNOR PDP) **Supported destinations:** - **Chorus Pro**: French B2G platform (invoices to public sector) - **AFNOR PDP**: Partner Dematerialization Platforms **Destination credentials - 2 modes available:** **Mode 1 - Retrieval via JWT (recommended):** - Credentials are retrieved automatically via the JWT `client_uid` - Do not provide the `credentials` field in `destination` - Zero-trust architecture: no secrets in the payload - Example: `\"destination\": {\"type\": \"chorus_pro\"}` **Mode 2 - Credentials in the payload:** - Provide credentials directly in the payload - Useful for tests or third-party integrations - Example: `\"destination\": {\"type\": \"chorus_pro\", \"credentials\": {...}}` **Electronic signature (optional) - 2 modes available:** **Mode 1 - Stored certificate (recommended):** - Certificate is retrieved automatically via the JWT `client_uid` - No key to provide in the payload - PAdES-B-LT signature with timestamp (eIDAS compliant) - Example: `\"signature\": {\"reason\": \"Factur-X compliance\"}` **Mode 2 - Keys in the payload (for tests):** - Provide `key_pem` and `cert_pem` directly - PEM format accepted: raw or base64 - Useful for tests or special cases without stored certificate - Example: `\"signature\": {\"key_pem\": \"-----BEGIN...\", \"cert_pem\": \"-----BEGIN...\"}` If `key_pem` and `cert_pem` are provided → Mode 2 Otherwise → Mode 1 (certificate retrieved via `client_uid`)
287
+ * @summary Submit a complete invoice (generation + signature + submission)
288
+ * @param {SubmitCompleteInvoiceRequest} submitCompleteInvoiceRequest
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ submitCompleteInvoiceApiV1ProcessingInvoicesSubmitCompletePost: (submitCompleteInvoiceRequest_1, ...args_1) => __awaiter(this, [submitCompleteInvoiceRequest_1, ...args_1], void 0, function* (submitCompleteInvoiceRequest, options = {}) {
293
+ // verify required parameter 'submitCompleteInvoiceRequest' is not null or undefined
294
+ (0, common_1.assertParamExists)('submitCompleteInvoiceApiV1ProcessingInvoicesSubmitCompletePost', 'submitCompleteInvoiceRequest', submitCompleteInvoiceRequest);
295
+ const localVarPath = `/api/v1/processing/invoices/submit-complete`;
296
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
297
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
298
+ let baseOptions;
299
+ if (configuration) {
300
+ baseOptions = configuration.baseOptions;
301
+ }
302
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
303
+ const localVarHeaderParameter = {};
304
+ const localVarQueryParameter = {};
305
+ // authentication HTTPBearer required
306
+ // http bearer authentication required
307
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
308
+ localVarHeaderParameter['Content-Type'] = 'application/json';
309
+ localVarHeaderParameter['Accept'] = 'application/json';
310
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
311
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
312
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
313
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(submitCompleteInvoiceRequest, localVarRequestOptions, configuration);
314
+ return {
315
+ url: (0, common_1.toPathString)(localVarUrlObj),
316
+ options: localVarRequestOptions,
317
+ };
318
+ }),
319
+ /**
320
+ * Asynchronous version of the `/invoices/submit-complete` endpoint using Celery for background processing. **Automated workflow (same as synchronous version):** 1. **Auto-enrichment** (optional): retrieves data via public APIs and Chorus Pro/AFNOR 2. **Factur-X PDF generation**: creates a PDF/A-3 with embedded XML 3. **Electronic signature** (optional): signs the PDF with a certificate 4. **Submission**: sends to the chosen destination (Chorus Pro or AFNOR PDP) **Supported destinations:** - **Chorus Pro**: French B2G platform (invoices to public sector) - **AFNOR PDP**: Partner Dematerialization Platforms **Differences with synchronous version:** - ✅ **Non-blocking**: Returns immediately with a `task_id` (HTTP 202 Accepted) - ✅ **Background processing**: Invoice is processed by a Celery worker - ✅ **Progress tracking**: Use `/tasks/{task_id}/status` to track status - ✅ **Ideal for high volumes**: Allows processing many invoices in parallel **How to use:** 1. **Submission**: Call this endpoint with your invoice data 2. **Immediate return**: You receive a `task_id` (e.g., \"abc123-def456\") 3. **Tracking**: Call `/tasks/{task_id}/status` to check progress 4. **Result**: When `status = \"SUCCESS\"`, the `result` field contains the complete response **Credentials and signature**: Same modes as the synchronous version (JWT or payload).
321
+ * @summary Submit a complete invoice (asynchronous with Celery)
322
+ * @param {SubmitCompleteInvoiceRequest} submitCompleteInvoiceRequest
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost: (submitCompleteInvoiceRequest_1, ...args_1) => __awaiter(this, [submitCompleteInvoiceRequest_1, ...args_1], void 0, function* (submitCompleteInvoiceRequest, options = {}) {
327
+ // verify required parameter 'submitCompleteInvoiceRequest' is not null or undefined
328
+ (0, common_1.assertParamExists)('submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost', 'submitCompleteInvoiceRequest', submitCompleteInvoiceRequest);
329
+ const localVarPath = `/api/v1/processing/invoices/submit-complete-async`;
330
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
331
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
332
+ let baseOptions;
333
+ if (configuration) {
334
+ baseOptions = configuration.baseOptions;
335
+ }
336
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
337
+ const localVarHeaderParameter = {};
338
+ const localVarQueryParameter = {};
339
+ // authentication HTTPBearer required
340
+ // http bearer authentication required
341
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
342
+ localVarHeaderParameter['Content-Type'] = 'application/json';
343
+ localVarHeaderParameter['Accept'] = 'application/json';
344
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
345
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
346
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
347
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(submitCompleteInvoiceRequest, localVarRequestOptions, configuration);
348
+ return {
349
+ url: (0, common_1.toPathString)(localVarUrlObj),
350
+ options: localVarRequestOptions,
351
+ };
352
+ }),
353
+ /**
354
+ * Validates a complete Factur-X PDF according to European and French standards. ## Applied validation standards - **EN 16931**: European semantic standard (directive 2014/55/EU) - **ISO 19005-3** (PDF/A-3): Long-term electronic archiving - **Factur-X / ZUGFeRD**: Franco-German specification - **Schematron**: XML business rules validation - **eIDAS**: European regulation on electronic identification (signatures) ## Checks performed ### 1. Factur-X XML extraction and validation **Checks performed:** - Presence of embedded XML file (`factur-x.xml` or `zugferd-invoice.xml`) - Automatic profile detection (MINIMUM, BASIC, EN16931, EXTENDED) - XML parsing with UTF-8 validation - GuidelineSpecifiedDocumentContextParameter/ID extraction **Schematron validation:** - Business rules for detected profile (MINIMUM: 45 rules, EN16931: 178 rules) - Cardinality of required elements - Calculation consistency (net, VAT, gross amounts, discounts) - Identifier formats (SIRET, intra-EU VAT, IBAN) - Standardized codes (ISO country codes, UN/ECE units, VAT codes) **What is verified:** - ✅ XML structure conforming to Cross Industry Invoice XSD - ✅ Correct UN/CEFACT namespace - ✅ European business rules (BR-xx) - ✅ French-specific rules (FR-xx) ### 2. PDF/A-3 compliance **Basic validation (metadata):** - Presence of `/Type` field set to `Catalog` - Metadata `pdfaid:part` = 3 (PDF/A-3) - Metadata `pdfaid:conformance` = B or U - PDF version >= 1.4 **Strict VeraPDF validation (if use_verapdf=True):** - 146+ ISO 19005-3 rules (PDF/A-3B) - Absence of forbidden content (JavaScript, multimedia, dynamic forms) - Correctly embedded fonts and subsets - Compliant color spaces (sRGB, DeviceGray) - Valid file structure (cross-reference table) - XMP metadata conforming to ISO 16684-1 **What is verified:** - ✅ Long-term archivable file (20+ years) - ✅ Guaranteed readability (embedded fonts) - ✅ Legal compliance (France, Germany, EU) ### 3. XMP metadata (eXtensible Metadata Platform) **Checks performed:** - Presence of `<?xpacket>` block with XMP metadata - `fx:` namespace for Factur-X: `urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0#` - Required Factur-X fields: - `fx:ConformanceLevel`: Profile (MINIMUM, BASIC, EN16931, EXTENDED) - `fx:DocumentFileName`: Embedded XML name - `fx:DocumentType`: \"INVOICE\" - `fx:Version`: Factur-X version (1.0.07) **What is verified:** - ✅ Metadata conforming to ISO 16684-1 - ✅ Correct declared Factur-X profile - ✅ Supported Factur-X version ### 4. Electronic signatures **Detection and analysis:** - Presence of `/Sig` dictionaries in PDF - Signature type: PAdES (PDF Advanced Electronic Signature) - Information extraction: - Signer name (`/Name`) - Signing date (`/M`) - Signature reason (`/Reason`) - Signature location (`/Location`) - Signature type (approval, certification) **What is verified:** - ✅ Presence of signatures or seals - ✅ Number of signatures (single or multi-signature) - ℹ️ No cryptographic verification (requires certificates) ## Parameters - **pdf_file** (required): The Factur-X PDF file to validate - **profile** (optional): Expected profile. If absent, auto-detected from XML - **use_verapdf** (optional, default=false): Enable strict PDF/A validation with VeraPDF - `false`: Fast metadata validation (2-3 seconds) - `true`: Complete ISO 19005-3 validation (15-30 seconds, **recommended for production**) ## Detailed response ```json { \"isCompliant\": true, \"xml\": { \"present\": true, \"compliant\": true, \"profile\": \"EN16931\", \"errors\": [] }, \"pdfa\": { \"compliant\": true, \"version\": \"PDF/A-3B\", \"method\": \"verapdf\", \"errors\": [] }, \"xmp\": { \"present\": true, \"compliant\": true, \"metadata\": {...} }, \"signatures\": { \"present\": true, \"count\": 1, \"details\": [...] } } ``` ## Use cases - **Before sending**: Validate generated invoice before transmission to client - **On reception**: Verify compliance of invoice received from supplier - **Audit**: Check quality of invoice batches - **Legal compliance**: Ensure B2B/B2G obligations are met in France - **Debugging**: Identify issues in generation process - **Archiving**: Guarantee long-term validity (PDF/A-3) ## Processing time - Basic validation: 2-3 seconds - VeraPDF validation: 15-30 seconds (depends on PDF size)
355
+ * @summary Validate a complete Factur-X PDF
356
+ * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
357
+ * @param {APIProfile | null} [profile]
358
+ * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). If False, uses basic metadata validation.
359
+ * @param {*} [options] Override http request option.
360
+ * @throws {RequiredError}
361
+ */
362
+ validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost: (pdfFile_1, profile_1, useVerapdf_1, ...args_1) => __awaiter(this, [pdfFile_1, profile_1, useVerapdf_1, ...args_1], void 0, function* (pdfFile, profile, useVerapdf, options = {}) {
363
+ // verify required parameter 'pdfFile' is not null or undefined
364
+ (0, common_1.assertParamExists)('validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost', 'pdfFile', pdfFile);
365
+ const localVarPath = `/api/v1/processing/validate-facturx-pdf`;
366
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
367
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
368
+ let baseOptions;
369
+ if (configuration) {
370
+ baseOptions = configuration.baseOptions;
371
+ }
372
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
373
+ const localVarHeaderParameter = {};
374
+ const localVarQueryParameter = {};
375
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
376
+ // authentication HTTPBearer required
377
+ // http bearer authentication required
378
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
379
+ if (pdfFile !== undefined) {
380
+ localVarFormParams.append('pdf_file', pdfFile);
381
+ }
382
+ if (profile !== undefined) {
383
+ localVarFormParams.append('profile', profile);
384
+ }
385
+ if (useVerapdf !== undefined) {
386
+ localVarFormParams.append('use_verapdf', String(useVerapdf));
387
+ }
388
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
389
+ localVarHeaderParameter['Accept'] = 'application/json';
390
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
391
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
392
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
393
+ localVarRequestOptions.data = localVarFormParams;
394
+ return {
395
+ url: (0, common_1.toPathString)(localVarUrlObj),
396
+ options: localVarRequestOptions,
397
+ };
398
+ }),
399
+ /**
400
+ * Validates a Factur-X PDF asynchronously with polling system. ## How it works 1. **Submission**: PDF is queued for asynchronous validation 2. **Immediate return**: You receive a `task_id` (HTTP 202) 3. **Tracking**: Use the `/tasks/{task_id}/status` endpoint to track progress ## Advantages of asynchronous mode - **No timeout**: Ideal for large PDFs or VeraPDF validation (which can take several seconds) - **Scalability**: Validations are processed by dedicated Celery workers - **Status tracking**: Allows you to monitor validation progress - **Non-blocking**: Your client doesn\'t wait during validation ## When to use this mode? - **VeraPDF validation enabled** (`use_verapdf=True`): Strict validation can take 2-10 seconds - **Large PDF files**: PDFs > 1 MB - **Batch processing**: Validating multiple invoices in parallel - **Asynchronous integration**: Your system supports polling ## Checks performed ### 1. Factur-X XML extraction and validation - Verifies presence of Factur-X compliant embedded XML file - Automatically detects profile used (MINIMUM, BASIC, EN16931, EXTENDED) - Validates XML against detected profile\'s Schematron rules ### 2. PDF/A compliance - **Without VeraPDF**: Basic metadata validation (fast, ~100ms) - **With VeraPDF**: Strict ISO 19005 validation (146+ rules, 2-10s) - Detects PDF/A version (PDF/A-1, PDF/A-3, etc.) - Detailed non-compliance reports ### 3. XMP metadata - Verifies presence of XMP metadata in PDF - Validates Factur-X metadata compliance (profile, version) - Extracts all available XMP metadata ### 4. Electronic signatures - Detects presence of electronic signatures or seals - Extracts information about each signature (signer, date, reason) - Counts number of signatures present ## Parameters - **pdf_file**: The Factur-X PDF file to validate - **profile**: Expected Factur-X profile (optional). If not specified, profile will be auto-detected from embedded XML file. - **use_verapdf**: Enable strict PDF/A validation with VeraPDF. ⚠️ **Warning**: VeraPDF can take 2-10 seconds depending on PDF size. Recommended only in asynchronous mode to avoid timeouts. ## Retrieving results After submission, use `GET /tasks/{task_id}/status` endpoint to retrieve the result. **Polling example**: ```python import requests import time # 1. Submit task response = requests.post(\"/validate-facturx-async\", files={\"pdf_file\": pdf_file}) task_id = response.json()[\"taskId\"] # 2. Poll every 2 seconds while True: status_response = requests.get(f\"/tasks/{task_id}/status\") status = status_response.json() if status[\"status\"] == \"SUCCESS\": result = status[\"result\"][\"validation_result\"] print(f\"Compliant: {result[\'is_compliant\']}\") break elif status[\"status\"] == \"FAILURE\": print(f\"Error: {status[\'result\'][\'errorMessage\']}\") break time.sleep(2) # Wait 2 seconds before next check ``` ## Use cases - Validate invoices before sending with VeraPDF (strict validation) - Process invoice batches in parallel - Integrate validation into an asynchronous pipeline - Validate large PDFs without timeout risk
401
+ * @summary Validate a Factur-X PDF (asynchronous with polling)
402
+ * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
403
+ * @param {APIProfile | null} [profile]
404
+ * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). May take several seconds.
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ */
408
+ validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost: (pdfFile_1, profile_1, useVerapdf_1, ...args_1) => __awaiter(this, [pdfFile_1, profile_1, useVerapdf_1, ...args_1], void 0, function* (pdfFile, profile, useVerapdf, options = {}) {
409
+ // verify required parameter 'pdfFile' is not null or undefined
410
+ (0, common_1.assertParamExists)('validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost', 'pdfFile', pdfFile);
411
+ const localVarPath = `/api/v1/processing/validate-facturx-async`;
412
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
413
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
414
+ let baseOptions;
415
+ if (configuration) {
416
+ baseOptions = configuration.baseOptions;
417
+ }
418
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
419
+ const localVarHeaderParameter = {};
420
+ const localVarQueryParameter = {};
421
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
422
+ // authentication HTTPBearer required
423
+ // http bearer authentication required
424
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
425
+ if (pdfFile !== undefined) {
426
+ localVarFormParams.append('pdf_file', pdfFile);
427
+ }
428
+ if (profile !== undefined) {
429
+ localVarFormParams.append('profile', profile);
430
+ }
431
+ if (useVerapdf !== undefined) {
432
+ localVarFormParams.append('use_verapdf', String(useVerapdf));
433
+ }
434
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
435
+ localVarHeaderParameter['Accept'] = 'application/json';
436
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
437
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
438
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
439
+ localVarRequestOptions.data = localVarFormParams;
440
+ return {
441
+ url: (0, common_1.toPathString)(localVarUrlObj),
442
+ options: localVarRequestOptions,
443
+ };
444
+ }),
445
+ /**
446
+ * Validates electronic signatures present in an uploaded PDF. **Verifications performed**: - Presence of signatures - Document integrity (not modified since signing) - Certificate validity - Chain of trust (if available) - Presence of timestamp (PAdES-B-T) - Validation data (PAdES-B-LT) **Supported standards**: PAdES-B-B, PAdES-B-T, PAdES-B-LT, ISO 32000-2. **⚠️ Note**: This validation is technical (cryptographic integrity). Legal validity depends on the eIDAS level of the certificate (SES/AdES/QES) and the context of use.
447
+ * @summary Validate electronic signatures of a PDF
448
+ * @param {File} pdfFile PDF file to validate (will be analyzed to detect and validate signatures)
449
+ * @param {*} [options] Override http request option.
450
+ * @throws {RequiredError}
451
+ */
452
+ validatePdfSignatureEndpointApiV1ProcessingValidatePdfSignaturePost: (pdfFile_1, ...args_1) => __awaiter(this, [pdfFile_1, ...args_1], void 0, function* (pdfFile, options = {}) {
453
+ // verify required parameter 'pdfFile' is not null or undefined
454
+ (0, common_1.assertParamExists)('validatePdfSignatureEndpointApiV1ProcessingValidatePdfSignaturePost', 'pdfFile', pdfFile);
455
+ const localVarPath = `/api/v1/processing/validate-pdf-signature`;
456
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
457
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
458
+ let baseOptions;
459
+ if (configuration) {
460
+ baseOptions = configuration.baseOptions;
461
+ }
462
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
463
+ const localVarHeaderParameter = {};
464
+ const localVarQueryParameter = {};
465
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
466
+ // authentication HTTPBearer required
467
+ // http bearer authentication required
468
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
469
+ if (pdfFile !== undefined) {
470
+ localVarFormParams.append('pdf_file', pdfFile);
471
+ }
472
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
473
+ localVarHeaderParameter['Accept'] = 'application/json';
474
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
475
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
476
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
477
+ localVarRequestOptions.data = localVarFormParams;
478
+ return {
479
+ url: (0, common_1.toPathString)(localVarUrlObj),
480
+ options: localVarRequestOptions,
481
+ };
482
+ }),
483
+ /**
484
+ * Validates a Factur-X XML file against Schematron business rules according to EN 16931 standard. ## Applied Standard **Schematron ISO/IEC 19757-3**: Business rules validation language for XML - Semantic validation (beyond XSD syntax) - European EN 16931 business rules - French-specific Factur-X rules - Arithmetic calculations and data consistency ## Profiles and validated rules ### MINIMUM (45 rules) - Unique invoice identifier - Dates (issue, due date) - Party identifiers (SIRET/SIREN) - Total gross amount ### BASIC (102 rules) - All MINIMUM rules - Detailed invoice lines - Basic VAT calculations - Payment methods - References (order, contract) ### EN16931 (178 rules) - All BASIC rules - **European rules (BR-xx)**: 81 business rules - **French rules (FR-xx)**: 12 France-specific rules - **Advanced calculations (CR-xx)**: 32 calculation rules - **Standardized codes (CL-xx)**: 52 code lists ### EXTENDED (210+ rules) - All EN16931 rules - Logistics information - Advanced accounting data - Multiple external references ## Checks performed ### 1. Syntax validation - Correct XML parsing (UTF-8, well-formed) - UN/CEFACT namespaces present - Hierarchical structure respected ### 2. Business rules (BR-xx) Examples: - `BR-1`: Invoice total must equal sum of line totals + document-level amounts - `BR-CO-10`: Sum of VAT base amounts must equal invoice net total - `BR-16`: Invoice currency code must be in ISO 4217 list ### 3. French rules (FR-xx) Examples: - `FR-1`: Supplier SIRET must have 14 digits - `FR-2`: Customer SIRET must have 14 digits (if present) - `FR-5`: Intra-EU VAT number must be in format FRxx999999999 ### 4. Calculation rules (CR-xx) - Net + VAT = Gross amounts - Sum of lines = Document total - Discounts and surcharges correctly applied - Compliant rounding (2 decimals for amounts) ### 5. Standardized codes (CL-xx) - ISO 3166-1 alpha-2 country codes - ISO 4217 currency codes - UN/ECE Rec 20 measurement units - VAT codes (types, categories, exemptions) - SchemeID for identifiers (0002=SIREN, 0009=SIRET, etc.) ## Validation process 1. **XSLT loading**: Schematron file converted to XSLT (Saxon-HE) 2. **Transformation**: Rules applied to XML 3. **Results analysis**: Extraction of errors (`failed-assert`) and warnings (`successful-report`) 4. **Report**: Structured list of non-conformities ## Responses **200 OK**: Compliant XML ```json { \"message\": \"XML is compliant with EN16931 profile\" } ``` **400 Bad Request**: Non-compliant XML ```json { \"detail\": [ \"[BR-1] Invoice total (120.00) does not match calculated sum (100.00 + 20.00)\", \"[FR-1] Supplier SIRET must contain exactly 14 digits\" ] } ``` ## Use cases - **Pre-validation**: Verify XML before PDF/A integration - **Debugging**: Precisely identify generation errors - **Testing**: Validate test or example XMLs - **Compliance**: Ensure European and French rules are met - **Development**: Quick testing without PDF generation ## Processing time - MINIMUM profile: ~0.5 second - EN16931 profile: ~1-2 seconds - EXTENDED profile: ~2-3 seconds
485
+ * @summary Validate an existing Factur-X XML
486
+ * @param {File} xmlFile Factur-X XML file to validate (.xml format).
487
+ * @param {APIProfile} [profile] Validation profile (MINIMUM, BASIC, EN16931, EXTENDED).
488
+ * @param {*} [options] Override http request option.
489
+ * @throws {RequiredError}
490
+ */
491
+ validateXmlApiV1ProcessingValidateXmlPost: (xmlFile_1, profile_1, ...args_1) => __awaiter(this, [xmlFile_1, profile_1, ...args_1], void 0, function* (xmlFile, profile, options = {}) {
492
+ // verify required parameter 'xmlFile' is not null or undefined
493
+ (0, common_1.assertParamExists)('validateXmlApiV1ProcessingValidateXmlPost', 'xmlFile', xmlFile);
494
+ const localVarPath = `/api/v1/processing/validate-xml`;
495
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
496
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
497
+ let baseOptions;
498
+ if (configuration) {
499
+ baseOptions = configuration.baseOptions;
500
+ }
501
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
502
+ const localVarHeaderParameter = {};
503
+ const localVarQueryParameter = {};
504
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
505
+ // authentication HTTPBearer required
506
+ // http bearer authentication required
507
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
508
+ if (xmlFile !== undefined) {
509
+ localVarFormParams.append('xml_file', xmlFile);
510
+ }
511
+ if (profile !== undefined) {
512
+ localVarFormParams.append('profile', profile);
513
+ }
514
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
515
+ localVarHeaderParameter['Accept'] = 'application/json';
516
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
517
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
518
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
519
+ localVarRequestOptions.data = localVarFormParams;
520
+ return {
521
+ url: (0, common_1.toPathString)(localVarUrlObj),
522
+ options: localVarRequestOptions,
523
+ };
524
+ }),
525
+ };
526
+ };
527
+ exports.InvoiceProcessingApiAxiosParamCreator = InvoiceProcessingApiAxiosParamCreator;
528
+ /**
529
+ * InvoiceProcessingApi - functional programming interface
530
+ */
531
+ const InvoiceProcessingApiFp = function (configuration) {
532
+ const localVarAxiosParamCreator = (0, exports.InvoiceProcessingApiAxiosParamCreator)(configuration);
533
+ return {
534
+ /**
535
+ * Generates an electronic invoice in Factur-X format compliant with European standards. ## Applied Standards - **Factur-X** (France): FNFE-MPE standard (Forum National de la Facture Électronique) - **ZUGFeRD** (Germany): German format compatible with Factur-X - **EN 16931**: European semantic standard for electronic invoicing - **ISO 19005-3** (PDF/A-3): Long-term electronic archiving - **Cross Industry Invoice (CII)**: UN/CEFACT XML syntax ## 🆕 New: Simplified format with auto-enrichment (P0.1) You can now create an invoice by providing only: - An invoice number - A sender SIRET + **IBAN** (required) - A recipient SIRET - Invoice lines (description, quantity, net price) **Simplified format example**: ```json { \"number\": \"FACT-2025-001\", \"sender\": { \"siret\": \"92019522900017\", \"iban\": \"FR7630001007941234567890185\" }, \"recipient\": {\"siret\": \"35600000000048\"}, \"lines\": [ {\"description\": \"Service\", \"quantity\": 10, \"unitPrice\": 100.00, \"vatRate\": 20.0} ] } ``` **⚠️ Required fields (simplified format)**: - `number`: Unique invoice number - `sender.siret`: Sender\'s SIRET (14 digits) - `sender.iban`: Bank account IBAN (no public API to retrieve it) - `recipient.siret`: Recipient\'s SIRET - `lines[]`: At least one invoice line **What happens automatically with `auto_enrich=True`**: - ✅ Name enrichment from Chorus Pro API - ✅ Address enrichment from Business Search API (free, public) - ✅ Automatic intra-EU VAT calculation (FR + key + SIREN) - ✅ Chorus Pro ID retrieval for electronic invoicing - ✅ Net/VAT/Gross totals calculation - ✅ Date generation (today + 30-day due date) - ✅ Multi-rate VAT handling **Supported identifiers**: - SIRET (14 digits): Specific establishment ⭐ Recommended - SIREN (9 digits): Company (auto-selection of headquarters) - Special types: UE_HORS_FRANCE, RIDET, TAHITI, etc. ## Checks performed during generation ### 1. Data validation (Pydantic) - Data types (amounts as Decimal, ISO 8601 dates) - Formats (14-digit SIRET, 9-digit SIREN, IBAN) - Required fields per profile - Amount consistency (Net + VAT = Gross) ### 2. CII-compliant XML generation - Serialization according to Cross Industry Invoice XSD schema - Correct UN/CEFACT namespaces - Hierarchical structure respected - UTF-8 encoding without BOM ### 3. Schematron validation - Business rules for selected profile (MINIMUM, BASIC, EN16931, EXTENDED) - Element cardinality (required, optional, repeatable) - Calculation rules (totals, VAT, discounts) - European EN 16931 compliance ### 4. PDF/A-3 conversion (if output_format=\'pdf\') - Source PDF conversion to PDF/A-3 via Ghostscript - Factur-X XML embedding in PDF - Compliant XMP metadata - ICC sRGB color profile - Removal of forbidden elements (JavaScript, forms) ## How it works 1. **Submission**: Invoice is queued in Celery for asynchronous processing 2. **Immediate return**: You receive a `task_id` (HTTP 202 Accepted) 3. **Tracking**: Use the `/tasks/{task_id}/status` endpoint to track progress ## Output formats - **xml**: Generates only Factur-X XML (recommended for testing) - **pdf**: Generates PDF/A-3 with embedded XML (requires `source_pdf`) ## Factur-X profiles - **MINIMUM**: Minimal data (simplified invoice) - **BASIC**: Basic information (SMEs) - **EN16931**: European standard (recommended, compliant with directive 2014/55/EU) - **EXTENDED**: All available data (large accounts) ## What you get After successful processing (status `completed`): - **XML only**: Base64-encoded Factur-X compliant XML file - **PDF/A-3**: PDF with embedded XML, ready for sending/archiving - **Metadata**: Profile, Factur-X version, file size - **Validation**: Schematron compliance confirmation ## Validation Data is automatically validated according to detected format. On error, a 422 status is returned with invalid field details.
536
+ * @summary Generate a Factur-X invoice
537
+ * @param {string} invoiceData Invoice data in JSON format. Two formats accepted: 1. **Classic format**: Complete FactureFacturX structure (all fields) 2. **Simplified format** (🆕 P0.1): Minimal structure with auto-enrichment Format is detected automatically!
538
+ * @param {APIProfile} [profile] Factur-X profile: MINIMUM, BASIC, EN16931 or EXTENDED.
539
+ * @param {OutputFormat} [outputFormat] Output format: \\\&#39;xml\\\&#39; (XML only) or \\\&#39;pdf\\\&#39; (Factur-X PDF with embedded XML).
540
+ * @param {boolean} [autoEnrich] 🆕 Enable auto-enrichment from SIRET/SIREN (simplified format only)
541
+ * @param {File | null} [sourcePdf]
542
+ * @param {*} [options] Override http request option.
543
+ * @throws {RequiredError}
544
+ */
545
+ generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, options) {
546
+ return __awaiter(this, void 0, void 0, function* () {
547
+ var _a, _b, _c;
548
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, options);
549
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
550
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvoiceProcessingApi.generateInvoiceApiV1ProcessingGenerateInvoicePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
551
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
552
+ });
553
+ },
554
+ /**
555
+ * Generates a self-signed X.509 certificate for PDF electronic signature testing. **⚠️ WARNING: TEST certificate only!** This certificate is: - ✅ Suitable for testing and development - ✅ Compatible with PDF signing (PAdES) - ✅ Compliant with eIDAS **SES** level (Simple Electronic Signature) - ❌ **NEVER usable in production** - ❌ **Not recognized** by browsers and PDF readers - ❌ **No legal value** ## eIDAS levels - **SES** (Simple): Self-signed certificate ← Generated by this endpoint - **AdES** (Advanced): Commercial CA certificate (Let\'s Encrypt, etc.) - **QES** (Qualified): Qualified certificate from QTSP (CertEurope, Universign, etc.) ## Usage Once generated, the certificate can be: 1. **Saved in Django** (recommended): - Django Admin > Signing Certificates - Upload `certificate_pem` and `private_key_pem` 2. **Used directly**: - Sign a PDF with `/sign-pdf` - The certificate will be automatically used ## Example call ```bash curl -X POST \"https://www.factpulse.fr/api/v1/processing/generate-test-certificate\" \\ -H \"Authorization: Bearer eyJ0eXAi...\" \\ -H \"Content-Type: application/json\" \\ -d \'{ \"cn\": \"Test Client XYZ\", \"organization\": \"Client XYZ Ltd\", \"email\": \"contact@xyz.com\", \"validity_days\": 365 }\' ``` ## Use cases - PDF signature testing in development - Electronic signature POC - Training and demos - Automated integration tests ## Technical compliance Certificate generated with: - RSA key 2048 or 4096 bits - SHA-256 algorithm - Key Usage extensions: `digitalSignature`, `contentCommitment` (non-repudiation) - Extended Key Usage extensions: `codeSigning`, `emailProtection` - Validity: 1 day to 10 years (configurable) - Format: PEM (certificate and key) - Optional: PKCS#12 (.p12)
556
+ * @summary Generate a self-signed X.509 test certificate
557
+ * @param {GenerateCertificateRequest} generateCertificateRequest
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ */
561
+ generateTestCertificateApiV1ProcessingGenerateTestCertificatePost(generateCertificateRequest, options) {
562
+ return __awaiter(this, void 0, void 0, function* () {
563
+ var _a, _b, _c;
564
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateTestCertificateApiV1ProcessingGenerateTestCertificatePost(generateCertificateRequest, options);
565
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
566
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvoiceProcessingApi.generateTestCertificateApiV1ProcessingGenerateTestCertificatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
567
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
568
+ });
569
+ },
570
+ /**
571
+ * Retrieves the progress status of an invoice generation task. ## Possible states The `status` field uses the `CeleryStatus` enum with values: - **PENDING, STARTED, SUCCESS, FAILURE, RETRY** See the `CeleryStatus` schema documentation for details. ## Business result When `status=\"SUCCESS\"`, the `result` field contains: - `status`: \"SUCCESS\" or \"ERROR\" (business result) - `content_b64`: Base64 encoded content (if success) - `errorCode`, `errorMessage`, `details`: AFNOR format (if business error) ## Usage Poll this endpoint every 2-3 seconds until `status` is `SUCCESS` or `FAILURE`.
572
+ * @summary Get task generation status
573
+ * @param {string} taskId
574
+ * @param {*} [options] Override http request option.
575
+ * @throws {RequiredError}
576
+ */
577
+ getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId, options) {
578
+ return __awaiter(this, void 0, void 0, function* () {
579
+ var _a, _b, _c;
580
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId, options);
581
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
582
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvoiceProcessingApi.getTaskStatusApiV1ProcessingTasksTaskIdStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
583
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
584
+ });
585
+ },
586
+ /**
587
+ * Signs an uploaded PDF with the electronic certificate configured for the client (via client_uid from JWT). **Supported standards**: PAdES-B-B, PAdES-B-T (timestamping), PAdES-B-LT (long-term archiving). **eIDAS levels**: SES (self-signed), AdES (commercial CA), QES (PSCO - out of scope). **Security**: Double authentication X-Internal-Secret + JWT Bearer to retrieve the certificate. **⚠️ Legal disclaimer**: Generated signatures are electronic seals as defined by the eIDAS regulation. The level of legal validity depends on the certificate used (SES/AdES/QES). FactPulse does not provide QES qualified certificates - you must obtain a certificate from a PSCO (qualified Trust Service Provider) for maximum legal validity.
588
+ * @summary Sign a PDF with client\'s certificate (PAdES-B-LT)
589
+ * @param {File} pdfFile PDF file to sign (will be processed and returned signed in base64)
590
+ * @param {string | null} [reason]
591
+ * @param {string | null} [location]
592
+ * @param {string | null} [contact]
593
+ * @param {string} [fieldName] PDF signature field name
594
+ * @param {boolean} [usePadesLt] Enable PAdES-B-LT (long-term archiving with embedded validation data). REQUIRES a certificate with OCSP/CRL access.
595
+ * @param {boolean} [useTimestamp] Enable RFC 3161 timestamping with FreeTSA (PAdES-B-T)
596
+ * @param {*} [options] Override http request option.
597
+ * @throws {RequiredError}
598
+ */
599
+ signPdfApiV1ProcessingSignPdfPost(pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options) {
600
+ return __awaiter(this, void 0, void 0, function* () {
601
+ var _a, _b, _c;
602
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.signPdfApiV1ProcessingSignPdfPost(pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options);
603
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
604
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvoiceProcessingApi.signPdfApiV1ProcessingSignPdfPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
605
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
606
+ });
607
+ },
608
+ /**
609
+ * Signs an uploaded PDF asynchronously via a Celery task. **Difference with /sign-pdf**: - `/sign-pdf`: Synchronous signature (blocking until completion) - `/sign-pdf-async`: Asynchronous signature (returns immediately with task_id) **Async advantages**: - No timeout for large files - No blocking of FastAPI worker - Progress tracking via task_id - Ideal for batch processing **Supported standards**: PAdES-B-B, PAdES-B-T (timestamping), PAdES-B-LT (long-term archiving). **⚠️ Legal disclaimer**: Same as /sign-pdf (see that endpoint\'s documentation).
610
+ * @summary Sign a PDF asynchronously (Celery)
611
+ * @param {File} pdfFile PDF file to sign (processed asynchronously)
612
+ * @param {string | null} [reason]
613
+ * @param {string | null} [location]
614
+ * @param {string | null} [contact]
615
+ * @param {string} [fieldName] PDF signature field name
616
+ * @param {boolean} [usePadesLt] Enable PAdES-B-LT (long-term archiving with embedded validation data). REQUIRES a certificate with OCSP/CRL access.
617
+ * @param {boolean} [useTimestamp] Enable RFC 3161 timestamping with FreeTSA (PAdES-B-T)
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ */
621
+ signPdfAsyncApiV1ProcessingSignPdfAsyncPost(pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options) {
622
+ return __awaiter(this, void 0, void 0, function* () {
623
+ var _a, _b, _c;
624
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.signPdfAsyncApiV1ProcessingSignPdfAsyncPost(pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options);
625
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
626
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvoiceProcessingApi.signPdfAsyncApiV1ProcessingSignPdfAsyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
627
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
628
+ });
629
+ },
630
+ /**
631
+ * Unified endpoint to submit a complete invoice to different destinations. **Automated workflow:** 1. **Auto-enrichment** (optional): retrieves data via public APIs and Chorus Pro/AFNOR 2. **Factur-X PDF generation**: creates a PDF/A-3 with embedded XML 3. **Electronic signature** (optional): signs the PDF with a certificate 4. **Submission**: sends to the chosen destination (Chorus Pro or AFNOR PDP) **Supported destinations:** - **Chorus Pro**: French B2G platform (invoices to public sector) - **AFNOR PDP**: Partner Dematerialization Platforms **Destination credentials - 2 modes available:** **Mode 1 - Retrieval via JWT (recommended):** - Credentials are retrieved automatically via the JWT `client_uid` - Do not provide the `credentials` field in `destination` - Zero-trust architecture: no secrets in the payload - Example: `\"destination\": {\"type\": \"chorus_pro\"}` **Mode 2 - Credentials in the payload:** - Provide credentials directly in the payload - Useful for tests or third-party integrations - Example: `\"destination\": {\"type\": \"chorus_pro\", \"credentials\": {...}}` **Electronic signature (optional) - 2 modes available:** **Mode 1 - Stored certificate (recommended):** - Certificate is retrieved automatically via the JWT `client_uid` - No key to provide in the payload - PAdES-B-LT signature with timestamp (eIDAS compliant) - Example: `\"signature\": {\"reason\": \"Factur-X compliance\"}` **Mode 2 - Keys in the payload (for tests):** - Provide `key_pem` and `cert_pem` directly - PEM format accepted: raw or base64 - Useful for tests or special cases without stored certificate - Example: `\"signature\": {\"key_pem\": \"-----BEGIN...\", \"cert_pem\": \"-----BEGIN...\"}` If `key_pem` and `cert_pem` are provided → Mode 2 Otherwise → Mode 1 (certificate retrieved via `client_uid`)
632
+ * @summary Submit a complete invoice (generation + signature + submission)
633
+ * @param {SubmitCompleteInvoiceRequest} submitCompleteInvoiceRequest
634
+ * @param {*} [options] Override http request option.
635
+ * @throws {RequiredError}
636
+ */
637
+ submitCompleteInvoiceApiV1ProcessingInvoicesSubmitCompletePost(submitCompleteInvoiceRequest, options) {
638
+ return __awaiter(this, void 0, void 0, function* () {
639
+ var _a, _b, _c;
640
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.submitCompleteInvoiceApiV1ProcessingInvoicesSubmitCompletePost(submitCompleteInvoiceRequest, options);
641
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
642
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvoiceProcessingApi.submitCompleteInvoiceApiV1ProcessingInvoicesSubmitCompletePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
643
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
644
+ });
645
+ },
646
+ /**
647
+ * Asynchronous version of the `/invoices/submit-complete` endpoint using Celery for background processing. **Automated workflow (same as synchronous version):** 1. **Auto-enrichment** (optional): retrieves data via public APIs and Chorus Pro/AFNOR 2. **Factur-X PDF generation**: creates a PDF/A-3 with embedded XML 3. **Electronic signature** (optional): signs the PDF with a certificate 4. **Submission**: sends to the chosen destination (Chorus Pro or AFNOR PDP) **Supported destinations:** - **Chorus Pro**: French B2G platform (invoices to public sector) - **AFNOR PDP**: Partner Dematerialization Platforms **Differences with synchronous version:** - ✅ **Non-blocking**: Returns immediately with a `task_id` (HTTP 202 Accepted) - ✅ **Background processing**: Invoice is processed by a Celery worker - ✅ **Progress tracking**: Use `/tasks/{task_id}/status` to track status - ✅ **Ideal for high volumes**: Allows processing many invoices in parallel **How to use:** 1. **Submission**: Call this endpoint with your invoice data 2. **Immediate return**: You receive a `task_id` (e.g., \"abc123-def456\") 3. **Tracking**: Call `/tasks/{task_id}/status` to check progress 4. **Result**: When `status = \"SUCCESS\"`, the `result` field contains the complete response **Credentials and signature**: Same modes as the synchronous version (JWT or payload).
648
+ * @summary Submit a complete invoice (asynchronous with Celery)
649
+ * @param {SubmitCompleteInvoiceRequest} submitCompleteInvoiceRequest
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ */
653
+ submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, options) {
654
+ return __awaiter(this, void 0, void 0, function* () {
655
+ var _a, _b, _c;
656
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, options);
657
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
658
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvoiceProcessingApi.submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
659
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
660
+ });
661
+ },
662
+ /**
663
+ * Validates a complete Factur-X PDF according to European and French standards. ## Applied validation standards - **EN 16931**: European semantic standard (directive 2014/55/EU) - **ISO 19005-3** (PDF/A-3): Long-term electronic archiving - **Factur-X / ZUGFeRD**: Franco-German specification - **Schematron**: XML business rules validation - **eIDAS**: European regulation on electronic identification (signatures) ## Checks performed ### 1. Factur-X XML extraction and validation **Checks performed:** - Presence of embedded XML file (`factur-x.xml` or `zugferd-invoice.xml`) - Automatic profile detection (MINIMUM, BASIC, EN16931, EXTENDED) - XML parsing with UTF-8 validation - GuidelineSpecifiedDocumentContextParameter/ID extraction **Schematron validation:** - Business rules for detected profile (MINIMUM: 45 rules, EN16931: 178 rules) - Cardinality of required elements - Calculation consistency (net, VAT, gross amounts, discounts) - Identifier formats (SIRET, intra-EU VAT, IBAN) - Standardized codes (ISO country codes, UN/ECE units, VAT codes) **What is verified:** - ✅ XML structure conforming to Cross Industry Invoice XSD - ✅ Correct UN/CEFACT namespace - ✅ European business rules (BR-xx) - ✅ French-specific rules (FR-xx) ### 2. PDF/A-3 compliance **Basic validation (metadata):** - Presence of `/Type` field set to `Catalog` - Metadata `pdfaid:part` = 3 (PDF/A-3) - Metadata `pdfaid:conformance` = B or U - PDF version >= 1.4 **Strict VeraPDF validation (if use_verapdf=True):** - 146+ ISO 19005-3 rules (PDF/A-3B) - Absence of forbidden content (JavaScript, multimedia, dynamic forms) - Correctly embedded fonts and subsets - Compliant color spaces (sRGB, DeviceGray) - Valid file structure (cross-reference table) - XMP metadata conforming to ISO 16684-1 **What is verified:** - ✅ Long-term archivable file (20+ years) - ✅ Guaranteed readability (embedded fonts) - ✅ Legal compliance (France, Germany, EU) ### 3. XMP metadata (eXtensible Metadata Platform) **Checks performed:** - Presence of `<?xpacket>` block with XMP metadata - `fx:` namespace for Factur-X: `urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0#` - Required Factur-X fields: - `fx:ConformanceLevel`: Profile (MINIMUM, BASIC, EN16931, EXTENDED) - `fx:DocumentFileName`: Embedded XML name - `fx:DocumentType`: \"INVOICE\" - `fx:Version`: Factur-X version (1.0.07) **What is verified:** - ✅ Metadata conforming to ISO 16684-1 - ✅ Correct declared Factur-X profile - ✅ Supported Factur-X version ### 4. Electronic signatures **Detection and analysis:** - Presence of `/Sig` dictionaries in PDF - Signature type: PAdES (PDF Advanced Electronic Signature) - Information extraction: - Signer name (`/Name`) - Signing date (`/M`) - Signature reason (`/Reason`) - Signature location (`/Location`) - Signature type (approval, certification) **What is verified:** - ✅ Presence of signatures or seals - ✅ Number of signatures (single or multi-signature) - ℹ️ No cryptographic verification (requires certificates) ## Parameters - **pdf_file** (required): The Factur-X PDF file to validate - **profile** (optional): Expected profile. If absent, auto-detected from XML - **use_verapdf** (optional, default=false): Enable strict PDF/A validation with VeraPDF - `false`: Fast metadata validation (2-3 seconds) - `true`: Complete ISO 19005-3 validation (15-30 seconds, **recommended for production**) ## Detailed response ```json { \"isCompliant\": true, \"xml\": { \"present\": true, \"compliant\": true, \"profile\": \"EN16931\", \"errors\": [] }, \"pdfa\": { \"compliant\": true, \"version\": \"PDF/A-3B\", \"method\": \"verapdf\", \"errors\": [] }, \"xmp\": { \"present\": true, \"compliant\": true, \"metadata\": {...} }, \"signatures\": { \"present\": true, \"count\": 1, \"details\": [...] } } ``` ## Use cases - **Before sending**: Validate generated invoice before transmission to client - **On reception**: Verify compliance of invoice received from supplier - **Audit**: Check quality of invoice batches - **Legal compliance**: Ensure B2B/B2G obligations are met in France - **Debugging**: Identify issues in generation process - **Archiving**: Guarantee long-term validity (PDF/A-3) ## Processing time - Basic validation: 2-3 seconds - VeraPDF validation: 15-30 seconds (depends on PDF size)
664
+ * @summary Validate a complete Factur-X PDF
665
+ * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
666
+ * @param {APIProfile | null} [profile]
667
+ * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). If False, uses basic metadata validation.
668
+ * @param {*} [options] Override http request option.
669
+ * @throws {RequiredError}
670
+ */
671
+ validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, options) {
672
+ return __awaiter(this, void 0, void 0, function* () {
673
+ var _a, _b, _c;
674
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, options);
675
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
676
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvoiceProcessingApi.validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
677
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
678
+ });
679
+ },
680
+ /**
681
+ * Validates a Factur-X PDF asynchronously with polling system. ## How it works 1. **Submission**: PDF is queued for asynchronous validation 2. **Immediate return**: You receive a `task_id` (HTTP 202) 3. **Tracking**: Use the `/tasks/{task_id}/status` endpoint to track progress ## Advantages of asynchronous mode - **No timeout**: Ideal for large PDFs or VeraPDF validation (which can take several seconds) - **Scalability**: Validations are processed by dedicated Celery workers - **Status tracking**: Allows you to monitor validation progress - **Non-blocking**: Your client doesn\'t wait during validation ## When to use this mode? - **VeraPDF validation enabled** (`use_verapdf=True`): Strict validation can take 2-10 seconds - **Large PDF files**: PDFs > 1 MB - **Batch processing**: Validating multiple invoices in parallel - **Asynchronous integration**: Your system supports polling ## Checks performed ### 1. Factur-X XML extraction and validation - Verifies presence of Factur-X compliant embedded XML file - Automatically detects profile used (MINIMUM, BASIC, EN16931, EXTENDED) - Validates XML against detected profile\'s Schematron rules ### 2. PDF/A compliance - **Without VeraPDF**: Basic metadata validation (fast, ~100ms) - **With VeraPDF**: Strict ISO 19005 validation (146+ rules, 2-10s) - Detects PDF/A version (PDF/A-1, PDF/A-3, etc.) - Detailed non-compliance reports ### 3. XMP metadata - Verifies presence of XMP metadata in PDF - Validates Factur-X metadata compliance (profile, version) - Extracts all available XMP metadata ### 4. Electronic signatures - Detects presence of electronic signatures or seals - Extracts information about each signature (signer, date, reason) - Counts number of signatures present ## Parameters - **pdf_file**: The Factur-X PDF file to validate - **profile**: Expected Factur-X profile (optional). If not specified, profile will be auto-detected from embedded XML file. - **use_verapdf**: Enable strict PDF/A validation with VeraPDF. ⚠️ **Warning**: VeraPDF can take 2-10 seconds depending on PDF size. Recommended only in asynchronous mode to avoid timeouts. ## Retrieving results After submission, use `GET /tasks/{task_id}/status` endpoint to retrieve the result. **Polling example**: ```python import requests import time # 1. Submit task response = requests.post(\"/validate-facturx-async\", files={\"pdf_file\": pdf_file}) task_id = response.json()[\"taskId\"] # 2. Poll every 2 seconds while True: status_response = requests.get(f\"/tasks/{task_id}/status\") status = status_response.json() if status[\"status\"] == \"SUCCESS\": result = status[\"result\"][\"validation_result\"] print(f\"Compliant: {result[\'is_compliant\']}\") break elif status[\"status\"] == \"FAILURE\": print(f\"Error: {status[\'result\'][\'errorMessage\']}\") break time.sleep(2) # Wait 2 seconds before next check ``` ## Use cases - Validate invoices before sending with VeraPDF (strict validation) - Process invoice batches in parallel - Integrate validation into an asynchronous pipeline - Validate large PDFs without timeout risk
682
+ * @summary Validate a Factur-X PDF (asynchronous with polling)
683
+ * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
684
+ * @param {APIProfile | null} [profile]
685
+ * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). May take several seconds.
686
+ * @param {*} [options] Override http request option.
687
+ * @throws {RequiredError}
688
+ */
689
+ validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, options) {
690
+ return __awaiter(this, void 0, void 0, function* () {
691
+ var _a, _b, _c;
692
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, options);
693
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
694
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvoiceProcessingApi.validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
695
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
696
+ });
697
+ },
698
+ /**
699
+ * Validates electronic signatures present in an uploaded PDF. **Verifications performed**: - Presence of signatures - Document integrity (not modified since signing) - Certificate validity - Chain of trust (if available) - Presence of timestamp (PAdES-B-T) - Validation data (PAdES-B-LT) **Supported standards**: PAdES-B-B, PAdES-B-T, PAdES-B-LT, ISO 32000-2. **⚠️ Note**: This validation is technical (cryptographic integrity). Legal validity depends on the eIDAS level of the certificate (SES/AdES/QES) and the context of use.
700
+ * @summary Validate electronic signatures of a PDF
701
+ * @param {File} pdfFile PDF file to validate (will be analyzed to detect and validate signatures)
702
+ * @param {*} [options] Override http request option.
703
+ * @throws {RequiredError}
704
+ */
705
+ validatePdfSignatureEndpointApiV1ProcessingValidatePdfSignaturePost(pdfFile, options) {
706
+ return __awaiter(this, void 0, void 0, function* () {
707
+ var _a, _b, _c;
708
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.validatePdfSignatureEndpointApiV1ProcessingValidatePdfSignaturePost(pdfFile, options);
709
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
710
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvoiceProcessingApi.validatePdfSignatureEndpointApiV1ProcessingValidatePdfSignaturePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
711
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
712
+ });
713
+ },
714
+ /**
715
+ * Validates a Factur-X XML file against Schematron business rules according to EN 16931 standard. ## Applied Standard **Schematron ISO/IEC 19757-3**: Business rules validation language for XML - Semantic validation (beyond XSD syntax) - European EN 16931 business rules - French-specific Factur-X rules - Arithmetic calculations and data consistency ## Profiles and validated rules ### MINIMUM (45 rules) - Unique invoice identifier - Dates (issue, due date) - Party identifiers (SIRET/SIREN) - Total gross amount ### BASIC (102 rules) - All MINIMUM rules - Detailed invoice lines - Basic VAT calculations - Payment methods - References (order, contract) ### EN16931 (178 rules) - All BASIC rules - **European rules (BR-xx)**: 81 business rules - **French rules (FR-xx)**: 12 France-specific rules - **Advanced calculations (CR-xx)**: 32 calculation rules - **Standardized codes (CL-xx)**: 52 code lists ### EXTENDED (210+ rules) - All EN16931 rules - Logistics information - Advanced accounting data - Multiple external references ## Checks performed ### 1. Syntax validation - Correct XML parsing (UTF-8, well-formed) - UN/CEFACT namespaces present - Hierarchical structure respected ### 2. Business rules (BR-xx) Examples: - `BR-1`: Invoice total must equal sum of line totals + document-level amounts - `BR-CO-10`: Sum of VAT base amounts must equal invoice net total - `BR-16`: Invoice currency code must be in ISO 4217 list ### 3. French rules (FR-xx) Examples: - `FR-1`: Supplier SIRET must have 14 digits - `FR-2`: Customer SIRET must have 14 digits (if present) - `FR-5`: Intra-EU VAT number must be in format FRxx999999999 ### 4. Calculation rules (CR-xx) - Net + VAT = Gross amounts - Sum of lines = Document total - Discounts and surcharges correctly applied - Compliant rounding (2 decimals for amounts) ### 5. Standardized codes (CL-xx) - ISO 3166-1 alpha-2 country codes - ISO 4217 currency codes - UN/ECE Rec 20 measurement units - VAT codes (types, categories, exemptions) - SchemeID for identifiers (0002=SIREN, 0009=SIRET, etc.) ## Validation process 1. **XSLT loading**: Schematron file converted to XSLT (Saxon-HE) 2. **Transformation**: Rules applied to XML 3. **Results analysis**: Extraction of errors (`failed-assert`) and warnings (`successful-report`) 4. **Report**: Structured list of non-conformities ## Responses **200 OK**: Compliant XML ```json { \"message\": \"XML is compliant with EN16931 profile\" } ``` **400 Bad Request**: Non-compliant XML ```json { \"detail\": [ \"[BR-1] Invoice total (120.00) does not match calculated sum (100.00 + 20.00)\", \"[FR-1] Supplier SIRET must contain exactly 14 digits\" ] } ``` ## Use cases - **Pre-validation**: Verify XML before PDF/A integration - **Debugging**: Precisely identify generation errors - **Testing**: Validate test or example XMLs - **Compliance**: Ensure European and French rules are met - **Development**: Quick testing without PDF generation ## Processing time - MINIMUM profile: ~0.5 second - EN16931 profile: ~1-2 seconds - EXTENDED profile: ~2-3 seconds
716
+ * @summary Validate an existing Factur-X XML
717
+ * @param {File} xmlFile Factur-X XML file to validate (.xml format).
718
+ * @param {APIProfile} [profile] Validation profile (MINIMUM, BASIC, EN16931, EXTENDED).
719
+ * @param {*} [options] Override http request option.
720
+ * @throws {RequiredError}
721
+ */
722
+ validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, options) {
723
+ return __awaiter(this, void 0, void 0, function* () {
724
+ var _a, _b, _c;
725
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, options);
726
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
727
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvoiceProcessingApi.validateXmlApiV1ProcessingValidateXmlPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
728
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
729
+ });
730
+ },
731
+ };
732
+ };
733
+ exports.InvoiceProcessingApiFp = InvoiceProcessingApiFp;
734
+ /**
735
+ * InvoiceProcessingApi - factory interface
736
+ */
737
+ const InvoiceProcessingApiFactory = function (configuration, basePath, axios) {
738
+ const localVarFp = (0, exports.InvoiceProcessingApiFp)(configuration);
739
+ return {
740
+ /**
741
+ * Generates an electronic invoice in Factur-X format compliant with European standards. ## Applied Standards - **Factur-X** (France): FNFE-MPE standard (Forum National de la Facture Électronique) - **ZUGFeRD** (Germany): German format compatible with Factur-X - **EN 16931**: European semantic standard for electronic invoicing - **ISO 19005-3** (PDF/A-3): Long-term electronic archiving - **Cross Industry Invoice (CII)**: UN/CEFACT XML syntax ## 🆕 New: Simplified format with auto-enrichment (P0.1) You can now create an invoice by providing only: - An invoice number - A sender SIRET + **IBAN** (required) - A recipient SIRET - Invoice lines (description, quantity, net price) **Simplified format example**: ```json { \"number\": \"FACT-2025-001\", \"sender\": { \"siret\": \"92019522900017\", \"iban\": \"FR7630001007941234567890185\" }, \"recipient\": {\"siret\": \"35600000000048\"}, \"lines\": [ {\"description\": \"Service\", \"quantity\": 10, \"unitPrice\": 100.00, \"vatRate\": 20.0} ] } ``` **⚠️ Required fields (simplified format)**: - `number`: Unique invoice number - `sender.siret`: Sender\'s SIRET (14 digits) - `sender.iban`: Bank account IBAN (no public API to retrieve it) - `recipient.siret`: Recipient\'s SIRET - `lines[]`: At least one invoice line **What happens automatically with `auto_enrich=True`**: - ✅ Name enrichment from Chorus Pro API - ✅ Address enrichment from Business Search API (free, public) - ✅ Automatic intra-EU VAT calculation (FR + key + SIREN) - ✅ Chorus Pro ID retrieval for electronic invoicing - ✅ Net/VAT/Gross totals calculation - ✅ Date generation (today + 30-day due date) - ✅ Multi-rate VAT handling **Supported identifiers**: - SIRET (14 digits): Specific establishment ⭐ Recommended - SIREN (9 digits): Company (auto-selection of headquarters) - Special types: UE_HORS_FRANCE, RIDET, TAHITI, etc. ## Checks performed during generation ### 1. Data validation (Pydantic) - Data types (amounts as Decimal, ISO 8601 dates) - Formats (14-digit SIRET, 9-digit SIREN, IBAN) - Required fields per profile - Amount consistency (Net + VAT = Gross) ### 2. CII-compliant XML generation - Serialization according to Cross Industry Invoice XSD schema - Correct UN/CEFACT namespaces - Hierarchical structure respected - UTF-8 encoding without BOM ### 3. Schematron validation - Business rules for selected profile (MINIMUM, BASIC, EN16931, EXTENDED) - Element cardinality (required, optional, repeatable) - Calculation rules (totals, VAT, discounts) - European EN 16931 compliance ### 4. PDF/A-3 conversion (if output_format=\'pdf\') - Source PDF conversion to PDF/A-3 via Ghostscript - Factur-X XML embedding in PDF - Compliant XMP metadata - ICC sRGB color profile - Removal of forbidden elements (JavaScript, forms) ## How it works 1. **Submission**: Invoice is queued in Celery for asynchronous processing 2. **Immediate return**: You receive a `task_id` (HTTP 202 Accepted) 3. **Tracking**: Use the `/tasks/{task_id}/status` endpoint to track progress ## Output formats - **xml**: Generates only Factur-X XML (recommended for testing) - **pdf**: Generates PDF/A-3 with embedded XML (requires `source_pdf`) ## Factur-X profiles - **MINIMUM**: Minimal data (simplified invoice) - **BASIC**: Basic information (SMEs) - **EN16931**: European standard (recommended, compliant with directive 2014/55/EU) - **EXTENDED**: All available data (large accounts) ## What you get After successful processing (status `completed`): - **XML only**: Base64-encoded Factur-X compliant XML file - **PDF/A-3**: PDF with embedded XML, ready for sending/archiving - **Metadata**: Profile, Factur-X version, file size - **Validation**: Schematron compliance confirmation ## Validation Data is automatically validated according to detected format. On error, a 422 status is returned with invalid field details.
742
+ * @summary Generate a Factur-X invoice
743
+ * @param {string} invoiceData Invoice data in JSON format. Two formats accepted: 1. **Classic format**: Complete FactureFacturX structure (all fields) 2. **Simplified format** (🆕 P0.1): Minimal structure with auto-enrichment Format is detected automatically!
744
+ * @param {APIProfile} [profile] Factur-X profile: MINIMUM, BASIC, EN16931 or EXTENDED.
745
+ * @param {OutputFormat} [outputFormat] Output format: \\\&#39;xml\\\&#39; (XML only) or \\\&#39;pdf\\\&#39; (Factur-X PDF with embedded XML).
746
+ * @param {boolean} [autoEnrich] 🆕 Enable auto-enrichment from SIRET/SIREN (simplified format only)
747
+ * @param {File | null} [sourcePdf]
748
+ * @param {*} [options] Override http request option.
749
+ * @throws {RequiredError}
750
+ */
751
+ generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, options) {
752
+ return localVarFp.generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, options).then((request) => request(axios, basePath));
753
+ },
754
+ /**
755
+ * Generates a self-signed X.509 certificate for PDF electronic signature testing. **⚠️ WARNING: TEST certificate only!** This certificate is: - ✅ Suitable for testing and development - ✅ Compatible with PDF signing (PAdES) - ✅ Compliant with eIDAS **SES** level (Simple Electronic Signature) - ❌ **NEVER usable in production** - ❌ **Not recognized** by browsers and PDF readers - ❌ **No legal value** ## eIDAS levels - **SES** (Simple): Self-signed certificate ← Generated by this endpoint - **AdES** (Advanced): Commercial CA certificate (Let\'s Encrypt, etc.) - **QES** (Qualified): Qualified certificate from QTSP (CertEurope, Universign, etc.) ## Usage Once generated, the certificate can be: 1. **Saved in Django** (recommended): - Django Admin > Signing Certificates - Upload `certificate_pem` and `private_key_pem` 2. **Used directly**: - Sign a PDF with `/sign-pdf` - The certificate will be automatically used ## Example call ```bash curl -X POST \"https://www.factpulse.fr/api/v1/processing/generate-test-certificate\" \\ -H \"Authorization: Bearer eyJ0eXAi...\" \\ -H \"Content-Type: application/json\" \\ -d \'{ \"cn\": \"Test Client XYZ\", \"organization\": \"Client XYZ Ltd\", \"email\": \"contact@xyz.com\", \"validity_days\": 365 }\' ``` ## Use cases - PDF signature testing in development - Electronic signature POC - Training and demos - Automated integration tests ## Technical compliance Certificate generated with: - RSA key 2048 or 4096 bits - SHA-256 algorithm - Key Usage extensions: `digitalSignature`, `contentCommitment` (non-repudiation) - Extended Key Usage extensions: `codeSigning`, `emailProtection` - Validity: 1 day to 10 years (configurable) - Format: PEM (certificate and key) - Optional: PKCS#12 (.p12)
756
+ * @summary Generate a self-signed X.509 test certificate
757
+ * @param {GenerateCertificateRequest} generateCertificateRequest
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ */
761
+ generateTestCertificateApiV1ProcessingGenerateTestCertificatePost(generateCertificateRequest, options) {
762
+ return localVarFp.generateTestCertificateApiV1ProcessingGenerateTestCertificatePost(generateCertificateRequest, options).then((request) => request(axios, basePath));
763
+ },
764
+ /**
765
+ * Retrieves the progress status of an invoice generation task. ## Possible states The `status` field uses the `CeleryStatus` enum with values: - **PENDING, STARTED, SUCCESS, FAILURE, RETRY** See the `CeleryStatus` schema documentation for details. ## Business result When `status=\"SUCCESS\"`, the `result` field contains: - `status`: \"SUCCESS\" or \"ERROR\" (business result) - `content_b64`: Base64 encoded content (if success) - `errorCode`, `errorMessage`, `details`: AFNOR format (if business error) ## Usage Poll this endpoint every 2-3 seconds until `status` is `SUCCESS` or `FAILURE`.
766
+ * @summary Get task generation status
767
+ * @param {string} taskId
768
+ * @param {*} [options] Override http request option.
769
+ * @throws {RequiredError}
770
+ */
771
+ getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId, options) {
772
+ return localVarFp.getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId, options).then((request) => request(axios, basePath));
773
+ },
774
+ /**
775
+ * Signs an uploaded PDF with the electronic certificate configured for the client (via client_uid from JWT). **Supported standards**: PAdES-B-B, PAdES-B-T (timestamping), PAdES-B-LT (long-term archiving). **eIDAS levels**: SES (self-signed), AdES (commercial CA), QES (PSCO - out of scope). **Security**: Double authentication X-Internal-Secret + JWT Bearer to retrieve the certificate. **⚠️ Legal disclaimer**: Generated signatures are electronic seals as defined by the eIDAS regulation. The level of legal validity depends on the certificate used (SES/AdES/QES). FactPulse does not provide QES qualified certificates - you must obtain a certificate from a PSCO (qualified Trust Service Provider) for maximum legal validity.
776
+ * @summary Sign a PDF with client\'s certificate (PAdES-B-LT)
777
+ * @param {File} pdfFile PDF file to sign (will be processed and returned signed in base64)
778
+ * @param {string | null} [reason]
779
+ * @param {string | null} [location]
780
+ * @param {string | null} [contact]
781
+ * @param {string} [fieldName] PDF signature field name
782
+ * @param {boolean} [usePadesLt] Enable PAdES-B-LT (long-term archiving with embedded validation data). REQUIRES a certificate with OCSP/CRL access.
783
+ * @param {boolean} [useTimestamp] Enable RFC 3161 timestamping with FreeTSA (PAdES-B-T)
784
+ * @param {*} [options] Override http request option.
785
+ * @throws {RequiredError}
786
+ */
787
+ signPdfApiV1ProcessingSignPdfPost(pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options) {
788
+ return localVarFp.signPdfApiV1ProcessingSignPdfPost(pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options).then((request) => request(axios, basePath));
789
+ },
790
+ /**
791
+ * Signs an uploaded PDF asynchronously via a Celery task. **Difference with /sign-pdf**: - `/sign-pdf`: Synchronous signature (blocking until completion) - `/sign-pdf-async`: Asynchronous signature (returns immediately with task_id) **Async advantages**: - No timeout for large files - No blocking of FastAPI worker - Progress tracking via task_id - Ideal for batch processing **Supported standards**: PAdES-B-B, PAdES-B-T (timestamping), PAdES-B-LT (long-term archiving). **⚠️ Legal disclaimer**: Same as /sign-pdf (see that endpoint\'s documentation).
792
+ * @summary Sign a PDF asynchronously (Celery)
793
+ * @param {File} pdfFile PDF file to sign (processed asynchronously)
794
+ * @param {string | null} [reason]
795
+ * @param {string | null} [location]
796
+ * @param {string | null} [contact]
797
+ * @param {string} [fieldName] PDF signature field name
798
+ * @param {boolean} [usePadesLt] Enable PAdES-B-LT (long-term archiving with embedded validation data). REQUIRES a certificate with OCSP/CRL access.
799
+ * @param {boolean} [useTimestamp] Enable RFC 3161 timestamping with FreeTSA (PAdES-B-T)
800
+ * @param {*} [options] Override http request option.
801
+ * @throws {RequiredError}
802
+ */
803
+ signPdfAsyncApiV1ProcessingSignPdfAsyncPost(pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options) {
804
+ return localVarFp.signPdfAsyncApiV1ProcessingSignPdfAsyncPost(pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options).then((request) => request(axios, basePath));
805
+ },
806
+ /**
807
+ * Unified endpoint to submit a complete invoice to different destinations. **Automated workflow:** 1. **Auto-enrichment** (optional): retrieves data via public APIs and Chorus Pro/AFNOR 2. **Factur-X PDF generation**: creates a PDF/A-3 with embedded XML 3. **Electronic signature** (optional): signs the PDF with a certificate 4. **Submission**: sends to the chosen destination (Chorus Pro or AFNOR PDP) **Supported destinations:** - **Chorus Pro**: French B2G platform (invoices to public sector) - **AFNOR PDP**: Partner Dematerialization Platforms **Destination credentials - 2 modes available:** **Mode 1 - Retrieval via JWT (recommended):** - Credentials are retrieved automatically via the JWT `client_uid` - Do not provide the `credentials` field in `destination` - Zero-trust architecture: no secrets in the payload - Example: `\"destination\": {\"type\": \"chorus_pro\"}` **Mode 2 - Credentials in the payload:** - Provide credentials directly in the payload - Useful for tests or third-party integrations - Example: `\"destination\": {\"type\": \"chorus_pro\", \"credentials\": {...}}` **Electronic signature (optional) - 2 modes available:** **Mode 1 - Stored certificate (recommended):** - Certificate is retrieved automatically via the JWT `client_uid` - No key to provide in the payload - PAdES-B-LT signature with timestamp (eIDAS compliant) - Example: `\"signature\": {\"reason\": \"Factur-X compliance\"}` **Mode 2 - Keys in the payload (for tests):** - Provide `key_pem` and `cert_pem` directly - PEM format accepted: raw or base64 - Useful for tests or special cases without stored certificate - Example: `\"signature\": {\"key_pem\": \"-----BEGIN...\", \"cert_pem\": \"-----BEGIN...\"}` If `key_pem` and `cert_pem` are provided → Mode 2 Otherwise → Mode 1 (certificate retrieved via `client_uid`)
808
+ * @summary Submit a complete invoice (generation + signature + submission)
809
+ * @param {SubmitCompleteInvoiceRequest} submitCompleteInvoiceRequest
810
+ * @param {*} [options] Override http request option.
811
+ * @throws {RequiredError}
812
+ */
813
+ submitCompleteInvoiceApiV1ProcessingInvoicesSubmitCompletePost(submitCompleteInvoiceRequest, options) {
814
+ return localVarFp.submitCompleteInvoiceApiV1ProcessingInvoicesSubmitCompletePost(submitCompleteInvoiceRequest, options).then((request) => request(axios, basePath));
815
+ },
816
+ /**
817
+ * Asynchronous version of the `/invoices/submit-complete` endpoint using Celery for background processing. **Automated workflow (same as synchronous version):** 1. **Auto-enrichment** (optional): retrieves data via public APIs and Chorus Pro/AFNOR 2. **Factur-X PDF generation**: creates a PDF/A-3 with embedded XML 3. **Electronic signature** (optional): signs the PDF with a certificate 4. **Submission**: sends to the chosen destination (Chorus Pro or AFNOR PDP) **Supported destinations:** - **Chorus Pro**: French B2G platform (invoices to public sector) - **AFNOR PDP**: Partner Dematerialization Platforms **Differences with synchronous version:** - ✅ **Non-blocking**: Returns immediately with a `task_id` (HTTP 202 Accepted) - ✅ **Background processing**: Invoice is processed by a Celery worker - ✅ **Progress tracking**: Use `/tasks/{task_id}/status` to track status - ✅ **Ideal for high volumes**: Allows processing many invoices in parallel **How to use:** 1. **Submission**: Call this endpoint with your invoice data 2. **Immediate return**: You receive a `task_id` (e.g., \"abc123-def456\") 3. **Tracking**: Call `/tasks/{task_id}/status` to check progress 4. **Result**: When `status = \"SUCCESS\"`, the `result` field contains the complete response **Credentials and signature**: Same modes as the synchronous version (JWT or payload).
818
+ * @summary Submit a complete invoice (asynchronous with Celery)
819
+ * @param {SubmitCompleteInvoiceRequest} submitCompleteInvoiceRequest
820
+ * @param {*} [options] Override http request option.
821
+ * @throws {RequiredError}
822
+ */
823
+ submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, options) {
824
+ return localVarFp.submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, options).then((request) => request(axios, basePath));
825
+ },
826
+ /**
827
+ * Validates a complete Factur-X PDF according to European and French standards. ## Applied validation standards - **EN 16931**: European semantic standard (directive 2014/55/EU) - **ISO 19005-3** (PDF/A-3): Long-term electronic archiving - **Factur-X / ZUGFeRD**: Franco-German specification - **Schematron**: XML business rules validation - **eIDAS**: European regulation on electronic identification (signatures) ## Checks performed ### 1. Factur-X XML extraction and validation **Checks performed:** - Presence of embedded XML file (`factur-x.xml` or `zugferd-invoice.xml`) - Automatic profile detection (MINIMUM, BASIC, EN16931, EXTENDED) - XML parsing with UTF-8 validation - GuidelineSpecifiedDocumentContextParameter/ID extraction **Schematron validation:** - Business rules for detected profile (MINIMUM: 45 rules, EN16931: 178 rules) - Cardinality of required elements - Calculation consistency (net, VAT, gross amounts, discounts) - Identifier formats (SIRET, intra-EU VAT, IBAN) - Standardized codes (ISO country codes, UN/ECE units, VAT codes) **What is verified:** - ✅ XML structure conforming to Cross Industry Invoice XSD - ✅ Correct UN/CEFACT namespace - ✅ European business rules (BR-xx) - ✅ French-specific rules (FR-xx) ### 2. PDF/A-3 compliance **Basic validation (metadata):** - Presence of `/Type` field set to `Catalog` - Metadata `pdfaid:part` = 3 (PDF/A-3) - Metadata `pdfaid:conformance` = B or U - PDF version >= 1.4 **Strict VeraPDF validation (if use_verapdf=True):** - 146+ ISO 19005-3 rules (PDF/A-3B) - Absence of forbidden content (JavaScript, multimedia, dynamic forms) - Correctly embedded fonts and subsets - Compliant color spaces (sRGB, DeviceGray) - Valid file structure (cross-reference table) - XMP metadata conforming to ISO 16684-1 **What is verified:** - ✅ Long-term archivable file (20+ years) - ✅ Guaranteed readability (embedded fonts) - ✅ Legal compliance (France, Germany, EU) ### 3. XMP metadata (eXtensible Metadata Platform) **Checks performed:** - Presence of `<?xpacket>` block with XMP metadata - `fx:` namespace for Factur-X: `urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0#` - Required Factur-X fields: - `fx:ConformanceLevel`: Profile (MINIMUM, BASIC, EN16931, EXTENDED) - `fx:DocumentFileName`: Embedded XML name - `fx:DocumentType`: \"INVOICE\" - `fx:Version`: Factur-X version (1.0.07) **What is verified:** - ✅ Metadata conforming to ISO 16684-1 - ✅ Correct declared Factur-X profile - ✅ Supported Factur-X version ### 4. Electronic signatures **Detection and analysis:** - Presence of `/Sig` dictionaries in PDF - Signature type: PAdES (PDF Advanced Electronic Signature) - Information extraction: - Signer name (`/Name`) - Signing date (`/M`) - Signature reason (`/Reason`) - Signature location (`/Location`) - Signature type (approval, certification) **What is verified:** - ✅ Presence of signatures or seals - ✅ Number of signatures (single or multi-signature) - ℹ️ No cryptographic verification (requires certificates) ## Parameters - **pdf_file** (required): The Factur-X PDF file to validate - **profile** (optional): Expected profile. If absent, auto-detected from XML - **use_verapdf** (optional, default=false): Enable strict PDF/A validation with VeraPDF - `false`: Fast metadata validation (2-3 seconds) - `true`: Complete ISO 19005-3 validation (15-30 seconds, **recommended for production**) ## Detailed response ```json { \"isCompliant\": true, \"xml\": { \"present\": true, \"compliant\": true, \"profile\": \"EN16931\", \"errors\": [] }, \"pdfa\": { \"compliant\": true, \"version\": \"PDF/A-3B\", \"method\": \"verapdf\", \"errors\": [] }, \"xmp\": { \"present\": true, \"compliant\": true, \"metadata\": {...} }, \"signatures\": { \"present\": true, \"count\": 1, \"details\": [...] } } ``` ## Use cases - **Before sending**: Validate generated invoice before transmission to client - **On reception**: Verify compliance of invoice received from supplier - **Audit**: Check quality of invoice batches - **Legal compliance**: Ensure B2B/B2G obligations are met in France - **Debugging**: Identify issues in generation process - **Archiving**: Guarantee long-term validity (PDF/A-3) ## Processing time - Basic validation: 2-3 seconds - VeraPDF validation: 15-30 seconds (depends on PDF size)
828
+ * @summary Validate a complete Factur-X PDF
829
+ * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
830
+ * @param {APIProfile | null} [profile]
831
+ * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). If False, uses basic metadata validation.
832
+ * @param {*} [options] Override http request option.
833
+ * @throws {RequiredError}
834
+ */
835
+ validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, options) {
836
+ return localVarFp.validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, options).then((request) => request(axios, basePath));
837
+ },
838
+ /**
839
+ * Validates a Factur-X PDF asynchronously with polling system. ## How it works 1. **Submission**: PDF is queued for asynchronous validation 2. **Immediate return**: You receive a `task_id` (HTTP 202) 3. **Tracking**: Use the `/tasks/{task_id}/status` endpoint to track progress ## Advantages of asynchronous mode - **No timeout**: Ideal for large PDFs or VeraPDF validation (which can take several seconds) - **Scalability**: Validations are processed by dedicated Celery workers - **Status tracking**: Allows you to monitor validation progress - **Non-blocking**: Your client doesn\'t wait during validation ## When to use this mode? - **VeraPDF validation enabled** (`use_verapdf=True`): Strict validation can take 2-10 seconds - **Large PDF files**: PDFs > 1 MB - **Batch processing**: Validating multiple invoices in parallel - **Asynchronous integration**: Your system supports polling ## Checks performed ### 1. Factur-X XML extraction and validation - Verifies presence of Factur-X compliant embedded XML file - Automatically detects profile used (MINIMUM, BASIC, EN16931, EXTENDED) - Validates XML against detected profile\'s Schematron rules ### 2. PDF/A compliance - **Without VeraPDF**: Basic metadata validation (fast, ~100ms) - **With VeraPDF**: Strict ISO 19005 validation (146+ rules, 2-10s) - Detects PDF/A version (PDF/A-1, PDF/A-3, etc.) - Detailed non-compliance reports ### 3. XMP metadata - Verifies presence of XMP metadata in PDF - Validates Factur-X metadata compliance (profile, version) - Extracts all available XMP metadata ### 4. Electronic signatures - Detects presence of electronic signatures or seals - Extracts information about each signature (signer, date, reason) - Counts number of signatures present ## Parameters - **pdf_file**: The Factur-X PDF file to validate - **profile**: Expected Factur-X profile (optional). If not specified, profile will be auto-detected from embedded XML file. - **use_verapdf**: Enable strict PDF/A validation with VeraPDF. ⚠️ **Warning**: VeraPDF can take 2-10 seconds depending on PDF size. Recommended only in asynchronous mode to avoid timeouts. ## Retrieving results After submission, use `GET /tasks/{task_id}/status` endpoint to retrieve the result. **Polling example**: ```python import requests import time # 1. Submit task response = requests.post(\"/validate-facturx-async\", files={\"pdf_file\": pdf_file}) task_id = response.json()[\"taskId\"] # 2. Poll every 2 seconds while True: status_response = requests.get(f\"/tasks/{task_id}/status\") status = status_response.json() if status[\"status\"] == \"SUCCESS\": result = status[\"result\"][\"validation_result\"] print(f\"Compliant: {result[\'is_compliant\']}\") break elif status[\"status\"] == \"FAILURE\": print(f\"Error: {status[\'result\'][\'errorMessage\']}\") break time.sleep(2) # Wait 2 seconds before next check ``` ## Use cases - Validate invoices before sending with VeraPDF (strict validation) - Process invoice batches in parallel - Integrate validation into an asynchronous pipeline - Validate large PDFs without timeout risk
840
+ * @summary Validate a Factur-X PDF (asynchronous with polling)
841
+ * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
842
+ * @param {APIProfile | null} [profile]
843
+ * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). May take several seconds.
844
+ * @param {*} [options] Override http request option.
845
+ * @throws {RequiredError}
846
+ */
847
+ validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, options) {
848
+ return localVarFp.validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, options).then((request) => request(axios, basePath));
849
+ },
850
+ /**
851
+ * Validates electronic signatures present in an uploaded PDF. **Verifications performed**: - Presence of signatures - Document integrity (not modified since signing) - Certificate validity - Chain of trust (if available) - Presence of timestamp (PAdES-B-T) - Validation data (PAdES-B-LT) **Supported standards**: PAdES-B-B, PAdES-B-T, PAdES-B-LT, ISO 32000-2. **⚠️ Note**: This validation is technical (cryptographic integrity). Legal validity depends on the eIDAS level of the certificate (SES/AdES/QES) and the context of use.
852
+ * @summary Validate electronic signatures of a PDF
853
+ * @param {File} pdfFile PDF file to validate (will be analyzed to detect and validate signatures)
854
+ * @param {*} [options] Override http request option.
855
+ * @throws {RequiredError}
856
+ */
857
+ validatePdfSignatureEndpointApiV1ProcessingValidatePdfSignaturePost(pdfFile, options) {
858
+ return localVarFp.validatePdfSignatureEndpointApiV1ProcessingValidatePdfSignaturePost(pdfFile, options).then((request) => request(axios, basePath));
859
+ },
860
+ /**
861
+ * Validates a Factur-X XML file against Schematron business rules according to EN 16931 standard. ## Applied Standard **Schematron ISO/IEC 19757-3**: Business rules validation language for XML - Semantic validation (beyond XSD syntax) - European EN 16931 business rules - French-specific Factur-X rules - Arithmetic calculations and data consistency ## Profiles and validated rules ### MINIMUM (45 rules) - Unique invoice identifier - Dates (issue, due date) - Party identifiers (SIRET/SIREN) - Total gross amount ### BASIC (102 rules) - All MINIMUM rules - Detailed invoice lines - Basic VAT calculations - Payment methods - References (order, contract) ### EN16931 (178 rules) - All BASIC rules - **European rules (BR-xx)**: 81 business rules - **French rules (FR-xx)**: 12 France-specific rules - **Advanced calculations (CR-xx)**: 32 calculation rules - **Standardized codes (CL-xx)**: 52 code lists ### EXTENDED (210+ rules) - All EN16931 rules - Logistics information - Advanced accounting data - Multiple external references ## Checks performed ### 1. Syntax validation - Correct XML parsing (UTF-8, well-formed) - UN/CEFACT namespaces present - Hierarchical structure respected ### 2. Business rules (BR-xx) Examples: - `BR-1`: Invoice total must equal sum of line totals + document-level amounts - `BR-CO-10`: Sum of VAT base amounts must equal invoice net total - `BR-16`: Invoice currency code must be in ISO 4217 list ### 3. French rules (FR-xx) Examples: - `FR-1`: Supplier SIRET must have 14 digits - `FR-2`: Customer SIRET must have 14 digits (if present) - `FR-5`: Intra-EU VAT number must be in format FRxx999999999 ### 4. Calculation rules (CR-xx) - Net + VAT = Gross amounts - Sum of lines = Document total - Discounts and surcharges correctly applied - Compliant rounding (2 decimals for amounts) ### 5. Standardized codes (CL-xx) - ISO 3166-1 alpha-2 country codes - ISO 4217 currency codes - UN/ECE Rec 20 measurement units - VAT codes (types, categories, exemptions) - SchemeID for identifiers (0002=SIREN, 0009=SIRET, etc.) ## Validation process 1. **XSLT loading**: Schematron file converted to XSLT (Saxon-HE) 2. **Transformation**: Rules applied to XML 3. **Results analysis**: Extraction of errors (`failed-assert`) and warnings (`successful-report`) 4. **Report**: Structured list of non-conformities ## Responses **200 OK**: Compliant XML ```json { \"message\": \"XML is compliant with EN16931 profile\" } ``` **400 Bad Request**: Non-compliant XML ```json { \"detail\": [ \"[BR-1] Invoice total (120.00) does not match calculated sum (100.00 + 20.00)\", \"[FR-1] Supplier SIRET must contain exactly 14 digits\" ] } ``` ## Use cases - **Pre-validation**: Verify XML before PDF/A integration - **Debugging**: Precisely identify generation errors - **Testing**: Validate test or example XMLs - **Compliance**: Ensure European and French rules are met - **Development**: Quick testing without PDF generation ## Processing time - MINIMUM profile: ~0.5 second - EN16931 profile: ~1-2 seconds - EXTENDED profile: ~2-3 seconds
862
+ * @summary Validate an existing Factur-X XML
863
+ * @param {File} xmlFile Factur-X XML file to validate (.xml format).
864
+ * @param {APIProfile} [profile] Validation profile (MINIMUM, BASIC, EN16931, EXTENDED).
865
+ * @param {*} [options] Override http request option.
866
+ * @throws {RequiredError}
867
+ */
868
+ validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, options) {
869
+ return localVarFp.validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, options).then((request) => request(axios, basePath));
870
+ },
871
+ };
872
+ };
873
+ exports.InvoiceProcessingApiFactory = InvoiceProcessingApiFactory;
874
+ /**
875
+ * InvoiceProcessingApi - object-oriented interface
876
+ */
877
+ class InvoiceProcessingApi extends base_1.BaseAPI {
878
+ /**
879
+ * Generates an electronic invoice in Factur-X format compliant with European standards. ## Applied Standards - **Factur-X** (France): FNFE-MPE standard (Forum National de la Facture Électronique) - **ZUGFeRD** (Germany): German format compatible with Factur-X - **EN 16931**: European semantic standard for electronic invoicing - **ISO 19005-3** (PDF/A-3): Long-term electronic archiving - **Cross Industry Invoice (CII)**: UN/CEFACT XML syntax ## 🆕 New: Simplified format with auto-enrichment (P0.1) You can now create an invoice by providing only: - An invoice number - A sender SIRET + **IBAN** (required) - A recipient SIRET - Invoice lines (description, quantity, net price) **Simplified format example**: ```json { \"number\": \"FACT-2025-001\", \"sender\": { \"siret\": \"92019522900017\", \"iban\": \"FR7630001007941234567890185\" }, \"recipient\": {\"siret\": \"35600000000048\"}, \"lines\": [ {\"description\": \"Service\", \"quantity\": 10, \"unitPrice\": 100.00, \"vatRate\": 20.0} ] } ``` **⚠️ Required fields (simplified format)**: - `number`: Unique invoice number - `sender.siret`: Sender\'s SIRET (14 digits) - `sender.iban`: Bank account IBAN (no public API to retrieve it) - `recipient.siret`: Recipient\'s SIRET - `lines[]`: At least one invoice line **What happens automatically with `auto_enrich=True`**: - ✅ Name enrichment from Chorus Pro API - ✅ Address enrichment from Business Search API (free, public) - ✅ Automatic intra-EU VAT calculation (FR + key + SIREN) - ✅ Chorus Pro ID retrieval for electronic invoicing - ✅ Net/VAT/Gross totals calculation - ✅ Date generation (today + 30-day due date) - ✅ Multi-rate VAT handling **Supported identifiers**: - SIRET (14 digits): Specific establishment ⭐ Recommended - SIREN (9 digits): Company (auto-selection of headquarters) - Special types: UE_HORS_FRANCE, RIDET, TAHITI, etc. ## Checks performed during generation ### 1. Data validation (Pydantic) - Data types (amounts as Decimal, ISO 8601 dates) - Formats (14-digit SIRET, 9-digit SIREN, IBAN) - Required fields per profile - Amount consistency (Net + VAT = Gross) ### 2. CII-compliant XML generation - Serialization according to Cross Industry Invoice XSD schema - Correct UN/CEFACT namespaces - Hierarchical structure respected - UTF-8 encoding without BOM ### 3. Schematron validation - Business rules for selected profile (MINIMUM, BASIC, EN16931, EXTENDED) - Element cardinality (required, optional, repeatable) - Calculation rules (totals, VAT, discounts) - European EN 16931 compliance ### 4. PDF/A-3 conversion (if output_format=\'pdf\') - Source PDF conversion to PDF/A-3 via Ghostscript - Factur-X XML embedding in PDF - Compliant XMP metadata - ICC sRGB color profile - Removal of forbidden elements (JavaScript, forms) ## How it works 1. **Submission**: Invoice is queued in Celery for asynchronous processing 2. **Immediate return**: You receive a `task_id` (HTTP 202 Accepted) 3. **Tracking**: Use the `/tasks/{task_id}/status` endpoint to track progress ## Output formats - **xml**: Generates only Factur-X XML (recommended for testing) - **pdf**: Generates PDF/A-3 with embedded XML (requires `source_pdf`) ## Factur-X profiles - **MINIMUM**: Minimal data (simplified invoice) - **BASIC**: Basic information (SMEs) - **EN16931**: European standard (recommended, compliant with directive 2014/55/EU) - **EXTENDED**: All available data (large accounts) ## What you get After successful processing (status `completed`): - **XML only**: Base64-encoded Factur-X compliant XML file - **PDF/A-3**: PDF with embedded XML, ready for sending/archiving - **Metadata**: Profile, Factur-X version, file size - **Validation**: Schematron compliance confirmation ## Validation Data is automatically validated according to detected format. On error, a 422 status is returned with invalid field details.
880
+ * @summary Generate a Factur-X invoice
881
+ * @param {string} invoiceData Invoice data in JSON format. Two formats accepted: 1. **Classic format**: Complete FactureFacturX structure (all fields) 2. **Simplified format** (🆕 P0.1): Minimal structure with auto-enrichment Format is detected automatically!
882
+ * @param {APIProfile} [profile] Factur-X profile: MINIMUM, BASIC, EN16931 or EXTENDED.
883
+ * @param {OutputFormat} [outputFormat] Output format: \\\&#39;xml\\\&#39; (XML only) or \\\&#39;pdf\\\&#39; (Factur-X PDF with embedded XML).
884
+ * @param {boolean} [autoEnrich] 🆕 Enable auto-enrichment from SIRET/SIREN (simplified format only)
885
+ * @param {File | null} [sourcePdf]
886
+ * @param {*} [options] Override http request option.
887
+ * @throws {RequiredError}
888
+ */
889
+ generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, options) {
890
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, options).then((request) => request(this.axios, this.basePath));
891
+ }
892
+ /**
893
+ * Generates a self-signed X.509 certificate for PDF electronic signature testing. **⚠️ WARNING: TEST certificate only!** This certificate is: - ✅ Suitable for testing and development - ✅ Compatible with PDF signing (PAdES) - ✅ Compliant with eIDAS **SES** level (Simple Electronic Signature) - ❌ **NEVER usable in production** - ❌ **Not recognized** by browsers and PDF readers - ❌ **No legal value** ## eIDAS levels - **SES** (Simple): Self-signed certificate ← Generated by this endpoint - **AdES** (Advanced): Commercial CA certificate (Let\'s Encrypt, etc.) - **QES** (Qualified): Qualified certificate from QTSP (CertEurope, Universign, etc.) ## Usage Once generated, the certificate can be: 1. **Saved in Django** (recommended): - Django Admin > Signing Certificates - Upload `certificate_pem` and `private_key_pem` 2. **Used directly**: - Sign a PDF with `/sign-pdf` - The certificate will be automatically used ## Example call ```bash curl -X POST \"https://www.factpulse.fr/api/v1/processing/generate-test-certificate\" \\ -H \"Authorization: Bearer eyJ0eXAi...\" \\ -H \"Content-Type: application/json\" \\ -d \'{ \"cn\": \"Test Client XYZ\", \"organization\": \"Client XYZ Ltd\", \"email\": \"contact@xyz.com\", \"validity_days\": 365 }\' ``` ## Use cases - PDF signature testing in development - Electronic signature POC - Training and demos - Automated integration tests ## Technical compliance Certificate generated with: - RSA key 2048 or 4096 bits - SHA-256 algorithm - Key Usage extensions: `digitalSignature`, `contentCommitment` (non-repudiation) - Extended Key Usage extensions: `codeSigning`, `emailProtection` - Validity: 1 day to 10 years (configurable) - Format: PEM (certificate and key) - Optional: PKCS#12 (.p12)
894
+ * @summary Generate a self-signed X.509 test certificate
895
+ * @param {GenerateCertificateRequest} generateCertificateRequest
896
+ * @param {*} [options] Override http request option.
897
+ * @throws {RequiredError}
898
+ */
899
+ generateTestCertificateApiV1ProcessingGenerateTestCertificatePost(generateCertificateRequest, options) {
900
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).generateTestCertificateApiV1ProcessingGenerateTestCertificatePost(generateCertificateRequest, options).then((request) => request(this.axios, this.basePath));
901
+ }
902
+ /**
903
+ * Retrieves the progress status of an invoice generation task. ## Possible states The `status` field uses the `CeleryStatus` enum with values: - **PENDING, STARTED, SUCCESS, FAILURE, RETRY** See the `CeleryStatus` schema documentation for details. ## Business result When `status=\"SUCCESS\"`, the `result` field contains: - `status`: \"SUCCESS\" or \"ERROR\" (business result) - `content_b64`: Base64 encoded content (if success) - `errorCode`, `errorMessage`, `details`: AFNOR format (if business error) ## Usage Poll this endpoint every 2-3 seconds until `status` is `SUCCESS` or `FAILURE`.
904
+ * @summary Get task generation status
905
+ * @param {string} taskId
906
+ * @param {*} [options] Override http request option.
907
+ * @throws {RequiredError}
908
+ */
909
+ getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId, options) {
910
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).getTaskStatusApiV1ProcessingTasksTaskIdStatusGet(taskId, options).then((request) => request(this.axios, this.basePath));
911
+ }
912
+ /**
913
+ * Signs an uploaded PDF with the electronic certificate configured for the client (via client_uid from JWT). **Supported standards**: PAdES-B-B, PAdES-B-T (timestamping), PAdES-B-LT (long-term archiving). **eIDAS levels**: SES (self-signed), AdES (commercial CA), QES (PSCO - out of scope). **Security**: Double authentication X-Internal-Secret + JWT Bearer to retrieve the certificate. **⚠️ Legal disclaimer**: Generated signatures are electronic seals as defined by the eIDAS regulation. The level of legal validity depends on the certificate used (SES/AdES/QES). FactPulse does not provide QES qualified certificates - you must obtain a certificate from a PSCO (qualified Trust Service Provider) for maximum legal validity.
914
+ * @summary Sign a PDF with client\'s certificate (PAdES-B-LT)
915
+ * @param {File} pdfFile PDF file to sign (will be processed and returned signed in base64)
916
+ * @param {string | null} [reason]
917
+ * @param {string | null} [location]
918
+ * @param {string | null} [contact]
919
+ * @param {string} [fieldName] PDF signature field name
920
+ * @param {boolean} [usePadesLt] Enable PAdES-B-LT (long-term archiving with embedded validation data). REQUIRES a certificate with OCSP/CRL access.
921
+ * @param {boolean} [useTimestamp] Enable RFC 3161 timestamping with FreeTSA (PAdES-B-T)
922
+ * @param {*} [options] Override http request option.
923
+ * @throws {RequiredError}
924
+ */
925
+ signPdfApiV1ProcessingSignPdfPost(pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options) {
926
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).signPdfApiV1ProcessingSignPdfPost(pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options).then((request) => request(this.axios, this.basePath));
927
+ }
928
+ /**
929
+ * Signs an uploaded PDF asynchronously via a Celery task. **Difference with /sign-pdf**: - `/sign-pdf`: Synchronous signature (blocking until completion) - `/sign-pdf-async`: Asynchronous signature (returns immediately with task_id) **Async advantages**: - No timeout for large files - No blocking of FastAPI worker - Progress tracking via task_id - Ideal for batch processing **Supported standards**: PAdES-B-B, PAdES-B-T (timestamping), PAdES-B-LT (long-term archiving). **⚠️ Legal disclaimer**: Same as /sign-pdf (see that endpoint\'s documentation).
930
+ * @summary Sign a PDF asynchronously (Celery)
931
+ * @param {File} pdfFile PDF file to sign (processed asynchronously)
932
+ * @param {string | null} [reason]
933
+ * @param {string | null} [location]
934
+ * @param {string | null} [contact]
935
+ * @param {string} [fieldName] PDF signature field name
936
+ * @param {boolean} [usePadesLt] Enable PAdES-B-LT (long-term archiving with embedded validation data). REQUIRES a certificate with OCSP/CRL access.
937
+ * @param {boolean} [useTimestamp] Enable RFC 3161 timestamping with FreeTSA (PAdES-B-T)
938
+ * @param {*} [options] Override http request option.
939
+ * @throws {RequiredError}
940
+ */
941
+ signPdfAsyncApiV1ProcessingSignPdfAsyncPost(pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options) {
942
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).signPdfAsyncApiV1ProcessingSignPdfAsyncPost(pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options).then((request) => request(this.axios, this.basePath));
943
+ }
944
+ /**
945
+ * Unified endpoint to submit a complete invoice to different destinations. **Automated workflow:** 1. **Auto-enrichment** (optional): retrieves data via public APIs and Chorus Pro/AFNOR 2. **Factur-X PDF generation**: creates a PDF/A-3 with embedded XML 3. **Electronic signature** (optional): signs the PDF with a certificate 4. **Submission**: sends to the chosen destination (Chorus Pro or AFNOR PDP) **Supported destinations:** - **Chorus Pro**: French B2G platform (invoices to public sector) - **AFNOR PDP**: Partner Dematerialization Platforms **Destination credentials - 2 modes available:** **Mode 1 - Retrieval via JWT (recommended):** - Credentials are retrieved automatically via the JWT `client_uid` - Do not provide the `credentials` field in `destination` - Zero-trust architecture: no secrets in the payload - Example: `\"destination\": {\"type\": \"chorus_pro\"}` **Mode 2 - Credentials in the payload:** - Provide credentials directly in the payload - Useful for tests or third-party integrations - Example: `\"destination\": {\"type\": \"chorus_pro\", \"credentials\": {...}}` **Electronic signature (optional) - 2 modes available:** **Mode 1 - Stored certificate (recommended):** - Certificate is retrieved automatically via the JWT `client_uid` - No key to provide in the payload - PAdES-B-LT signature with timestamp (eIDAS compliant) - Example: `\"signature\": {\"reason\": \"Factur-X compliance\"}` **Mode 2 - Keys in the payload (for tests):** - Provide `key_pem` and `cert_pem` directly - PEM format accepted: raw or base64 - Useful for tests or special cases without stored certificate - Example: `\"signature\": {\"key_pem\": \"-----BEGIN...\", \"cert_pem\": \"-----BEGIN...\"}` If `key_pem` and `cert_pem` are provided → Mode 2 Otherwise → Mode 1 (certificate retrieved via `client_uid`)
946
+ * @summary Submit a complete invoice (generation + signature + submission)
947
+ * @param {SubmitCompleteInvoiceRequest} submitCompleteInvoiceRequest
948
+ * @param {*} [options] Override http request option.
949
+ * @throws {RequiredError}
950
+ */
951
+ submitCompleteInvoiceApiV1ProcessingInvoicesSubmitCompletePost(submitCompleteInvoiceRequest, options) {
952
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).submitCompleteInvoiceApiV1ProcessingInvoicesSubmitCompletePost(submitCompleteInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
953
+ }
954
+ /**
955
+ * Asynchronous version of the `/invoices/submit-complete` endpoint using Celery for background processing. **Automated workflow (same as synchronous version):** 1. **Auto-enrichment** (optional): retrieves data via public APIs and Chorus Pro/AFNOR 2. **Factur-X PDF generation**: creates a PDF/A-3 with embedded XML 3. **Electronic signature** (optional): signs the PDF with a certificate 4. **Submission**: sends to the chosen destination (Chorus Pro or AFNOR PDP) **Supported destinations:** - **Chorus Pro**: French B2G platform (invoices to public sector) - **AFNOR PDP**: Partner Dematerialization Platforms **Differences with synchronous version:** - ✅ **Non-blocking**: Returns immediately with a `task_id` (HTTP 202 Accepted) - ✅ **Background processing**: Invoice is processed by a Celery worker - ✅ **Progress tracking**: Use `/tasks/{task_id}/status` to track status - ✅ **Ideal for high volumes**: Allows processing many invoices in parallel **How to use:** 1. **Submission**: Call this endpoint with your invoice data 2. **Immediate return**: You receive a `task_id` (e.g., \"abc123-def456\") 3. **Tracking**: Call `/tasks/{task_id}/status` to check progress 4. **Result**: When `status = \"SUCCESS\"`, the `result` field contains the complete response **Credentials and signature**: Same modes as the synchronous version (JWT or payload).
956
+ * @summary Submit a complete invoice (asynchronous with Celery)
957
+ * @param {SubmitCompleteInvoiceRequest} submitCompleteInvoiceRequest
958
+ * @param {*} [options] Override http request option.
959
+ * @throws {RequiredError}
960
+ */
961
+ submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, options) {
962
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
963
+ }
964
+ /**
965
+ * Validates a complete Factur-X PDF according to European and French standards. ## Applied validation standards - **EN 16931**: European semantic standard (directive 2014/55/EU) - **ISO 19005-3** (PDF/A-3): Long-term electronic archiving - **Factur-X / ZUGFeRD**: Franco-German specification - **Schematron**: XML business rules validation - **eIDAS**: European regulation on electronic identification (signatures) ## Checks performed ### 1. Factur-X XML extraction and validation **Checks performed:** - Presence of embedded XML file (`factur-x.xml` or `zugferd-invoice.xml`) - Automatic profile detection (MINIMUM, BASIC, EN16931, EXTENDED) - XML parsing with UTF-8 validation - GuidelineSpecifiedDocumentContextParameter/ID extraction **Schematron validation:** - Business rules for detected profile (MINIMUM: 45 rules, EN16931: 178 rules) - Cardinality of required elements - Calculation consistency (net, VAT, gross amounts, discounts) - Identifier formats (SIRET, intra-EU VAT, IBAN) - Standardized codes (ISO country codes, UN/ECE units, VAT codes) **What is verified:** - ✅ XML structure conforming to Cross Industry Invoice XSD - ✅ Correct UN/CEFACT namespace - ✅ European business rules (BR-xx) - ✅ French-specific rules (FR-xx) ### 2. PDF/A-3 compliance **Basic validation (metadata):** - Presence of `/Type` field set to `Catalog` - Metadata `pdfaid:part` = 3 (PDF/A-3) - Metadata `pdfaid:conformance` = B or U - PDF version >= 1.4 **Strict VeraPDF validation (if use_verapdf=True):** - 146+ ISO 19005-3 rules (PDF/A-3B) - Absence of forbidden content (JavaScript, multimedia, dynamic forms) - Correctly embedded fonts and subsets - Compliant color spaces (sRGB, DeviceGray) - Valid file structure (cross-reference table) - XMP metadata conforming to ISO 16684-1 **What is verified:** - ✅ Long-term archivable file (20+ years) - ✅ Guaranteed readability (embedded fonts) - ✅ Legal compliance (France, Germany, EU) ### 3. XMP metadata (eXtensible Metadata Platform) **Checks performed:** - Presence of `<?xpacket>` block with XMP metadata - `fx:` namespace for Factur-X: `urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0#` - Required Factur-X fields: - `fx:ConformanceLevel`: Profile (MINIMUM, BASIC, EN16931, EXTENDED) - `fx:DocumentFileName`: Embedded XML name - `fx:DocumentType`: \"INVOICE\" - `fx:Version`: Factur-X version (1.0.07) **What is verified:** - ✅ Metadata conforming to ISO 16684-1 - ✅ Correct declared Factur-X profile - ✅ Supported Factur-X version ### 4. Electronic signatures **Detection and analysis:** - Presence of `/Sig` dictionaries in PDF - Signature type: PAdES (PDF Advanced Electronic Signature) - Information extraction: - Signer name (`/Name`) - Signing date (`/M`) - Signature reason (`/Reason`) - Signature location (`/Location`) - Signature type (approval, certification) **What is verified:** - ✅ Presence of signatures or seals - ✅ Number of signatures (single or multi-signature) - ℹ️ No cryptographic verification (requires certificates) ## Parameters - **pdf_file** (required): The Factur-X PDF file to validate - **profile** (optional): Expected profile. If absent, auto-detected from XML - **use_verapdf** (optional, default=false): Enable strict PDF/A validation with VeraPDF - `false`: Fast metadata validation (2-3 seconds) - `true`: Complete ISO 19005-3 validation (15-30 seconds, **recommended for production**) ## Detailed response ```json { \"isCompliant\": true, \"xml\": { \"present\": true, \"compliant\": true, \"profile\": \"EN16931\", \"errors\": [] }, \"pdfa\": { \"compliant\": true, \"version\": \"PDF/A-3B\", \"method\": \"verapdf\", \"errors\": [] }, \"xmp\": { \"present\": true, \"compliant\": true, \"metadata\": {...} }, \"signatures\": { \"present\": true, \"count\": 1, \"details\": [...] } } ``` ## Use cases - **Before sending**: Validate generated invoice before transmission to client - **On reception**: Verify compliance of invoice received from supplier - **Audit**: Check quality of invoice batches - **Legal compliance**: Ensure B2B/B2G obligations are met in France - **Debugging**: Identify issues in generation process - **Archiving**: Guarantee long-term validity (PDF/A-3) ## Processing time - Basic validation: 2-3 seconds - VeraPDF validation: 15-30 seconds (depends on PDF size)
966
+ * @summary Validate a complete Factur-X PDF
967
+ * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
968
+ * @param {APIProfile | null} [profile]
969
+ * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). If False, uses basic metadata validation.
970
+ * @param {*} [options] Override http request option.
971
+ * @throws {RequiredError}
972
+ */
973
+ validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, options) {
974
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, options).then((request) => request(this.axios, this.basePath));
975
+ }
976
+ /**
977
+ * Validates a Factur-X PDF asynchronously with polling system. ## How it works 1. **Submission**: PDF is queued for asynchronous validation 2. **Immediate return**: You receive a `task_id` (HTTP 202) 3. **Tracking**: Use the `/tasks/{task_id}/status` endpoint to track progress ## Advantages of asynchronous mode - **No timeout**: Ideal for large PDFs or VeraPDF validation (which can take several seconds) - **Scalability**: Validations are processed by dedicated Celery workers - **Status tracking**: Allows you to monitor validation progress - **Non-blocking**: Your client doesn\'t wait during validation ## When to use this mode? - **VeraPDF validation enabled** (`use_verapdf=True`): Strict validation can take 2-10 seconds - **Large PDF files**: PDFs > 1 MB - **Batch processing**: Validating multiple invoices in parallel - **Asynchronous integration**: Your system supports polling ## Checks performed ### 1. Factur-X XML extraction and validation - Verifies presence of Factur-X compliant embedded XML file - Automatically detects profile used (MINIMUM, BASIC, EN16931, EXTENDED) - Validates XML against detected profile\'s Schematron rules ### 2. PDF/A compliance - **Without VeraPDF**: Basic metadata validation (fast, ~100ms) - **With VeraPDF**: Strict ISO 19005 validation (146+ rules, 2-10s) - Detects PDF/A version (PDF/A-1, PDF/A-3, etc.) - Detailed non-compliance reports ### 3. XMP metadata - Verifies presence of XMP metadata in PDF - Validates Factur-X metadata compliance (profile, version) - Extracts all available XMP metadata ### 4. Electronic signatures - Detects presence of electronic signatures or seals - Extracts information about each signature (signer, date, reason) - Counts number of signatures present ## Parameters - **pdf_file**: The Factur-X PDF file to validate - **profile**: Expected Factur-X profile (optional). If not specified, profile will be auto-detected from embedded XML file. - **use_verapdf**: Enable strict PDF/A validation with VeraPDF. ⚠️ **Warning**: VeraPDF can take 2-10 seconds depending on PDF size. Recommended only in asynchronous mode to avoid timeouts. ## Retrieving results After submission, use `GET /tasks/{task_id}/status` endpoint to retrieve the result. **Polling example**: ```python import requests import time # 1. Submit task response = requests.post(\"/validate-facturx-async\", files={\"pdf_file\": pdf_file}) task_id = response.json()[\"taskId\"] # 2. Poll every 2 seconds while True: status_response = requests.get(f\"/tasks/{task_id}/status\") status = status_response.json() if status[\"status\"] == \"SUCCESS\": result = status[\"result\"][\"validation_result\"] print(f\"Compliant: {result[\'is_compliant\']}\") break elif status[\"status\"] == \"FAILURE\": print(f\"Error: {status[\'result\'][\'errorMessage\']}\") break time.sleep(2) # Wait 2 seconds before next check ``` ## Use cases - Validate invoices before sending with VeraPDF (strict validation) - Process invoice batches in parallel - Integrate validation into an asynchronous pipeline - Validate large PDFs without timeout risk
978
+ * @summary Validate a Factur-X PDF (asynchronous with polling)
979
+ * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
980
+ * @param {APIProfile | null} [profile]
981
+ * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). May take several seconds.
982
+ * @param {*} [options] Override http request option.
983
+ * @throws {RequiredError}
984
+ */
985
+ validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, options) {
986
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, options).then((request) => request(this.axios, this.basePath));
987
+ }
988
+ /**
989
+ * Validates electronic signatures present in an uploaded PDF. **Verifications performed**: - Presence of signatures - Document integrity (not modified since signing) - Certificate validity - Chain of trust (if available) - Presence of timestamp (PAdES-B-T) - Validation data (PAdES-B-LT) **Supported standards**: PAdES-B-B, PAdES-B-T, PAdES-B-LT, ISO 32000-2. **⚠️ Note**: This validation is technical (cryptographic integrity). Legal validity depends on the eIDAS level of the certificate (SES/AdES/QES) and the context of use.
990
+ * @summary Validate electronic signatures of a PDF
991
+ * @param {File} pdfFile PDF file to validate (will be analyzed to detect and validate signatures)
992
+ * @param {*} [options] Override http request option.
993
+ * @throws {RequiredError}
994
+ */
995
+ validatePdfSignatureEndpointApiV1ProcessingValidatePdfSignaturePost(pdfFile, options) {
996
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).validatePdfSignatureEndpointApiV1ProcessingValidatePdfSignaturePost(pdfFile, options).then((request) => request(this.axios, this.basePath));
997
+ }
998
+ /**
999
+ * Validates a Factur-X XML file against Schematron business rules according to EN 16931 standard. ## Applied Standard **Schematron ISO/IEC 19757-3**: Business rules validation language for XML - Semantic validation (beyond XSD syntax) - European EN 16931 business rules - French-specific Factur-X rules - Arithmetic calculations and data consistency ## Profiles and validated rules ### MINIMUM (45 rules) - Unique invoice identifier - Dates (issue, due date) - Party identifiers (SIRET/SIREN) - Total gross amount ### BASIC (102 rules) - All MINIMUM rules - Detailed invoice lines - Basic VAT calculations - Payment methods - References (order, contract) ### EN16931 (178 rules) - All BASIC rules - **European rules (BR-xx)**: 81 business rules - **French rules (FR-xx)**: 12 France-specific rules - **Advanced calculations (CR-xx)**: 32 calculation rules - **Standardized codes (CL-xx)**: 52 code lists ### EXTENDED (210+ rules) - All EN16931 rules - Logistics information - Advanced accounting data - Multiple external references ## Checks performed ### 1. Syntax validation - Correct XML parsing (UTF-8, well-formed) - UN/CEFACT namespaces present - Hierarchical structure respected ### 2. Business rules (BR-xx) Examples: - `BR-1`: Invoice total must equal sum of line totals + document-level amounts - `BR-CO-10`: Sum of VAT base amounts must equal invoice net total - `BR-16`: Invoice currency code must be in ISO 4217 list ### 3. French rules (FR-xx) Examples: - `FR-1`: Supplier SIRET must have 14 digits - `FR-2`: Customer SIRET must have 14 digits (if present) - `FR-5`: Intra-EU VAT number must be in format FRxx999999999 ### 4. Calculation rules (CR-xx) - Net + VAT = Gross amounts - Sum of lines = Document total - Discounts and surcharges correctly applied - Compliant rounding (2 decimals for amounts) ### 5. Standardized codes (CL-xx) - ISO 3166-1 alpha-2 country codes - ISO 4217 currency codes - UN/ECE Rec 20 measurement units - VAT codes (types, categories, exemptions) - SchemeID for identifiers (0002=SIREN, 0009=SIRET, etc.) ## Validation process 1. **XSLT loading**: Schematron file converted to XSLT (Saxon-HE) 2. **Transformation**: Rules applied to XML 3. **Results analysis**: Extraction of errors (`failed-assert`) and warnings (`successful-report`) 4. **Report**: Structured list of non-conformities ## Responses **200 OK**: Compliant XML ```json { \"message\": \"XML is compliant with EN16931 profile\" } ``` **400 Bad Request**: Non-compliant XML ```json { \"detail\": [ \"[BR-1] Invoice total (120.00) does not match calculated sum (100.00 + 20.00)\", \"[FR-1] Supplier SIRET must contain exactly 14 digits\" ] } ``` ## Use cases - **Pre-validation**: Verify XML before PDF/A integration - **Debugging**: Precisely identify generation errors - **Testing**: Validate test or example XMLs - **Compliance**: Ensure European and French rules are met - **Development**: Quick testing without PDF generation ## Processing time - MINIMUM profile: ~0.5 second - EN16931 profile: ~1-2 seconds - EXTENDED profile: ~2-3 seconds
1000
+ * @summary Validate an existing Factur-X XML
1001
+ * @param {File} xmlFile Factur-X XML file to validate (.xml format).
1002
+ * @param {APIProfile} [profile] Validation profile (MINIMUM, BASIC, EN16931, EXTENDED).
1003
+ * @param {*} [options] Override http request option.
1004
+ * @throws {RequiredError}
1005
+ */
1006
+ validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, options) {
1007
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, options).then((request) => request(this.axios, this.basePath));
1008
+ }
1009
+ }
1010
+ exports.InvoiceProcessingApi = InvoiceProcessingApi;