@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.
- package/.github/SETUP_GITHUB_ACTIONS.md +12 -0
- package/.github/workflows/publish-npm.yml +39 -0
- package/.openapi-generator/FILES +248 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/CHANGELOG.md +28 -0
- package/LICENSE +21 -0
- package/README.md +149 -0
- package/api/afnorpdppaapi.ts +115 -0
- package/api/afnorpdppadirectory-service-api.ts +246 -0
- package/api/afnorpdppaflow-service-api.ts +307 -0
- package/api/chorus-pro-api.ts +1291 -0
- package/api/processing-endpoints-unifis-api.ts +210 -0
- package/api/sant-api.ts +115 -0
- package/api/signature-lectronique-api.ts +467 -0
- package/api/traitement-facture-api.ts +1093 -0
- package/api/utilisateur-api.ts +119 -0
- package/api.ts +26 -0
- package/base.ts +62 -0
- package/common.ts +113 -0
- package/configuration.ts +121 -0
- package/dist/api/afnorpdppaapi.d.ts +62 -0
- package/dist/api/afnorpdppaapi.js +121 -0
- package/dist/api/afnorpdppadirectory-service-api.d.ts +122 -0
- package/dist/api/afnorpdppadirectory-service-api.js +244 -0
- package/dist/api/afnorpdppaflow-service-api.d.ts +150 -0
- package/dist/api/afnorpdppaflow-service-api.js +302 -0
- package/dist/api/chorus-pro-api.d.ts +572 -0
- package/dist/api/chorus-pro-api.js +1174 -0
- package/dist/api/processing-endpoints-unifis-api.d.ts +101 -0
- package/dist/api/processing-endpoints-unifis-api.js +201 -0
- package/dist/api/sant-api.d.ts +62 -0
- package/dist/api/sant-api.js +121 -0
- package/dist/api/signature-lectronique-api.d.ts +212 -0
- package/dist/api/signature-lectronique-api.js +435 -0
- package/dist/api/traitement-facture-api.d.ts +480 -0
- package/dist/api/traitement-facture-api.js +996 -0
- package/dist/api/utilisateur-api.d.ts +62 -0
- package/dist/api/utilisateur-api.js +124 -0
- package/dist/api.d.ts +20 -0
- package/dist/api.js +38 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +28 -0
- package/dist/common.js +124 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api/afnorpdppaapi.d.ts +62 -0
- package/dist/esm/api/afnorpdppaapi.js +114 -0
- package/dist/esm/api/afnorpdppadirectory-service-api.d.ts +122 -0
- package/dist/esm/api/afnorpdppadirectory-service-api.js +237 -0
- package/dist/esm/api/afnorpdppaflow-service-api.d.ts +150 -0
- package/dist/esm/api/afnorpdppaflow-service-api.js +295 -0
- package/dist/esm/api/chorus-pro-api.d.ts +572 -0
- package/dist/esm/api/chorus-pro-api.js +1167 -0
- package/dist/esm/api/processing-endpoints-unifis-api.d.ts +101 -0
- package/dist/esm/api/processing-endpoints-unifis-api.js +194 -0
- package/dist/esm/api/sant-api.d.ts +62 -0
- package/dist/esm/api/sant-api.js +114 -0
- package/dist/esm/api/signature-lectronique-api.d.ts +212 -0
- package/dist/esm/api/signature-lectronique-api.js +428 -0
- package/dist/esm/api/traitement-facture-api.d.ts +480 -0
- package/dist/esm/api/traitement-facture-api.js +989 -0
- package/dist/esm/api/utilisateur-api.d.ts +62 -0
- package/dist/esm/api/utilisateur-api.js +117 -0
- package/dist/esm/api.d.ts +20 -0
- package/dist/esm/api.js +22 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +28 -0
- package/dist/esm/common.js +112 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/models/adresse-electronique.d.ts +19 -0
- package/dist/esm/models/adresse-electronique.js +14 -0
- package/dist/esm/models/adresse-postale.d.ts +21 -0
- package/dist/esm/models/adresse-postale.js +14 -0
- package/dist/esm/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.d.ts +20 -0
- package/dist/esm/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.js +14 -0
- package/dist/esm/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.d.ts +20 -0
- package/dist/esm/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.js +14 -0
- package/dist/esm/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.d.ts +17 -0
- package/dist/esm/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.js +14 -0
- package/dist/esm/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.d.ts +20 -0
- package/dist/esm/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.js +14 -0
- package/dist/esm/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.d.ts +20 -0
- package/dist/esm/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.js +14 -0
- package/dist/esm/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.d.ts +20 -0
- package/dist/esm/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.js +14 -0
- package/dist/esm/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.d.ts +20 -0
- package/dist/esm/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.js +14 -0
- package/dist/esm/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.d.ts +20 -0
- package/dist/esm/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.js +14 -0
- package/dist/esm/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.d.ts +20 -0
- package/dist/esm/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.js +14 -0
- package/dist/esm/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.d.ts +20 -0
- package/dist/esm/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.js +14 -0
- package/dist/esm/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.d.ts +20 -0
- package/dist/esm/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.js +14 -0
- package/dist/esm/models/cadre-de-facturation.d.ts +20 -0
- package/dist/esm/models/cadre-de-facturation.js +14 -0
- package/dist/esm/models/categorie-tva.d.ts +26 -0
- package/dist/esm/models/categorie-tva.js +27 -0
- package/dist/esm/models/certificate-info-response.d.ts +61 -0
- package/dist/esm/models/certificate-info-response.js +14 -0
- package/dist/esm/models/chorus-pro-credentials.d.ts +36 -0
- package/dist/esm/models/chorus-pro-credentials.js +14 -0
- package/dist/esm/models/code-cadre-facturation.d.ts +18 -0
- package/dist/esm/models/code-cadre-facturation.js +19 -0
- package/dist/esm/models/code-raison-reduction.d.ts +24 -0
- package/dist/esm/models/code-raison-reduction.js +25 -0
- package/dist/esm/models/consulter-facture-request.d.ts +22 -0
- package/dist/esm/models/consulter-facture-request.js +14 -0
- package/dist/esm/models/consulter-facture-response.d.ts +26 -0
- package/dist/esm/models/consulter-facture-response.js +14 -0
- package/dist/esm/models/consulter-structure-request.d.ts +26 -0
- package/dist/esm/models/consulter-structure-request.js +14 -0
- package/dist/esm/models/consulter-structure-response.d.ts +26 -0
- package/dist/esm/models/consulter-structure-response.js +14 -0
- package/dist/esm/models/credentials-afnor.d.ts +19 -0
- package/dist/esm/models/credentials-afnor.js +14 -0
- package/dist/esm/models/credentials-chorus-pro.d.ts +24 -0
- package/dist/esm/models/credentials-chorus-pro.js +14 -0
- package/dist/esm/models/destinataire.d.ts +22 -0
- package/dist/esm/models/destinataire.js +14 -0
- package/dist/esm/models/destination-afnor.d.ts +34 -0
- package/dist/esm/models/destination-afnor.js +21 -0
- package/dist/esm/models/destination-chorus-pro.d.ts +23 -0
- package/dist/esm/models/destination-chorus-pro.js +16 -0
- package/dist/esm/models/destination.d.ts +22 -0
- package/dist/esm/models/destination.js +14 -0
- package/dist/esm/models/direction-flux.d.ts +19 -0
- package/dist/esm/models/direction-flux.js +20 -0
- package/dist/esm/models/donnees-facture-simplifiees.d.ts +46 -0
- package/dist/esm/models/donnees-facture-simplifiees.js +14 -0
- package/dist/esm/models/facture-enrichie-info-input.d.ts +27 -0
- package/dist/esm/models/facture-enrichie-info-input.js +14 -0
- package/dist/esm/models/facture-enrichie-info-output.d.ts +24 -0
- package/dist/esm/models/facture-enrichie-info-output.js +14 -0
- package/dist/esm/models/facture-factur-x.d.ts +39 -0
- package/dist/esm/models/facture-factur-x.js +14 -0
- package/dist/esm/models/flux-resume.d.ts +24 -0
- package/dist/esm/models/flux-resume.js +14 -0
- package/dist/esm/models/format-sortie.d.ts +16 -0
- package/dist/esm/models/format-sortie.js +17 -0
- package/dist/esm/models/fournisseur.d.ts +27 -0
- package/dist/esm/models/fournisseur.js +14 -0
- package/dist/esm/models/generate-certificate-request.d.ts +54 -0
- package/dist/esm/models/generate-certificate-request.js +14 -0
- package/dist/esm/models/generate-certificate-response.d.ts +38 -0
- package/dist/esm/models/generate-certificate-response.js +14 -0
- package/dist/esm/models/httpvalidation-error.d.ts +15 -0
- package/dist/esm/models/httpvalidation-error.js +14 -0
- package/dist/esm/models/index.d.ts +108 -0
- package/dist/esm/models/index.js +108 -0
- package/dist/esm/models/information-signature-api.d.ts +25 -0
- package/dist/esm/models/information-signature-api.js +14 -0
- package/dist/esm/models/ligne-de-poste-montant-remise-ht.d.ts +16 -0
- package/dist/esm/models/ligne-de-poste-montant-remise-ht.js +14 -0
- package/dist/esm/models/ligne-de-poste-montant-total-ligne-ht.d.ts +16 -0
- package/dist/esm/models/ligne-de-poste-montant-total-ligne-ht.js +14 -0
- package/dist/esm/models/ligne-de-poste-taux-tva-manuel.d.ts +16 -0
- package/dist/esm/models/ligne-de-poste-taux-tva-manuel.js +14 -0
- package/dist/esm/models/ligne-de-poste.d.ts +39 -0
- package/dist/esm/models/ligne-de-poste.js +14 -0
- package/dist/esm/models/ligne-de-tva.d.ts +25 -0
- package/dist/esm/models/ligne-de-tva.js +14 -0
- package/dist/esm/models/mode-depot.d.ts +20 -0
- package/dist/esm/models/mode-depot.js +21 -0
- package/dist/esm/models/mode-paiement.d.ts +23 -0
- package/dist/esm/models/mode-paiement.js +24 -0
- package/dist/esm/models/montant-ht-total.d.ts +13 -0
- package/dist/esm/models/montant-ht-total.js +14 -0
- package/dist/esm/models/montant-total-acompte.d.ts +16 -0
- package/dist/esm/models/montant-total-acompte.js +14 -0
- package/dist/esm/models/montant-total-montant-remise-globale-ttc.d.ts +16 -0
- package/dist/esm/models/montant-total-montant-remise-globale-ttc.js +14 -0
- package/dist/esm/models/montant-total.d.ts +29 -0
- package/dist/esm/models/montant-total.js +14 -0
- package/dist/esm/models/montant-ttc-total.d.ts +13 -0
- package/dist/esm/models/montant-ttc-total.js +14 -0
- package/dist/esm/models/montant-tva.d.ts +13 -0
- package/dist/esm/models/montant-tva.js +14 -0
- package/dist/esm/models/montantapayer.d.ts +16 -0
- package/dist/esm/models/montantapayer.js +14 -0
- package/dist/esm/models/montantbaseht.d.ts +16 -0
- package/dist/esm/models/montantbaseht.js +14 -0
- package/dist/esm/models/montanthttotal.d.ts +16 -0
- package/dist/esm/models/montanthttotal.js +14 -0
- package/dist/esm/models/montantttctotal.d.ts +16 -0
- package/dist/esm/models/montantttctotal.js +14 -0
- package/dist/esm/models/montanttva.d.ts +16 -0
- package/dist/esm/models/montanttva.js +14 -0
- package/dist/esm/models/montanttva1.d.ts +16 -0
- package/dist/esm/models/montanttva1.js +14 -0
- package/dist/esm/models/montantunitaireht.d.ts +16 -0
- package/dist/esm/models/montantunitaireht.js +14 -0
- package/dist/esm/models/obtenir-id-chorus-pro-request.d.ts +26 -0
- package/dist/esm/models/obtenir-id-chorus-pro-request.js +14 -0
- package/dist/esm/models/obtenir-id-chorus-pro-response.d.ts +29 -0
- package/dist/esm/models/obtenir-id-chorus-pro-response.js +14 -0
- package/dist/esm/models/options-processing.d.ts +39 -0
- package/dist/esm/models/options-processing.js +19 -0
- package/dist/esm/models/parametres-signature.d.ts +34 -0
- package/dist/esm/models/parametres-signature.js +14 -0
- package/dist/esm/models/parametres-structure.d.ts +28 -0
- package/dist/esm/models/parametres-structure.js +14 -0
- package/dist/esm/models/pdffactur-xinfo.d.ts +28 -0
- package/dist/esm/models/pdffactur-xinfo.js +14 -0
- package/dist/esm/models/pdpcredentials.d.ts +32 -0
- package/dist/esm/models/pdpcredentials.js +14 -0
- package/dist/esm/models/piece-jointe-complementaire.d.ts +21 -0
- package/dist/esm/models/piece-jointe-complementaire.js +14 -0
- package/dist/esm/models/profil-api.d.ts +18 -0
- package/dist/esm/models/profil-api.js +19 -0
- package/dist/esm/models/profil-flux.d.ts +20 -0
- package/dist/esm/models/profil-flux.js +21 -0
- package/dist/esm/models/quantite.d.ts +16 -0
- package/dist/esm/models/quantite.js +14 -0
- package/dist/esm/models/quota-info.d.ts +21 -0
- package/dist/esm/models/quota-info.js +14 -0
- package/dist/esm/models/rechercher-services-response.d.ts +24 -0
- package/dist/esm/models/rechercher-services-response.js +14 -0
- package/dist/esm/models/rechercher-structure-request.d.ts +25 -0
- package/dist/esm/models/rechercher-structure-request.js +14 -0
- package/dist/esm/models/rechercher-structure-response.d.ts +30 -0
- package/dist/esm/models/rechercher-structure-response.js +14 -0
- package/dist/esm/models/references.d.ts +27 -0
- package/dist/esm/models/references.js +14 -0
- package/dist/esm/models/reponse-healthcheck-afnor.d.ts +28 -0
- package/dist/esm/models/reponse-healthcheck-afnor.js +14 -0
- package/dist/esm/models/reponse-recherche-flux.d.ts +33 -0
- package/dist/esm/models/reponse-recherche-flux.js +14 -0
- package/dist/esm/models/reponse-soumission-flux.d.ts +38 -0
- package/dist/esm/models/reponse-soumission-flux.js +14 -0
- package/dist/esm/models/reponse-tache.d.ts +17 -0
- package/dist/esm/models/reponse-tache.js +14 -0
- package/dist/esm/models/reponse-validation-erreur.d.ts +17 -0
- package/dist/esm/models/reponse-validation-erreur.js +14 -0
- package/dist/esm/models/reponse-validation-succes.d.ts +17 -0
- package/dist/esm/models/reponse-validation-succes.js +14 -0
- package/dist/esm/models/requete-recherche-flux.d.ts +34 -0
- package/dist/esm/models/requete-recherche-flux.js +14 -0
- package/dist/esm/models/requete-soumission-flux.d.ts +31 -0
- package/dist/esm/models/requete-soumission-flux.js +14 -0
- package/dist/esm/models/resultat-afnor.d.ts +30 -0
- package/dist/esm/models/resultat-afnor.js +14 -0
- package/dist/esm/models/resultat-chorus-pro.d.ts +22 -0
- package/dist/esm/models/resultat-chorus-pro.js +14 -0
- package/dist/esm/models/resultat-validation-pdfapi.d.ts +93 -0
- package/dist/esm/models/resultat-validation-pdfapi.js +14 -0
- package/dist/esm/models/scheme-id.d.ts +22 -0
- package/dist/esm/models/scheme-id.js +23 -0
- package/dist/esm/models/service-structure.d.ts +32 -0
- package/dist/esm/models/service-structure.js +14 -0
- package/dist/esm/models/signature-info.d.ts +22 -0
- package/dist/esm/models/signature-info.js +14 -0
- package/dist/esm/models/soumettre-facture-complete-request.d.ts +34 -0
- package/dist/esm/models/soumettre-facture-complete-request.js +14 -0
- package/dist/esm/models/soumettre-facture-complete-response.d.ts +53 -0
- package/dist/esm/models/soumettre-facture-complete-response.js +17 -0
- package/dist/esm/models/soumettre-facture-request.d.ts +50 -0
- package/dist/esm/models/soumettre-facture-request.js +14 -0
- package/dist/esm/models/soumettre-facture-response.d.ts +26 -0
- package/dist/esm/models/soumettre-facture-response.js +14 -0
- package/dist/esm/models/statut-acquittement.d.ts +20 -0
- package/dist/esm/models/statut-acquittement.js +21 -0
- package/dist/esm/models/statut-facture.d.ts +25 -0
- package/dist/esm/models/statut-facture.js +14 -0
- package/dist/esm/models/statut-tache.d.ts +19 -0
- package/dist/esm/models/statut-tache.js +14 -0
- package/dist/esm/models/structure-info.d.ts +36 -0
- package/dist/esm/models/structure-info.js +14 -0
- package/dist/esm/models/syntaxe-flux.d.ts +22 -0
- package/dist/esm/models/syntaxe-flux.js +23 -0
- package/dist/esm/models/tauxmanuel.d.ts +16 -0
- package/dist/esm/models/tauxmanuel.js +14 -0
- package/dist/esm/models/type-facture.d.ts +19 -0
- package/dist/esm/models/type-facture.js +20 -0
- package/dist/esm/models/type-flux.d.ts +22 -0
- package/dist/esm/models/type-flux.js +23 -0
- package/dist/esm/models/type-tva.d.ts +21 -0
- package/dist/esm/models/type-tva.js +22 -0
- package/dist/esm/models/unite.d.ts +23 -0
- package/dist/esm/models/unite.js +24 -0
- package/dist/esm/models/utilisateur.d.ts +29 -0
- package/dist/esm/models/utilisateur.js +14 -0
- package/dist/esm/models/validation-error-loc-inner.d.ts +13 -0
- package/dist/esm/models/validation-error-loc-inner.js +14 -0
- package/dist/esm/models/validation-error.d.ts +17 -0
- package/dist/esm/models/validation-error.js +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/adresse-electronique.d.ts +19 -0
- package/dist/models/adresse-electronique.js +15 -0
- package/dist/models/adresse-postale.d.ts +21 -0
- package/dist/models/adresse-postale.js +15 -0
- package/dist/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.d.ts +20 -0
- package/dist/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.js +15 -0
- package/dist/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.d.ts +20 -0
- package/dist/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.js +15 -0
- package/dist/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.d.ts +17 -0
- package/dist/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.js +15 -0
- package/dist/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.d.ts +20 -0
- package/dist/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.js +15 -0
- package/dist/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.d.ts +20 -0
- package/dist/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.js +15 -0
- package/dist/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.d.ts +20 -0
- package/dist/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.js +15 -0
- package/dist/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.d.ts +20 -0
- package/dist/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.js +15 -0
- package/dist/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.d.ts +20 -0
- package/dist/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.js +15 -0
- package/dist/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.d.ts +20 -0
- package/dist/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.js +15 -0
- package/dist/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.d.ts +20 -0
- package/dist/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.js +15 -0
- package/dist/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.d.ts +20 -0
- package/dist/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.js +15 -0
- package/dist/models/cadre-de-facturation.d.ts +20 -0
- package/dist/models/cadre-de-facturation.js +15 -0
- package/dist/models/categorie-tva.d.ts +26 -0
- package/dist/models/categorie-tva.js +30 -0
- package/dist/models/certificate-info-response.d.ts +61 -0
- package/dist/models/certificate-info-response.js +15 -0
- package/dist/models/chorus-pro-credentials.d.ts +36 -0
- package/dist/models/chorus-pro-credentials.js +15 -0
- package/dist/models/code-cadre-facturation.d.ts +18 -0
- package/dist/models/code-cadre-facturation.js +22 -0
- package/dist/models/code-raison-reduction.d.ts +24 -0
- package/dist/models/code-raison-reduction.js +28 -0
- package/dist/models/consulter-facture-request.d.ts +22 -0
- package/dist/models/consulter-facture-request.js +15 -0
- package/dist/models/consulter-facture-response.d.ts +26 -0
- package/dist/models/consulter-facture-response.js +15 -0
- package/dist/models/consulter-structure-request.d.ts +26 -0
- package/dist/models/consulter-structure-request.js +15 -0
- package/dist/models/consulter-structure-response.d.ts +26 -0
- package/dist/models/consulter-structure-response.js +15 -0
- package/dist/models/credentials-afnor.d.ts +19 -0
- package/dist/models/credentials-afnor.js +15 -0
- package/dist/models/credentials-chorus-pro.d.ts +24 -0
- package/dist/models/credentials-chorus-pro.js +15 -0
- package/dist/models/destinataire.d.ts +22 -0
- package/dist/models/destinataire.js +15 -0
- package/dist/models/destination-afnor.d.ts +34 -0
- package/dist/models/destination-afnor.js +24 -0
- package/dist/models/destination-chorus-pro.d.ts +23 -0
- package/dist/models/destination-chorus-pro.js +19 -0
- package/dist/models/destination.d.ts +22 -0
- package/dist/models/destination.js +15 -0
- package/dist/models/direction-flux.d.ts +19 -0
- package/dist/models/direction-flux.js +23 -0
- package/dist/models/donnees-facture-simplifiees.d.ts +46 -0
- package/dist/models/donnees-facture-simplifiees.js +15 -0
- package/dist/models/facture-enrichie-info-input.d.ts +27 -0
- package/dist/models/facture-enrichie-info-input.js +15 -0
- package/dist/models/facture-enrichie-info-output.d.ts +24 -0
- package/dist/models/facture-enrichie-info-output.js +15 -0
- package/dist/models/facture-factur-x.d.ts +39 -0
- package/dist/models/facture-factur-x.js +15 -0
- package/dist/models/flux-resume.d.ts +24 -0
- package/dist/models/flux-resume.js +15 -0
- package/dist/models/format-sortie.d.ts +16 -0
- package/dist/models/format-sortie.js +20 -0
- package/dist/models/fournisseur.d.ts +27 -0
- package/dist/models/fournisseur.js +15 -0
- package/dist/models/generate-certificate-request.d.ts +54 -0
- package/dist/models/generate-certificate-request.js +15 -0
- package/dist/models/generate-certificate-response.d.ts +38 -0
- package/dist/models/generate-certificate-response.js +15 -0
- package/dist/models/httpvalidation-error.d.ts +15 -0
- package/dist/models/httpvalidation-error.js +15 -0
- package/dist/models/index.d.ts +108 -0
- package/dist/models/index.js +124 -0
- package/dist/models/information-signature-api.d.ts +25 -0
- package/dist/models/information-signature-api.js +15 -0
- package/dist/models/ligne-de-poste-montant-remise-ht.d.ts +16 -0
- package/dist/models/ligne-de-poste-montant-remise-ht.js +15 -0
- package/dist/models/ligne-de-poste-montant-total-ligne-ht.d.ts +16 -0
- package/dist/models/ligne-de-poste-montant-total-ligne-ht.js +15 -0
- package/dist/models/ligne-de-poste-taux-tva-manuel.d.ts +16 -0
- package/dist/models/ligne-de-poste-taux-tva-manuel.js +15 -0
- package/dist/models/ligne-de-poste.d.ts +39 -0
- package/dist/models/ligne-de-poste.js +15 -0
- package/dist/models/ligne-de-tva.d.ts +25 -0
- package/dist/models/ligne-de-tva.js +15 -0
- package/dist/models/mode-depot.d.ts +20 -0
- package/dist/models/mode-depot.js +24 -0
- package/dist/models/mode-paiement.d.ts +23 -0
- package/dist/models/mode-paiement.js +27 -0
- package/dist/models/montant-ht-total.d.ts +13 -0
- package/dist/models/montant-ht-total.js +15 -0
- package/dist/models/montant-total-acompte.d.ts +16 -0
- package/dist/models/montant-total-acompte.js +15 -0
- package/dist/models/montant-total-montant-remise-globale-ttc.d.ts +16 -0
- package/dist/models/montant-total-montant-remise-globale-ttc.js +15 -0
- package/dist/models/montant-total.d.ts +29 -0
- package/dist/models/montant-total.js +15 -0
- package/dist/models/montant-ttc-total.d.ts +13 -0
- package/dist/models/montant-ttc-total.js +15 -0
- package/dist/models/montant-tva.d.ts +13 -0
- package/dist/models/montant-tva.js +15 -0
- package/dist/models/montantapayer.d.ts +16 -0
- package/dist/models/montantapayer.js +15 -0
- package/dist/models/montantbaseht.d.ts +16 -0
- package/dist/models/montantbaseht.js +15 -0
- package/dist/models/montanthttotal.d.ts +16 -0
- package/dist/models/montanthttotal.js +15 -0
- package/dist/models/montantttctotal.d.ts +16 -0
- package/dist/models/montantttctotal.js +15 -0
- package/dist/models/montanttva.d.ts +16 -0
- package/dist/models/montanttva.js +15 -0
- package/dist/models/montanttva1.d.ts +16 -0
- package/dist/models/montanttva1.js +15 -0
- package/dist/models/montantunitaireht.d.ts +16 -0
- package/dist/models/montantunitaireht.js +15 -0
- package/dist/models/obtenir-id-chorus-pro-request.d.ts +26 -0
- package/dist/models/obtenir-id-chorus-pro-request.js +15 -0
- package/dist/models/obtenir-id-chorus-pro-response.d.ts +29 -0
- package/dist/models/obtenir-id-chorus-pro-response.js +15 -0
- package/dist/models/options-processing.d.ts +39 -0
- package/dist/models/options-processing.js +22 -0
- package/dist/models/parametres-signature.d.ts +34 -0
- package/dist/models/parametres-signature.js +15 -0
- package/dist/models/parametres-structure.d.ts +28 -0
- package/dist/models/parametres-structure.js +15 -0
- package/dist/models/pdffactur-xinfo.d.ts +28 -0
- package/dist/models/pdffactur-xinfo.js +15 -0
- package/dist/models/pdpcredentials.d.ts +32 -0
- package/dist/models/pdpcredentials.js +15 -0
- package/dist/models/piece-jointe-complementaire.d.ts +21 -0
- package/dist/models/piece-jointe-complementaire.js +15 -0
- package/dist/models/profil-api.d.ts +18 -0
- package/dist/models/profil-api.js +22 -0
- package/dist/models/profil-flux.d.ts +20 -0
- package/dist/models/profil-flux.js +24 -0
- package/dist/models/quantite.d.ts +16 -0
- package/dist/models/quantite.js +15 -0
- package/dist/models/quota-info.d.ts +21 -0
- package/dist/models/quota-info.js +15 -0
- package/dist/models/rechercher-services-response.d.ts +24 -0
- package/dist/models/rechercher-services-response.js +15 -0
- package/dist/models/rechercher-structure-request.d.ts +25 -0
- package/dist/models/rechercher-structure-request.js +15 -0
- package/dist/models/rechercher-structure-response.d.ts +30 -0
- package/dist/models/rechercher-structure-response.js +15 -0
- package/dist/models/references.d.ts +27 -0
- package/dist/models/references.js +15 -0
- package/dist/models/reponse-healthcheck-afnor.d.ts +28 -0
- package/dist/models/reponse-healthcheck-afnor.js +15 -0
- package/dist/models/reponse-recherche-flux.d.ts +33 -0
- package/dist/models/reponse-recherche-flux.js +15 -0
- package/dist/models/reponse-soumission-flux.d.ts +38 -0
- package/dist/models/reponse-soumission-flux.js +15 -0
- package/dist/models/reponse-tache.d.ts +17 -0
- package/dist/models/reponse-tache.js +15 -0
- package/dist/models/reponse-validation-erreur.d.ts +17 -0
- package/dist/models/reponse-validation-erreur.js +15 -0
- package/dist/models/reponse-validation-succes.d.ts +17 -0
- package/dist/models/reponse-validation-succes.js +15 -0
- package/dist/models/requete-recherche-flux.d.ts +34 -0
- package/dist/models/requete-recherche-flux.js +15 -0
- package/dist/models/requete-soumission-flux.d.ts +31 -0
- package/dist/models/requete-soumission-flux.js +15 -0
- package/dist/models/resultat-afnor.d.ts +30 -0
- package/dist/models/resultat-afnor.js +15 -0
- package/dist/models/resultat-chorus-pro.d.ts +22 -0
- package/dist/models/resultat-chorus-pro.js +15 -0
- package/dist/models/resultat-validation-pdfapi.d.ts +93 -0
- package/dist/models/resultat-validation-pdfapi.js +15 -0
- package/dist/models/scheme-id.d.ts +22 -0
- package/dist/models/scheme-id.js +26 -0
- package/dist/models/service-structure.d.ts +32 -0
- package/dist/models/service-structure.js +15 -0
- package/dist/models/signature-info.d.ts +22 -0
- package/dist/models/signature-info.js +15 -0
- package/dist/models/soumettre-facture-complete-request.d.ts +34 -0
- package/dist/models/soumettre-facture-complete-request.js +15 -0
- package/dist/models/soumettre-facture-complete-response.d.ts +53 -0
- package/dist/models/soumettre-facture-complete-response.js +20 -0
- package/dist/models/soumettre-facture-request.d.ts +50 -0
- package/dist/models/soumettre-facture-request.js +15 -0
- package/dist/models/soumettre-facture-response.d.ts +26 -0
- package/dist/models/soumettre-facture-response.js +15 -0
- package/dist/models/statut-acquittement.d.ts +20 -0
- package/dist/models/statut-acquittement.js +24 -0
- package/dist/models/statut-facture.d.ts +25 -0
- package/dist/models/statut-facture.js +15 -0
- package/dist/models/statut-tache.d.ts +19 -0
- package/dist/models/statut-tache.js +15 -0
- package/dist/models/structure-info.d.ts +36 -0
- package/dist/models/structure-info.js +15 -0
- package/dist/models/syntaxe-flux.d.ts +22 -0
- package/dist/models/syntaxe-flux.js +26 -0
- package/dist/models/tauxmanuel.d.ts +16 -0
- package/dist/models/tauxmanuel.js +15 -0
- package/dist/models/type-facture.d.ts +19 -0
- package/dist/models/type-facture.js +23 -0
- package/dist/models/type-flux.d.ts +22 -0
- package/dist/models/type-flux.js +26 -0
- package/dist/models/type-tva.d.ts +21 -0
- package/dist/models/type-tva.js +25 -0
- package/dist/models/unite.d.ts +23 -0
- package/dist/models/unite.js +27 -0
- package/dist/models/utilisateur.d.ts +29 -0
- package/dist/models/utilisateur.js +15 -0
- package/dist/models/validation-error-loc-inner.d.ts +13 -0
- package/dist/models/validation-error-loc-inner.js +15 -0
- package/dist/models/validation-error.d.ts +17 -0
- package/dist/models/validation-error.js +15 -0
- package/docs/AFNORPDPPAApi.md +53 -0
- package/docs/AFNORPDPPADirectoryServiceApi.md +153 -0
- package/docs/AFNORPDPPAFlowServiceApi.md +208 -0
- package/docs/AdresseElectronique.md +23 -0
- package/docs/AdressePostale.md +29 -0
- package/docs/BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost.md +24 -0
- package/docs/BodyCompleterFactureApiV1ChorusProFacturesCompleterPost.md +24 -0
- package/docs/BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet.md +22 -0
- package/docs/BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost.md +24 -0
- package/docs/BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost.md +24 -0
- package/docs/BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost.md +24 -0
- package/docs/BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost.md +24 -0
- package/docs/BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost.md +24 -0
- package/docs/BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost.md +24 -0
- package/docs/BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost.md +24 -0
- package/docs/BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost.md +24 -0
- package/docs/CadreDeFacturation.md +25 -0
- package/docs/CategorieTVA.md +25 -0
- package/docs/CertificateInfoResponse.md +43 -0
- package/docs/ChorusProApi.md +874 -0
- package/docs/ChorusProCredentials.md +29 -0
- package/docs/CodeCadreFacturation.md +14 -0
- package/docs/CodeRaisonReduction.md +21 -0
- package/docs/ConsulterFactureRequest.md +23 -0
- package/docs/ConsulterFactureResponse.md +37 -0
- package/docs/ConsulterStructureRequest.md +25 -0
- package/docs/ConsulterStructureResponse.md +37 -0
- package/docs/CredentialsAFNOR.md +25 -0
- package/docs/CredentialsChorusPro.md +29 -0
- package/docs/Destinataire.md +27 -0
- package/docs/Destination.md +27 -0
- package/docs/DestinationAFNOR.md +27 -0
- package/docs/DestinationChorusPro.md +23 -0
- package/docs/DirectionFlux.md +11 -0
- package/docs/DonneesFactureSimplifiees.md +37 -0
- package/docs/FactureEnrichieInfoInput.md +35 -0
- package/docs/FactureEnrichieInfoOutput.md +35 -0
- package/docs/FactureFacturX.md +47 -0
- package/docs/FluxResume.md +35 -0
- package/docs/FormatSortie.md +10 -0
- package/docs/Fournisseur.md +37 -0
- package/docs/GenerateCertificateRequest.md +41 -0
- package/docs/GenerateCertificateResponse.md +31 -0
- package/docs/HTTPValidationError.md +20 -0
- package/docs/InformationSignatureAPI.md +31 -0
- package/docs/LigneDePoste.md +49 -0
- package/docs/LigneDePosteMontantRemiseHt.md +19 -0
- package/docs/LigneDePosteMontantTotalLigneHt.md +19 -0
- package/docs/LigneDePosteTauxTvaManuel.md +19 -0
- package/docs/LigneDeTVA.md +29 -0
- package/docs/ModeDepot.md +13 -0
- package/docs/ModePaiement.md +19 -0
- package/docs/MontantHtTotal.md +18 -0
- package/docs/MontantTotal.md +33 -0
- package/docs/MontantTotalAcompte.md +19 -0
- package/docs/MontantTotalMontantRemiseGlobaleTtc.md +19 -0
- package/docs/MontantTtcTotal.md +18 -0
- package/docs/MontantTva.md +18 -0
- package/docs/Montantapayer.md +19 -0
- package/docs/Montantbaseht.md +19 -0
- package/docs/Montanthttotal.md +19 -0
- package/docs/Montantttctotal.md +19 -0
- package/docs/Montanttva.md +19 -0
- package/docs/Montanttva1.md +19 -0
- package/docs/Montantunitaireht.md +19 -0
- package/docs/ObtenirIdChorusProRequest.md +25 -0
- package/docs/ObtenirIdChorusProResponse.md +27 -0
- package/docs/OptionsProcessing.md +27 -0
- package/docs/PDFFacturXInfo.md +25 -0
- package/docs/PDPCredentials.md +27 -0
- package/docs/ParametresSignature.md +37 -0
- package/docs/ParametresStructure.md +25 -0
- package/docs/PieceJointeComplementaire.md +29 -0
- package/docs/ProcessingEndpointsUnifisApi.md +115 -0
- package/docs/ProfilAPI.md +14 -0
- package/docs/ProfilFlux.md +13 -0
- package/docs/Quantite.md +19 -0
- package/docs/QuotaInfo.md +29 -0
- package/docs/RechercherServicesResponse.md +27 -0
- package/docs/RechercherStructureRequest.md +29 -0
- package/docs/RechercherStructureResponse.md +27 -0
- package/docs/References.md +35 -0
- package/docs/ReponseHealthcheckAFNOR.md +25 -0
- package/docs/ReponseRechercheFlux.md +27 -0
- package/docs/ReponseSoumissionFlux.md +33 -0
- package/docs/ReponseTache.md +21 -0
- package/docs/ReponseValidationErreur.md +20 -0
- package/docs/ReponseValidationSucces.md +20 -0
- package/docs/RequeteRechercheFlux.md +37 -0
- package/docs/RequeteSoumissionFlux.md +31 -0
- package/docs/ResultatAFNOR.md +29 -0
- package/docs/ResultatChorusPro.md +25 -0
- package/docs/ResultatValidationPDFAPI.md +65 -0
- package/docs/SantApi.md +52 -0
- package/docs/SchemeID.md +17 -0
- package/docs/ServiceStructure.md +27 -0
- package/docs/SignatureInfo.md +25 -0
- package/docs/SignatureLectroniqueApi.md +266 -0
- package/docs/SoumettreFactureCompleteRequest.md +29 -0
- package/docs/SoumettreFactureCompleteResponse.md +37 -0
- package/docs/SoumettreFactureRequest.md +49 -0
- package/docs/SoumettreFactureResponse.md +27 -0
- package/docs/StatutAcquittement.md +13 -0
- package/docs/StatutFacture.md +25 -0
- package/docs/StatutTache.md +25 -0
- package/docs/StructureInfo.md +29 -0
- package/docs/SyntaxeFlux.md +17 -0
- package/docs/Tauxmanuel.md +19 -0
- package/docs/TraitementFactureApi.md +670 -0
- package/docs/TypeFacture.md +11 -0
- package/docs/TypeFlux.md +17 -0
- package/docs/TypeTVA.md +15 -0
- package/docs/Unite.md +19 -0
- package/docs/Utilisateur.md +43 -0
- package/docs/UtilisateurApi.md +52 -0
- package/docs/ValidationError.md +24 -0
- package/docs/ValidationErrorLocInner.md +18 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/models/adresse-electronique.ts +29 -0
- package/models/adresse-postale.ts +27 -0
- package/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.ts +28 -0
- package/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.ts +28 -0
- package/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.ts +27 -0
- package/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.ts +28 -0
- package/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.ts +28 -0
- package/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.ts +28 -0
- package/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.ts +28 -0
- package/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.ts +28 -0
- package/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.ts +28 -0
- package/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.ts +28 -0
- package/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.ts +28 -0
- package/models/cadre-de-facturation.ts +30 -0
- package/models/categorie-tva.ts +36 -0
- package/models/certificate-info-response.ts +67 -0
- package/models/chorus-pro-credentials.ts +42 -0
- package/models/code-cadre-facturation.ts +28 -0
- package/models/code-raison-reduction.ts +34 -0
- package/models/consulter-facture-request.ts +30 -0
- package/models/consulter-facture-response.ts +34 -0
- package/models/consulter-structure-request.ts +34 -0
- package/models/consulter-structure-response.ts +34 -0
- package/models/credentials-afnor.ts +25 -0
- package/models/credentials-chorus-pro.ts +30 -0
- package/models/destinataire.ts +32 -0
- package/models/destination-afnor.ts +46 -0
- package/models/destination-chorus-pro.ts +34 -0
- package/models/destination.ts +32 -0
- package/models/direction-flux.ts +29 -0
- package/models/donnees-facture-simplifiees.ts +46 -0
- package/models/facture-enrichie-info-input.ts +39 -0
- package/models/facture-enrichie-info-output.ts +30 -0
- package/models/facture-factur-x.ts +65 -0
- package/models/flux-resume.ts +30 -0
- package/models/format-sortie.ts +26 -0
- package/models/fournisseur.ts +37 -0
- package/models/generate-certificate-request.ts +60 -0
- package/models/generate-certificate-response.ts +46 -0
- package/models/httpvalidation-error.ts +23 -0
- package/models/index.ts +108 -0
- package/models/information-signature-api.ts +31 -0
- package/models/ligne-de-poste-montant-remise-ht.ts +22 -0
- package/models/ligne-de-poste-montant-total-ligne-ht.ts +22 -0
- package/models/ligne-de-poste-taux-tva-manuel.ts +22 -0
- package/models/ligne-de-poste.ts +63 -0
- package/models/ligne-de-tva.ts +41 -0
- package/models/mode-depot.ts +30 -0
- package/models/mode-paiement.ts +33 -0
- package/models/montant-ht-total.ts +19 -0
- package/models/montant-total-acompte.ts +22 -0
- package/models/montant-total-montant-remise-globale-ttc.ts +22 -0
- package/models/montant-total.ts +47 -0
- package/models/montant-ttc-total.ts +19 -0
- package/models/montant-tva.ts +19 -0
- package/models/montantapayer.ts +22 -0
- package/models/montantbaseht.ts +22 -0
- package/models/montanthttotal.ts +22 -0
- package/models/montantttctotal.ts +22 -0
- package/models/montanttva.ts +22 -0
- package/models/montanttva1.ts +22 -0
- package/models/montantunitaireht.ts +22 -0
- package/models/obtenir-id-chorus-pro-request.ts +34 -0
- package/models/obtenir-id-chorus-pro-response.ts +35 -0
- package/models/options-processing.ts +48 -0
- package/models/parametres-signature.ts +40 -0
- package/models/parametres-structure.ts +34 -0
- package/models/pdffactur-xinfo.ts +34 -0
- package/models/pdpcredentials.ts +38 -0
- package/models/piece-jointe-complementaire.ts +27 -0
- package/models/profil-api.ts +28 -0
- package/models/profil-flux.ts +30 -0
- package/models/quantite.ts +22 -0
- package/models/quota-info.ts +27 -0
- package/models/rechercher-services-response.ts +32 -0
- package/models/rechercher-structure-request.ts +33 -0
- package/models/rechercher-structure-response.ts +38 -0
- package/models/references.ts +41 -0
- package/models/reponse-healthcheck-afnor.ts +34 -0
- package/models/reponse-recherche-flux.ts +41 -0
- package/models/reponse-soumission-flux.ts +44 -0
- package/models/reponse-tache.ts +23 -0
- package/models/reponse-validation-erreur.ts +23 -0
- package/models/reponse-validation-succes.ts +23 -0
- package/models/requete-recherche-flux.ts +48 -0
- package/models/requete-soumission-flux.ts +45 -0
- package/models/resultat-afnor.ts +36 -0
- package/models/resultat-chorus-pro.ts +28 -0
- package/models/resultat-validation-pdfapi.ts +99 -0
- package/models/scheme-id.ts +32 -0
- package/models/service-structure.ts +38 -0
- package/models/signature-info.ts +28 -0
- package/models/soumettre-facture-complete-request.ts +48 -0
- package/models/soumettre-facture-complete-response.ts +72 -0
- package/models/soumettre-facture-request.ts +58 -0
- package/models/soumettre-facture-response.ts +32 -0
- package/models/statut-acquittement.ts +30 -0
- package/models/statut-facture.ts +31 -0
- package/models/statut-tache.ts +25 -0
- package/models/structure-info.ts +42 -0
- package/models/syntaxe-flux.ts +32 -0
- package/models/tauxmanuel.ts +22 -0
- package/models/type-facture.ts +29 -0
- package/models/type-flux.ts +32 -0
- package/models/type-tva.ts +31 -0
- package/models/unite.ts +33 -0
- package/models/utilisateur.ts +37 -0
- package/models/validation-error-loc-inner.ts +19 -0
- package/models/validation-error.ts +25 -0
- package/package.json +33 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,1291 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* API REST FactPulse
|
|
5
|
+
* 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/
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { BodyCompleterFactureApiV1ChorusProFacturesCompleterPost } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost } from '../models';
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import type { BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost } from '../models';
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
import type { BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost } from '../models';
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
import type { BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost } from '../models';
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
import type { BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost } from '../models';
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
import type { BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost } from '../models';
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
import type { ConsulterFactureRequest } from '../models';
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
import type { ConsulterFactureResponse } from '../models';
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
import type { ConsulterStructureRequest } from '../models';
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
import type { ConsulterStructureResponse } from '../models';
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
import type { HTTPValidationError } from '../models';
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
import type { ObtenirIdChorusProRequest } from '../models';
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
import type { ObtenirIdChorusProResponse } from '../models';
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
import type { RechercherServicesResponse } from '../models';
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
import type { RechercherStructureRequest } from '../models';
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
import type { RechercherStructureResponse } from '../models';
|
|
66
|
+
// @ts-ignore
|
|
67
|
+
import type { SoumettreFactureRequest } from '../models';
|
|
68
|
+
// @ts-ignore
|
|
69
|
+
import type { SoumettreFactureResponse } from '../models';
|
|
70
|
+
/**
|
|
71
|
+
* ChorusProApi - axios parameter creator
|
|
72
|
+
*/
|
|
73
|
+
export const ChorusProApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
74
|
+
return {
|
|
75
|
+
/**
|
|
76
|
+
* 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.
|
|
77
|
+
* @summary Ajouter une pièce jointe
|
|
78
|
+
* @param {BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost} bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost: async (bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost: BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
83
|
+
// verify required parameter 'bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost' is not null or undefined
|
|
84
|
+
assertParamExists('ajouterFichierApiV1ChorusProTransversesAjouterFichierPost', 'bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost', bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost)
|
|
85
|
+
const localVarPath = `/api/v1/chorus-pro/transverses/ajouter-fichier`;
|
|
86
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
87
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
88
|
+
let baseOptions;
|
|
89
|
+
if (configuration) {
|
|
90
|
+
baseOptions = configuration.baseOptions;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
94
|
+
const localVarHeaderParameter = {} as any;
|
|
95
|
+
const localVarQueryParameter = {} as any;
|
|
96
|
+
|
|
97
|
+
// authentication HTTPBearer required
|
|
98
|
+
// http bearer authentication required
|
|
99
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
104
|
+
|
|
105
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
106
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
107
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
108
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, localVarRequestOptions, configuration)
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
url: toPathString(localVarUrlObj),
|
|
112
|
+
options: localVarRequestOptions,
|
|
113
|
+
};
|
|
114
|
+
},
|
|
115
|
+
/**
|
|
116
|
+
* 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.
|
|
117
|
+
* @summary Compléter une facture suspendue (Fournisseur)
|
|
118
|
+
* @param {BodyCompleterFactureApiV1ChorusProFacturesCompleterPost} bodyCompleterFactureApiV1ChorusProFacturesCompleterPost
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
*/
|
|
122
|
+
completerFactureApiV1ChorusProFacturesCompleterPost: async (bodyCompleterFactureApiV1ChorusProFacturesCompleterPost: BodyCompleterFactureApiV1ChorusProFacturesCompleterPost, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
123
|
+
// verify required parameter 'bodyCompleterFactureApiV1ChorusProFacturesCompleterPost' is not null or undefined
|
|
124
|
+
assertParamExists('completerFactureApiV1ChorusProFacturesCompleterPost', 'bodyCompleterFactureApiV1ChorusProFacturesCompleterPost', bodyCompleterFactureApiV1ChorusProFacturesCompleterPost)
|
|
125
|
+
const localVarPath = `/api/v1/chorus-pro/factures/completer`;
|
|
126
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
127
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
128
|
+
let baseOptions;
|
|
129
|
+
if (configuration) {
|
|
130
|
+
baseOptions = configuration.baseOptions;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
134
|
+
const localVarHeaderParameter = {} as any;
|
|
135
|
+
const localVarQueryParameter = {} as any;
|
|
136
|
+
|
|
137
|
+
// authentication HTTPBearer required
|
|
138
|
+
// http bearer authentication required
|
|
139
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
144
|
+
|
|
145
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
146
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
148
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bodyCompleterFactureApiV1ChorusProFacturesCompleterPost, localVarRequestOptions, configuration)
|
|
149
|
+
|
|
150
|
+
return {
|
|
151
|
+
url: toPathString(localVarUrlObj),
|
|
152
|
+
options: localVarRequestOptions,
|
|
153
|
+
};
|
|
154
|
+
},
|
|
155
|
+
/**
|
|
156
|
+
* 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.
|
|
157
|
+
* @summary Consulter le statut d\'une facture
|
|
158
|
+
* @param {ConsulterFactureRequest} consulterFactureRequest
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
consulterFactureApiV1ChorusProFacturesConsulterPost: async (consulterFactureRequest: ConsulterFactureRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
163
|
+
// verify required parameter 'consulterFactureRequest' is not null or undefined
|
|
164
|
+
assertParamExists('consulterFactureApiV1ChorusProFacturesConsulterPost', 'consulterFactureRequest', consulterFactureRequest)
|
|
165
|
+
const localVarPath = `/api/v1/chorus-pro/factures/consulter`;
|
|
166
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
167
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
168
|
+
let baseOptions;
|
|
169
|
+
if (configuration) {
|
|
170
|
+
baseOptions = configuration.baseOptions;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
174
|
+
const localVarHeaderParameter = {} as any;
|
|
175
|
+
const localVarQueryParameter = {} as any;
|
|
176
|
+
|
|
177
|
+
// authentication HTTPBearer required
|
|
178
|
+
// http bearer authentication required
|
|
179
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
184
|
+
|
|
185
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
186
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
188
|
+
localVarRequestOptions.data = serializeDataIfNeeded(consulterFactureRequest, localVarRequestOptions, configuration)
|
|
189
|
+
|
|
190
|
+
return {
|
|
191
|
+
url: toPathString(localVarUrlObj),
|
|
192
|
+
options: localVarRequestOptions,
|
|
193
|
+
};
|
|
194
|
+
},
|
|
195
|
+
/**
|
|
196
|
+
* 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.
|
|
197
|
+
* @summary Consulter les détails d\'une structure
|
|
198
|
+
* @param {ConsulterStructureRequest} consulterStructureRequest
|
|
199
|
+
* @param {*} [options] Override http request option.
|
|
200
|
+
* @throws {RequiredError}
|
|
201
|
+
*/
|
|
202
|
+
consulterStructureApiV1ChorusProStructuresConsulterPost: async (consulterStructureRequest: ConsulterStructureRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
203
|
+
// verify required parameter 'consulterStructureRequest' is not null or undefined
|
|
204
|
+
assertParamExists('consulterStructureApiV1ChorusProStructuresConsulterPost', 'consulterStructureRequest', consulterStructureRequest)
|
|
205
|
+
const localVarPath = `/api/v1/chorus-pro/structures/consulter`;
|
|
206
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
207
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
208
|
+
let baseOptions;
|
|
209
|
+
if (configuration) {
|
|
210
|
+
baseOptions = configuration.baseOptions;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
214
|
+
const localVarHeaderParameter = {} as any;
|
|
215
|
+
const localVarQueryParameter = {} as any;
|
|
216
|
+
|
|
217
|
+
// authentication HTTPBearer required
|
|
218
|
+
// http bearer authentication required
|
|
219
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
224
|
+
|
|
225
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
226
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
227
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
228
|
+
localVarRequestOptions.data = serializeDataIfNeeded(consulterStructureRequest, localVarRequestOptions, configuration)
|
|
229
|
+
|
|
230
|
+
return {
|
|
231
|
+
url: toPathString(localVarUrlObj),
|
|
232
|
+
options: localVarRequestOptions,
|
|
233
|
+
};
|
|
234
|
+
},
|
|
235
|
+
/**
|
|
236
|
+
* 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)
|
|
237
|
+
* @summary Lister les services d\'une structure
|
|
238
|
+
* @param {number} idStructureCpp
|
|
239
|
+
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
240
|
+
* @param {*} [options] Override http request option.
|
|
241
|
+
* @throws {RequiredError}
|
|
242
|
+
*/
|
|
243
|
+
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet: async (idStructureCpp: number, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet: BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
244
|
+
// verify required parameter 'idStructureCpp' is not null or undefined
|
|
245
|
+
assertParamExists('listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', 'idStructureCpp', idStructureCpp)
|
|
246
|
+
// verify required parameter 'bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet' is not null or undefined
|
|
247
|
+
assertParamExists('listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', 'bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet)
|
|
248
|
+
const localVarPath = `/api/v1/chorus-pro/structures/{id_structure_cpp}/services`
|
|
249
|
+
.replace(`{${"id_structure_cpp"}}`, encodeURIComponent(String(idStructureCpp)));
|
|
250
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
251
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
252
|
+
let baseOptions;
|
|
253
|
+
if (configuration) {
|
|
254
|
+
baseOptions = configuration.baseOptions;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
258
|
+
const localVarHeaderParameter = {} as any;
|
|
259
|
+
const localVarQueryParameter = {} as any;
|
|
260
|
+
|
|
261
|
+
// authentication HTTPBearer required
|
|
262
|
+
// http bearer authentication required
|
|
263
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
268
|
+
|
|
269
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
270
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
271
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
272
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, localVarRequestOptions, configuration)
|
|
273
|
+
|
|
274
|
+
return {
|
|
275
|
+
url: toPathString(localVarUrlObj),
|
|
276
|
+
options: localVarRequestOptions,
|
|
277
|
+
};
|
|
278
|
+
},
|
|
279
|
+
/**
|
|
280
|
+
* **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.
|
|
281
|
+
* @summary Utilitaire : Obtenir l\'ID Chorus Pro depuis un SIRET
|
|
282
|
+
* @param {ObtenirIdChorusProRequest} obtenirIdChorusProRequest
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost: async (obtenirIdChorusProRequest: ObtenirIdChorusProRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
287
|
+
// verify required parameter 'obtenirIdChorusProRequest' is not null or undefined
|
|
288
|
+
assertParamExists('obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost', 'obtenirIdChorusProRequest', obtenirIdChorusProRequest)
|
|
289
|
+
const localVarPath = `/api/v1/chorus-pro/structures/obtenir-id-depuis-siret`;
|
|
290
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
291
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
292
|
+
let baseOptions;
|
|
293
|
+
if (configuration) {
|
|
294
|
+
baseOptions = configuration.baseOptions;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
298
|
+
const localVarHeaderParameter = {} as any;
|
|
299
|
+
const localVarQueryParameter = {} as any;
|
|
300
|
+
|
|
301
|
+
// authentication HTTPBearer required
|
|
302
|
+
// http bearer authentication required
|
|
303
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
308
|
+
|
|
309
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
310
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
311
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
312
|
+
localVarRequestOptions.data = serializeDataIfNeeded(obtenirIdChorusProRequest, localVarRequestOptions, configuration)
|
|
313
|
+
|
|
314
|
+
return {
|
|
315
|
+
url: toPathString(localVarUrlObj),
|
|
316
|
+
options: localVarRequestOptions,
|
|
317
|
+
};
|
|
318
|
+
},
|
|
319
|
+
/**
|
|
320
|
+
* 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.
|
|
321
|
+
* @summary Rechercher factures reçues (Destinataire)
|
|
322
|
+
* @param {BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost} bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost: async (bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost: BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
327
|
+
// verify required parameter 'bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost' is not null or undefined
|
|
328
|
+
assertParamExists('rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost', 'bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost', bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost)
|
|
329
|
+
const localVarPath = `/api/v1/chorus-pro/factures/rechercher-destinataire`;
|
|
330
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
331
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
332
|
+
let baseOptions;
|
|
333
|
+
if (configuration) {
|
|
334
|
+
baseOptions = configuration.baseOptions;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
338
|
+
const localVarHeaderParameter = {} as any;
|
|
339
|
+
const localVarQueryParameter = {} as any;
|
|
340
|
+
|
|
341
|
+
// authentication HTTPBearer required
|
|
342
|
+
// http bearer authentication required
|
|
343
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
348
|
+
|
|
349
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
350
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
351
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
352
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, localVarRequestOptions, configuration)
|
|
353
|
+
|
|
354
|
+
return {
|
|
355
|
+
url: toPathString(localVarUrlObj),
|
|
356
|
+
options: localVarRequestOptions,
|
|
357
|
+
};
|
|
358
|
+
},
|
|
359
|
+
/**
|
|
360
|
+
* 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é
|
|
361
|
+
* @summary Rechercher factures émises (Fournisseur)
|
|
362
|
+
* @param {BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost} bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost
|
|
363
|
+
* @param {*} [options] Override http request option.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
*/
|
|
366
|
+
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost: async (bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost: BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
367
|
+
// verify required parameter 'bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost' is not null or undefined
|
|
368
|
+
assertParamExists('rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost', 'bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost', bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost)
|
|
369
|
+
const localVarPath = `/api/v1/chorus-pro/factures/rechercher-fournisseur`;
|
|
370
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
371
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
372
|
+
let baseOptions;
|
|
373
|
+
if (configuration) {
|
|
374
|
+
baseOptions = configuration.baseOptions;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
378
|
+
const localVarHeaderParameter = {} as any;
|
|
379
|
+
const localVarQueryParameter = {} as any;
|
|
380
|
+
|
|
381
|
+
// authentication HTTPBearer required
|
|
382
|
+
// http bearer authentication required
|
|
383
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
388
|
+
|
|
389
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
390
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
391
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
392
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, localVarRequestOptions, configuration)
|
|
393
|
+
|
|
394
|
+
return {
|
|
395
|
+
url: toPathString(localVarUrlObj),
|
|
396
|
+
options: localVarRequestOptions,
|
|
397
|
+
};
|
|
398
|
+
},
|
|
399
|
+
/**
|
|
400
|
+
* 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.
|
|
401
|
+
* @summary Rechercher des structures Chorus Pro
|
|
402
|
+
* @param {RechercherStructureRequest} rechercherStructureRequest
|
|
403
|
+
* @param {*} [options] Override http request option.
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
*/
|
|
406
|
+
rechercherStructuresApiV1ChorusProStructuresRechercherPost: async (rechercherStructureRequest: RechercherStructureRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
407
|
+
// verify required parameter 'rechercherStructureRequest' is not null or undefined
|
|
408
|
+
assertParamExists('rechercherStructuresApiV1ChorusProStructuresRechercherPost', 'rechercherStructureRequest', rechercherStructureRequest)
|
|
409
|
+
const localVarPath = `/api/v1/chorus-pro/structures/rechercher`;
|
|
410
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
411
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
412
|
+
let baseOptions;
|
|
413
|
+
if (configuration) {
|
|
414
|
+
baseOptions = configuration.baseOptions;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
418
|
+
const localVarHeaderParameter = {} as any;
|
|
419
|
+
const localVarQueryParameter = {} as any;
|
|
420
|
+
|
|
421
|
+
// authentication HTTPBearer required
|
|
422
|
+
// http bearer authentication required
|
|
423
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
428
|
+
|
|
429
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
430
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
431
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
432
|
+
localVarRequestOptions.data = serializeDataIfNeeded(rechercherStructureRequest, localVarRequestOptions, configuration)
|
|
433
|
+
|
|
434
|
+
return {
|
|
435
|
+
url: toPathString(localVarUrlObj),
|
|
436
|
+
options: localVarRequestOptions,
|
|
437
|
+
};
|
|
438
|
+
},
|
|
439
|
+
/**
|
|
440
|
+
* 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.
|
|
441
|
+
* @summary Recycler une facture (Fournisseur)
|
|
442
|
+
* @param {BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost} bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost
|
|
443
|
+
* @param {*} [options] Override http request option.
|
|
444
|
+
* @throws {RequiredError}
|
|
445
|
+
*/
|
|
446
|
+
recyclerFactureApiV1ChorusProFacturesRecyclerPost: async (bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost: BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
447
|
+
// verify required parameter 'bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost' is not null or undefined
|
|
448
|
+
assertParamExists('recyclerFactureApiV1ChorusProFacturesRecyclerPost', 'bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost', bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost)
|
|
449
|
+
const localVarPath = `/api/v1/chorus-pro/factures/recycler`;
|
|
450
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
451
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
452
|
+
let baseOptions;
|
|
453
|
+
if (configuration) {
|
|
454
|
+
baseOptions = configuration.baseOptions;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
458
|
+
const localVarHeaderParameter = {} as any;
|
|
459
|
+
const localVarQueryParameter = {} as any;
|
|
460
|
+
|
|
461
|
+
// authentication HTTPBearer required
|
|
462
|
+
// http bearer authentication required
|
|
463
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
468
|
+
|
|
469
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
470
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
471
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
472
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, localVarRequestOptions, configuration)
|
|
473
|
+
|
|
474
|
+
return {
|
|
475
|
+
url: toPathString(localVarUrlObj),
|
|
476
|
+
options: localVarRequestOptions,
|
|
477
|
+
};
|
|
478
|
+
},
|
|
479
|
+
/**
|
|
480
|
+
* 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.
|
|
481
|
+
* @summary Soumettre une facture à Chorus Pro
|
|
482
|
+
* @param {SoumettreFactureRequest} soumettreFactureRequest
|
|
483
|
+
* @param {*} [options] Override http request option.
|
|
484
|
+
* @throws {RequiredError}
|
|
485
|
+
*/
|
|
486
|
+
soumettreFactureApiV1ChorusProFacturesSoumettrePost: async (soumettreFactureRequest: SoumettreFactureRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
487
|
+
// verify required parameter 'soumettreFactureRequest' is not null or undefined
|
|
488
|
+
assertParamExists('soumettreFactureApiV1ChorusProFacturesSoumettrePost', 'soumettreFactureRequest', soumettreFactureRequest)
|
|
489
|
+
const localVarPath = `/api/v1/chorus-pro/factures/soumettre`;
|
|
490
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
491
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
492
|
+
let baseOptions;
|
|
493
|
+
if (configuration) {
|
|
494
|
+
baseOptions = configuration.baseOptions;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
498
|
+
const localVarHeaderParameter = {} as any;
|
|
499
|
+
const localVarQueryParameter = {} as any;
|
|
500
|
+
|
|
501
|
+
// authentication HTTPBearer required
|
|
502
|
+
// http bearer authentication required
|
|
503
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
508
|
+
|
|
509
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
510
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
511
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
512
|
+
localVarRequestOptions.data = serializeDataIfNeeded(soumettreFactureRequest, localVarRequestOptions, configuration)
|
|
513
|
+
|
|
514
|
+
return {
|
|
515
|
+
url: toPathString(localVarUrlObj),
|
|
516
|
+
options: localVarRequestOptions,
|
|
517
|
+
};
|
|
518
|
+
},
|
|
519
|
+
/**
|
|
520
|
+
* 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.
|
|
521
|
+
* @summary Télécharger un groupe de factures
|
|
522
|
+
* @param {BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost} bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost
|
|
523
|
+
* @param {*} [options] Override http request option.
|
|
524
|
+
* @throws {RequiredError}
|
|
525
|
+
*/
|
|
526
|
+
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost: async (bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost: BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
527
|
+
// verify required parameter 'bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost' is not null or undefined
|
|
528
|
+
assertParamExists('telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost', 'bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost', bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost)
|
|
529
|
+
const localVarPath = `/api/v1/chorus-pro/factures/telecharger-groupe`;
|
|
530
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
531
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
532
|
+
let baseOptions;
|
|
533
|
+
if (configuration) {
|
|
534
|
+
baseOptions = configuration.baseOptions;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
538
|
+
const localVarHeaderParameter = {} as any;
|
|
539
|
+
const localVarQueryParameter = {} as any;
|
|
540
|
+
|
|
541
|
+
// authentication HTTPBearer required
|
|
542
|
+
// http bearer authentication required
|
|
543
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
548
|
+
|
|
549
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
550
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
551
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
552
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, localVarRequestOptions, configuration)
|
|
553
|
+
|
|
554
|
+
return {
|
|
555
|
+
url: toPathString(localVarUrlObj),
|
|
556
|
+
options: localVarRequestOptions,
|
|
557
|
+
};
|
|
558
|
+
},
|
|
559
|
+
/**
|
|
560
|
+
* 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
|
|
561
|
+
* @summary Traiter une facture reçue (Destinataire)
|
|
562
|
+
* @param {BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost} bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
*/
|
|
566
|
+
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost: async (bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost: BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
567
|
+
// verify required parameter 'bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost' is not null or undefined
|
|
568
|
+
assertParamExists('traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost', 'bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost', bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost)
|
|
569
|
+
const localVarPath = `/api/v1/chorus-pro/factures/traiter-facture-recue`;
|
|
570
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
571
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
572
|
+
let baseOptions;
|
|
573
|
+
if (configuration) {
|
|
574
|
+
baseOptions = configuration.baseOptions;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
578
|
+
const localVarHeaderParameter = {} as any;
|
|
579
|
+
const localVarQueryParameter = {} as any;
|
|
580
|
+
|
|
581
|
+
// authentication HTTPBearer required
|
|
582
|
+
// http bearer authentication required
|
|
583
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
588
|
+
|
|
589
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
590
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
591
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
592
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, localVarRequestOptions, configuration)
|
|
593
|
+
|
|
594
|
+
return {
|
|
595
|
+
url: toPathString(localVarUrlObj),
|
|
596
|
+
options: localVarRequestOptions,
|
|
597
|
+
};
|
|
598
|
+
},
|
|
599
|
+
/**
|
|
600
|
+
* Consulte facture (valideur).
|
|
601
|
+
* @summary Consulter une facture (Valideur)
|
|
602
|
+
* @param {BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost} bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost
|
|
603
|
+
* @param {*} [options] Override http request option.
|
|
604
|
+
* @throws {RequiredError}
|
|
605
|
+
*/
|
|
606
|
+
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost: async (bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost: BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
607
|
+
// verify required parameter 'bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost' is not null or undefined
|
|
608
|
+
assertParamExists('valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost', 'bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost', bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost)
|
|
609
|
+
const localVarPath = `/api/v1/chorus-pro/factures/valideur/consulter`;
|
|
610
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
611
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
612
|
+
let baseOptions;
|
|
613
|
+
if (configuration) {
|
|
614
|
+
baseOptions = configuration.baseOptions;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
618
|
+
const localVarHeaderParameter = {} as any;
|
|
619
|
+
const localVarQueryParameter = {} as any;
|
|
620
|
+
|
|
621
|
+
// authentication HTTPBearer required
|
|
622
|
+
// http bearer authentication required
|
|
623
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
628
|
+
|
|
629
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
630
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
631
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
632
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, localVarRequestOptions, configuration)
|
|
633
|
+
|
|
634
|
+
return {
|
|
635
|
+
url: toPathString(localVarUrlObj),
|
|
636
|
+
options: localVarRequestOptions,
|
|
637
|
+
};
|
|
638
|
+
},
|
|
639
|
+
/**
|
|
640
|
+
* 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.
|
|
641
|
+
* @summary Rechercher factures à valider (Valideur)
|
|
642
|
+
* @param {BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost} bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
*/
|
|
646
|
+
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost: async (bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost: BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
647
|
+
// verify required parameter 'bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost' is not null or undefined
|
|
648
|
+
assertParamExists('valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost', 'bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost', bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost)
|
|
649
|
+
const localVarPath = `/api/v1/chorus-pro/factures/valideur/rechercher`;
|
|
650
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
651
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
652
|
+
let baseOptions;
|
|
653
|
+
if (configuration) {
|
|
654
|
+
baseOptions = configuration.baseOptions;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
658
|
+
const localVarHeaderParameter = {} as any;
|
|
659
|
+
const localVarQueryParameter = {} as any;
|
|
660
|
+
|
|
661
|
+
// authentication HTTPBearer required
|
|
662
|
+
// http bearer authentication required
|
|
663
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
668
|
+
|
|
669
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
670
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
671
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
672
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, localVarRequestOptions, configuration)
|
|
673
|
+
|
|
674
|
+
return {
|
|
675
|
+
url: toPathString(localVarUrlObj),
|
|
676
|
+
options: localVarRequestOptions,
|
|
677
|
+
};
|
|
678
|
+
},
|
|
679
|
+
/**
|
|
680
|
+
* 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)
|
|
681
|
+
* @summary Valider ou refuser une facture (Valideur)
|
|
682
|
+
* @param {BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost} bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost
|
|
683
|
+
* @param {*} [options] Override http request option.
|
|
684
|
+
* @throws {RequiredError}
|
|
685
|
+
*/
|
|
686
|
+
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost: async (bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost: BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
687
|
+
// verify required parameter 'bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost' is not null or undefined
|
|
688
|
+
assertParamExists('valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost', 'bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost', bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost)
|
|
689
|
+
const localVarPath = `/api/v1/chorus-pro/factures/valideur/traiter`;
|
|
690
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
691
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
692
|
+
let baseOptions;
|
|
693
|
+
if (configuration) {
|
|
694
|
+
baseOptions = configuration.baseOptions;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
698
|
+
const localVarHeaderParameter = {} as any;
|
|
699
|
+
const localVarQueryParameter = {} as any;
|
|
700
|
+
|
|
701
|
+
// authentication HTTPBearer required
|
|
702
|
+
// http bearer authentication required
|
|
703
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
708
|
+
|
|
709
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
710
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
711
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
712
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, localVarRequestOptions, configuration)
|
|
713
|
+
|
|
714
|
+
return {
|
|
715
|
+
url: toPathString(localVarUrlObj),
|
|
716
|
+
options: localVarRequestOptions,
|
|
717
|
+
};
|
|
718
|
+
},
|
|
719
|
+
}
|
|
720
|
+
};
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* ChorusProApi - functional programming interface
|
|
724
|
+
*/
|
|
725
|
+
export const ChorusProApiFp = function(configuration?: Configuration) {
|
|
726
|
+
const localVarAxiosParamCreator = ChorusProApiAxiosParamCreator(configuration)
|
|
727
|
+
return {
|
|
728
|
+
/**
|
|
729
|
+
* 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.
|
|
730
|
+
* @summary Ajouter une pièce jointe
|
|
731
|
+
* @param {BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost} bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost
|
|
732
|
+
* @param {*} [options] Override http request option.
|
|
733
|
+
* @throws {RequiredError}
|
|
734
|
+
*/
|
|
735
|
+
async ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost: BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
736
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, options);
|
|
737
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
738
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost']?.[localVarOperationServerIndex]?.url;
|
|
739
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
740
|
+
},
|
|
741
|
+
/**
|
|
742
|
+
* 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.
|
|
743
|
+
* @summary Compléter une facture suspendue (Fournisseur)
|
|
744
|
+
* @param {BodyCompleterFactureApiV1ChorusProFacturesCompleterPost} bodyCompleterFactureApiV1ChorusProFacturesCompleterPost
|
|
745
|
+
* @param {*} [options] Override http request option.
|
|
746
|
+
* @throws {RequiredError}
|
|
747
|
+
*/
|
|
748
|
+
async completerFactureApiV1ChorusProFacturesCompleterPost(bodyCompleterFactureApiV1ChorusProFacturesCompleterPost: BodyCompleterFactureApiV1ChorusProFacturesCompleterPost, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
749
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completerFactureApiV1ChorusProFacturesCompleterPost(bodyCompleterFactureApiV1ChorusProFacturesCompleterPost, options);
|
|
750
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
751
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.completerFactureApiV1ChorusProFacturesCompleterPost']?.[localVarOperationServerIndex]?.url;
|
|
752
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
753
|
+
},
|
|
754
|
+
/**
|
|
755
|
+
* 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.
|
|
756
|
+
* @summary Consulter le statut d\'une facture
|
|
757
|
+
* @param {ConsulterFactureRequest} consulterFactureRequest
|
|
758
|
+
* @param {*} [options] Override http request option.
|
|
759
|
+
* @throws {RequiredError}
|
|
760
|
+
*/
|
|
761
|
+
async consulterFactureApiV1ChorusProFacturesConsulterPost(consulterFactureRequest: ConsulterFactureRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConsulterFactureResponse>> {
|
|
762
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.consulterFactureApiV1ChorusProFacturesConsulterPost(consulterFactureRequest, options);
|
|
763
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
764
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.consulterFactureApiV1ChorusProFacturesConsulterPost']?.[localVarOperationServerIndex]?.url;
|
|
765
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
766
|
+
},
|
|
767
|
+
/**
|
|
768
|
+
* 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.
|
|
769
|
+
* @summary Consulter les détails d\'une structure
|
|
770
|
+
* @param {ConsulterStructureRequest} consulterStructureRequest
|
|
771
|
+
* @param {*} [options] Override http request option.
|
|
772
|
+
* @throws {RequiredError}
|
|
773
|
+
*/
|
|
774
|
+
async consulterStructureApiV1ChorusProStructuresConsulterPost(consulterStructureRequest: ConsulterStructureRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConsulterStructureResponse>> {
|
|
775
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.consulterStructureApiV1ChorusProStructuresConsulterPost(consulterStructureRequest, options);
|
|
776
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
777
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.consulterStructureApiV1ChorusProStructuresConsulterPost']?.[localVarOperationServerIndex]?.url;
|
|
778
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
779
|
+
},
|
|
780
|
+
/**
|
|
781
|
+
* 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)
|
|
782
|
+
* @summary Lister les services d\'une structure
|
|
783
|
+
* @param {number} idStructureCpp
|
|
784
|
+
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
*/
|
|
788
|
+
async listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp: number, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet: BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RechercherServicesResponse>> {
|
|
789
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, options);
|
|
790
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
791
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet']?.[localVarOperationServerIndex]?.url;
|
|
792
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
793
|
+
},
|
|
794
|
+
/**
|
|
795
|
+
* **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.
|
|
796
|
+
* @summary Utilitaire : Obtenir l\'ID Chorus Pro depuis un SIRET
|
|
797
|
+
* @param {ObtenirIdChorusProRequest} obtenirIdChorusProRequest
|
|
798
|
+
* @param {*} [options] Override http request option.
|
|
799
|
+
* @throws {RequiredError}
|
|
800
|
+
*/
|
|
801
|
+
async obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(obtenirIdChorusProRequest: ObtenirIdChorusProRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObtenirIdChorusProResponse>> {
|
|
802
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(obtenirIdChorusProRequest, options);
|
|
803
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
804
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost']?.[localVarOperationServerIndex]?.url;
|
|
805
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
806
|
+
},
|
|
807
|
+
/**
|
|
808
|
+
* 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.
|
|
809
|
+
* @summary Rechercher factures reçues (Destinataire)
|
|
810
|
+
* @param {BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost} bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost
|
|
811
|
+
* @param {*} [options] Override http request option.
|
|
812
|
+
* @throws {RequiredError}
|
|
813
|
+
*/
|
|
814
|
+
async rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost: BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
815
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, options);
|
|
816
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
817
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost']?.[localVarOperationServerIndex]?.url;
|
|
818
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
819
|
+
},
|
|
820
|
+
/**
|
|
821
|
+
* 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é
|
|
822
|
+
* @summary Rechercher factures émises (Fournisseur)
|
|
823
|
+
* @param {BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost} bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost
|
|
824
|
+
* @param {*} [options] Override http request option.
|
|
825
|
+
* @throws {RequiredError}
|
|
826
|
+
*/
|
|
827
|
+
async rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost: BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
828
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, options);
|
|
829
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
830
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost']?.[localVarOperationServerIndex]?.url;
|
|
831
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
832
|
+
},
|
|
833
|
+
/**
|
|
834
|
+
* 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.
|
|
835
|
+
* @summary Rechercher des structures Chorus Pro
|
|
836
|
+
* @param {RechercherStructureRequest} rechercherStructureRequest
|
|
837
|
+
* @param {*} [options] Override http request option.
|
|
838
|
+
* @throws {RequiredError}
|
|
839
|
+
*/
|
|
840
|
+
async rechercherStructuresApiV1ChorusProStructuresRechercherPost(rechercherStructureRequest: RechercherStructureRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RechercherStructureResponse>> {
|
|
841
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rechercherStructuresApiV1ChorusProStructuresRechercherPost(rechercherStructureRequest, options);
|
|
842
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
843
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.rechercherStructuresApiV1ChorusProStructuresRechercherPost']?.[localVarOperationServerIndex]?.url;
|
|
844
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
845
|
+
},
|
|
846
|
+
/**
|
|
847
|
+
* 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.
|
|
848
|
+
* @summary Recycler une facture (Fournisseur)
|
|
849
|
+
* @param {BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost} bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost
|
|
850
|
+
* @param {*} [options] Override http request option.
|
|
851
|
+
* @throws {RequiredError}
|
|
852
|
+
*/
|
|
853
|
+
async recyclerFactureApiV1ChorusProFacturesRecyclerPost(bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost: BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
854
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.recyclerFactureApiV1ChorusProFacturesRecyclerPost(bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, options);
|
|
855
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
856
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.recyclerFactureApiV1ChorusProFacturesRecyclerPost']?.[localVarOperationServerIndex]?.url;
|
|
857
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
858
|
+
},
|
|
859
|
+
/**
|
|
860
|
+
* 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.
|
|
861
|
+
* @summary Soumettre une facture à Chorus Pro
|
|
862
|
+
* @param {SoumettreFactureRequest} soumettreFactureRequest
|
|
863
|
+
* @param {*} [options] Override http request option.
|
|
864
|
+
* @throws {RequiredError}
|
|
865
|
+
*/
|
|
866
|
+
async soumettreFactureApiV1ChorusProFacturesSoumettrePost(soumettreFactureRequest: SoumettreFactureRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SoumettreFactureResponse>> {
|
|
867
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.soumettreFactureApiV1ChorusProFacturesSoumettrePost(soumettreFactureRequest, options);
|
|
868
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
869
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.soumettreFactureApiV1ChorusProFacturesSoumettrePost']?.[localVarOperationServerIndex]?.url;
|
|
870
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
871
|
+
},
|
|
872
|
+
/**
|
|
873
|
+
* 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.
|
|
874
|
+
* @summary Télécharger un groupe de factures
|
|
875
|
+
* @param {BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost} bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost
|
|
876
|
+
* @param {*} [options] Override http request option.
|
|
877
|
+
* @throws {RequiredError}
|
|
878
|
+
*/
|
|
879
|
+
async telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost: BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
880
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, options);
|
|
881
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
882
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost']?.[localVarOperationServerIndex]?.url;
|
|
883
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
884
|
+
},
|
|
885
|
+
/**
|
|
886
|
+
* 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
|
|
887
|
+
* @summary Traiter une facture reçue (Destinataire)
|
|
888
|
+
* @param {BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost} bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost
|
|
889
|
+
* @param {*} [options] Override http request option.
|
|
890
|
+
* @throws {RequiredError}
|
|
891
|
+
*/
|
|
892
|
+
async traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost: BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
893
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, options);
|
|
894
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
895
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost']?.[localVarOperationServerIndex]?.url;
|
|
896
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
897
|
+
},
|
|
898
|
+
/**
|
|
899
|
+
* Consulte facture (valideur).
|
|
900
|
+
* @summary Consulter une facture (Valideur)
|
|
901
|
+
* @param {BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost} bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost
|
|
902
|
+
* @param {*} [options] Override http request option.
|
|
903
|
+
* @throws {RequiredError}
|
|
904
|
+
*/
|
|
905
|
+
async valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost: BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
906
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, options);
|
|
907
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
908
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost']?.[localVarOperationServerIndex]?.url;
|
|
909
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
910
|
+
},
|
|
911
|
+
/**
|
|
912
|
+
* 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.
|
|
913
|
+
* @summary Rechercher factures à valider (Valideur)
|
|
914
|
+
* @param {BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost} bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost
|
|
915
|
+
* @param {*} [options] Override http request option.
|
|
916
|
+
* @throws {RequiredError}
|
|
917
|
+
*/
|
|
918
|
+
async valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost: BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
919
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, options);
|
|
920
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
921
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost']?.[localVarOperationServerIndex]?.url;
|
|
922
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
923
|
+
},
|
|
924
|
+
/**
|
|
925
|
+
* 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)
|
|
926
|
+
* @summary Valider ou refuser une facture (Valideur)
|
|
927
|
+
* @param {BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost} bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost
|
|
928
|
+
* @param {*} [options] Override http request option.
|
|
929
|
+
* @throws {RequiredError}
|
|
930
|
+
*/
|
|
931
|
+
async valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost: BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
932
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, options);
|
|
933
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
934
|
+
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost']?.[localVarOperationServerIndex]?.url;
|
|
935
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
936
|
+
},
|
|
937
|
+
}
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* ChorusProApi - factory interface
|
|
942
|
+
*/
|
|
943
|
+
export const ChorusProApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
944
|
+
const localVarFp = ChorusProApiFp(configuration)
|
|
945
|
+
return {
|
|
946
|
+
/**
|
|
947
|
+
* 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.
|
|
948
|
+
* @summary Ajouter une pièce jointe
|
|
949
|
+
* @param {BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost} bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost
|
|
950
|
+
* @param {*} [options] Override http request option.
|
|
951
|
+
* @throws {RequiredError}
|
|
952
|
+
*/
|
|
953
|
+
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost: BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
954
|
+
return localVarFp.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, options).then((request) => request(axios, basePath));
|
|
955
|
+
},
|
|
956
|
+
/**
|
|
957
|
+
* 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.
|
|
958
|
+
* @summary Compléter une facture suspendue (Fournisseur)
|
|
959
|
+
* @param {BodyCompleterFactureApiV1ChorusProFacturesCompleterPost} bodyCompleterFactureApiV1ChorusProFacturesCompleterPost
|
|
960
|
+
* @param {*} [options] Override http request option.
|
|
961
|
+
* @throws {RequiredError}
|
|
962
|
+
*/
|
|
963
|
+
completerFactureApiV1ChorusProFacturesCompleterPost(bodyCompleterFactureApiV1ChorusProFacturesCompleterPost: BodyCompleterFactureApiV1ChorusProFacturesCompleterPost, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
964
|
+
return localVarFp.completerFactureApiV1ChorusProFacturesCompleterPost(bodyCompleterFactureApiV1ChorusProFacturesCompleterPost, options).then((request) => request(axios, basePath));
|
|
965
|
+
},
|
|
966
|
+
/**
|
|
967
|
+
* 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.
|
|
968
|
+
* @summary Consulter le statut d\'une facture
|
|
969
|
+
* @param {ConsulterFactureRequest} consulterFactureRequest
|
|
970
|
+
* @param {*} [options] Override http request option.
|
|
971
|
+
* @throws {RequiredError}
|
|
972
|
+
*/
|
|
973
|
+
consulterFactureApiV1ChorusProFacturesConsulterPost(consulterFactureRequest: ConsulterFactureRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConsulterFactureResponse> {
|
|
974
|
+
return localVarFp.consulterFactureApiV1ChorusProFacturesConsulterPost(consulterFactureRequest, options).then((request) => request(axios, basePath));
|
|
975
|
+
},
|
|
976
|
+
/**
|
|
977
|
+
* 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.
|
|
978
|
+
* @summary Consulter les détails d\'une structure
|
|
979
|
+
* @param {ConsulterStructureRequest} consulterStructureRequest
|
|
980
|
+
* @param {*} [options] Override http request option.
|
|
981
|
+
* @throws {RequiredError}
|
|
982
|
+
*/
|
|
983
|
+
consulterStructureApiV1ChorusProStructuresConsulterPost(consulterStructureRequest: ConsulterStructureRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConsulterStructureResponse> {
|
|
984
|
+
return localVarFp.consulterStructureApiV1ChorusProStructuresConsulterPost(consulterStructureRequest, options).then((request) => request(axios, basePath));
|
|
985
|
+
},
|
|
986
|
+
/**
|
|
987
|
+
* 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)
|
|
988
|
+
* @summary Lister les services d\'une structure
|
|
989
|
+
* @param {number} idStructureCpp
|
|
990
|
+
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
991
|
+
* @param {*} [options] Override http request option.
|
|
992
|
+
* @throws {RequiredError}
|
|
993
|
+
*/
|
|
994
|
+
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp: number, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet: BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, options?: RawAxiosRequestConfig): AxiosPromise<RechercherServicesResponse> {
|
|
995
|
+
return localVarFp.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, options).then((request) => request(axios, basePath));
|
|
996
|
+
},
|
|
997
|
+
/**
|
|
998
|
+
* **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.
|
|
999
|
+
* @summary Utilitaire : Obtenir l\'ID Chorus Pro depuis un SIRET
|
|
1000
|
+
* @param {ObtenirIdChorusProRequest} obtenirIdChorusProRequest
|
|
1001
|
+
* @param {*} [options] Override http request option.
|
|
1002
|
+
* @throws {RequiredError}
|
|
1003
|
+
*/
|
|
1004
|
+
obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(obtenirIdChorusProRequest: ObtenirIdChorusProRequest, options?: RawAxiosRequestConfig): AxiosPromise<ObtenirIdChorusProResponse> {
|
|
1005
|
+
return localVarFp.obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(obtenirIdChorusProRequest, options).then((request) => request(axios, basePath));
|
|
1006
|
+
},
|
|
1007
|
+
/**
|
|
1008
|
+
* 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.
|
|
1009
|
+
* @summary Rechercher factures reçues (Destinataire)
|
|
1010
|
+
* @param {BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost} bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost
|
|
1011
|
+
* @param {*} [options] Override http request option.
|
|
1012
|
+
* @throws {RequiredError}
|
|
1013
|
+
*/
|
|
1014
|
+
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost: BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
1015
|
+
return localVarFp.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, options).then((request) => request(axios, basePath));
|
|
1016
|
+
},
|
|
1017
|
+
/**
|
|
1018
|
+
* 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é
|
|
1019
|
+
* @summary Rechercher factures émises (Fournisseur)
|
|
1020
|
+
* @param {BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost} bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost
|
|
1021
|
+
* @param {*} [options] Override http request option.
|
|
1022
|
+
* @throws {RequiredError}
|
|
1023
|
+
*/
|
|
1024
|
+
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost: BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
1025
|
+
return localVarFp.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, options).then((request) => request(axios, basePath));
|
|
1026
|
+
},
|
|
1027
|
+
/**
|
|
1028
|
+
* 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.
|
|
1029
|
+
* @summary Rechercher des structures Chorus Pro
|
|
1030
|
+
* @param {RechercherStructureRequest} rechercherStructureRequest
|
|
1031
|
+
* @param {*} [options] Override http request option.
|
|
1032
|
+
* @throws {RequiredError}
|
|
1033
|
+
*/
|
|
1034
|
+
rechercherStructuresApiV1ChorusProStructuresRechercherPost(rechercherStructureRequest: RechercherStructureRequest, options?: RawAxiosRequestConfig): AxiosPromise<RechercherStructureResponse> {
|
|
1035
|
+
return localVarFp.rechercherStructuresApiV1ChorusProStructuresRechercherPost(rechercherStructureRequest, options).then((request) => request(axios, basePath));
|
|
1036
|
+
},
|
|
1037
|
+
/**
|
|
1038
|
+
* 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.
|
|
1039
|
+
* @summary Recycler une facture (Fournisseur)
|
|
1040
|
+
* @param {BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost} bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost
|
|
1041
|
+
* @param {*} [options] Override http request option.
|
|
1042
|
+
* @throws {RequiredError}
|
|
1043
|
+
*/
|
|
1044
|
+
recyclerFactureApiV1ChorusProFacturesRecyclerPost(bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost: BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
1045
|
+
return localVarFp.recyclerFactureApiV1ChorusProFacturesRecyclerPost(bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, options).then((request) => request(axios, basePath));
|
|
1046
|
+
},
|
|
1047
|
+
/**
|
|
1048
|
+
* 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.
|
|
1049
|
+
* @summary Soumettre une facture à Chorus Pro
|
|
1050
|
+
* @param {SoumettreFactureRequest} soumettreFactureRequest
|
|
1051
|
+
* @param {*} [options] Override http request option.
|
|
1052
|
+
* @throws {RequiredError}
|
|
1053
|
+
*/
|
|
1054
|
+
soumettreFactureApiV1ChorusProFacturesSoumettrePost(soumettreFactureRequest: SoumettreFactureRequest, options?: RawAxiosRequestConfig): AxiosPromise<SoumettreFactureResponse> {
|
|
1055
|
+
return localVarFp.soumettreFactureApiV1ChorusProFacturesSoumettrePost(soumettreFactureRequest, options).then((request) => request(axios, basePath));
|
|
1056
|
+
},
|
|
1057
|
+
/**
|
|
1058
|
+
* 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.
|
|
1059
|
+
* @summary Télécharger un groupe de factures
|
|
1060
|
+
* @param {BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost} bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost
|
|
1061
|
+
* @param {*} [options] Override http request option.
|
|
1062
|
+
* @throws {RequiredError}
|
|
1063
|
+
*/
|
|
1064
|
+
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost: BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
1065
|
+
return localVarFp.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, options).then((request) => request(axios, basePath));
|
|
1066
|
+
},
|
|
1067
|
+
/**
|
|
1068
|
+
* 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
|
|
1069
|
+
* @summary Traiter une facture reçue (Destinataire)
|
|
1070
|
+
* @param {BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost} bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost
|
|
1071
|
+
* @param {*} [options] Override http request option.
|
|
1072
|
+
* @throws {RequiredError}
|
|
1073
|
+
*/
|
|
1074
|
+
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost: BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
1075
|
+
return localVarFp.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, options).then((request) => request(axios, basePath));
|
|
1076
|
+
},
|
|
1077
|
+
/**
|
|
1078
|
+
* Consulte facture (valideur).
|
|
1079
|
+
* @summary Consulter une facture (Valideur)
|
|
1080
|
+
* @param {BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost} bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost
|
|
1081
|
+
* @param {*} [options] Override http request option.
|
|
1082
|
+
* @throws {RequiredError}
|
|
1083
|
+
*/
|
|
1084
|
+
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost: BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
1085
|
+
return localVarFp.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, options).then((request) => request(axios, basePath));
|
|
1086
|
+
},
|
|
1087
|
+
/**
|
|
1088
|
+
* 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.
|
|
1089
|
+
* @summary Rechercher factures à valider (Valideur)
|
|
1090
|
+
* @param {BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost} bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost
|
|
1091
|
+
* @param {*} [options] Override http request option.
|
|
1092
|
+
* @throws {RequiredError}
|
|
1093
|
+
*/
|
|
1094
|
+
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost: BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
1095
|
+
return localVarFp.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, options).then((request) => request(axios, basePath));
|
|
1096
|
+
},
|
|
1097
|
+
/**
|
|
1098
|
+
* 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)
|
|
1099
|
+
* @summary Valider ou refuser une facture (Valideur)
|
|
1100
|
+
* @param {BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost} bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost
|
|
1101
|
+
* @param {*} [options] Override http request option.
|
|
1102
|
+
* @throws {RequiredError}
|
|
1103
|
+
*/
|
|
1104
|
+
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost: BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
1105
|
+
return localVarFp.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, options).then((request) => request(axios, basePath));
|
|
1106
|
+
},
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* ChorusProApi - object-oriented interface
|
|
1112
|
+
*/
|
|
1113
|
+
export class ChorusProApi extends BaseAPI {
|
|
1114
|
+
/**
|
|
1115
|
+
* 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.
|
|
1116
|
+
* @summary Ajouter une pièce jointe
|
|
1117
|
+
* @param {BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost} bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost
|
|
1118
|
+
* @param {*} [options] Override http request option.
|
|
1119
|
+
* @throws {RequiredError}
|
|
1120
|
+
*/
|
|
1121
|
+
public ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost: BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, options?: RawAxiosRequestConfig) {
|
|
1122
|
+
return ChorusProApiFp(this.configuration).ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(bodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost, options).then((request) => request(this.axios, this.basePath));
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* 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.
|
|
1127
|
+
* @summary Compléter une facture suspendue (Fournisseur)
|
|
1128
|
+
* @param {BodyCompleterFactureApiV1ChorusProFacturesCompleterPost} bodyCompleterFactureApiV1ChorusProFacturesCompleterPost
|
|
1129
|
+
* @param {*} [options] Override http request option.
|
|
1130
|
+
* @throws {RequiredError}
|
|
1131
|
+
*/
|
|
1132
|
+
public completerFactureApiV1ChorusProFacturesCompleterPost(bodyCompleterFactureApiV1ChorusProFacturesCompleterPost: BodyCompleterFactureApiV1ChorusProFacturesCompleterPost, options?: RawAxiosRequestConfig) {
|
|
1133
|
+
return ChorusProApiFp(this.configuration).completerFactureApiV1ChorusProFacturesCompleterPost(bodyCompleterFactureApiV1ChorusProFacturesCompleterPost, options).then((request) => request(this.axios, this.basePath));
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* 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.
|
|
1138
|
+
* @summary Consulter le statut d\'une facture
|
|
1139
|
+
* @param {ConsulterFactureRequest} consulterFactureRequest
|
|
1140
|
+
* @param {*} [options] Override http request option.
|
|
1141
|
+
* @throws {RequiredError}
|
|
1142
|
+
*/
|
|
1143
|
+
public consulterFactureApiV1ChorusProFacturesConsulterPost(consulterFactureRequest: ConsulterFactureRequest, options?: RawAxiosRequestConfig) {
|
|
1144
|
+
return ChorusProApiFp(this.configuration).consulterFactureApiV1ChorusProFacturesConsulterPost(consulterFactureRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* 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.
|
|
1149
|
+
* @summary Consulter les détails d\'une structure
|
|
1150
|
+
* @param {ConsulterStructureRequest} consulterStructureRequest
|
|
1151
|
+
* @param {*} [options] Override http request option.
|
|
1152
|
+
* @throws {RequiredError}
|
|
1153
|
+
*/
|
|
1154
|
+
public consulterStructureApiV1ChorusProStructuresConsulterPost(consulterStructureRequest: ConsulterStructureRequest, options?: RawAxiosRequestConfig) {
|
|
1155
|
+
return ChorusProApiFp(this.configuration).consulterStructureApiV1ChorusProStructuresConsulterPost(consulterStructureRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* 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)
|
|
1160
|
+
* @summary Lister les services d\'une structure
|
|
1161
|
+
* @param {number} idStructureCpp
|
|
1162
|
+
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
1163
|
+
* @param {*} [options] Override http request option.
|
|
1164
|
+
* @throws {RequiredError}
|
|
1165
|
+
*/
|
|
1166
|
+
public listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp: number, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet: BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, options?: RawAxiosRequestConfig) {
|
|
1167
|
+
return ChorusProApiFp(this.configuration).listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, options).then((request) => request(this.axios, this.basePath));
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* **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.
|
|
1172
|
+
* @summary Utilitaire : Obtenir l\'ID Chorus Pro depuis un SIRET
|
|
1173
|
+
* @param {ObtenirIdChorusProRequest} obtenirIdChorusProRequest
|
|
1174
|
+
* @param {*} [options] Override http request option.
|
|
1175
|
+
* @throws {RequiredError}
|
|
1176
|
+
*/
|
|
1177
|
+
public obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(obtenirIdChorusProRequest: ObtenirIdChorusProRequest, options?: RawAxiosRequestConfig) {
|
|
1178
|
+
return ChorusProApiFp(this.configuration).obtenirIdChorusProDepuisSiretApiV1ChorusProStructuresObtenirIdDepuisSiretPost(obtenirIdChorusProRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* 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.
|
|
1183
|
+
* @summary Rechercher factures reçues (Destinataire)
|
|
1184
|
+
* @param {BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost} bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost
|
|
1185
|
+
* @param {*} [options] Override http request option.
|
|
1186
|
+
* @throws {RequiredError}
|
|
1187
|
+
*/
|
|
1188
|
+
public rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost: BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, options?: RawAxiosRequestConfig) {
|
|
1189
|
+
return ChorusProApiFp(this.configuration).rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(bodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost, options).then((request) => request(this.axios, this.basePath));
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* 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é
|
|
1194
|
+
* @summary Rechercher factures émises (Fournisseur)
|
|
1195
|
+
* @param {BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost} bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost
|
|
1196
|
+
* @param {*} [options] Override http request option.
|
|
1197
|
+
* @throws {RequiredError}
|
|
1198
|
+
*/
|
|
1199
|
+
public rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost: BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, options?: RawAxiosRequestConfig) {
|
|
1200
|
+
return ChorusProApiFp(this.configuration).rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(bodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost, options).then((request) => request(this.axios, this.basePath));
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* 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.
|
|
1205
|
+
* @summary Rechercher des structures Chorus Pro
|
|
1206
|
+
* @param {RechercherStructureRequest} rechercherStructureRequest
|
|
1207
|
+
* @param {*} [options] Override http request option.
|
|
1208
|
+
* @throws {RequiredError}
|
|
1209
|
+
*/
|
|
1210
|
+
public rechercherStructuresApiV1ChorusProStructuresRechercherPost(rechercherStructureRequest: RechercherStructureRequest, options?: RawAxiosRequestConfig) {
|
|
1211
|
+
return ChorusProApiFp(this.configuration).rechercherStructuresApiV1ChorusProStructuresRechercherPost(rechercherStructureRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* 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.
|
|
1216
|
+
* @summary Recycler une facture (Fournisseur)
|
|
1217
|
+
* @param {BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost} bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost
|
|
1218
|
+
* @param {*} [options] Override http request option.
|
|
1219
|
+
* @throws {RequiredError}
|
|
1220
|
+
*/
|
|
1221
|
+
public recyclerFactureApiV1ChorusProFacturesRecyclerPost(bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost: BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, options?: RawAxiosRequestConfig) {
|
|
1222
|
+
return ChorusProApiFp(this.configuration).recyclerFactureApiV1ChorusProFacturesRecyclerPost(bodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost, options).then((request) => request(this.axios, this.basePath));
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* 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.
|
|
1227
|
+
* @summary Soumettre une facture à Chorus Pro
|
|
1228
|
+
* @param {SoumettreFactureRequest} soumettreFactureRequest
|
|
1229
|
+
* @param {*} [options] Override http request option.
|
|
1230
|
+
* @throws {RequiredError}
|
|
1231
|
+
*/
|
|
1232
|
+
public soumettreFactureApiV1ChorusProFacturesSoumettrePost(soumettreFactureRequest: SoumettreFactureRequest, options?: RawAxiosRequestConfig) {
|
|
1233
|
+
return ChorusProApiFp(this.configuration).soumettreFactureApiV1ChorusProFacturesSoumettrePost(soumettreFactureRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* 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.
|
|
1238
|
+
* @summary Télécharger un groupe de factures
|
|
1239
|
+
* @param {BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost} bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost
|
|
1240
|
+
* @param {*} [options] Override http request option.
|
|
1241
|
+
* @throws {RequiredError}
|
|
1242
|
+
*/
|
|
1243
|
+
public telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost: BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, options?: RawAxiosRequestConfig) {
|
|
1244
|
+
return ChorusProApiFp(this.configuration).telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(bodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost, options).then((request) => request(this.axios, this.basePath));
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* 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
|
|
1249
|
+
* @summary Traiter une facture reçue (Destinataire)
|
|
1250
|
+
* @param {BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost} bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost
|
|
1251
|
+
* @param {*} [options] Override http request option.
|
|
1252
|
+
* @throws {RequiredError}
|
|
1253
|
+
*/
|
|
1254
|
+
public traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost: BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, options?: RawAxiosRequestConfig) {
|
|
1255
|
+
return ChorusProApiFp(this.configuration).traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(bodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost, options).then((request) => request(this.axios, this.basePath));
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* Consulte facture (valideur).
|
|
1260
|
+
* @summary Consulter une facture (Valideur)
|
|
1261
|
+
* @param {BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost} bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost
|
|
1262
|
+
* @param {*} [options] Override http request option.
|
|
1263
|
+
* @throws {RequiredError}
|
|
1264
|
+
*/
|
|
1265
|
+
public valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost: BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, options?: RawAxiosRequestConfig) {
|
|
1266
|
+
return ChorusProApiFp(this.configuration).valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(bodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost, options).then((request) => request(this.axios, this.basePath));
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
/**
|
|
1270
|
+
* 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.
|
|
1271
|
+
* @summary Rechercher factures à valider (Valideur)
|
|
1272
|
+
* @param {BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost} bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost
|
|
1273
|
+
* @param {*} [options] Override http request option.
|
|
1274
|
+
* @throws {RequiredError}
|
|
1275
|
+
*/
|
|
1276
|
+
public valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost: BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, options?: RawAxiosRequestConfig) {
|
|
1277
|
+
return ChorusProApiFp(this.configuration).valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(bodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost, options).then((request) => request(this.axios, this.basePath));
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* 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)
|
|
1282
|
+
* @summary Valider ou refuser une facture (Valideur)
|
|
1283
|
+
* @param {BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost} bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost
|
|
1284
|
+
* @param {*} [options] Override http request option.
|
|
1285
|
+
* @throws {RequiredError}
|
|
1286
|
+
*/
|
|
1287
|
+
public valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost: BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, options?: RawAxiosRequestConfig) {
|
|
1288
|
+
return ChorusProApiFp(this.configuration).valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(bodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost, options).then((request) => request(this.axios, this.basePath));
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
|