@factpulse/sdk 1.0.8

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 (744) hide show
  1. package/.github/SETUP_GITHUB_ACTIONS.md +12 -0
  2. package/.github/workflows/publish-npm.yml +39 -0
  3. package/.openapi-generator/FILES +248 -0
  4. package/.openapi-generator/VERSION +1 -0
  5. package/.openapi-generator-ignore +23 -0
  6. package/CHANGELOG.md +28 -0
  7. package/LICENSE +21 -0
  8. package/README.md +149 -0
  9. package/api/afnorpdppaapi.ts +115 -0
  10. package/api/afnorpdppadirectory-service-api.ts +246 -0
  11. package/api/afnorpdppaflow-service-api.ts +307 -0
  12. package/api/chorus-pro-api.ts +1291 -0
  13. package/api/processing-endpoints-unifis-api.ts +210 -0
  14. package/api/sant-api.ts +115 -0
  15. package/api/signature-lectronique-api.ts +467 -0
  16. package/api/traitement-facture-api.ts +1093 -0
  17. package/api/utilisateur-api.ts +119 -0
  18. package/api.ts +26 -0
  19. package/base.ts +62 -0
  20. package/common.ts +113 -0
  21. package/configuration.ts +121 -0
  22. package/dist/api/afnorpdppaapi.d.ts +62 -0
  23. package/dist/api/afnorpdppaapi.js +121 -0
  24. package/dist/api/afnorpdppadirectory-service-api.d.ts +122 -0
  25. package/dist/api/afnorpdppadirectory-service-api.js +244 -0
  26. package/dist/api/afnorpdppaflow-service-api.d.ts +150 -0
  27. package/dist/api/afnorpdppaflow-service-api.js +302 -0
  28. package/dist/api/chorus-pro-api.d.ts +572 -0
  29. package/dist/api/chorus-pro-api.js +1174 -0
  30. package/dist/api/processing-endpoints-unifis-api.d.ts +101 -0
  31. package/dist/api/processing-endpoints-unifis-api.js +201 -0
  32. package/dist/api/sant-api.d.ts +62 -0
  33. package/dist/api/sant-api.js +121 -0
  34. package/dist/api/signature-lectronique-api.d.ts +212 -0
  35. package/dist/api/signature-lectronique-api.js +435 -0
  36. package/dist/api/traitement-facture-api.d.ts +480 -0
  37. package/dist/api/traitement-facture-api.js +996 -0
  38. package/dist/api/utilisateur-api.d.ts +62 -0
  39. package/dist/api/utilisateur-api.js +124 -0
  40. package/dist/api.d.ts +20 -0
  41. package/dist/api.js +38 -0
  42. package/dist/base.d.ts +42 -0
  43. package/dist/base.js +46 -0
  44. package/dist/common.d.ts +28 -0
  45. package/dist/common.js +124 -0
  46. package/dist/configuration.d.ts +98 -0
  47. package/dist/configuration.js +44 -0
  48. package/dist/esm/api/afnorpdppaapi.d.ts +62 -0
  49. package/dist/esm/api/afnorpdppaapi.js +114 -0
  50. package/dist/esm/api/afnorpdppadirectory-service-api.d.ts +122 -0
  51. package/dist/esm/api/afnorpdppadirectory-service-api.js +237 -0
  52. package/dist/esm/api/afnorpdppaflow-service-api.d.ts +150 -0
  53. package/dist/esm/api/afnorpdppaflow-service-api.js +295 -0
  54. package/dist/esm/api/chorus-pro-api.d.ts +572 -0
  55. package/dist/esm/api/chorus-pro-api.js +1167 -0
  56. package/dist/esm/api/processing-endpoints-unifis-api.d.ts +101 -0
  57. package/dist/esm/api/processing-endpoints-unifis-api.js +194 -0
  58. package/dist/esm/api/sant-api.d.ts +62 -0
  59. package/dist/esm/api/sant-api.js +114 -0
  60. package/dist/esm/api/signature-lectronique-api.d.ts +212 -0
  61. package/dist/esm/api/signature-lectronique-api.js +428 -0
  62. package/dist/esm/api/traitement-facture-api.d.ts +480 -0
  63. package/dist/esm/api/traitement-facture-api.js +989 -0
  64. package/dist/esm/api/utilisateur-api.d.ts +62 -0
  65. package/dist/esm/api/utilisateur-api.js +117 -0
  66. package/dist/esm/api.d.ts +20 -0
  67. package/dist/esm/api.js +22 -0
  68. package/dist/esm/base.d.ts +42 -0
  69. package/dist/esm/base.js +41 -0
  70. package/dist/esm/common.d.ts +28 -0
  71. package/dist/esm/common.js +112 -0
  72. package/dist/esm/configuration.d.ts +98 -0
  73. package/dist/esm/configuration.js +40 -0
  74. package/dist/esm/index.d.ts +14 -0
  75. package/dist/esm/index.js +16 -0
  76. package/dist/esm/models/adresse-electronique.d.ts +19 -0
  77. package/dist/esm/models/adresse-electronique.js +14 -0
  78. package/dist/esm/models/adresse-postale.d.ts +21 -0
  79. package/dist/esm/models/adresse-postale.js +14 -0
  80. package/dist/esm/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.d.ts +20 -0
  81. package/dist/esm/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.js +14 -0
  82. package/dist/esm/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.d.ts +20 -0
  83. package/dist/esm/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.js +14 -0
  84. package/dist/esm/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.d.ts +17 -0
  85. package/dist/esm/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.js +14 -0
  86. package/dist/esm/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.d.ts +20 -0
  87. package/dist/esm/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.js +14 -0
  88. package/dist/esm/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.d.ts +20 -0
  89. package/dist/esm/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.js +14 -0
  90. package/dist/esm/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.d.ts +20 -0
  91. package/dist/esm/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.js +14 -0
  92. package/dist/esm/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.d.ts +20 -0
  93. package/dist/esm/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.js +14 -0
  94. package/dist/esm/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.d.ts +20 -0
  95. package/dist/esm/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.js +14 -0
  96. package/dist/esm/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.d.ts +20 -0
  97. package/dist/esm/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.js +14 -0
  98. package/dist/esm/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.d.ts +20 -0
  99. package/dist/esm/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.js +14 -0
  100. package/dist/esm/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.d.ts +20 -0
  101. package/dist/esm/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.js +14 -0
  102. package/dist/esm/models/cadre-de-facturation.d.ts +20 -0
  103. package/dist/esm/models/cadre-de-facturation.js +14 -0
  104. package/dist/esm/models/categorie-tva.d.ts +26 -0
  105. package/dist/esm/models/categorie-tva.js +27 -0
  106. package/dist/esm/models/certificate-info-response.d.ts +61 -0
  107. package/dist/esm/models/certificate-info-response.js +14 -0
  108. package/dist/esm/models/chorus-pro-credentials.d.ts +36 -0
  109. package/dist/esm/models/chorus-pro-credentials.js +14 -0
  110. package/dist/esm/models/code-cadre-facturation.d.ts +18 -0
  111. package/dist/esm/models/code-cadre-facturation.js +19 -0
  112. package/dist/esm/models/code-raison-reduction.d.ts +24 -0
  113. package/dist/esm/models/code-raison-reduction.js +25 -0
  114. package/dist/esm/models/consulter-facture-request.d.ts +22 -0
  115. package/dist/esm/models/consulter-facture-request.js +14 -0
  116. package/dist/esm/models/consulter-facture-response.d.ts +26 -0
  117. package/dist/esm/models/consulter-facture-response.js +14 -0
  118. package/dist/esm/models/consulter-structure-request.d.ts +26 -0
  119. package/dist/esm/models/consulter-structure-request.js +14 -0
  120. package/dist/esm/models/consulter-structure-response.d.ts +26 -0
  121. package/dist/esm/models/consulter-structure-response.js +14 -0
  122. package/dist/esm/models/credentials-afnor.d.ts +19 -0
  123. package/dist/esm/models/credentials-afnor.js +14 -0
  124. package/dist/esm/models/credentials-chorus-pro.d.ts +24 -0
  125. package/dist/esm/models/credentials-chorus-pro.js +14 -0
  126. package/dist/esm/models/destinataire.d.ts +22 -0
  127. package/dist/esm/models/destinataire.js +14 -0
  128. package/dist/esm/models/destination-afnor.d.ts +34 -0
  129. package/dist/esm/models/destination-afnor.js +21 -0
  130. package/dist/esm/models/destination-chorus-pro.d.ts +23 -0
  131. package/dist/esm/models/destination-chorus-pro.js +16 -0
  132. package/dist/esm/models/destination.d.ts +22 -0
  133. package/dist/esm/models/destination.js +14 -0
  134. package/dist/esm/models/direction-flux.d.ts +19 -0
  135. package/dist/esm/models/direction-flux.js +20 -0
  136. package/dist/esm/models/donnees-facture-simplifiees.d.ts +46 -0
  137. package/dist/esm/models/donnees-facture-simplifiees.js +14 -0
  138. package/dist/esm/models/facture-enrichie-info-input.d.ts +27 -0
  139. package/dist/esm/models/facture-enrichie-info-input.js +14 -0
  140. package/dist/esm/models/facture-enrichie-info-output.d.ts +24 -0
  141. package/dist/esm/models/facture-enrichie-info-output.js +14 -0
  142. package/dist/esm/models/facture-factur-x.d.ts +39 -0
  143. package/dist/esm/models/facture-factur-x.js +14 -0
  144. package/dist/esm/models/flux-resume.d.ts +24 -0
  145. package/dist/esm/models/flux-resume.js +14 -0
  146. package/dist/esm/models/format-sortie.d.ts +16 -0
  147. package/dist/esm/models/format-sortie.js +17 -0
  148. package/dist/esm/models/fournisseur.d.ts +27 -0
  149. package/dist/esm/models/fournisseur.js +14 -0
  150. package/dist/esm/models/generate-certificate-request.d.ts +54 -0
  151. package/dist/esm/models/generate-certificate-request.js +14 -0
  152. package/dist/esm/models/generate-certificate-response.d.ts +38 -0
  153. package/dist/esm/models/generate-certificate-response.js +14 -0
  154. package/dist/esm/models/httpvalidation-error.d.ts +15 -0
  155. package/dist/esm/models/httpvalidation-error.js +14 -0
  156. package/dist/esm/models/index.d.ts +108 -0
  157. package/dist/esm/models/index.js +108 -0
  158. package/dist/esm/models/information-signature-api.d.ts +25 -0
  159. package/dist/esm/models/information-signature-api.js +14 -0
  160. package/dist/esm/models/ligne-de-poste-montant-remise-ht.d.ts +16 -0
  161. package/dist/esm/models/ligne-de-poste-montant-remise-ht.js +14 -0
  162. package/dist/esm/models/ligne-de-poste-montant-total-ligne-ht.d.ts +16 -0
  163. package/dist/esm/models/ligne-de-poste-montant-total-ligne-ht.js +14 -0
  164. package/dist/esm/models/ligne-de-poste-taux-tva-manuel.d.ts +16 -0
  165. package/dist/esm/models/ligne-de-poste-taux-tva-manuel.js +14 -0
  166. package/dist/esm/models/ligne-de-poste.d.ts +39 -0
  167. package/dist/esm/models/ligne-de-poste.js +14 -0
  168. package/dist/esm/models/ligne-de-tva.d.ts +25 -0
  169. package/dist/esm/models/ligne-de-tva.js +14 -0
  170. package/dist/esm/models/mode-depot.d.ts +20 -0
  171. package/dist/esm/models/mode-depot.js +21 -0
  172. package/dist/esm/models/mode-paiement.d.ts +23 -0
  173. package/dist/esm/models/mode-paiement.js +24 -0
  174. package/dist/esm/models/montant-ht-total.d.ts +13 -0
  175. package/dist/esm/models/montant-ht-total.js +14 -0
  176. package/dist/esm/models/montant-total-acompte.d.ts +16 -0
  177. package/dist/esm/models/montant-total-acompte.js +14 -0
  178. package/dist/esm/models/montant-total-montant-remise-globale-ttc.d.ts +16 -0
  179. package/dist/esm/models/montant-total-montant-remise-globale-ttc.js +14 -0
  180. package/dist/esm/models/montant-total.d.ts +29 -0
  181. package/dist/esm/models/montant-total.js +14 -0
  182. package/dist/esm/models/montant-ttc-total.d.ts +13 -0
  183. package/dist/esm/models/montant-ttc-total.js +14 -0
  184. package/dist/esm/models/montant-tva.d.ts +13 -0
  185. package/dist/esm/models/montant-tva.js +14 -0
  186. package/dist/esm/models/montantapayer.d.ts +16 -0
  187. package/dist/esm/models/montantapayer.js +14 -0
  188. package/dist/esm/models/montantbaseht.d.ts +16 -0
  189. package/dist/esm/models/montantbaseht.js +14 -0
  190. package/dist/esm/models/montanthttotal.d.ts +16 -0
  191. package/dist/esm/models/montanthttotal.js +14 -0
  192. package/dist/esm/models/montantttctotal.d.ts +16 -0
  193. package/dist/esm/models/montantttctotal.js +14 -0
  194. package/dist/esm/models/montanttva.d.ts +16 -0
  195. package/dist/esm/models/montanttva.js +14 -0
  196. package/dist/esm/models/montanttva1.d.ts +16 -0
  197. package/dist/esm/models/montanttva1.js +14 -0
  198. package/dist/esm/models/montantunitaireht.d.ts +16 -0
  199. package/dist/esm/models/montantunitaireht.js +14 -0
  200. package/dist/esm/models/obtenir-id-chorus-pro-request.d.ts +26 -0
  201. package/dist/esm/models/obtenir-id-chorus-pro-request.js +14 -0
  202. package/dist/esm/models/obtenir-id-chorus-pro-response.d.ts +29 -0
  203. package/dist/esm/models/obtenir-id-chorus-pro-response.js +14 -0
  204. package/dist/esm/models/options-processing.d.ts +39 -0
  205. package/dist/esm/models/options-processing.js +19 -0
  206. package/dist/esm/models/parametres-signature.d.ts +34 -0
  207. package/dist/esm/models/parametres-signature.js +14 -0
  208. package/dist/esm/models/parametres-structure.d.ts +28 -0
  209. package/dist/esm/models/parametres-structure.js +14 -0
  210. package/dist/esm/models/pdffactur-xinfo.d.ts +28 -0
  211. package/dist/esm/models/pdffactur-xinfo.js +14 -0
  212. package/dist/esm/models/pdpcredentials.d.ts +32 -0
  213. package/dist/esm/models/pdpcredentials.js +14 -0
  214. package/dist/esm/models/piece-jointe-complementaire.d.ts +21 -0
  215. package/dist/esm/models/piece-jointe-complementaire.js +14 -0
  216. package/dist/esm/models/profil-api.d.ts +18 -0
  217. package/dist/esm/models/profil-api.js +19 -0
  218. package/dist/esm/models/profil-flux.d.ts +20 -0
  219. package/dist/esm/models/profil-flux.js +21 -0
  220. package/dist/esm/models/quantite.d.ts +16 -0
  221. package/dist/esm/models/quantite.js +14 -0
  222. package/dist/esm/models/quota-info.d.ts +21 -0
  223. package/dist/esm/models/quota-info.js +14 -0
  224. package/dist/esm/models/rechercher-services-response.d.ts +24 -0
  225. package/dist/esm/models/rechercher-services-response.js +14 -0
  226. package/dist/esm/models/rechercher-structure-request.d.ts +25 -0
  227. package/dist/esm/models/rechercher-structure-request.js +14 -0
  228. package/dist/esm/models/rechercher-structure-response.d.ts +30 -0
  229. package/dist/esm/models/rechercher-structure-response.js +14 -0
  230. package/dist/esm/models/references.d.ts +27 -0
  231. package/dist/esm/models/references.js +14 -0
  232. package/dist/esm/models/reponse-healthcheck-afnor.d.ts +28 -0
  233. package/dist/esm/models/reponse-healthcheck-afnor.js +14 -0
  234. package/dist/esm/models/reponse-recherche-flux.d.ts +33 -0
  235. package/dist/esm/models/reponse-recherche-flux.js +14 -0
  236. package/dist/esm/models/reponse-soumission-flux.d.ts +38 -0
  237. package/dist/esm/models/reponse-soumission-flux.js +14 -0
  238. package/dist/esm/models/reponse-tache.d.ts +17 -0
  239. package/dist/esm/models/reponse-tache.js +14 -0
  240. package/dist/esm/models/reponse-validation-erreur.d.ts +17 -0
  241. package/dist/esm/models/reponse-validation-erreur.js +14 -0
  242. package/dist/esm/models/reponse-validation-succes.d.ts +17 -0
  243. package/dist/esm/models/reponse-validation-succes.js +14 -0
  244. package/dist/esm/models/requete-recherche-flux.d.ts +34 -0
  245. package/dist/esm/models/requete-recherche-flux.js +14 -0
  246. package/dist/esm/models/requete-soumission-flux.d.ts +31 -0
  247. package/dist/esm/models/requete-soumission-flux.js +14 -0
  248. package/dist/esm/models/resultat-afnor.d.ts +30 -0
  249. package/dist/esm/models/resultat-afnor.js +14 -0
  250. package/dist/esm/models/resultat-chorus-pro.d.ts +22 -0
  251. package/dist/esm/models/resultat-chorus-pro.js +14 -0
  252. package/dist/esm/models/resultat-validation-pdfapi.d.ts +93 -0
  253. package/dist/esm/models/resultat-validation-pdfapi.js +14 -0
  254. package/dist/esm/models/scheme-id.d.ts +22 -0
  255. package/dist/esm/models/scheme-id.js +23 -0
  256. package/dist/esm/models/service-structure.d.ts +32 -0
  257. package/dist/esm/models/service-structure.js +14 -0
  258. package/dist/esm/models/signature-info.d.ts +22 -0
  259. package/dist/esm/models/signature-info.js +14 -0
  260. package/dist/esm/models/soumettre-facture-complete-request.d.ts +34 -0
  261. package/dist/esm/models/soumettre-facture-complete-request.js +14 -0
  262. package/dist/esm/models/soumettre-facture-complete-response.d.ts +53 -0
  263. package/dist/esm/models/soumettre-facture-complete-response.js +17 -0
  264. package/dist/esm/models/soumettre-facture-request.d.ts +50 -0
  265. package/dist/esm/models/soumettre-facture-request.js +14 -0
  266. package/dist/esm/models/soumettre-facture-response.d.ts +26 -0
  267. package/dist/esm/models/soumettre-facture-response.js +14 -0
  268. package/dist/esm/models/statut-acquittement.d.ts +20 -0
  269. package/dist/esm/models/statut-acquittement.js +21 -0
  270. package/dist/esm/models/statut-facture.d.ts +25 -0
  271. package/dist/esm/models/statut-facture.js +14 -0
  272. package/dist/esm/models/statut-tache.d.ts +19 -0
  273. package/dist/esm/models/statut-tache.js +14 -0
  274. package/dist/esm/models/structure-info.d.ts +36 -0
  275. package/dist/esm/models/structure-info.js +14 -0
  276. package/dist/esm/models/syntaxe-flux.d.ts +22 -0
  277. package/dist/esm/models/syntaxe-flux.js +23 -0
  278. package/dist/esm/models/tauxmanuel.d.ts +16 -0
  279. package/dist/esm/models/tauxmanuel.js +14 -0
  280. package/dist/esm/models/type-facture.d.ts +19 -0
  281. package/dist/esm/models/type-facture.js +20 -0
  282. package/dist/esm/models/type-flux.d.ts +22 -0
  283. package/dist/esm/models/type-flux.js +23 -0
  284. package/dist/esm/models/type-tva.d.ts +21 -0
  285. package/dist/esm/models/type-tva.js +22 -0
  286. package/dist/esm/models/unite.d.ts +23 -0
  287. package/dist/esm/models/unite.js +24 -0
  288. package/dist/esm/models/utilisateur.d.ts +29 -0
  289. package/dist/esm/models/utilisateur.js +14 -0
  290. package/dist/esm/models/validation-error-loc-inner.d.ts +13 -0
  291. package/dist/esm/models/validation-error-loc-inner.js +14 -0
  292. package/dist/esm/models/validation-error.d.ts +17 -0
  293. package/dist/esm/models/validation-error.js +14 -0
  294. package/dist/index.d.ts +14 -0
  295. package/dist/index.js +32 -0
  296. package/dist/models/adresse-electronique.d.ts +19 -0
  297. package/dist/models/adresse-electronique.js +15 -0
  298. package/dist/models/adresse-postale.d.ts +21 -0
  299. package/dist/models/adresse-postale.js +15 -0
  300. package/dist/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.d.ts +20 -0
  301. package/dist/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.js +15 -0
  302. package/dist/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.d.ts +20 -0
  303. package/dist/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.js +15 -0
  304. package/dist/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.d.ts +17 -0
  305. package/dist/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.js +15 -0
  306. package/dist/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.d.ts +20 -0
  307. package/dist/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.js +15 -0
  308. package/dist/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.d.ts +20 -0
  309. package/dist/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.js +15 -0
  310. package/dist/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.d.ts +20 -0
  311. package/dist/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.js +15 -0
  312. package/dist/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.d.ts +20 -0
  313. package/dist/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.js +15 -0
  314. package/dist/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.d.ts +20 -0
  315. package/dist/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.js +15 -0
  316. package/dist/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.d.ts +20 -0
  317. package/dist/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.js +15 -0
  318. package/dist/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.d.ts +20 -0
  319. package/dist/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.js +15 -0
  320. package/dist/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.d.ts +20 -0
  321. package/dist/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.js +15 -0
  322. package/dist/models/cadre-de-facturation.d.ts +20 -0
  323. package/dist/models/cadre-de-facturation.js +15 -0
  324. package/dist/models/categorie-tva.d.ts +26 -0
  325. package/dist/models/categorie-tva.js +30 -0
  326. package/dist/models/certificate-info-response.d.ts +61 -0
  327. package/dist/models/certificate-info-response.js +15 -0
  328. package/dist/models/chorus-pro-credentials.d.ts +36 -0
  329. package/dist/models/chorus-pro-credentials.js +15 -0
  330. package/dist/models/code-cadre-facturation.d.ts +18 -0
  331. package/dist/models/code-cadre-facturation.js +22 -0
  332. package/dist/models/code-raison-reduction.d.ts +24 -0
  333. package/dist/models/code-raison-reduction.js +28 -0
  334. package/dist/models/consulter-facture-request.d.ts +22 -0
  335. package/dist/models/consulter-facture-request.js +15 -0
  336. package/dist/models/consulter-facture-response.d.ts +26 -0
  337. package/dist/models/consulter-facture-response.js +15 -0
  338. package/dist/models/consulter-structure-request.d.ts +26 -0
  339. package/dist/models/consulter-structure-request.js +15 -0
  340. package/dist/models/consulter-structure-response.d.ts +26 -0
  341. package/dist/models/consulter-structure-response.js +15 -0
  342. package/dist/models/credentials-afnor.d.ts +19 -0
  343. package/dist/models/credentials-afnor.js +15 -0
  344. package/dist/models/credentials-chorus-pro.d.ts +24 -0
  345. package/dist/models/credentials-chorus-pro.js +15 -0
  346. package/dist/models/destinataire.d.ts +22 -0
  347. package/dist/models/destinataire.js +15 -0
  348. package/dist/models/destination-afnor.d.ts +34 -0
  349. package/dist/models/destination-afnor.js +24 -0
  350. package/dist/models/destination-chorus-pro.d.ts +23 -0
  351. package/dist/models/destination-chorus-pro.js +19 -0
  352. package/dist/models/destination.d.ts +22 -0
  353. package/dist/models/destination.js +15 -0
  354. package/dist/models/direction-flux.d.ts +19 -0
  355. package/dist/models/direction-flux.js +23 -0
  356. package/dist/models/donnees-facture-simplifiees.d.ts +46 -0
  357. package/dist/models/donnees-facture-simplifiees.js +15 -0
  358. package/dist/models/facture-enrichie-info-input.d.ts +27 -0
  359. package/dist/models/facture-enrichie-info-input.js +15 -0
  360. package/dist/models/facture-enrichie-info-output.d.ts +24 -0
  361. package/dist/models/facture-enrichie-info-output.js +15 -0
  362. package/dist/models/facture-factur-x.d.ts +39 -0
  363. package/dist/models/facture-factur-x.js +15 -0
  364. package/dist/models/flux-resume.d.ts +24 -0
  365. package/dist/models/flux-resume.js +15 -0
  366. package/dist/models/format-sortie.d.ts +16 -0
  367. package/dist/models/format-sortie.js +20 -0
  368. package/dist/models/fournisseur.d.ts +27 -0
  369. package/dist/models/fournisseur.js +15 -0
  370. package/dist/models/generate-certificate-request.d.ts +54 -0
  371. package/dist/models/generate-certificate-request.js +15 -0
  372. package/dist/models/generate-certificate-response.d.ts +38 -0
  373. package/dist/models/generate-certificate-response.js +15 -0
  374. package/dist/models/httpvalidation-error.d.ts +15 -0
  375. package/dist/models/httpvalidation-error.js +15 -0
  376. package/dist/models/index.d.ts +108 -0
  377. package/dist/models/index.js +124 -0
  378. package/dist/models/information-signature-api.d.ts +25 -0
  379. package/dist/models/information-signature-api.js +15 -0
  380. package/dist/models/ligne-de-poste-montant-remise-ht.d.ts +16 -0
  381. package/dist/models/ligne-de-poste-montant-remise-ht.js +15 -0
  382. package/dist/models/ligne-de-poste-montant-total-ligne-ht.d.ts +16 -0
  383. package/dist/models/ligne-de-poste-montant-total-ligne-ht.js +15 -0
  384. package/dist/models/ligne-de-poste-taux-tva-manuel.d.ts +16 -0
  385. package/dist/models/ligne-de-poste-taux-tva-manuel.js +15 -0
  386. package/dist/models/ligne-de-poste.d.ts +39 -0
  387. package/dist/models/ligne-de-poste.js +15 -0
  388. package/dist/models/ligne-de-tva.d.ts +25 -0
  389. package/dist/models/ligne-de-tva.js +15 -0
  390. package/dist/models/mode-depot.d.ts +20 -0
  391. package/dist/models/mode-depot.js +24 -0
  392. package/dist/models/mode-paiement.d.ts +23 -0
  393. package/dist/models/mode-paiement.js +27 -0
  394. package/dist/models/montant-ht-total.d.ts +13 -0
  395. package/dist/models/montant-ht-total.js +15 -0
  396. package/dist/models/montant-total-acompte.d.ts +16 -0
  397. package/dist/models/montant-total-acompte.js +15 -0
  398. package/dist/models/montant-total-montant-remise-globale-ttc.d.ts +16 -0
  399. package/dist/models/montant-total-montant-remise-globale-ttc.js +15 -0
  400. package/dist/models/montant-total.d.ts +29 -0
  401. package/dist/models/montant-total.js +15 -0
  402. package/dist/models/montant-ttc-total.d.ts +13 -0
  403. package/dist/models/montant-ttc-total.js +15 -0
  404. package/dist/models/montant-tva.d.ts +13 -0
  405. package/dist/models/montant-tva.js +15 -0
  406. package/dist/models/montantapayer.d.ts +16 -0
  407. package/dist/models/montantapayer.js +15 -0
  408. package/dist/models/montantbaseht.d.ts +16 -0
  409. package/dist/models/montantbaseht.js +15 -0
  410. package/dist/models/montanthttotal.d.ts +16 -0
  411. package/dist/models/montanthttotal.js +15 -0
  412. package/dist/models/montantttctotal.d.ts +16 -0
  413. package/dist/models/montantttctotal.js +15 -0
  414. package/dist/models/montanttva.d.ts +16 -0
  415. package/dist/models/montanttva.js +15 -0
  416. package/dist/models/montanttva1.d.ts +16 -0
  417. package/dist/models/montanttva1.js +15 -0
  418. package/dist/models/montantunitaireht.d.ts +16 -0
  419. package/dist/models/montantunitaireht.js +15 -0
  420. package/dist/models/obtenir-id-chorus-pro-request.d.ts +26 -0
  421. package/dist/models/obtenir-id-chorus-pro-request.js +15 -0
  422. package/dist/models/obtenir-id-chorus-pro-response.d.ts +29 -0
  423. package/dist/models/obtenir-id-chorus-pro-response.js +15 -0
  424. package/dist/models/options-processing.d.ts +39 -0
  425. package/dist/models/options-processing.js +22 -0
  426. package/dist/models/parametres-signature.d.ts +34 -0
  427. package/dist/models/parametres-signature.js +15 -0
  428. package/dist/models/parametres-structure.d.ts +28 -0
  429. package/dist/models/parametres-structure.js +15 -0
  430. package/dist/models/pdffactur-xinfo.d.ts +28 -0
  431. package/dist/models/pdffactur-xinfo.js +15 -0
  432. package/dist/models/pdpcredentials.d.ts +32 -0
  433. package/dist/models/pdpcredentials.js +15 -0
  434. package/dist/models/piece-jointe-complementaire.d.ts +21 -0
  435. package/dist/models/piece-jointe-complementaire.js +15 -0
  436. package/dist/models/profil-api.d.ts +18 -0
  437. package/dist/models/profil-api.js +22 -0
  438. package/dist/models/profil-flux.d.ts +20 -0
  439. package/dist/models/profil-flux.js +24 -0
  440. package/dist/models/quantite.d.ts +16 -0
  441. package/dist/models/quantite.js +15 -0
  442. package/dist/models/quota-info.d.ts +21 -0
  443. package/dist/models/quota-info.js +15 -0
  444. package/dist/models/rechercher-services-response.d.ts +24 -0
  445. package/dist/models/rechercher-services-response.js +15 -0
  446. package/dist/models/rechercher-structure-request.d.ts +25 -0
  447. package/dist/models/rechercher-structure-request.js +15 -0
  448. package/dist/models/rechercher-structure-response.d.ts +30 -0
  449. package/dist/models/rechercher-structure-response.js +15 -0
  450. package/dist/models/references.d.ts +27 -0
  451. package/dist/models/references.js +15 -0
  452. package/dist/models/reponse-healthcheck-afnor.d.ts +28 -0
  453. package/dist/models/reponse-healthcheck-afnor.js +15 -0
  454. package/dist/models/reponse-recherche-flux.d.ts +33 -0
  455. package/dist/models/reponse-recherche-flux.js +15 -0
  456. package/dist/models/reponse-soumission-flux.d.ts +38 -0
  457. package/dist/models/reponse-soumission-flux.js +15 -0
  458. package/dist/models/reponse-tache.d.ts +17 -0
  459. package/dist/models/reponse-tache.js +15 -0
  460. package/dist/models/reponse-validation-erreur.d.ts +17 -0
  461. package/dist/models/reponse-validation-erreur.js +15 -0
  462. package/dist/models/reponse-validation-succes.d.ts +17 -0
  463. package/dist/models/reponse-validation-succes.js +15 -0
  464. package/dist/models/requete-recherche-flux.d.ts +34 -0
  465. package/dist/models/requete-recherche-flux.js +15 -0
  466. package/dist/models/requete-soumission-flux.d.ts +31 -0
  467. package/dist/models/requete-soumission-flux.js +15 -0
  468. package/dist/models/resultat-afnor.d.ts +30 -0
  469. package/dist/models/resultat-afnor.js +15 -0
  470. package/dist/models/resultat-chorus-pro.d.ts +22 -0
  471. package/dist/models/resultat-chorus-pro.js +15 -0
  472. package/dist/models/resultat-validation-pdfapi.d.ts +93 -0
  473. package/dist/models/resultat-validation-pdfapi.js +15 -0
  474. package/dist/models/scheme-id.d.ts +22 -0
  475. package/dist/models/scheme-id.js +26 -0
  476. package/dist/models/service-structure.d.ts +32 -0
  477. package/dist/models/service-structure.js +15 -0
  478. package/dist/models/signature-info.d.ts +22 -0
  479. package/dist/models/signature-info.js +15 -0
  480. package/dist/models/soumettre-facture-complete-request.d.ts +34 -0
  481. package/dist/models/soumettre-facture-complete-request.js +15 -0
  482. package/dist/models/soumettre-facture-complete-response.d.ts +53 -0
  483. package/dist/models/soumettre-facture-complete-response.js +20 -0
  484. package/dist/models/soumettre-facture-request.d.ts +50 -0
  485. package/dist/models/soumettre-facture-request.js +15 -0
  486. package/dist/models/soumettre-facture-response.d.ts +26 -0
  487. package/dist/models/soumettre-facture-response.js +15 -0
  488. package/dist/models/statut-acquittement.d.ts +20 -0
  489. package/dist/models/statut-acquittement.js +24 -0
  490. package/dist/models/statut-facture.d.ts +25 -0
  491. package/dist/models/statut-facture.js +15 -0
  492. package/dist/models/statut-tache.d.ts +19 -0
  493. package/dist/models/statut-tache.js +15 -0
  494. package/dist/models/structure-info.d.ts +36 -0
  495. package/dist/models/structure-info.js +15 -0
  496. package/dist/models/syntaxe-flux.d.ts +22 -0
  497. package/dist/models/syntaxe-flux.js +26 -0
  498. package/dist/models/tauxmanuel.d.ts +16 -0
  499. package/dist/models/tauxmanuel.js +15 -0
  500. package/dist/models/type-facture.d.ts +19 -0
  501. package/dist/models/type-facture.js +23 -0
  502. package/dist/models/type-flux.d.ts +22 -0
  503. package/dist/models/type-flux.js +26 -0
  504. package/dist/models/type-tva.d.ts +21 -0
  505. package/dist/models/type-tva.js +25 -0
  506. package/dist/models/unite.d.ts +23 -0
  507. package/dist/models/unite.js +27 -0
  508. package/dist/models/utilisateur.d.ts +29 -0
  509. package/dist/models/utilisateur.js +15 -0
  510. package/dist/models/validation-error-loc-inner.d.ts +13 -0
  511. package/dist/models/validation-error-loc-inner.js +15 -0
  512. package/dist/models/validation-error.d.ts +17 -0
  513. package/dist/models/validation-error.js +15 -0
  514. package/docs/AFNORPDPPAApi.md +53 -0
  515. package/docs/AFNORPDPPADirectoryServiceApi.md +153 -0
  516. package/docs/AFNORPDPPAFlowServiceApi.md +208 -0
  517. package/docs/AdresseElectronique.md +23 -0
  518. package/docs/AdressePostale.md +29 -0
  519. package/docs/BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost.md +24 -0
  520. package/docs/BodyCompleterFactureApiV1ChorusProFacturesCompleterPost.md +24 -0
  521. package/docs/BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet.md +22 -0
  522. package/docs/BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost.md +24 -0
  523. package/docs/BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost.md +24 -0
  524. package/docs/BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost.md +24 -0
  525. package/docs/BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost.md +24 -0
  526. package/docs/BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost.md +24 -0
  527. package/docs/BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost.md +24 -0
  528. package/docs/BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost.md +24 -0
  529. package/docs/BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost.md +24 -0
  530. package/docs/CadreDeFacturation.md +25 -0
  531. package/docs/CategorieTVA.md +25 -0
  532. package/docs/CertificateInfoResponse.md +43 -0
  533. package/docs/ChorusProApi.md +874 -0
  534. package/docs/ChorusProCredentials.md +29 -0
  535. package/docs/CodeCadreFacturation.md +14 -0
  536. package/docs/CodeRaisonReduction.md +21 -0
  537. package/docs/ConsulterFactureRequest.md +23 -0
  538. package/docs/ConsulterFactureResponse.md +37 -0
  539. package/docs/ConsulterStructureRequest.md +25 -0
  540. package/docs/ConsulterStructureResponse.md +37 -0
  541. package/docs/CredentialsAFNOR.md +25 -0
  542. package/docs/CredentialsChorusPro.md +29 -0
  543. package/docs/Destinataire.md +27 -0
  544. package/docs/Destination.md +27 -0
  545. package/docs/DestinationAFNOR.md +27 -0
  546. package/docs/DestinationChorusPro.md +23 -0
  547. package/docs/DirectionFlux.md +11 -0
  548. package/docs/DonneesFactureSimplifiees.md +37 -0
  549. package/docs/FactureEnrichieInfoInput.md +35 -0
  550. package/docs/FactureEnrichieInfoOutput.md +35 -0
  551. package/docs/FactureFacturX.md +47 -0
  552. package/docs/FluxResume.md +35 -0
  553. package/docs/FormatSortie.md +10 -0
  554. package/docs/Fournisseur.md +37 -0
  555. package/docs/GenerateCertificateRequest.md +41 -0
  556. package/docs/GenerateCertificateResponse.md +31 -0
  557. package/docs/HTTPValidationError.md +20 -0
  558. package/docs/InformationSignatureAPI.md +31 -0
  559. package/docs/LigneDePoste.md +49 -0
  560. package/docs/LigneDePosteMontantRemiseHt.md +19 -0
  561. package/docs/LigneDePosteMontantTotalLigneHt.md +19 -0
  562. package/docs/LigneDePosteTauxTvaManuel.md +19 -0
  563. package/docs/LigneDeTVA.md +29 -0
  564. package/docs/ModeDepot.md +13 -0
  565. package/docs/ModePaiement.md +19 -0
  566. package/docs/MontantHtTotal.md +18 -0
  567. package/docs/MontantTotal.md +33 -0
  568. package/docs/MontantTotalAcompte.md +19 -0
  569. package/docs/MontantTotalMontantRemiseGlobaleTtc.md +19 -0
  570. package/docs/MontantTtcTotal.md +18 -0
  571. package/docs/MontantTva.md +18 -0
  572. package/docs/Montantapayer.md +19 -0
  573. package/docs/Montantbaseht.md +19 -0
  574. package/docs/Montanthttotal.md +19 -0
  575. package/docs/Montantttctotal.md +19 -0
  576. package/docs/Montanttva.md +19 -0
  577. package/docs/Montanttva1.md +19 -0
  578. package/docs/Montantunitaireht.md +19 -0
  579. package/docs/ObtenirIdChorusProRequest.md +25 -0
  580. package/docs/ObtenirIdChorusProResponse.md +27 -0
  581. package/docs/OptionsProcessing.md +27 -0
  582. package/docs/PDFFacturXInfo.md +25 -0
  583. package/docs/PDPCredentials.md +27 -0
  584. package/docs/ParametresSignature.md +37 -0
  585. package/docs/ParametresStructure.md +25 -0
  586. package/docs/PieceJointeComplementaire.md +29 -0
  587. package/docs/ProcessingEndpointsUnifisApi.md +115 -0
  588. package/docs/ProfilAPI.md +14 -0
  589. package/docs/ProfilFlux.md +13 -0
  590. package/docs/Quantite.md +19 -0
  591. package/docs/QuotaInfo.md +29 -0
  592. package/docs/RechercherServicesResponse.md +27 -0
  593. package/docs/RechercherStructureRequest.md +29 -0
  594. package/docs/RechercherStructureResponse.md +27 -0
  595. package/docs/References.md +35 -0
  596. package/docs/ReponseHealthcheckAFNOR.md +25 -0
  597. package/docs/ReponseRechercheFlux.md +27 -0
  598. package/docs/ReponseSoumissionFlux.md +33 -0
  599. package/docs/ReponseTache.md +21 -0
  600. package/docs/ReponseValidationErreur.md +20 -0
  601. package/docs/ReponseValidationSucces.md +20 -0
  602. package/docs/RequeteRechercheFlux.md +37 -0
  603. package/docs/RequeteSoumissionFlux.md +31 -0
  604. package/docs/ResultatAFNOR.md +29 -0
  605. package/docs/ResultatChorusPro.md +25 -0
  606. package/docs/ResultatValidationPDFAPI.md +65 -0
  607. package/docs/SantApi.md +52 -0
  608. package/docs/SchemeID.md +17 -0
  609. package/docs/ServiceStructure.md +27 -0
  610. package/docs/SignatureInfo.md +25 -0
  611. package/docs/SignatureLectroniqueApi.md +266 -0
  612. package/docs/SoumettreFactureCompleteRequest.md +29 -0
  613. package/docs/SoumettreFactureCompleteResponse.md +37 -0
  614. package/docs/SoumettreFactureRequest.md +49 -0
  615. package/docs/SoumettreFactureResponse.md +27 -0
  616. package/docs/StatutAcquittement.md +13 -0
  617. package/docs/StatutFacture.md +25 -0
  618. package/docs/StatutTache.md +25 -0
  619. package/docs/StructureInfo.md +29 -0
  620. package/docs/SyntaxeFlux.md +17 -0
  621. package/docs/Tauxmanuel.md +19 -0
  622. package/docs/TraitementFactureApi.md +670 -0
  623. package/docs/TypeFacture.md +11 -0
  624. package/docs/TypeFlux.md +17 -0
  625. package/docs/TypeTVA.md +15 -0
  626. package/docs/Unite.md +19 -0
  627. package/docs/Utilisateur.md +43 -0
  628. package/docs/UtilisateurApi.md +52 -0
  629. package/docs/ValidationError.md +24 -0
  630. package/docs/ValidationErrorLocInner.md +18 -0
  631. package/git_push.sh +57 -0
  632. package/index.ts +18 -0
  633. package/models/adresse-electronique.ts +29 -0
  634. package/models/adresse-postale.ts +27 -0
  635. package/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.ts +28 -0
  636. package/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.ts +28 -0
  637. package/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.ts +27 -0
  638. package/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.ts +28 -0
  639. package/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.ts +28 -0
  640. package/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.ts +28 -0
  641. package/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.ts +28 -0
  642. package/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.ts +28 -0
  643. package/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.ts +28 -0
  644. package/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.ts +28 -0
  645. package/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.ts +28 -0
  646. package/models/cadre-de-facturation.ts +30 -0
  647. package/models/categorie-tva.ts +36 -0
  648. package/models/certificate-info-response.ts +67 -0
  649. package/models/chorus-pro-credentials.ts +42 -0
  650. package/models/code-cadre-facturation.ts +28 -0
  651. package/models/code-raison-reduction.ts +34 -0
  652. package/models/consulter-facture-request.ts +30 -0
  653. package/models/consulter-facture-response.ts +34 -0
  654. package/models/consulter-structure-request.ts +34 -0
  655. package/models/consulter-structure-response.ts +34 -0
  656. package/models/credentials-afnor.ts +25 -0
  657. package/models/credentials-chorus-pro.ts +30 -0
  658. package/models/destinataire.ts +32 -0
  659. package/models/destination-afnor.ts +46 -0
  660. package/models/destination-chorus-pro.ts +34 -0
  661. package/models/destination.ts +32 -0
  662. package/models/direction-flux.ts +29 -0
  663. package/models/donnees-facture-simplifiees.ts +46 -0
  664. package/models/facture-enrichie-info-input.ts +39 -0
  665. package/models/facture-enrichie-info-output.ts +30 -0
  666. package/models/facture-factur-x.ts +65 -0
  667. package/models/flux-resume.ts +30 -0
  668. package/models/format-sortie.ts +26 -0
  669. package/models/fournisseur.ts +37 -0
  670. package/models/generate-certificate-request.ts +60 -0
  671. package/models/generate-certificate-response.ts +46 -0
  672. package/models/httpvalidation-error.ts +23 -0
  673. package/models/index.ts +108 -0
  674. package/models/information-signature-api.ts +31 -0
  675. package/models/ligne-de-poste-montant-remise-ht.ts +22 -0
  676. package/models/ligne-de-poste-montant-total-ligne-ht.ts +22 -0
  677. package/models/ligne-de-poste-taux-tva-manuel.ts +22 -0
  678. package/models/ligne-de-poste.ts +63 -0
  679. package/models/ligne-de-tva.ts +41 -0
  680. package/models/mode-depot.ts +30 -0
  681. package/models/mode-paiement.ts +33 -0
  682. package/models/montant-ht-total.ts +19 -0
  683. package/models/montant-total-acompte.ts +22 -0
  684. package/models/montant-total-montant-remise-globale-ttc.ts +22 -0
  685. package/models/montant-total.ts +47 -0
  686. package/models/montant-ttc-total.ts +19 -0
  687. package/models/montant-tva.ts +19 -0
  688. package/models/montantapayer.ts +22 -0
  689. package/models/montantbaseht.ts +22 -0
  690. package/models/montanthttotal.ts +22 -0
  691. package/models/montantttctotal.ts +22 -0
  692. package/models/montanttva.ts +22 -0
  693. package/models/montanttva1.ts +22 -0
  694. package/models/montantunitaireht.ts +22 -0
  695. package/models/obtenir-id-chorus-pro-request.ts +34 -0
  696. package/models/obtenir-id-chorus-pro-response.ts +35 -0
  697. package/models/options-processing.ts +48 -0
  698. package/models/parametres-signature.ts +40 -0
  699. package/models/parametres-structure.ts +34 -0
  700. package/models/pdffactur-xinfo.ts +34 -0
  701. package/models/pdpcredentials.ts +38 -0
  702. package/models/piece-jointe-complementaire.ts +27 -0
  703. package/models/profil-api.ts +28 -0
  704. package/models/profil-flux.ts +30 -0
  705. package/models/quantite.ts +22 -0
  706. package/models/quota-info.ts +27 -0
  707. package/models/rechercher-services-response.ts +32 -0
  708. package/models/rechercher-structure-request.ts +33 -0
  709. package/models/rechercher-structure-response.ts +38 -0
  710. package/models/references.ts +41 -0
  711. package/models/reponse-healthcheck-afnor.ts +34 -0
  712. package/models/reponse-recherche-flux.ts +41 -0
  713. package/models/reponse-soumission-flux.ts +44 -0
  714. package/models/reponse-tache.ts +23 -0
  715. package/models/reponse-validation-erreur.ts +23 -0
  716. package/models/reponse-validation-succes.ts +23 -0
  717. package/models/requete-recherche-flux.ts +48 -0
  718. package/models/requete-soumission-flux.ts +45 -0
  719. package/models/resultat-afnor.ts +36 -0
  720. package/models/resultat-chorus-pro.ts +28 -0
  721. package/models/resultat-validation-pdfapi.ts +99 -0
  722. package/models/scheme-id.ts +32 -0
  723. package/models/service-structure.ts +38 -0
  724. package/models/signature-info.ts +28 -0
  725. package/models/soumettre-facture-complete-request.ts +48 -0
  726. package/models/soumettre-facture-complete-response.ts +72 -0
  727. package/models/soumettre-facture-request.ts +58 -0
  728. package/models/soumettre-facture-response.ts +32 -0
  729. package/models/statut-acquittement.ts +30 -0
  730. package/models/statut-facture.ts +31 -0
  731. package/models/statut-tache.ts +25 -0
  732. package/models/structure-info.ts +42 -0
  733. package/models/syntaxe-flux.ts +32 -0
  734. package/models/tauxmanuel.ts +22 -0
  735. package/models/type-facture.ts +29 -0
  736. package/models/type-flux.ts +32 -0
  737. package/models/type-tva.ts +31 -0
  738. package/models/unite.ts +33 -0
  739. package/models/utilisateur.ts +37 -0
  740. package/models/validation-error-loc-inner.ts +19 -0
  741. package/models/validation-error.ts +25 -0
  742. package/package.json +33 -0
  743. package/tsconfig.esm.json +7 -0
  744. package/tsconfig.json +18 -0
@@ -0,0 +1,1174 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * API REST FactPulse
6
+ * API REST pour la facturation électronique en France : Factur-X, AFNOR PDP/PA, signatures électroniques. ## 🎯 Fonctionnalités principales ### 📄 Génération de factures Factur-X - **Formats** : XML seul ou PDF/A-3 avec XML embarqué - **Profils** : MINIMUM, BASIC, EN16931, EXTENDED - **Normes** : EN 16931 (directive UE 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT) - **🆕 Format simplifié** : Génération à partir de SIRET + auto-enrichissement (API Chorus Pro + Recherche Entreprises) ### ✅ Validation et conformité - **Validation XML** : Schematron (45 à 210+ règles selon profil) - **Validation PDF** : PDF/A-3, métadonnées XMP Factur-X, signatures électroniques - **VeraPDF** : Validation stricte PDF/A (146+ règles ISO 19005-3) - **Traitement asynchrone** : Support Celery pour validations lourdes (VeraPDF) ### 📡 Intégration AFNOR PDP/PA (XP Z12-013) - **Soumission de flux** : Envoi de factures vers Plateformes de Dématérialisation Partenaires - **Recherche de flux** : Consultation des factures soumises - **Téléchargement** : Récupération des PDF/A-3 avec XML - **Directory Service** : Recherche d\'entreprises (SIREN/SIRET) - **Multi-client** : Support de plusieurs configs PDP par utilisateur (stored credentials ou zero-storage) ### ✍️ Signature électronique PDF - **Standards** : PAdES-B-B, PAdES-B-T (horodatage RFC 3161), PAdES-B-LT (archivage long terme) - **Niveaux eIDAS** : SES (auto-signé), AdES (CA commerciale), QES (PSCO) - **Validation** : Vérification intégrité cryptographique et certificats - **Génération de certificats** : Certificats X.509 auto-signés pour tests ### 🔄 Traitement asynchrone - **Celery** : Génération, validation et signature asynchrones - **Polling** : Suivi d\'état via `/taches/{id_tache}/statut` - **Pas de timeout** : Idéal pour gros fichiers ou validations lourdes ## 🔒 Authentification Toutes les requêtes nécessitent un **token JWT** dans le header Authorization : ``` Authorization: Bearer YOUR_JWT_TOKEN ``` ### Comment obtenir un token JWT ? #### 🔑 Méthode 1 : API `/api/token/` (Recommandée) **URL :** `https://www.factpulse.fr/api/token/` Cette méthode est **recommandée** pour l\'intégration dans vos applications et workflows CI/CD. **Prérequis :** Avoir défini un mot de passe sur votre compte **Pour les utilisateurs inscrits via email/password :** - Vous avez déjà un mot de passe, utilisez-le directement **Pour les utilisateurs inscrits via OAuth (Google/GitHub) :** - Vous devez d\'abord définir un mot de passe sur : https://www.factpulse.fr/accounts/password/set/ - Une fois le mot de passe créé, vous pourrez utiliser l\'API **Exemple de requête :** ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"votre_email@example.com\", \"password\": \"votre_mot_de_passe\" }\' ``` **Réponse :** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Token d\'accès (validité: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Token de rafraîchissement (validité: 7 jours) } ``` **Avantages :** - ✅ Automatisation complète (CI/CD, scripts) - ✅ Gestion programmatique des tokens - ✅ Support du refresh token pour renouveler automatiquement l\'accès - ✅ Intégration facile dans n\'importe quel langage/outil #### 🖥️ Méthode 2 : Génération via Dashboard (Alternative) **URL :** https://www.factpulse.fr/dashboard/ Cette méthode convient pour des tests rapides ou une utilisation occasionnelle via l\'interface graphique. **Fonctionnement :** - Connectez-vous au dashboard - Utilisez les boutons \"Generate Test Token\" ou \"Generate Production Token\" - Fonctionne pour **tous** les utilisateurs (OAuth et email/password), sans nécessiter de mot de passe **Types de tokens :** - **Token Test** : Validité 24h, quota 1000 appels/jour (gratuit) - **Token Production** : Validité 7 jours, quota selon votre forfait **Avantages :** - ✅ Rapide pour tester l\'API - ✅ Aucun mot de passe requis - ✅ Interface visuelle simple **Inconvénients :** - ❌ Nécessite une action manuelle - ❌ Pas de refresh token - ❌ Moins adapté pour l\'automatisation ### 📚 Documentation complète Pour plus d\'informations sur l\'authentification et l\'utilisation de l\'API : https://www.factpulse.fr/documentation-api/
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ChorusProApi = exports.ChorusProApiFactory = exports.ChorusProApiFp = exports.ChorusProApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("../common");
30
+ // @ts-ignore
31
+ const base_1 = require("../base");
32
+ /**
33
+ * ChorusProApi - axios parameter creator
34
+ */
35
+ const ChorusProApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ * Ajoute une pièce jointe au compte utilisateur courant. **Taille max** : 10 Mo par fichier **Payload exemple** : ```json { \"pieceJointeFichier\": \"JVBERi0xLjQKJeLjz9MKNSAwIG9iago8P...\", \"pieceJointeNom\": \"bon_commande.pdf\", \"pieceJointeTypeMime\": \"application/pdf\", \"pieceJointeExtension\": \"PDF\" } ``` **Retour** : L\'ID de la pièce jointe (`pieceJointeIdFichier`) à utiliser ensuite dans `/factures/completer`. **Extensions acceptées** : PDF, JPG, PNG, ZIP, XML, etc.
39
+ * @summary Ajouter une pièce jointe
40
+ * @param {BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost} bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ ajouterFichierApiV1ChorusProTransversesAjouterFichierPost: (bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost_1, ...args_1) => __awaiter(this, [bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost_1, ...args_1], void 0, function* (bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, options = {}) {
45
+ // verify required parameter 'bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost' is not null or undefined
46
+ (0, common_1.assertParamExists)('ajouterFichierApiV1ChorusProTransversesAjouterFichierPost', 'bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost', bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost);
47
+ const localVarPath = `/api/v1/chorus-pro/transverses/ajouter-fichier`;
48
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
50
+ let baseOptions;
51
+ if (configuration) {
52
+ baseOptions = configuration.baseOptions;
53
+ }
54
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
55
+ const localVarHeaderParameter = {};
56
+ const localVarQueryParameter = {};
57
+ // authentication HTTPBearer required
58
+ // http bearer authentication required
59
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
60
+ localVarHeaderParameter['Content-Type'] = 'application/json';
61
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
62
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
64
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, localVarRequestOptions, configuration);
65
+ return {
66
+ url: (0, common_1.toPathString)(localVarUrlObj),
67
+ options: localVarRequestOptions,
68
+ };
69
+ }),
70
+ /**
71
+ * Complète une facture au statut SUSPENDUE en ajoutant des pièces jointes ou un commentaire. **Statut requis** : SUSPENDUE **Actions possibles** : - Ajouter des pièces jointes (justificatifs, bons de commande, etc.) - Modifier le commentaire **Payload exemple** : ```json { \"identifiantFactureCPP\": 12345, \"commentaire\": \"Voici les justificatifs demandés\", \"listePiecesJointes\": [ { \"pieceJointeIdFichier\": 98765, \"pieceJointeNom\": \"bon_commande.pdf\" } ] } ``` **Note** : Les pièces jointes doivent d\'abord être uploadées via `/transverses/ajouter-fichier`. **Après complétion** : La facture repasse au statut MISE_A_DISPOSITION.
72
+ * @summary Compléter une facture suspendue (Fournisseur)
73
+ * @param {BodyCompleterFactureApiV1ChorusProFacturesCompleterPost} bodyCompleterFactureApiV1ChorusProFacturesCompleterPost
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ completerFactureApiV1ChorusProFacturesCompleterPost: (bodyCompleterFactureApiV1ChorusProFacturesCompleterPost_1, ...args_1) => __awaiter(this, [bodyCompleterFactureApiV1ChorusProFacturesCompleterPost_1, ...args_1], void 0, function* (bodyCompleterFactureApiV1ChorusProFacturesCompleterPost, options = {}) {
78
+ // verify required parameter 'bodyCompleterFactureApiV1ChorusProFacturesCompleterPost' is not null or undefined
79
+ (0, common_1.assertParamExists)('completerFactureApiV1ChorusProFacturesCompleterPost', 'bodyCompleterFactureApiV1ChorusProFacturesCompleterPost', bodyCompleterFactureApiV1ChorusProFacturesCompleterPost);
80
+ const localVarPath = `/api/v1/chorus-pro/factures/completer`;
81
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
82
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
83
+ let baseOptions;
84
+ if (configuration) {
85
+ baseOptions = configuration.baseOptions;
86
+ }
87
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
88
+ const localVarHeaderParameter = {};
89
+ const localVarQueryParameter = {};
90
+ // authentication HTTPBearer required
91
+ // http bearer authentication required
92
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
93
+ localVarHeaderParameter['Content-Type'] = 'application/json';
94
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
95
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
96
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
97
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bodyCompleterFactureApiV1ChorusProFacturesCompleterPost, localVarRequestOptions, configuration);
98
+ return {
99
+ url: (0, common_1.toPathString)(localVarUrlObj),
100
+ options: localVarRequestOptions,
101
+ };
102
+ }),
103
+ /**
104
+ * Récupère les informations et le statut actuel d\'une facture soumise à Chorus Pro. **Retour** : - Numéro et date de facture - Montant TTC - **Statut courant** : SOUMISE, VALIDEE, REJETEE, SUSPENDUE, MANDATEE, MISE_EN_PAIEMENT, etc. - Structure destinataire **Cas d\'usage** : - Suivre l\'évolution du traitement d\'une facture - Vérifier si une facture a été validée ou rejetée - Obtenir la date de mise en paiement **Polling** : Appelez cet endpoint régulièrement pour suivre l\'évolution du statut.
105
+ * @summary Consulter le statut d\'une facture
106
+ * @param {ConsulterFactureRequest} consulterFactureRequest
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ consulterFactureApiV1ChorusProFacturesConsulterPost: (consulterFactureRequest_1, ...args_1) => __awaiter(this, [consulterFactureRequest_1, ...args_1], void 0, function* (consulterFactureRequest, options = {}) {
111
+ // verify required parameter 'consulterFactureRequest' is not null or undefined
112
+ (0, common_1.assertParamExists)('consulterFactureApiV1ChorusProFacturesConsulterPost', 'consulterFactureRequest', consulterFactureRequest);
113
+ const localVarPath = `/api/v1/chorus-pro/factures/consulter`;
114
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
115
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
116
+ let baseOptions;
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ }
120
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
121
+ const localVarHeaderParameter = {};
122
+ const localVarQueryParameter = {};
123
+ // authentication HTTPBearer required
124
+ // http bearer authentication required
125
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
126
+ localVarHeaderParameter['Content-Type'] = 'application/json';
127
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
130
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(consulterFactureRequest, localVarRequestOptions, configuration);
131
+ return {
132
+ url: (0, common_1.toPathString)(localVarUrlObj),
133
+ options: localVarRequestOptions,
134
+ };
135
+ }),
136
+ /**
137
+ * Récupère les informations détaillées d\'une structure Chorus Pro. **Retour** : - Raison sociale - Numéro de TVA intracommunautaire - Email de contact - **Paramètres obligatoires** : Indique si le code service et/ou numéro d\'engagement sont requis pour soumettre une facture **Étape typique** : Appelée après `rechercher-structures` pour savoir quels champs sont obligatoires avant de soumettre une facture.
138
+ * @summary Consulter les détails d\'une structure
139
+ * @param {ConsulterStructureRequest} consulterStructureRequest
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ consulterStructureApiV1ChorusProStructuresConsulterPost: (consulterStructureRequest_1, ...args_1) => __awaiter(this, [consulterStructureRequest_1, ...args_1], void 0, function* (consulterStructureRequest, options = {}) {
144
+ // verify required parameter 'consulterStructureRequest' is not null or undefined
145
+ (0, common_1.assertParamExists)('consulterStructureApiV1ChorusProStructuresConsulterPost', 'consulterStructureRequest', consulterStructureRequest);
146
+ const localVarPath = `/api/v1/chorus-pro/structures/consulter`;
147
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
148
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
149
+ let baseOptions;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ }
153
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
154
+ const localVarHeaderParameter = {};
155
+ const localVarQueryParameter = {};
156
+ // authentication HTTPBearer required
157
+ // http bearer authentication required
158
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
159
+ localVarHeaderParameter['Content-Type'] = 'application/json';
160
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
161
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
162
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
163
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(consulterStructureRequest, localVarRequestOptions, configuration);
164
+ return {
165
+ url: (0, common_1.toPathString)(localVarUrlObj),
166
+ options: localVarRequestOptions,
167
+ };
168
+ }),
169
+ /**
170
+ * Récupère la liste des services actifs d\'une structure publique. **Cas d\'usage** : - Lister les services disponibles pour une administration - Vérifier qu\'un code service existe avant de soumettre une facture **Retour** : - Liste des services avec leur code, libellé et statut (actif/inactif)
171
+ * @summary Lister les services d\'une structure
172
+ * @param {number} idStructureCpp
173
+ * @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet: (idStructureCpp_1, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet_1, ...args_1) => __awaiter(this, [idStructureCpp_1, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet_1, ...args_1], void 0, function* (idStructureCpp, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, options = {}) {
178
+ // verify required parameter 'idStructureCpp' is not null or undefined
179
+ (0, common_1.assertParamExists)('listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', 'idStructureCpp', idStructureCpp);
180
+ // verify required parameter 'bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet' is not null or undefined
181
+ (0, common_1.assertParamExists)('listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', 'bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet);
182
+ const localVarPath = `/api/v1/chorus-pro/structures/{id_structure_cpp}/services`
183
+ .replace(`{${"id_structure_cpp"}}`, encodeURIComponent(String(idStructureCpp)));
184
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
185
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
186
+ let baseOptions;
187
+ if (configuration) {
188
+ baseOptions = configuration.baseOptions;
189
+ }
190
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
191
+ const localVarHeaderParameter = {};
192
+ const localVarQueryParameter = {};
193
+ // authentication HTTPBearer required
194
+ // http bearer authentication required
195
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
196
+ localVarHeaderParameter['Content-Type'] = 'application/json';
197
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
198
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
199
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
200
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, localVarRequestOptions, configuration);
201
+ return {
202
+ url: (0, common_1.toPathString)(localVarUrlObj),
203
+ options: localVarRequestOptions,
204
+ };
205
+ }),
206
+ /**
207
+ * **Utilitaire pratique** pour obtenir l\'ID Chorus Pro d\'une structure à partir de son SIRET. Cette fonction wrapper combine : 1. Recherche de la structure par SIRET 2. Extraction de l\'`id_structure_cpp` si une seule structure est trouvée **Retour** : - `id_structure_cpp` : ID Chorus Pro (0 si non trouvé ou si plusieurs résultats) - `designation_structure` : Nom de la structure (si trouvée) - `message` : Message explicatif **Cas d\'usage** : - Raccourci pour obtenir directement l\'ID Chorus Pro avant de soumettre une facture - Alternative simplifiée à `rechercher-structures` + extraction manuelle de l\'ID **Note** : Si plusieurs structures correspondent au SIRET (rare), retourne 0 et un message d\'erreur.
208
+ * @summary Utilitaire : Obtenir l\'ID Chorus Pro depuis un SIRET
209
+ * @param {ObtenirIdChorusProRequest} obtenirIdChorusProRequest
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ */
213
+ obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost: (obtenirIdChorusProRequest_1, ...args_1) => __awaiter(this, [obtenirIdChorusProRequest_1, ...args_1], void 0, function* (obtenirIdChorusProRequest, options = {}) {
214
+ // verify required parameter 'obtenirIdChorusProRequest' is not null or undefined
215
+ (0, common_1.assertParamExists)('obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost', 'obtenirIdChorusProRequest', obtenirIdChorusProRequest);
216
+ const localVarPath = `/api/v1/chorus-pro/structures/obtenir-id-depuis-siret`;
217
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
218
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
219
+ let baseOptions;
220
+ if (configuration) {
221
+ baseOptions = configuration.baseOptions;
222
+ }
223
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
224
+ const localVarHeaderParameter = {};
225
+ const localVarQueryParameter = {};
226
+ // authentication HTTPBearer required
227
+ // http bearer authentication required
228
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
229
+ localVarHeaderParameter['Content-Type'] = 'application/json';
230
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
231
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
232
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
233
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(obtenirIdChorusProRequest, localVarRequestOptions, configuration);
234
+ return {
235
+ url: (0, common_1.toPathString)(localVarUrlObj),
236
+ options: localVarRequestOptions,
237
+ };
238
+ }),
239
+ /**
240
+ * Recherche les factures reçues par le destinataire connecté. **Filtres** : - Téléchargée / non téléchargée - Dates de réception - Statut (MISE_A_DISPOSITION, SUSPENDUE, etc.) - Fournisseur **Indicateur utile** : `factureTelechargeeParDestinataire` permet de savoir si la facture a déjà été téléchargée.
241
+ * @summary Rechercher factures reçues (Destinataire)
242
+ * @param {BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost} bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ */
246
+ rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost: (bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost_1, ...args_1) => __awaiter(this, [bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost_1, ...args_1], void 0, function* (bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, options = {}) {
247
+ // verify required parameter 'bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost' is not null or undefined
248
+ (0, common_1.assertParamExists)('rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost', 'bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost', bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost);
249
+ const localVarPath = `/api/v1/chorus-pro/factures/rechercher-destinataire`;
250
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
251
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
252
+ let baseOptions;
253
+ if (configuration) {
254
+ baseOptions = configuration.baseOptions;
255
+ }
256
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
257
+ const localVarHeaderParameter = {};
258
+ const localVarQueryParameter = {};
259
+ // authentication HTTPBearer required
260
+ // http bearer authentication required
261
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
262
+ localVarHeaderParameter['Content-Type'] = 'application/json';
263
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
264
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
265
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
266
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, localVarRequestOptions, configuration);
267
+ return {
268
+ url: (0, common_1.toPathString)(localVarUrlObj),
269
+ options: localVarRequestOptions,
270
+ };
271
+ }),
272
+ /**
273
+ * Recherche les factures émises par le fournisseur connecté. **Filtres disponibles** : - Numéro de facture - Dates (début/fin) - Statut - Structure destinataire - Montant **Cas d\'usage** : - Suivi des factures émises - Vérification des statuts - Export pour comptabilité
274
+ * @summary Rechercher factures émises (Fournisseur)
275
+ * @param {BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost} bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost: (bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost_1, ...args_1) => __awaiter(this, [bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost_1, ...args_1], void 0, function* (bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, options = {}) {
280
+ // verify required parameter 'bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost' is not null or undefined
281
+ (0, common_1.assertParamExists)('rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost', 'bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost', bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost);
282
+ const localVarPath = `/api/v1/chorus-pro/factures/rechercher-fournisseur`;
283
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
284
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
285
+ let baseOptions;
286
+ if (configuration) {
287
+ baseOptions = configuration.baseOptions;
288
+ }
289
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
290
+ const localVarHeaderParameter = {};
291
+ const localVarQueryParameter = {};
292
+ // authentication HTTPBearer required
293
+ // http bearer authentication required
294
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
295
+ localVarHeaderParameter['Content-Type'] = 'application/json';
296
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
297
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
298
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
299
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, localVarRequestOptions, configuration);
300
+ return {
301
+ url: (0, common_1.toPathString)(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ };
304
+ }),
305
+ /**
306
+ * Recherche des structures (entreprises, administrations) enregistrées sur Chorus Pro. **Cas d\'usage** : - Trouver l\'ID Chorus Pro d\'une structure à partir de son SIRET - Vérifier si une structure est enregistrée sur Chorus Pro - Lister les structures correspondant à des critères **Filtres disponibles** : - Identifiant (SIRET, SIREN, etc.) - Raison sociale - Type d\'identifiant - Structures privées uniquement **Étape typique** : Appelée avant `soumettre-facture` pour obtenir l\'`id_structure_cpp` du destinataire.
307
+ * @summary Rechercher des structures Chorus Pro
308
+ * @param {RechercherStructureRequest} rechercherStructureRequest
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ rechercherStructuresApiV1ChorusProStructuresRechercherPost: (rechercherStructureRequest_1, ...args_1) => __awaiter(this, [rechercherStructureRequest_1, ...args_1], void 0, function* (rechercherStructureRequest, options = {}) {
313
+ // verify required parameter 'rechercherStructureRequest' is not null or undefined
314
+ (0, common_1.assertParamExists)('rechercherStructuresApiV1ChorusProStructuresRechercherPost', 'rechercherStructureRequest', rechercherStructureRequest);
315
+ const localVarPath = `/api/v1/chorus-pro/structures/rechercher`;
316
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
317
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
318
+ let baseOptions;
319
+ if (configuration) {
320
+ baseOptions = configuration.baseOptions;
321
+ }
322
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
323
+ const localVarHeaderParameter = {};
324
+ const localVarQueryParameter = {};
325
+ // authentication HTTPBearer required
326
+ // http bearer authentication required
327
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
328
+ localVarHeaderParameter['Content-Type'] = 'application/json';
329
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
330
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
331
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
332
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rechercherStructureRequest, localVarRequestOptions, configuration);
333
+ return {
334
+ url: (0, common_1.toPathString)(localVarUrlObj),
335
+ options: localVarRequestOptions,
336
+ };
337
+ }),
338
+ /**
339
+ * Recycle une facture au statut A_RECYCLER en modifiant les données d\'acheminement. **Statut requis** : A_RECYCLER **Champs modifiables** : - Destinataire (`idStructureCPP`) - Code service - Numéro d\'engagement **Cas d\'usage** : - Erreur de destinataire - Changement de service facturation - Mise à jour du numéro d\'engagement **Payload exemple** : ```json { \"identifiantFactureCPP\": 12345, \"idStructureCPP\": 67890, \"codeService\": \"SERVICE_01\", \"numeroEngagement\": \"ENG2024001\" } ``` **Note** : La facture conserve son numéro et ses montants, seuls les champs d\'acheminement changent.
340
+ * @summary Recycler une facture (Fournisseur)
341
+ * @param {BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost} bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ recyclerFactureApiV1ChorusProFacturesRecyclerPost: (bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost_1, ...args_1) => __awaiter(this, [bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost_1, ...args_1], void 0, function* (bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, options = {}) {
346
+ // verify required parameter 'bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost' is not null or undefined
347
+ (0, common_1.assertParamExists)('recyclerFactureApiV1ChorusProFacturesRecyclerPost', 'bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost', bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost);
348
+ const localVarPath = `/api/v1/chorus-pro/factures/recycler`;
349
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
350
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
351
+ let baseOptions;
352
+ if (configuration) {
353
+ baseOptions = configuration.baseOptions;
354
+ }
355
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
356
+ const localVarHeaderParameter = {};
357
+ const localVarQueryParameter = {};
358
+ // authentication HTTPBearer required
359
+ // http bearer authentication required
360
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
361
+ localVarHeaderParameter['Content-Type'] = 'application/json';
362
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
363
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
364
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
365
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, localVarRequestOptions, configuration);
366
+ return {
367
+ url: (0, common_1.toPathString)(localVarUrlObj),
368
+ options: localVarRequestOptions,
369
+ };
370
+ }),
371
+ /**
372
+ * Soumet une facture électronique à une structure publique via Chorus Pro. **📋 Workflow complet** : 1. **Uploader le PDF Factur-X** via `/transverses/ajouter-fichier` → récupérer `pieceJointeId` 2. **Obtenir l\'ID structure** via `/structures/rechercher` ou `/structures/obtenir-id-depuis-siret` 3. **Vérifier les paramètres obligatoires** via `/structures/consulter` 4. **Soumettre la facture** avec le `piece_jointe_principale_id` obtenu à l\'étape 1 **Pré-requis** : 1. Avoir l\'`id_structure_cpp` du destinataire (via `/structures/rechercher`) 2. Connaître les paramètres obligatoires (via `/structures/consulter`) : - Code service si `code_service_doit_etre_renseigne=true` - Numéro d\'engagement si `numero_ej_doit_etre_renseigne=true` 3. Avoir uploadé le PDF Factur-X (via `/transverses/ajouter-fichier`) **Format attendu** : - `piece_jointe_principale_id` : ID retourné par `/transverses/ajouter-fichier` - Montants : Chaînes de caractères avec 2 décimales (ex: \"1250.50\") - Dates : Format ISO 8601 (YYYY-MM-DD) **Retour** : - `identifiant_facture_cpp` : ID Chorus Pro de la facture créée - `numero_flux_depot` : Numéro de suivi du dépôt **Statuts possibles après soumission** : - SOUMISE : En attente de validation - VALIDEE : Validée par le destinataire - REJETEE : Rejetée (erreur de données ou refus métier) - SUSPENDUE : En attente d\'informations complémentaires **Note** : Utilisez `/factures/consulter` pour suivre l\'évolution du statut.
373
+ * @summary Soumettre une facture à Chorus Pro
374
+ * @param {SoumettreFactureRequest} soumettreFactureRequest
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ soumettreFactureApiV1ChorusProFacturesSoumettrePost: (soumettreFactureRequest_1, ...args_1) => __awaiter(this, [soumettreFactureRequest_1, ...args_1], void 0, function* (soumettreFactureRequest, options = {}) {
379
+ // verify required parameter 'soumettreFactureRequest' is not null or undefined
380
+ (0, common_1.assertParamExists)('soumettreFactureApiV1ChorusProFacturesSoumettrePost', 'soumettreFactureRequest', soumettreFactureRequest);
381
+ const localVarPath = `/api/v1/chorus-pro/factures/soumettre`;
382
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
383
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
384
+ let baseOptions;
385
+ if (configuration) {
386
+ baseOptions = configuration.baseOptions;
387
+ }
388
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
389
+ const localVarHeaderParameter = {};
390
+ const localVarQueryParameter = {};
391
+ // authentication HTTPBearer required
392
+ // http bearer authentication required
393
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
394
+ localVarHeaderParameter['Content-Type'] = 'application/json';
395
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
396
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
397
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
398
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(soumettreFactureRequest, localVarRequestOptions, configuration);
399
+ return {
400
+ url: (0, common_1.toPathString)(localVarUrlObj),
401
+ options: localVarRequestOptions,
402
+ };
403
+ }),
404
+ /**
405
+ * Télécharge une ou plusieurs factures (max 10 recommandé) avec leurs pièces jointes. **Formats disponibles** : - PDF : Fichier PDF uniquement - XML : Fichier XML uniquement - ZIP : Archive contenant PDF + XML + pièces jointes **Taille maximale** : 120 Mo par téléchargement **Payload exemple** : ```json { \"listeIdentifiantsFactureCPP\": [12345, 12346], \"inclurePiecesJointes\": true, \"formatFichier\": \"ZIP\" } ``` **Retour** : Le fichier est encodé en base64 dans le champ `fichierBase64`. **Note** : Le flag `factureTelechargeeParDestinataire` est mis à jour automatiquement.
406
+ * @summary Télécharger un groupe de factures
407
+ * @param {BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost} bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost: (bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost_1, ...args_1) => __awaiter(this, [bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost_1, ...args_1], void 0, function* (bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, options = {}) {
412
+ // verify required parameter 'bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost' is not null or undefined
413
+ (0, common_1.assertParamExists)('telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost', 'bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost', bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost);
414
+ const localVarPath = `/api/v1/chorus-pro/factures/telecharger-groupe`;
415
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
416
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
417
+ let baseOptions;
418
+ if (configuration) {
419
+ baseOptions = configuration.baseOptions;
420
+ }
421
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
422
+ const localVarHeaderParameter = {};
423
+ const localVarQueryParameter = {};
424
+ // authentication HTTPBearer required
425
+ // http bearer authentication required
426
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
427
+ localVarHeaderParameter['Content-Type'] = 'application/json';
428
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
429
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
430
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
431
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, localVarRequestOptions, configuration);
432
+ return {
433
+ url: (0, common_1.toPathString)(localVarUrlObj),
434
+ options: localVarRequestOptions,
435
+ };
436
+ }),
437
+ /**
438
+ * Change le statut d\'une facture reçue. **Statuts possibles** : - MISE_A_DISPOSITION : Facture acceptée - SUSPENDUE : En attente d\'informations complémentaires (motif obligatoire) - REJETEE : Facture refusée (motif obligatoire) - MANDATEE : Facture mandatée - MISE_EN_PAIEMENT : Facture en cours de paiement - COMPTABILISEE : Facture comptabilisée - MISE_A_DISPOSITION_COMPTABLE : Mise à disposition comptable - A_RECYCLER : À recycler - COMPLETEE : Complétée - SERVICE-FAIT : Service fait - PRISE_EN_COMPTE_DESTINATAIRE : Prise en compte - TRANSMISE_MOA : Transmise à la MOA **Payload exemple** : ```json { \"identifiantFactureCPP\": 12345, \"nouveauStatut\": \"REJETEE\", \"motifRejet\": \"Facture en double\", \"commentaire\": \"Facture déjà reçue sous la référence ABC123\" } ``` **Règles** : - Un motif est **obligatoire** pour SUSPENDUE et REJETEE - Seuls certains statuts sont autorisés selon le statut actuel de la facture
439
+ * @summary Traiter une facture reçue (Destinataire)
440
+ * @param {BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost} bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ */
444
+ traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost: (bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost_1, ...args_1) => __awaiter(this, [bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost_1, ...args_1], void 0, function* (bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, options = {}) {
445
+ // verify required parameter 'bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost' is not null or undefined
446
+ (0, common_1.assertParamExists)('traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost', 'bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost', bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost);
447
+ const localVarPath = `/api/v1/chorus-pro/factures/traiter-facture-recue`;
448
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
449
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
450
+ let baseOptions;
451
+ if (configuration) {
452
+ baseOptions = configuration.baseOptions;
453
+ }
454
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
455
+ const localVarHeaderParameter = {};
456
+ const localVarQueryParameter = {};
457
+ // authentication HTTPBearer required
458
+ // http bearer authentication required
459
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
460
+ localVarHeaderParameter['Content-Type'] = 'application/json';
461
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
462
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
463
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
464
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, localVarRequestOptions, configuration);
465
+ return {
466
+ url: (0, common_1.toPathString)(localVarUrlObj),
467
+ options: localVarRequestOptions,
468
+ };
469
+ }),
470
+ /**
471
+ * Consulte facture (valideur).
472
+ * @summary Consulter une facture (Valideur)
473
+ * @param {BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost} bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost: (bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost_1, ...args_1) => __awaiter(this, [bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost_1, ...args_1], void 0, function* (bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, options = {}) {
478
+ // verify required parameter 'bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost' is not null or undefined
479
+ (0, common_1.assertParamExists)('valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost', 'bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost', bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost);
480
+ const localVarPath = `/api/v1/chorus-pro/factures/valideur/consulter`;
481
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
482
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
483
+ let baseOptions;
484
+ if (configuration) {
485
+ baseOptions = configuration.baseOptions;
486
+ }
487
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
488
+ const localVarHeaderParameter = {};
489
+ const localVarQueryParameter = {};
490
+ // authentication HTTPBearer required
491
+ // http bearer authentication required
492
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
493
+ localVarHeaderParameter['Content-Type'] = 'application/json';
494
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
495
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
496
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
497
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, localVarRequestOptions, configuration);
498
+ return {
499
+ url: (0, common_1.toPathString)(localVarUrlObj),
500
+ options: localVarRequestOptions,
501
+ };
502
+ }),
503
+ /**
504
+ * Recherche les factures en attente de validation par le valideur connecté. **Rôle** : Valideur dans le circuit de validation interne. **Filtres** : Dates, structure, service, etc.
505
+ * @summary Rechercher factures à valider (Valideur)
506
+ * @param {BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost} bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ */
510
+ valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost: (bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost_1, ...args_1) => __awaiter(this, [bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost_1, ...args_1], void 0, function* (bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, options = {}) {
511
+ // verify required parameter 'bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost' is not null or undefined
512
+ (0, common_1.assertParamExists)('valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost', 'bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost', bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost);
513
+ const localVarPath = `/api/v1/chorus-pro/factures/valideur/rechercher`;
514
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
515
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
516
+ let baseOptions;
517
+ if (configuration) {
518
+ baseOptions = configuration.baseOptions;
519
+ }
520
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
521
+ const localVarHeaderParameter = {};
522
+ const localVarQueryParameter = {};
523
+ // authentication HTTPBearer required
524
+ // http bearer authentication required
525
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
526
+ localVarHeaderParameter['Content-Type'] = 'application/json';
527
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
528
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
529
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
530
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, localVarRequestOptions, configuration);
531
+ return {
532
+ url: (0, common_1.toPathString)(localVarUrlObj),
533
+ options: localVarRequestOptions,
534
+ };
535
+ }),
536
+ /**
537
+ * Valide ou refuse une facture en attente de validation. **Actions** : - Valider : La facture passe au statut suivant du circuit - Refuser : La facture est rejetée (motif obligatoire)
538
+ * @summary Valider ou refuser une facture (Valideur)
539
+ * @param {BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost} bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost: (bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost_1, ...args_1) => __awaiter(this, [bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost_1, ...args_1], void 0, function* (bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, options = {}) {
544
+ // verify required parameter 'bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost' is not null or undefined
545
+ (0, common_1.assertParamExists)('valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost', 'bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost', bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost);
546
+ const localVarPath = `/api/v1/chorus-pro/factures/valideur/traiter`;
547
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
548
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
549
+ let baseOptions;
550
+ if (configuration) {
551
+ baseOptions = configuration.baseOptions;
552
+ }
553
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
554
+ const localVarHeaderParameter = {};
555
+ const localVarQueryParameter = {};
556
+ // authentication HTTPBearer required
557
+ // http bearer authentication required
558
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
559
+ localVarHeaderParameter['Content-Type'] = 'application/json';
560
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
561
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
562
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
563
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, localVarRequestOptions, configuration);
564
+ return {
565
+ url: (0, common_1.toPathString)(localVarUrlObj),
566
+ options: localVarRequestOptions,
567
+ };
568
+ }),
569
+ };
570
+ };
571
+ exports.ChorusProApiAxiosParamCreator = ChorusProApiAxiosParamCreator;
572
+ /**
573
+ * ChorusProApi - functional programming interface
574
+ */
575
+ const ChorusProApiFp = function (configuration) {
576
+ const localVarAxiosParamCreator = (0, exports.ChorusProApiAxiosParamCreator)(configuration);
577
+ return {
578
+ /**
579
+ * Ajoute une pièce jointe au compte utilisateur courant. **Taille max** : 10 Mo par fichier **Payload exemple** : ```json { \"pieceJointeFichier\": \"JVBERi0xLjQKJeLjz9MKNSAwIG9iago8P...\", \"pieceJointeNom\": \"bon_commande.pdf\", \"pieceJointeTypeMime\": \"application/pdf\", \"pieceJointeExtension\": \"PDF\" } ``` **Retour** : L\'ID de la pièce jointe (`pieceJointeIdFichier`) à utiliser ensuite dans `/factures/completer`. **Extensions acceptées** : PDF, JPG, PNG, ZIP, XML, etc.
580
+ * @summary Ajouter une pièce jointe
581
+ * @param {BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost} bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost
582
+ * @param {*} [options] Override http request option.
583
+ * @throws {RequiredError}
584
+ */
585
+ ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, options) {
586
+ return __awaiter(this, void 0, void 0, function* () {
587
+ var _a, _b, _c;
588
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, options);
589
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
590
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
591
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
592
+ });
593
+ },
594
+ /**
595
+ * Complète une facture au statut SUSPENDUE en ajoutant des pièces jointes ou un commentaire. **Statut requis** : SUSPENDUE **Actions possibles** : - Ajouter des pièces jointes (justificatifs, bons de commande, etc.) - Modifier le commentaire **Payload exemple** : ```json { \"identifiantFactureCPP\": 12345, \"commentaire\": \"Voici les justificatifs demandés\", \"listePiecesJointes\": [ { \"pieceJointeIdFichier\": 98765, \"pieceJointeNom\": \"bon_commande.pdf\" } ] } ``` **Note** : Les pièces jointes doivent d\'abord être uploadées via `/transverses/ajouter-fichier`. **Après complétion** : La facture repasse au statut MISE_A_DISPOSITION.
596
+ * @summary Compléter une facture suspendue (Fournisseur)
597
+ * @param {BodyCompleterFactureApiV1ChorusProFacturesCompleterPost} bodyCompleterFactureApiV1ChorusProFacturesCompleterPost
598
+ * @param {*} [options] Override http request option.
599
+ * @throws {RequiredError}
600
+ */
601
+ completerFactureApiV1ChorusProFacturesCompleterPost(bodyCompleterFactureApiV1ChorusProFacturesCompleterPost, options) {
602
+ return __awaiter(this, void 0, void 0, function* () {
603
+ var _a, _b, _c;
604
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.completerFactureApiV1ChorusProFacturesCompleterPost(bodyCompleterFactureApiV1ChorusProFacturesCompleterPost, options);
605
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
606
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.completerFactureApiV1ChorusProFacturesCompleterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
607
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
608
+ });
609
+ },
610
+ /**
611
+ * Récupère les informations et le statut actuel d\'une facture soumise à Chorus Pro. **Retour** : - Numéro et date de facture - Montant TTC - **Statut courant** : SOUMISE, VALIDEE, REJETEE, SUSPENDUE, MANDATEE, MISE_EN_PAIEMENT, etc. - Structure destinataire **Cas d\'usage** : - Suivre l\'évolution du traitement d\'une facture - Vérifier si une facture a été validée ou rejetée - Obtenir la date de mise en paiement **Polling** : Appelez cet endpoint régulièrement pour suivre l\'évolution du statut.
612
+ * @summary Consulter le statut d\'une facture
613
+ * @param {ConsulterFactureRequest} consulterFactureRequest
614
+ * @param {*} [options] Override http request option.
615
+ * @throws {RequiredError}
616
+ */
617
+ consulterFactureApiV1ChorusProFacturesConsulterPost(consulterFactureRequest, options) {
618
+ return __awaiter(this, void 0, void 0, function* () {
619
+ var _a, _b, _c;
620
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.consulterFactureApiV1ChorusProFacturesConsulterPost(consulterFactureRequest, options);
621
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
622
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.consulterFactureApiV1ChorusProFacturesConsulterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
623
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
624
+ });
625
+ },
626
+ /**
627
+ * Récupère les informations détaillées d\'une structure Chorus Pro. **Retour** : - Raison sociale - Numéro de TVA intracommunautaire - Email de contact - **Paramètres obligatoires** : Indique si le code service et/ou numéro d\'engagement sont requis pour soumettre une facture **Étape typique** : Appelée après `rechercher-structures` pour savoir quels champs sont obligatoires avant de soumettre une facture.
628
+ * @summary Consulter les détails d\'une structure
629
+ * @param {ConsulterStructureRequest} consulterStructureRequest
630
+ * @param {*} [options] Override http request option.
631
+ * @throws {RequiredError}
632
+ */
633
+ consulterStructureApiV1ChorusProStructuresConsulterPost(consulterStructureRequest, options) {
634
+ return __awaiter(this, void 0, void 0, function* () {
635
+ var _a, _b, _c;
636
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.consulterStructureApiV1ChorusProStructuresConsulterPost(consulterStructureRequest, options);
637
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
638
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.consulterStructureApiV1ChorusProStructuresConsulterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
639
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
640
+ });
641
+ },
642
+ /**
643
+ * Récupère la liste des services actifs d\'une structure publique. **Cas d\'usage** : - Lister les services disponibles pour une administration - Vérifier qu\'un code service existe avant de soumettre une facture **Retour** : - Liste des services avec leur code, libellé et statut (actif/inactif)
644
+ * @summary Lister les services d\'une structure
645
+ * @param {number} idStructureCpp
646
+ * @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
647
+ * @param {*} [options] Override http request option.
648
+ * @throws {RequiredError}
649
+ */
650
+ listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, options) {
651
+ return __awaiter(this, void 0, void 0, function* () {
652
+ var _a, _b, _c;
653
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, options);
654
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
655
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
656
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
657
+ });
658
+ },
659
+ /**
660
+ * **Utilitaire pratique** pour obtenir l\'ID Chorus Pro d\'une structure à partir de son SIRET. Cette fonction wrapper combine : 1. Recherche de la structure par SIRET 2. Extraction de l\'`id_structure_cpp` si une seule structure est trouvée **Retour** : - `id_structure_cpp` : ID Chorus Pro (0 si non trouvé ou si plusieurs résultats) - `designation_structure` : Nom de la structure (si trouvée) - `message` : Message explicatif **Cas d\'usage** : - Raccourci pour obtenir directement l\'ID Chorus Pro avant de soumettre une facture - Alternative simplifiée à `rechercher-structures` + extraction manuelle de l\'ID **Note** : Si plusieurs structures correspondent au SIRET (rare), retourne 0 et un message d\'erreur.
661
+ * @summary Utilitaire : Obtenir l\'ID Chorus Pro depuis un SIRET
662
+ * @param {ObtenirIdChorusProRequest} obtenirIdChorusProRequest
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ */
666
+ obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(obtenirIdChorusProRequest, options) {
667
+ return __awaiter(this, void 0, void 0, function* () {
668
+ var _a, _b, _c;
669
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(obtenirIdChorusProRequest, options);
670
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
671
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
672
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
673
+ });
674
+ },
675
+ /**
676
+ * Recherche les factures reçues par le destinataire connecté. **Filtres** : - Téléchargée / non téléchargée - Dates de réception - Statut (MISE_A_DISPOSITION, SUSPENDUE, etc.) - Fournisseur **Indicateur utile** : `factureTelechargeeParDestinataire` permet de savoir si la facture a déjà été téléchargée.
677
+ * @summary Rechercher factures reçues (Destinataire)
678
+ * @param {BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost} bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ */
682
+ rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, options) {
683
+ return __awaiter(this, void 0, void 0, function* () {
684
+ var _a, _b, _c;
685
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, options);
686
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
687
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
688
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
689
+ });
690
+ },
691
+ /**
692
+ * Recherche les factures émises par le fournisseur connecté. **Filtres disponibles** : - Numéro de facture - Dates (début/fin) - Statut - Structure destinataire - Montant **Cas d\'usage** : - Suivi des factures émises - Vérification des statuts - Export pour comptabilité
693
+ * @summary Rechercher factures émises (Fournisseur)
694
+ * @param {BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost} bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost
695
+ * @param {*} [options] Override http request option.
696
+ * @throws {RequiredError}
697
+ */
698
+ rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, options) {
699
+ return __awaiter(this, void 0, void 0, function* () {
700
+ var _a, _b, _c;
701
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, options);
702
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
703
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
704
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
705
+ });
706
+ },
707
+ /**
708
+ * Recherche des structures (entreprises, administrations) enregistrées sur Chorus Pro. **Cas d\'usage** : - Trouver l\'ID Chorus Pro d\'une structure à partir de son SIRET - Vérifier si une structure est enregistrée sur Chorus Pro - Lister les structures correspondant à des critères **Filtres disponibles** : - Identifiant (SIRET, SIREN, etc.) - Raison sociale - Type d\'identifiant - Structures privées uniquement **Étape typique** : Appelée avant `soumettre-facture` pour obtenir l\'`id_structure_cpp` du destinataire.
709
+ * @summary Rechercher des structures Chorus Pro
710
+ * @param {RechercherStructureRequest} rechercherStructureRequest
711
+ * @param {*} [options] Override http request option.
712
+ * @throws {RequiredError}
713
+ */
714
+ rechercherStructuresApiV1ChorusProStructuresRechercherPost(rechercherStructureRequest, options) {
715
+ return __awaiter(this, void 0, void 0, function* () {
716
+ var _a, _b, _c;
717
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rechercherStructuresApiV1ChorusProStructuresRechercherPost(rechercherStructureRequest, options);
718
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
719
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.rechercherStructuresApiV1ChorusProStructuresRechercherPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
720
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
721
+ });
722
+ },
723
+ /**
724
+ * Recycle une facture au statut A_RECYCLER en modifiant les données d\'acheminement. **Statut requis** : A_RECYCLER **Champs modifiables** : - Destinataire (`idStructureCPP`) - Code service - Numéro d\'engagement **Cas d\'usage** : - Erreur de destinataire - Changement de service facturation - Mise à jour du numéro d\'engagement **Payload exemple** : ```json { \"identifiantFactureCPP\": 12345, \"idStructureCPP\": 67890, \"codeService\": \"SERVICE_01\", \"numeroEngagement\": \"ENG2024001\" } ``` **Note** : La facture conserve son numéro et ses montants, seuls les champs d\'acheminement changent.
725
+ * @summary Recycler une facture (Fournisseur)
726
+ * @param {BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost} bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost
727
+ * @param {*} [options] Override http request option.
728
+ * @throws {RequiredError}
729
+ */
730
+ recyclerFactureApiV1ChorusProFacturesRecyclerPost(bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, options) {
731
+ return __awaiter(this, void 0, void 0, function* () {
732
+ var _a, _b, _c;
733
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.recyclerFactureApiV1ChorusProFacturesRecyclerPost(bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, options);
734
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
735
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.recyclerFactureApiV1ChorusProFacturesRecyclerPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
736
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
737
+ });
738
+ },
739
+ /**
740
+ * Soumet une facture électronique à une structure publique via Chorus Pro. **📋 Workflow complet** : 1. **Uploader le PDF Factur-X** via `/transverses/ajouter-fichier` → récupérer `pieceJointeId` 2. **Obtenir l\'ID structure** via `/structures/rechercher` ou `/structures/obtenir-id-depuis-siret` 3. **Vérifier les paramètres obligatoires** via `/structures/consulter` 4. **Soumettre la facture** avec le `piece_jointe_principale_id` obtenu à l\'étape 1 **Pré-requis** : 1. Avoir l\'`id_structure_cpp` du destinataire (via `/structures/rechercher`) 2. Connaître les paramètres obligatoires (via `/structures/consulter`) : - Code service si `code_service_doit_etre_renseigne=true` - Numéro d\'engagement si `numero_ej_doit_etre_renseigne=true` 3. Avoir uploadé le PDF Factur-X (via `/transverses/ajouter-fichier`) **Format attendu** : - `piece_jointe_principale_id` : ID retourné par `/transverses/ajouter-fichier` - Montants : Chaînes de caractères avec 2 décimales (ex: \"1250.50\") - Dates : Format ISO 8601 (YYYY-MM-DD) **Retour** : - `identifiant_facture_cpp` : ID Chorus Pro de la facture créée - `numero_flux_depot` : Numéro de suivi du dépôt **Statuts possibles après soumission** : - SOUMISE : En attente de validation - VALIDEE : Validée par le destinataire - REJETEE : Rejetée (erreur de données ou refus métier) - SUSPENDUE : En attente d\'informations complémentaires **Note** : Utilisez `/factures/consulter` pour suivre l\'évolution du statut.
741
+ * @summary Soumettre une facture à Chorus Pro
742
+ * @param {SoumettreFactureRequest} soumettreFactureRequest
743
+ * @param {*} [options] Override http request option.
744
+ * @throws {RequiredError}
745
+ */
746
+ soumettreFactureApiV1ChorusProFacturesSoumettrePost(soumettreFactureRequest, options) {
747
+ return __awaiter(this, void 0, void 0, function* () {
748
+ var _a, _b, _c;
749
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.soumettreFactureApiV1ChorusProFacturesSoumettrePost(soumettreFactureRequest, options);
750
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
751
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.soumettreFactureApiV1ChorusProFacturesSoumettrePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
752
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
753
+ });
754
+ },
755
+ /**
756
+ * Télécharge une ou plusieurs factures (max 10 recommandé) avec leurs pièces jointes. **Formats disponibles** : - PDF : Fichier PDF uniquement - XML : Fichier XML uniquement - ZIP : Archive contenant PDF + XML + pièces jointes **Taille maximale** : 120 Mo par téléchargement **Payload exemple** : ```json { \"listeIdentifiantsFactureCPP\": [12345, 12346], \"inclurePiecesJointes\": true, \"formatFichier\": \"ZIP\" } ``` **Retour** : Le fichier est encodé en base64 dans le champ `fichierBase64`. **Note** : Le flag `factureTelechargeeParDestinataire` est mis à jour automatiquement.
757
+ * @summary Télécharger un groupe de factures
758
+ * @param {BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost} bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost
759
+ * @param {*} [options] Override http request option.
760
+ * @throws {RequiredError}
761
+ */
762
+ telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, options) {
763
+ return __awaiter(this, void 0, void 0, function* () {
764
+ var _a, _b, _c;
765
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, options);
766
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
767
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
768
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
769
+ });
770
+ },
771
+ /**
772
+ * Change le statut d\'une facture reçue. **Statuts possibles** : - MISE_A_DISPOSITION : Facture acceptée - SUSPENDUE : En attente d\'informations complémentaires (motif obligatoire) - REJETEE : Facture refusée (motif obligatoire) - MANDATEE : Facture mandatée - MISE_EN_PAIEMENT : Facture en cours de paiement - COMPTABILISEE : Facture comptabilisée - MISE_A_DISPOSITION_COMPTABLE : Mise à disposition comptable - A_RECYCLER : À recycler - COMPLETEE : Complétée - SERVICE-FAIT : Service fait - PRISE_EN_COMPTE_DESTINATAIRE : Prise en compte - TRANSMISE_MOA : Transmise à la MOA **Payload exemple** : ```json { \"identifiantFactureCPP\": 12345, \"nouveauStatut\": \"REJETEE\", \"motifRejet\": \"Facture en double\", \"commentaire\": \"Facture déjà reçue sous la référence ABC123\" } ``` **Règles** : - Un motif est **obligatoire** pour SUSPENDUE et REJETEE - Seuls certains statuts sont autorisés selon le statut actuel de la facture
773
+ * @summary Traiter une facture reçue (Destinataire)
774
+ * @param {BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost} bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost
775
+ * @param {*} [options] Override http request option.
776
+ * @throws {RequiredError}
777
+ */
778
+ traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, options) {
779
+ return __awaiter(this, void 0, void 0, function* () {
780
+ var _a, _b, _c;
781
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, options);
782
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
783
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
784
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
785
+ });
786
+ },
787
+ /**
788
+ * Consulte facture (valideur).
789
+ * @summary Consulter une facture (Valideur)
790
+ * @param {BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost} bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost
791
+ * @param {*} [options] Override http request option.
792
+ * @throws {RequiredError}
793
+ */
794
+ valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, options) {
795
+ return __awaiter(this, void 0, void 0, function* () {
796
+ var _a, _b, _c;
797
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, options);
798
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
799
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
800
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
801
+ });
802
+ },
803
+ /**
804
+ * Recherche les factures en attente de validation par le valideur connecté. **Rôle** : Valideur dans le circuit de validation interne. **Filtres** : Dates, structure, service, etc.
805
+ * @summary Rechercher factures à valider (Valideur)
806
+ * @param {BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost} bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ */
810
+ valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, options) {
811
+ return __awaiter(this, void 0, void 0, function* () {
812
+ var _a, _b, _c;
813
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, options);
814
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
815
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
816
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
817
+ });
818
+ },
819
+ /**
820
+ * Valide ou refuse une facture en attente de validation. **Actions** : - Valider : La facture passe au statut suivant du circuit - Refuser : La facture est rejetée (motif obligatoire)
821
+ * @summary Valider ou refuser une facture (Valideur)
822
+ * @param {BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost} bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost
823
+ * @param {*} [options] Override http request option.
824
+ * @throws {RequiredError}
825
+ */
826
+ valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, options) {
827
+ return __awaiter(this, void 0, void 0, function* () {
828
+ var _a, _b, _c;
829
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, options);
830
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
831
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChorusProApi.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
832
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
833
+ });
834
+ },
835
+ };
836
+ };
837
+ exports.ChorusProApiFp = ChorusProApiFp;
838
+ /**
839
+ * ChorusProApi - factory interface
840
+ */
841
+ const ChorusProApiFactory = function (configuration, basePath, axios) {
842
+ const localVarFp = (0, exports.ChorusProApiFp)(configuration);
843
+ return {
844
+ /**
845
+ * Ajoute une pièce jointe au compte utilisateur courant. **Taille max** : 10 Mo par fichier **Payload exemple** : ```json { \"pieceJointeFichier\": \"JVBERi0xLjQKJeLjz9MKNSAwIG9iago8P...\", \"pieceJointeNom\": \"bon_commande.pdf\", \"pieceJointeTypeMime\": \"application/pdf\", \"pieceJointeExtension\": \"PDF\" } ``` **Retour** : L\'ID de la pièce jointe (`pieceJointeIdFichier`) à utiliser ensuite dans `/factures/completer`. **Extensions acceptées** : PDF, JPG, PNG, ZIP, XML, etc.
846
+ * @summary Ajouter une pièce jointe
847
+ * @param {BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost} bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost
848
+ * @param {*} [options] Override http request option.
849
+ * @throws {RequiredError}
850
+ */
851
+ ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, options) {
852
+ return localVarFp.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, options).then((request) => request(axios, basePath));
853
+ },
854
+ /**
855
+ * Complète une facture au statut SUSPENDUE en ajoutant des pièces jointes ou un commentaire. **Statut requis** : SUSPENDUE **Actions possibles** : - Ajouter des pièces jointes (justificatifs, bons de commande, etc.) - Modifier le commentaire **Payload exemple** : ```json { \"identifiantFactureCPP\": 12345, \"commentaire\": \"Voici les justificatifs demandés\", \"listePiecesJointes\": [ { \"pieceJointeIdFichier\": 98765, \"pieceJointeNom\": \"bon_commande.pdf\" } ] } ``` **Note** : Les pièces jointes doivent d\'abord être uploadées via `/transverses/ajouter-fichier`. **Après complétion** : La facture repasse au statut MISE_A_DISPOSITION.
856
+ * @summary Compléter une facture suspendue (Fournisseur)
857
+ * @param {BodyCompleterFactureApiV1ChorusProFacturesCompleterPost} bodyCompleterFactureApiV1ChorusProFacturesCompleterPost
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ */
861
+ completerFactureApiV1ChorusProFacturesCompleterPost(bodyCompleterFactureApiV1ChorusProFacturesCompleterPost, options) {
862
+ return localVarFp.completerFactureApiV1ChorusProFacturesCompleterPost(bodyCompleterFactureApiV1ChorusProFacturesCompleterPost, options).then((request) => request(axios, basePath));
863
+ },
864
+ /**
865
+ * Récupère les informations et le statut actuel d\'une facture soumise à Chorus Pro. **Retour** : - Numéro et date de facture - Montant TTC - **Statut courant** : SOUMISE, VALIDEE, REJETEE, SUSPENDUE, MANDATEE, MISE_EN_PAIEMENT, etc. - Structure destinataire **Cas d\'usage** : - Suivre l\'évolution du traitement d\'une facture - Vérifier si une facture a été validée ou rejetée - Obtenir la date de mise en paiement **Polling** : Appelez cet endpoint régulièrement pour suivre l\'évolution du statut.
866
+ * @summary Consulter le statut d\'une facture
867
+ * @param {ConsulterFactureRequest} consulterFactureRequest
868
+ * @param {*} [options] Override http request option.
869
+ * @throws {RequiredError}
870
+ */
871
+ consulterFactureApiV1ChorusProFacturesConsulterPost(consulterFactureRequest, options) {
872
+ return localVarFp.consulterFactureApiV1ChorusProFacturesConsulterPost(consulterFactureRequest, options).then((request) => request(axios, basePath));
873
+ },
874
+ /**
875
+ * Récupère les informations détaillées d\'une structure Chorus Pro. **Retour** : - Raison sociale - Numéro de TVA intracommunautaire - Email de contact - **Paramètres obligatoires** : Indique si le code service et/ou numéro d\'engagement sont requis pour soumettre une facture **Étape typique** : Appelée après `rechercher-structures` pour savoir quels champs sont obligatoires avant de soumettre une facture.
876
+ * @summary Consulter les détails d\'une structure
877
+ * @param {ConsulterStructureRequest} consulterStructureRequest
878
+ * @param {*} [options] Override http request option.
879
+ * @throws {RequiredError}
880
+ */
881
+ consulterStructureApiV1ChorusProStructuresConsulterPost(consulterStructureRequest, options) {
882
+ return localVarFp.consulterStructureApiV1ChorusProStructuresConsulterPost(consulterStructureRequest, options).then((request) => request(axios, basePath));
883
+ },
884
+ /**
885
+ * Récupère la liste des services actifs d\'une structure publique. **Cas d\'usage** : - Lister les services disponibles pour une administration - Vérifier qu\'un code service existe avant de soumettre une facture **Retour** : - Liste des services avec leur code, libellé et statut (actif/inactif)
886
+ * @summary Lister les services d\'une structure
887
+ * @param {number} idStructureCpp
888
+ * @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
889
+ * @param {*} [options] Override http request option.
890
+ * @throws {RequiredError}
891
+ */
892
+ listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, options) {
893
+ return localVarFp.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, options).then((request) => request(axios, basePath));
894
+ },
895
+ /**
896
+ * **Utilitaire pratique** pour obtenir l\'ID Chorus Pro d\'une structure à partir de son SIRET. Cette fonction wrapper combine : 1. Recherche de la structure par SIRET 2. Extraction de l\'`id_structure_cpp` si une seule structure est trouvée **Retour** : - `id_structure_cpp` : ID Chorus Pro (0 si non trouvé ou si plusieurs résultats) - `designation_structure` : Nom de la structure (si trouvée) - `message` : Message explicatif **Cas d\'usage** : - Raccourci pour obtenir directement l\'ID Chorus Pro avant de soumettre une facture - Alternative simplifiée à `rechercher-structures` + extraction manuelle de l\'ID **Note** : Si plusieurs structures correspondent au SIRET (rare), retourne 0 et un message d\'erreur.
897
+ * @summary Utilitaire : Obtenir l\'ID Chorus Pro depuis un SIRET
898
+ * @param {ObtenirIdChorusProRequest} obtenirIdChorusProRequest
899
+ * @param {*} [options] Override http request option.
900
+ * @throws {RequiredError}
901
+ */
902
+ obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(obtenirIdChorusProRequest, options) {
903
+ return localVarFp.obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(obtenirIdChorusProRequest, options).then((request) => request(axios, basePath));
904
+ },
905
+ /**
906
+ * Recherche les factures reçues par le destinataire connecté. **Filtres** : - Téléchargée / non téléchargée - Dates de réception - Statut (MISE_A_DISPOSITION, SUSPENDUE, etc.) - Fournisseur **Indicateur utile** : `factureTelechargeeParDestinataire` permet de savoir si la facture a déjà été téléchargée.
907
+ * @summary Rechercher factures reçues (Destinataire)
908
+ * @param {BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost} bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost
909
+ * @param {*} [options] Override http request option.
910
+ * @throws {RequiredError}
911
+ */
912
+ rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, options) {
913
+ return localVarFp.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, options).then((request) => request(axios, basePath));
914
+ },
915
+ /**
916
+ * Recherche les factures émises par le fournisseur connecté. **Filtres disponibles** : - Numéro de facture - Dates (début/fin) - Statut - Structure destinataire - Montant **Cas d\'usage** : - Suivi des factures émises - Vérification des statuts - Export pour comptabilité
917
+ * @summary Rechercher factures émises (Fournisseur)
918
+ * @param {BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost} bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost
919
+ * @param {*} [options] Override http request option.
920
+ * @throws {RequiredError}
921
+ */
922
+ rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, options) {
923
+ return localVarFp.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, options).then((request) => request(axios, basePath));
924
+ },
925
+ /**
926
+ * Recherche des structures (entreprises, administrations) enregistrées sur Chorus Pro. **Cas d\'usage** : - Trouver l\'ID Chorus Pro d\'une structure à partir de son SIRET - Vérifier si une structure est enregistrée sur Chorus Pro - Lister les structures correspondant à des critères **Filtres disponibles** : - Identifiant (SIRET, SIREN, etc.) - Raison sociale - Type d\'identifiant - Structures privées uniquement **Étape typique** : Appelée avant `soumettre-facture` pour obtenir l\'`id_structure_cpp` du destinataire.
927
+ * @summary Rechercher des structures Chorus Pro
928
+ * @param {RechercherStructureRequest} rechercherStructureRequest
929
+ * @param {*} [options] Override http request option.
930
+ * @throws {RequiredError}
931
+ */
932
+ rechercherStructuresApiV1ChorusProStructuresRechercherPost(rechercherStructureRequest, options) {
933
+ return localVarFp.rechercherStructuresApiV1ChorusProStructuresRechercherPost(rechercherStructureRequest, options).then((request) => request(axios, basePath));
934
+ },
935
+ /**
936
+ * Recycle une facture au statut A_RECYCLER en modifiant les données d\'acheminement. **Statut requis** : A_RECYCLER **Champs modifiables** : - Destinataire (`idStructureCPP`) - Code service - Numéro d\'engagement **Cas d\'usage** : - Erreur de destinataire - Changement de service facturation - Mise à jour du numéro d\'engagement **Payload exemple** : ```json { \"identifiantFactureCPP\": 12345, \"idStructureCPP\": 67890, \"codeService\": \"SERVICE_01\", \"numeroEngagement\": \"ENG2024001\" } ``` **Note** : La facture conserve son numéro et ses montants, seuls les champs d\'acheminement changent.
937
+ * @summary Recycler une facture (Fournisseur)
938
+ * @param {BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost} bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost
939
+ * @param {*} [options] Override http request option.
940
+ * @throws {RequiredError}
941
+ */
942
+ recyclerFactureApiV1ChorusProFacturesRecyclerPost(bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, options) {
943
+ return localVarFp.recyclerFactureApiV1ChorusProFacturesRecyclerPost(bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, options).then((request) => request(axios, basePath));
944
+ },
945
+ /**
946
+ * Soumet une facture électronique à une structure publique via Chorus Pro. **📋 Workflow complet** : 1. **Uploader le PDF Factur-X** via `/transverses/ajouter-fichier` → récupérer `pieceJointeId` 2. **Obtenir l\'ID structure** via `/structures/rechercher` ou `/structures/obtenir-id-depuis-siret` 3. **Vérifier les paramètres obligatoires** via `/structures/consulter` 4. **Soumettre la facture** avec le `piece_jointe_principale_id` obtenu à l\'étape 1 **Pré-requis** : 1. Avoir l\'`id_structure_cpp` du destinataire (via `/structures/rechercher`) 2. Connaître les paramètres obligatoires (via `/structures/consulter`) : - Code service si `code_service_doit_etre_renseigne=true` - Numéro d\'engagement si `numero_ej_doit_etre_renseigne=true` 3. Avoir uploadé le PDF Factur-X (via `/transverses/ajouter-fichier`) **Format attendu** : - `piece_jointe_principale_id` : ID retourné par `/transverses/ajouter-fichier` - Montants : Chaînes de caractères avec 2 décimales (ex: \"1250.50\") - Dates : Format ISO 8601 (YYYY-MM-DD) **Retour** : - `identifiant_facture_cpp` : ID Chorus Pro de la facture créée - `numero_flux_depot` : Numéro de suivi du dépôt **Statuts possibles après soumission** : - SOUMISE : En attente de validation - VALIDEE : Validée par le destinataire - REJETEE : Rejetée (erreur de données ou refus métier) - SUSPENDUE : En attente d\'informations complémentaires **Note** : Utilisez `/factures/consulter` pour suivre l\'évolution du statut.
947
+ * @summary Soumettre une facture à Chorus Pro
948
+ * @param {SoumettreFactureRequest} soumettreFactureRequest
949
+ * @param {*} [options] Override http request option.
950
+ * @throws {RequiredError}
951
+ */
952
+ soumettreFactureApiV1ChorusProFacturesSoumettrePost(soumettreFactureRequest, options) {
953
+ return localVarFp.soumettreFactureApiV1ChorusProFacturesSoumettrePost(soumettreFactureRequest, options).then((request) => request(axios, basePath));
954
+ },
955
+ /**
956
+ * Télécharge une ou plusieurs factures (max 10 recommandé) avec leurs pièces jointes. **Formats disponibles** : - PDF : Fichier PDF uniquement - XML : Fichier XML uniquement - ZIP : Archive contenant PDF + XML + pièces jointes **Taille maximale** : 120 Mo par téléchargement **Payload exemple** : ```json { \"listeIdentifiantsFactureCPP\": [12345, 12346], \"inclurePiecesJointes\": true, \"formatFichier\": \"ZIP\" } ``` **Retour** : Le fichier est encodé en base64 dans le champ `fichierBase64`. **Note** : Le flag `factureTelechargeeParDestinataire` est mis à jour automatiquement.
957
+ * @summary Télécharger un groupe de factures
958
+ * @param {BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost} bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost
959
+ * @param {*} [options] Override http request option.
960
+ * @throws {RequiredError}
961
+ */
962
+ telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, options) {
963
+ return localVarFp.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, options).then((request) => request(axios, basePath));
964
+ },
965
+ /**
966
+ * Change le statut d\'une facture reçue. **Statuts possibles** : - MISE_A_DISPOSITION : Facture acceptée - SUSPENDUE : En attente d\'informations complémentaires (motif obligatoire) - REJETEE : Facture refusée (motif obligatoire) - MANDATEE : Facture mandatée - MISE_EN_PAIEMENT : Facture en cours de paiement - COMPTABILISEE : Facture comptabilisée - MISE_A_DISPOSITION_COMPTABLE : Mise à disposition comptable - A_RECYCLER : À recycler - COMPLETEE : Complétée - SERVICE-FAIT : Service fait - PRISE_EN_COMPTE_DESTINATAIRE : Prise en compte - TRANSMISE_MOA : Transmise à la MOA **Payload exemple** : ```json { \"identifiantFactureCPP\": 12345, \"nouveauStatut\": \"REJETEE\", \"motifRejet\": \"Facture en double\", \"commentaire\": \"Facture déjà reçue sous la référence ABC123\" } ``` **Règles** : - Un motif est **obligatoire** pour SUSPENDUE et REJETEE - Seuls certains statuts sont autorisés selon le statut actuel de la facture
967
+ * @summary Traiter une facture reçue (Destinataire)
968
+ * @param {BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost} bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost
969
+ * @param {*} [options] Override http request option.
970
+ * @throws {RequiredError}
971
+ */
972
+ traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, options) {
973
+ return localVarFp.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, options).then((request) => request(axios, basePath));
974
+ },
975
+ /**
976
+ * Consulte facture (valideur).
977
+ * @summary Consulter une facture (Valideur)
978
+ * @param {BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost} bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost
979
+ * @param {*} [options] Override http request option.
980
+ * @throws {RequiredError}
981
+ */
982
+ valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, options) {
983
+ return localVarFp.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, options).then((request) => request(axios, basePath));
984
+ },
985
+ /**
986
+ * Recherche les factures en attente de validation par le valideur connecté. **Rôle** : Valideur dans le circuit de validation interne. **Filtres** : Dates, structure, service, etc.
987
+ * @summary Rechercher factures à valider (Valideur)
988
+ * @param {BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost} bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost
989
+ * @param {*} [options] Override http request option.
990
+ * @throws {RequiredError}
991
+ */
992
+ valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, options) {
993
+ return localVarFp.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, options).then((request) => request(axios, basePath));
994
+ },
995
+ /**
996
+ * Valide ou refuse une facture en attente de validation. **Actions** : - Valider : La facture passe au statut suivant du circuit - Refuser : La facture est rejetée (motif obligatoire)
997
+ * @summary Valider ou refuser une facture (Valideur)
998
+ * @param {BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost} bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost
999
+ * @param {*} [options] Override http request option.
1000
+ * @throws {RequiredError}
1001
+ */
1002
+ valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, options) {
1003
+ return localVarFp.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, options).then((request) => request(axios, basePath));
1004
+ },
1005
+ };
1006
+ };
1007
+ exports.ChorusProApiFactory = ChorusProApiFactory;
1008
+ /**
1009
+ * ChorusProApi - object-oriented interface
1010
+ */
1011
+ class ChorusProApi extends base_1.BaseAPI {
1012
+ /**
1013
+ * Ajoute une pièce jointe au compte utilisateur courant. **Taille max** : 10 Mo par fichier **Payload exemple** : ```json { \"pieceJointeFichier\": \"JVBERi0xLjQKJeLjz9MKNSAwIG9iago8P...\", \"pieceJointeNom\": \"bon_commande.pdf\", \"pieceJointeTypeMime\": \"application/pdf\", \"pieceJointeExtension\": \"PDF\" } ``` **Retour** : L\'ID de la pièce jointe (`pieceJointeIdFichier`) à utiliser ensuite dans `/factures/completer`. **Extensions acceptées** : PDF, JPG, PNG, ZIP, XML, etc.
1014
+ * @summary Ajouter une pièce jointe
1015
+ * @param {BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost} bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost
1016
+ * @param {*} [options] Override http request option.
1017
+ * @throws {RequiredError}
1018
+ */
1019
+ ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, options) {
1020
+ return (0, exports.ChorusProApiFp)(this.configuration).ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, options).then((request) => request(this.axios, this.basePath));
1021
+ }
1022
+ /**
1023
+ * Complète une facture au statut SUSPENDUE en ajoutant des pièces jointes ou un commentaire. **Statut requis** : SUSPENDUE **Actions possibles** : - Ajouter des pièces jointes (justificatifs, bons de commande, etc.) - Modifier le commentaire **Payload exemple** : ```json { \"identifiantFactureCPP\": 12345, \"commentaire\": \"Voici les justificatifs demandés\", \"listePiecesJointes\": [ { \"pieceJointeIdFichier\": 98765, \"pieceJointeNom\": \"bon_commande.pdf\" } ] } ``` **Note** : Les pièces jointes doivent d\'abord être uploadées via `/transverses/ajouter-fichier`. **Après complétion** : La facture repasse au statut MISE_A_DISPOSITION.
1024
+ * @summary Compléter une facture suspendue (Fournisseur)
1025
+ * @param {BodyCompleterFactureApiV1ChorusProFacturesCompleterPost} bodyCompleterFactureApiV1ChorusProFacturesCompleterPost
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ completerFactureApiV1ChorusProFacturesCompleterPost(bodyCompleterFactureApiV1ChorusProFacturesCompleterPost, options) {
1030
+ return (0, exports.ChorusProApiFp)(this.configuration).completerFactureApiV1ChorusProFacturesCompleterPost(bodyCompleterFactureApiV1ChorusProFacturesCompleterPost, options).then((request) => request(this.axios, this.basePath));
1031
+ }
1032
+ /**
1033
+ * Récupère les informations et le statut actuel d\'une facture soumise à Chorus Pro. **Retour** : - Numéro et date de facture - Montant TTC - **Statut courant** : SOUMISE, VALIDEE, REJETEE, SUSPENDUE, MANDATEE, MISE_EN_PAIEMENT, etc. - Structure destinataire **Cas d\'usage** : - Suivre l\'évolution du traitement d\'une facture - Vérifier si une facture a été validée ou rejetée - Obtenir la date de mise en paiement **Polling** : Appelez cet endpoint régulièrement pour suivre l\'évolution du statut.
1034
+ * @summary Consulter le statut d\'une facture
1035
+ * @param {ConsulterFactureRequest} consulterFactureRequest
1036
+ * @param {*} [options] Override http request option.
1037
+ * @throws {RequiredError}
1038
+ */
1039
+ consulterFactureApiV1ChorusProFacturesConsulterPost(consulterFactureRequest, options) {
1040
+ return (0, exports.ChorusProApiFp)(this.configuration).consulterFactureApiV1ChorusProFacturesConsulterPost(consulterFactureRequest, options).then((request) => request(this.axios, this.basePath));
1041
+ }
1042
+ /**
1043
+ * Récupère les informations détaillées d\'une structure Chorus Pro. **Retour** : - Raison sociale - Numéro de TVA intracommunautaire - Email de contact - **Paramètres obligatoires** : Indique si le code service et/ou numéro d\'engagement sont requis pour soumettre une facture **Étape typique** : Appelée après `rechercher-structures` pour savoir quels champs sont obligatoires avant de soumettre une facture.
1044
+ * @summary Consulter les détails d\'une structure
1045
+ * @param {ConsulterStructureRequest} consulterStructureRequest
1046
+ * @param {*} [options] Override http request option.
1047
+ * @throws {RequiredError}
1048
+ */
1049
+ consulterStructureApiV1ChorusProStructuresConsulterPost(consulterStructureRequest, options) {
1050
+ return (0, exports.ChorusProApiFp)(this.configuration).consulterStructureApiV1ChorusProStructuresConsulterPost(consulterStructureRequest, options).then((request) => request(this.axios, this.basePath));
1051
+ }
1052
+ /**
1053
+ * Récupère la liste des services actifs d\'une structure publique. **Cas d\'usage** : - Lister les services disponibles pour une administration - Vérifier qu\'un code service existe avant de soumettre une facture **Retour** : - Liste des services avec leur code, libellé et statut (actif/inactif)
1054
+ * @summary Lister les services d\'une structure
1055
+ * @param {number} idStructureCpp
1056
+ * @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
1057
+ * @param {*} [options] Override http request option.
1058
+ * @throws {RequiredError}
1059
+ */
1060
+ listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, options) {
1061
+ return (0, exports.ChorusProApiFp)(this.configuration).listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, options).then((request) => request(this.axios, this.basePath));
1062
+ }
1063
+ /**
1064
+ * **Utilitaire pratique** pour obtenir l\'ID Chorus Pro d\'une structure à partir de son SIRET. Cette fonction wrapper combine : 1. Recherche de la structure par SIRET 2. Extraction de l\'`id_structure_cpp` si une seule structure est trouvée **Retour** : - `id_structure_cpp` : ID Chorus Pro (0 si non trouvé ou si plusieurs résultats) - `designation_structure` : Nom de la structure (si trouvée) - `message` : Message explicatif **Cas d\'usage** : - Raccourci pour obtenir directement l\'ID Chorus Pro avant de soumettre une facture - Alternative simplifiée à `rechercher-structures` + extraction manuelle de l\'ID **Note** : Si plusieurs structures correspondent au SIRET (rare), retourne 0 et un message d\'erreur.
1065
+ * @summary Utilitaire : Obtenir l\'ID Chorus Pro depuis un SIRET
1066
+ * @param {ObtenirIdChorusProRequest} obtenirIdChorusProRequest
1067
+ * @param {*} [options] Override http request option.
1068
+ * @throws {RequiredError}
1069
+ */
1070
+ obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(obtenirIdChorusProRequest, options) {
1071
+ return (0, exports.ChorusProApiFp)(this.configuration).obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(obtenirIdChorusProRequest, options).then((request) => request(this.axios, this.basePath));
1072
+ }
1073
+ /**
1074
+ * Recherche les factures reçues par le destinataire connecté. **Filtres** : - Téléchargée / non téléchargée - Dates de réception - Statut (MISE_A_DISPOSITION, SUSPENDUE, etc.) - Fournisseur **Indicateur utile** : `factureTelechargeeParDestinataire` permet de savoir si la facture a déjà été téléchargée.
1075
+ * @summary Rechercher factures reçues (Destinataire)
1076
+ * @param {BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost} bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost
1077
+ * @param {*} [options] Override http request option.
1078
+ * @throws {RequiredError}
1079
+ */
1080
+ rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, options) {
1081
+ return (0, exports.ChorusProApiFp)(this.configuration).rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, options).then((request) => request(this.axios, this.basePath));
1082
+ }
1083
+ /**
1084
+ * Recherche les factures émises par le fournisseur connecté. **Filtres disponibles** : - Numéro de facture - Dates (début/fin) - Statut - Structure destinataire - Montant **Cas d\'usage** : - Suivi des factures émises - Vérification des statuts - Export pour comptabilité
1085
+ * @summary Rechercher factures émises (Fournisseur)
1086
+ * @param {BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost} bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost
1087
+ * @param {*} [options] Override http request option.
1088
+ * @throws {RequiredError}
1089
+ */
1090
+ rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, options) {
1091
+ return (0, exports.ChorusProApiFp)(this.configuration).rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, options).then((request) => request(this.axios, this.basePath));
1092
+ }
1093
+ /**
1094
+ * Recherche des structures (entreprises, administrations) enregistrées sur Chorus Pro. **Cas d\'usage** : - Trouver l\'ID Chorus Pro d\'une structure à partir de son SIRET - Vérifier si une structure est enregistrée sur Chorus Pro - Lister les structures correspondant à des critères **Filtres disponibles** : - Identifiant (SIRET, SIREN, etc.) - Raison sociale - Type d\'identifiant - Structures privées uniquement **Étape typique** : Appelée avant `soumettre-facture` pour obtenir l\'`id_structure_cpp` du destinataire.
1095
+ * @summary Rechercher des structures Chorus Pro
1096
+ * @param {RechercherStructureRequest} rechercherStructureRequest
1097
+ * @param {*} [options] Override http request option.
1098
+ * @throws {RequiredError}
1099
+ */
1100
+ rechercherStructuresApiV1ChorusProStructuresRechercherPost(rechercherStructureRequest, options) {
1101
+ return (0, exports.ChorusProApiFp)(this.configuration).rechercherStructuresApiV1ChorusProStructuresRechercherPost(rechercherStructureRequest, options).then((request) => request(this.axios, this.basePath));
1102
+ }
1103
+ /**
1104
+ * Recycle une facture au statut A_RECYCLER en modifiant les données d\'acheminement. **Statut requis** : A_RECYCLER **Champs modifiables** : - Destinataire (`idStructureCPP`) - Code service - Numéro d\'engagement **Cas d\'usage** : - Erreur de destinataire - Changement de service facturation - Mise à jour du numéro d\'engagement **Payload exemple** : ```json { \"identifiantFactureCPP\": 12345, \"idStructureCPP\": 67890, \"codeService\": \"SERVICE_01\", \"numeroEngagement\": \"ENG2024001\" } ``` **Note** : La facture conserve son numéro et ses montants, seuls les champs d\'acheminement changent.
1105
+ * @summary Recycler une facture (Fournisseur)
1106
+ * @param {BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost} bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost
1107
+ * @param {*} [options] Override http request option.
1108
+ * @throws {RequiredError}
1109
+ */
1110
+ recyclerFactureApiV1ChorusProFacturesRecyclerPost(bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, options) {
1111
+ return (0, exports.ChorusProApiFp)(this.configuration).recyclerFactureApiV1ChorusProFacturesRecyclerPost(bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, options).then((request) => request(this.axios, this.basePath));
1112
+ }
1113
+ /**
1114
+ * Soumet une facture électronique à une structure publique via Chorus Pro. **📋 Workflow complet** : 1. **Uploader le PDF Factur-X** via `/transverses/ajouter-fichier` → récupérer `pieceJointeId` 2. **Obtenir l\'ID structure** via `/structures/rechercher` ou `/structures/obtenir-id-depuis-siret` 3. **Vérifier les paramètres obligatoires** via `/structures/consulter` 4. **Soumettre la facture** avec le `piece_jointe_principale_id` obtenu à l\'étape 1 **Pré-requis** : 1. Avoir l\'`id_structure_cpp` du destinataire (via `/structures/rechercher`) 2. Connaître les paramètres obligatoires (via `/structures/consulter`) : - Code service si `code_service_doit_etre_renseigne=true` - Numéro d\'engagement si `numero_ej_doit_etre_renseigne=true` 3. Avoir uploadé le PDF Factur-X (via `/transverses/ajouter-fichier`) **Format attendu** : - `piece_jointe_principale_id` : ID retourné par `/transverses/ajouter-fichier` - Montants : Chaînes de caractères avec 2 décimales (ex: \"1250.50\") - Dates : Format ISO 8601 (YYYY-MM-DD) **Retour** : - `identifiant_facture_cpp` : ID Chorus Pro de la facture créée - `numero_flux_depot` : Numéro de suivi du dépôt **Statuts possibles après soumission** : - SOUMISE : En attente de validation - VALIDEE : Validée par le destinataire - REJETEE : Rejetée (erreur de données ou refus métier) - SUSPENDUE : En attente d\'informations complémentaires **Note** : Utilisez `/factures/consulter` pour suivre l\'évolution du statut.
1115
+ * @summary Soumettre une facture à Chorus Pro
1116
+ * @param {SoumettreFactureRequest} soumettreFactureRequest
1117
+ * @param {*} [options] Override http request option.
1118
+ * @throws {RequiredError}
1119
+ */
1120
+ soumettreFactureApiV1ChorusProFacturesSoumettrePost(soumettreFactureRequest, options) {
1121
+ return (0, exports.ChorusProApiFp)(this.configuration).soumettreFactureApiV1ChorusProFacturesSoumettrePost(soumettreFactureRequest, options).then((request) => request(this.axios, this.basePath));
1122
+ }
1123
+ /**
1124
+ * Télécharge une ou plusieurs factures (max 10 recommandé) avec leurs pièces jointes. **Formats disponibles** : - PDF : Fichier PDF uniquement - XML : Fichier XML uniquement - ZIP : Archive contenant PDF + XML + pièces jointes **Taille maximale** : 120 Mo par téléchargement **Payload exemple** : ```json { \"listeIdentifiantsFactureCPP\": [12345, 12346], \"inclurePiecesJointes\": true, \"formatFichier\": \"ZIP\" } ``` **Retour** : Le fichier est encodé en base64 dans le champ `fichierBase64`. **Note** : Le flag `factureTelechargeeParDestinataire` est mis à jour automatiquement.
1125
+ * @summary Télécharger un groupe de factures
1126
+ * @param {BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost} bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost
1127
+ * @param {*} [options] Override http request option.
1128
+ * @throws {RequiredError}
1129
+ */
1130
+ telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, options) {
1131
+ return (0, exports.ChorusProApiFp)(this.configuration).telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, options).then((request) => request(this.axios, this.basePath));
1132
+ }
1133
+ /**
1134
+ * Change le statut d\'une facture reçue. **Statuts possibles** : - MISE_A_DISPOSITION : Facture acceptée - SUSPENDUE : En attente d\'informations complémentaires (motif obligatoire) - REJETEE : Facture refusée (motif obligatoire) - MANDATEE : Facture mandatée - MISE_EN_PAIEMENT : Facture en cours de paiement - COMPTABILISEE : Facture comptabilisée - MISE_A_DISPOSITION_COMPTABLE : Mise à disposition comptable - A_RECYCLER : À recycler - COMPLETEE : Complétée - SERVICE-FAIT : Service fait - PRISE_EN_COMPTE_DESTINATAIRE : Prise en compte - TRANSMISE_MOA : Transmise à la MOA **Payload exemple** : ```json { \"identifiantFactureCPP\": 12345, \"nouveauStatut\": \"REJETEE\", \"motifRejet\": \"Facture en double\", \"commentaire\": \"Facture déjà reçue sous la référence ABC123\" } ``` **Règles** : - Un motif est **obligatoire** pour SUSPENDUE et REJETEE - Seuls certains statuts sont autorisés selon le statut actuel de la facture
1135
+ * @summary Traiter une facture reçue (Destinataire)
1136
+ * @param {BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost} bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost
1137
+ * @param {*} [options] Override http request option.
1138
+ * @throws {RequiredError}
1139
+ */
1140
+ traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, options) {
1141
+ return (0, exports.ChorusProApiFp)(this.configuration).traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, options).then((request) => request(this.axios, this.basePath));
1142
+ }
1143
+ /**
1144
+ * Consulte facture (valideur).
1145
+ * @summary Consulter une facture (Valideur)
1146
+ * @param {BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost} bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost
1147
+ * @param {*} [options] Override http request option.
1148
+ * @throws {RequiredError}
1149
+ */
1150
+ valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, options) {
1151
+ return (0, exports.ChorusProApiFp)(this.configuration).valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, options).then((request) => request(this.axios, this.basePath));
1152
+ }
1153
+ /**
1154
+ * Recherche les factures en attente de validation par le valideur connecté. **Rôle** : Valideur dans le circuit de validation interne. **Filtres** : Dates, structure, service, etc.
1155
+ * @summary Rechercher factures à valider (Valideur)
1156
+ * @param {BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost} bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost
1157
+ * @param {*} [options] Override http request option.
1158
+ * @throws {RequiredError}
1159
+ */
1160
+ valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, options) {
1161
+ return (0, exports.ChorusProApiFp)(this.configuration).valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, options).then((request) => request(this.axios, this.basePath));
1162
+ }
1163
+ /**
1164
+ * Valide ou refuse une facture en attente de validation. **Actions** : - Valider : La facture passe au statut suivant du circuit - Refuser : La facture est rejetée (motif obligatoire)
1165
+ * @summary Valider ou refuser une facture (Valideur)
1166
+ * @param {BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost} bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost
1167
+ * @param {*} [options] Override http request option.
1168
+ * @throws {RequiredError}
1169
+ */
1170
+ valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, options) {
1171
+ return (0, exports.ChorusProApiFp)(this.configuration).valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, options).then((request) => request(this.axios, this.basePath));
1172
+ }
1173
+ }
1174
+ exports.ChorusProApi = ChorusProApi;