factpulse 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +28 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +74 -0
- data/LICENSE +21 -0
- data/README.md +161 -0
- data/Rakefile +10 -0
- data/docs/AFNORPDPPAApi.md +69 -0
- data/docs/AFNORPDPPADirectoryServiceApi.md +196 -0
- data/docs/AFNORPDPPAFlowServiceApi.md +258 -0
- data/docs/AdresseElectronique.md +20 -0
- data/docs/AdressePostale.md +26 -0
- data/docs/BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost.md +22 -0
- data/docs/BodyCompleterFactureApiV1ChorusProFacturesCompleterPost.md +22 -0
- data/docs/BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet.md +20 -0
- data/docs/BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost.md +22 -0
- data/docs/BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost.md +22 -0
- data/docs/BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost.md +22 -0
- data/docs/BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost.md +22 -0
- data/docs/BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost.md +22 -0
- data/docs/BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost.md +22 -0
- data/docs/BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost.md +22 -0
- data/docs/BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost.md +22 -0
- data/docs/CadreDeFacturation.md +22 -0
- data/docs/CategorieTVA.md +15 -0
- data/docs/CertificateInfoResponse.md +40 -0
- data/docs/ChorusProApi.md +1129 -0
- data/docs/ChorusProCredentials.md +26 -0
- data/docs/CodeCadreFacturation.md +15 -0
- data/docs/CodeRaisonReduction.md +15 -0
- data/docs/ConsulterFactureRequest.md +20 -0
- data/docs/ConsulterFactureResponse.md +34 -0
- data/docs/ConsulterStructureRequest.md +22 -0
- data/docs/ConsulterStructureResponse.md +34 -0
- data/docs/CredentialsAFNOR.md +22 -0
- data/docs/CredentialsChorusPro.md +26 -0
- data/docs/Destinataire.md +24 -0
- data/docs/Destination.md +79 -0
- data/docs/DestinationAFNOR.md +24 -0
- data/docs/DestinationChorusPro.md +20 -0
- data/docs/DirectionFlux.md +15 -0
- data/docs/DonneesFactureSimplifiees.md +34 -0
- data/docs/FactureEnrichieInfoInput.md +32 -0
- data/docs/FactureEnrichieInfoOutput.md +32 -0
- data/docs/FactureFacturX.md +44 -0
- data/docs/FluxResume.md +32 -0
- data/docs/FormatSortie.md +15 -0
- data/docs/Fournisseur.md +34 -0
- data/docs/GenerateCertificateRequest.md +38 -0
- data/docs/GenerateCertificateResponse.md +32 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/InformationSignatureAPI.md +28 -0
- data/docs/LigneDePoste.md +46 -0
- data/docs/LigneDePosteMontantRemiseHt.md +15 -0
- data/docs/LigneDePosteMontantTotalLigneHt.md +15 -0
- data/docs/LigneDePosteTauxTvaManuel.md +15 -0
- data/docs/LigneDeTVA.md +26 -0
- data/docs/ModeDepot.md +15 -0
- data/docs/ModePaiement.md +15 -0
- data/docs/MontantHtTotal.md +15 -0
- data/docs/MontantTotal.md +30 -0
- data/docs/MontantTotalAcompte.md +15 -0
- data/docs/MontantTotalMontantRemiseGlobaleTtc.md +15 -0
- data/docs/MontantTtcTotal.md +15 -0
- data/docs/MontantTva.md +15 -0
- data/docs/Montantapayer.md +15 -0
- data/docs/Montantbaseht.md +15 -0
- data/docs/Montanthttotal.md +15 -0
- data/docs/Montantttctotal.md +15 -0
- data/docs/Montanttva.md +15 -0
- data/docs/Montanttva1.md +15 -0
- data/docs/Montantunitaireht.md +15 -0
- data/docs/ObtenirIdChorusProRequest.md +22 -0
- data/docs/ObtenirIdChorusProResponse.md +24 -0
- data/docs/OptionsProcessing.md +24 -0
- data/docs/PDFFacturXInfo.md +22 -0
- data/docs/PDPCredentials.md +24 -0
- data/docs/ParametresSignature.md +34 -0
- data/docs/ParametresStructure.md +22 -0
- data/docs/PieceJointeComplementaire.md +26 -0
- data/docs/ProcessingEndpointsUnifisApi.md +147 -0
- data/docs/ProfilAPI.md +15 -0
- data/docs/ProfilFlux.md +15 -0
- data/docs/Quantite.md +15 -0
- data/docs/QuotaInfo.md +26 -0
- data/docs/RechercherServicesResponse.md +24 -0
- data/docs/RechercherStructureRequest.md +26 -0
- data/docs/RechercherStructureResponse.md +24 -0
- data/docs/References.md +32 -0
- data/docs/ReponseHealthcheckAFNOR.md +22 -0
- data/docs/ReponseRechercheFlux.md +24 -0
- data/docs/ReponseSoumissionFlux.md +30 -0
- data/docs/ReponseTache.md +18 -0
- data/docs/ReponseValidationErreur.md +18 -0
- data/docs/ReponseValidationSucces.md +18 -0
- data/docs/RequeteRechercheFlux.md +34 -0
- data/docs/RequeteSoumissionFlux.md +28 -0
- data/docs/ResultatAFNOR.md +26 -0
- data/docs/ResultatChorusPro.md +22 -0
- data/docs/ResultatValidationPDFAPI.md +62 -0
- data/docs/SantApi.md +69 -0
- data/docs/SchemeID.md +15 -0
- data/docs/ServiceStructure.md +24 -0
- data/docs/SignatureInfo.md +22 -0
- data/docs/SignatureLectroniqueApi.md +315 -0
- data/docs/SoumettreFactureCompleteRequest.md +26 -0
- data/docs/SoumettreFactureCompleteResponse.md +34 -0
- data/docs/SoumettreFactureRequest.md +46 -0
- data/docs/SoumettreFactureResponse.md +24 -0
- data/docs/StatutAcquittement.md +15 -0
- data/docs/StatutFacture.md +22 -0
- data/docs/StatutTache.md +22 -0
- data/docs/StructureInfo.md +26 -0
- data/docs/SyntaxeFlux.md +15 -0
- data/docs/Tauxmanuel.md +15 -0
- data/docs/TraitementFactureApi.md +831 -0
- data/docs/TypeFacture.md +15 -0
- data/docs/TypeFlux.md +15 -0
- data/docs/TypeTVA.md +15 -0
- data/docs/Unite.md +15 -0
- data/docs/Utilisateur.md +40 -0
- data/docs/UtilisateurApi.md +74 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/factpulse.gemspec +39 -0
- data/git_push.sh +57 -0
- data/lib/factpulse/api/afnorpdppa_api.rb +79 -0
- data/lib/factpulse/api/afnorpdppa_directory_service_api.rb +199 -0
- data/lib/factpulse/api/afnorpdppa_flow_service_api.rb +256 -0
- data/lib/factpulse/api/chorus_pro_api.rb +1116 -0
- data/lib/factpulse/api/processing_endpoints_unifis_api.rb +158 -0
- data/lib/factpulse/api/sant_api.rb +79 -0
- data/lib/factpulse/api/signature_lectronique_api.rb +333 -0
- data/lib/factpulse/api/traitement_facture_api.rb +835 -0
- data/lib/factpulse/api/utilisateur_api.rb +79 -0
- data/lib/factpulse/api_client.rb +393 -0
- data/lib/factpulse/api_error.rb +58 -0
- data/lib/factpulse/api_model_base.rb +88 -0
- data/lib/factpulse/configuration.rb +308 -0
- data/lib/factpulse/models/adresse_electronique.rb +196 -0
- data/lib/factpulse/models/adresse_postale.rb +189 -0
- data/lib/factpulse/models/body_ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post.rb +202 -0
- data/lib/factpulse/models/body_completer_facture_api_v1_chorus_pro_factures_completer_post.rb +202 -0
- data/lib/factpulse/models/body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get.rb +174 -0
- data/lib/factpulse/models/body_rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post.rb +202 -0
- data/lib/factpulse/models/body_rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post.rb +202 -0
- data/lib/factpulse/models/body_recycler_facture_api_v1_chorus_pro_factures_recycler_post.rb +202 -0
- data/lib/factpulse/models/body_telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post.rb +202 -0
- data/lib/factpulse/models/body_traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post.rb +202 -0
- data/lib/factpulse/models/body_valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post.rb +202 -0
- data/lib/factpulse/models/body_valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post.rb +202 -0
- data/lib/factpulse/models/body_valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post.rb +202 -0
- data/lib/factpulse/models/cadre_de_facturation.rb +207 -0
- data/lib/factpulse/models/categorie_tva.rb +47 -0
- data/lib/factpulse/models/certificate_info_response.rb +446 -0
- data/lib/factpulse/models/chorus_pro_credentials.rb +259 -0
- data/lib/factpulse/models/code_cadre_facturation.rb +42 -0
- data/lib/factpulse/models/code_raison_reduction.rb +45 -0
- data/lib/factpulse/models/consulter_facture_request.rb +176 -0
- data/lib/factpulse/models/consulter_facture_response.rb +261 -0
- data/lib/factpulse/models/consulter_structure_request.rb +188 -0
- data/lib/factpulse/models/consulter_structure_response.rb +261 -0
- data/lib/factpulse/models/credentials_afnor.rb +169 -0
- data/lib/factpulse/models/credentials_chorus_pro.rb +191 -0
- data/lib/factpulse/models/destinataire.rb +195 -0
- data/lib/factpulse/models/destination.rb +56 -0
- data/lib/factpulse/models/destination_afnor.rb +228 -0
- data/lib/factpulse/models/destination_chorus_pro.rb +194 -0
- data/lib/factpulse/models/direction_flux.rb +40 -0
- data/lib/factpulse/models/donnees_facture_simplifiees.rb +342 -0
- data/lib/factpulse/models/facture_enrichie_info_input.rb +315 -0
- data/lib/factpulse/models/facture_enrichie_info_output.rb +348 -0
- data/lib/factpulse/models/facture_factur_x.rb +432 -0
- data/lib/factpulse/models/flux_resume.rb +251 -0
- data/lib/factpulse/models/format_sortie.rb +40 -0
- data/lib/factpulse/models/fournisseur.rb +261 -0
- data/lib/factpulse/models/generate_certificate_request.rb +323 -0
- data/lib/factpulse/models/generate_certificate_response.rb +254 -0
- data/lib/factpulse/models/http_validation_error.rb +149 -0
- data/lib/factpulse/models/information_signature_api.rb +216 -0
- data/lib/factpulse/models/ligne_de_poste.rb +391 -0
- data/lib/factpulse/models/ligne_de_poste_montant_remise_ht.rb +104 -0
- data/lib/factpulse/models/ligne_de_poste_montant_total_ligne_ht.rb +104 -0
- data/lib/factpulse/models/ligne_de_poste_taux_tva_manuel.rb +104 -0
- data/lib/factpulse/models/ligne_de_tva.rb +242 -0
- data/lib/factpulse/models/mode_depot.rb +41 -0
- data/lib/factpulse/models/mode_paiement.rb +44 -0
- data/lib/factpulse/models/montant_ht_total.rb +103 -0
- data/lib/factpulse/models/montant_total.rb +273 -0
- data/lib/factpulse/models/montant_total_acompte.rb +104 -0
- data/lib/factpulse/models/montant_total_montant_remise_globale_ttc.rb +104 -0
- data/lib/factpulse/models/montant_ttc_total.rb +103 -0
- data/lib/factpulse/models/montant_tva.rb +103 -0
- data/lib/factpulse/models/montantapayer.rb +104 -0
- data/lib/factpulse/models/montantbaseht.rb +104 -0
- data/lib/factpulse/models/montanthttotal.rb +104 -0
- data/lib/factpulse/models/montantttctotal.rb +104 -0
- data/lib/factpulse/models/montanttva.rb +104 -0
- data/lib/factpulse/models/montanttva1.rb +104 -0
- data/lib/factpulse/models/montantunitaireht.rb +104 -0
- data/lib/factpulse/models/obtenir_id_chorus_pro_request.rb +188 -0
- data/lib/factpulse/models/obtenir_id_chorus_pro_response.rb +230 -0
- data/lib/factpulse/models/options_processing.rb +221 -0
- data/lib/factpulse/models/parametres_signature.rb +235 -0
- data/lib/factpulse/models/parametres_structure.rb +175 -0
- data/lib/factpulse/models/pdf_factur_x_info.rb +205 -0
- data/lib/factpulse/models/pdp_credentials.rb +247 -0
- data/lib/factpulse/models/piece_jointe_complementaire.rb +269 -0
- data/lib/factpulse/models/profil_api.rb +42 -0
- data/lib/factpulse/models/profil_flux.rb +41 -0
- data/lib/factpulse/models/quantite.rb +104 -0
- data/lib/factpulse/models/quota_info.rb +269 -0
- data/lib/factpulse/models/rechercher_services_response.rb +214 -0
- data/lib/factpulse/models/rechercher_structure_request.rb +191 -0
- data/lib/factpulse/models/rechercher_structure_response.rb +216 -0
- data/lib/factpulse/models/references.rb +290 -0
- data/lib/factpulse/models/reponse_healthcheck_afnor.rb +220 -0
- data/lib/factpulse/models/reponse_recherche_flux.rb +249 -0
- data/lib/factpulse/models/reponse_soumission_flux.rb +294 -0
- data/lib/factpulse/models/reponse_tache.rb +165 -0
- data/lib/factpulse/models/reponse_validation_erreur.rb +167 -0
- data/lib/factpulse/models/reponse_validation_succes.rb +165 -0
- data/lib/factpulse/models/requete_recherche_flux.rb +306 -0
- data/lib/factpulse/models/requete_soumission_flux.rb +238 -0
- data/lib/factpulse/models/resultat_afnor.rb +240 -0
- data/lib/factpulse/models/resultat_chorus_pro.rb +186 -0
- data/lib/factpulse/models/resultat_validation_pdfapi.rb +523 -0
- data/lib/factpulse/models/scheme_id.rb +43 -0
- data/lib/factpulse/models/service_structure.rb +247 -0
- data/lib/factpulse/models/signature_info.rb +186 -0
- data/lib/factpulse/models/soumettre_facture_complete_request.rb +239 -0
- data/lib/factpulse/models/soumettre_facture_complete_response.rb +355 -0
- data/lib/factpulse/models/soumettre_facture_request.rb +391 -0
- data/lib/factpulse/models/soumettre_facture_response.rb +213 -0
- data/lib/factpulse/models/statut_acquittement.rb +41 -0
- data/lib/factpulse/models/statut_facture.rb +203 -0
- data/lib/factpulse/models/statut_tache.rb +201 -0
- data/lib/factpulse/models/structure_info.rb +274 -0
- data/lib/factpulse/models/syntaxe_flux.rb +43 -0
- data/lib/factpulse/models/tauxmanuel.rb +104 -0
- data/lib/factpulse/models/type_facture.rb +40 -0
- data/lib/factpulse/models/type_flux.rb +43 -0
- data/lib/factpulse/models/type_tva.rb +42 -0
- data/lib/factpulse/models/unite.rb +44 -0
- data/lib/factpulse/models/utilisateur.rb +328 -0
- data/lib/factpulse/models/validation_error.rb +218 -0
- data/lib/factpulse/models/validation_error_loc_inner.rb +103 -0
- data/lib/factpulse/version.rb +15 -0
- data/lib/factpulse.rb +157 -0
- metadata +382 -0
|
@@ -0,0 +1,1129 @@
|
|
|
1
|
+
# FactPulse::ChorusProApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post**](ChorusProApi.md#ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post) | **POST** /api/v1/chorus-pro/transverses/ajouter-fichier | Ajouter une pièce jointe |
|
|
8
|
+
| [**completer_facture_api_v1_chorus_pro_factures_completer_post**](ChorusProApi.md#completer_facture_api_v1_chorus_pro_factures_completer_post) | **POST** /api/v1/chorus-pro/factures/completer | Compléter une facture suspendue (Fournisseur) |
|
|
9
|
+
| [**consulter_facture_api_v1_chorus_pro_factures_consulter_post**](ChorusProApi.md#consulter_facture_api_v1_chorus_pro_factures_consulter_post) | **POST** /api/v1/chorus-pro/factures/consulter | Consulter le statut d'une facture |
|
|
10
|
+
| [**consulter_structure_api_v1_chorus_pro_structures_consulter_post**](ChorusProApi.md#consulter_structure_api_v1_chorus_pro_structures_consulter_post) | **POST** /api/v1/chorus-pro/structures/consulter | Consulter les détails d'une structure |
|
|
11
|
+
| [**lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get**](ChorusProApi.md#lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get) | **GET** /api/v1/chorus-pro/structures/{id_structure_cpp}/services | Lister les services d'une structure |
|
|
12
|
+
| [**obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post**](ChorusProApi.md#obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post) | **POST** /api/v1/chorus-pro/structures/obtenir-id-depuis-siret | Utilitaire : Obtenir l'ID Chorus Pro depuis un SIRET |
|
|
13
|
+
| [**rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post**](ChorusProApi.md#rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post) | **POST** /api/v1/chorus-pro/factures/rechercher-destinataire | Rechercher factures reçues (Destinataire) |
|
|
14
|
+
| [**rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post**](ChorusProApi.md#rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post) | **POST** /api/v1/chorus-pro/factures/rechercher-fournisseur | Rechercher factures émises (Fournisseur) |
|
|
15
|
+
| [**rechercher_structures_api_v1_chorus_pro_structures_rechercher_post**](ChorusProApi.md#rechercher_structures_api_v1_chorus_pro_structures_rechercher_post) | **POST** /api/v1/chorus-pro/structures/rechercher | Rechercher des structures Chorus Pro |
|
|
16
|
+
| [**recycler_facture_api_v1_chorus_pro_factures_recycler_post**](ChorusProApi.md#recycler_facture_api_v1_chorus_pro_factures_recycler_post) | **POST** /api/v1/chorus-pro/factures/recycler | Recycler une facture (Fournisseur) |
|
|
17
|
+
| [**soumettre_facture_api_v1_chorus_pro_factures_soumettre_post**](ChorusProApi.md#soumettre_facture_api_v1_chorus_pro_factures_soumettre_post) | **POST** /api/v1/chorus-pro/factures/soumettre | Soumettre une facture à Chorus Pro |
|
|
18
|
+
| [**telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post**](ChorusProApi.md#telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post) | **POST** /api/v1/chorus-pro/factures/telecharger-groupe | Télécharger un groupe de factures |
|
|
19
|
+
| [**traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post**](ChorusProApi.md#traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post) | **POST** /api/v1/chorus-pro/factures/traiter-facture-recue | Traiter une facture reçue (Destinataire) |
|
|
20
|
+
| [**valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post**](ChorusProApi.md#valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post) | **POST** /api/v1/chorus-pro/factures/valideur/consulter | Consulter une facture (Valideur) |
|
|
21
|
+
| [**valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post**](ChorusProApi.md#valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post) | **POST** /api/v1/chorus-pro/factures/valideur/rechercher | Rechercher factures à valider (Valideur) |
|
|
22
|
+
| [**valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post**](ChorusProApi.md#valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post) | **POST** /api/v1/chorus-pro/factures/valideur/traiter | Valider ou refuser une facture (Valideur) |
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post
|
|
26
|
+
|
|
27
|
+
> Object ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post(body_ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post)
|
|
28
|
+
|
|
29
|
+
Ajouter une pièce jointe
|
|
30
|
+
|
|
31
|
+
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.
|
|
32
|
+
|
|
33
|
+
### Examples
|
|
34
|
+
|
|
35
|
+
```ruby
|
|
36
|
+
require 'time'
|
|
37
|
+
require 'factpulse'
|
|
38
|
+
# setup authorization
|
|
39
|
+
FactPulse.configure do |config|
|
|
40
|
+
# Configure Bearer authorization: HTTPBearer
|
|
41
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
45
|
+
body_ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post = FactPulse::BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost.new({payload: { key: 3.56}, user_info: FactPulse::Utilisateur.new({id: 37, username: 'username_example', email: 'email_example', is_active: false})}) # BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost |
|
|
46
|
+
|
|
47
|
+
begin
|
|
48
|
+
# Ajouter une pièce jointe
|
|
49
|
+
result = api_instance.ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post(body_ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post)
|
|
50
|
+
p result
|
|
51
|
+
rescue FactPulse::ApiError => e
|
|
52
|
+
puts "Error when calling ChorusProApi->ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post: #{e}"
|
|
53
|
+
end
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
#### Using the ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post_with_http_info variant
|
|
57
|
+
|
|
58
|
+
This returns an Array which contains the response data, status code and headers.
|
|
59
|
+
|
|
60
|
+
> <Array(Object, Integer, Hash)> ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post_with_http_info(body_ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post)
|
|
61
|
+
|
|
62
|
+
```ruby
|
|
63
|
+
begin
|
|
64
|
+
# Ajouter une pièce jointe
|
|
65
|
+
data, status_code, headers = api_instance.ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post_with_http_info(body_ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post)
|
|
66
|
+
p status_code # => 2xx
|
|
67
|
+
p headers # => { ... }
|
|
68
|
+
p data # => Object
|
|
69
|
+
rescue FactPulse::ApiError => e
|
|
70
|
+
puts "Error when calling ChorusProApi->ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post_with_http_info: #{e}"
|
|
71
|
+
end
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Parameters
|
|
75
|
+
|
|
76
|
+
| Name | Type | Description | Notes |
|
|
77
|
+
| ---- | ---- | ----------- | ----- |
|
|
78
|
+
| **body_ajouter_fichier_api_v1_chorus_pro_transverses_ajouter_fichier_post** | [**BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost**](BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost.md) | | |
|
|
79
|
+
|
|
80
|
+
### Return type
|
|
81
|
+
|
|
82
|
+
**Object**
|
|
83
|
+
|
|
84
|
+
### Authorization
|
|
85
|
+
|
|
86
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
87
|
+
|
|
88
|
+
### HTTP request headers
|
|
89
|
+
|
|
90
|
+
- **Content-Type**: application/json
|
|
91
|
+
- **Accept**: application/json
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## completer_facture_api_v1_chorus_pro_factures_completer_post
|
|
95
|
+
|
|
96
|
+
> Object completer_facture_api_v1_chorus_pro_factures_completer_post(body_completer_facture_api_v1_chorus_pro_factures_completer_post)
|
|
97
|
+
|
|
98
|
+
Compléter une facture suspendue (Fournisseur)
|
|
99
|
+
|
|
100
|
+
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.
|
|
101
|
+
|
|
102
|
+
### Examples
|
|
103
|
+
|
|
104
|
+
```ruby
|
|
105
|
+
require 'time'
|
|
106
|
+
require 'factpulse'
|
|
107
|
+
# setup authorization
|
|
108
|
+
FactPulse.configure do |config|
|
|
109
|
+
# Configure Bearer authorization: HTTPBearer
|
|
110
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
114
|
+
body_completer_facture_api_v1_chorus_pro_factures_completer_post = FactPulse::BodyCompleterFactureApiV1ChorusProFacturesCompleterPost.new({payload: { key: 3.56}, user_info: FactPulse::Utilisateur.new({id: 37, username: 'username_example', email: 'email_example', is_active: false})}) # BodyCompleterFactureApiV1ChorusProFacturesCompleterPost |
|
|
115
|
+
|
|
116
|
+
begin
|
|
117
|
+
# Compléter une facture suspendue (Fournisseur)
|
|
118
|
+
result = api_instance.completer_facture_api_v1_chorus_pro_factures_completer_post(body_completer_facture_api_v1_chorus_pro_factures_completer_post)
|
|
119
|
+
p result
|
|
120
|
+
rescue FactPulse::ApiError => e
|
|
121
|
+
puts "Error when calling ChorusProApi->completer_facture_api_v1_chorus_pro_factures_completer_post: #{e}"
|
|
122
|
+
end
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
#### Using the completer_facture_api_v1_chorus_pro_factures_completer_post_with_http_info variant
|
|
126
|
+
|
|
127
|
+
This returns an Array which contains the response data, status code and headers.
|
|
128
|
+
|
|
129
|
+
> <Array(Object, Integer, Hash)> completer_facture_api_v1_chorus_pro_factures_completer_post_with_http_info(body_completer_facture_api_v1_chorus_pro_factures_completer_post)
|
|
130
|
+
|
|
131
|
+
```ruby
|
|
132
|
+
begin
|
|
133
|
+
# Compléter une facture suspendue (Fournisseur)
|
|
134
|
+
data, status_code, headers = api_instance.completer_facture_api_v1_chorus_pro_factures_completer_post_with_http_info(body_completer_facture_api_v1_chorus_pro_factures_completer_post)
|
|
135
|
+
p status_code # => 2xx
|
|
136
|
+
p headers # => { ... }
|
|
137
|
+
p data # => Object
|
|
138
|
+
rescue FactPulse::ApiError => e
|
|
139
|
+
puts "Error when calling ChorusProApi->completer_facture_api_v1_chorus_pro_factures_completer_post_with_http_info: #{e}"
|
|
140
|
+
end
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Parameters
|
|
144
|
+
|
|
145
|
+
| Name | Type | Description | Notes |
|
|
146
|
+
| ---- | ---- | ----------- | ----- |
|
|
147
|
+
| **body_completer_facture_api_v1_chorus_pro_factures_completer_post** | [**BodyCompleterFactureApiV1ChorusProFacturesCompleterPost**](BodyCompleterFactureApiV1ChorusProFacturesCompleterPost.md) | | |
|
|
148
|
+
|
|
149
|
+
### Return type
|
|
150
|
+
|
|
151
|
+
**Object**
|
|
152
|
+
|
|
153
|
+
### Authorization
|
|
154
|
+
|
|
155
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
156
|
+
|
|
157
|
+
### HTTP request headers
|
|
158
|
+
|
|
159
|
+
- **Content-Type**: application/json
|
|
160
|
+
- **Accept**: application/json
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
## consulter_facture_api_v1_chorus_pro_factures_consulter_post
|
|
164
|
+
|
|
165
|
+
> <ConsulterFactureResponse> consulter_facture_api_v1_chorus_pro_factures_consulter_post(consulter_facture_request)
|
|
166
|
+
|
|
167
|
+
Consulter le statut d'une facture
|
|
168
|
+
|
|
169
|
+
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.
|
|
170
|
+
|
|
171
|
+
### Examples
|
|
172
|
+
|
|
173
|
+
```ruby
|
|
174
|
+
require 'time'
|
|
175
|
+
require 'factpulse'
|
|
176
|
+
# setup authorization
|
|
177
|
+
FactPulse.configure do |config|
|
|
178
|
+
# Configure Bearer authorization: HTTPBearer
|
|
179
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
183
|
+
consulter_facture_request = FactPulse::ConsulterFactureRequest.new({identifiant_facture_cpp: 37}) # ConsulterFactureRequest |
|
|
184
|
+
|
|
185
|
+
begin
|
|
186
|
+
# Consulter le statut d'une facture
|
|
187
|
+
result = api_instance.consulter_facture_api_v1_chorus_pro_factures_consulter_post(consulter_facture_request)
|
|
188
|
+
p result
|
|
189
|
+
rescue FactPulse::ApiError => e
|
|
190
|
+
puts "Error when calling ChorusProApi->consulter_facture_api_v1_chorus_pro_factures_consulter_post: #{e}"
|
|
191
|
+
end
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
#### Using the consulter_facture_api_v1_chorus_pro_factures_consulter_post_with_http_info variant
|
|
195
|
+
|
|
196
|
+
This returns an Array which contains the response data, status code and headers.
|
|
197
|
+
|
|
198
|
+
> <Array(<ConsulterFactureResponse>, Integer, Hash)> consulter_facture_api_v1_chorus_pro_factures_consulter_post_with_http_info(consulter_facture_request)
|
|
199
|
+
|
|
200
|
+
```ruby
|
|
201
|
+
begin
|
|
202
|
+
# Consulter le statut d'une facture
|
|
203
|
+
data, status_code, headers = api_instance.consulter_facture_api_v1_chorus_pro_factures_consulter_post_with_http_info(consulter_facture_request)
|
|
204
|
+
p status_code # => 2xx
|
|
205
|
+
p headers # => { ... }
|
|
206
|
+
p data # => <ConsulterFactureResponse>
|
|
207
|
+
rescue FactPulse::ApiError => e
|
|
208
|
+
puts "Error when calling ChorusProApi->consulter_facture_api_v1_chorus_pro_factures_consulter_post_with_http_info: #{e}"
|
|
209
|
+
end
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Parameters
|
|
213
|
+
|
|
214
|
+
| Name | Type | Description | Notes |
|
|
215
|
+
| ---- | ---- | ----------- | ----- |
|
|
216
|
+
| **consulter_facture_request** | [**ConsulterFactureRequest**](ConsulterFactureRequest.md) | | |
|
|
217
|
+
|
|
218
|
+
### Return type
|
|
219
|
+
|
|
220
|
+
[**ConsulterFactureResponse**](ConsulterFactureResponse.md)
|
|
221
|
+
|
|
222
|
+
### Authorization
|
|
223
|
+
|
|
224
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
225
|
+
|
|
226
|
+
### HTTP request headers
|
|
227
|
+
|
|
228
|
+
- **Content-Type**: application/json
|
|
229
|
+
- **Accept**: application/json
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
## consulter_structure_api_v1_chorus_pro_structures_consulter_post
|
|
233
|
+
|
|
234
|
+
> <ConsulterStructureResponse> consulter_structure_api_v1_chorus_pro_structures_consulter_post(consulter_structure_request)
|
|
235
|
+
|
|
236
|
+
Consulter les détails d'une structure
|
|
237
|
+
|
|
238
|
+
Récupère les informations détaillées d'une structure Chorus Pro. **Retour** : - Raison sociale - Numéro de TVA intracommunautaire - Email de contact - **Paramètres obligatoires** : Indique si le code service et/ou numéro d'engagement sont requis pour soumettre une facture **Étape typique** : Appelée après `rechercher-structures` pour savoir quels champs sont obligatoires avant de soumettre une facture.
|
|
239
|
+
|
|
240
|
+
### Examples
|
|
241
|
+
|
|
242
|
+
```ruby
|
|
243
|
+
require 'time'
|
|
244
|
+
require 'factpulse'
|
|
245
|
+
# setup authorization
|
|
246
|
+
FactPulse.configure do |config|
|
|
247
|
+
# Configure Bearer authorization: HTTPBearer
|
|
248
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
252
|
+
consulter_structure_request = FactPulse::ConsulterStructureRequest.new({id_structure_cpp: 37}) # ConsulterStructureRequest |
|
|
253
|
+
|
|
254
|
+
begin
|
|
255
|
+
# Consulter les détails d'une structure
|
|
256
|
+
result = api_instance.consulter_structure_api_v1_chorus_pro_structures_consulter_post(consulter_structure_request)
|
|
257
|
+
p result
|
|
258
|
+
rescue FactPulse::ApiError => e
|
|
259
|
+
puts "Error when calling ChorusProApi->consulter_structure_api_v1_chorus_pro_structures_consulter_post: #{e}"
|
|
260
|
+
end
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
#### Using the consulter_structure_api_v1_chorus_pro_structures_consulter_post_with_http_info variant
|
|
264
|
+
|
|
265
|
+
This returns an Array which contains the response data, status code and headers.
|
|
266
|
+
|
|
267
|
+
> <Array(<ConsulterStructureResponse>, Integer, Hash)> consulter_structure_api_v1_chorus_pro_structures_consulter_post_with_http_info(consulter_structure_request)
|
|
268
|
+
|
|
269
|
+
```ruby
|
|
270
|
+
begin
|
|
271
|
+
# Consulter les détails d'une structure
|
|
272
|
+
data, status_code, headers = api_instance.consulter_structure_api_v1_chorus_pro_structures_consulter_post_with_http_info(consulter_structure_request)
|
|
273
|
+
p status_code # => 2xx
|
|
274
|
+
p headers # => { ... }
|
|
275
|
+
p data # => <ConsulterStructureResponse>
|
|
276
|
+
rescue FactPulse::ApiError => e
|
|
277
|
+
puts "Error when calling ChorusProApi->consulter_structure_api_v1_chorus_pro_structures_consulter_post_with_http_info: #{e}"
|
|
278
|
+
end
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
### Parameters
|
|
282
|
+
|
|
283
|
+
| Name | Type | Description | Notes |
|
|
284
|
+
| ---- | ---- | ----------- | ----- |
|
|
285
|
+
| **consulter_structure_request** | [**ConsulterStructureRequest**](ConsulterStructureRequest.md) | | |
|
|
286
|
+
|
|
287
|
+
### Return type
|
|
288
|
+
|
|
289
|
+
[**ConsulterStructureResponse**](ConsulterStructureResponse.md)
|
|
290
|
+
|
|
291
|
+
### Authorization
|
|
292
|
+
|
|
293
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
294
|
+
|
|
295
|
+
### HTTP request headers
|
|
296
|
+
|
|
297
|
+
- **Content-Type**: application/json
|
|
298
|
+
- **Accept**: application/json
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
## lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get
|
|
302
|
+
|
|
303
|
+
> <RechercherServicesResponse> lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get(id_structure_cpp, body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get)
|
|
304
|
+
|
|
305
|
+
Lister les services d'une structure
|
|
306
|
+
|
|
307
|
+
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)
|
|
308
|
+
|
|
309
|
+
### Examples
|
|
310
|
+
|
|
311
|
+
```ruby
|
|
312
|
+
require 'time'
|
|
313
|
+
require 'factpulse'
|
|
314
|
+
# setup authorization
|
|
315
|
+
FactPulse.configure do |config|
|
|
316
|
+
# Configure Bearer authorization: HTTPBearer
|
|
317
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
321
|
+
id_structure_cpp = 56 # Integer |
|
|
322
|
+
body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get = FactPulse::BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet.new({user_info: FactPulse::Utilisateur.new({id: 37, username: 'username_example', email: 'email_example', is_active: false})}) # BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet |
|
|
323
|
+
|
|
324
|
+
begin
|
|
325
|
+
# Lister les services d'une structure
|
|
326
|
+
result = api_instance.lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get(id_structure_cpp, body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get)
|
|
327
|
+
p result
|
|
328
|
+
rescue FactPulse::ApiError => e
|
|
329
|
+
puts "Error when calling ChorusProApi->lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get: #{e}"
|
|
330
|
+
end
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
#### Using the lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get_with_http_info variant
|
|
334
|
+
|
|
335
|
+
This returns an Array which contains the response data, status code and headers.
|
|
336
|
+
|
|
337
|
+
> <Array(<RechercherServicesResponse>, Integer, Hash)> lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get_with_http_info(id_structure_cpp, body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get)
|
|
338
|
+
|
|
339
|
+
```ruby
|
|
340
|
+
begin
|
|
341
|
+
# Lister les services d'une structure
|
|
342
|
+
data, status_code, headers = api_instance.lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get_with_http_info(id_structure_cpp, body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get)
|
|
343
|
+
p status_code # => 2xx
|
|
344
|
+
p headers # => { ... }
|
|
345
|
+
p data # => <RechercherServicesResponse>
|
|
346
|
+
rescue FactPulse::ApiError => e
|
|
347
|
+
puts "Error when calling ChorusProApi->lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get_with_http_info: #{e}"
|
|
348
|
+
end
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### Parameters
|
|
352
|
+
|
|
353
|
+
| Name | Type | Description | Notes |
|
|
354
|
+
| ---- | ---- | ----------- | ----- |
|
|
355
|
+
| **id_structure_cpp** | **Integer** | | |
|
|
356
|
+
| **body_lister_services_structure_api_v1_chorus_pro_structures_id_structure_cpp_services_get** | [**BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet**](BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet.md) | | |
|
|
357
|
+
|
|
358
|
+
### Return type
|
|
359
|
+
|
|
360
|
+
[**RechercherServicesResponse**](RechercherServicesResponse.md)
|
|
361
|
+
|
|
362
|
+
### Authorization
|
|
363
|
+
|
|
364
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
365
|
+
|
|
366
|
+
### HTTP request headers
|
|
367
|
+
|
|
368
|
+
- **Content-Type**: application/json
|
|
369
|
+
- **Accept**: application/json
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
## obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post
|
|
373
|
+
|
|
374
|
+
> <ObtenirIdChorusProResponse> obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post(obtenir_id_chorus_pro_request)
|
|
375
|
+
|
|
376
|
+
Utilitaire : Obtenir l'ID Chorus Pro depuis un SIRET
|
|
377
|
+
|
|
378
|
+
**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.
|
|
379
|
+
|
|
380
|
+
### Examples
|
|
381
|
+
|
|
382
|
+
```ruby
|
|
383
|
+
require 'time'
|
|
384
|
+
require 'factpulse'
|
|
385
|
+
# setup authorization
|
|
386
|
+
FactPulse.configure do |config|
|
|
387
|
+
# Configure Bearer authorization: HTTPBearer
|
|
388
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
392
|
+
obtenir_id_chorus_pro_request = FactPulse::ObtenirIdChorusProRequest.new({siret: 'siret_example'}) # ObtenirIdChorusProRequest |
|
|
393
|
+
|
|
394
|
+
begin
|
|
395
|
+
# Utilitaire : Obtenir l'ID Chorus Pro depuis un SIRET
|
|
396
|
+
result = api_instance.obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post(obtenir_id_chorus_pro_request)
|
|
397
|
+
p result
|
|
398
|
+
rescue FactPulse::ApiError => e
|
|
399
|
+
puts "Error when calling ChorusProApi->obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post: #{e}"
|
|
400
|
+
end
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
#### Using the obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post_with_http_info variant
|
|
404
|
+
|
|
405
|
+
This returns an Array which contains the response data, status code and headers.
|
|
406
|
+
|
|
407
|
+
> <Array(<ObtenirIdChorusProResponse>, Integer, Hash)> obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post_with_http_info(obtenir_id_chorus_pro_request)
|
|
408
|
+
|
|
409
|
+
```ruby
|
|
410
|
+
begin
|
|
411
|
+
# Utilitaire : Obtenir l'ID Chorus Pro depuis un SIRET
|
|
412
|
+
data, status_code, headers = api_instance.obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post_with_http_info(obtenir_id_chorus_pro_request)
|
|
413
|
+
p status_code # => 2xx
|
|
414
|
+
p headers # => { ... }
|
|
415
|
+
p data # => <ObtenirIdChorusProResponse>
|
|
416
|
+
rescue FactPulse::ApiError => e
|
|
417
|
+
puts "Error when calling ChorusProApi->obtenir_id_chorus_pro_depuis_siret_api_v1_chorus_pro_structures_obtenir_id_depuis_siret_post_with_http_info: #{e}"
|
|
418
|
+
end
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
### Parameters
|
|
422
|
+
|
|
423
|
+
| Name | Type | Description | Notes |
|
|
424
|
+
| ---- | ---- | ----------- | ----- |
|
|
425
|
+
| **obtenir_id_chorus_pro_request** | [**ObtenirIdChorusProRequest**](ObtenirIdChorusProRequest.md) | | |
|
|
426
|
+
|
|
427
|
+
### Return type
|
|
428
|
+
|
|
429
|
+
[**ObtenirIdChorusProResponse**](ObtenirIdChorusProResponse.md)
|
|
430
|
+
|
|
431
|
+
### Authorization
|
|
432
|
+
|
|
433
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
434
|
+
|
|
435
|
+
### HTTP request headers
|
|
436
|
+
|
|
437
|
+
- **Content-Type**: application/json
|
|
438
|
+
- **Accept**: application/json
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
## rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post
|
|
442
|
+
|
|
443
|
+
> Object rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post(body_rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post)
|
|
444
|
+
|
|
445
|
+
Rechercher factures reçues (Destinataire)
|
|
446
|
+
|
|
447
|
+
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.
|
|
448
|
+
|
|
449
|
+
### Examples
|
|
450
|
+
|
|
451
|
+
```ruby
|
|
452
|
+
require 'time'
|
|
453
|
+
require 'factpulse'
|
|
454
|
+
# setup authorization
|
|
455
|
+
FactPulse.configure do |config|
|
|
456
|
+
# Configure Bearer authorization: HTTPBearer
|
|
457
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
461
|
+
body_rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post = FactPulse::BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost.new({payload: { key: 3.56}, user_info: FactPulse::Utilisateur.new({id: 37, username: 'username_example', email: 'email_example', is_active: false})}) # BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost |
|
|
462
|
+
|
|
463
|
+
begin
|
|
464
|
+
# Rechercher factures reçues (Destinataire)
|
|
465
|
+
result = api_instance.rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post(body_rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post)
|
|
466
|
+
p result
|
|
467
|
+
rescue FactPulse::ApiError => e
|
|
468
|
+
puts "Error when calling ChorusProApi->rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post: #{e}"
|
|
469
|
+
end
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
#### Using the rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post_with_http_info variant
|
|
473
|
+
|
|
474
|
+
This returns an Array which contains the response data, status code and headers.
|
|
475
|
+
|
|
476
|
+
> <Array(Object, Integer, Hash)> rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post_with_http_info(body_rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post)
|
|
477
|
+
|
|
478
|
+
```ruby
|
|
479
|
+
begin
|
|
480
|
+
# Rechercher factures reçues (Destinataire)
|
|
481
|
+
data, status_code, headers = api_instance.rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post_with_http_info(body_rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post)
|
|
482
|
+
p status_code # => 2xx
|
|
483
|
+
p headers # => { ... }
|
|
484
|
+
p data # => Object
|
|
485
|
+
rescue FactPulse::ApiError => e
|
|
486
|
+
puts "Error when calling ChorusProApi->rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post_with_http_info: #{e}"
|
|
487
|
+
end
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
### Parameters
|
|
491
|
+
|
|
492
|
+
| Name | Type | Description | Notes |
|
|
493
|
+
| ---- | ---- | ----------- | ----- |
|
|
494
|
+
| **body_rechercher_factures_destinataire_api_v1_chorus_pro_factures_rechercher_destinataire_post** | [**BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost**](BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost.md) | | |
|
|
495
|
+
|
|
496
|
+
### Return type
|
|
497
|
+
|
|
498
|
+
**Object**
|
|
499
|
+
|
|
500
|
+
### Authorization
|
|
501
|
+
|
|
502
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
503
|
+
|
|
504
|
+
### HTTP request headers
|
|
505
|
+
|
|
506
|
+
- **Content-Type**: application/json
|
|
507
|
+
- **Accept**: application/json
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
## rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post
|
|
511
|
+
|
|
512
|
+
> Object rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post(body_rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post)
|
|
513
|
+
|
|
514
|
+
Rechercher factures émises (Fournisseur)
|
|
515
|
+
|
|
516
|
+
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é
|
|
517
|
+
|
|
518
|
+
### Examples
|
|
519
|
+
|
|
520
|
+
```ruby
|
|
521
|
+
require 'time'
|
|
522
|
+
require 'factpulse'
|
|
523
|
+
# setup authorization
|
|
524
|
+
FactPulse.configure do |config|
|
|
525
|
+
# Configure Bearer authorization: HTTPBearer
|
|
526
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
530
|
+
body_rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post = FactPulse::BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost.new({payload: { key: 3.56}, user_info: FactPulse::Utilisateur.new({id: 37, username: 'username_example', email: 'email_example', is_active: false})}) # BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost |
|
|
531
|
+
|
|
532
|
+
begin
|
|
533
|
+
# Rechercher factures émises (Fournisseur)
|
|
534
|
+
result = api_instance.rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post(body_rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post)
|
|
535
|
+
p result
|
|
536
|
+
rescue FactPulse::ApiError => e
|
|
537
|
+
puts "Error when calling ChorusProApi->rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post: #{e}"
|
|
538
|
+
end
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
#### Using the rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post_with_http_info variant
|
|
542
|
+
|
|
543
|
+
This returns an Array which contains the response data, status code and headers.
|
|
544
|
+
|
|
545
|
+
> <Array(Object, Integer, Hash)> rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post_with_http_info(body_rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post)
|
|
546
|
+
|
|
547
|
+
```ruby
|
|
548
|
+
begin
|
|
549
|
+
# Rechercher factures émises (Fournisseur)
|
|
550
|
+
data, status_code, headers = api_instance.rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post_with_http_info(body_rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post)
|
|
551
|
+
p status_code # => 2xx
|
|
552
|
+
p headers # => { ... }
|
|
553
|
+
p data # => Object
|
|
554
|
+
rescue FactPulse::ApiError => e
|
|
555
|
+
puts "Error when calling ChorusProApi->rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post_with_http_info: #{e}"
|
|
556
|
+
end
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
### Parameters
|
|
560
|
+
|
|
561
|
+
| Name | Type | Description | Notes |
|
|
562
|
+
| ---- | ---- | ----------- | ----- |
|
|
563
|
+
| **body_rechercher_factures_fournisseur_api_v1_chorus_pro_factures_rechercher_fournisseur_post** | [**BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost**](BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost.md) | | |
|
|
564
|
+
|
|
565
|
+
### Return type
|
|
566
|
+
|
|
567
|
+
**Object**
|
|
568
|
+
|
|
569
|
+
### Authorization
|
|
570
|
+
|
|
571
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
572
|
+
|
|
573
|
+
### HTTP request headers
|
|
574
|
+
|
|
575
|
+
- **Content-Type**: application/json
|
|
576
|
+
- **Accept**: application/json
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
## rechercher_structures_api_v1_chorus_pro_structures_rechercher_post
|
|
580
|
+
|
|
581
|
+
> <RechercherStructureResponse> rechercher_structures_api_v1_chorus_pro_structures_rechercher_post(rechercher_structure_request)
|
|
582
|
+
|
|
583
|
+
Rechercher des structures Chorus Pro
|
|
584
|
+
|
|
585
|
+
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.
|
|
586
|
+
|
|
587
|
+
### Examples
|
|
588
|
+
|
|
589
|
+
```ruby
|
|
590
|
+
require 'time'
|
|
591
|
+
require 'factpulse'
|
|
592
|
+
# setup authorization
|
|
593
|
+
FactPulse.configure do |config|
|
|
594
|
+
# Configure Bearer authorization: HTTPBearer
|
|
595
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
596
|
+
end
|
|
597
|
+
|
|
598
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
599
|
+
rechercher_structure_request = FactPulse::RechercherStructureRequest.new # RechercherStructureRequest |
|
|
600
|
+
|
|
601
|
+
begin
|
|
602
|
+
# Rechercher des structures Chorus Pro
|
|
603
|
+
result = api_instance.rechercher_structures_api_v1_chorus_pro_structures_rechercher_post(rechercher_structure_request)
|
|
604
|
+
p result
|
|
605
|
+
rescue FactPulse::ApiError => e
|
|
606
|
+
puts "Error when calling ChorusProApi->rechercher_structures_api_v1_chorus_pro_structures_rechercher_post: #{e}"
|
|
607
|
+
end
|
|
608
|
+
```
|
|
609
|
+
|
|
610
|
+
#### Using the rechercher_structures_api_v1_chorus_pro_structures_rechercher_post_with_http_info variant
|
|
611
|
+
|
|
612
|
+
This returns an Array which contains the response data, status code and headers.
|
|
613
|
+
|
|
614
|
+
> <Array(<RechercherStructureResponse>, Integer, Hash)> rechercher_structures_api_v1_chorus_pro_structures_rechercher_post_with_http_info(rechercher_structure_request)
|
|
615
|
+
|
|
616
|
+
```ruby
|
|
617
|
+
begin
|
|
618
|
+
# Rechercher des structures Chorus Pro
|
|
619
|
+
data, status_code, headers = api_instance.rechercher_structures_api_v1_chorus_pro_structures_rechercher_post_with_http_info(rechercher_structure_request)
|
|
620
|
+
p status_code # => 2xx
|
|
621
|
+
p headers # => { ... }
|
|
622
|
+
p data # => <RechercherStructureResponse>
|
|
623
|
+
rescue FactPulse::ApiError => e
|
|
624
|
+
puts "Error when calling ChorusProApi->rechercher_structures_api_v1_chorus_pro_structures_rechercher_post_with_http_info: #{e}"
|
|
625
|
+
end
|
|
626
|
+
```
|
|
627
|
+
|
|
628
|
+
### Parameters
|
|
629
|
+
|
|
630
|
+
| Name | Type | Description | Notes |
|
|
631
|
+
| ---- | ---- | ----------- | ----- |
|
|
632
|
+
| **rechercher_structure_request** | [**RechercherStructureRequest**](RechercherStructureRequest.md) | | |
|
|
633
|
+
|
|
634
|
+
### Return type
|
|
635
|
+
|
|
636
|
+
[**RechercherStructureResponse**](RechercherStructureResponse.md)
|
|
637
|
+
|
|
638
|
+
### Authorization
|
|
639
|
+
|
|
640
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
641
|
+
|
|
642
|
+
### HTTP request headers
|
|
643
|
+
|
|
644
|
+
- **Content-Type**: application/json
|
|
645
|
+
- **Accept**: application/json
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
## recycler_facture_api_v1_chorus_pro_factures_recycler_post
|
|
649
|
+
|
|
650
|
+
> Object recycler_facture_api_v1_chorus_pro_factures_recycler_post(body_recycler_facture_api_v1_chorus_pro_factures_recycler_post)
|
|
651
|
+
|
|
652
|
+
Recycler une facture (Fournisseur)
|
|
653
|
+
|
|
654
|
+
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.
|
|
655
|
+
|
|
656
|
+
### Examples
|
|
657
|
+
|
|
658
|
+
```ruby
|
|
659
|
+
require 'time'
|
|
660
|
+
require 'factpulse'
|
|
661
|
+
# setup authorization
|
|
662
|
+
FactPulse.configure do |config|
|
|
663
|
+
# Configure Bearer authorization: HTTPBearer
|
|
664
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
668
|
+
body_recycler_facture_api_v1_chorus_pro_factures_recycler_post = FactPulse::BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost.new({payload: { key: 3.56}, user_info: FactPulse::Utilisateur.new({id: 37, username: 'username_example', email: 'email_example', is_active: false})}) # BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost |
|
|
669
|
+
|
|
670
|
+
begin
|
|
671
|
+
# Recycler une facture (Fournisseur)
|
|
672
|
+
result = api_instance.recycler_facture_api_v1_chorus_pro_factures_recycler_post(body_recycler_facture_api_v1_chorus_pro_factures_recycler_post)
|
|
673
|
+
p result
|
|
674
|
+
rescue FactPulse::ApiError => e
|
|
675
|
+
puts "Error when calling ChorusProApi->recycler_facture_api_v1_chorus_pro_factures_recycler_post: #{e}"
|
|
676
|
+
end
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
#### Using the recycler_facture_api_v1_chorus_pro_factures_recycler_post_with_http_info variant
|
|
680
|
+
|
|
681
|
+
This returns an Array which contains the response data, status code and headers.
|
|
682
|
+
|
|
683
|
+
> <Array(Object, Integer, Hash)> recycler_facture_api_v1_chorus_pro_factures_recycler_post_with_http_info(body_recycler_facture_api_v1_chorus_pro_factures_recycler_post)
|
|
684
|
+
|
|
685
|
+
```ruby
|
|
686
|
+
begin
|
|
687
|
+
# Recycler une facture (Fournisseur)
|
|
688
|
+
data, status_code, headers = api_instance.recycler_facture_api_v1_chorus_pro_factures_recycler_post_with_http_info(body_recycler_facture_api_v1_chorus_pro_factures_recycler_post)
|
|
689
|
+
p status_code # => 2xx
|
|
690
|
+
p headers # => { ... }
|
|
691
|
+
p data # => Object
|
|
692
|
+
rescue FactPulse::ApiError => e
|
|
693
|
+
puts "Error when calling ChorusProApi->recycler_facture_api_v1_chorus_pro_factures_recycler_post_with_http_info: #{e}"
|
|
694
|
+
end
|
|
695
|
+
```
|
|
696
|
+
|
|
697
|
+
### Parameters
|
|
698
|
+
|
|
699
|
+
| Name | Type | Description | Notes |
|
|
700
|
+
| ---- | ---- | ----------- | ----- |
|
|
701
|
+
| **body_recycler_facture_api_v1_chorus_pro_factures_recycler_post** | [**BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost**](BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost.md) | | |
|
|
702
|
+
|
|
703
|
+
### Return type
|
|
704
|
+
|
|
705
|
+
**Object**
|
|
706
|
+
|
|
707
|
+
### Authorization
|
|
708
|
+
|
|
709
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
710
|
+
|
|
711
|
+
### HTTP request headers
|
|
712
|
+
|
|
713
|
+
- **Content-Type**: application/json
|
|
714
|
+
- **Accept**: application/json
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
## soumettre_facture_api_v1_chorus_pro_factures_soumettre_post
|
|
718
|
+
|
|
719
|
+
> <SoumettreFactureResponse> soumettre_facture_api_v1_chorus_pro_factures_soumettre_post(soumettre_facture_request)
|
|
720
|
+
|
|
721
|
+
Soumettre une facture à Chorus Pro
|
|
722
|
+
|
|
723
|
+
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.
|
|
724
|
+
|
|
725
|
+
### Examples
|
|
726
|
+
|
|
727
|
+
```ruby
|
|
728
|
+
require 'time'
|
|
729
|
+
require 'factpulse'
|
|
730
|
+
# setup authorization
|
|
731
|
+
FactPulse.configure do |config|
|
|
732
|
+
# Configure Bearer authorization: HTTPBearer
|
|
733
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
737
|
+
soumettre_facture_request = FactPulse::SoumettreFactureRequest.new({numero_facture: 'numero_facture_example', date_facture: 'date_facture_example', id_structure_cpp: 37, montant_ht_total: 'montant_ht_total_example', montant_tva: 'montant_tva_example', montant_ttc_total: 'montant_ttc_total_example'}) # SoumettreFactureRequest |
|
|
738
|
+
|
|
739
|
+
begin
|
|
740
|
+
# Soumettre une facture à Chorus Pro
|
|
741
|
+
result = api_instance.soumettre_facture_api_v1_chorus_pro_factures_soumettre_post(soumettre_facture_request)
|
|
742
|
+
p result
|
|
743
|
+
rescue FactPulse::ApiError => e
|
|
744
|
+
puts "Error when calling ChorusProApi->soumettre_facture_api_v1_chorus_pro_factures_soumettre_post: #{e}"
|
|
745
|
+
end
|
|
746
|
+
```
|
|
747
|
+
|
|
748
|
+
#### Using the soumettre_facture_api_v1_chorus_pro_factures_soumettre_post_with_http_info variant
|
|
749
|
+
|
|
750
|
+
This returns an Array which contains the response data, status code and headers.
|
|
751
|
+
|
|
752
|
+
> <Array(<SoumettreFactureResponse>, Integer, Hash)> soumettre_facture_api_v1_chorus_pro_factures_soumettre_post_with_http_info(soumettre_facture_request)
|
|
753
|
+
|
|
754
|
+
```ruby
|
|
755
|
+
begin
|
|
756
|
+
# Soumettre une facture à Chorus Pro
|
|
757
|
+
data, status_code, headers = api_instance.soumettre_facture_api_v1_chorus_pro_factures_soumettre_post_with_http_info(soumettre_facture_request)
|
|
758
|
+
p status_code # => 2xx
|
|
759
|
+
p headers # => { ... }
|
|
760
|
+
p data # => <SoumettreFactureResponse>
|
|
761
|
+
rescue FactPulse::ApiError => e
|
|
762
|
+
puts "Error when calling ChorusProApi->soumettre_facture_api_v1_chorus_pro_factures_soumettre_post_with_http_info: #{e}"
|
|
763
|
+
end
|
|
764
|
+
```
|
|
765
|
+
|
|
766
|
+
### Parameters
|
|
767
|
+
|
|
768
|
+
| Name | Type | Description | Notes |
|
|
769
|
+
| ---- | ---- | ----------- | ----- |
|
|
770
|
+
| **soumettre_facture_request** | [**SoumettreFactureRequest**](SoumettreFactureRequest.md) | | |
|
|
771
|
+
|
|
772
|
+
### Return type
|
|
773
|
+
|
|
774
|
+
[**SoumettreFactureResponse**](SoumettreFactureResponse.md)
|
|
775
|
+
|
|
776
|
+
### Authorization
|
|
777
|
+
|
|
778
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
779
|
+
|
|
780
|
+
### HTTP request headers
|
|
781
|
+
|
|
782
|
+
- **Content-Type**: application/json
|
|
783
|
+
- **Accept**: application/json
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
## telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post
|
|
787
|
+
|
|
788
|
+
> Object telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post(body_telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post)
|
|
789
|
+
|
|
790
|
+
Télécharger un groupe de factures
|
|
791
|
+
|
|
792
|
+
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.
|
|
793
|
+
|
|
794
|
+
### Examples
|
|
795
|
+
|
|
796
|
+
```ruby
|
|
797
|
+
require 'time'
|
|
798
|
+
require 'factpulse'
|
|
799
|
+
# setup authorization
|
|
800
|
+
FactPulse.configure do |config|
|
|
801
|
+
# Configure Bearer authorization: HTTPBearer
|
|
802
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
803
|
+
end
|
|
804
|
+
|
|
805
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
806
|
+
body_telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post = FactPulse::BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost.new({payload: { key: 3.56}, user_info: FactPulse::Utilisateur.new({id: 37, username: 'username_example', email: 'email_example', is_active: false})}) # BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost |
|
|
807
|
+
|
|
808
|
+
begin
|
|
809
|
+
# Télécharger un groupe de factures
|
|
810
|
+
result = api_instance.telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post(body_telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post)
|
|
811
|
+
p result
|
|
812
|
+
rescue FactPulse::ApiError => e
|
|
813
|
+
puts "Error when calling ChorusProApi->telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post: #{e}"
|
|
814
|
+
end
|
|
815
|
+
```
|
|
816
|
+
|
|
817
|
+
#### Using the telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post_with_http_info variant
|
|
818
|
+
|
|
819
|
+
This returns an Array which contains the response data, status code and headers.
|
|
820
|
+
|
|
821
|
+
> <Array(Object, Integer, Hash)> telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post_with_http_info(body_telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post)
|
|
822
|
+
|
|
823
|
+
```ruby
|
|
824
|
+
begin
|
|
825
|
+
# Télécharger un groupe de factures
|
|
826
|
+
data, status_code, headers = api_instance.telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post_with_http_info(body_telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post)
|
|
827
|
+
p status_code # => 2xx
|
|
828
|
+
p headers # => { ... }
|
|
829
|
+
p data # => Object
|
|
830
|
+
rescue FactPulse::ApiError => e
|
|
831
|
+
puts "Error when calling ChorusProApi->telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post_with_http_info: #{e}"
|
|
832
|
+
end
|
|
833
|
+
```
|
|
834
|
+
|
|
835
|
+
### Parameters
|
|
836
|
+
|
|
837
|
+
| Name | Type | Description | Notes |
|
|
838
|
+
| ---- | ---- | ----------- | ----- |
|
|
839
|
+
| **body_telecharger_groupe_factures_api_v1_chorus_pro_factures_telecharger_groupe_post** | [**BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost**](BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost.md) | | |
|
|
840
|
+
|
|
841
|
+
### Return type
|
|
842
|
+
|
|
843
|
+
**Object**
|
|
844
|
+
|
|
845
|
+
### Authorization
|
|
846
|
+
|
|
847
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
848
|
+
|
|
849
|
+
### HTTP request headers
|
|
850
|
+
|
|
851
|
+
- **Content-Type**: application/json
|
|
852
|
+
- **Accept**: application/json
|
|
853
|
+
|
|
854
|
+
|
|
855
|
+
## traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post
|
|
856
|
+
|
|
857
|
+
> Object traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post(body_traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post)
|
|
858
|
+
|
|
859
|
+
Traiter une facture reçue (Destinataire)
|
|
860
|
+
|
|
861
|
+
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
|
|
862
|
+
|
|
863
|
+
### Examples
|
|
864
|
+
|
|
865
|
+
```ruby
|
|
866
|
+
require 'time'
|
|
867
|
+
require 'factpulse'
|
|
868
|
+
# setup authorization
|
|
869
|
+
FactPulse.configure do |config|
|
|
870
|
+
# Configure Bearer authorization: HTTPBearer
|
|
871
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
872
|
+
end
|
|
873
|
+
|
|
874
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
875
|
+
body_traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post = FactPulse::BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost.new({payload: { key: 3.56}, user_info: FactPulse::Utilisateur.new({id: 37, username: 'username_example', email: 'email_example', is_active: false})}) # BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost |
|
|
876
|
+
|
|
877
|
+
begin
|
|
878
|
+
# Traiter une facture reçue (Destinataire)
|
|
879
|
+
result = api_instance.traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post(body_traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post)
|
|
880
|
+
p result
|
|
881
|
+
rescue FactPulse::ApiError => e
|
|
882
|
+
puts "Error when calling ChorusProApi->traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post: #{e}"
|
|
883
|
+
end
|
|
884
|
+
```
|
|
885
|
+
|
|
886
|
+
#### Using the traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post_with_http_info variant
|
|
887
|
+
|
|
888
|
+
This returns an Array which contains the response data, status code and headers.
|
|
889
|
+
|
|
890
|
+
> <Array(Object, Integer, Hash)> traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post_with_http_info(body_traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post)
|
|
891
|
+
|
|
892
|
+
```ruby
|
|
893
|
+
begin
|
|
894
|
+
# Traiter une facture reçue (Destinataire)
|
|
895
|
+
data, status_code, headers = api_instance.traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post_with_http_info(body_traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post)
|
|
896
|
+
p status_code # => 2xx
|
|
897
|
+
p headers # => { ... }
|
|
898
|
+
p data # => Object
|
|
899
|
+
rescue FactPulse::ApiError => e
|
|
900
|
+
puts "Error when calling ChorusProApi->traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post_with_http_info: #{e}"
|
|
901
|
+
end
|
|
902
|
+
```
|
|
903
|
+
|
|
904
|
+
### Parameters
|
|
905
|
+
|
|
906
|
+
| Name | Type | Description | Notes |
|
|
907
|
+
| ---- | ---- | ----------- | ----- |
|
|
908
|
+
| **body_traiter_facture_recue_api_v1_chorus_pro_factures_traiter_facture_recue_post** | [**BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost**](BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost.md) | | |
|
|
909
|
+
|
|
910
|
+
### Return type
|
|
911
|
+
|
|
912
|
+
**Object**
|
|
913
|
+
|
|
914
|
+
### Authorization
|
|
915
|
+
|
|
916
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
917
|
+
|
|
918
|
+
### HTTP request headers
|
|
919
|
+
|
|
920
|
+
- **Content-Type**: application/json
|
|
921
|
+
- **Accept**: application/json
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
## valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post
|
|
925
|
+
|
|
926
|
+
> Object valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post(body_valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post)
|
|
927
|
+
|
|
928
|
+
Consulter une facture (Valideur)
|
|
929
|
+
|
|
930
|
+
Consulte facture (valideur).
|
|
931
|
+
|
|
932
|
+
### Examples
|
|
933
|
+
|
|
934
|
+
```ruby
|
|
935
|
+
require 'time'
|
|
936
|
+
require 'factpulse'
|
|
937
|
+
# setup authorization
|
|
938
|
+
FactPulse.configure do |config|
|
|
939
|
+
# Configure Bearer authorization: HTTPBearer
|
|
940
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
941
|
+
end
|
|
942
|
+
|
|
943
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
944
|
+
body_valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post = FactPulse::BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost.new({payload: { key: 3.56}, user_info: FactPulse::Utilisateur.new({id: 37, username: 'username_example', email: 'email_example', is_active: false})}) # BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost |
|
|
945
|
+
|
|
946
|
+
begin
|
|
947
|
+
# Consulter une facture (Valideur)
|
|
948
|
+
result = api_instance.valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post(body_valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post)
|
|
949
|
+
p result
|
|
950
|
+
rescue FactPulse::ApiError => e
|
|
951
|
+
puts "Error when calling ChorusProApi->valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post: #{e}"
|
|
952
|
+
end
|
|
953
|
+
```
|
|
954
|
+
|
|
955
|
+
#### Using the valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post_with_http_info variant
|
|
956
|
+
|
|
957
|
+
This returns an Array which contains the response data, status code and headers.
|
|
958
|
+
|
|
959
|
+
> <Array(Object, Integer, Hash)> valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post_with_http_info(body_valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post)
|
|
960
|
+
|
|
961
|
+
```ruby
|
|
962
|
+
begin
|
|
963
|
+
# Consulter une facture (Valideur)
|
|
964
|
+
data, status_code, headers = api_instance.valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post_with_http_info(body_valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post)
|
|
965
|
+
p status_code # => 2xx
|
|
966
|
+
p headers # => { ... }
|
|
967
|
+
p data # => Object
|
|
968
|
+
rescue FactPulse::ApiError => e
|
|
969
|
+
puts "Error when calling ChorusProApi->valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post_with_http_info: #{e}"
|
|
970
|
+
end
|
|
971
|
+
```
|
|
972
|
+
|
|
973
|
+
### Parameters
|
|
974
|
+
|
|
975
|
+
| Name | Type | Description | Notes |
|
|
976
|
+
| ---- | ---- | ----------- | ----- |
|
|
977
|
+
| **body_valideur_consulter_facture_api_v1_chorus_pro_factures_valideur_consulter_post** | [**BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost**](BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost.md) | | |
|
|
978
|
+
|
|
979
|
+
### Return type
|
|
980
|
+
|
|
981
|
+
**Object**
|
|
982
|
+
|
|
983
|
+
### Authorization
|
|
984
|
+
|
|
985
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
986
|
+
|
|
987
|
+
### HTTP request headers
|
|
988
|
+
|
|
989
|
+
- **Content-Type**: application/json
|
|
990
|
+
- **Accept**: application/json
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
## valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post
|
|
994
|
+
|
|
995
|
+
> Object valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post(body_valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post)
|
|
996
|
+
|
|
997
|
+
Rechercher factures à valider (Valideur)
|
|
998
|
+
|
|
999
|
+
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.
|
|
1000
|
+
|
|
1001
|
+
### Examples
|
|
1002
|
+
|
|
1003
|
+
```ruby
|
|
1004
|
+
require 'time'
|
|
1005
|
+
require 'factpulse'
|
|
1006
|
+
# setup authorization
|
|
1007
|
+
FactPulse.configure do |config|
|
|
1008
|
+
# Configure Bearer authorization: HTTPBearer
|
|
1009
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1010
|
+
end
|
|
1011
|
+
|
|
1012
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
1013
|
+
body_valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post = FactPulse::BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost.new({payload: { key: 3.56}, user_info: FactPulse::Utilisateur.new({id: 37, username: 'username_example', email: 'email_example', is_active: false})}) # BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost |
|
|
1014
|
+
|
|
1015
|
+
begin
|
|
1016
|
+
# Rechercher factures à valider (Valideur)
|
|
1017
|
+
result = api_instance.valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post(body_valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post)
|
|
1018
|
+
p result
|
|
1019
|
+
rescue FactPulse::ApiError => e
|
|
1020
|
+
puts "Error when calling ChorusProApi->valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post: #{e}"
|
|
1021
|
+
end
|
|
1022
|
+
```
|
|
1023
|
+
|
|
1024
|
+
#### Using the valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post_with_http_info variant
|
|
1025
|
+
|
|
1026
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1027
|
+
|
|
1028
|
+
> <Array(Object, Integer, Hash)> valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post_with_http_info(body_valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post)
|
|
1029
|
+
|
|
1030
|
+
```ruby
|
|
1031
|
+
begin
|
|
1032
|
+
# Rechercher factures à valider (Valideur)
|
|
1033
|
+
data, status_code, headers = api_instance.valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post_with_http_info(body_valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post)
|
|
1034
|
+
p status_code # => 2xx
|
|
1035
|
+
p headers # => { ... }
|
|
1036
|
+
p data # => Object
|
|
1037
|
+
rescue FactPulse::ApiError => e
|
|
1038
|
+
puts "Error when calling ChorusProApi->valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post_with_http_info: #{e}"
|
|
1039
|
+
end
|
|
1040
|
+
```
|
|
1041
|
+
|
|
1042
|
+
### Parameters
|
|
1043
|
+
|
|
1044
|
+
| Name | Type | Description | Notes |
|
|
1045
|
+
| ---- | ---- | ----------- | ----- |
|
|
1046
|
+
| **body_valideur_rechercher_factures_api_v1_chorus_pro_factures_valideur_rechercher_post** | [**BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost**](BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost.md) | | |
|
|
1047
|
+
|
|
1048
|
+
### Return type
|
|
1049
|
+
|
|
1050
|
+
**Object**
|
|
1051
|
+
|
|
1052
|
+
### Authorization
|
|
1053
|
+
|
|
1054
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
1055
|
+
|
|
1056
|
+
### HTTP request headers
|
|
1057
|
+
|
|
1058
|
+
- **Content-Type**: application/json
|
|
1059
|
+
- **Accept**: application/json
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
## valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post
|
|
1063
|
+
|
|
1064
|
+
> Object valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post(body_valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post)
|
|
1065
|
+
|
|
1066
|
+
Valider ou refuser une facture (Valideur)
|
|
1067
|
+
|
|
1068
|
+
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)
|
|
1069
|
+
|
|
1070
|
+
### Examples
|
|
1071
|
+
|
|
1072
|
+
```ruby
|
|
1073
|
+
require 'time'
|
|
1074
|
+
require 'factpulse'
|
|
1075
|
+
# setup authorization
|
|
1076
|
+
FactPulse.configure do |config|
|
|
1077
|
+
# Configure Bearer authorization: HTTPBearer
|
|
1078
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1079
|
+
end
|
|
1080
|
+
|
|
1081
|
+
api_instance = FactPulse::ChorusProApi.new
|
|
1082
|
+
body_valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post = FactPulse::BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost.new({payload: { key: 3.56}, user_info: FactPulse::Utilisateur.new({id: 37, username: 'username_example', email: 'email_example', is_active: false})}) # BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost |
|
|
1083
|
+
|
|
1084
|
+
begin
|
|
1085
|
+
# Valider ou refuser une facture (Valideur)
|
|
1086
|
+
result = api_instance.valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post(body_valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post)
|
|
1087
|
+
p result
|
|
1088
|
+
rescue FactPulse::ApiError => e
|
|
1089
|
+
puts "Error when calling ChorusProApi->valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post: #{e}"
|
|
1090
|
+
end
|
|
1091
|
+
```
|
|
1092
|
+
|
|
1093
|
+
#### Using the valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post_with_http_info variant
|
|
1094
|
+
|
|
1095
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1096
|
+
|
|
1097
|
+
> <Array(Object, Integer, Hash)> valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post_with_http_info(body_valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post)
|
|
1098
|
+
|
|
1099
|
+
```ruby
|
|
1100
|
+
begin
|
|
1101
|
+
# Valider ou refuser une facture (Valideur)
|
|
1102
|
+
data, status_code, headers = api_instance.valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post_with_http_info(body_valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post)
|
|
1103
|
+
p status_code # => 2xx
|
|
1104
|
+
p headers # => { ... }
|
|
1105
|
+
p data # => Object
|
|
1106
|
+
rescue FactPulse::ApiError => e
|
|
1107
|
+
puts "Error when calling ChorusProApi->valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post_with_http_info: #{e}"
|
|
1108
|
+
end
|
|
1109
|
+
```
|
|
1110
|
+
|
|
1111
|
+
### Parameters
|
|
1112
|
+
|
|
1113
|
+
| Name | Type | Description | Notes |
|
|
1114
|
+
| ---- | ---- | ----------- | ----- |
|
|
1115
|
+
| **body_valideur_traiter_facture_api_v1_chorus_pro_factures_valideur_traiter_post** | [**BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost**](BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost.md) | | |
|
|
1116
|
+
|
|
1117
|
+
### Return type
|
|
1118
|
+
|
|
1119
|
+
**Object**
|
|
1120
|
+
|
|
1121
|
+
### Authorization
|
|
1122
|
+
|
|
1123
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
1124
|
+
|
|
1125
|
+
### HTTP request headers
|
|
1126
|
+
|
|
1127
|
+
- **Content-Type**: application/json
|
|
1128
|
+
- **Accept**: application/json
|
|
1129
|
+
|