@factpulse/sdk 2.0.11 → 2.0.49
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 +70 -8
- package/.github/workflows/publish-npm.yml +5 -7
- package/.openapi-generator/FILES +58 -26
- package/CHANGELOG.md +3 -3
- package/README.md +165 -116
- package/api/afnorpdppaapi.ts +149 -0
- package/api/chorus-pro-api.ts +151 -181
- package/api/traitement-facture-api.ts +12 -12
- package/api/vrification-pdfxmlapi.ts +536 -0
- package/api.ts +1 -0
- package/dist/api/afnorpdppaapi.d.ts +65 -0
- package/dist/api/afnorpdppaapi.js +142 -1
- package/dist/api/afnorpdppadirectory-service-api.js +4 -1
- package/dist/api/afnorpdppaflow-service-api.js +4 -1
- package/dist/api/chorus-pro-api.d.ts +168 -103
- package/dist/api/chorus-pro-api.js +155 -160
- package/dist/api/sant-api.js +4 -1
- package/dist/api/traitement-facture-api.d.ts +12 -12
- package/dist/api/traitement-facture-api.js +16 -13
- package/dist/api/utilisateur-api.js +4 -1
- package/dist/api/vrification-pdfxmlapi.d.ts +237 -0
- package/dist/api/vrification-pdfxmlapi.js +514 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +4 -1
- package/dist/esm/api/afnorpdppaapi.d.ts +65 -0
- package/dist/esm/api/afnorpdppaapi.js +139 -1
- package/dist/esm/api/chorus-pro-api.d.ts +168 -103
- package/dist/esm/api/chorus-pro-api.js +151 -159
- package/dist/esm/api/traitement-facture-api.d.ts +12 -12
- package/dist/esm/api/traitement-facture-api.js +12 -12
- package/dist/esm/api/vrification-pdfxmlapi.d.ts +237 -0
- package/dist/esm/api/vrification-pdfxmlapi.js +504 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/{utilisateur.d.ts → apierror.d.ts} +12 -15
- package/dist/esm/models/beneficiaire.d.ts +26 -0
- package/dist/esm/models/bounding-box-schema.d.ts +44 -0
- package/dist/esm/models/cadre-de-facturation.d.ts +3 -1
- package/dist/esm/models/champ-verifie-schema.d.ts +42 -0
- package/dist/esm/models/code-cadre-facturation.d.ts +3 -0
- package/dist/esm/models/code-cadre-facturation.js +3 -0
- package/dist/esm/models/destinataire.d.ts +1 -1
- package/dist/esm/models/dimension-page-schema.d.ts +24 -0
- package/dist/esm/models/{quota-info.d.ts → direction-flux.d.ts} +6 -8
- package/dist/esm/models/direction-flux.js +20 -0
- package/dist/esm/models/error-level.d.ts +16 -0
- package/dist/esm/models/error-level.js +17 -0
- package/dist/esm/models/{body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.d.ts → error-source.d.ts} +11 -9
- package/dist/esm/models/error-source.js +23 -0
- package/dist/esm/models/facture-entrante.d.ts +68 -0
- package/dist/esm/models/facture-factur-x.d.ts +2 -0
- package/dist/esm/models/{body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.d.ts → flux-resume.d.ts} +12 -8
- package/dist/esm/models/format-facture.d.ts +20 -0
- package/dist/esm/models/format-facture.js +21 -0
- package/dist/esm/models/fournisseur-entrant.d.ts +29 -0
- package/dist/esm/models/fournisseur.d.ts +1 -1
- package/dist/esm/models/index.d.ts +28 -13
- package/dist/esm/models/index.js +28 -13
- package/dist/esm/models/ligne-de-tva.d.ts +3 -1
- package/dist/esm/models/nature-operation.d.ts +31 -0
- package/dist/esm/models/nature-operation.js +32 -0
- package/dist/esm/models/note-obligatoire-schema.d.ts +34 -0
- package/dist/esm/models/note.d.ts +2 -2
- package/dist/esm/models/pdpcredentials.d.ts +33 -0
- package/dist/esm/models/profil-flux.d.ts +20 -0
- package/dist/esm/models/profil-flux.js +21 -0
- package/dist/esm/models/{body-completer-facture-api-v1-chorus-pro-factures-completer-post.d.ts → reponse-healthcheck-afnor.d.ts} +16 -8
- package/dist/esm/models/reponse-recherche-flux.d.ts +33 -0
- package/dist/esm/models/reponse-soumission-flux.d.ts +38 -0
- package/dist/esm/models/reponse-verification-succes.d.ts +56 -0
- package/dist/esm/models/reponse-verification-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/statut-acquittement.d.ts +20 -0
- package/dist/esm/models/statut-acquittement.js +21 -0
- package/dist/esm/models/statut-champ-api.d.ts +22 -0
- package/dist/esm/models/statut-champ-api.js +23 -0
- package/dist/esm/models/syntaxe-flux.d.ts +22 -0
- package/dist/esm/models/syntaxe-flux.js +23 -0
- package/dist/esm/models/type-document.d.ts +37 -0
- package/dist/esm/models/type-document.js +38 -0
- package/dist/esm/models/type-facture.d.ts +65 -3
- package/dist/esm/models/type-facture.js +65 -3
- package/dist/esm/models/type-flux.d.ts +22 -0
- package/dist/esm/models/type-flux.js +23 -0
- package/dist/esm/models/validation-error-detail.d.ts +32 -0
- package/dist/esm/models/validation-error-detail.js +14 -0
- package/dist/esm/src/helpers/client.d.ts +265 -0
- package/dist/esm/src/helpers/client.js +817 -0
- package/dist/esm/src/helpers/exceptions.d.ts +23 -0
- package/dist/esm/src/helpers/exceptions.js +27 -0
- package/dist/esm/src/helpers/index.d.ts +3 -0
- package/dist/esm/src/helpers/index.js +6 -0
- package/dist/models/{utilisateur.d.ts → apierror.d.ts} +12 -15
- package/dist/models/beneficiaire.d.ts +26 -0
- package/dist/models/bounding-box-schema.d.ts +44 -0
- package/dist/models/cadre-de-facturation.d.ts +3 -1
- package/dist/models/champ-verifie-schema.d.ts +42 -0
- package/dist/models/code-cadre-facturation.d.ts +3 -0
- package/dist/models/code-cadre-facturation.js +3 -0
- package/dist/models/destinataire.d.ts +1 -1
- package/dist/models/dimension-page-schema.d.ts +24 -0
- package/dist/models/{quota-info.d.ts → direction-flux.d.ts} +6 -8
- package/dist/models/direction-flux.js +23 -0
- package/dist/models/error-level.d.ts +16 -0
- package/dist/models/error-level.js +20 -0
- package/dist/models/error-source.d.ts +22 -0
- package/dist/models/error-source.js +26 -0
- package/dist/models/facture-entrante.d.ts +68 -0
- package/dist/models/facture-factur-x.d.ts +2 -0
- package/dist/models/flux-resume.d.ts +24 -0
- package/dist/models/format-facture.d.ts +20 -0
- package/dist/models/format-facture.js +24 -0
- package/dist/models/fournisseur-entrant.d.ts +29 -0
- package/dist/models/fournisseur.d.ts +1 -1
- package/dist/models/index.d.ts +28 -13
- package/dist/models/index.js +28 -13
- package/dist/models/ligne-de-tva.d.ts +3 -1
- package/dist/models/nature-operation.d.ts +31 -0
- package/dist/models/nature-operation.js +35 -0
- package/dist/models/note-obligatoire-schema.d.ts +34 -0
- package/dist/models/note.d.ts +2 -2
- package/dist/models/pdpcredentials.d.ts +33 -0
- package/dist/models/profil-flux.d.ts +20 -0
- package/dist/models/profil-flux.js +24 -0
- package/dist/{esm/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.d.ts → models/reponse-healthcheck-afnor.d.ts} +16 -8
- package/dist/models/reponse-recherche-flux.d.ts +33 -0
- package/dist/models/reponse-soumission-flux.d.ts +38 -0
- package/dist/models/reponse-verification-succes.d.ts +56 -0
- package/dist/models/reponse-verification-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/statut-acquittement.d.ts +20 -0
- package/dist/models/statut-acquittement.js +24 -0
- package/dist/models/statut-champ-api.d.ts +22 -0
- package/dist/models/statut-champ-api.js +26 -0
- package/dist/models/syntaxe-flux.d.ts +22 -0
- package/dist/models/syntaxe-flux.js +26 -0
- package/dist/models/type-document.d.ts +37 -0
- package/dist/models/type-document.js +41 -0
- package/dist/models/type-facture.d.ts +65 -3
- package/dist/models/type-facture.js +65 -3
- package/dist/models/type-flux.d.ts +22 -0
- package/dist/models/type-flux.js +26 -0
- package/dist/models/validation-error-detail.d.ts +32 -0
- package/dist/models/validation-error-detail.js +15 -0
- package/dist/src/helpers/client.d.ts +265 -0
- package/dist/src/helpers/client.js +866 -0
- package/dist/src/helpers/exceptions.d.ts +23 -0
- package/dist/src/helpers/exceptions.js +35 -0
- package/dist/src/helpers/index.d.ts +3 -0
- package/dist/src/helpers/index.js +23 -0
- package/docs/AFNORPDPPAApi.md +108 -0
- package/docs/APIError.md +25 -0
- package/docs/Beneficiaire.md +31 -0
- package/docs/BoundingBoxSchema.md +33 -0
- package/docs/CadreDeFacturation.md +3 -1
- package/docs/ChampVerifieSchema.md +37 -0
- package/docs/ChorusProApi.md +54 -69
- package/docs/CodeCadreFacturation.md +1 -0
- package/docs/DimensionPageSchema.md +23 -0
- package/docs/DirectionFlux.md +11 -0
- package/docs/ErrorLevel.md +10 -0
- package/docs/ErrorSource.md +22 -0
- package/docs/FactureEntrante.md +57 -0
- package/docs/FactureFacturX.md +2 -0
- package/docs/FluxResume.md +35 -0
- package/docs/FormatFacture.md +13 -0
- package/docs/FournisseurEntrant.md +35 -0
- package/docs/LigneDeTVA.md +5 -1
- package/docs/NatureOperation.md +35 -0
- package/docs/Note.md +4 -4
- package/docs/NoteObligatoireSchema.md +33 -0
- package/docs/PDPCredentials.md +29 -0
- package/docs/ProfilFlux.md +13 -0
- package/docs/ReponseHealthcheckAFNOR.md +25 -0
- package/docs/ReponseRechercheFlux.md +27 -0
- package/docs/ReponseSoumissionFlux.md +33 -0
- package/docs/ReponseVerificationSucces.md +39 -0
- package/docs/RequeteRechercheFlux.md +37 -0
- package/docs/RequeteSoumissionFlux.md +31 -0
- package/docs/StatutAcquittement.md +13 -0
- package/docs/StatutChampAPI.md +17 -0
- package/docs/SyntaxeFlux.md +17 -0
- package/docs/TraitementFactureApi.md +3 -3
- package/docs/TypeDocument.md +17 -0
- package/docs/TypeFacture.md +31 -3
- package/docs/TypeFlux.md +17 -0
- package/docs/ValidationErrorDetail.md +29 -0
- package/docs/VrificationPDFXMLApi.md +335 -0
- package/models/{utilisateur.ts → apierror.ts} +12 -15
- package/models/beneficiaire.ts +34 -0
- package/models/bounding-box-schema.ts +50 -0
- package/models/cadre-de-facturation.ts +5 -1
- package/models/champ-verifie-schema.ts +54 -0
- package/models/code-cadre-facturation.ts +3 -0
- package/models/destinataire.ts +1 -1
- package/models/dimension-page-schema.ts +30 -0
- package/models/{quota-info.ts → direction-flux.ts} +10 -8
- package/models/error-level.ts +26 -0
- package/models/error-source.ts +32 -0
- package/models/facture-entrante.ts +82 -0
- package/models/facture-factur-x.ts +4 -0
- package/models/flux-resume.ts +30 -0
- package/models/format-facture.ts +30 -0
- package/models/fournisseur-entrant.ts +39 -0
- package/models/fournisseur.ts +1 -1
- package/models/index.ts +28 -13
- package/models/ligne-de-tva.ts +3 -1
- package/models/nature-operation.ts +41 -0
- package/models/{body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.ts → note-obligatoire-schema.ts} +24 -5
- package/models/note.ts +2 -2
- package/models/pdpcredentials.ts +39 -0
- package/models/profil-flux.ts +30 -0
- package/models/reponse-healthcheck-afnor.ts +34 -0
- package/models/{body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.ts → reponse-recherche-flux.ts} +21 -8
- package/models/{body-completer-facture-api-v1-chorus-pro-factures-completer-post.ts → reponse-soumission-flux.ts} +26 -10
- package/models/reponse-verification-succes.ts +68 -0
- package/models/requete-recherche-flux.ts +48 -0
- package/models/{body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.ts → requete-soumission-flux.ts} +23 -6
- package/models/statut-acquittement.ts +30 -0
- package/models/statut-champ-api.ts +32 -0
- package/models/syntaxe-flux.ts +32 -0
- package/models/type-document.ts +47 -0
- package/models/type-facture.ts +65 -3
- package/models/type-flux.ts +32 -0
- package/models/validation-error-detail.ts +44 -0
- package/package.json +2 -2
- package/src/helpers/client.ts +882 -0
- package/src/helpers/exceptions.ts +32 -0
- package/src/helpers/index.ts +6 -0
- package/tsconfig.esm.json +1 -0
- package/tsconfig.json +1 -0
- package/dist/esm/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.d.ts +0 -17
- package/dist/esm/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.d.ts +0 -20
- package/dist/esm/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.d.ts +0 -20
- package/dist/esm/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.d.ts +0 -20
- package/dist/esm/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.d.ts +0 -20
- package/dist/esm/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.d.ts +0 -20
- package/dist/esm/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.d.ts +0 -20
- package/dist/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.d.ts +0 -20
- package/dist/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.d.ts +0 -20
- package/dist/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.d.ts +0 -17
- package/dist/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.d.ts +0 -20
- package/dist/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.d.ts +0 -20
- package/dist/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.d.ts +0 -20
- package/dist/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.d.ts +0 -20
- package/dist/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.d.ts +0 -20
- package/dist/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.d.ts +0 -20
- package/dist/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.d.ts +0 -20
- package/dist/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.d.ts +0 -20
- package/docs/BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost.md +0 -24
- package/docs/BodyCompleterFactureApiV1ChorusProFacturesCompleterPost.md +0 -24
- package/docs/BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet.md +0 -22
- package/docs/BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost.md +0 -24
- package/docs/BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost.md +0 -24
- package/docs/BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost.md +0 -24
- package/docs/BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost.md +0 -24
- package/docs/BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost.md +0 -24
- package/docs/BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost.md +0 -24
- package/docs/BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost.md +0 -24
- package/docs/BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost.md +0 -24
- package/docs/QuotaInfo.md +0 -29
- package/docs/Utilisateur.md +0 -43
- package/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.ts +0 -28
- package/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.ts +0 -28
- package/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.ts +0 -28
- package/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.ts +0 -28
- package/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.ts +0 -28
- package/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.ts +0 -28
- package/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.ts +0 -28
- /package/dist/esm/models/{body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.js → apierror.js} +0 -0
- /package/dist/esm/models/{body-completer-facture-api-v1-chorus-pro-factures-completer-post.js → beneficiaire.js} +0 -0
- /package/dist/esm/models/{body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.js → bounding-box-schema.js} +0 -0
- /package/dist/esm/models/{body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.js → champ-verifie-schema.js} +0 -0
- /package/dist/esm/models/{body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.js → dimension-page-schema.js} +0 -0
- /package/dist/esm/models/{body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.js → facture-entrante.js} +0 -0
- /package/dist/esm/models/{body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.js → flux-resume.js} +0 -0
- /package/dist/esm/models/{body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.js → fournisseur-entrant.js} +0 -0
- /package/dist/esm/models/{body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.js → note-obligatoire-schema.js} +0 -0
- /package/dist/esm/models/{body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.js → pdpcredentials.js} +0 -0
- /package/dist/esm/models/{body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.js → reponse-healthcheck-afnor.js} +0 -0
- /package/dist/esm/models/{quota-info.js → reponse-recherche-flux.js} +0 -0
- /package/dist/esm/models/{utilisateur.js → reponse-soumission-flux.js} +0 -0
- /package/dist/models/{body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.js → apierror.js} +0 -0
- /package/dist/models/{body-completer-facture-api-v1-chorus-pro-factures-completer-post.js → beneficiaire.js} +0 -0
- /package/dist/models/{body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.js → bounding-box-schema.js} +0 -0
- /package/dist/models/{body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.js → champ-verifie-schema.js} +0 -0
- /package/dist/models/{body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.js → dimension-page-schema.js} +0 -0
- /package/dist/models/{body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.js → facture-entrante.js} +0 -0
- /package/dist/models/{body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.js → flux-resume.js} +0 -0
- /package/dist/models/{body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.js → fournisseur-entrant.js} +0 -0
- /package/dist/models/{body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.js → note-obligatoire-schema.js} +0 -0
- /package/dist/models/{body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.js → pdpcredentials.js} +0 -0
- /package/dist/models/{body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.js → reponse-healthcheck-afnor.js} +0 -0
- /package/dist/models/{quota-info.js → reponse-recherche-flux.js} +0 -0
- /package/dist/models/{utilisateur.js → reponse-soumission-flux.js} +0 -0
|
@@ -34,13 +34,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
34
34
|
/**
|
|
35
35
|
* 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.
|
|
36
36
|
* @summary Ajouter une pièce jointe
|
|
37
|
-
* @param {
|
|
37
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
38
38
|
* @param {*} [options] Override http request option.
|
|
39
39
|
* @throws {RequiredError}
|
|
40
40
|
*/
|
|
41
|
-
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost: (
|
|
42
|
-
// verify required parameter '
|
|
43
|
-
assertParamExists('ajouterFichierApiV1ChorusProTransversesAjouterFichierPost', '
|
|
41
|
+
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
42
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
43
|
+
assertParamExists('ajouterFichierApiV1ChorusProTransversesAjouterFichierPost', 'requestBody', requestBody);
|
|
44
44
|
const localVarPath = `/api/v1/chorus-pro/transverses/ajouter-fichier`;
|
|
45
45
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
46
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -59,7 +59,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
59
59
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
60
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
61
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
62
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
62
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
63
63
|
return {
|
|
64
64
|
url: toPathString(localVarUrlObj),
|
|
65
65
|
options: localVarRequestOptions,
|
|
@@ -68,13 +68,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
68
68
|
/**
|
|
69
69
|
* 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.
|
|
70
70
|
* @summary Compléter une facture suspendue (Fournisseur)
|
|
71
|
-
* @param {
|
|
71
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
72
72
|
* @param {*} [options] Override http request option.
|
|
73
73
|
* @throws {RequiredError}
|
|
74
74
|
*/
|
|
75
|
-
completerFactureApiV1ChorusProFacturesCompleterPost: (
|
|
76
|
-
// verify required parameter '
|
|
77
|
-
assertParamExists('completerFactureApiV1ChorusProFacturesCompleterPost', '
|
|
75
|
+
completerFactureApiV1ChorusProFacturesCompleterPost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
76
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
77
|
+
assertParamExists('completerFactureApiV1ChorusProFacturesCompleterPost', 'requestBody', requestBody);
|
|
78
78
|
const localVarPath = `/api/v1/chorus-pro/factures/completer`;
|
|
79
79
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
80
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -93,7 +93,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
94
94
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
95
95
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
96
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
96
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
97
97
|
return {
|
|
98
98
|
url: toPathString(localVarUrlObj),
|
|
99
99
|
options: localVarRequestOptions,
|
|
@@ -171,15 +171,12 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
171
171
|
* 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)
|
|
172
172
|
* @summary Lister les services d\'une structure
|
|
173
173
|
* @param {number} idStructureCpp
|
|
174
|
-
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
175
174
|
* @param {*} [options] Override http request option.
|
|
176
175
|
* @throws {RequiredError}
|
|
177
176
|
*/
|
|
178
|
-
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet: (idStructureCpp_1,
|
|
177
|
+
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet: (idStructureCpp_1, ...args_1) => __awaiter(this, [idStructureCpp_1, ...args_1], void 0, function* (idStructureCpp, options = {}) {
|
|
179
178
|
// verify required parameter 'idStructureCpp' is not null or undefined
|
|
180
179
|
assertParamExists('listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', 'idStructureCpp', idStructureCpp);
|
|
181
|
-
// verify required parameter 'bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet' is not null or undefined
|
|
182
|
-
assertParamExists('listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', 'bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet);
|
|
183
180
|
const localVarPath = `/api/v1/chorus-pro/structures/{id_structure_cpp}/services`
|
|
184
181
|
.replace(`{${"id_structure_cpp"}}`, encodeURIComponent(String(idStructureCpp)));
|
|
185
182
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -194,12 +191,10 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
194
191
|
// authentication HTTPBearer required
|
|
195
192
|
// http bearer authentication required
|
|
196
193
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
197
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
198
194
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
199
195
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
200
196
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
201
197
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
202
|
-
localVarRequestOptions.data = serializeDataIfNeeded(bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, localVarRequestOptions, configuration);
|
|
203
198
|
return {
|
|
204
199
|
url: toPathString(localVarUrlObj),
|
|
205
200
|
options: localVarRequestOptions,
|
|
@@ -242,13 +237,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
242
237
|
/**
|
|
243
238
|
* 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.
|
|
244
239
|
* @summary Rechercher factures reçues (Destinataire)
|
|
245
|
-
* @param {
|
|
240
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
246
241
|
* @param {*} [options] Override http request option.
|
|
247
242
|
* @throws {RequiredError}
|
|
248
243
|
*/
|
|
249
|
-
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost: (
|
|
250
|
-
// verify required parameter '
|
|
251
|
-
assertParamExists('rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost', '
|
|
244
|
+
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
245
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
246
|
+
assertParamExists('rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost', 'requestBody', requestBody);
|
|
252
247
|
const localVarPath = `/api/v1/chorus-pro/factures/rechercher-destinataire`;
|
|
253
248
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
254
249
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -267,7 +262,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
267
262
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
268
263
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
269
264
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
270
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
265
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
271
266
|
return {
|
|
272
267
|
url: toPathString(localVarUrlObj),
|
|
273
268
|
options: localVarRequestOptions,
|
|
@@ -276,13 +271,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
276
271
|
/**
|
|
277
272
|
* 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é
|
|
278
273
|
* @summary Rechercher factures émises (Fournisseur)
|
|
279
|
-
* @param {
|
|
274
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
280
275
|
* @param {*} [options] Override http request option.
|
|
281
276
|
* @throws {RequiredError}
|
|
282
277
|
*/
|
|
283
|
-
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost: (
|
|
284
|
-
// verify required parameter '
|
|
285
|
-
assertParamExists('rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost', '
|
|
278
|
+
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
279
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
280
|
+
assertParamExists('rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost', 'requestBody', requestBody);
|
|
286
281
|
const localVarPath = `/api/v1/chorus-pro/factures/rechercher-fournisseur`;
|
|
287
282
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
288
283
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -301,7 +296,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
301
296
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
302
297
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
303
298
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
304
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
299
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
305
300
|
return {
|
|
306
301
|
url: toPathString(localVarUrlObj),
|
|
307
302
|
options: localVarRequestOptions,
|
|
@@ -344,13 +339,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
344
339
|
/**
|
|
345
340
|
* 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.
|
|
346
341
|
* @summary Recycler une facture (Fournisseur)
|
|
347
|
-
* @param {
|
|
342
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
348
343
|
* @param {*} [options] Override http request option.
|
|
349
344
|
* @throws {RequiredError}
|
|
350
345
|
*/
|
|
351
|
-
recyclerFactureApiV1ChorusProFacturesRecyclerPost: (
|
|
352
|
-
// verify required parameter '
|
|
353
|
-
assertParamExists('recyclerFactureApiV1ChorusProFacturesRecyclerPost', '
|
|
346
|
+
recyclerFactureApiV1ChorusProFacturesRecyclerPost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
347
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
348
|
+
assertParamExists('recyclerFactureApiV1ChorusProFacturesRecyclerPost', 'requestBody', requestBody);
|
|
354
349
|
const localVarPath = `/api/v1/chorus-pro/factures/recycler`;
|
|
355
350
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
356
351
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -369,7 +364,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
369
364
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
370
365
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
371
366
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
372
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
367
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
373
368
|
return {
|
|
374
369
|
url: toPathString(localVarUrlObj),
|
|
375
370
|
options: localVarRequestOptions,
|
|
@@ -412,13 +407,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
412
407
|
/**
|
|
413
408
|
* 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.
|
|
414
409
|
* @summary Télécharger un groupe de factures
|
|
415
|
-
* @param {
|
|
410
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
416
411
|
* @param {*} [options] Override http request option.
|
|
417
412
|
* @throws {RequiredError}
|
|
418
413
|
*/
|
|
419
|
-
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost: (
|
|
420
|
-
// verify required parameter '
|
|
421
|
-
assertParamExists('telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost', '
|
|
414
|
+
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
415
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
416
|
+
assertParamExists('telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost', 'requestBody', requestBody);
|
|
422
417
|
const localVarPath = `/api/v1/chorus-pro/factures/telecharger-groupe`;
|
|
423
418
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
424
419
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -437,7 +432,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
437
432
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
438
433
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
439
434
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
440
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
435
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
441
436
|
return {
|
|
442
437
|
url: toPathString(localVarUrlObj),
|
|
443
438
|
options: localVarRequestOptions,
|
|
@@ -446,13 +441,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
446
441
|
/**
|
|
447
442
|
* 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
|
|
448
443
|
* @summary Traiter une facture reçue (Destinataire)
|
|
449
|
-
* @param {
|
|
444
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
450
445
|
* @param {*} [options] Override http request option.
|
|
451
446
|
* @throws {RequiredError}
|
|
452
447
|
*/
|
|
453
|
-
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost: (
|
|
454
|
-
// verify required parameter '
|
|
455
|
-
assertParamExists('traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost', '
|
|
448
|
+
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
449
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
450
|
+
assertParamExists('traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost', 'requestBody', requestBody);
|
|
456
451
|
const localVarPath = `/api/v1/chorus-pro/factures/traiter-facture-recue`;
|
|
457
452
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
458
453
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -471,22 +466,22 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
471
466
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
472
467
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
473
468
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
474
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
469
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
475
470
|
return {
|
|
476
471
|
url: toPathString(localVarUrlObj),
|
|
477
472
|
options: localVarRequestOptions,
|
|
478
473
|
};
|
|
479
474
|
}),
|
|
480
475
|
/**
|
|
481
|
-
*
|
|
476
|
+
*
|
|
482
477
|
* @summary Consulter une facture (Valideur)
|
|
483
|
-
* @param {
|
|
478
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
484
479
|
* @param {*} [options] Override http request option.
|
|
485
480
|
* @throws {RequiredError}
|
|
486
481
|
*/
|
|
487
|
-
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost: (
|
|
488
|
-
// verify required parameter '
|
|
489
|
-
assertParamExists('valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost', '
|
|
482
|
+
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
483
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
484
|
+
assertParamExists('valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost', 'requestBody', requestBody);
|
|
490
485
|
const localVarPath = `/api/v1/chorus-pro/factures/valideur/consulter`;
|
|
491
486
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
492
487
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -505,7 +500,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
505
500
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
506
501
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
507
502
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
508
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
503
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
509
504
|
return {
|
|
510
505
|
url: toPathString(localVarUrlObj),
|
|
511
506
|
options: localVarRequestOptions,
|
|
@@ -514,13 +509,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
514
509
|
/**
|
|
515
510
|
* 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.
|
|
516
511
|
* @summary Rechercher factures à valider (Valideur)
|
|
517
|
-
* @param {
|
|
512
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
518
513
|
* @param {*} [options] Override http request option.
|
|
519
514
|
* @throws {RequiredError}
|
|
520
515
|
*/
|
|
521
|
-
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost: (
|
|
522
|
-
// verify required parameter '
|
|
523
|
-
assertParamExists('valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost', '
|
|
516
|
+
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
517
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
518
|
+
assertParamExists('valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost', 'requestBody', requestBody);
|
|
524
519
|
const localVarPath = `/api/v1/chorus-pro/factures/valideur/rechercher`;
|
|
525
520
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
526
521
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -539,7 +534,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
539
534
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
540
535
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
541
536
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
542
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
537
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
543
538
|
return {
|
|
544
539
|
url: toPathString(localVarUrlObj),
|
|
545
540
|
options: localVarRequestOptions,
|
|
@@ -548,13 +543,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
548
543
|
/**
|
|
549
544
|
* 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)
|
|
550
545
|
* @summary Valider ou refuser une facture (Valideur)
|
|
551
|
-
* @param {
|
|
546
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
552
547
|
* @param {*} [options] Override http request option.
|
|
553
548
|
* @throws {RequiredError}
|
|
554
549
|
*/
|
|
555
|
-
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost: (
|
|
556
|
-
// verify required parameter '
|
|
557
|
-
assertParamExists('valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost', '
|
|
550
|
+
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
|
|
551
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
552
|
+
assertParamExists('valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost', 'requestBody', requestBody);
|
|
558
553
|
const localVarPath = `/api/v1/chorus-pro/factures/valideur/traiter`;
|
|
559
554
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
560
555
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -573,7 +568,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration) {
|
|
|
573
568
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
574
569
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
575
570
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
576
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
571
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
|
|
577
572
|
return {
|
|
578
573
|
url: toPathString(localVarUrlObj),
|
|
579
574
|
options: localVarRequestOptions,
|
|
@@ -590,14 +585,14 @@ export const ChorusProApiFp = function (configuration) {
|
|
|
590
585
|
/**
|
|
591
586
|
* 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.
|
|
592
587
|
* @summary Ajouter une pièce jointe
|
|
593
|
-
* @param {
|
|
588
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
594
589
|
* @param {*} [options] Override http request option.
|
|
595
590
|
* @throws {RequiredError}
|
|
596
591
|
*/
|
|
597
|
-
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
592
|
+
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options) {
|
|
598
593
|
return __awaiter(this, void 0, void 0, function* () {
|
|
599
594
|
var _a, _b, _c;
|
|
600
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
595
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options);
|
|
601
596
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
602
597
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
603
598
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -606,14 +601,14 @@ export const ChorusProApiFp = function (configuration) {
|
|
|
606
601
|
/**
|
|
607
602
|
* 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.
|
|
608
603
|
* @summary Compléter une facture suspendue (Fournisseur)
|
|
609
|
-
* @param {
|
|
604
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
610
605
|
* @param {*} [options] Override http request option.
|
|
611
606
|
* @throws {RequiredError}
|
|
612
607
|
*/
|
|
613
|
-
completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
608
|
+
completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options) {
|
|
614
609
|
return __awaiter(this, void 0, void 0, function* () {
|
|
615
610
|
var _a, _b, _c;
|
|
616
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
611
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options);
|
|
617
612
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
618
613
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.completerFactureApiV1ChorusProFacturesCompleterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
619
614
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -655,14 +650,13 @@ export const ChorusProApiFp = function (configuration) {
|
|
|
655
650
|
* 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)
|
|
656
651
|
* @summary Lister les services d\'une structure
|
|
657
652
|
* @param {number} idStructureCpp
|
|
658
|
-
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
659
653
|
* @param {*} [options] Override http request option.
|
|
660
654
|
* @throws {RequiredError}
|
|
661
655
|
*/
|
|
662
|
-
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
656
|
+
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options) {
|
|
663
657
|
return __awaiter(this, void 0, void 0, function* () {
|
|
664
658
|
var _a, _b, _c;
|
|
665
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
659
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options);
|
|
666
660
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
667
661
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
668
662
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -687,14 +681,14 @@ export const ChorusProApiFp = function (configuration) {
|
|
|
687
681
|
/**
|
|
688
682
|
* 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.
|
|
689
683
|
* @summary Rechercher factures reçues (Destinataire)
|
|
690
|
-
* @param {
|
|
684
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
691
685
|
* @param {*} [options] Override http request option.
|
|
692
686
|
* @throws {RequiredError}
|
|
693
687
|
*/
|
|
694
|
-
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
688
|
+
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options) {
|
|
695
689
|
return __awaiter(this, void 0, void 0, function* () {
|
|
696
690
|
var _a, _b, _c;
|
|
697
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
691
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options);
|
|
698
692
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
699
693
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
700
694
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -703,14 +697,14 @@ export const ChorusProApiFp = function (configuration) {
|
|
|
703
697
|
/**
|
|
704
698
|
* 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é
|
|
705
699
|
* @summary Rechercher factures émises (Fournisseur)
|
|
706
|
-
* @param {
|
|
700
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
707
701
|
* @param {*} [options] Override http request option.
|
|
708
702
|
* @throws {RequiredError}
|
|
709
703
|
*/
|
|
710
|
-
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
704
|
+
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options) {
|
|
711
705
|
return __awaiter(this, void 0, void 0, function* () {
|
|
712
706
|
var _a, _b, _c;
|
|
713
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
707
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options);
|
|
714
708
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
715
709
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
716
710
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -735,14 +729,14 @@ export const ChorusProApiFp = function (configuration) {
|
|
|
735
729
|
/**
|
|
736
730
|
* 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.
|
|
737
731
|
* @summary Recycler une facture (Fournisseur)
|
|
738
|
-
* @param {
|
|
732
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
739
733
|
* @param {*} [options] Override http request option.
|
|
740
734
|
* @throws {RequiredError}
|
|
741
735
|
*/
|
|
742
|
-
recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
736
|
+
recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options) {
|
|
743
737
|
return __awaiter(this, void 0, void 0, function* () {
|
|
744
738
|
var _a, _b, _c;
|
|
745
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
739
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options);
|
|
746
740
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
747
741
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.recyclerFactureApiV1ChorusProFacturesRecyclerPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
748
742
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -767,14 +761,14 @@ export const ChorusProApiFp = function (configuration) {
|
|
|
767
761
|
/**
|
|
768
762
|
* 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.
|
|
769
763
|
* @summary Télécharger un groupe de factures
|
|
770
|
-
* @param {
|
|
764
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
771
765
|
* @param {*} [options] Override http request option.
|
|
772
766
|
* @throws {RequiredError}
|
|
773
767
|
*/
|
|
774
|
-
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
768
|
+
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options) {
|
|
775
769
|
return __awaiter(this, void 0, void 0, function* () {
|
|
776
770
|
var _a, _b, _c;
|
|
777
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
771
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options);
|
|
778
772
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
779
773
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
780
774
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -783,30 +777,30 @@ export const ChorusProApiFp = function (configuration) {
|
|
|
783
777
|
/**
|
|
784
778
|
* 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
|
|
785
779
|
* @summary Traiter une facture reçue (Destinataire)
|
|
786
|
-
* @param {
|
|
780
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
787
781
|
* @param {*} [options] Override http request option.
|
|
788
782
|
* @throws {RequiredError}
|
|
789
783
|
*/
|
|
790
|
-
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
784
|
+
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options) {
|
|
791
785
|
return __awaiter(this, void 0, void 0, function* () {
|
|
792
786
|
var _a, _b, _c;
|
|
793
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
787
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options);
|
|
794
788
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
795
789
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
796
790
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
797
791
|
});
|
|
798
792
|
},
|
|
799
793
|
/**
|
|
800
|
-
*
|
|
794
|
+
*
|
|
801
795
|
* @summary Consulter une facture (Valideur)
|
|
802
|
-
* @param {
|
|
796
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
803
797
|
* @param {*} [options] Override http request option.
|
|
804
798
|
* @throws {RequiredError}
|
|
805
799
|
*/
|
|
806
|
-
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
800
|
+
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options) {
|
|
807
801
|
return __awaiter(this, void 0, void 0, function* () {
|
|
808
802
|
var _a, _b, _c;
|
|
809
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
803
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options);
|
|
810
804
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
811
805
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
812
806
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -815,14 +809,14 @@ export const ChorusProApiFp = function (configuration) {
|
|
|
815
809
|
/**
|
|
816
810
|
* 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.
|
|
817
811
|
* @summary Rechercher factures à valider (Valideur)
|
|
818
|
-
* @param {
|
|
812
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
819
813
|
* @param {*} [options] Override http request option.
|
|
820
814
|
* @throws {RequiredError}
|
|
821
815
|
*/
|
|
822
|
-
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
816
|
+
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options) {
|
|
823
817
|
return __awaiter(this, void 0, void 0, function* () {
|
|
824
818
|
var _a, _b, _c;
|
|
825
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
819
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options);
|
|
826
820
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
827
821
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
828
822
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -831,14 +825,14 @@ export const ChorusProApiFp = function (configuration) {
|
|
|
831
825
|
/**
|
|
832
826
|
* 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)
|
|
833
827
|
* @summary Valider ou refuser une facture (Valideur)
|
|
834
|
-
* @param {
|
|
828
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
835
829
|
* @param {*} [options] Override http request option.
|
|
836
830
|
* @throws {RequiredError}
|
|
837
831
|
*/
|
|
838
|
-
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
832
|
+
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options) {
|
|
839
833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
840
834
|
var _a, _b, _c;
|
|
841
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
835
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options);
|
|
842
836
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
843
837
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ChorusProApi.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
844
838
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -855,22 +849,22 @@ export const ChorusProApiFactory = function (configuration, basePath, axios) {
|
|
|
855
849
|
/**
|
|
856
850
|
* 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.
|
|
857
851
|
* @summary Ajouter une pièce jointe
|
|
858
|
-
* @param {
|
|
852
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
859
853
|
* @param {*} [options] Override http request option.
|
|
860
854
|
* @throws {RequiredError}
|
|
861
855
|
*/
|
|
862
|
-
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
863
|
-
return localVarFp.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
856
|
+
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options) {
|
|
857
|
+
return localVarFp.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options).then((request) => request(axios, basePath));
|
|
864
858
|
},
|
|
865
859
|
/**
|
|
866
860
|
* 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.
|
|
867
861
|
* @summary Compléter une facture suspendue (Fournisseur)
|
|
868
|
-
* @param {
|
|
862
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
869
863
|
* @param {*} [options] Override http request option.
|
|
870
864
|
* @throws {RequiredError}
|
|
871
865
|
*/
|
|
872
|
-
completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
873
|
-
return localVarFp.completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
866
|
+
completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options) {
|
|
867
|
+
return localVarFp.completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options).then((request) => request(axios, basePath));
|
|
874
868
|
},
|
|
875
869
|
/**
|
|
876
870
|
* 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.
|
|
@@ -896,12 +890,11 @@ export const ChorusProApiFactory = function (configuration, basePath, axios) {
|
|
|
896
890
|
* 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)
|
|
897
891
|
* @summary Lister les services d\'une structure
|
|
898
892
|
* @param {number} idStructureCpp
|
|
899
|
-
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
900
893
|
* @param {*} [options] Override http request option.
|
|
901
894
|
* @throws {RequiredError}
|
|
902
895
|
*/
|
|
903
|
-
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
904
|
-
return localVarFp.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
896
|
+
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options) {
|
|
897
|
+
return localVarFp.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options).then((request) => request(axios, basePath));
|
|
905
898
|
},
|
|
906
899
|
/**
|
|
907
900
|
* **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.
|
|
@@ -916,22 +909,22 @@ export const ChorusProApiFactory = function (configuration, basePath, axios) {
|
|
|
916
909
|
/**
|
|
917
910
|
* 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.
|
|
918
911
|
* @summary Rechercher factures reçues (Destinataire)
|
|
919
|
-
* @param {
|
|
912
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
920
913
|
* @param {*} [options] Override http request option.
|
|
921
914
|
* @throws {RequiredError}
|
|
922
915
|
*/
|
|
923
|
-
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
924
|
-
return localVarFp.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
916
|
+
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options) {
|
|
917
|
+
return localVarFp.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options).then((request) => request(axios, basePath));
|
|
925
918
|
},
|
|
926
919
|
/**
|
|
927
920
|
* 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é
|
|
928
921
|
* @summary Rechercher factures émises (Fournisseur)
|
|
929
|
-
* @param {
|
|
922
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
930
923
|
* @param {*} [options] Override http request option.
|
|
931
924
|
* @throws {RequiredError}
|
|
932
925
|
*/
|
|
933
|
-
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
934
|
-
return localVarFp.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
926
|
+
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options) {
|
|
927
|
+
return localVarFp.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options).then((request) => request(axios, basePath));
|
|
935
928
|
},
|
|
936
929
|
/**
|
|
937
930
|
* 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.
|
|
@@ -946,12 +939,12 @@ export const ChorusProApiFactory = function (configuration, basePath, axios) {
|
|
|
946
939
|
/**
|
|
947
940
|
* 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.
|
|
948
941
|
* @summary Recycler une facture (Fournisseur)
|
|
949
|
-
* @param {
|
|
942
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
950
943
|
* @param {*} [options] Override http request option.
|
|
951
944
|
* @throws {RequiredError}
|
|
952
945
|
*/
|
|
953
|
-
recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
954
|
-
return localVarFp.recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
946
|
+
recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options) {
|
|
947
|
+
return localVarFp.recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options).then((request) => request(axios, basePath));
|
|
955
948
|
},
|
|
956
949
|
/**
|
|
957
950
|
* 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.
|
|
@@ -966,52 +959,52 @@ export const ChorusProApiFactory = function (configuration, basePath, axios) {
|
|
|
966
959
|
/**
|
|
967
960
|
* 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.
|
|
968
961
|
* @summary Télécharger un groupe de factures
|
|
969
|
-
* @param {
|
|
962
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
970
963
|
* @param {*} [options] Override http request option.
|
|
971
964
|
* @throws {RequiredError}
|
|
972
965
|
*/
|
|
973
|
-
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
974
|
-
return localVarFp.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
966
|
+
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options) {
|
|
967
|
+
return localVarFp.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options).then((request) => request(axios, basePath));
|
|
975
968
|
},
|
|
976
969
|
/**
|
|
977
970
|
* 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
|
|
978
971
|
* @summary Traiter une facture reçue (Destinataire)
|
|
979
|
-
* @param {
|
|
972
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
980
973
|
* @param {*} [options] Override http request option.
|
|
981
974
|
* @throws {RequiredError}
|
|
982
975
|
*/
|
|
983
|
-
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
984
|
-
return localVarFp.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
976
|
+
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options) {
|
|
977
|
+
return localVarFp.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options).then((request) => request(axios, basePath));
|
|
985
978
|
},
|
|
986
979
|
/**
|
|
987
|
-
*
|
|
980
|
+
*
|
|
988
981
|
* @summary Consulter une facture (Valideur)
|
|
989
|
-
* @param {
|
|
982
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
990
983
|
* @param {*} [options] Override http request option.
|
|
991
984
|
* @throws {RequiredError}
|
|
992
985
|
*/
|
|
993
|
-
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
994
|
-
return localVarFp.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
986
|
+
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options) {
|
|
987
|
+
return localVarFp.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options).then((request) => request(axios, basePath));
|
|
995
988
|
},
|
|
996
989
|
/**
|
|
997
990
|
* 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.
|
|
998
991
|
* @summary Rechercher factures à valider (Valideur)
|
|
999
|
-
* @param {
|
|
992
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1000
993
|
* @param {*} [options] Override http request option.
|
|
1001
994
|
* @throws {RequiredError}
|
|
1002
995
|
*/
|
|
1003
|
-
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
1004
|
-
return localVarFp.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
996
|
+
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options) {
|
|
997
|
+
return localVarFp.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options).then((request) => request(axios, basePath));
|
|
1005
998
|
},
|
|
1006
999
|
/**
|
|
1007
1000
|
* 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)
|
|
1008
1001
|
* @summary Valider ou refuser une facture (Valideur)
|
|
1009
|
-
* @param {
|
|
1002
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1010
1003
|
* @param {*} [options] Override http request option.
|
|
1011
1004
|
* @throws {RequiredError}
|
|
1012
1005
|
*/
|
|
1013
|
-
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
1014
|
-
return localVarFp.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
1006
|
+
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options) {
|
|
1007
|
+
return localVarFp.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options).then((request) => request(axios, basePath));
|
|
1015
1008
|
},
|
|
1016
1009
|
};
|
|
1017
1010
|
};
|
|
@@ -1022,22 +1015,22 @@ export class ChorusProApi extends BaseAPI {
|
|
|
1022
1015
|
/**
|
|
1023
1016
|
* 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.
|
|
1024
1017
|
* @summary Ajouter une pièce jointe
|
|
1025
|
-
* @param {
|
|
1018
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1026
1019
|
* @param {*} [options] Override http request option.
|
|
1027
1020
|
* @throws {RequiredError}
|
|
1028
1021
|
*/
|
|
1029
|
-
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
1030
|
-
return ChorusProApiFp(this.configuration).ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
1022
|
+
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options) {
|
|
1023
|
+
return ChorusProApiFp(this.configuration).ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1031
1024
|
}
|
|
1032
1025
|
/**
|
|
1033
1026
|
* 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.
|
|
1034
1027
|
* @summary Compléter une facture suspendue (Fournisseur)
|
|
1035
|
-
* @param {
|
|
1028
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1036
1029
|
* @param {*} [options] Override http request option.
|
|
1037
1030
|
* @throws {RequiredError}
|
|
1038
1031
|
*/
|
|
1039
|
-
completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
1040
|
-
return ChorusProApiFp(this.configuration).completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
1032
|
+
completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options) {
|
|
1033
|
+
return ChorusProApiFp(this.configuration).completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1041
1034
|
}
|
|
1042
1035
|
/**
|
|
1043
1036
|
* 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.
|
|
@@ -1063,12 +1056,11 @@ export class ChorusProApi extends BaseAPI {
|
|
|
1063
1056
|
* 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)
|
|
1064
1057
|
* @summary Lister les services d\'une structure
|
|
1065
1058
|
* @param {number} idStructureCpp
|
|
1066
|
-
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
1067
1059
|
* @param {*} [options] Override http request option.
|
|
1068
1060
|
* @throws {RequiredError}
|
|
1069
1061
|
*/
|
|
1070
|
-
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
1071
|
-
return ChorusProApiFp(this.configuration).listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
1062
|
+
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options) {
|
|
1063
|
+
return ChorusProApiFp(this.configuration).listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options).then((request) => request(this.axios, this.basePath));
|
|
1072
1064
|
}
|
|
1073
1065
|
/**
|
|
1074
1066
|
* **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.
|
|
@@ -1083,22 +1075,22 @@ export class ChorusProApi extends BaseAPI {
|
|
|
1083
1075
|
/**
|
|
1084
1076
|
* 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.
|
|
1085
1077
|
* @summary Rechercher factures reçues (Destinataire)
|
|
1086
|
-
* @param {
|
|
1078
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1087
1079
|
* @param {*} [options] Override http request option.
|
|
1088
1080
|
* @throws {RequiredError}
|
|
1089
1081
|
*/
|
|
1090
|
-
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
1091
|
-
return ChorusProApiFp(this.configuration).rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
1082
|
+
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options) {
|
|
1083
|
+
return ChorusProApiFp(this.configuration).rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1092
1084
|
}
|
|
1093
1085
|
/**
|
|
1094
1086
|
* 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é
|
|
1095
1087
|
* @summary Rechercher factures émises (Fournisseur)
|
|
1096
|
-
* @param {
|
|
1088
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1097
1089
|
* @param {*} [options] Override http request option.
|
|
1098
1090
|
* @throws {RequiredError}
|
|
1099
1091
|
*/
|
|
1100
|
-
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
1101
|
-
return ChorusProApiFp(this.configuration).rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
1092
|
+
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options) {
|
|
1093
|
+
return ChorusProApiFp(this.configuration).rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1102
1094
|
}
|
|
1103
1095
|
/**
|
|
1104
1096
|
* 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.
|
|
@@ -1113,12 +1105,12 @@ export class ChorusProApi extends BaseAPI {
|
|
|
1113
1105
|
/**
|
|
1114
1106
|
* 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.
|
|
1115
1107
|
* @summary Recycler une facture (Fournisseur)
|
|
1116
|
-
* @param {
|
|
1108
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1117
1109
|
* @param {*} [options] Override http request option.
|
|
1118
1110
|
* @throws {RequiredError}
|
|
1119
1111
|
*/
|
|
1120
|
-
recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
1121
|
-
return ChorusProApiFp(this.configuration).recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
1112
|
+
recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options) {
|
|
1113
|
+
return ChorusProApiFp(this.configuration).recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1122
1114
|
}
|
|
1123
1115
|
/**
|
|
1124
1116
|
* 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.
|
|
@@ -1133,51 +1125,51 @@ export class ChorusProApi extends BaseAPI {
|
|
|
1133
1125
|
/**
|
|
1134
1126
|
* 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.
|
|
1135
1127
|
* @summary Télécharger un groupe de factures
|
|
1136
|
-
* @param {
|
|
1128
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1137
1129
|
* @param {*} [options] Override http request option.
|
|
1138
1130
|
* @throws {RequiredError}
|
|
1139
1131
|
*/
|
|
1140
|
-
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
1141
|
-
return ChorusProApiFp(this.configuration).telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
1132
|
+
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options) {
|
|
1133
|
+
return ChorusProApiFp(this.configuration).telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1142
1134
|
}
|
|
1143
1135
|
/**
|
|
1144
1136
|
* 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
|
|
1145
1137
|
* @summary Traiter une facture reçue (Destinataire)
|
|
1146
|
-
* @param {
|
|
1138
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1147
1139
|
* @param {*} [options] Override http request option.
|
|
1148
1140
|
* @throws {RequiredError}
|
|
1149
1141
|
*/
|
|
1150
|
-
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
1151
|
-
return ChorusProApiFp(this.configuration).traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
1142
|
+
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options) {
|
|
1143
|
+
return ChorusProApiFp(this.configuration).traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1152
1144
|
}
|
|
1153
1145
|
/**
|
|
1154
|
-
*
|
|
1146
|
+
*
|
|
1155
1147
|
* @summary Consulter une facture (Valideur)
|
|
1156
|
-
* @param {
|
|
1148
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1157
1149
|
* @param {*} [options] Override http request option.
|
|
1158
1150
|
* @throws {RequiredError}
|
|
1159
1151
|
*/
|
|
1160
|
-
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
1161
|
-
return ChorusProApiFp(this.configuration).valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
1152
|
+
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options) {
|
|
1153
|
+
return ChorusProApiFp(this.configuration).valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1162
1154
|
}
|
|
1163
1155
|
/**
|
|
1164
1156
|
* 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.
|
|
1165
1157
|
* @summary Rechercher factures à valider (Valideur)
|
|
1166
|
-
* @param {
|
|
1158
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1167
1159
|
* @param {*} [options] Override http request option.
|
|
1168
1160
|
* @throws {RequiredError}
|
|
1169
1161
|
*/
|
|
1170
|
-
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
1171
|
-
return ChorusProApiFp(this.configuration).valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
1162
|
+
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options) {
|
|
1163
|
+
return ChorusProApiFp(this.configuration).valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1172
1164
|
}
|
|
1173
1165
|
/**
|
|
1174
1166
|
* 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)
|
|
1175
1167
|
* @summary Valider ou refuser une facture (Valideur)
|
|
1176
|
-
* @param {
|
|
1168
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1177
1169
|
* @param {*} [options] Override http request option.
|
|
1178
1170
|
* @throws {RequiredError}
|
|
1179
1171
|
*/
|
|
1180
|
-
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
1181
|
-
return ChorusProApiFp(this.configuration).valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
1172
|
+
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options) {
|
|
1173
|
+
return ChorusProApiFp(this.configuration).valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1182
1174
|
}
|
|
1183
1175
|
}
|