@factpulse/sdk 3.0.9 → 3.0.13

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 (1672) hide show
  1. package/.openapi-generator/FILES +282 -8
  2. package/CHANGELOG.md +3 -3
  3. package/LICENSE +1 -1
  4. package/api/afnorpdppaapi.ts +10 -10
  5. package/api/afnorpdppadirectory-service-api.ts +560 -284
  6. package/api/afnorpdppaflow-service-api.ts +96 -43
  7. package/api/chorus-pro-api.ts +12 -10
  8. package/api/document-conversion-api.ts +34 -122
  9. package/api/downloads-api.ts +360 -0
  10. package/api/ereporting-api.ts +927 -0
  11. package/api/health-api.ts +2 -2
  12. package/api/invoice-processing-api.ts +158 -68
  13. package/api/pdfxmlverification-api.ts +64 -32
  14. package/api/user-api.ts +2 -2
  15. package/api.ts +4 -2
  16. package/base.ts +3 -3
  17. package/common.ts +17 -4
  18. package/configuration.ts +2 -2
  19. package/dist/api/afnorpdppaapi.d.ts +10 -10
  20. package/dist/api/afnorpdppaapi.js +10 -10
  21. package/dist/api/afnorpdppadirectory-service-api.d.ts +359 -229
  22. package/dist/api/afnorpdppadirectory-service-api.js +519 -280
  23. package/dist/api/afnorpdppaflow-service-api.d.ts +54 -33
  24. package/dist/api/afnorpdppaflow-service-api.js +76 -40
  25. package/dist/api/chorus-pro-api.d.ts +10 -10
  26. package/dist/api/chorus-pro-api.js +10 -10
  27. package/dist/api/document-conversion-api.d.ts +26 -62
  28. package/dist/api/document-conversion-api.js +32 -113
  29. package/dist/api/downloads-api.d.ts +170 -0
  30. package/dist/api/downloads-api.js +356 -0
  31. package/dist/api/ereporting-api.d.ts +443 -0
  32. package/dist/api/ereporting-api.js +878 -0
  33. package/dist/api/health-api.d.ts +2 -2
  34. package/dist/api/health-api.js +2 -2
  35. package/dist/api/invoice-processing-api.d.ts +94 -50
  36. package/dist/api/invoice-processing-api.js +145 -68
  37. package/dist/api/pdfxmlverification-api.d.ts +42 -26
  38. package/dist/api/pdfxmlverification-api.js +60 -32
  39. package/dist/api/user-api.d.ts +2 -2
  40. package/dist/api/user-api.js +2 -2
  41. package/dist/api.d.ts +4 -2
  42. package/dist/api.js +4 -2
  43. package/dist/base.d.ts +2 -2
  44. package/dist/base.js +3 -3
  45. package/dist/common.d.ts +8 -2
  46. package/dist/common.js +19 -5
  47. package/dist/configuration.d.ts +2 -2
  48. package/dist/configuration.js +2 -2
  49. package/dist/esm/api/afnorpdppaapi.d.ts +10 -10
  50. package/dist/esm/api/afnorpdppaapi.js +10 -10
  51. package/dist/esm/api/afnorpdppadirectory-service-api.d.ts +359 -229
  52. package/dist/esm/api/afnorpdppadirectory-service-api.js +520 -281
  53. package/dist/esm/api/afnorpdppaflow-service-api.d.ts +54 -33
  54. package/dist/esm/api/afnorpdppaflow-service-api.js +77 -41
  55. package/dist/esm/api/chorus-pro-api.d.ts +10 -10
  56. package/dist/esm/api/chorus-pro-api.js +10 -10
  57. package/dist/esm/api/document-conversion-api.d.ts +26 -62
  58. package/dist/esm/api/document-conversion-api.js +32 -113
  59. package/dist/esm/api/downloads-api.d.ts +170 -0
  60. package/dist/esm/api/downloads-api.js +346 -0
  61. package/dist/esm/api/ereporting-api.d.ts +443 -0
  62. package/dist/esm/api/ereporting-api.js +868 -0
  63. package/dist/esm/api/health-api.d.ts +2 -2
  64. package/dist/esm/api/health-api.js +2 -2
  65. package/dist/esm/api/invoice-processing-api.d.ts +94 -50
  66. package/dist/esm/api/invoice-processing-api.js +145 -68
  67. package/dist/esm/api/pdfxmlverification-api.d.ts +42 -26
  68. package/dist/esm/api/pdfxmlverification-api.js +60 -32
  69. package/dist/esm/api/user-api.d.ts +2 -2
  70. package/dist/esm/api/user-api.js +2 -2
  71. package/dist/esm/api.d.ts +4 -2
  72. package/dist/esm/api.js +4 -2
  73. package/dist/esm/base.d.ts +2 -2
  74. package/dist/esm/base.js +3 -3
  75. package/dist/esm/common.d.ts +8 -2
  76. package/dist/esm/common.js +17 -4
  77. package/dist/esm/configuration.d.ts +2 -2
  78. package/dist/esm/configuration.js +2 -2
  79. package/dist/esm/index.d.ts +2 -2
  80. package/dist/esm/index.js +2 -2
  81. package/dist/esm/models/accept-language.d.ts +19 -0
  82. package/dist/esm/models/accept-language.js +20 -0
  83. package/dist/esm/models/acknowledgment-status.d.ts +2 -2
  84. package/dist/esm/models/acknowledgment-status.js +2 -2
  85. package/dist/esm/models/additional-document.d.ts +2 -2
  86. package/dist/esm/models/additional-document.js +2 -2
  87. package/dist/esm/models/afnoracknowledgement-detail.d.ts +26 -0
  88. package/dist/esm/models/afnoracknowledgement-detail.js +17 -0
  89. package/dist/esm/models/afnoracknowledgement.d.ts +17 -0
  90. package/dist/esm/models/afnoracknowledgement.js +14 -0
  91. package/dist/esm/models/afnoraddress-edit.d.ts +44 -0
  92. package/dist/esm/models/afnoraddress-edit.js +14 -0
  93. package/dist/esm/models/afnoraddress-patch.d.ts +44 -0
  94. package/dist/esm/models/afnoraddress-patch.js +14 -0
  95. package/dist/esm/models/afnoraddress-put.d.ts +44 -0
  96. package/dist/esm/models/afnoraddress-put.js +14 -0
  97. package/dist/esm/models/afnoraddress-read.d.ts +48 -0
  98. package/dist/esm/models/afnoraddress-read.js +14 -0
  99. package/dist/esm/models/afnoralgorithm.d.ts +19 -0
  100. package/dist/esm/models/afnoralgorithm.js +20 -0
  101. package/dist/esm/models/afnorcontains-operator.d.ts +18 -0
  102. package/dist/esm/models/afnorcontains-operator.js +19 -0
  103. package/dist/esm/models/afnorcreate-directory-line-body-addressing-information.d.ts +29 -0
  104. package/dist/esm/models/afnorcreate-directory-line-body-addressing-information.js +14 -0
  105. package/dist/esm/models/afnorcreate-directory-line-body-period.d.ts +21 -0
  106. package/dist/esm/models/afnorcreate-directory-line-body-period.js +14 -0
  107. package/dist/esm/models/afnorcreate-directory-line-body.d.ts +17 -0
  108. package/dist/esm/models/afnorcreate-directory-line-body.js +14 -0
  109. package/dist/esm/models/afnorcreate-routing-code-body.d.ts +39 -0
  110. package/dist/esm/models/afnorcreate-routing-code-body.js +14 -0
  111. package/dist/esm/models/afnorcredentials.d.ts +2 -2
  112. package/dist/esm/models/afnorcredentials.js +2 -2
  113. package/dist/esm/models/afnordestination.d.ts +7 -10
  114. package/dist/esm/models/afnordestination.js +2 -7
  115. package/dist/esm/models/afnordiffusion-status.d.ts +19 -0
  116. package/dist/esm/models/afnordiffusion-status.js +20 -0
  117. package/dist/esm/models/afnordirectory-line-field.d.ts +23 -0
  118. package/dist/esm/models/afnordirectory-line-field.js +24 -0
  119. package/dist/esm/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code-platform.d.ts +17 -0
  120. package/dist/esm/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code-platform.js +14 -0
  121. package/dist/esm/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code-routing-code.d.ts +33 -0
  122. package/dist/esm/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code-routing-code.js +14 -0
  123. package/dist/esm/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code.d.ts +37 -0
  124. package/dist/esm/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code.js +14 -0
  125. package/dist/esm/models/afnordirectory-line-post201-response.d.ts +25 -0
  126. package/dist/esm/models/afnordirectory-line-post201-response.js +14 -0
  127. package/dist/esm/models/afnordirectory-line-search-post200-response.d.ts +21 -0
  128. package/dist/esm/models/afnordirectory-line-search-post200-response.js +14 -0
  129. package/dist/esm/models/afnorentity-type.d.ts +19 -0
  130. package/dist/esm/models/afnorentity-type.js +20 -0
  131. package/dist/esm/models/afnorerror.d.ts +21 -0
  132. package/dist/esm/models/afnorerror.js +14 -0
  133. package/dist/esm/models/afnorfacility-administrative-status.d.ts +19 -0
  134. package/dist/esm/models/afnorfacility-administrative-status.js +20 -0
  135. package/dist/esm/models/afnorfacility-nature.d.ts +19 -0
  136. package/dist/esm/models/afnorfacility-nature.js +20 -0
  137. package/dist/esm/models/afnorfacility-payload-history-ule-b2g-additional-data.d.ts +37 -0
  138. package/dist/esm/models/afnorfacility-payload-history-ule-b2g-additional-data.js +14 -0
  139. package/dist/esm/models/afnorfacility-payload-history.d.ts +37 -0
  140. package/dist/esm/models/afnorfacility-payload-history.js +14 -0
  141. package/dist/esm/models/afnorfacility-payload-included.d.ts +35 -0
  142. package/dist/esm/models/afnorfacility-payload-included.js +14 -0
  143. package/dist/esm/models/afnorfacility-type.d.ts +19 -0
  144. package/dist/esm/models/afnorfacility-type.js +20 -0
  145. package/dist/esm/models/afnorflow-ack-status.d.ts +20 -0
  146. package/dist/esm/models/afnorflow-ack-status.js +21 -0
  147. package/dist/esm/models/afnorflow-direction.d.ts +19 -0
  148. package/dist/esm/models/afnorflow-direction.js +20 -0
  149. package/dist/esm/models/afnorflow-info.d.ts +31 -0
  150. package/dist/esm/models/afnorflow-info.js +14 -0
  151. package/dist/esm/models/afnorflow-profile.d.ts +17 -0
  152. package/dist/esm/models/afnorflow-profile.js +18 -0
  153. package/dist/esm/models/afnorflow-syntax.d.ts +22 -0
  154. package/dist/esm/models/afnorflow-syntax.js +23 -0
  155. package/dist/esm/models/afnorflow-type.d.ts +30 -0
  156. package/dist/esm/models/afnorflow-type.js +31 -0
  157. package/dist/esm/models/afnorflow.d.ts +53 -0
  158. package/dist/esm/models/afnorflow.js +17 -0
  159. package/dist/esm/models/afnorfull-flow-info.d.ts +17 -0
  160. package/dist/esm/models/afnorfull-flow-info.js +14 -0
  161. package/dist/esm/models/afnorhealth-check-response.d.ts +2 -2
  162. package/dist/esm/models/afnorhealth-check-response.js +2 -2
  163. package/dist/esm/models/afnorlegal-unit-administrative-status.d.ts +19 -0
  164. package/dist/esm/models/afnorlegal-unit-administrative-status.js +20 -0
  165. package/dist/esm/models/afnorlegal-unit-payload-history.d.ts +25 -0
  166. package/dist/esm/models/afnorlegal-unit-payload-history.js +14 -0
  167. package/dist/esm/models/afnorlegal-unit-payload-included-no-siren.d.ts +21 -0
  168. package/dist/esm/models/afnorlegal-unit-payload-included-no-siren.js +14 -0
  169. package/dist/esm/models/afnorlegal-unit-payload-included.d.ts +25 -0
  170. package/dist/esm/models/afnorlegal-unit-payload-included.js +14 -0
  171. package/dist/esm/models/afnorplatform-status.d.ts +19 -0
  172. package/dist/esm/models/afnorplatform-status.js +20 -0
  173. package/dist/esm/models/afnorprocessing-rule.d.ts +23 -0
  174. package/dist/esm/models/afnorprocessing-rule.js +24 -0
  175. package/dist/esm/models/afnorreason-code-enum.d.ts +32 -0
  176. package/dist/esm/models/afnorreason-code-enum.js +33 -0
  177. package/dist/esm/models/afnorreason-code.d.ts +17 -0
  178. package/dist/esm/models/afnorreason-code.js +14 -0
  179. package/dist/esm/models/afnorrecipient-platform-type.d.ts +19 -0
  180. package/dist/esm/models/afnorrecipient-platform-type.js +20 -0
  181. package/dist/esm/models/afnorresult.d.ts +5 -2
  182. package/dist/esm/models/afnorresult.js +2 -2
  183. package/dist/esm/models/afnorrouting-code-administrative-status.d.ts +19 -0
  184. package/dist/esm/models/afnorrouting-code-administrative-status.js +20 -0
  185. package/dist/esm/models/afnorrouting-code-field.d.ts +25 -0
  186. package/dist/esm/models/afnorrouting-code-field.js +26 -0
  187. package/dist/esm/models/afnorrouting-code-payload-history-legal-unit-facility.d.ts +41 -0
  188. package/dist/esm/models/afnorrouting-code-payload-history-legal-unit-facility.js +14 -0
  189. package/dist/esm/models/afnorrouting-code-post201-response.d.ts +25 -0
  190. package/dist/esm/models/afnorrouting-code-post201-response.js +14 -0
  191. package/dist/esm/models/afnorrouting-code-search-filters-administrative-status.d.ts +17 -0
  192. package/dist/esm/models/afnorrouting-code-search-filters-administrative-status.js +14 -0
  193. package/dist/esm/models/afnorrouting-code-search-filters-routing-code-name.d.ts +19 -0
  194. package/dist/esm/models/afnorrouting-code-search-filters-routing-code-name.js +14 -0
  195. package/dist/esm/models/afnorrouting-code-search-filters-routing-identifier.d.ts +19 -0
  196. package/dist/esm/models/afnorrouting-code-search-filters-routing-identifier.js +14 -0
  197. package/dist/esm/models/afnorrouting-code-search-filters.d.ts +27 -0
  198. package/dist/esm/models/afnorrouting-code-search-filters.js +14 -0
  199. package/dist/esm/models/afnorrouting-code-search-post200-response.d.ts +21 -0
  200. package/dist/esm/models/afnorrouting-code-search-post200-response.js +14 -0
  201. package/dist/esm/models/afnorrouting-code-search-sorting-inner.d.ts +20 -0
  202. package/dist/esm/models/afnorrouting-code-search-sorting-inner.js +14 -0
  203. package/dist/esm/models/afnorrouting-code-search.d.ts +39 -0
  204. package/dist/esm/models/afnorrouting-code-search.js +17 -0
  205. package/dist/esm/models/afnorsearch-directory-line-filters-addressing-identifier.d.ts +19 -0
  206. package/dist/esm/models/afnorsearch-directory-line-filters-addressing-identifier.js +14 -0
  207. package/dist/esm/models/afnorsearch-directory-line-filters-addressing-suffix.d.ts +19 -0
  208. package/dist/esm/models/afnorsearch-directory-line-filters-addressing-suffix.js +14 -0
  209. package/dist/esm/models/afnorsearch-directory-line-filters.d.ts +23 -0
  210. package/dist/esm/models/afnorsearch-directory-line-filters.js +14 -0
  211. package/dist/esm/models/afnorsearch-directory-line-sorting-inner.d.ts +20 -0
  212. package/dist/esm/models/afnorsearch-directory-line-sorting-inner.js +14 -0
  213. package/dist/esm/models/afnorsearch-directory-line.d.ts +33 -0
  214. package/dist/esm/models/afnorsearch-directory-line.js +14 -0
  215. package/dist/esm/models/afnorsearch-flow-content.d.ts +21 -0
  216. package/dist/esm/models/afnorsearch-flow-content.js +14 -0
  217. package/dist/esm/models/afnorsearch-flow-filters.d.ts +30 -0
  218. package/dist/esm/models/afnorsearch-flow-filters.js +14 -0
  219. package/dist/esm/models/afnorsearch-flow-params.d.ts +19 -0
  220. package/dist/esm/models/afnorsearch-flow-params.js +14 -0
  221. package/dist/esm/models/afnorsearch-siren-filters-administrative-status.d.ts +17 -0
  222. package/dist/esm/models/afnorsearch-siren-filters-administrative-status.js +14 -0
  223. package/dist/esm/models/afnorsearch-siren-filters-business-name.d.ts +19 -0
  224. package/dist/esm/models/afnorsearch-siren-filters-business-name.js +14 -0
  225. package/dist/esm/models/afnorsearch-siren-filters-entity-type.d.ts +17 -0
  226. package/dist/esm/models/afnorsearch-siren-filters-entity-type.js +14 -0
  227. package/dist/esm/models/afnorsearch-siren-filters-siren.d.ts +19 -0
  228. package/dist/esm/models/afnorsearch-siren-filters-siren.js +14 -0
  229. package/dist/esm/models/afnorsearch-siren-filters.d.ts +21 -0
  230. package/dist/esm/models/afnorsearch-siren-filters.js +14 -0
  231. package/dist/esm/models/afnorsearch-siren-sorting-inner.d.ts +20 -0
  232. package/dist/esm/models/afnorsearch-siren-sorting-inner.js +14 -0
  233. package/dist/esm/models/afnorsearch-siren.d.ts +33 -0
  234. package/dist/esm/models/afnorsearch-siren.js +14 -0
  235. package/dist/esm/models/afnorsearch-siret-filters-address-lines.d.ts +19 -0
  236. package/dist/esm/models/afnorsearch-siret-filters-address-lines.js +14 -0
  237. package/dist/esm/models/afnorsearch-siret-filters-administrative-status.d.ts +17 -0
  238. package/dist/esm/models/afnorsearch-siret-filters-administrative-status.js +14 -0
  239. package/dist/esm/models/afnorsearch-siret-filters-country-subdivision.d.ts +19 -0
  240. package/dist/esm/models/afnorsearch-siret-filters-country-subdivision.js +14 -0
  241. package/dist/esm/models/afnorsearch-siret-filters-facility-type.d.ts +17 -0
  242. package/dist/esm/models/afnorsearch-siret-filters-facility-type.js +14 -0
  243. package/dist/esm/models/afnorsearch-siret-filters-locality.d.ts +19 -0
  244. package/dist/esm/models/afnorsearch-siret-filters-locality.js +14 -0
  245. package/dist/esm/models/afnorsearch-siret-filters-name.d.ts +19 -0
  246. package/dist/esm/models/afnorsearch-siret-filters-name.js +14 -0
  247. package/dist/esm/models/afnorsearch-siret-filters-postal-code.d.ts +19 -0
  248. package/dist/esm/models/afnorsearch-siret-filters-postal-code.js +14 -0
  249. package/dist/esm/models/afnorsearch-siret-filters-siret.d.ts +19 -0
  250. package/dist/esm/models/afnorsearch-siret-filters-siret.js +14 -0
  251. package/dist/esm/models/afnorsearch-siret-filters.d.ts +31 -0
  252. package/dist/esm/models/afnorsearch-siret-filters.js +14 -0
  253. package/dist/esm/models/afnorsearch-siret-sorting-inner.d.ts +20 -0
  254. package/dist/esm/models/afnorsearch-siret-sorting-inner.js +14 -0
  255. package/dist/esm/models/afnorsearch-siret.d.ts +38 -0
  256. package/dist/esm/models/afnorsearch-siret.js +16 -0
  257. package/dist/esm/models/afnorsiren-field.d.ts +22 -0
  258. package/dist/esm/models/afnorsiren-field.js +23 -0
  259. package/dist/esm/models/afnorsiren-search-post200-response.d.ts +21 -0
  260. package/dist/esm/models/afnorsiren-search-post200-response.js +14 -0
  261. package/dist/esm/models/afnorsiret-field.d.ts +31 -0
  262. package/dist/esm/models/afnorsiret-field.js +32 -0
  263. package/dist/esm/models/afnorsiret-search-post200-response.d.ts +21 -0
  264. package/dist/esm/models/afnorsiret-search-post200-response.js +14 -0
  265. package/dist/esm/models/afnorsorting-order.d.ts +19 -0
  266. package/dist/esm/models/afnorsorting-order.js +20 -0
  267. package/dist/esm/models/afnorstrict-operator.d.ts +18 -0
  268. package/dist/esm/models/afnorstrict-operator.js +19 -0
  269. package/dist/esm/models/afnorupdate-patch-directory-line-body.d.ts +17 -0
  270. package/dist/esm/models/afnorupdate-patch-directory-line-body.js +14 -0
  271. package/dist/esm/models/afnorupdate-patch-routing-code-body.d.ts +25 -0
  272. package/dist/esm/models/afnorupdate-patch-routing-code-body.js +14 -0
  273. package/dist/esm/models/afnorupdate-put-routing-code-body.d.ts +25 -0
  274. package/dist/esm/models/afnorupdate-put-routing-code-body.js +14 -0
  275. package/dist/esm/models/afnorwebhook-callback-content.d.ts +18 -0
  276. package/dist/esm/models/afnorwebhook-callback-content.js +14 -0
  277. package/dist/esm/models/aggregated-payment-input.d.ts +27 -0
  278. package/dist/esm/models/aggregated-payment-input.js +14 -0
  279. package/dist/esm/models/aggregated-transaction-input.d.ts +39 -0
  280. package/dist/esm/models/aggregated-transaction-input.js +14 -0
  281. package/dist/esm/models/allowance-charge-reason-code.d.ts +55 -0
  282. package/dist/esm/models/allowance-charge-reason-code.js +56 -0
  283. package/dist/esm/models/allowance-charge.d.ts +8 -6
  284. package/dist/esm/models/allowance-charge.js +2 -2
  285. package/dist/esm/models/allowance-reason-code.d.ts +2 -2
  286. package/dist/esm/models/allowance-reason-code.js +2 -2
  287. package/dist/esm/models/allowance-total-amount.d.ts +2 -2
  288. package/dist/esm/models/allowance-total-amount.js +2 -2
  289. package/dist/esm/models/amount-due.d.ts +2 -2
  290. package/dist/esm/models/amount-due.js +2 -2
  291. package/dist/esm/models/amount.d.ts +3 -3
  292. package/dist/esm/models/amount.js +2 -2
  293. package/dist/esm/models/amount1.d.ts +16 -0
  294. package/dist/esm/models/amount1.js +14 -0
  295. package/dist/esm/models/apierror.d.ts +2 -2
  296. package/dist/esm/models/apierror.js +2 -2
  297. package/dist/esm/models/apiprofile.d.ts +3 -2
  298. package/dist/esm/models/apiprofile.js +3 -2
  299. package/dist/esm/models/async-task-status.d.ts +2 -2
  300. package/dist/esm/models/async-task-status.js +2 -2
  301. package/dist/esm/models/base-amount.d.ts +2 -2
  302. package/dist/esm/models/base-amount.js +2 -2
  303. package/dist/esm/models/bounding-box-schema.d.ts +2 -2
  304. package/dist/esm/models/bounding-box-schema.js +2 -2
  305. package/dist/esm/models/buyercountry.d.ts +16 -0
  306. package/dist/esm/models/buyercountry.js +14 -0
  307. package/dist/esm/models/celery-status.d.ts +2 -2
  308. package/dist/esm/models/celery-status.js +2 -2
  309. package/dist/esm/models/certificate-info-response.d.ts +2 -2
  310. package/dist/esm/models/certificate-info-response.js +2 -2
  311. package/dist/esm/models/charge-total-amount.d.ts +2 -2
  312. package/dist/esm/models/charge-total-amount.js +2 -2
  313. package/dist/esm/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.d.ts → chorus-pro-credentials.d.ts} +3 -3
  314. package/dist/esm/models/chorus-pro-credentials.js +14 -0
  315. package/dist/esm/models/chorus-pro-destination.d.ts +2 -2
  316. package/dist/esm/models/chorus-pro-destination.js +2 -2
  317. package/dist/esm/models/chorus-pro-result.d.ts +2 -2
  318. package/dist/esm/models/chorus-pro-result.js +2 -2
  319. package/dist/esm/models/contact.d.ts +2 -2
  320. package/dist/esm/models/contact.js +2 -2
  321. package/dist/esm/models/convert-resume-request.d.ts +2 -2
  322. package/dist/esm/models/convert-resume-request.js +2 -2
  323. package/dist/esm/models/convert-success-response.d.ts +2 -2
  324. package/dist/esm/models/convert-success-response.js +2 -2
  325. package/dist/esm/models/convert-validation-failed-response.d.ts +17 -2
  326. package/dist/esm/models/convert-validation-failed-response.js +2 -2
  327. package/dist/esm/models/country-code.d.ts +187 -0
  328. package/dist/esm/models/country-code.js +188 -0
  329. package/dist/esm/models/create-aggregated-report-request.d.ts +44 -0
  330. package/dist/esm/models/create-aggregated-report-request.js +14 -0
  331. package/dist/esm/models/create-ereporting-request.d.ts +49 -0
  332. package/dist/esm/models/create-ereporting-request.js +14 -0
  333. package/dist/esm/models/currency-code.d.ts +70 -0
  334. package/dist/esm/models/currency-code.js +71 -0
  335. package/dist/esm/models/currency.d.ts +16 -0
  336. package/dist/esm/models/currency.js +14 -0
  337. package/dist/esm/models/delivery-party.d.ts +2 -2
  338. package/dist/esm/models/delivery-party.js +2 -2
  339. package/dist/esm/models/destination.d.ts +2 -2
  340. package/dist/esm/models/destination.js +2 -2
  341. package/dist/esm/models/directory-line-include.d.ts +21 -0
  342. package/dist/esm/models/directory-line-include.js +22 -0
  343. package/dist/esm/models/doc-type.d.ts +21 -0
  344. package/dist/esm/models/doc-type.js +22 -0
  345. package/dist/esm/models/document-type-info.d.ts +2 -2
  346. package/dist/esm/models/document-type-info.js +2 -2
  347. package/dist/esm/models/electronic-address.d.ts +8 -2
  348. package/dist/esm/models/electronic-address.js +2 -2
  349. package/dist/esm/models/enriched-invoice-info.d.ts +20 -2
  350. package/dist/esm/models/enriched-invoice-info.js +2 -2
  351. package/dist/esm/models/ereporting-flow-type.d.ts +21 -0
  352. package/dist/esm/models/ereporting-flow-type.js +22 -0
  353. package/dist/esm/models/error-level.d.ts +2 -2
  354. package/dist/esm/models/error-level.js +2 -2
  355. package/dist/esm/models/error-source.d.ts +2 -2
  356. package/dist/esm/models/error-source.js +2 -2
  357. package/dist/esm/models/extraction-info.d.ts +2 -2
  358. package/dist/esm/models/extraction-info.js +2 -2
  359. package/dist/esm/models/factur-xinvoice.d.ts +2 -2
  360. package/dist/esm/models/factur-xinvoice.js +2 -2
  361. package/dist/esm/models/factur-xpdfinfo.d.ts +2 -2
  362. package/dist/esm/models/factur-xpdfinfo.js +2 -2
  363. package/dist/esm/models/facture-electronique-models-invoice-type-code.d.ts +81 -0
  364. package/dist/esm/models/facture-electronique-models-invoice-type-code.js +82 -0
  365. package/dist/esm/models/facture-electronique-rest-api-schemas-convert-validation-error.d.ts +33 -0
  366. package/dist/esm/models/facture-electronique-rest-api-schemas-convert-validation-error.js +14 -0
  367. package/dist/esm/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.d.ts +2 -2
  368. package/dist/esm/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.js +2 -2
  369. package/dist/esm/models/field-status.d.ts +2 -2
  370. package/dist/esm/models/field-status.js +2 -2
  371. package/dist/esm/models/file-info.d.ts +2 -2
  372. package/dist/esm/models/file-info.js +2 -2
  373. package/dist/esm/models/files-info.d.ts +2 -2
  374. package/dist/esm/models/files-info.js +2 -2
  375. package/dist/esm/models/flow-direction.d.ts +2 -2
  376. package/dist/esm/models/flow-direction.js +2 -2
  377. package/dist/esm/models/flow-profile.d.ts +2 -2
  378. package/dist/esm/models/flow-profile.js +2 -2
  379. package/dist/esm/models/flow-summary.d.ts +8 -2
  380. package/dist/esm/models/flow-summary.js +2 -2
  381. package/dist/esm/models/flow-syntax.d.ts +2 -2
  382. package/dist/esm/models/flow-syntax.js +2 -2
  383. package/dist/esm/models/flow-type.d.ts +12 -4
  384. package/dist/esm/models/flow-type.js +12 -4
  385. package/dist/esm/models/generate-aggregated-report-response.d.ts +46 -0
  386. package/dist/esm/models/generate-aggregated-report-response.js +14 -0
  387. package/dist/esm/models/generate-certificate-request.d.ts +2 -2
  388. package/dist/esm/models/generate-certificate-request.js +2 -2
  389. package/dist/esm/models/generate-certificate-response.d.ts +2 -2
  390. package/dist/esm/models/generate-certificate-response.js +2 -2
  391. package/dist/esm/models/generate-ereporting-response.d.ts +36 -0
  392. package/dist/esm/models/generate-ereporting-response.js +14 -0
  393. package/dist/esm/models/get-chorus-pro-id-request.d.ts +4 -4
  394. package/dist/esm/models/get-chorus-pro-id-request.js +2 -2
  395. package/dist/esm/models/get-chorus-pro-id-response.d.ts +2 -2
  396. package/dist/esm/models/get-chorus-pro-id-response.js +2 -2
  397. package/dist/esm/models/get-invoice-request.d.ts +4 -4
  398. package/dist/esm/models/get-invoice-request.js +2 -2
  399. package/dist/esm/models/get-invoice-response.d.ts +8 -2
  400. package/dist/esm/models/get-invoice-response.js +2 -2
  401. package/dist/esm/models/get-structure-request.d.ts +4 -4
  402. package/dist/esm/models/get-structure-request.js +2 -2
  403. package/dist/esm/models/get-structure-response.d.ts +8 -2
  404. package/dist/esm/models/get-structure-response.js +2 -2
  405. package/dist/esm/models/global-allowance-amount.d.ts +2 -2
  406. package/dist/esm/models/global-allowance-amount.js +2 -2
  407. package/dist/esm/models/gross-unit-price.d.ts +2 -2
  408. package/dist/esm/models/gross-unit-price.js +2 -2
  409. package/dist/esm/models/httpvalidation-error.d.ts +2 -2
  410. package/dist/esm/models/httpvalidation-error.js +2 -2
  411. package/dist/esm/models/incoming-invoice.d.ts +4 -4
  412. package/dist/esm/models/incoming-invoice.js +2 -2
  413. package/dist/esm/models/incoming-supplier.d.ts +2 -2
  414. package/dist/esm/models/incoming-supplier.js +2 -2
  415. package/dist/esm/models/index.d.ts +139 -4
  416. package/dist/esm/models/index.js +139 -4
  417. package/dist/esm/models/invoice-format.d.ts +2 -2
  418. package/dist/esm/models/invoice-format.js +2 -2
  419. package/dist/esm/models/invoice-input.d.ts +54 -0
  420. package/dist/esm/models/invoice-input.js +14 -0
  421. package/dist/esm/models/invoice-line-allowance-amount.d.ts +2 -2
  422. package/dist/esm/models/invoice-line-allowance-amount.js +2 -2
  423. package/dist/esm/models/invoice-line.d.ts +5 -2
  424. package/dist/esm/models/invoice-line.js +2 -2
  425. package/dist/esm/models/invoice-note.d.ts +5 -2
  426. package/dist/esm/models/invoice-note.js +2 -2
  427. package/dist/esm/models/invoice-payment-input.d.ts +35 -0
  428. package/dist/esm/models/invoice-payment-input.js +14 -0
  429. package/dist/esm/models/invoice-references.d.ts +2 -2
  430. package/dist/esm/models/invoice-references.js +2 -2
  431. package/dist/esm/models/invoice-status.d.ts +2 -2
  432. package/dist/esm/models/invoice-status.js +2 -2
  433. package/dist/esm/models/invoice-totals-prepayment.d.ts +2 -2
  434. package/dist/esm/models/invoice-totals-prepayment.js +2 -2
  435. package/dist/esm/models/invoice-totals.d.ts +2 -2
  436. package/dist/esm/models/invoice-totals.js +2 -2
  437. package/dist/esm/models/invoice-type-code-output.d.ts +81 -0
  438. package/dist/esm/models/invoice-type-code-output.js +82 -0
  439. package/dist/esm/models/invoice-type-code.d.ts +8 -67
  440. package/dist/esm/models/invoice-type-code.js +8 -67
  441. package/dist/esm/models/invoicing-framework-code.d.ts +2 -2
  442. package/dist/esm/models/invoicing-framework-code.js +2 -2
  443. package/dist/esm/models/invoicing-framework.d.ts +5 -2
  444. package/dist/esm/models/invoicing-framework.js +2 -2
  445. package/dist/esm/models/line-net-amount.d.ts +2 -2
  446. package/dist/esm/models/line-net-amount.js +2 -2
  447. package/dist/esm/models/line-sub-type.d.ts +20 -0
  448. package/dist/esm/models/line-sub-type.js +21 -0
  449. package/dist/esm/models/line-total-amount.d.ts +2 -2
  450. package/dist/esm/models/line-total-amount.js +2 -2
  451. package/dist/esm/models/location-inner.d.ts +13 -0
  452. package/dist/esm/models/location-inner.js +14 -0
  453. package/dist/esm/models/mandatory-note-schema.d.ts +2 -2
  454. package/dist/esm/models/mandatory-note-schema.js +2 -2
  455. package/dist/esm/models/manual-rate.d.ts +2 -2
  456. package/dist/esm/models/manual-rate.js +2 -2
  457. package/dist/esm/models/manual-vat-rate.d.ts +2 -2
  458. package/dist/esm/models/manual-vat-rate.js +2 -2
  459. package/dist/esm/models/missing-field.d.ts +2 -2
  460. package/dist/esm/models/missing-field.js +2 -2
  461. package/dist/esm/models/operation-nature.d.ts +2 -2
  462. package/dist/esm/models/operation-nature.js +2 -2
  463. package/dist/esm/models/output-format.d.ts +2 -2
  464. package/dist/esm/models/output-format.js +2 -2
  465. package/dist/esm/models/page-dimensions-schema.d.ts +2 -2
  466. package/dist/esm/models/page-dimensions-schema.js +2 -2
  467. package/dist/esm/models/payee.d.ts +2 -2
  468. package/dist/esm/models/payee.js +2 -2
  469. package/dist/esm/models/payment-amount-by-rate.d.ts +20 -0
  470. package/dist/esm/models/payment-amount-by-rate.js +14 -0
  471. package/dist/esm/models/payment-card.d.ts +2 -2
  472. package/dist/esm/models/payment-card.js +2 -2
  473. package/dist/esm/models/payment-means.d.ts +2 -2
  474. package/dist/esm/models/payment-means.js +2 -2
  475. package/dist/esm/models/pdfvalidation-result-api.d.ts +2 -2
  476. package/dist/esm/models/pdfvalidation-result-api.js +2 -2
  477. package/dist/esm/models/pdpcredentials.d.ts +2 -2
  478. package/dist/esm/models/pdpcredentials.js +2 -2
  479. package/dist/esm/models/percentage.d.ts +2 -2
  480. package/dist/esm/models/percentage.js +2 -2
  481. package/dist/esm/models/postal-address.d.ts +2 -2
  482. package/dist/esm/models/postal-address.js +2 -2
  483. package/dist/esm/models/price-allowance-amount.d.ts +2 -2
  484. package/dist/esm/models/price-allowance-amount.js +2 -2
  485. package/dist/esm/models/price-basis-quantity.d.ts +2 -2
  486. package/dist/esm/models/price-basis-quantity.js +2 -2
  487. package/dist/esm/models/processing-options.d.ts +2 -2
  488. package/dist/esm/models/processing-options.js +2 -2
  489. package/dist/esm/models/processing-rule.d.ts +23 -0
  490. package/dist/esm/models/processing-rule.js +24 -0
  491. package/dist/esm/models/product-characteristic.d.ts +2 -2
  492. package/dist/esm/models/product-characteristic.js +2 -2
  493. package/dist/esm/models/product-classification.d.ts +2 -2
  494. package/dist/esm/models/product-classification.js +2 -2
  495. package/dist/esm/models/quantity.d.ts +2 -2
  496. package/dist/esm/models/quantity.js +2 -2
  497. package/dist/esm/models/rate.d.ts +16 -0
  498. package/dist/esm/models/rate.js +14 -0
  499. package/dist/esm/models/rate1.d.ts +16 -0
  500. package/dist/esm/models/rate1.js +14 -0
  501. package/dist/esm/models/recipient.d.ts +2 -2
  502. package/dist/esm/models/recipient.js +2 -2
  503. package/dist/esm/models/report-period.d.ts +24 -0
  504. package/dist/esm/models/report-period.js +14 -0
  505. package/dist/esm/models/report-sender.d.ts +25 -0
  506. package/dist/esm/models/report-sender.js +14 -0
  507. package/dist/esm/models/rounding-amount.d.ts +2 -2
  508. package/dist/esm/models/rounding-amount.js +2 -2
  509. package/dist/esm/models/routing-code-include.d.ts +19 -0
  510. package/dist/esm/models/routing-code-include.js +20 -0
  511. package/dist/esm/models/scheme-id.d.ts +30 -2
  512. package/dist/esm/models/scheme-id.js +31 -3
  513. package/dist/esm/models/search-flow-request.d.ts +2 -2
  514. package/dist/esm/models/search-flow-request.js +2 -2
  515. package/dist/esm/models/search-flow-response.d.ts +2 -2
  516. package/dist/esm/models/search-flow-response.js +2 -2
  517. package/dist/esm/models/search-services-response.d.ts +11 -2
  518. package/dist/esm/models/search-services-response.js +2 -2
  519. package/dist/esm/models/search-structure-request.d.ts +4 -4
  520. package/dist/esm/models/search-structure-request.js +2 -2
  521. package/dist/esm/models/search-structure-response.d.ts +2 -2
  522. package/dist/esm/models/search-structure-response.js +2 -2
  523. package/dist/esm/models/sellercountry.d.ts +16 -0
  524. package/dist/esm/models/sellercountry.js +14 -0
  525. package/dist/esm/models/signature-info-api.d.ts +2 -2
  526. package/dist/esm/models/signature-info-api.js +2 -2
  527. package/dist/esm/models/signature-info.d.ts +2 -2
  528. package/dist/esm/models/signature-info.js +2 -2
  529. package/dist/esm/models/signature-parameters.d.ts +2 -2
  530. package/dist/esm/models/signature-parameters.js +2 -2
  531. package/dist/esm/models/simplified-invoice-data.d.ts +12 -2
  532. package/dist/esm/models/simplified-invoice-data.js +2 -2
  533. package/dist/esm/models/siret-include.d.ts +18 -0
  534. package/dist/esm/models/siret-include.js +19 -0
  535. package/dist/esm/models/structure-info.d.ts +2 -2
  536. package/dist/esm/models/structure-info.js +2 -2
  537. package/dist/esm/models/structure-parameters.d.ts +2 -2
  538. package/dist/esm/models/structure-parameters.js +2 -2
  539. package/dist/esm/models/structure-service.d.ts +2 -2
  540. package/dist/esm/models/structure-service.js +2 -2
  541. package/dist/esm/models/submission-mode.d.ts +2 -2
  542. package/dist/esm/models/submission-mode.js +2 -2
  543. package/dist/esm/models/submit-aggregated-report-request.d.ts +26 -0
  544. package/dist/esm/models/submit-aggregated-report-request.js +14 -0
  545. package/dist/esm/models/submit-complete-invoice-request.d.ts +2 -2
  546. package/dist/esm/models/submit-complete-invoice-request.js +2 -2
  547. package/dist/esm/models/submit-complete-invoice-response.d.ts +2 -2
  548. package/dist/esm/models/submit-complete-invoice-response.js +2 -2
  549. package/dist/esm/models/submit-ereporting-request.d.ts +26 -0
  550. package/dist/esm/models/submit-ereporting-request.js +14 -0
  551. package/dist/esm/models/submit-ereporting-response.d.ts +41 -0
  552. package/dist/esm/models/submit-ereporting-response.js +14 -0
  553. package/dist/esm/models/submit-flow-request.d.ts +2 -2
  554. package/dist/esm/models/submit-flow-request.js +2 -2
  555. package/dist/esm/models/submit-flow-response.d.ts +2 -2
  556. package/dist/esm/models/submit-flow-response.js +2 -2
  557. package/dist/esm/models/submit-gross-amount.d.ts +2 -2
  558. package/dist/esm/models/submit-gross-amount.js +2 -2
  559. package/dist/esm/models/submit-invoice-request.d.ts +4 -4
  560. package/dist/esm/models/submit-invoice-request.js +2 -2
  561. package/dist/esm/models/submit-invoice-response.d.ts +2 -2
  562. package/dist/esm/models/submit-invoice-response.js +2 -2
  563. package/dist/esm/models/submit-net-amount.d.ts +2 -2
  564. package/dist/esm/models/submit-net-amount.js +2 -2
  565. package/dist/esm/models/submit-vat-amount.d.ts +2 -2
  566. package/dist/esm/models/submit-vat-amount.js +2 -2
  567. package/dist/esm/models/supplementary-attachment.d.ts +17 -2
  568. package/dist/esm/models/supplementary-attachment.js +2 -2
  569. package/dist/esm/models/supplier.d.ts +2 -2
  570. package/dist/esm/models/supplier.js +2 -2
  571. package/dist/esm/models/task-response.d.ts +2 -2
  572. package/dist/esm/models/task-response.js +2 -2
  573. package/dist/esm/models/tax-breakdown-input.d.ts +22 -0
  574. package/dist/esm/models/tax-breakdown-input.js +14 -0
  575. package/dist/esm/models/tax-due-date-type.d.ts +23 -0
  576. package/dist/esm/models/tax-due-date-type.js +24 -0
  577. package/dist/esm/models/tax-representative.d.ts +2 -2
  578. package/dist/esm/models/tax-representative.js +2 -2
  579. package/dist/esm/models/taxable-amount.d.ts +2 -2
  580. package/dist/esm/models/taxable-amount.js +2 -2
  581. package/dist/esm/models/taxableamount.d.ts +16 -0
  582. package/dist/esm/models/taxableamount.js +14 -0
  583. package/dist/esm/models/taxamount.d.ts +16 -0
  584. package/dist/esm/models/taxamount.js +14 -0
  585. package/dist/esm/models/taxamount1.d.ts +16 -0
  586. package/dist/esm/models/taxamount1.js +14 -0
  587. package/dist/esm/models/taxamount2.d.ts +16 -0
  588. package/dist/esm/models/taxamount2.js +14 -0
  589. package/dist/esm/models/taxexclusiveamount.d.ts +16 -0
  590. package/dist/esm/models/taxexclusiveamount.js +14 -0
  591. package/dist/esm/models/taxexclusiveamount1.d.ts +16 -0
  592. package/dist/esm/models/taxexclusiveamount1.js +14 -0
  593. package/dist/esm/models/total-gross-amount.d.ts +2 -2
  594. package/dist/esm/models/total-gross-amount.js +2 -2
  595. package/dist/esm/models/total-net-amount.d.ts +2 -2
  596. package/dist/esm/models/total-net-amount.js +2 -2
  597. package/dist/esm/models/total-vatamount.d.ts +2 -2
  598. package/dist/esm/models/total-vatamount.js +2 -2
  599. package/dist/esm/models/transaction-category.d.ts +21 -0
  600. package/dist/esm/models/transaction-category.js +22 -0
  601. package/dist/esm/models/transmission-type-code.d.ts +19 -0
  602. package/dist/esm/models/transmission-type-code.js +20 -0
  603. package/dist/esm/models/unit-net-price.d.ts +2 -2
  604. package/dist/esm/models/unit-net-price.js +2 -2
  605. package/dist/esm/models/unit-of-measure.d.ts +2 -2
  606. package/dist/esm/models/unit-of-measure.js +2 -2
  607. package/dist/esm/models/validate-ereporting-request.d.ts +21 -0
  608. package/dist/esm/models/validate-ereporting-request.js +14 -0
  609. package/dist/esm/models/validate-ereporting-response.d.ts +41 -0
  610. package/dist/esm/models/validate-ereporting-response.js +14 -0
  611. package/dist/esm/models/validation-error-detail.d.ts +2 -2
  612. package/dist/esm/models/validation-error-detail.js +2 -2
  613. package/dist/esm/models/validation-error-response.d.ts +2 -2
  614. package/dist/esm/models/validation-error-response.js +2 -2
  615. package/dist/esm/models/validation-error.d.ts +4 -4
  616. package/dist/esm/models/validation-error.js +2 -2
  617. package/dist/esm/models/validation-info.d.ts +4 -4
  618. package/dist/esm/models/validation-info.js +2 -2
  619. package/dist/esm/models/validation-success-response.d.ts +2 -2
  620. package/dist/esm/models/validation-success-response.js +2 -2
  621. package/dist/esm/models/vat-rate.d.ts +2 -2
  622. package/dist/esm/models/vat-rate.js +2 -2
  623. package/dist/esm/models/vataccounting-code.d.ts +2 -2
  624. package/dist/esm/models/vataccounting-code.js +2 -2
  625. package/dist/esm/models/vatamount.d.ts +2 -2
  626. package/dist/esm/models/vatamount.js +2 -2
  627. package/dist/esm/models/vatcategory.d.ts +2 -2
  628. package/dist/esm/models/vatcategory.js +2 -2
  629. package/dist/esm/models/vatline.d.ts +2 -2
  630. package/dist/esm/models/vatline.js +2 -2
  631. package/dist/esm/models/vatpoint-date-code.d.ts +2 -2
  632. package/dist/esm/models/vatpoint-date-code.js +2 -2
  633. package/dist/esm/models/verification-success-response.d.ts +2 -2
  634. package/dist/esm/models/verification-success-response.js +2 -2
  635. package/dist/esm/models/verified-field-schema.d.ts +2 -2
  636. package/dist/esm/models/verified-field-schema.js +2 -2
  637. package/dist/index.d.ts +2 -2
  638. package/dist/index.js +2 -2
  639. package/dist/models/accept-language.d.ts +19 -0
  640. package/dist/models/accept-language.js +23 -0
  641. package/dist/models/acknowledgment-status.d.ts +2 -2
  642. package/dist/models/acknowledgment-status.js +2 -2
  643. package/dist/models/additional-document.d.ts +2 -2
  644. package/dist/models/additional-document.js +2 -2
  645. package/dist/models/afnoracknowledgement-detail.d.ts +26 -0
  646. package/dist/models/afnoracknowledgement-detail.js +20 -0
  647. package/dist/models/afnoracknowledgement.d.ts +17 -0
  648. package/dist/models/afnoracknowledgement.js +15 -0
  649. package/dist/models/afnoraddress-edit.d.ts +44 -0
  650. package/dist/models/afnoraddress-edit.js +15 -0
  651. package/dist/models/afnoraddress-patch.d.ts +44 -0
  652. package/dist/models/afnoraddress-patch.js +15 -0
  653. package/dist/models/afnoraddress-put.d.ts +44 -0
  654. package/dist/models/afnoraddress-put.js +15 -0
  655. package/dist/models/afnoraddress-read.d.ts +48 -0
  656. package/dist/models/afnoraddress-read.js +15 -0
  657. package/dist/models/afnoralgorithm.d.ts +19 -0
  658. package/dist/models/afnoralgorithm.js +23 -0
  659. package/dist/models/afnorcontains-operator.d.ts +18 -0
  660. package/dist/models/afnorcontains-operator.js +22 -0
  661. package/dist/models/afnorcreate-directory-line-body-addressing-information.d.ts +29 -0
  662. package/dist/models/afnorcreate-directory-line-body-addressing-information.js +15 -0
  663. package/dist/models/afnorcreate-directory-line-body-period.d.ts +21 -0
  664. package/dist/models/afnorcreate-directory-line-body-period.js +15 -0
  665. package/dist/models/afnorcreate-directory-line-body.d.ts +17 -0
  666. package/dist/models/afnorcreate-directory-line-body.js +15 -0
  667. package/dist/models/afnorcreate-routing-code-body.d.ts +39 -0
  668. package/dist/models/afnorcreate-routing-code-body.js +15 -0
  669. package/dist/models/afnorcredentials.d.ts +2 -2
  670. package/dist/models/afnorcredentials.js +2 -2
  671. package/dist/models/afnordestination.d.ts +7 -10
  672. package/dist/models/afnordestination.js +3 -8
  673. package/dist/models/afnordiffusion-status.d.ts +19 -0
  674. package/dist/models/afnordiffusion-status.js +23 -0
  675. package/dist/models/afnordirectory-line-field.d.ts +23 -0
  676. package/dist/models/afnordirectory-line-field.js +27 -0
  677. package/dist/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code-platform.d.ts +17 -0
  678. package/dist/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code-platform.js +15 -0
  679. package/dist/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code-routing-code.d.ts +33 -0
  680. package/dist/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code-routing-code.js +15 -0
  681. package/dist/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code.d.ts +37 -0
  682. package/dist/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code.js +15 -0
  683. package/dist/models/afnordirectory-line-post201-response.d.ts +25 -0
  684. package/dist/models/afnordirectory-line-post201-response.js +15 -0
  685. package/dist/models/afnordirectory-line-search-post200-response.d.ts +21 -0
  686. package/dist/models/afnordirectory-line-search-post200-response.js +15 -0
  687. package/dist/models/afnorentity-type.d.ts +19 -0
  688. package/dist/models/afnorentity-type.js +23 -0
  689. package/dist/models/afnorerror.d.ts +21 -0
  690. package/dist/models/afnorerror.js +15 -0
  691. package/dist/models/afnorfacility-administrative-status.d.ts +19 -0
  692. package/dist/models/afnorfacility-administrative-status.js +23 -0
  693. package/dist/models/afnorfacility-nature.d.ts +19 -0
  694. package/dist/models/afnorfacility-nature.js +23 -0
  695. package/dist/models/afnorfacility-payload-history-ule-b2g-additional-data.d.ts +37 -0
  696. package/dist/models/afnorfacility-payload-history-ule-b2g-additional-data.js +15 -0
  697. package/dist/models/afnorfacility-payload-history.d.ts +37 -0
  698. package/dist/models/afnorfacility-payload-history.js +15 -0
  699. package/dist/models/afnorfacility-payload-included.d.ts +35 -0
  700. package/dist/models/afnorfacility-payload-included.js +15 -0
  701. package/dist/models/afnorfacility-type.d.ts +19 -0
  702. package/dist/models/afnorfacility-type.js +23 -0
  703. package/dist/models/afnorflow-ack-status.d.ts +20 -0
  704. package/dist/models/afnorflow-ack-status.js +24 -0
  705. package/dist/models/afnorflow-direction.d.ts +19 -0
  706. package/dist/models/afnorflow-direction.js +23 -0
  707. package/dist/models/afnorflow-info.d.ts +31 -0
  708. package/dist/models/afnorflow-info.js +15 -0
  709. package/dist/models/afnorflow-profile.d.ts +17 -0
  710. package/dist/models/afnorflow-profile.js +21 -0
  711. package/dist/models/afnorflow-syntax.d.ts +22 -0
  712. package/dist/models/afnorflow-syntax.js +26 -0
  713. package/dist/models/afnorflow-type.d.ts +30 -0
  714. package/dist/models/afnorflow-type.js +34 -0
  715. package/dist/models/afnorflow.d.ts +53 -0
  716. package/dist/models/afnorflow.js +20 -0
  717. package/dist/models/afnorfull-flow-info.d.ts +17 -0
  718. package/dist/models/afnorfull-flow-info.js +15 -0
  719. package/dist/models/afnorhealth-check-response.d.ts +2 -2
  720. package/dist/models/afnorhealth-check-response.js +2 -2
  721. package/dist/models/afnorlegal-unit-administrative-status.d.ts +19 -0
  722. package/dist/models/afnorlegal-unit-administrative-status.js +23 -0
  723. package/dist/models/afnorlegal-unit-payload-history.d.ts +25 -0
  724. package/dist/models/afnorlegal-unit-payload-history.js +15 -0
  725. package/dist/models/afnorlegal-unit-payload-included-no-siren.d.ts +21 -0
  726. package/dist/models/afnorlegal-unit-payload-included-no-siren.js +15 -0
  727. package/dist/models/afnorlegal-unit-payload-included.d.ts +25 -0
  728. package/dist/models/afnorlegal-unit-payload-included.js +15 -0
  729. package/dist/models/afnorplatform-status.d.ts +19 -0
  730. package/dist/models/afnorplatform-status.js +23 -0
  731. package/dist/models/afnorprocessing-rule.d.ts +23 -0
  732. package/dist/models/afnorprocessing-rule.js +27 -0
  733. package/dist/models/afnorreason-code-enum.d.ts +32 -0
  734. package/dist/models/afnorreason-code-enum.js +36 -0
  735. package/dist/models/afnorreason-code.d.ts +17 -0
  736. package/dist/models/afnorreason-code.js +15 -0
  737. package/dist/models/afnorrecipient-platform-type.d.ts +19 -0
  738. package/dist/models/afnorrecipient-platform-type.js +23 -0
  739. package/dist/models/afnorresult.d.ts +5 -2
  740. package/dist/models/afnorresult.js +2 -2
  741. package/dist/models/afnorrouting-code-administrative-status.d.ts +19 -0
  742. package/dist/models/afnorrouting-code-administrative-status.js +23 -0
  743. package/dist/models/afnorrouting-code-field.d.ts +25 -0
  744. package/dist/models/afnorrouting-code-field.js +29 -0
  745. package/dist/models/afnorrouting-code-payload-history-legal-unit-facility.d.ts +41 -0
  746. package/dist/models/afnorrouting-code-payload-history-legal-unit-facility.js +15 -0
  747. package/dist/models/afnorrouting-code-post201-response.d.ts +25 -0
  748. package/dist/models/afnorrouting-code-post201-response.js +15 -0
  749. package/dist/models/afnorrouting-code-search-filters-administrative-status.d.ts +17 -0
  750. package/dist/models/afnorrouting-code-search-filters-administrative-status.js +15 -0
  751. package/dist/models/afnorrouting-code-search-filters-routing-code-name.d.ts +19 -0
  752. package/dist/models/afnorrouting-code-search-filters-routing-code-name.js +15 -0
  753. package/dist/models/afnorrouting-code-search-filters-routing-identifier.d.ts +19 -0
  754. package/dist/models/afnorrouting-code-search-filters-routing-identifier.js +15 -0
  755. package/dist/models/afnorrouting-code-search-filters.d.ts +27 -0
  756. package/dist/models/afnorrouting-code-search-filters.js +15 -0
  757. package/dist/models/afnorrouting-code-search-post200-response.d.ts +21 -0
  758. package/dist/models/afnorrouting-code-search-post200-response.js +15 -0
  759. package/dist/models/afnorrouting-code-search-sorting-inner.d.ts +20 -0
  760. package/dist/models/afnorrouting-code-search-sorting-inner.js +15 -0
  761. package/dist/models/afnorrouting-code-search.d.ts +39 -0
  762. package/dist/models/afnorrouting-code-search.js +20 -0
  763. package/dist/models/afnorsearch-directory-line-filters-addressing-identifier.d.ts +19 -0
  764. package/dist/models/afnorsearch-directory-line-filters-addressing-identifier.js +15 -0
  765. package/dist/models/afnorsearch-directory-line-filters-addressing-suffix.d.ts +19 -0
  766. package/dist/models/afnorsearch-directory-line-filters-addressing-suffix.js +15 -0
  767. package/dist/models/afnorsearch-directory-line-filters.d.ts +23 -0
  768. package/dist/models/afnorsearch-directory-line-filters.js +15 -0
  769. package/dist/models/afnorsearch-directory-line-sorting-inner.d.ts +20 -0
  770. package/dist/models/afnorsearch-directory-line-sorting-inner.js +15 -0
  771. package/dist/models/afnorsearch-directory-line.d.ts +33 -0
  772. package/dist/models/afnorsearch-directory-line.js +15 -0
  773. package/dist/models/afnorsearch-flow-content.d.ts +21 -0
  774. package/dist/models/afnorsearch-flow-content.js +15 -0
  775. package/dist/models/afnorsearch-flow-filters.d.ts +30 -0
  776. package/dist/models/afnorsearch-flow-filters.js +15 -0
  777. package/dist/models/afnorsearch-flow-params.d.ts +19 -0
  778. package/dist/models/afnorsearch-flow-params.js +15 -0
  779. package/dist/models/afnorsearch-siren-filters-administrative-status.d.ts +17 -0
  780. package/dist/models/afnorsearch-siren-filters-administrative-status.js +15 -0
  781. package/dist/models/afnorsearch-siren-filters-business-name.d.ts +19 -0
  782. package/dist/models/afnorsearch-siren-filters-business-name.js +15 -0
  783. package/dist/models/afnorsearch-siren-filters-entity-type.d.ts +17 -0
  784. package/dist/models/afnorsearch-siren-filters-entity-type.js +15 -0
  785. package/dist/models/afnorsearch-siren-filters-siren.d.ts +19 -0
  786. package/dist/models/afnorsearch-siren-filters-siren.js +15 -0
  787. package/dist/models/afnorsearch-siren-filters.d.ts +21 -0
  788. package/dist/models/afnorsearch-siren-filters.js +15 -0
  789. package/dist/models/afnorsearch-siren-sorting-inner.d.ts +20 -0
  790. package/dist/models/afnorsearch-siren-sorting-inner.js +15 -0
  791. package/dist/models/afnorsearch-siren.d.ts +33 -0
  792. package/dist/models/afnorsearch-siren.js +15 -0
  793. package/dist/models/afnorsearch-siret-filters-address-lines.d.ts +19 -0
  794. package/dist/models/afnorsearch-siret-filters-address-lines.js +15 -0
  795. package/dist/models/afnorsearch-siret-filters-administrative-status.d.ts +17 -0
  796. package/dist/models/afnorsearch-siret-filters-administrative-status.js +15 -0
  797. package/dist/models/afnorsearch-siret-filters-country-subdivision.d.ts +19 -0
  798. package/dist/models/afnorsearch-siret-filters-country-subdivision.js +15 -0
  799. package/dist/models/afnorsearch-siret-filters-facility-type.d.ts +17 -0
  800. package/dist/models/afnorsearch-siret-filters-facility-type.js +15 -0
  801. package/dist/models/afnorsearch-siret-filters-locality.d.ts +19 -0
  802. package/dist/models/afnorsearch-siret-filters-locality.js +15 -0
  803. package/dist/models/afnorsearch-siret-filters-name.d.ts +19 -0
  804. package/dist/models/afnorsearch-siret-filters-name.js +15 -0
  805. package/dist/models/afnorsearch-siret-filters-postal-code.d.ts +19 -0
  806. package/dist/models/afnorsearch-siret-filters-postal-code.js +15 -0
  807. package/dist/models/afnorsearch-siret-filters-siret.d.ts +19 -0
  808. package/dist/models/afnorsearch-siret-filters-siret.js +15 -0
  809. package/dist/models/afnorsearch-siret-filters.d.ts +31 -0
  810. package/dist/models/afnorsearch-siret-filters.js +15 -0
  811. package/dist/models/afnorsearch-siret-sorting-inner.d.ts +20 -0
  812. package/dist/models/afnorsearch-siret-sorting-inner.js +15 -0
  813. package/dist/models/afnorsearch-siret.d.ts +38 -0
  814. package/dist/models/afnorsearch-siret.js +19 -0
  815. package/dist/models/afnorsiren-field.d.ts +22 -0
  816. package/dist/models/afnorsiren-field.js +26 -0
  817. package/dist/models/afnorsiren-search-post200-response.d.ts +21 -0
  818. package/dist/models/afnorsiren-search-post200-response.js +15 -0
  819. package/dist/models/afnorsiret-field.d.ts +31 -0
  820. package/dist/models/afnorsiret-field.js +35 -0
  821. package/dist/models/afnorsiret-search-post200-response.d.ts +21 -0
  822. package/dist/models/afnorsiret-search-post200-response.js +15 -0
  823. package/dist/models/afnorsorting-order.d.ts +19 -0
  824. package/dist/models/afnorsorting-order.js +23 -0
  825. package/dist/models/afnorstrict-operator.d.ts +18 -0
  826. package/dist/models/afnorstrict-operator.js +22 -0
  827. package/dist/models/afnorupdate-patch-directory-line-body.d.ts +17 -0
  828. package/dist/models/afnorupdate-patch-directory-line-body.js +15 -0
  829. package/dist/models/afnorupdate-patch-routing-code-body.d.ts +25 -0
  830. package/dist/models/afnorupdate-patch-routing-code-body.js +15 -0
  831. package/dist/models/afnorupdate-put-routing-code-body.d.ts +25 -0
  832. package/dist/models/afnorupdate-put-routing-code-body.js +15 -0
  833. package/dist/models/afnorwebhook-callback-content.d.ts +18 -0
  834. package/dist/models/afnorwebhook-callback-content.js +15 -0
  835. package/dist/models/aggregated-payment-input.d.ts +27 -0
  836. package/dist/models/aggregated-payment-input.js +15 -0
  837. package/dist/models/aggregated-transaction-input.d.ts +39 -0
  838. package/dist/models/aggregated-transaction-input.js +15 -0
  839. package/dist/models/allowance-charge-reason-code.d.ts +55 -0
  840. package/dist/models/allowance-charge-reason-code.js +59 -0
  841. package/dist/models/allowance-charge.d.ts +8 -6
  842. package/dist/models/allowance-charge.js +2 -2
  843. package/dist/models/allowance-reason-code.d.ts +2 -2
  844. package/dist/models/allowance-reason-code.js +2 -2
  845. package/dist/models/allowance-total-amount.d.ts +2 -2
  846. package/dist/models/allowance-total-amount.js +2 -2
  847. package/dist/models/amount-due.d.ts +2 -2
  848. package/dist/models/amount-due.js +2 -2
  849. package/dist/models/amount.d.ts +3 -3
  850. package/dist/models/amount.js +2 -2
  851. package/dist/models/amount1.d.ts +16 -0
  852. package/dist/models/amount1.js +15 -0
  853. package/dist/models/apierror.d.ts +2 -2
  854. package/dist/models/apierror.js +2 -2
  855. package/dist/models/apiprofile.d.ts +3 -2
  856. package/dist/models/apiprofile.js +3 -2
  857. package/dist/models/async-task-status.d.ts +2 -2
  858. package/dist/models/async-task-status.js +2 -2
  859. package/dist/models/base-amount.d.ts +2 -2
  860. package/dist/models/base-amount.js +2 -2
  861. package/dist/models/bounding-box-schema.d.ts +2 -2
  862. package/dist/models/bounding-box-schema.js +2 -2
  863. package/dist/models/buyercountry.d.ts +16 -0
  864. package/dist/models/buyercountry.js +15 -0
  865. package/dist/models/celery-status.d.ts +2 -2
  866. package/dist/models/celery-status.js +2 -2
  867. package/dist/models/certificate-info-response.d.ts +2 -2
  868. package/dist/models/certificate-info-response.js +2 -2
  869. package/dist/models/charge-total-amount.d.ts +2 -2
  870. package/dist/models/charge-total-amount.js +2 -2
  871. package/dist/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.d.ts → chorus-pro-credentials.d.ts} +3 -3
  872. package/dist/models/chorus-pro-credentials.js +15 -0
  873. package/dist/models/chorus-pro-destination.d.ts +2 -2
  874. package/dist/models/chorus-pro-destination.js +2 -2
  875. package/dist/models/chorus-pro-result.d.ts +2 -2
  876. package/dist/models/chorus-pro-result.js +2 -2
  877. package/dist/models/contact.d.ts +2 -2
  878. package/dist/models/contact.js +2 -2
  879. package/dist/models/convert-resume-request.d.ts +2 -2
  880. package/dist/models/convert-resume-request.js +2 -2
  881. package/dist/models/convert-success-response.d.ts +2 -2
  882. package/dist/models/convert-success-response.js +2 -2
  883. package/dist/models/convert-validation-failed-response.d.ts +17 -2
  884. package/dist/models/convert-validation-failed-response.js +2 -2
  885. package/dist/models/country-code.d.ts +187 -0
  886. package/dist/models/country-code.js +191 -0
  887. package/dist/models/create-aggregated-report-request.d.ts +44 -0
  888. package/dist/models/create-aggregated-report-request.js +15 -0
  889. package/dist/models/create-ereporting-request.d.ts +49 -0
  890. package/dist/models/create-ereporting-request.js +15 -0
  891. package/dist/models/currency-code.d.ts +70 -0
  892. package/dist/models/currency-code.js +74 -0
  893. package/dist/models/currency.d.ts +16 -0
  894. package/dist/models/currency.js +15 -0
  895. package/dist/models/delivery-party.d.ts +2 -2
  896. package/dist/models/delivery-party.js +2 -2
  897. package/dist/models/destination.d.ts +2 -2
  898. package/dist/models/destination.js +2 -2
  899. package/dist/models/directory-line-include.d.ts +21 -0
  900. package/dist/models/directory-line-include.js +25 -0
  901. package/dist/models/doc-type.d.ts +21 -0
  902. package/dist/models/doc-type.js +25 -0
  903. package/dist/models/document-type-info.d.ts +2 -2
  904. package/dist/models/document-type-info.js +2 -2
  905. package/dist/models/electronic-address.d.ts +8 -2
  906. package/dist/models/electronic-address.js +2 -2
  907. package/dist/models/enriched-invoice-info.d.ts +20 -2
  908. package/dist/models/enriched-invoice-info.js +2 -2
  909. package/dist/models/ereporting-flow-type.d.ts +21 -0
  910. package/dist/models/ereporting-flow-type.js +25 -0
  911. package/dist/models/error-level.d.ts +2 -2
  912. package/dist/models/error-level.js +2 -2
  913. package/dist/models/error-source.d.ts +2 -2
  914. package/dist/models/error-source.js +2 -2
  915. package/dist/models/extraction-info.d.ts +2 -2
  916. package/dist/models/extraction-info.js +2 -2
  917. package/dist/models/factur-xinvoice.d.ts +2 -2
  918. package/dist/models/factur-xinvoice.js +2 -2
  919. package/dist/models/factur-xpdfinfo.d.ts +2 -2
  920. package/dist/models/factur-xpdfinfo.js +2 -2
  921. package/dist/models/facture-electronique-models-invoice-type-code.d.ts +81 -0
  922. package/dist/models/facture-electronique-models-invoice-type-code.js +85 -0
  923. package/dist/models/facture-electronique-rest-api-schemas-convert-validation-error.d.ts +33 -0
  924. package/dist/models/facture-electronique-rest-api-schemas-convert-validation-error.js +15 -0
  925. package/dist/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.d.ts +2 -2
  926. package/dist/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.js +2 -2
  927. package/dist/models/field-status.d.ts +2 -2
  928. package/dist/models/field-status.js +2 -2
  929. package/dist/models/file-info.d.ts +2 -2
  930. package/dist/models/file-info.js +2 -2
  931. package/dist/models/files-info.d.ts +2 -2
  932. package/dist/models/files-info.js +2 -2
  933. package/dist/models/flow-direction.d.ts +2 -2
  934. package/dist/models/flow-direction.js +2 -2
  935. package/dist/models/flow-profile.d.ts +2 -2
  936. package/dist/models/flow-profile.js +2 -2
  937. package/dist/models/flow-summary.d.ts +8 -2
  938. package/dist/models/flow-summary.js +2 -2
  939. package/dist/models/flow-syntax.d.ts +2 -2
  940. package/dist/models/flow-syntax.js +2 -2
  941. package/dist/models/flow-type.d.ts +12 -4
  942. package/dist/models/flow-type.js +12 -4
  943. package/dist/models/generate-aggregated-report-response.d.ts +46 -0
  944. package/dist/models/generate-aggregated-report-response.js +15 -0
  945. package/dist/models/generate-certificate-request.d.ts +2 -2
  946. package/dist/models/generate-certificate-request.js +2 -2
  947. package/dist/models/generate-certificate-response.d.ts +2 -2
  948. package/dist/models/generate-certificate-response.js +2 -2
  949. package/dist/models/generate-ereporting-response.d.ts +36 -0
  950. package/dist/models/generate-ereporting-response.js +15 -0
  951. package/dist/models/get-chorus-pro-id-request.d.ts +4 -4
  952. package/dist/models/get-chorus-pro-id-request.js +2 -2
  953. package/dist/models/get-chorus-pro-id-response.d.ts +2 -2
  954. package/dist/models/get-chorus-pro-id-response.js +2 -2
  955. package/dist/models/get-invoice-request.d.ts +4 -4
  956. package/dist/models/get-invoice-request.js +2 -2
  957. package/dist/models/get-invoice-response.d.ts +8 -2
  958. package/dist/models/get-invoice-response.js +2 -2
  959. package/dist/models/get-structure-request.d.ts +4 -4
  960. package/dist/models/get-structure-request.js +2 -2
  961. package/dist/models/get-structure-response.d.ts +8 -2
  962. package/dist/models/get-structure-response.js +2 -2
  963. package/dist/models/global-allowance-amount.d.ts +2 -2
  964. package/dist/models/global-allowance-amount.js +2 -2
  965. package/dist/models/gross-unit-price.d.ts +2 -2
  966. package/dist/models/gross-unit-price.js +2 -2
  967. package/dist/models/httpvalidation-error.d.ts +2 -2
  968. package/dist/models/httpvalidation-error.js +2 -2
  969. package/dist/models/incoming-invoice.d.ts +4 -4
  970. package/dist/models/incoming-invoice.js +2 -2
  971. package/dist/models/incoming-supplier.d.ts +2 -2
  972. package/dist/models/incoming-supplier.js +2 -2
  973. package/dist/models/index.d.ts +139 -4
  974. package/dist/models/index.js +139 -4
  975. package/dist/models/invoice-format.d.ts +2 -2
  976. package/dist/models/invoice-format.js +2 -2
  977. package/dist/models/invoice-input.d.ts +54 -0
  978. package/dist/models/invoice-input.js +15 -0
  979. package/dist/models/invoice-line-allowance-amount.d.ts +2 -2
  980. package/dist/models/invoice-line-allowance-amount.js +2 -2
  981. package/dist/models/invoice-line.d.ts +5 -2
  982. package/dist/models/invoice-line.js +2 -2
  983. package/dist/models/invoice-note.d.ts +5 -2
  984. package/dist/models/invoice-note.js +2 -2
  985. package/dist/models/invoice-payment-input.d.ts +35 -0
  986. package/dist/models/invoice-payment-input.js +15 -0
  987. package/dist/models/invoice-references.d.ts +2 -2
  988. package/dist/models/invoice-references.js +2 -2
  989. package/dist/models/invoice-status.d.ts +2 -2
  990. package/dist/models/invoice-status.js +2 -2
  991. package/dist/models/invoice-totals-prepayment.d.ts +2 -2
  992. package/dist/models/invoice-totals-prepayment.js +2 -2
  993. package/dist/models/invoice-totals.d.ts +2 -2
  994. package/dist/models/invoice-totals.js +2 -2
  995. package/dist/models/invoice-type-code-output.d.ts +81 -0
  996. package/dist/models/invoice-type-code-output.js +85 -0
  997. package/dist/models/invoice-type-code.d.ts +8 -67
  998. package/dist/models/invoice-type-code.js +8 -67
  999. package/dist/models/invoicing-framework-code.d.ts +2 -2
  1000. package/dist/models/invoicing-framework-code.js +2 -2
  1001. package/dist/models/invoicing-framework.d.ts +5 -2
  1002. package/dist/models/invoicing-framework.js +2 -2
  1003. package/dist/models/line-net-amount.d.ts +2 -2
  1004. package/dist/models/line-net-amount.js +2 -2
  1005. package/dist/models/line-sub-type.d.ts +20 -0
  1006. package/dist/models/line-sub-type.js +24 -0
  1007. package/dist/models/line-total-amount.d.ts +2 -2
  1008. package/dist/models/line-total-amount.js +2 -2
  1009. package/dist/models/location-inner.d.ts +13 -0
  1010. package/dist/models/location-inner.js +15 -0
  1011. package/dist/models/mandatory-note-schema.d.ts +2 -2
  1012. package/dist/models/mandatory-note-schema.js +2 -2
  1013. package/dist/models/manual-rate.d.ts +2 -2
  1014. package/dist/models/manual-rate.js +2 -2
  1015. package/dist/models/manual-vat-rate.d.ts +2 -2
  1016. package/dist/models/manual-vat-rate.js +2 -2
  1017. package/dist/models/missing-field.d.ts +2 -2
  1018. package/dist/models/missing-field.js +2 -2
  1019. package/dist/models/operation-nature.d.ts +2 -2
  1020. package/dist/models/operation-nature.js +2 -2
  1021. package/dist/models/output-format.d.ts +2 -2
  1022. package/dist/models/output-format.js +2 -2
  1023. package/dist/models/page-dimensions-schema.d.ts +2 -2
  1024. package/dist/models/page-dimensions-schema.js +2 -2
  1025. package/dist/models/payee.d.ts +2 -2
  1026. package/dist/models/payee.js +2 -2
  1027. package/dist/models/payment-amount-by-rate.d.ts +20 -0
  1028. package/dist/models/payment-amount-by-rate.js +15 -0
  1029. package/dist/models/payment-card.d.ts +2 -2
  1030. package/dist/models/payment-card.js +2 -2
  1031. package/dist/models/payment-means.d.ts +2 -2
  1032. package/dist/models/payment-means.js +2 -2
  1033. package/dist/models/pdfvalidation-result-api.d.ts +2 -2
  1034. package/dist/models/pdfvalidation-result-api.js +2 -2
  1035. package/dist/models/pdpcredentials.d.ts +2 -2
  1036. package/dist/models/pdpcredentials.js +2 -2
  1037. package/dist/models/percentage.d.ts +2 -2
  1038. package/dist/models/percentage.js +2 -2
  1039. package/dist/models/postal-address.d.ts +2 -2
  1040. package/dist/models/postal-address.js +2 -2
  1041. package/dist/models/price-allowance-amount.d.ts +2 -2
  1042. package/dist/models/price-allowance-amount.js +2 -2
  1043. package/dist/models/price-basis-quantity.d.ts +2 -2
  1044. package/dist/models/price-basis-quantity.js +2 -2
  1045. package/dist/models/processing-options.d.ts +2 -2
  1046. package/dist/models/processing-options.js +2 -2
  1047. package/dist/models/processing-rule.d.ts +23 -0
  1048. package/dist/models/processing-rule.js +27 -0
  1049. package/dist/models/product-characteristic.d.ts +2 -2
  1050. package/dist/models/product-characteristic.js +2 -2
  1051. package/dist/models/product-classification.d.ts +2 -2
  1052. package/dist/models/product-classification.js +2 -2
  1053. package/dist/models/quantity.d.ts +2 -2
  1054. package/dist/models/quantity.js +2 -2
  1055. package/dist/models/rate.d.ts +16 -0
  1056. package/dist/models/rate.js +15 -0
  1057. package/dist/models/rate1.d.ts +16 -0
  1058. package/dist/models/rate1.js +15 -0
  1059. package/dist/models/recipient.d.ts +2 -2
  1060. package/dist/models/recipient.js +2 -2
  1061. package/dist/models/report-period.d.ts +24 -0
  1062. package/dist/models/report-period.js +15 -0
  1063. package/dist/models/report-sender.d.ts +25 -0
  1064. package/dist/models/report-sender.js +15 -0
  1065. package/dist/models/rounding-amount.d.ts +2 -2
  1066. package/dist/models/rounding-amount.js +2 -2
  1067. package/dist/models/routing-code-include.d.ts +19 -0
  1068. package/dist/models/routing-code-include.js +23 -0
  1069. package/dist/models/scheme-id.d.ts +30 -2
  1070. package/dist/models/scheme-id.js +31 -3
  1071. package/dist/models/search-flow-request.d.ts +2 -2
  1072. package/dist/models/search-flow-request.js +2 -2
  1073. package/dist/models/search-flow-response.d.ts +2 -2
  1074. package/dist/models/search-flow-response.js +2 -2
  1075. package/dist/models/search-services-response.d.ts +11 -2
  1076. package/dist/models/search-services-response.js +2 -2
  1077. package/dist/models/search-structure-request.d.ts +4 -4
  1078. package/dist/models/search-structure-request.js +2 -2
  1079. package/dist/models/search-structure-response.d.ts +2 -2
  1080. package/dist/models/search-structure-response.js +2 -2
  1081. package/dist/models/sellercountry.d.ts +16 -0
  1082. package/dist/models/sellercountry.js +15 -0
  1083. package/dist/models/signature-info-api.d.ts +2 -2
  1084. package/dist/models/signature-info-api.js +2 -2
  1085. package/dist/models/signature-info.d.ts +2 -2
  1086. package/dist/models/signature-info.js +2 -2
  1087. package/dist/models/signature-parameters.d.ts +2 -2
  1088. package/dist/models/signature-parameters.js +2 -2
  1089. package/dist/models/simplified-invoice-data.d.ts +12 -2
  1090. package/dist/models/simplified-invoice-data.js +2 -2
  1091. package/dist/models/siret-include.d.ts +18 -0
  1092. package/dist/models/siret-include.js +22 -0
  1093. package/dist/models/structure-info.d.ts +2 -2
  1094. package/dist/models/structure-info.js +2 -2
  1095. package/dist/models/structure-parameters.d.ts +2 -2
  1096. package/dist/models/structure-parameters.js +2 -2
  1097. package/dist/models/structure-service.d.ts +2 -2
  1098. package/dist/models/structure-service.js +2 -2
  1099. package/dist/models/submission-mode.d.ts +2 -2
  1100. package/dist/models/submission-mode.js +2 -2
  1101. package/dist/models/submit-aggregated-report-request.d.ts +26 -0
  1102. package/dist/models/submit-aggregated-report-request.js +15 -0
  1103. package/dist/models/submit-complete-invoice-request.d.ts +2 -2
  1104. package/dist/models/submit-complete-invoice-request.js +2 -2
  1105. package/dist/models/submit-complete-invoice-response.d.ts +2 -2
  1106. package/dist/models/submit-complete-invoice-response.js +2 -2
  1107. package/dist/models/submit-ereporting-request.d.ts +26 -0
  1108. package/dist/models/submit-ereporting-request.js +15 -0
  1109. package/dist/models/submit-ereporting-response.d.ts +41 -0
  1110. package/dist/models/submit-ereporting-response.js +15 -0
  1111. package/dist/models/submit-flow-request.d.ts +2 -2
  1112. package/dist/models/submit-flow-request.js +2 -2
  1113. package/dist/models/submit-flow-response.d.ts +2 -2
  1114. package/dist/models/submit-flow-response.js +2 -2
  1115. package/dist/models/submit-gross-amount.d.ts +2 -2
  1116. package/dist/models/submit-gross-amount.js +2 -2
  1117. package/dist/models/submit-invoice-request.d.ts +4 -4
  1118. package/dist/models/submit-invoice-request.js +2 -2
  1119. package/dist/models/submit-invoice-response.d.ts +2 -2
  1120. package/dist/models/submit-invoice-response.js +2 -2
  1121. package/dist/models/submit-net-amount.d.ts +2 -2
  1122. package/dist/models/submit-net-amount.js +2 -2
  1123. package/dist/models/submit-vat-amount.d.ts +2 -2
  1124. package/dist/models/submit-vat-amount.js +2 -2
  1125. package/dist/models/supplementary-attachment.d.ts +17 -2
  1126. package/dist/models/supplementary-attachment.js +2 -2
  1127. package/dist/models/supplier.d.ts +2 -2
  1128. package/dist/models/supplier.js +2 -2
  1129. package/dist/models/task-response.d.ts +2 -2
  1130. package/dist/models/task-response.js +2 -2
  1131. package/dist/models/tax-breakdown-input.d.ts +22 -0
  1132. package/dist/models/tax-breakdown-input.js +15 -0
  1133. package/dist/models/tax-due-date-type.d.ts +23 -0
  1134. package/dist/models/tax-due-date-type.js +27 -0
  1135. package/dist/models/tax-representative.d.ts +2 -2
  1136. package/dist/models/tax-representative.js +2 -2
  1137. package/dist/models/taxable-amount.d.ts +2 -2
  1138. package/dist/models/taxable-amount.js +2 -2
  1139. package/dist/models/taxableamount.d.ts +16 -0
  1140. package/dist/models/taxableamount.js +15 -0
  1141. package/dist/models/taxamount.d.ts +16 -0
  1142. package/dist/models/taxamount.js +15 -0
  1143. package/dist/models/taxamount1.d.ts +16 -0
  1144. package/dist/models/taxamount1.js +15 -0
  1145. package/dist/models/taxamount2.d.ts +16 -0
  1146. package/dist/models/taxamount2.js +15 -0
  1147. package/dist/models/taxexclusiveamount.d.ts +16 -0
  1148. package/dist/models/taxexclusiveamount.js +15 -0
  1149. package/dist/models/taxexclusiveamount1.d.ts +16 -0
  1150. package/dist/models/taxexclusiveamount1.js +15 -0
  1151. package/dist/models/total-gross-amount.d.ts +2 -2
  1152. package/dist/models/total-gross-amount.js +2 -2
  1153. package/dist/models/total-net-amount.d.ts +2 -2
  1154. package/dist/models/total-net-amount.js +2 -2
  1155. package/dist/models/total-vatamount.d.ts +2 -2
  1156. package/dist/models/total-vatamount.js +2 -2
  1157. package/dist/models/transaction-category.d.ts +21 -0
  1158. package/dist/models/transaction-category.js +25 -0
  1159. package/dist/models/transmission-type-code.d.ts +19 -0
  1160. package/dist/models/transmission-type-code.js +23 -0
  1161. package/dist/models/unit-net-price.d.ts +2 -2
  1162. package/dist/models/unit-net-price.js +2 -2
  1163. package/dist/models/unit-of-measure.d.ts +2 -2
  1164. package/dist/models/unit-of-measure.js +2 -2
  1165. package/dist/models/validate-ereporting-request.d.ts +21 -0
  1166. package/dist/models/validate-ereporting-request.js +15 -0
  1167. package/dist/models/validate-ereporting-response.d.ts +41 -0
  1168. package/dist/models/validate-ereporting-response.js +15 -0
  1169. package/dist/models/validation-error-detail.d.ts +2 -2
  1170. package/dist/models/validation-error-detail.js +2 -2
  1171. package/dist/models/validation-error-response.d.ts +2 -2
  1172. package/dist/models/validation-error-response.js +2 -2
  1173. package/dist/models/validation-error.d.ts +4 -4
  1174. package/dist/models/validation-error.js +2 -2
  1175. package/dist/models/validation-info.d.ts +4 -4
  1176. package/dist/models/validation-info.js +2 -2
  1177. package/dist/models/validation-success-response.d.ts +2 -2
  1178. package/dist/models/validation-success-response.js +2 -2
  1179. package/dist/models/vat-rate.d.ts +2 -2
  1180. package/dist/models/vat-rate.js +2 -2
  1181. package/dist/models/vataccounting-code.d.ts +2 -2
  1182. package/dist/models/vataccounting-code.js +2 -2
  1183. package/dist/models/vatamount.d.ts +2 -2
  1184. package/dist/models/vatamount.js +2 -2
  1185. package/dist/models/vatcategory.d.ts +2 -2
  1186. package/dist/models/vatcategory.js +2 -2
  1187. package/dist/models/vatline.d.ts +2 -2
  1188. package/dist/models/vatline.js +2 -2
  1189. package/dist/models/vatpoint-date-code.d.ts +2 -2
  1190. package/dist/models/vatpoint-date-code.js +2 -2
  1191. package/dist/models/verification-success-response.d.ts +2 -2
  1192. package/dist/models/verification-success-response.js +2 -2
  1193. package/dist/models/verified-field-schema.d.ts +2 -2
  1194. package/dist/models/verified-field-schema.js +2 -2
  1195. package/docs/AFNORAcknowledgement.md +22 -0
  1196. package/docs/AFNORAcknowledgementDetail.md +26 -0
  1197. package/docs/AFNORAddressEdit.md +33 -0
  1198. package/docs/AFNORAddressPatch.md +33 -0
  1199. package/docs/AFNORAddressPut.md +33 -0
  1200. package/docs/AFNORAddressRead.md +35 -0
  1201. package/docs/AFNORAlgorithm.md +16 -0
  1202. package/docs/AFNORContainsOperator.md +9 -0
  1203. package/docs/AFNORCreateDirectoryLineBody.md +22 -0
  1204. package/docs/AFNORCreateDirectoryLineBodyAddressingInformation.md +26 -0
  1205. package/docs/AFNORCreateDirectoryLineBodyPeriod.md +22 -0
  1206. package/docs/AFNORCreateRoutingCodeBody.md +34 -0
  1207. package/docs/AFNORDestination.md +3 -1
  1208. package/docs/AFNORDiffusionStatus.md +11 -0
  1209. package/docs/AFNORDirectoryLineField.md +19 -0
  1210. package/docs/AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCode.md +34 -0
  1211. package/docs/AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCodePlatform.md +22 -0
  1212. package/docs/AFNORDirectoryLinePayloadHistoryLegalUnitFacilityRoutingCodeRoutingCode.md +30 -0
  1213. package/docs/AFNORDirectoryLinePost201Response.md +24 -0
  1214. package/docs/AFNORDirectoryLineSearchPost200Response.md +24 -0
  1215. package/docs/AFNOREntityType.md +11 -0
  1216. package/docs/AFNORError.md +28 -0
  1217. package/docs/AFNORFacilityAdministrativeStatus.md +11 -0
  1218. package/docs/AFNORFacilityNature.md +11 -0
  1219. package/docs/AFNORFacilityPayloadHistory.md +36 -0
  1220. package/docs/AFNORFacilityPayloadHistoryUleB2gAdditionalData.md +30 -0
  1221. package/docs/AFNORFacilityPayloadIncluded.md +34 -0
  1222. package/docs/AFNORFacilityType.md +11 -0
  1223. package/docs/AFNORFlow.md +41 -0
  1224. package/docs/AFNORFlowAckStatus.md +13 -0
  1225. package/docs/AFNORFlowDirection.md +11 -0
  1226. package/docs/AFNORFlowInfo.md +31 -0
  1227. package/docs/AFNORFlowProfile.md +12 -0
  1228. package/docs/AFNORFlowSyntax.md +17 -0
  1229. package/docs/AFNORFlowType.md +33 -0
  1230. package/docs/AFNORFullFlowInfo.md +35 -0
  1231. package/docs/AFNORLegalUnitAdministrativeStatus.md +11 -0
  1232. package/docs/AFNORLegalUnitPayloadHistory.md +26 -0
  1233. package/docs/AFNORLegalUnitPayloadIncluded.md +26 -0
  1234. package/docs/AFNORLegalUnitPayloadIncludedNoSiren.md +24 -0
  1235. package/docs/AFNORPDPPAApi.md +5 -5
  1236. package/docs/AFNORPDPPADirectoryServiceApi.md +426 -171
  1237. package/docs/AFNORPDPPAFlowServiceApi.md +72 -38
  1238. package/docs/AFNORPlatformStatus.md +11 -0
  1239. package/docs/AFNORProcessingRule.md +19 -0
  1240. package/docs/AFNORReasonCode.md +19 -0
  1241. package/docs/AFNORReasonCodeEnum.md +37 -0
  1242. package/docs/AFNORRecipientPlatformType.md +11 -0
  1243. package/docs/AFNORResult.md +6 -0
  1244. package/docs/AFNORRoutingCodeAdministrativeStatus.md +11 -0
  1245. package/docs/AFNORRoutingCodeField.md +23 -0
  1246. package/docs/AFNORRoutingCodePayloadHistoryLegalUnitFacility.md +36 -0
  1247. package/docs/AFNORRoutingCodePost201Response.md +24 -0
  1248. package/docs/AFNORRoutingCodeSearch.md +30 -0
  1249. package/docs/AFNORRoutingCodeSearchFilters.md +32 -0
  1250. package/docs/AFNORRoutingCodeSearchFiltersAdministrativeStatus.md +22 -0
  1251. package/docs/AFNORRoutingCodeSearchFiltersRoutingCodeName.md +22 -0
  1252. package/docs/AFNORRoutingCodeSearchFiltersRoutingIdentifier.md +22 -0
  1253. package/docs/AFNORRoutingCodeSearchPost200Response.md +24 -0
  1254. package/docs/AFNORRoutingCodeSearchSortingInner.md +23 -0
  1255. package/docs/AFNORSearchDirectoryLine.md +28 -0
  1256. package/docs/AFNORSearchDirectoryLineFilters.md +28 -0
  1257. package/docs/AFNORSearchDirectoryLineFiltersAddressingIdentifier.md +22 -0
  1258. package/docs/AFNORSearchDirectoryLineFiltersAddressingSuffix.md +22 -0
  1259. package/docs/AFNORSearchDirectoryLineSortingInner.md +23 -0
  1260. package/docs/AFNORSearchFlowContent.md +25 -0
  1261. package/docs/AFNORSearchFlowFilters.md +33 -0
  1262. package/docs/AFNORSearchFlowParams.md +22 -0
  1263. package/docs/AFNORSearchSiren.md +28 -0
  1264. package/docs/AFNORSearchSirenFilters.md +26 -0
  1265. package/docs/AFNORSearchSirenFiltersAdministrativeStatus.md +22 -0
  1266. package/docs/AFNORSearchSirenFiltersBusinessName.md +22 -0
  1267. package/docs/AFNORSearchSirenFiltersEntityType.md +22 -0
  1268. package/docs/AFNORSearchSirenFiltersSiren.md +22 -0
  1269. package/docs/AFNORSearchSirenSortingInner.md +23 -0
  1270. package/docs/AFNORSearchSiret.md +30 -0
  1271. package/docs/AFNORSearchSiretFilters.md +36 -0
  1272. package/docs/AFNORSearchSiretFiltersAddressLines.md +22 -0
  1273. package/docs/AFNORSearchSiretFiltersAdministrativeStatus.md +22 -0
  1274. package/docs/AFNORSearchSiretFiltersCountrySubdivision.md +22 -0
  1275. package/docs/AFNORSearchSiretFiltersFacilityType.md +22 -0
  1276. package/docs/AFNORSearchSiretFiltersLocality.md +22 -0
  1277. package/docs/AFNORSearchSiretFiltersName.md +22 -0
  1278. package/docs/AFNORSearchSiretFiltersPostalCode.md +22 -0
  1279. package/docs/AFNORSearchSiretFiltersSiret.md +22 -0
  1280. package/docs/AFNORSearchSiretSortingInner.md +23 -0
  1281. package/docs/AFNORSirenField.md +17 -0
  1282. package/docs/AFNORSirenSearchPost200Response.md +24 -0
  1283. package/docs/AFNORSiretField.md +35 -0
  1284. package/docs/AFNORSiretSearchPost200Response.md +24 -0
  1285. package/docs/AFNORSortingOrder.md +11 -0
  1286. package/docs/AFNORStrictOperator.md +9 -0
  1287. package/docs/AFNORUpdatePatchDirectoryLineBody.md +20 -0
  1288. package/docs/AFNORUpdatePatchRoutingCodeBody.md +26 -0
  1289. package/docs/AFNORUpdatePutRoutingCodeBody.md +26 -0
  1290. package/docs/AFNORWebhookCallbackContent.md +21 -0
  1291. package/docs/APIProfile.md +2 -0
  1292. package/docs/AcceptLanguage.md +11 -0
  1293. package/docs/AggregatedPaymentInput.md +25 -0
  1294. package/docs/AggregatedTransactionInput.md +35 -0
  1295. package/docs/AllowanceCharge.md +3 -3
  1296. package/docs/AllowanceChargeReasonCode.md +83 -0
  1297. package/docs/Amount.md +1 -1
  1298. package/docs/{ValidationErrorLocInner.md → Amount1.md} +4 -3
  1299. package/docs/Buyercountry.md +19 -0
  1300. package/docs/ChorusProApi.md +20 -3
  1301. package/docs/{FactureElectroniqueRestApiSchemasChorusProChorusProCredentials.md → ChorusProCredentials.md} +3 -3
  1302. package/docs/ConvertValidationFailedResponse.md +5 -5
  1303. package/docs/CountryCode.md +347 -0
  1304. package/docs/CreateAggregatedReportRequest.md +37 -0
  1305. package/docs/CreateEReportingRequest.md +39 -0
  1306. package/docs/Currency.md +19 -0
  1307. package/docs/CurrencyCode.md +113 -0
  1308. package/docs/Destination.md +3 -1
  1309. package/docs/DirectoryLineInclude.md +15 -0
  1310. package/docs/DocType.md +15 -0
  1311. package/docs/DocumentConversionApi.md +17 -71
  1312. package/docs/DownloadsApi.md +237 -0
  1313. package/docs/EReportingApi.md +638 -0
  1314. package/docs/EReportingFlowType.md +15 -0
  1315. package/docs/ElectronicAddress.md +2 -2
  1316. package/docs/EnrichedInvoiceInfo.md +6 -6
  1317. package/docs/FactureElectroniqueModelsInvoiceTypeCode.md +39 -0
  1318. package/docs/FactureElectroniqueRestApiSchemasConvertValidationError.md +35 -0
  1319. package/docs/FlowSummary.md +2 -2
  1320. package/docs/FlowType.md +18 -2
  1321. package/docs/GenerateAggregatedReportResponse.md +33 -0
  1322. package/docs/GenerateEReportingResponse.md +29 -0
  1323. package/docs/GetChorusProIdRequest.md +1 -1
  1324. package/docs/GetInvoiceRequest.md +1 -1
  1325. package/docs/GetInvoiceResponse.md +2 -2
  1326. package/docs/GetStructureRequest.md +1 -1
  1327. package/docs/GetStructureResponse.md +2 -2
  1328. package/docs/HealthApi.md +3 -1
  1329. package/docs/IncomingInvoice.md +1 -1
  1330. package/docs/InvoiceInput.md +51 -0
  1331. package/docs/InvoiceLine.md +4 -0
  1332. package/docs/InvoiceNote.md +1 -1
  1333. package/docs/InvoicePaymentInput.md +29 -0
  1334. package/docs/InvoiceProcessingApi.md +56 -14
  1335. package/docs/InvoiceTypeCode.md +6 -28
  1336. package/docs/InvoiceTypeCodeOutput.md +39 -0
  1337. package/docs/InvoicingFramework.md +1 -1
  1338. package/docs/LineSubType.md +13 -0
  1339. package/docs/LocationInner.md +18 -0
  1340. package/docs/PDFXMLVerificationApi.md +27 -9
  1341. package/docs/PaymentAmountByRate.md +23 -0
  1342. package/docs/ProcessingRule.md +19 -0
  1343. package/docs/Rate.md +19 -0
  1344. package/docs/Rate1.md +19 -0
  1345. package/docs/ReportPeriod.md +23 -0
  1346. package/docs/ReportSender.md +25 -0
  1347. package/docs/RoutingCodeInclude.md +11 -0
  1348. package/docs/SchemeID.md +14 -0
  1349. package/docs/SearchServicesResponse.md +3 -3
  1350. package/docs/SearchStructureRequest.md +1 -1
  1351. package/docs/Sellercountry.md +19 -0
  1352. package/docs/SimplifiedInvoiceData.md +8 -0
  1353. package/docs/SiretInclude.md +9 -0
  1354. package/docs/SubmitAggregatedReportRequest.md +31 -0
  1355. package/docs/SubmitEReportingRequest.md +31 -0
  1356. package/docs/SubmitEReportingResponse.md +35 -0
  1357. package/docs/SubmitInvoiceRequest.md +1 -1
  1358. package/docs/SupplementaryAttachment.md +5 -5
  1359. package/docs/TaxBreakdownInput.md +25 -0
  1360. package/docs/TaxDueDateType.md +19 -0
  1361. package/docs/Taxableamount.md +19 -0
  1362. package/docs/Taxamount.md +19 -0
  1363. package/docs/Taxamount1.md +19 -0
  1364. package/docs/Taxamount2.md +19 -0
  1365. package/docs/Taxexclusiveamount.md +19 -0
  1366. package/docs/Taxexclusiveamount1.md +19 -0
  1367. package/docs/TransactionCategory.md +15 -0
  1368. package/docs/TransmissionTypeCode.md +11 -0
  1369. package/docs/UserApi.md +2 -1
  1370. package/docs/ValidateEReportingRequest.md +21 -0
  1371. package/docs/ValidateEReportingResponse.md +31 -0
  1372. package/docs/ValidationError.md +1 -1
  1373. package/docs/ValidationInfo.md +1 -1
  1374. package/index.ts +2 -2
  1375. package/models/accept-language.ts +29 -0
  1376. package/models/acknowledgment-status.ts +2 -2
  1377. package/models/additional-document.ts +2 -2
  1378. package/models/afnoracknowledgement-detail.ts +37 -0
  1379. package/models/afnoracknowledgement.ts +29 -0
  1380. package/models/afnoraddress-edit.ts +50 -0
  1381. package/models/afnoraddress-patch.ts +50 -0
  1382. package/models/afnoraddress-put.ts +50 -0
  1383. package/models/afnoraddress-read.ts +54 -0
  1384. package/models/afnoralgorithm.ts +29 -0
  1385. package/models/afnorcontains-operator.ts +28 -0
  1386. package/models/afnorcreate-directory-line-body-addressing-information.ts +35 -0
  1387. package/models/afnorcreate-directory-line-body-period.ts +27 -0
  1388. package/models/afnorcreate-directory-line-body.ts +27 -0
  1389. package/models/afnorcreate-routing-code-body.ts +53 -0
  1390. package/models/afnorcredentials.ts +2 -2
  1391. package/models/afnordestination.ts +11 -11
  1392. package/models/afnordiffusion-status.ts +29 -0
  1393. package/models/afnordirectory-line-field.ts +33 -0
  1394. package/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code-platform.ts +29 -0
  1395. package/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code-routing-code.ts +45 -0
  1396. package/models/afnordirectory-line-payload-history-legal-unit-facility-routing-code.ts +51 -0
  1397. package/models/afnordirectory-line-post201-response.ts +31 -0
  1398. package/models/afnordirectory-line-search-post200-response.ts +31 -0
  1399. package/models/afnorentity-type.ts +29 -0
  1400. package/models/afnorerror.ts +27 -0
  1401. package/models/afnorfacility-administrative-status.ts +29 -0
  1402. package/models/afnorfacility-nature.ts +29 -0
  1403. package/models/afnorfacility-payload-history-ule-b2g-additional-data.ts +43 -0
  1404. package/models/afnorfacility-payload-history.ts +57 -0
  1405. package/models/afnorfacility-payload-included.ts +53 -0
  1406. package/models/afnorfacility-type.ts +29 -0
  1407. package/models/afnorflow-ack-status.ts +30 -0
  1408. package/models/afnorflow-direction.ts +29 -0
  1409. package/models/afnorflow-info.ts +45 -0
  1410. package/models/afnorflow-profile.ts +27 -0
  1411. package/models/afnorflow-syntax.ts +32 -0
  1412. package/models/afnorflow-type.ts +40 -0
  1413. package/models/afnorflow.ts +74 -0
  1414. package/models/afnorfull-flow-info.ts +35 -0
  1415. package/models/afnorhealth-check-response.ts +2 -2
  1416. package/models/afnorlegal-unit-administrative-status.ts +29 -0
  1417. package/models/afnorlegal-unit-payload-history.ts +37 -0
  1418. package/models/afnorlegal-unit-payload-included-no-siren.ts +33 -0
  1419. package/models/afnorlegal-unit-payload-included.ts +37 -0
  1420. package/models/afnorplatform-status.ts +29 -0
  1421. package/models/afnorprocessing-rule.ts +33 -0
  1422. package/models/afnorreason-code-enum.ts +42 -0
  1423. package/models/afnorreason-code.ts +26 -0
  1424. package/models/afnorrecipient-platform-type.ts +29 -0
  1425. package/models/afnorresult.ts +5 -2
  1426. package/models/afnorrouting-code-administrative-status.ts +29 -0
  1427. package/models/afnorrouting-code-field.ts +35 -0
  1428. package/models/afnorrouting-code-payload-history-legal-unit-facility.ts +57 -0
  1429. package/models/afnorrouting-code-post201-response.ts +31 -0
  1430. package/models/afnorrouting-code-search-filters-administrative-status.ts +29 -0
  1431. package/models/afnorrouting-code-search-filters-routing-code-name.ts +29 -0
  1432. package/models/afnorrouting-code-search-filters-routing-identifier.ts +29 -0
  1433. package/models/afnorrouting-code-search-filters.ts +47 -0
  1434. package/models/afnorrouting-code-search-post200-response.ts +31 -0
  1435. package/models/afnorrouting-code-search-sorting-inner.ts +32 -0
  1436. package/models/afnorrouting-code-search.ts +54 -0
  1437. package/models/afnorsearch-directory-line-filters-addressing-identifier.ts +29 -0
  1438. package/models/afnorsearch-directory-line-filters-addressing-suffix.ts +29 -0
  1439. package/models/afnorsearch-directory-line-filters.ts +39 -0
  1440. package/models/afnorsearch-directory-line-sorting-inner.ts +32 -0
  1441. package/models/afnorsearch-directory-line.ts +45 -0
  1442. package/models/afnorsearch-flow-content.ts +31 -0
  1443. package/models/afnorsearch-flow-filters.ts +46 -0
  1444. package/models/afnorsearch-flow-params.ts +27 -0
  1445. package/models/afnorsearch-siren-filters-administrative-status.ts +29 -0
  1446. package/models/afnorsearch-siren-filters-business-name.ts +29 -0
  1447. package/models/afnorsearch-siren-filters-entity-type.ts +29 -0
  1448. package/models/afnorsearch-siren-filters-siren.ts +29 -0
  1449. package/models/afnorsearch-siren-filters.ts +35 -0
  1450. package/models/afnorsearch-siren-sorting-inner.ts +32 -0
  1451. package/models/afnorsearch-siren.ts +45 -0
  1452. package/models/afnorsearch-siret-filters-address-lines.ts +29 -0
  1453. package/models/afnorsearch-siret-filters-administrative-status.ts +29 -0
  1454. package/models/afnorsearch-siret-filters-country-subdivision.ts +29 -0
  1455. package/models/afnorsearch-siret-filters-facility-type.ts +29 -0
  1456. package/models/afnorsearch-siret-filters-locality.ts +29 -0
  1457. package/models/afnorsearch-siret-filters-name.ts +29 -0
  1458. package/models/afnorsearch-siret-filters-postal-code.ts +29 -0
  1459. package/models/afnorsearch-siret-filters-siret.ts +29 -0
  1460. package/models/afnorsearch-siret-filters.ts +55 -0
  1461. package/models/afnorsearch-siret-sorting-inner.ts +32 -0
  1462. package/models/afnorsearch-siret.ts +53 -0
  1463. package/models/afnorsiren-field.ts +32 -0
  1464. package/models/afnorsiren-search-post200-response.ts +31 -0
  1465. package/models/afnorsiret-field.ts +41 -0
  1466. package/models/afnorsiret-search-post200-response.ts +31 -0
  1467. package/models/afnorsorting-order.ts +29 -0
  1468. package/models/afnorstrict-operator.ts +28 -0
  1469. package/models/afnorupdate-patch-directory-line-body.ts +23 -0
  1470. package/models/afnorupdate-patch-routing-code-body.ts +37 -0
  1471. package/models/afnorupdate-put-routing-code-body.ts +37 -0
  1472. package/models/afnorwebhook-callback-content.ts +26 -0
  1473. package/models/aggregated-payment-input.ts +37 -0
  1474. package/models/aggregated-transaction-input.ts +59 -0
  1475. package/models/allowance-charge-reason-code.ts +65 -0
  1476. package/models/allowance-charge.ts +14 -6
  1477. package/models/allowance-reason-code.ts +2 -2
  1478. package/models/allowance-total-amount.ts +2 -2
  1479. package/models/amount-due.ts +2 -2
  1480. package/models/amount.ts +3 -3
  1481. package/models/amount1.ts +22 -0
  1482. package/models/apierror.ts +2 -2
  1483. package/models/apiprofile.ts +3 -2
  1484. package/models/async-task-status.ts +2 -2
  1485. package/models/base-amount.ts +2 -2
  1486. package/models/bounding-box-schema.ts +2 -2
  1487. package/models/buyercountry.ts +25 -0
  1488. package/models/celery-status.ts +2 -2
  1489. package/models/certificate-info-response.ts +2 -2
  1490. package/models/charge-total-amount.ts +2 -2
  1491. package/models/{facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.ts → chorus-pro-credentials.ts} +3 -3
  1492. package/models/chorus-pro-destination.ts +2 -2
  1493. package/models/chorus-pro-result.ts +2 -2
  1494. package/models/contact.ts +2 -2
  1495. package/models/convert-resume-request.ts +2 -2
  1496. package/models/convert-success-response.ts +2 -2
  1497. package/models/convert-validation-failed-response.ts +17 -2
  1498. package/models/country-code.ts +197 -0
  1499. package/models/create-aggregated-report-request.ts +66 -0
  1500. package/models/create-ereporting-request.ts +73 -0
  1501. package/models/currency-code.ts +80 -0
  1502. package/models/currency.ts +25 -0
  1503. package/models/delivery-party.ts +2 -2
  1504. package/models/destination.ts +8 -2
  1505. package/models/directory-line-include.ts +31 -0
  1506. package/models/doc-type.ts +31 -0
  1507. package/models/document-type-info.ts +2 -2
  1508. package/models/electronic-address.ts +8 -2
  1509. package/models/enriched-invoice-info.ts +20 -2
  1510. package/models/ereporting-flow-type.ts +31 -0
  1511. package/models/error-level.ts +2 -2
  1512. package/models/error-source.ts +2 -2
  1513. package/models/extraction-info.ts +2 -2
  1514. package/models/factur-xinvoice.ts +2 -2
  1515. package/models/factur-xpdfinfo.ts +2 -2
  1516. package/models/facture-electronique-models-invoice-type-code.ts +91 -0
  1517. package/models/facture-electronique-rest-api-schemas-convert-validation-error.ts +39 -0
  1518. package/models/facture-electronique-rest-api-schemas-processing-chorus-pro-credentials.ts +2 -2
  1519. package/models/field-status.ts +2 -2
  1520. package/models/file-info.ts +2 -2
  1521. package/models/files-info.ts +2 -2
  1522. package/models/flow-direction.ts +2 -2
  1523. package/models/flow-profile.ts +2 -2
  1524. package/models/flow-summary.ts +8 -2
  1525. package/models/flow-syntax.ts +2 -2
  1526. package/models/flow-type.ts +12 -4
  1527. package/models/generate-aggregated-report-response.ts +50 -0
  1528. package/models/generate-certificate-request.ts +2 -2
  1529. package/models/generate-certificate-response.ts +2 -2
  1530. package/models/generate-ereporting-response.ts +42 -0
  1531. package/models/get-chorus-pro-id-request.ts +4 -4
  1532. package/models/get-chorus-pro-id-response.ts +2 -2
  1533. package/models/get-invoice-request.ts +4 -4
  1534. package/models/get-invoice-response.ts +8 -2
  1535. package/models/get-structure-request.ts +4 -4
  1536. package/models/get-structure-response.ts +8 -2
  1537. package/models/global-allowance-amount.ts +2 -2
  1538. package/models/gross-unit-price.ts +2 -2
  1539. package/models/httpvalidation-error.ts +2 -2
  1540. package/models/incoming-invoice.ts +4 -4
  1541. package/models/incoming-supplier.ts +2 -2
  1542. package/models/index.ts +139 -4
  1543. package/models/invoice-format.ts +2 -2
  1544. package/models/invoice-input.ts +76 -0
  1545. package/models/invoice-line-allowance-amount.ts +2 -2
  1546. package/models/invoice-line.ts +7 -2
  1547. package/models/invoice-note.ts +5 -2
  1548. package/models/invoice-payment-input.ts +45 -0
  1549. package/models/invoice-references.ts +2 -2
  1550. package/models/invoice-status.ts +2 -2
  1551. package/models/invoice-totals-prepayment.ts +2 -2
  1552. package/models/invoice-totals.ts +2 -2
  1553. package/models/invoice-type-code-output.ts +91 -0
  1554. package/models/invoice-type-code.ts +8 -67
  1555. package/models/invoicing-framework-code.ts +2 -2
  1556. package/models/invoicing-framework.ts +5 -2
  1557. package/models/line-net-amount.ts +2 -2
  1558. package/models/line-sub-type.ts +30 -0
  1559. package/models/line-total-amount.ts +2 -2
  1560. package/models/location-inner.ts +19 -0
  1561. package/models/mandatory-note-schema.ts +2 -2
  1562. package/models/manual-rate.ts +2 -2
  1563. package/models/manual-vat-rate.ts +2 -2
  1564. package/models/missing-field.ts +2 -2
  1565. package/models/operation-nature.ts +2 -2
  1566. package/models/output-format.ts +2 -2
  1567. package/models/page-dimensions-schema.ts +2 -2
  1568. package/models/payee.ts +2 -2
  1569. package/models/payment-amount-by-rate.ts +30 -0
  1570. package/models/payment-card.ts +2 -2
  1571. package/models/payment-means.ts +2 -2
  1572. package/models/pdfvalidation-result-api.ts +2 -2
  1573. package/models/pdpcredentials.ts +2 -2
  1574. package/models/percentage.ts +2 -2
  1575. package/models/postal-address.ts +2 -2
  1576. package/models/price-allowance-amount.ts +2 -2
  1577. package/models/price-basis-quantity.ts +2 -2
  1578. package/models/processing-options.ts +2 -2
  1579. package/models/processing-rule.ts +33 -0
  1580. package/models/product-characteristic.ts +2 -2
  1581. package/models/product-classification.ts +2 -2
  1582. package/models/quantity.ts +2 -2
  1583. package/models/rate.ts +22 -0
  1584. package/models/rate1.ts +22 -0
  1585. package/models/recipient.ts +2 -2
  1586. package/models/report-period.ts +30 -0
  1587. package/models/report-sender.ts +31 -0
  1588. package/models/rounding-amount.ts +2 -2
  1589. package/models/routing-code-include.ts +29 -0
  1590. package/models/scheme-id.ts +31 -3
  1591. package/models/search-flow-request.ts +2 -2
  1592. package/models/search-flow-response.ts +2 -2
  1593. package/models/search-services-response.ts +11 -2
  1594. package/models/search-structure-request.ts +4 -4
  1595. package/models/search-structure-response.ts +2 -2
  1596. package/models/sellercountry.ts +25 -0
  1597. package/models/signature-info-api.ts +2 -2
  1598. package/models/signature-info.ts +2 -2
  1599. package/models/signature-parameters.ts +2 -2
  1600. package/models/simplified-invoice-data.ts +20 -2
  1601. package/models/siret-include.ts +28 -0
  1602. package/models/structure-info.ts +2 -2
  1603. package/models/structure-parameters.ts +2 -2
  1604. package/models/structure-service.ts +2 -2
  1605. package/models/submission-mode.ts +2 -2
  1606. package/models/submit-aggregated-report-request.ts +34 -0
  1607. package/models/submit-complete-invoice-request.ts +2 -2
  1608. package/models/submit-complete-invoice-response.ts +2 -2
  1609. package/models/submit-ereporting-request.ts +34 -0
  1610. package/models/submit-ereporting-response.ts +45 -0
  1611. package/models/submit-flow-request.ts +2 -2
  1612. package/models/submit-flow-response.ts +2 -2
  1613. package/models/submit-gross-amount.ts +2 -2
  1614. package/models/submit-invoice-request.ts +4 -4
  1615. package/models/submit-invoice-response.ts +2 -2
  1616. package/models/submit-net-amount.ts +2 -2
  1617. package/models/submit-vat-amount.ts +2 -2
  1618. package/models/supplementary-attachment.ts +17 -2
  1619. package/models/supplier.ts +2 -2
  1620. package/models/task-response.ts +2 -2
  1621. package/models/tax-breakdown-input.ts +34 -0
  1622. package/models/tax-due-date-type.ts +33 -0
  1623. package/models/tax-representative.ts +2 -2
  1624. package/models/taxable-amount.ts +2 -2
  1625. package/models/taxableamount.ts +22 -0
  1626. package/models/taxamount.ts +22 -0
  1627. package/models/taxamount1.ts +22 -0
  1628. package/models/taxamount2.ts +22 -0
  1629. package/models/taxexclusiveamount.ts +22 -0
  1630. package/models/taxexclusiveamount1.ts +22 -0
  1631. package/models/total-gross-amount.ts +2 -2
  1632. package/models/total-net-amount.ts +2 -2
  1633. package/models/total-vatamount.ts +2 -2
  1634. package/models/transaction-category.ts +31 -0
  1635. package/models/transmission-type-code.ts +29 -0
  1636. package/models/unit-net-price.ts +2 -2
  1637. package/models/unit-of-measure.ts +2 -2
  1638. package/models/validate-ereporting-request.ts +29 -0
  1639. package/models/validate-ereporting-response.ts +49 -0
  1640. package/models/validation-error-detail.ts +2 -2
  1641. package/models/validation-error-response.ts +2 -2
  1642. package/models/validation-error.ts +4 -4
  1643. package/models/validation-info.ts +4 -4
  1644. package/models/validation-success-response.ts +2 -2
  1645. package/models/vat-rate.ts +2 -2
  1646. package/models/vataccounting-code.ts +2 -2
  1647. package/models/vatamount.ts +2 -2
  1648. package/models/vatcategory.ts +2 -2
  1649. package/models/vatline.ts +2 -2
  1650. package/models/vatpoint-date-code.ts +2 -2
  1651. package/models/verification-success-response.ts +2 -2
  1652. package/models/verified-field-schema.ts +2 -2
  1653. package/package.json +1 -1
  1654. package/dist/esm/models/convert-error-response.d.ts +0 -27
  1655. package/dist/esm/models/convert-error-response.js +0 -14
  1656. package/dist/esm/models/convert-pending-input-response.d.ts +0 -31
  1657. package/dist/esm/models/convert-pending-input-response.js +0 -14
  1658. package/dist/esm/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.js +0 -14
  1659. package/dist/esm/models/validation-error-loc-inner.d.ts +0 -13
  1660. package/dist/esm/models/validation-error-loc-inner.js +0 -14
  1661. package/dist/models/convert-error-response.d.ts +0 -27
  1662. package/dist/models/convert-error-response.js +0 -15
  1663. package/dist/models/convert-pending-input-response.d.ts +0 -31
  1664. package/dist/models/convert-pending-input-response.js +0 -15
  1665. package/dist/models/facture-electronique-rest-api-schemas-chorus-pro-chorus-pro-credentials.js +0 -15
  1666. package/dist/models/validation-error-loc-inner.d.ts +0 -13
  1667. package/dist/models/validation-error-loc-inner.js +0 -15
  1668. package/docs/ConvertErrorResponse.md +0 -29
  1669. package/docs/ConvertPendingInputResponse.md +0 -35
  1670. package/models/convert-error-response.ts +0 -33
  1671. package/models/convert-pending-input-response.ts +0 -39
  1672. package/models/validation-error-loc-inner.ts +0 -19
@@ -3,10 +3,10 @@
3
3
  /* eslint-disable */
4
4
  /**
5
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/
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://factpulse.fr/api/token/` This method is **recommended** for integration in your applications and CI/CD workflows. **Prerequisites:** Having set a password on your account **For users registered via email/password:** - You already have a password, use it directly **For users registered via OAuth (Google/GitHub):** - You must first set a password at: https://factpulse.fr/accounts/password/set/ - Once the password is created, you can use the API **Request example:** ```bash curl -X POST https://factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"your_email@example.com\", \"password\": \"your_password\" }\' ``` **Optional `client_uid` parameter:** To select credentials for a specific client (PA/PDP, Chorus Pro, signing certificates), add `client_uid`: ```bash curl -X POST https://factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"your_email@example.com\", \"password\": \"your_password\", \"client_uid\": \"550e8400-e29b-41d4-a716-446655440000\" }\' ``` The `client_uid` will be included in the JWT and allow the API to automatically use: - AFNOR/PDP credentials configured for this client - Chorus Pro credentials configured for this client - Electronic signature certificates configured for this client **Response:** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Access token (validity: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Refresh token (validity: 7 days) } ``` **Advantages:** - ✅ Full automation (CI/CD, scripts) - ✅ Programmatic token management - ✅ Refresh token support for automatic access renewal - ✅ Easy integration in any language/tool #### 🖥️ Method 2: Dashboard Generation (Alternative) **URL:** https://factpulse.fr/api/dashboard/ This method is suitable for quick tests or occasional use via the graphical interface. **How it works:** - Log in to the dashboard - Use the \"Generate Test Token\" or \"Generate Production Token\" buttons - Works for **all** users (OAuth and email/password), without requiring a password **Token types:** - **Test Token**: 24h validity, 1000 calls/day quota (free) - **Production Token**: 7 days validity, quota based on your plan **Advantages:** - ✅ Quick for API testing - ✅ No password required - ✅ Simple visual interface **Disadvantages:** - ❌ Requires manual action - ❌ No refresh token - ❌ Less suited for automation ### 📚 Full Documentation For more information on authentication and API usage: https://factpulse.fr/documentation-api/
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
- *
9
+ * Contact: contact@factpulse.fr
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -38,17 +38,20 @@ const base_1 = require("../base");
38
38
  const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
39
39
  return {
40
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.
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 supplier SIRET + **IBAN** (required) - A recipient SIRET - Invoice lines (description, quantity, net price) **Simplified format example**: ```json { \"number\": \"FACT-2025-001\", \"supplier\": { \"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 - `supplier.siret`: Supplier\'s SIRET (14 digits) - `supplier.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 ## Webhook notification (recommended) Instead of polling, you can receive a webhook notification when the task completes: ``` callback_url=https://your-server.com/webhook ``` The webhook will POST a JSON payload with: - `event_type`: `generation.completed` or `generation.failed` - `data.task_id`: The Celery task ID - `data.content_b64` or `data.xml_content`: The generated content - `X-Webhook-Signature` header for HMAC verification See `/docs/WEBHOOKS.md` for full documentation. ## 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
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!
43
+ * @param {string} invoiceData Invoice data in JSON format. Two formats accepted: 1. **Classic format**: Complete FacturXInvoice structure (all fields) 2. **Simplified format** (🆕 P0.1): Minimal structure with auto-enrichment Format is detected automatically!
44
44
  * @param {APIProfile} [profile] Factur-X profile: MINIMUM, BASIC, EN16931 or EXTENDED.
45
45
  * @param {OutputFormat} [outputFormat] Output format: \\\'xml\\\' (XML only) or \\\'pdf\\\' (Factur-X PDF with embedded XML).
46
46
  * @param {boolean} [autoEnrich] 🆕 Enable auto-enrichment from SIRET/SIREN (simplified format only)
47
47
  * @param {File | null} [sourcePdf]
48
+ * @param {string | null} [callbackUrl]
49
+ * @param {string} [webhookMode] Webhook content delivery: \\\'inline\\\' (base64 in payload) or \\\'download_url\\\' (temporary URL, 1h TTL)
50
+ * @param {boolean | null} [skipBrFr]
48
51
  * @param {*} [options] Override http request option.
49
52
  * @throws {RequiredError}
50
53
  */
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 = {}) {
54
+ generateInvoiceApiV1ProcessingGenerateInvoicePost: (invoiceData_1, profile_1, outputFormat_1, autoEnrich_1, sourcePdf_1, callbackUrl_1, webhookMode_1, skipBrFr_1, ...args_1) => __awaiter(this, [invoiceData_1, profile_1, outputFormat_1, autoEnrich_1, sourcePdf_1, callbackUrl_1, webhookMode_1, skipBrFr_1, ...args_1], void 0, function* (invoiceData, profile, outputFormat, autoEnrich, sourcePdf, callbackUrl, webhookMode, skipBrFr, options = {}) {
52
55
  // verify required parameter 'invoiceData' is not null or undefined
53
56
  (0, common_1.assertParamExists)('generateInvoiceApiV1ProcessingGenerateInvoicePost', 'invoiceData', invoiceData);
54
57
  const localVarPath = `/api/v1/processing/generate-invoice`;
@@ -80,6 +83,15 @@ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
80
83
  if (sourcePdf !== undefined) {
81
84
  localVarFormParams.append('source_pdf', sourcePdf);
82
85
  }
86
+ if (callbackUrl !== undefined) {
87
+ localVarFormParams.append('callback_url', callbackUrl);
88
+ }
89
+ if (webhookMode !== undefined) {
90
+ localVarFormParams.append('webhook_mode', webhookMode);
91
+ }
92
+ if (skipBrFr !== undefined) {
93
+ localVarFormParams.append('skip_br_fr', String(skipBrFr));
94
+ }
83
95
  localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
84
96
  localVarHeaderParameter['Accept'] = 'application/json';
85
97
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -92,7 +104,7 @@ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
92
104
  };
93
105
  }),
94
106
  /**
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)
107
+ * 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://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
108
  * @summary Generate a self-signed X.509 test certificate
97
109
  * @param {GenerateCertificateRequest} generateCertificateRequest
98
110
  * @param {*} [options] Override http request option.
@@ -128,7 +140,7 @@ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
128
140
  /**
129
141
  * 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
142
  * @summary Get task generation status
131
- * @param {string} taskId
143
+ * @param {string} taskId Celery task ID returned by async endpoints (UUID format)
132
144
  * @param {*} [options] Override http request option.
133
145
  * @throws {RequiredError}
134
146
  */
@@ -224,6 +236,8 @@ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
224
236
  * 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
237
  * @summary Sign a PDF asynchronously (Celery)
226
238
  * @param {File} pdfFile PDF file to sign (processed asynchronously)
239
+ * @param {string | null} [callbackUrl]
240
+ * @param {string} [webhookMode] Webhook content delivery: \\\'inline\\\' (base64 in payload) or \\\'download_url\\\' (temporary URL, 1h TTL)
227
241
  * @param {string | null} [reason]
228
242
  * @param {string | null} [location]
229
243
  * @param {string | null} [contact]
@@ -233,7 +247,7 @@ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
233
247
  * @param {*} [options] Override http request option.
234
248
  * @throws {RequiredError}
235
249
  */
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 = {}) {
250
+ signPdfAsyncApiV1ProcessingSignPdfAsyncPost: (pdfFile_1, callbackUrl_1, webhookMode_1, reason_1, location_1, contact_1, fieldName_1, usePadesLt_1, useTimestamp_1, ...args_1) => __awaiter(this, [pdfFile_1, callbackUrl_1, webhookMode_1, reason_1, location_1, contact_1, fieldName_1, usePadesLt_1, useTimestamp_1, ...args_1], void 0, function* (pdfFile, callbackUrl, webhookMode, reason, location, contact, fieldName, usePadesLt, useTimestamp, options = {}) {
237
251
  // verify required parameter 'pdfFile' is not null or undefined
238
252
  (0, common_1.assertParamExists)('signPdfAsyncApiV1ProcessingSignPdfAsyncPost', 'pdfFile', pdfFile);
239
253
  const localVarPath = `/api/v1/processing/sign-pdf-async`;
@@ -253,6 +267,12 @@ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
253
267
  if (pdfFile !== undefined) {
254
268
  localVarFormParams.append('pdf_file', pdfFile);
255
269
  }
270
+ if (callbackUrl !== undefined) {
271
+ localVarFormParams.append('callback_url', callbackUrl);
272
+ }
273
+ if (webhookMode !== undefined) {
274
+ localVarFormParams.append('webhook_mode', webhookMode);
275
+ }
256
276
  if (reason !== undefined) {
257
277
  localVarFormParams.append('reason', reason);
258
278
  }
@@ -317,13 +337,15 @@ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
317
337
  };
318
338
  }),
319
339
  /**
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).
340
+ * 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 **Webhook notification (recommended):** Instead of polling, add `?callback_url=https://your-server.com/webhook` to receive automatic notification: - `event_type`: `submission.completed`, `submission.failed`, or `submission.partial` - `data.submission_result`: Complete submission result - `X-Webhook-Signature` header for HMAC verification **Credentials and signature**: Same modes as the synchronous version (JWT or payload).
321
341
  * @summary Submit a complete invoice (asynchronous with Celery)
322
342
  * @param {SubmitCompleteInvoiceRequest} submitCompleteInvoiceRequest
343
+ * @param {string | null} [callbackUrl] Webhook URL for async notification when submission completes.
344
+ * @param {string} [webhookMode] Webhook content delivery: \'inline\' (base64 in payload) or \'download_url\' (temporary URL, 1h TTL)
323
345
  * @param {*} [options] Override http request option.
324
346
  * @throws {RequiredError}
325
347
  */
326
- submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost: (submitCompleteInvoiceRequest_1, ...args_1) => __awaiter(this, [submitCompleteInvoiceRequest_1, ...args_1], void 0, function* (submitCompleteInvoiceRequest, options = {}) {
348
+ submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost: (submitCompleteInvoiceRequest_1, callbackUrl_1, webhookMode_1, ...args_1) => __awaiter(this, [submitCompleteInvoiceRequest_1, callbackUrl_1, webhookMode_1, ...args_1], void 0, function* (submitCompleteInvoiceRequest, callbackUrl, webhookMode, options = {}) {
327
349
  // verify required parameter 'submitCompleteInvoiceRequest' is not null or undefined
328
350
  (0, common_1.assertParamExists)('submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost', 'submitCompleteInvoiceRequest', submitCompleteInvoiceRequest);
329
351
  const localVarPath = `/api/v1/processing/invoices/submit-complete-async`;
@@ -339,6 +361,12 @@ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
339
361
  // authentication HTTPBearer required
340
362
  // http bearer authentication required
341
363
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
364
+ if (callbackUrl !== undefined) {
365
+ localVarQueryParameter['callback_url'] = callbackUrl;
366
+ }
367
+ if (webhookMode !== undefined) {
368
+ localVarQueryParameter['webhook_mode'] = webhookMode;
369
+ }
342
370
  localVarHeaderParameter['Content-Type'] = 'application/json';
343
371
  localVarHeaderParameter['Accept'] = 'application/json';
344
372
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -356,10 +384,11 @@ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
356
384
  * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
357
385
  * @param {APIProfile | null} [profile]
358
386
  * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). If False, uses basic metadata validation.
387
+ * @param {boolean | null} [skipBrFr]
359
388
  * @param {*} [options] Override http request option.
360
389
  * @throws {RequiredError}
361
390
  */
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 = {}) {
391
+ validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost: (pdfFile_1, profile_1, useVerapdf_1, skipBrFr_1, ...args_1) => __awaiter(this, [pdfFile_1, profile_1, useVerapdf_1, skipBrFr_1, ...args_1], void 0, function* (pdfFile, profile, useVerapdf, skipBrFr, options = {}) {
363
392
  // verify required parameter 'pdfFile' is not null or undefined
364
393
  (0, common_1.assertParamExists)('validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost', 'pdfFile', pdfFile);
365
394
  const localVarPath = `/api/v1/processing/validate-facturx-pdf`;
@@ -385,6 +414,9 @@ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
385
414
  if (useVerapdf !== undefined) {
386
415
  localVarFormParams.append('use_verapdf', String(useVerapdf));
387
416
  }
417
+ if (skipBrFr !== undefined) {
418
+ localVarFormParams.append('skip_br_fr', String(skipBrFr));
419
+ }
388
420
  localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
389
421
  localVarHeaderParameter['Accept'] = 'application/json';
390
422
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -397,15 +429,17 @@ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
397
429
  };
398
430
  }),
399
431
  /**
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
432
+ * 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 ## Webhook notification (recommended) Instead of polling, you can receive a webhook notification when validation completes: ``` callback_url=https://your-server.com/webhook webhook_mode=download_url # Optional: get download URL instead of base64 ``` The webhook will POST a JSON payload with: - `event_type`: `validation.completed` or `validation.failed` - `data.is_compliant`: Whether the PDF is Factur-X compliant - `data.detected_profile`: The detected Factur-X profile - `X-Webhook-Signature` header for HMAC verification ## 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
433
  * @summary Validate a Factur-X PDF (asynchronous with polling)
402
434
  * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
403
435
  * @param {APIProfile | null} [profile]
404
436
  * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). May take several seconds.
437
+ * @param {string | null} [callbackUrl]
438
+ * @param {string} [webhookMode] Webhook content delivery: \\\'inline\\\' (base64 in payload) or \\\'download_url\\\' (temporary URL, 1h TTL)
405
439
  * @param {*} [options] Override http request option.
406
440
  * @throws {RequiredError}
407
441
  */
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 = {}) {
442
+ validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost: (pdfFile_1, profile_1, useVerapdf_1, callbackUrl_1, webhookMode_1, ...args_1) => __awaiter(this, [pdfFile_1, profile_1, useVerapdf_1, callbackUrl_1, webhookMode_1, ...args_1], void 0, function* (pdfFile, profile, useVerapdf, callbackUrl, webhookMode, options = {}) {
409
443
  // verify required parameter 'pdfFile' is not null or undefined
410
444
  (0, common_1.assertParamExists)('validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost', 'pdfFile', pdfFile);
411
445
  const localVarPath = `/api/v1/processing/validate-facturx-async`;
@@ -431,6 +465,12 @@ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
431
465
  if (useVerapdf !== undefined) {
432
466
  localVarFormParams.append('use_verapdf', String(useVerapdf));
433
467
  }
468
+ if (callbackUrl !== undefined) {
469
+ localVarFormParams.append('callback_url', callbackUrl);
470
+ }
471
+ if (webhookMode !== undefined) {
472
+ localVarFormParams.append('webhook_mode', webhookMode);
473
+ }
434
474
  localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
435
475
  localVarHeaderParameter['Accept'] = 'application/json';
436
476
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -485,10 +525,11 @@ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
485
525
  * @summary Validate an existing Factur-X XML
486
526
  * @param {File} xmlFile Factur-X XML file to validate (.xml format).
487
527
  * @param {APIProfile} [profile] Validation profile (MINIMUM, BASIC, EN16931, EXTENDED).
528
+ * @param {boolean | null} [skipBrFr]
488
529
  * @param {*} [options] Override http request option.
489
530
  * @throws {RequiredError}
490
531
  */
491
- validateXmlApiV1ProcessingValidateXmlPost: (xmlFile_1, profile_1, ...args_1) => __awaiter(this, [xmlFile_1, profile_1, ...args_1], void 0, function* (xmlFile, profile, options = {}) {
532
+ validateXmlApiV1ProcessingValidateXmlPost: (xmlFile_1, profile_1, skipBrFr_1, ...args_1) => __awaiter(this, [xmlFile_1, profile_1, skipBrFr_1, ...args_1], void 0, function* (xmlFile, profile, skipBrFr, options = {}) {
492
533
  // verify required parameter 'xmlFile' is not null or undefined
493
534
  (0, common_1.assertParamExists)('validateXmlApiV1ProcessingValidateXmlPost', 'xmlFile', xmlFile);
494
535
  const localVarPath = `/api/v1/processing/validate-xml`;
@@ -511,6 +552,9 @@ const InvoiceProcessingApiAxiosParamCreator = function (configuration) {
511
552
  if (profile !== undefined) {
512
553
  localVarFormParams.append('profile', profile);
513
554
  }
555
+ if (skipBrFr !== undefined) {
556
+ localVarFormParams.append('skip_br_fr', String(skipBrFr));
557
+ }
514
558
  localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
515
559
  localVarHeaderParameter['Accept'] = 'application/json';
516
560
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -532,27 +576,30 @@ const InvoiceProcessingApiFp = function (configuration) {
532
576
  const localVarAxiosParamCreator = (0, exports.InvoiceProcessingApiAxiosParamCreator)(configuration);
533
577
  return {
534
578
  /**
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.
579
+ * 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 supplier SIRET + **IBAN** (required) - A recipient SIRET - Invoice lines (description, quantity, net price) **Simplified format example**: ```json { \"number\": \"FACT-2025-001\", \"supplier\": { \"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 - `supplier.siret`: Supplier\'s SIRET (14 digits) - `supplier.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 ## Webhook notification (recommended) Instead of polling, you can receive a webhook notification when the task completes: ``` callback_url=https://your-server.com/webhook ``` The webhook will POST a JSON payload with: - `event_type`: `generation.completed` or `generation.failed` - `data.task_id`: The Celery task ID - `data.content_b64` or `data.xml_content`: The generated content - `X-Webhook-Signature` header for HMAC verification See `/docs/WEBHOOKS.md` for full documentation. ## 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
580
  * @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!
581
+ * @param {string} invoiceData Invoice data in JSON format. Two formats accepted: 1. **Classic format**: Complete FacturXInvoice structure (all fields) 2. **Simplified format** (🆕 P0.1): Minimal structure with auto-enrichment Format is detected automatically!
538
582
  * @param {APIProfile} [profile] Factur-X profile: MINIMUM, BASIC, EN16931 or EXTENDED.
539
583
  * @param {OutputFormat} [outputFormat] Output format: \\\'xml\\\' (XML only) or \\\'pdf\\\' (Factur-X PDF with embedded XML).
540
584
  * @param {boolean} [autoEnrich] 🆕 Enable auto-enrichment from SIRET/SIREN (simplified format only)
541
585
  * @param {File | null} [sourcePdf]
586
+ * @param {string | null} [callbackUrl]
587
+ * @param {string} [webhookMode] Webhook content delivery: \\\'inline\\\' (base64 in payload) or \\\'download_url\\\' (temporary URL, 1h TTL)
588
+ * @param {boolean | null} [skipBrFr]
542
589
  * @param {*} [options] Override http request option.
543
590
  * @throws {RequiredError}
544
591
  */
545
- generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, options) {
592
+ generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, callbackUrl, webhookMode, skipBrFr, options) {
546
593
  return __awaiter(this, void 0, void 0, function* () {
547
594
  var _a, _b, _c;
548
- const localVarAxiosArgs = yield localVarAxiosParamCreator.generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, options);
595
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, callbackUrl, webhookMode, skipBrFr, options);
549
596
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
550
597
  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
598
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
552
599
  });
553
600
  },
554
601
  /**
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)
602
+ * 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://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
603
  * @summary Generate a self-signed X.509 test certificate
557
604
  * @param {GenerateCertificateRequest} generateCertificateRequest
558
605
  * @param {*} [options] Override http request option.
@@ -570,7 +617,7 @@ const InvoiceProcessingApiFp = function (configuration) {
570
617
  /**
571
618
  * 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
619
  * @summary Get task generation status
573
- * @param {string} taskId
620
+ * @param {string} taskId Celery task ID returned by async endpoints (UUID format)
574
621
  * @param {*} [options] Override http request option.
575
622
  * @throws {RequiredError}
576
623
  */
@@ -609,6 +656,8 @@ const InvoiceProcessingApiFp = function (configuration) {
609
656
  * 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
657
  * @summary Sign a PDF asynchronously (Celery)
611
658
  * @param {File} pdfFile PDF file to sign (processed asynchronously)
659
+ * @param {string | null} [callbackUrl]
660
+ * @param {string} [webhookMode] Webhook content delivery: \\\'inline\\\' (base64 in payload) or \\\'download_url\\\' (temporary URL, 1h TTL)
612
661
  * @param {string | null} [reason]
613
662
  * @param {string | null} [location]
614
663
  * @param {string | null} [contact]
@@ -618,10 +667,10 @@ const InvoiceProcessingApiFp = function (configuration) {
618
667
  * @param {*} [options] Override http request option.
619
668
  * @throws {RequiredError}
620
669
  */
621
- signPdfAsyncApiV1ProcessingSignPdfAsyncPost(pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options) {
670
+ signPdfAsyncApiV1ProcessingSignPdfAsyncPost(pdfFile, callbackUrl, webhookMode, reason, location, contact, fieldName, usePadesLt, useTimestamp, options) {
622
671
  return __awaiter(this, void 0, void 0, function* () {
623
672
  var _a, _b, _c;
624
- const localVarAxiosArgs = yield localVarAxiosParamCreator.signPdfAsyncApiV1ProcessingSignPdfAsyncPost(pdfFile, reason, location, contact, fieldName, usePadesLt, useTimestamp, options);
673
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.signPdfAsyncApiV1ProcessingSignPdfAsyncPost(pdfFile, callbackUrl, webhookMode, reason, location, contact, fieldName, usePadesLt, useTimestamp, options);
625
674
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
626
675
  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
676
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -644,16 +693,18 @@ const InvoiceProcessingApiFp = function (configuration) {
644
693
  });
645
694
  },
646
695
  /**
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).
696
+ * 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 **Webhook notification (recommended):** Instead of polling, add `?callback_url=https://your-server.com/webhook` to receive automatic notification: - `event_type`: `submission.completed`, `submission.failed`, or `submission.partial` - `data.submission_result`: Complete submission result - `X-Webhook-Signature` header for HMAC verification **Credentials and signature**: Same modes as the synchronous version (JWT or payload).
648
697
  * @summary Submit a complete invoice (asynchronous with Celery)
649
698
  * @param {SubmitCompleteInvoiceRequest} submitCompleteInvoiceRequest
699
+ * @param {string | null} [callbackUrl] Webhook URL for async notification when submission completes.
700
+ * @param {string} [webhookMode] Webhook content delivery: \'inline\' (base64 in payload) or \'download_url\' (temporary URL, 1h TTL)
650
701
  * @param {*} [options] Override http request option.
651
702
  * @throws {RequiredError}
652
703
  */
653
- submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, options) {
704
+ submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, callbackUrl, webhookMode, options) {
654
705
  return __awaiter(this, void 0, void 0, function* () {
655
706
  var _a, _b, _c;
656
- const localVarAxiosArgs = yield localVarAxiosParamCreator.submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, options);
707
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, callbackUrl, webhookMode, options);
657
708
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
658
709
  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
710
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -665,31 +716,34 @@ const InvoiceProcessingApiFp = function (configuration) {
665
716
  * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
666
717
  * @param {APIProfile | null} [profile]
667
718
  * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). If False, uses basic metadata validation.
719
+ * @param {boolean | null} [skipBrFr]
668
720
  * @param {*} [options] Override http request option.
669
721
  * @throws {RequiredError}
670
722
  */
671
- validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, options) {
723
+ validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, skipBrFr, options) {
672
724
  return __awaiter(this, void 0, void 0, function* () {
673
725
  var _a, _b, _c;
674
- const localVarAxiosArgs = yield localVarAxiosParamCreator.validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, options);
726
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, skipBrFr, options);
675
727
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
676
728
  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
729
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
678
730
  });
679
731
  },
680
732
  /**
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
733
+ * 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 ## Webhook notification (recommended) Instead of polling, you can receive a webhook notification when validation completes: ``` callback_url=https://your-server.com/webhook webhook_mode=download_url # Optional: get download URL instead of base64 ``` The webhook will POST a JSON payload with: - `event_type`: `validation.completed` or `validation.failed` - `data.is_compliant`: Whether the PDF is Factur-X compliant - `data.detected_profile`: The detected Factur-X profile - `X-Webhook-Signature` header for HMAC verification ## 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
734
  * @summary Validate a Factur-X PDF (asynchronous with polling)
683
735
  * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
684
736
  * @param {APIProfile | null} [profile]
685
737
  * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). May take several seconds.
738
+ * @param {string | null} [callbackUrl]
739
+ * @param {string} [webhookMode] Webhook content delivery: \\\'inline\\\' (base64 in payload) or \\\'download_url\\\' (temporary URL, 1h TTL)
686
740
  * @param {*} [options] Override http request option.
687
741
  * @throws {RequiredError}
688
742
  */
689
- validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, options) {
743
+ validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, callbackUrl, webhookMode, options) {
690
744
  return __awaiter(this, void 0, void 0, function* () {
691
745
  var _a, _b, _c;
692
- const localVarAxiosArgs = yield localVarAxiosParamCreator.validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, options);
746
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, callbackUrl, webhookMode, options);
693
747
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
694
748
  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
749
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -716,13 +770,14 @@ const InvoiceProcessingApiFp = function (configuration) {
716
770
  * @summary Validate an existing Factur-X XML
717
771
  * @param {File} xmlFile Factur-X XML file to validate (.xml format).
718
772
  * @param {APIProfile} [profile] Validation profile (MINIMUM, BASIC, EN16931, EXTENDED).
773
+ * @param {boolean | null} [skipBrFr]
719
774
  * @param {*} [options] Override http request option.
720
775
  * @throws {RequiredError}
721
776
  */
722
- validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, options) {
777
+ validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, skipBrFr, options) {
723
778
  return __awaiter(this, void 0, void 0, function* () {
724
779
  var _a, _b, _c;
725
- const localVarAxiosArgs = yield localVarAxiosParamCreator.validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, options);
780
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, skipBrFr, options);
726
781
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
727
782
  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
783
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -738,21 +793,24 @@ const InvoiceProcessingApiFactory = function (configuration, basePath, axios) {
738
793
  const localVarFp = (0, exports.InvoiceProcessingApiFp)(configuration);
739
794
  return {
740
795
  /**
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.
796
+ * 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 supplier SIRET + **IBAN** (required) - A recipient SIRET - Invoice lines (description, quantity, net price) **Simplified format example**: ```json { \"number\": \"FACT-2025-001\", \"supplier\": { \"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 - `supplier.siret`: Supplier\'s SIRET (14 digits) - `supplier.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 ## Webhook notification (recommended) Instead of polling, you can receive a webhook notification when the task completes: ``` callback_url=https://your-server.com/webhook ``` The webhook will POST a JSON payload with: - `event_type`: `generation.completed` or `generation.failed` - `data.task_id`: The Celery task ID - `data.content_b64` or `data.xml_content`: The generated content - `X-Webhook-Signature` header for HMAC verification See `/docs/WEBHOOKS.md` for full documentation. ## 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
797
  * @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!
798
+ * @param {string} invoiceData Invoice data in JSON format. Two formats accepted: 1. **Classic format**: Complete FacturXInvoice structure (all fields) 2. **Simplified format** (🆕 P0.1): Minimal structure with auto-enrichment Format is detected automatically!
744
799
  * @param {APIProfile} [profile] Factur-X profile: MINIMUM, BASIC, EN16931 or EXTENDED.
745
800
  * @param {OutputFormat} [outputFormat] Output format: \\\'xml\\\' (XML only) or \\\'pdf\\\' (Factur-X PDF with embedded XML).
746
801
  * @param {boolean} [autoEnrich] 🆕 Enable auto-enrichment from SIRET/SIREN (simplified format only)
747
802
  * @param {File | null} [sourcePdf]
803
+ * @param {string | null} [callbackUrl]
804
+ * @param {string} [webhookMode] Webhook content delivery: \\\'inline\\\' (base64 in payload) or \\\'download_url\\\' (temporary URL, 1h TTL)
805
+ * @param {boolean | null} [skipBrFr]
748
806
  * @param {*} [options] Override http request option.
749
807
  * @throws {RequiredError}
750
808
  */
751
- generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, options) {
752
- return localVarFp.generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, options).then((request) => request(axios, basePath));
809
+ generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, callbackUrl, webhookMode, skipBrFr, options) {
810
+ return localVarFp.generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, callbackUrl, webhookMode, skipBrFr, options).then((request) => request(axios, basePath));
753
811
  },
754
812
  /**
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)
813
+ * 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://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
814
  * @summary Generate a self-signed X.509 test certificate
757
815
  * @param {GenerateCertificateRequest} generateCertificateRequest
758
816
  * @param {*} [options] Override http request option.
@@ -764,7 +822,7 @@ const InvoiceProcessingApiFactory = function (configuration, basePath, axios) {
764
822
  /**
765
823
  * 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
824
  * @summary Get task generation status
767
- * @param {string} taskId
825
+ * @param {string} taskId Celery task ID returned by async endpoints (UUID format)
768
826
  * @param {*} [options] Override http request option.
769
827
  * @throws {RequiredError}
770
828
  */
@@ -791,6 +849,8 @@ const InvoiceProcessingApiFactory = function (configuration, basePath, axios) {
791
849
  * 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
850
  * @summary Sign a PDF asynchronously (Celery)
793
851
  * @param {File} pdfFile PDF file to sign (processed asynchronously)
852
+ * @param {string | null} [callbackUrl]
853
+ * @param {string} [webhookMode] Webhook content delivery: \\\'inline\\\' (base64 in payload) or \\\'download_url\\\' (temporary URL, 1h TTL)
794
854
  * @param {string | null} [reason]
795
855
  * @param {string | null} [location]
796
856
  * @param {string | null} [contact]
@@ -800,8 +860,8 @@ const InvoiceProcessingApiFactory = function (configuration, basePath, axios) {
800
860
  * @param {*} [options] Override http request option.
801
861
  * @throws {RequiredError}
802
862
  */
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));
863
+ signPdfAsyncApiV1ProcessingSignPdfAsyncPost(pdfFile, callbackUrl, webhookMode, reason, location, contact, fieldName, usePadesLt, useTimestamp, options) {
864
+ return localVarFp.signPdfAsyncApiV1ProcessingSignPdfAsyncPost(pdfFile, callbackUrl, webhookMode, reason, location, contact, fieldName, usePadesLt, useTimestamp, options).then((request) => request(axios, basePath));
805
865
  },
806
866
  /**
807
867
  * 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`)
@@ -814,14 +874,16 @@ const InvoiceProcessingApiFactory = function (configuration, basePath, axios) {
814
874
  return localVarFp.submitCompleteInvoiceApiV1ProcessingInvoicesSubmitCompletePost(submitCompleteInvoiceRequest, options).then((request) => request(axios, basePath));
815
875
  },
816
876
  /**
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).
877
+ * 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 **Webhook notification (recommended):** Instead of polling, add `?callback_url=https://your-server.com/webhook` to receive automatic notification: - `event_type`: `submission.completed`, `submission.failed`, or `submission.partial` - `data.submission_result`: Complete submission result - `X-Webhook-Signature` header for HMAC verification **Credentials and signature**: Same modes as the synchronous version (JWT or payload).
818
878
  * @summary Submit a complete invoice (asynchronous with Celery)
819
879
  * @param {SubmitCompleteInvoiceRequest} submitCompleteInvoiceRequest
880
+ * @param {string | null} [callbackUrl] Webhook URL for async notification when submission completes.
881
+ * @param {string} [webhookMode] Webhook content delivery: \'inline\' (base64 in payload) or \'download_url\' (temporary URL, 1h TTL)
820
882
  * @param {*} [options] Override http request option.
821
883
  * @throws {RequiredError}
822
884
  */
823
- submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, options) {
824
- return localVarFp.submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, options).then((request) => request(axios, basePath));
885
+ submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, callbackUrl, webhookMode, options) {
886
+ return localVarFp.submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, callbackUrl, webhookMode, options).then((request) => request(axios, basePath));
825
887
  },
826
888
  /**
827
889
  * 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)
@@ -829,23 +891,26 @@ const InvoiceProcessingApiFactory = function (configuration, basePath, axios) {
829
891
  * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
830
892
  * @param {APIProfile | null} [profile]
831
893
  * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). If False, uses basic metadata validation.
894
+ * @param {boolean | null} [skipBrFr]
832
895
  * @param {*} [options] Override http request option.
833
896
  * @throws {RequiredError}
834
897
  */
835
- validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, options) {
836
- return localVarFp.validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, options).then((request) => request(axios, basePath));
898
+ validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, skipBrFr, options) {
899
+ return localVarFp.validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, skipBrFr, options).then((request) => request(axios, basePath));
837
900
  },
838
901
  /**
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
902
+ * 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 ## Webhook notification (recommended) Instead of polling, you can receive a webhook notification when validation completes: ``` callback_url=https://your-server.com/webhook webhook_mode=download_url # Optional: get download URL instead of base64 ``` The webhook will POST a JSON payload with: - `event_type`: `validation.completed` or `validation.failed` - `data.is_compliant`: Whether the PDF is Factur-X compliant - `data.detected_profile`: The detected Factur-X profile - `X-Webhook-Signature` header for HMAC verification ## 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
903
  * @summary Validate a Factur-X PDF (asynchronous with polling)
841
904
  * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
842
905
  * @param {APIProfile | null} [profile]
843
906
  * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). May take several seconds.
907
+ * @param {string | null} [callbackUrl]
908
+ * @param {string} [webhookMode] Webhook content delivery: \\\&#39;inline\\\&#39; (base64 in payload) or \\\&#39;download_url\\\&#39; (temporary URL, 1h TTL)
844
909
  * @param {*} [options] Override http request option.
845
910
  * @throws {RequiredError}
846
911
  */
847
- validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, options) {
848
- return localVarFp.validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, options).then((request) => request(axios, basePath));
912
+ validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, callbackUrl, webhookMode, options) {
913
+ return localVarFp.validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, callbackUrl, webhookMode, options).then((request) => request(axios, basePath));
849
914
  },
850
915
  /**
851
916
  * 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.
@@ -862,11 +927,12 @@ const InvoiceProcessingApiFactory = function (configuration, basePath, axios) {
862
927
  * @summary Validate an existing Factur-X XML
863
928
  * @param {File} xmlFile Factur-X XML file to validate (.xml format).
864
929
  * @param {APIProfile} [profile] Validation profile (MINIMUM, BASIC, EN16931, EXTENDED).
930
+ * @param {boolean | null} [skipBrFr]
865
931
  * @param {*} [options] Override http request option.
866
932
  * @throws {RequiredError}
867
933
  */
868
- validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, options) {
869
- return localVarFp.validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, options).then((request) => request(axios, basePath));
934
+ validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, skipBrFr, options) {
935
+ return localVarFp.validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, skipBrFr, options).then((request) => request(axios, basePath));
870
936
  },
871
937
  };
872
938
  };
@@ -876,21 +942,24 @@ exports.InvoiceProcessingApiFactory = InvoiceProcessingApiFactory;
876
942
  */
877
943
  class InvoiceProcessingApi extends base_1.BaseAPI {
878
944
  /**
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.
945
+ * 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 supplier SIRET + **IBAN** (required) - A recipient SIRET - Invoice lines (description, quantity, net price) **Simplified format example**: ```json { \"number\": \"FACT-2025-001\", \"supplier\": { \"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 - `supplier.siret`: Supplier\'s SIRET (14 digits) - `supplier.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 ## Webhook notification (recommended) Instead of polling, you can receive a webhook notification when the task completes: ``` callback_url=https://your-server.com/webhook ``` The webhook will POST a JSON payload with: - `event_type`: `generation.completed` or `generation.failed` - `data.task_id`: The Celery task ID - `data.content_b64` or `data.xml_content`: The generated content - `X-Webhook-Signature` header for HMAC verification See `/docs/WEBHOOKS.md` for full documentation. ## 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
946
  * @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!
947
+ * @param {string} invoiceData Invoice data in JSON format. Two formats accepted: 1. **Classic format**: Complete FacturXInvoice structure (all fields) 2. **Simplified format** (🆕 P0.1): Minimal structure with auto-enrichment Format is detected automatically!
882
948
  * @param {APIProfile} [profile] Factur-X profile: MINIMUM, BASIC, EN16931 or EXTENDED.
883
949
  * @param {OutputFormat} [outputFormat] Output format: \\\&#39;xml\\\&#39; (XML only) or \\\&#39;pdf\\\&#39; (Factur-X PDF with embedded XML).
884
950
  * @param {boolean} [autoEnrich] 🆕 Enable auto-enrichment from SIRET/SIREN (simplified format only)
885
951
  * @param {File | null} [sourcePdf]
952
+ * @param {string | null} [callbackUrl]
953
+ * @param {string} [webhookMode] Webhook content delivery: \\\&#39;inline\\\&#39; (base64 in payload) or \\\&#39;download_url\\\&#39; (temporary URL, 1h TTL)
954
+ * @param {boolean | null} [skipBrFr]
886
955
  * @param {*} [options] Override http request option.
887
956
  * @throws {RequiredError}
888
957
  */
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));
958
+ generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, callbackUrl, webhookMode, skipBrFr, options) {
959
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).generateInvoiceApiV1ProcessingGenerateInvoicePost(invoiceData, profile, outputFormat, autoEnrich, sourcePdf, callbackUrl, webhookMode, skipBrFr, options).then((request) => request(this.axios, this.basePath));
891
960
  }
892
961
  /**
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)
962
+ * 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://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
963
  * @summary Generate a self-signed X.509 test certificate
895
964
  * @param {GenerateCertificateRequest} generateCertificateRequest
896
965
  * @param {*} [options] Override http request option.
@@ -902,7 +971,7 @@ class InvoiceProcessingApi extends base_1.BaseAPI {
902
971
  /**
903
972
  * 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
973
  * @summary Get task generation status
905
- * @param {string} taskId
974
+ * @param {string} taskId Celery task ID returned by async endpoints (UUID format)
906
975
  * @param {*} [options] Override http request option.
907
976
  * @throws {RequiredError}
908
977
  */
@@ -929,6 +998,8 @@ class InvoiceProcessingApi extends base_1.BaseAPI {
929
998
  * 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
999
  * @summary Sign a PDF asynchronously (Celery)
931
1000
  * @param {File} pdfFile PDF file to sign (processed asynchronously)
1001
+ * @param {string | null} [callbackUrl]
1002
+ * @param {string} [webhookMode] Webhook content delivery: \\\&#39;inline\\\&#39; (base64 in payload) or \\\&#39;download_url\\\&#39; (temporary URL, 1h TTL)
932
1003
  * @param {string | null} [reason]
933
1004
  * @param {string | null} [location]
934
1005
  * @param {string | null} [contact]
@@ -938,8 +1009,8 @@ class InvoiceProcessingApi extends base_1.BaseAPI {
938
1009
  * @param {*} [options] Override http request option.
939
1010
  * @throws {RequiredError}
940
1011
  */
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));
1012
+ signPdfAsyncApiV1ProcessingSignPdfAsyncPost(pdfFile, callbackUrl, webhookMode, reason, location, contact, fieldName, usePadesLt, useTimestamp, options) {
1013
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).signPdfAsyncApiV1ProcessingSignPdfAsyncPost(pdfFile, callbackUrl, webhookMode, reason, location, contact, fieldName, usePadesLt, useTimestamp, options).then((request) => request(this.axios, this.basePath));
943
1014
  }
944
1015
  /**
945
1016
  * 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`)
@@ -952,14 +1023,16 @@ class InvoiceProcessingApi extends base_1.BaseAPI {
952
1023
  return (0, exports.InvoiceProcessingApiFp)(this.configuration).submitCompleteInvoiceApiV1ProcessingInvoicesSubmitCompletePost(submitCompleteInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
953
1024
  }
954
1025
  /**
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).
1026
+ * 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 **Webhook notification (recommended):** Instead of polling, add `?callback_url=https://your-server.com/webhook` to receive automatic notification: - `event_type`: `submission.completed`, `submission.failed`, or `submission.partial` - `data.submission_result`: Complete submission result - `X-Webhook-Signature` header for HMAC verification **Credentials and signature**: Same modes as the synchronous version (JWT or payload).
956
1027
  * @summary Submit a complete invoice (asynchronous with Celery)
957
1028
  * @param {SubmitCompleteInvoiceRequest} submitCompleteInvoiceRequest
1029
+ * @param {string | null} [callbackUrl] Webhook URL for async notification when submission completes.
1030
+ * @param {string} [webhookMode] Webhook content delivery: \&#39;inline\&#39; (base64 in payload) or \&#39;download_url\&#39; (temporary URL, 1h TTL)
958
1031
  * @param {*} [options] Override http request option.
959
1032
  * @throws {RequiredError}
960
1033
  */
961
- submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, options) {
962
- return (0, exports.InvoiceProcessingApiFp)(this.configuration).submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
1034
+ submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, callbackUrl, webhookMode, options) {
1035
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).submitCompleteInvoiceAsyncApiV1ProcessingInvoicesSubmitCompleteAsyncPost(submitCompleteInvoiceRequest, callbackUrl, webhookMode, options).then((request) => request(this.axios, this.basePath));
963
1036
  }
964
1037
  /**
965
1038
  * 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)
@@ -967,23 +1040,26 @@ class InvoiceProcessingApi extends base_1.BaseAPI {
967
1040
  * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
968
1041
  * @param {APIProfile | null} [profile]
969
1042
  * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). If False, uses basic metadata validation.
1043
+ * @param {boolean | null} [skipBrFr]
970
1044
  * @param {*} [options] Override http request option.
971
1045
  * @throws {RequiredError}
972
1046
  */
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));
1047
+ validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, skipBrFr, options) {
1048
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).validateFacturxPdfApiV1ProcessingValidateFacturxPdfPost(pdfFile, profile, useVerapdf, skipBrFr, options).then((request) => request(this.axios, this.basePath));
975
1049
  }
976
1050
  /**
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
1051
+ * 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 ## Webhook notification (recommended) Instead of polling, you can receive a webhook notification when validation completes: ``` callback_url=https://your-server.com/webhook webhook_mode=download_url # Optional: get download URL instead of base64 ``` The webhook will POST a JSON payload with: - `event_type`: `validation.completed` or `validation.failed` - `data.is_compliant`: Whether the PDF is Factur-X compliant - `data.detected_profile`: The detected Factur-X profile - `X-Webhook-Signature` header for HMAC verification ## 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
1052
  * @summary Validate a Factur-X PDF (asynchronous with polling)
979
1053
  * @param {File} pdfFile Factur-X PDF file to validate (.pdf format).
980
1054
  * @param {APIProfile | null} [profile]
981
1055
  * @param {boolean} [useVerapdf] Enable strict PDF/A validation with VeraPDF (recommended for production). May take several seconds.
1056
+ * @param {string | null} [callbackUrl]
1057
+ * @param {string} [webhookMode] Webhook content delivery: \\\&#39;inline\\\&#39; (base64 in payload) or \\\&#39;download_url\\\&#39; (temporary URL, 1h TTL)
982
1058
  * @param {*} [options] Override http request option.
983
1059
  * @throws {RequiredError}
984
1060
  */
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));
1061
+ validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, callbackUrl, webhookMode, options) {
1062
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).validateFacturxPdfAsyncApiV1ProcessingValidateFacturxAsyncPost(pdfFile, profile, useVerapdf, callbackUrl, webhookMode, options).then((request) => request(this.axios, this.basePath));
987
1063
  }
988
1064
  /**
989
1065
  * 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.
@@ -1000,11 +1076,12 @@ class InvoiceProcessingApi extends base_1.BaseAPI {
1000
1076
  * @summary Validate an existing Factur-X XML
1001
1077
  * @param {File} xmlFile Factur-X XML file to validate (.xml format).
1002
1078
  * @param {APIProfile} [profile] Validation profile (MINIMUM, BASIC, EN16931, EXTENDED).
1079
+ * @param {boolean | null} [skipBrFr]
1003
1080
  * @param {*} [options] Override http request option.
1004
1081
  * @throws {RequiredError}
1005
1082
  */
1006
- validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, options) {
1007
- return (0, exports.InvoiceProcessingApiFp)(this.configuration).validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, options).then((request) => request(this.axios, this.basePath));
1083
+ validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, skipBrFr, options) {
1084
+ return (0, exports.InvoiceProcessingApiFp)(this.configuration).validateXmlApiV1ProcessingValidateXmlPost(xmlFile, profile, skipBrFr, options).then((request) => request(this.axios, this.basePath));
1008
1085
  }
1009
1086
  }
1010
1087
  exports.InvoiceProcessingApi = InvoiceProcessingApi;