@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
package/api/chorus-pro-api.ts
CHANGED
|
@@ -22,28 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
25
|
-
import type { BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost } from '../models';
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
import type { BodyCompleterFactureApiV1ChorusProFacturesCompleterPost } from '../models';
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
import type { BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet } from '../models';
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
import type { BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost } from '../models';
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
import type { BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost } from '../models';
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
import type { BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost } from '../models';
|
|
36
|
-
// @ts-ignore
|
|
37
|
-
import type { BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost } from '../models';
|
|
38
|
-
// @ts-ignore
|
|
39
|
-
import type { BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost } from '../models';
|
|
40
|
-
// @ts-ignore
|
|
41
|
-
import type { BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost } from '../models';
|
|
42
|
-
// @ts-ignore
|
|
43
|
-
import type { BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost } from '../models';
|
|
44
|
-
// @ts-ignore
|
|
45
|
-
import type { BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost } from '../models';
|
|
46
|
-
// @ts-ignore
|
|
47
25
|
import type { ConsulterFactureRequest } from '../models';
|
|
48
26
|
// @ts-ignore
|
|
49
27
|
import type { ConsulterFactureResponse } from '../models';
|
|
@@ -75,13 +53,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
75
53
|
/**
|
|
76
54
|
* Ajoute une pièce jointe au compte utilisateur courant. **Taille max** : 10 Mo par fichier **Payload exemple** : ```json { \"pieceJointeFichier\": \"JVBERi0xLjQKJeLjz9MKNSAwIG9iago8P...\", \"pieceJointeNom\": \"bon_commande.pdf\", \"pieceJointeTypeMime\": \"application/pdf\", \"pieceJointeExtension\": \"PDF\" } ``` **Retour** : L\'ID de la pièce jointe (`pieceJointeIdFichier`) à utiliser ensuite dans `/factures/completer`. **Extensions acceptées** : PDF, JPG, PNG, ZIP, XML, etc.
|
|
77
55
|
* @summary Ajouter une pièce jointe
|
|
78
|
-
* @param {
|
|
56
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
79
57
|
* @param {*} [options] Override http request option.
|
|
80
58
|
* @throws {RequiredError}
|
|
81
59
|
*/
|
|
82
|
-
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost: async (
|
|
83
|
-
// verify required parameter '
|
|
84
|
-
assertParamExists('ajouterFichierApiV1ChorusProTransversesAjouterFichierPost', '
|
|
60
|
+
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost: async (requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
61
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
62
|
+
assertParamExists('ajouterFichierApiV1ChorusProTransversesAjouterFichierPost', 'requestBody', requestBody)
|
|
85
63
|
const localVarPath = `/api/v1/chorus-pro/transverses/ajouter-fichier`;
|
|
86
64
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
87
65
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -104,7 +82,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
104
82
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
105
83
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
106
84
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
107
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
85
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
108
86
|
|
|
109
87
|
return {
|
|
110
88
|
url: toPathString(localVarUrlObj),
|
|
@@ -114,13 +92,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
114
92
|
/**
|
|
115
93
|
* 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.
|
|
116
94
|
* @summary Compléter une facture suspendue (Fournisseur)
|
|
117
|
-
* @param {
|
|
95
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
118
96
|
* @param {*} [options] Override http request option.
|
|
119
97
|
* @throws {RequiredError}
|
|
120
98
|
*/
|
|
121
|
-
completerFactureApiV1ChorusProFacturesCompleterPost: async (
|
|
122
|
-
// verify required parameter '
|
|
123
|
-
assertParamExists('completerFactureApiV1ChorusProFacturesCompleterPost', '
|
|
99
|
+
completerFactureApiV1ChorusProFacturesCompleterPost: async (requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
100
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
101
|
+
assertParamExists('completerFactureApiV1ChorusProFacturesCompleterPost', 'requestBody', requestBody)
|
|
124
102
|
const localVarPath = `/api/v1/chorus-pro/factures/completer`;
|
|
125
103
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
126
104
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -143,7 +121,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
143
121
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
144
122
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
123
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
146
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
124
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
147
125
|
|
|
148
126
|
return {
|
|
149
127
|
url: toPathString(localVarUrlObj),
|
|
@@ -232,15 +210,12 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
232
210
|
* 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)
|
|
233
211
|
* @summary Lister les services d\'une structure
|
|
234
212
|
* @param {number} idStructureCpp
|
|
235
|
-
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
236
213
|
* @param {*} [options] Override http request option.
|
|
237
214
|
* @throws {RequiredError}
|
|
238
215
|
*/
|
|
239
|
-
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet: async (idStructureCpp: number,
|
|
216
|
+
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet: async (idStructureCpp: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
240
217
|
// verify required parameter 'idStructureCpp' is not null or undefined
|
|
241
218
|
assertParamExists('listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', 'idStructureCpp', idStructureCpp)
|
|
242
|
-
// verify required parameter 'bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet' is not null or undefined
|
|
243
|
-
assertParamExists('listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', 'bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet', bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet)
|
|
244
219
|
const localVarPath = `/api/v1/chorus-pro/structures/{id_structure_cpp}/services`
|
|
245
220
|
.replace(`{${"id_structure_cpp"}}`, encodeURIComponent(String(idStructureCpp)));
|
|
246
221
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -258,13 +233,11 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
258
233
|
// http bearer authentication required
|
|
259
234
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
260
235
|
|
|
261
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
262
236
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
263
237
|
|
|
264
238
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
265
239
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
266
240
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
267
|
-
localVarRequestOptions.data = serializeDataIfNeeded(bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet, localVarRequestOptions, configuration)
|
|
268
241
|
|
|
269
242
|
return {
|
|
270
243
|
url: toPathString(localVarUrlObj),
|
|
@@ -313,13 +286,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
313
286
|
/**
|
|
314
287
|
* 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.
|
|
315
288
|
* @summary Rechercher factures reçues (Destinataire)
|
|
316
|
-
* @param {
|
|
289
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
317
290
|
* @param {*} [options] Override http request option.
|
|
318
291
|
* @throws {RequiredError}
|
|
319
292
|
*/
|
|
320
|
-
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost: async (
|
|
321
|
-
// verify required parameter '
|
|
322
|
-
assertParamExists('rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost', '
|
|
293
|
+
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost: async (requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
294
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
295
|
+
assertParamExists('rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost', 'requestBody', requestBody)
|
|
323
296
|
const localVarPath = `/api/v1/chorus-pro/factures/rechercher-destinataire`;
|
|
324
297
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
325
298
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -342,7 +315,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
342
315
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
343
316
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
344
317
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
345
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
318
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
346
319
|
|
|
347
320
|
return {
|
|
348
321
|
url: toPathString(localVarUrlObj),
|
|
@@ -352,13 +325,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
352
325
|
/**
|
|
353
326
|
* 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é
|
|
354
327
|
* @summary Rechercher factures émises (Fournisseur)
|
|
355
|
-
* @param {
|
|
328
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
356
329
|
* @param {*} [options] Override http request option.
|
|
357
330
|
* @throws {RequiredError}
|
|
358
331
|
*/
|
|
359
|
-
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost: async (
|
|
360
|
-
// verify required parameter '
|
|
361
|
-
assertParamExists('rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost', '
|
|
332
|
+
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost: async (requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
333
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
334
|
+
assertParamExists('rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost', 'requestBody', requestBody)
|
|
362
335
|
const localVarPath = `/api/v1/chorus-pro/factures/rechercher-fournisseur`;
|
|
363
336
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
364
337
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -381,7 +354,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
381
354
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
382
355
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
383
356
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
384
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
357
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
385
358
|
|
|
386
359
|
return {
|
|
387
360
|
url: toPathString(localVarUrlObj),
|
|
@@ -430,13 +403,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
430
403
|
/**
|
|
431
404
|
* 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.
|
|
432
405
|
* @summary Recycler une facture (Fournisseur)
|
|
433
|
-
* @param {
|
|
406
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
434
407
|
* @param {*} [options] Override http request option.
|
|
435
408
|
* @throws {RequiredError}
|
|
436
409
|
*/
|
|
437
|
-
recyclerFactureApiV1ChorusProFacturesRecyclerPost: async (
|
|
438
|
-
// verify required parameter '
|
|
439
|
-
assertParamExists('recyclerFactureApiV1ChorusProFacturesRecyclerPost', '
|
|
410
|
+
recyclerFactureApiV1ChorusProFacturesRecyclerPost: async (requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
411
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
412
|
+
assertParamExists('recyclerFactureApiV1ChorusProFacturesRecyclerPost', 'requestBody', requestBody)
|
|
440
413
|
const localVarPath = `/api/v1/chorus-pro/factures/recycler`;
|
|
441
414
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
442
415
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -459,7 +432,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
459
432
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
460
433
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
461
434
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
462
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
435
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
463
436
|
|
|
464
437
|
return {
|
|
465
438
|
url: toPathString(localVarUrlObj),
|
|
@@ -508,13 +481,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
508
481
|
/**
|
|
509
482
|
* 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.
|
|
510
483
|
* @summary Télécharger un groupe de factures
|
|
511
|
-
* @param {
|
|
484
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
512
485
|
* @param {*} [options] Override http request option.
|
|
513
486
|
* @throws {RequiredError}
|
|
514
487
|
*/
|
|
515
|
-
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost: async (
|
|
516
|
-
// verify required parameter '
|
|
517
|
-
assertParamExists('telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost', '
|
|
488
|
+
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost: async (requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
489
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
490
|
+
assertParamExists('telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost', 'requestBody', requestBody)
|
|
518
491
|
const localVarPath = `/api/v1/chorus-pro/factures/telecharger-groupe`;
|
|
519
492
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
520
493
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -537,7 +510,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
537
510
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
538
511
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
539
512
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
540
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
513
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
541
514
|
|
|
542
515
|
return {
|
|
543
516
|
url: toPathString(localVarUrlObj),
|
|
@@ -547,13 +520,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
547
520
|
/**
|
|
548
521
|
* 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
|
|
549
522
|
* @summary Traiter une facture reçue (Destinataire)
|
|
550
|
-
* @param {
|
|
523
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
551
524
|
* @param {*} [options] Override http request option.
|
|
552
525
|
* @throws {RequiredError}
|
|
553
526
|
*/
|
|
554
|
-
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost: async (
|
|
555
|
-
// verify required parameter '
|
|
556
|
-
assertParamExists('traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost', '
|
|
527
|
+
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost: async (requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
528
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
529
|
+
assertParamExists('traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost', 'requestBody', requestBody)
|
|
557
530
|
const localVarPath = `/api/v1/chorus-pro/factures/traiter-facture-recue`;
|
|
558
531
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
559
532
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -576,7 +549,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
576
549
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
577
550
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
578
551
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
579
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
552
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
580
553
|
|
|
581
554
|
return {
|
|
582
555
|
url: toPathString(localVarUrlObj),
|
|
@@ -584,15 +557,15 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
584
557
|
};
|
|
585
558
|
},
|
|
586
559
|
/**
|
|
587
|
-
*
|
|
560
|
+
*
|
|
588
561
|
* @summary Consulter une facture (Valideur)
|
|
589
|
-
* @param {
|
|
562
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
590
563
|
* @param {*} [options] Override http request option.
|
|
591
564
|
* @throws {RequiredError}
|
|
592
565
|
*/
|
|
593
|
-
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost: async (
|
|
594
|
-
// verify required parameter '
|
|
595
|
-
assertParamExists('valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost', '
|
|
566
|
+
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost: async (requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
567
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
568
|
+
assertParamExists('valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost', 'requestBody', requestBody)
|
|
596
569
|
const localVarPath = `/api/v1/chorus-pro/factures/valideur/consulter`;
|
|
597
570
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
598
571
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -615,7 +588,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
615
588
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
616
589
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
617
590
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
618
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
591
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
619
592
|
|
|
620
593
|
return {
|
|
621
594
|
url: toPathString(localVarUrlObj),
|
|
@@ -625,13 +598,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
625
598
|
/**
|
|
626
599
|
* 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.
|
|
627
600
|
* @summary Rechercher factures à valider (Valideur)
|
|
628
|
-
* @param {
|
|
601
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
629
602
|
* @param {*} [options] Override http request option.
|
|
630
603
|
* @throws {RequiredError}
|
|
631
604
|
*/
|
|
632
|
-
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost: async (
|
|
633
|
-
// verify required parameter '
|
|
634
|
-
assertParamExists('valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost', '
|
|
605
|
+
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost: async (requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
606
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
607
|
+
assertParamExists('valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost', 'requestBody', requestBody)
|
|
635
608
|
const localVarPath = `/api/v1/chorus-pro/factures/valideur/rechercher`;
|
|
636
609
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
637
610
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -654,7 +627,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
654
627
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
655
628
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
656
629
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
657
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
630
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
658
631
|
|
|
659
632
|
return {
|
|
660
633
|
url: toPathString(localVarUrlObj),
|
|
@@ -664,13 +637,13 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
664
637
|
/**
|
|
665
638
|
* 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)
|
|
666
639
|
* @summary Valider ou refuser une facture (Valideur)
|
|
667
|
-
* @param {
|
|
640
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
668
641
|
* @param {*} [options] Override http request option.
|
|
669
642
|
* @throws {RequiredError}
|
|
670
643
|
*/
|
|
671
|
-
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost: async (
|
|
672
|
-
// verify required parameter '
|
|
673
|
-
assertParamExists('valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost', '
|
|
644
|
+
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost: async (requestBody: { [key: string]: any; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
645
|
+
// verify required parameter 'requestBody' is not null or undefined
|
|
646
|
+
assertParamExists('valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost', 'requestBody', requestBody)
|
|
674
647
|
const localVarPath = `/api/v1/chorus-pro/factures/valideur/traiter`;
|
|
675
648
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
676
649
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -693,7 +666,7 @@ export const ChorusProApiAxiosParamCreator = function (configuration?: Configura
|
|
|
693
666
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
694
667
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
695
668
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
696
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
669
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
|
|
697
670
|
|
|
698
671
|
return {
|
|
699
672
|
url: toPathString(localVarUrlObj),
|
|
@@ -712,12 +685,12 @@ export const ChorusProApiFp = function(configuration?: Configuration) {
|
|
|
712
685
|
/**
|
|
713
686
|
* 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.
|
|
714
687
|
* @summary Ajouter une pièce jointe
|
|
715
|
-
* @param {
|
|
688
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
716
689
|
* @param {*} [options] Override http request option.
|
|
717
690
|
* @throws {RequiredError}
|
|
718
691
|
*/
|
|
719
|
-
async ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
720
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
692
|
+
async ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
693
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options);
|
|
721
694
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
722
695
|
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost']?.[localVarOperationServerIndex]?.url;
|
|
723
696
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -725,12 +698,12 @@ export const ChorusProApiFp = function(configuration?: Configuration) {
|
|
|
725
698
|
/**
|
|
726
699
|
* 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.
|
|
727
700
|
* @summary Compléter une facture suspendue (Fournisseur)
|
|
728
|
-
* @param {
|
|
701
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
729
702
|
* @param {*} [options] Override http request option.
|
|
730
703
|
* @throws {RequiredError}
|
|
731
704
|
*/
|
|
732
|
-
async completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
733
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
705
|
+
async completerFactureApiV1ChorusProFacturesCompleterPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
706
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options);
|
|
734
707
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
735
708
|
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.completerFactureApiV1ChorusProFacturesCompleterPost']?.[localVarOperationServerIndex]?.url;
|
|
736
709
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -765,12 +738,11 @@ export const ChorusProApiFp = function(configuration?: Configuration) {
|
|
|
765
738
|
* 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)
|
|
766
739
|
* @summary Lister les services d\'une structure
|
|
767
740
|
* @param {number} idStructureCpp
|
|
768
|
-
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
769
741
|
* @param {*} [options] Override http request option.
|
|
770
742
|
* @throws {RequiredError}
|
|
771
743
|
*/
|
|
772
|
-
async listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp: number,
|
|
773
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
744
|
+
async listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RechercherServicesResponse>> {
|
|
745
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options);
|
|
774
746
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
775
747
|
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet']?.[localVarOperationServerIndex]?.url;
|
|
776
748
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -791,12 +763,12 @@ export const ChorusProApiFp = function(configuration?: Configuration) {
|
|
|
791
763
|
/**
|
|
792
764
|
* 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.
|
|
793
765
|
* @summary Rechercher factures reçues (Destinataire)
|
|
794
|
-
* @param {
|
|
766
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
795
767
|
* @param {*} [options] Override http request option.
|
|
796
768
|
* @throws {RequiredError}
|
|
797
769
|
*/
|
|
798
|
-
async rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
799
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
770
|
+
async rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
771
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options);
|
|
800
772
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
801
773
|
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost']?.[localVarOperationServerIndex]?.url;
|
|
802
774
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -804,12 +776,12 @@ export const ChorusProApiFp = function(configuration?: Configuration) {
|
|
|
804
776
|
/**
|
|
805
777
|
* 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é
|
|
806
778
|
* @summary Rechercher factures émises (Fournisseur)
|
|
807
|
-
* @param {
|
|
779
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
808
780
|
* @param {*} [options] Override http request option.
|
|
809
781
|
* @throws {RequiredError}
|
|
810
782
|
*/
|
|
811
|
-
async rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
812
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
783
|
+
async rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
784
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options);
|
|
813
785
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
814
786
|
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost']?.[localVarOperationServerIndex]?.url;
|
|
815
787
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -830,12 +802,12 @@ export const ChorusProApiFp = function(configuration?: Configuration) {
|
|
|
830
802
|
/**
|
|
831
803
|
* 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.
|
|
832
804
|
* @summary Recycler une facture (Fournisseur)
|
|
833
|
-
* @param {
|
|
805
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
834
806
|
* @param {*} [options] Override http request option.
|
|
835
807
|
* @throws {RequiredError}
|
|
836
808
|
*/
|
|
837
|
-
async recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
838
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
809
|
+
async recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
810
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options);
|
|
839
811
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
840
812
|
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.recyclerFactureApiV1ChorusProFacturesRecyclerPost']?.[localVarOperationServerIndex]?.url;
|
|
841
813
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -856,12 +828,12 @@ export const ChorusProApiFp = function(configuration?: Configuration) {
|
|
|
856
828
|
/**
|
|
857
829
|
* 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.
|
|
858
830
|
* @summary Télécharger un groupe de factures
|
|
859
|
-
* @param {
|
|
831
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
860
832
|
* @param {*} [options] Override http request option.
|
|
861
833
|
* @throws {RequiredError}
|
|
862
834
|
*/
|
|
863
|
-
async telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
864
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
835
|
+
async telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
836
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options);
|
|
865
837
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
866
838
|
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost']?.[localVarOperationServerIndex]?.url;
|
|
867
839
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -869,25 +841,25 @@ export const ChorusProApiFp = function(configuration?: Configuration) {
|
|
|
869
841
|
/**
|
|
870
842
|
* 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
|
|
871
843
|
* @summary Traiter une facture reçue (Destinataire)
|
|
872
|
-
* @param {
|
|
844
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
873
845
|
* @param {*} [options] Override http request option.
|
|
874
846
|
* @throws {RequiredError}
|
|
875
847
|
*/
|
|
876
|
-
async traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
877
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
848
|
+
async traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
849
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options);
|
|
878
850
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
879
851
|
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost']?.[localVarOperationServerIndex]?.url;
|
|
880
852
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
881
853
|
},
|
|
882
854
|
/**
|
|
883
|
-
*
|
|
855
|
+
*
|
|
884
856
|
* @summary Consulter une facture (Valideur)
|
|
885
|
-
* @param {
|
|
857
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
886
858
|
* @param {*} [options] Override http request option.
|
|
887
859
|
* @throws {RequiredError}
|
|
888
860
|
*/
|
|
889
|
-
async valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
890
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
861
|
+
async valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
862
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options);
|
|
891
863
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
892
864
|
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost']?.[localVarOperationServerIndex]?.url;
|
|
893
865
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -895,12 +867,12 @@ export const ChorusProApiFp = function(configuration?: Configuration) {
|
|
|
895
867
|
/**
|
|
896
868
|
* 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.
|
|
897
869
|
* @summary Rechercher factures à valider (Valideur)
|
|
898
|
-
* @param {
|
|
870
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
899
871
|
* @param {*} [options] Override http request option.
|
|
900
872
|
* @throws {RequiredError}
|
|
901
873
|
*/
|
|
902
|
-
async valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
903
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
874
|
+
async valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
875
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options);
|
|
904
876
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
905
877
|
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost']?.[localVarOperationServerIndex]?.url;
|
|
906
878
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -908,12 +880,12 @@ export const ChorusProApiFp = function(configuration?: Configuration) {
|
|
|
908
880
|
/**
|
|
909
881
|
* 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)
|
|
910
882
|
* @summary Valider ou refuser une facture (Valideur)
|
|
911
|
-
* @param {
|
|
883
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
912
884
|
* @param {*} [options] Override http request option.
|
|
913
885
|
* @throws {RequiredError}
|
|
914
886
|
*/
|
|
915
|
-
async valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
916
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
887
|
+
async valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
888
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options);
|
|
917
889
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
918
890
|
const localVarOperationServerBasePath = operationServerMap['ChorusProApi.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost']?.[localVarOperationServerIndex]?.url;
|
|
919
891
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -930,22 +902,22 @@ export const ChorusProApiFactory = function (configuration?: Configuration, base
|
|
|
930
902
|
/**
|
|
931
903
|
* 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.
|
|
932
904
|
* @summary Ajouter une pièce jointe
|
|
933
|
-
* @param {
|
|
905
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
934
906
|
* @param {*} [options] Override http request option.
|
|
935
907
|
* @throws {RequiredError}
|
|
936
908
|
*/
|
|
937
|
-
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
938
|
-
return localVarFp.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
909
|
+
ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
910
|
+
return localVarFp.ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options).then((request) => request(axios, basePath));
|
|
939
911
|
},
|
|
940
912
|
/**
|
|
941
913
|
* 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.
|
|
942
914
|
* @summary Compléter une facture suspendue (Fournisseur)
|
|
943
|
-
* @param {
|
|
915
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
944
916
|
* @param {*} [options] Override http request option.
|
|
945
917
|
* @throws {RequiredError}
|
|
946
918
|
*/
|
|
947
|
-
completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
948
|
-
return localVarFp.completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
919
|
+
completerFactureApiV1ChorusProFacturesCompleterPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
920
|
+
return localVarFp.completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options).then((request) => request(axios, basePath));
|
|
949
921
|
},
|
|
950
922
|
/**
|
|
951
923
|
* 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.
|
|
@@ -971,12 +943,11 @@ export const ChorusProApiFactory = function (configuration?: Configuration, base
|
|
|
971
943
|
* 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)
|
|
972
944
|
* @summary Lister les services d\'une structure
|
|
973
945
|
* @param {number} idStructureCpp
|
|
974
|
-
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
975
946
|
* @param {*} [options] Override http request option.
|
|
976
947
|
* @throws {RequiredError}
|
|
977
948
|
*/
|
|
978
|
-
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp: number,
|
|
979
|
-
return localVarFp.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
949
|
+
listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp: number, options?: RawAxiosRequestConfig): AxiosPromise<RechercherServicesResponse> {
|
|
950
|
+
return localVarFp.listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options).then((request) => request(axios, basePath));
|
|
980
951
|
},
|
|
981
952
|
/**
|
|
982
953
|
* **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.
|
|
@@ -991,22 +962,22 @@ export const ChorusProApiFactory = function (configuration?: Configuration, base
|
|
|
991
962
|
/**
|
|
992
963
|
* 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.
|
|
993
964
|
* @summary Rechercher factures reçues (Destinataire)
|
|
994
|
-
* @param {
|
|
965
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
995
966
|
* @param {*} [options] Override http request option.
|
|
996
967
|
* @throws {RequiredError}
|
|
997
968
|
*/
|
|
998
|
-
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
999
|
-
return localVarFp.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
969
|
+
rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
970
|
+
return localVarFp.rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options).then((request) => request(axios, basePath));
|
|
1000
971
|
},
|
|
1001
972
|
/**
|
|
1002
973
|
* 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é
|
|
1003
974
|
* @summary Rechercher factures émises (Fournisseur)
|
|
1004
|
-
* @param {
|
|
975
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1005
976
|
* @param {*} [options] Override http request option.
|
|
1006
977
|
* @throws {RequiredError}
|
|
1007
978
|
*/
|
|
1008
|
-
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
1009
|
-
return localVarFp.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
979
|
+
rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
980
|
+
return localVarFp.rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options).then((request) => request(axios, basePath));
|
|
1010
981
|
},
|
|
1011
982
|
/**
|
|
1012
983
|
* 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.
|
|
@@ -1021,12 +992,12 @@ export const ChorusProApiFactory = function (configuration?: Configuration, base
|
|
|
1021
992
|
/**
|
|
1022
993
|
* 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.
|
|
1023
994
|
* @summary Recycler une facture (Fournisseur)
|
|
1024
|
-
* @param {
|
|
995
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1025
996
|
* @param {*} [options] Override http request option.
|
|
1026
997
|
* @throws {RequiredError}
|
|
1027
998
|
*/
|
|
1028
|
-
recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
1029
|
-
return localVarFp.recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
999
|
+
recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
1000
|
+
return localVarFp.recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options).then((request) => request(axios, basePath));
|
|
1030
1001
|
},
|
|
1031
1002
|
/**
|
|
1032
1003
|
* 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.
|
|
@@ -1041,52 +1012,52 @@ export const ChorusProApiFactory = function (configuration?: Configuration, base
|
|
|
1041
1012
|
/**
|
|
1042
1013
|
* 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.
|
|
1043
1014
|
* @summary Télécharger un groupe de factures
|
|
1044
|
-
* @param {
|
|
1015
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1045
1016
|
* @param {*} [options] Override http request option.
|
|
1046
1017
|
* @throws {RequiredError}
|
|
1047
1018
|
*/
|
|
1048
|
-
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
1049
|
-
return localVarFp.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
1019
|
+
telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
1020
|
+
return localVarFp.telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options).then((request) => request(axios, basePath));
|
|
1050
1021
|
},
|
|
1051
1022
|
/**
|
|
1052
1023
|
* 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
|
|
1053
1024
|
* @summary Traiter une facture reçue (Destinataire)
|
|
1054
|
-
* @param {
|
|
1025
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1055
1026
|
* @param {*} [options] Override http request option.
|
|
1056
1027
|
* @throws {RequiredError}
|
|
1057
1028
|
*/
|
|
1058
|
-
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
1059
|
-
return localVarFp.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
1029
|
+
traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
1030
|
+
return localVarFp.traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options).then((request) => request(axios, basePath));
|
|
1060
1031
|
},
|
|
1061
1032
|
/**
|
|
1062
|
-
*
|
|
1033
|
+
*
|
|
1063
1034
|
* @summary Consulter une facture (Valideur)
|
|
1064
|
-
* @param {
|
|
1035
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1065
1036
|
* @param {*} [options] Override http request option.
|
|
1066
1037
|
* @throws {RequiredError}
|
|
1067
1038
|
*/
|
|
1068
|
-
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
1069
|
-
return localVarFp.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
1039
|
+
valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
1040
|
+
return localVarFp.valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options).then((request) => request(axios, basePath));
|
|
1070
1041
|
},
|
|
1071
1042
|
/**
|
|
1072
1043
|
* 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.
|
|
1073
1044
|
* @summary Rechercher factures à valider (Valideur)
|
|
1074
|
-
* @param {
|
|
1045
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1075
1046
|
* @param {*} [options] Override http request option.
|
|
1076
1047
|
* @throws {RequiredError}
|
|
1077
1048
|
*/
|
|
1078
|
-
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
1079
|
-
return localVarFp.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
1049
|
+
valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
1050
|
+
return localVarFp.valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options).then((request) => request(axios, basePath));
|
|
1080
1051
|
},
|
|
1081
1052
|
/**
|
|
1082
1053
|
* 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)
|
|
1083
1054
|
* @summary Valider ou refuser une facture (Valideur)
|
|
1084
|
-
* @param {
|
|
1055
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1085
1056
|
* @param {*} [options] Override http request option.
|
|
1086
1057
|
* @throws {RequiredError}
|
|
1087
1058
|
*/
|
|
1088
|
-
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
1089
|
-
return localVarFp.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
1059
|
+
valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
1060
|
+
return localVarFp.valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options).then((request) => request(axios, basePath));
|
|
1090
1061
|
},
|
|
1091
1062
|
};
|
|
1092
1063
|
};
|
|
@@ -1098,23 +1069,23 @@ export class ChorusProApi extends BaseAPI {
|
|
|
1098
1069
|
/**
|
|
1099
1070
|
* 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.
|
|
1100
1071
|
* @summary Ajouter une pièce jointe
|
|
1101
|
-
* @param {
|
|
1072
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1102
1073
|
* @param {*} [options] Override http request option.
|
|
1103
1074
|
* @throws {RequiredError}
|
|
1104
1075
|
*/
|
|
1105
|
-
public ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
1106
|
-
return ChorusProApiFp(this.configuration).ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(
|
|
1076
|
+
public ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig) {
|
|
1077
|
+
return ChorusProApiFp(this.configuration).ajouterFichierApiV1ChorusProTransversesAjouterFichierPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1107
1078
|
}
|
|
1108
1079
|
|
|
1109
1080
|
/**
|
|
1110
1081
|
* 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.
|
|
1111
1082
|
* @summary Compléter une facture suspendue (Fournisseur)
|
|
1112
|
-
* @param {
|
|
1083
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1113
1084
|
* @param {*} [options] Override http request option.
|
|
1114
1085
|
* @throws {RequiredError}
|
|
1115
1086
|
*/
|
|
1116
|
-
public completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
1117
|
-
return ChorusProApiFp(this.configuration).completerFactureApiV1ChorusProFacturesCompleterPost(
|
|
1087
|
+
public completerFactureApiV1ChorusProFacturesCompleterPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig) {
|
|
1088
|
+
return ChorusProApiFp(this.configuration).completerFactureApiV1ChorusProFacturesCompleterPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1118
1089
|
}
|
|
1119
1090
|
|
|
1120
1091
|
/**
|
|
@@ -1143,12 +1114,11 @@ export class ChorusProApi extends BaseAPI {
|
|
|
1143
1114
|
* 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)
|
|
1144
1115
|
* @summary Lister les services d\'une structure
|
|
1145
1116
|
* @param {number} idStructureCpp
|
|
1146
|
-
* @param {BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet} bodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet
|
|
1147
1117
|
* @param {*} [options] Override http request option.
|
|
1148
1118
|
* @throws {RequiredError}
|
|
1149
1119
|
*/
|
|
1150
|
-
public listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp: number,
|
|
1151
|
-
return ChorusProApiFp(this.configuration).listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp,
|
|
1120
|
+
public listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp: number, options?: RawAxiosRequestConfig) {
|
|
1121
|
+
return ChorusProApiFp(this.configuration).listerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet(idStructureCpp, options).then((request) => request(this.axios, this.basePath));
|
|
1152
1122
|
}
|
|
1153
1123
|
|
|
1154
1124
|
/**
|
|
@@ -1165,23 +1135,23 @@ export class ChorusProApi extends BaseAPI {
|
|
|
1165
1135
|
/**
|
|
1166
1136
|
* 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.
|
|
1167
1137
|
* @summary Rechercher factures reçues (Destinataire)
|
|
1168
|
-
* @param {
|
|
1138
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1169
1139
|
* @param {*} [options] Override http request option.
|
|
1170
1140
|
* @throws {RequiredError}
|
|
1171
1141
|
*/
|
|
1172
|
-
public rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
1173
|
-
return ChorusProApiFp(this.configuration).rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(
|
|
1142
|
+
public rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig) {
|
|
1143
|
+
return ChorusProApiFp(this.configuration).rechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1174
1144
|
}
|
|
1175
1145
|
|
|
1176
1146
|
/**
|
|
1177
1147
|
* 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é
|
|
1178
1148
|
* @summary Rechercher factures émises (Fournisseur)
|
|
1179
|
-
* @param {
|
|
1149
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1180
1150
|
* @param {*} [options] Override http request option.
|
|
1181
1151
|
* @throws {RequiredError}
|
|
1182
1152
|
*/
|
|
1183
|
-
public rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
1184
|
-
return ChorusProApiFp(this.configuration).rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(
|
|
1153
|
+
public rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig) {
|
|
1154
|
+
return ChorusProApiFp(this.configuration).rechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1185
1155
|
}
|
|
1186
1156
|
|
|
1187
1157
|
/**
|
|
@@ -1198,12 +1168,12 @@ export class ChorusProApi extends BaseAPI {
|
|
|
1198
1168
|
/**
|
|
1199
1169
|
* 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.
|
|
1200
1170
|
* @summary Recycler une facture (Fournisseur)
|
|
1201
|
-
* @param {
|
|
1171
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1202
1172
|
* @param {*} [options] Override http request option.
|
|
1203
1173
|
* @throws {RequiredError}
|
|
1204
1174
|
*/
|
|
1205
|
-
public recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
1206
|
-
return ChorusProApiFp(this.configuration).recyclerFactureApiV1ChorusProFacturesRecyclerPost(
|
|
1175
|
+
public recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig) {
|
|
1176
|
+
return ChorusProApiFp(this.configuration).recyclerFactureApiV1ChorusProFacturesRecyclerPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1207
1177
|
}
|
|
1208
1178
|
|
|
1209
1179
|
/**
|
|
@@ -1220,56 +1190,56 @@ export class ChorusProApi extends BaseAPI {
|
|
|
1220
1190
|
/**
|
|
1221
1191
|
* 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.
|
|
1222
1192
|
* @summary Télécharger un groupe de factures
|
|
1223
|
-
* @param {
|
|
1193
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1224
1194
|
* @param {*} [options] Override http request option.
|
|
1225
1195
|
* @throws {RequiredError}
|
|
1226
1196
|
*/
|
|
1227
|
-
public telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
1228
|
-
return ChorusProApiFp(this.configuration).telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(
|
|
1197
|
+
public telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig) {
|
|
1198
|
+
return ChorusProApiFp(this.configuration).telechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1229
1199
|
}
|
|
1230
1200
|
|
|
1231
1201
|
/**
|
|
1232
1202
|
* 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
|
|
1233
1203
|
* @summary Traiter une facture reçue (Destinataire)
|
|
1234
|
-
* @param {
|
|
1204
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1235
1205
|
* @param {*} [options] Override http request option.
|
|
1236
1206
|
* @throws {RequiredError}
|
|
1237
1207
|
*/
|
|
1238
|
-
public traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
1239
|
-
return ChorusProApiFp(this.configuration).traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(
|
|
1208
|
+
public traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig) {
|
|
1209
|
+
return ChorusProApiFp(this.configuration).traiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1240
1210
|
}
|
|
1241
1211
|
|
|
1242
1212
|
/**
|
|
1243
|
-
*
|
|
1213
|
+
*
|
|
1244
1214
|
* @summary Consulter une facture (Valideur)
|
|
1245
|
-
* @param {
|
|
1215
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1246
1216
|
* @param {*} [options] Override http request option.
|
|
1247
1217
|
* @throws {RequiredError}
|
|
1248
1218
|
*/
|
|
1249
|
-
public valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
1250
|
-
return ChorusProApiFp(this.configuration).valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(
|
|
1219
|
+
public valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig) {
|
|
1220
|
+
return ChorusProApiFp(this.configuration).valideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1251
1221
|
}
|
|
1252
1222
|
|
|
1253
1223
|
/**
|
|
1254
1224
|
* 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.
|
|
1255
1225
|
* @summary Rechercher factures à valider (Valideur)
|
|
1256
|
-
* @param {
|
|
1226
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1257
1227
|
* @param {*} [options] Override http request option.
|
|
1258
1228
|
* @throws {RequiredError}
|
|
1259
1229
|
*/
|
|
1260
|
-
public valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
1261
|
-
return ChorusProApiFp(this.configuration).valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(
|
|
1230
|
+
public valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig) {
|
|
1231
|
+
return ChorusProApiFp(this.configuration).valideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1262
1232
|
}
|
|
1263
1233
|
|
|
1264
1234
|
/**
|
|
1265
1235
|
* 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)
|
|
1266
1236
|
* @summary Valider ou refuser une facture (Valideur)
|
|
1267
|
-
* @param {
|
|
1237
|
+
* @param {{ [key: string]: any; }} requestBody
|
|
1268
1238
|
* @param {*} [options] Override http request option.
|
|
1269
1239
|
* @throws {RequiredError}
|
|
1270
1240
|
*/
|
|
1271
|
-
public valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
1272
|
-
return ChorusProApiFp(this.configuration).valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(
|
|
1241
|
+
public valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody: { [key: string]: any; }, options?: RawAxiosRequestConfig) {
|
|
1242
|
+
return ChorusProApiFp(this.configuration).valideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost(requestBody, options).then((request) => request(this.axios, this.basePath));
|
|
1273
1243
|
}
|
|
1274
1244
|
}
|
|
1275
1245
|
|